katello_api 0.0.3 → 0.0.4

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 (115) hide show
  1. checksums.yaml +15 -0
  2. data/.gitignore +3 -0
  3. data/Gemfile +1 -1
  4. data/README.rdoc +22 -13
  5. data/Rakefile +0 -1
  6. data/doc/KatelloApi/Base.html +102 -116
  7. data/doc/KatelloApi/Generator/Base.html +65 -80
  8. data/doc/KatelloApi/Generator.html +5 -5
  9. data/doc/KatelloApi/Resources/About.html +360 -0
  10. data/doc/KatelloApi/Resources/ActivationKey.html +190 -304
  11. data/doc/KatelloApi/Resources/Architecture.html +89 -129
  12. data/doc/KatelloApi/Resources/Changeset.html +156 -399
  13. data/doc/KatelloApi/Resources/ChangesetsContent.html +97 -2215
  14. data/doc/KatelloApi/Resources/ComputeResource.html +131 -189
  15. data/doc/KatelloApi/Resources/ConfigTemplate.html +143 -208
  16. data/doc/KatelloApi/Resources/ContentUpload.html +1046 -0
  17. data/doc/KatelloApi/Resources/ContentView.html +229 -117
  18. data/doc/KatelloApi/Resources/ContentViewDefinition.html +1190 -323
  19. data/doc/KatelloApi/Resources/Crl.html +21 -28
  20. data/doc/KatelloApi/Resources/CustomInfo.html +1110 -0
  21. data/doc/KatelloApi/Resources/Distribution.html +40 -56
  22. data/doc/KatelloApi/Resources/Distributor.html +406 -469
  23. data/doc/KatelloApi/Resources/Domain.html +107 -155
  24. data/doc/KatelloApi/Resources/Environment.html +211 -539
  25. data/doc/KatelloApi/Resources/Erratum.html +56 -90
  26. data/doc/KatelloApi/Resources/Filter.html +1533 -0
  27. data/doc/KatelloApi/Resources/FilterRule.html +591 -0
  28. data/doc/KatelloApi/Resources/GpgKey.html +230 -196
  29. data/doc/KatelloApi/Resources/HardwareModel.html +101 -147
  30. data/doc/KatelloApi/Resources/Organization.html +647 -158
  31. data/doc/KatelloApi/Resources/OrganizationDefaultInfo.html +803 -0
  32. data/doc/KatelloApi/Resources/Package.html +57 -81
  33. data/doc/KatelloApi/Resources/Permission.html +109 -197
  34. data/doc/KatelloApi/Resources/Ping.html +37 -179
  35. data/doc/KatelloApi/Resources/Product.html +289 -462
  36. data/doc/KatelloApi/Resources/Provider.html +397 -424
  37. data/doc/KatelloApi/Resources/PuppetModule.html +704 -0
  38. data/doc/KatelloApi/Resources/Repository.html +302 -958
  39. data/doc/KatelloApi/Resources/RepositorySet.html +64 -104
  40. data/doc/KatelloApi/Resources/Role.html +131 -250
  41. data/doc/KatelloApi/Resources/RoleLdapGroup.html +74 -95
  42. data/doc/KatelloApi/Resources/SmartProxy.html +97 -143
  43. data/doc/KatelloApi/Resources/Statu.html +21 -28
  44. data/doc/KatelloApi/Resources/Status.html +360 -0
  45. data/doc/KatelloApi/Resources/Subnet.html +89 -129
  46. data/doc/KatelloApi/Resources/Subscription.html +486 -162
  47. data/doc/KatelloApi/Resources/Sync.html +85 -155
  48. data/doc/KatelloApi/Resources/SyncPlan.html +127 -220
  49. data/doc/KatelloApi/Resources/System.html +913 -925
  50. data/doc/KatelloApi/Resources/SystemErratum.html +557 -0
  51. data/doc/KatelloApi/Resources/SystemGroup.html +634 -408
  52. data/doc/KatelloApi/Resources/SystemGroupErratum.html +47 -66
  53. data/doc/KatelloApi/Resources/SystemGroupPackage.html +77 -108
  54. data/doc/KatelloApi/Resources/SystemPackage.html +734 -108
  55. data/doc/KatelloApi/Resources/SystemsBulkAction.html +1706 -0
  56. data/doc/KatelloApi/Resources/Task.html +38 -53
  57. data/doc/KatelloApi/Resources/Template.html +159 -233
  58. data/doc/KatelloApi/Resources/TemplatesContent.html +214 -312
  59. data/doc/KatelloApi/Resources/Uebercert.html +25 -34
  60. data/doc/KatelloApi/Resources/User.html +204 -433
  61. data/doc/KatelloApi/Resources.html +7 -7
  62. data/doc/KatelloApi.html +21 -26
  63. data/doc/_index.html +87 -9
  64. data/doc/class_list.html +3 -2
  65. data/doc/css/style.css +1 -1
  66. data/doc/file.README.html +60 -54
  67. data/doc/file_list.html +2 -1
  68. data/doc/frames.html +5 -7
  69. data/doc/index.html +60 -54
  70. data/doc/js/app.js +7 -2
  71. data/doc/js/full_list.js +7 -2
  72. data/doc/method_list.html +854 -1225
  73. data/doc/top-level-namespace.html +5 -5
  74. data/katello_api.gemspec +7 -5
  75. data/lib/katello_api/base.rb +9 -8
  76. data/lib/katello_api/documentation.json +1 -1
  77. data/lib/katello_api/resources/about.rb +18 -0
  78. data/lib/katello_api/resources/activation_key.rb +11 -13
  79. data/lib/katello_api/resources/changeset.rb +4 -15
  80. data/lib/katello_api/resources/changesets_content.rb +6 -130
  81. data/lib/katello_api/resources/content_upload.rb +61 -0
  82. data/lib/katello_api/resources/content_view.rb +10 -1
  83. data/lib/katello_api/resources/content_view_definition.rb +65 -3
  84. data/lib/katello_api/resources/custom_info.rb +70 -0
  85. data/lib/katello_api/resources/distributor.rb +33 -18
  86. data/lib/katello_api/resources/environment.rb +20 -41
  87. data/lib/katello_api/resources/erratum.rb +3 -4
  88. data/lib/katello_api/resources/filter.rb +93 -0
  89. data/lib/katello_api/resources/filter_rule.rb +36 -0
  90. data/lib/katello_api/resources/gpg_key.rb +18 -14
  91. data/lib/katello_api/resources/organization.rb +43 -8
  92. data/lib/katello_api/resources/organization_default_info.rb +48 -0
  93. data/lib/katello_api/resources/permission.rb +10 -7
  94. data/lib/katello_api/resources/ping.rb +1 -9
  95. data/lib/katello_api/resources/product.rb +26 -30
  96. data/lib/katello_api/resources/provider.rb +21 -20
  97. data/lib/katello_api/resources/puppet_module.rb +39 -0
  98. data/lib/katello_api/resources/repository.rb +28 -62
  99. data/lib/katello_api/resources/repository_set.rb +1 -2
  100. data/lib/katello_api/resources/role.rb +0 -5
  101. data/lib/katello_api/resources/role_ldap_group.rb +3 -1
  102. data/lib/katello_api/resources/status.rb +18 -0
  103. data/lib/katello_api/resources/subscription.rb +33 -7
  104. data/lib/katello_api/resources/sync.rb +9 -12
  105. data/lib/katello_api/resources/sync_plan.rb +2 -5
  106. data/lib/katello_api/resources/system.rb +95 -73
  107. data/lib/katello_api/resources/system_erratum.rb +30 -0
  108. data/lib/katello_api/resources/system_group.rb +40 -27
  109. data/lib/katello_api/resources/system_group_erratum.rb +1 -1
  110. data/lib/katello_api/resources/system_group_package.rb +6 -6
  111. data/lib/katello_api/resources/system_package.rb +46 -5
  112. data/lib/katello_api/resources/systems_bulk_action.rb +140 -0
  113. data/lib/katello_api/resources/user.rb +14 -18
  114. data/lib/katello_api/version.rb +1 -1
  115. metadata +26 -14
@@ -7,8 +7,8 @@ module KatelloApi
7
7
 
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
9
  # @option params [String] organization_id organization identifier
10
- # @option params [String] library set true if you want to see only library environment
11
- # @option params [String] name filter only environments with this identifier
10
+ # @option params [String] library set true if you want to see only library environments
11
+ # @option params [String] name filter only environments containing this name
12
12
  #
13
13
  # @param [Hash] headers additional http headers
14
14
  # @return [Array] First item: parsed data; second item: raw body
@@ -17,19 +17,10 @@ module KatelloApi
17
17
  end
18
18
 
19
19
  # @param [Hash] params a hash of params to be passed to the service
20
- # @option params [String] organization_id organization identifier
21
- # @option params [String] library set true if you want to see only library environment
22
- # @option params [String] name filter only environments with this identifier
23
- #
24
- # @param [Hash] headers additional http headers
25
- # @return [Array] First item: parsed data; second item: raw body
26
- def rhsm_index(params = {}, headers = {})
27
- perform_call(__method__, params, headers)
28
- end
29
-
30
- # @param [Hash] params a hash of params to be passed to the service
31
- # @option params [String] id environment identifier
32
- # @option params [String] organization_id organization identifier
20
+ # @option params [String] id id of the environment
21
+ # @option params [Object] environment_id Part of +/api/organizations/:organization_id/environments/:environment_id+ path
22
+ # @option params [String] organization_id id of the organization
23
+ # @option params [String] name name of the environment
33
24
  #
34
25
  # @param [Hash] headers additional http headers
35
26
  # @return [Array] First item: parsed data; second item: raw body
@@ -38,12 +29,10 @@ module KatelloApi
38
29
  end
39
30
 
40
31
  # @param [Hash] params a hash of params to be passed to the service
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
32
+ # @option params [String] organization_id name of organization
33
+ # @option params [String] description description of the environment
34
+ # @option params [String] name name of the environment
35
+ # @option params [String] prior name of an environment that is prior to the new environment in the chain. it has to be either ‘library’ or an environment at the end of a chain.
47
36
  #
48
37
  # @param [Hash] headers additional http headers
49
38
  # @return [Array] First item: parsed data; second item: raw body
@@ -52,12 +41,12 @@ module KatelloApi
52
41
  end
53
42
 
54
43
  # @param [Hash] params a hash of params to be passed to the service
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)
44
+ # @option params [String] id id of the environment
45
+ # @option params [String] organization_id name of the organization
46
+ # @option params [String] description description of the environment
47
+ # @option params [String] name name of the environment
48
+ # @option params [String] new_name new name to be given to the environment
49
+ # @option params [String] prior name of an environment that is prior to the new environment in the chain. it has to be either ‘library’ or an environment at the end of a chain.
61
50
  #
62
51
  # @param [Hash] headers additional http headers
63
52
  # @return [Array] First item: parsed data; second item: raw body
@@ -66,8 +55,9 @@ module KatelloApi
66
55
  end
67
56
 
68
57
  # @param [Hash] params a hash of params to be passed to the service
69
- # @option params [String] id environment identifier
58
+ # @option params [String] id id of the environment
70
59
  # @option params [String] organization_id organization identifier
60
+ # @option params [String] name name of the environment
71
61
  #
72
62
  # @param [Hash] headers additional http headers
73
63
  # @return [Array] First item: parsed data; second item: raw body
@@ -76,22 +66,11 @@ module KatelloApi
76
66
  end
77
67
 
78
68
  # @param [Hash] params a hash of params to be passed to the service
79
- # @option params [String] id environment identifier
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
82
- #
83
- # @param [Hash] headers additional http headers
84
- # @return [Array] First item: parsed data; second item: raw body
85
- def repositories(params = {}, headers = {})
86
- perform_call(__method__, params, headers)
87
- end
88
-
89
- # @param [Hash] params a hash of params to be passed to the service
90
- # @option params [String] id environment identifier
69
+ # @option params [Object] organization_id Part of +/api/organization/:organization_id/environments/paths+ path
91
70
  #
92
71
  # @param [Hash] headers additional http headers
93
72
  # @return [Array] First item: parsed data; second item: raw body
94
- def releases(params = {}, headers = {})
73
+ def paths(params = {}, headers = {})
95
74
  perform_call(__method__, params, headers)
96
75
  end
97
76
 
@@ -6,10 +6,9 @@ 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] environment_id id of environment containing the errata.
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
12
- # @option params [String] repoid id of repository containing the errata.
9
+ # @option params [String] environment_id the environment containing the errata.
10
+ # @option params [String] product_id the product which contains errata.
11
+ # @option params [String] repository_id the repository which contains errata.
13
12
  # @option params [String] severity severity of errata. usually one of: critical, important, moderate, low. case insensitive.
14
13
  # @option params [String] type type of errata. usually one of: security, bugfix, enhancement. case insensitive.
15
14
  #
@@ -0,0 +1,93 @@
1
+ module KatelloApi
2
+ module Resources
3
+ class Filter < KatelloApi::Base
4
+ def self.doc
5
+ @doc ||= KatelloApi.doc['resources']["filters"]
6
+ end
7
+
8
+ # @param [Hash] params a hash of params to be passed to the service
9
+ # @option params [String] content_view_definition_id id of the content view definition
10
+ #
11
+ # @param [Hash] headers additional http headers
12
+ # @return [Array] First item: parsed data; second item: raw body
13
+ def index(params = {}, headers = {})
14
+ perform_call(__method__, params, headers)
15
+ end
16
+
17
+ # @param [Hash] params a hash of params to be passed to the service
18
+ # @option params [String] content_view_definition_id id of the content view definition
19
+ # @option params [Hash] filter
20
+ # allowed keys are:
21
+ # * name [String] name of the filter
22
+ #
23
+ # @param [Hash] headers additional http headers
24
+ # @return [Array] First item: parsed data; second item: raw body
25
+ def create(params = {}, headers = {})
26
+ perform_call(__method__, params, headers)
27
+ end
28
+
29
+ # @param [Hash] params a hash of params to be passed to the service
30
+ # @option params [String] id name of the filter
31
+ # @option params [String] content_view_definition_id id of the content view definition
32
+ #
33
+ # @param [Hash] headers additional http headers
34
+ # @return [Array] First item: parsed data; second item: raw body
35
+ def show(params = {}, headers = {})
36
+ perform_call(__method__, params, headers)
37
+ end
38
+
39
+ # @param [Hash] params a hash of params to be passed to the service
40
+ # @option params [String] id name of the filter
41
+ # @option params [String] content_view_definition_id id of the content view definition
42
+ #
43
+ # @param [Hash] headers additional http headers
44
+ # @return [Array] First item: parsed data; second item: raw body
45
+ def destroy(params = {}, headers = {})
46
+ perform_call(__method__, params, headers)
47
+ end
48
+
49
+ # @param [Hash] params a hash of params to be passed to the service
50
+ # @option params [String] id name of the filter
51
+ # @option params [String] content_view_definition_id id of the content view definition
52
+ #
53
+ # @param [Hash] headers additional http headers
54
+ # @return [Array] First item: parsed data; second item: raw body
55
+ def list_products(params = {}, headers = {})
56
+ perform_call(__method__, params, headers)
57
+ end
58
+
59
+ # @param [Hash] params a hash of params to be passed to the service
60
+ # @option params [String] id name of the filter
61
+ # @option params [String] content_view_definition_id content view definition identifier
62
+ # @option params [Array] products updated list of product ids
63
+ #
64
+ # @param [Hash] headers additional http headers
65
+ # @return [Array] First item: parsed data; second item: raw body
66
+ def update_products(params = {}, headers = {})
67
+ perform_call(__method__, params, headers)
68
+ end
69
+
70
+ # @param [Hash] params a hash of params to be passed to the service
71
+ # @option params [String] id name of the filter
72
+ # @option params [String] content_view_definition_id id of the content view definition
73
+ #
74
+ # @param [Hash] headers additional http headers
75
+ # @return [Array] First item: parsed data; second item: raw body
76
+ def list_repositories(params = {}, headers = {})
77
+ perform_call(__method__, params, headers)
78
+ end
79
+
80
+ # @param [Hash] params a hash of params to be passed to the service
81
+ # @option params [String] id name of the filter
82
+ # @option params [String] content_view_definition_id id of the content view definition
83
+ # @option params [Array] repos updated list of repo ids
84
+ #
85
+ # @param [Hash] headers additional http headers
86
+ # @return [Array] First item: parsed data; second item: raw body
87
+ def update_repositories(params = {}, headers = {})
88
+ perform_call(__method__, params, headers)
89
+ end
90
+
91
+ end
92
+ end
93
+ end
@@ -0,0 +1,36 @@
1
+ module KatelloApi
2
+ module Resources
3
+ class FilterRule < KatelloApi::Base
4
+ def self.doc
5
+ @doc ||= KatelloApi.doc['resources']["filter_rules"]
6
+ end
7
+
8
+ # @param [Hash] params a hash of params to be passed to the service
9
+ # @option params [String] content_view_definition_id id of the content view definition
10
+ # @option params [String] filter_id name of the filter
11
+ # @option params [Hash] rule
12
+ # allowed keys are:
13
+ # * content [String] content type of the rule
14
+ # * inclusion [String, nil] true if its an includes rule, false otherwise. defauls to true
15
+ # * rule [String] a specification of the rule in json format (required).
16
+ #
17
+ # @param [Hash] headers additional http headers
18
+ # @return [Array] First item: parsed data; second item: raw body
19
+ def create(params = {}, headers = {})
20
+ perform_call(__method__, params, headers)
21
+ end
22
+
23
+ # @param [Hash] params a hash of params to be passed to the service
24
+ # @option params [String] id id of the filter rule
25
+ # @option params [String] content_view_definition_id id of the content view definition
26
+ # @option params [String] filter_id name of the filter
27
+ #
28
+ # @param [Hash] headers additional http headers
29
+ # @return [Array] First item: parsed data; second item: raw body
30
+ def destroy(params = {}, headers = {})
31
+ perform_call(__method__, params, headers)
32
+ end
33
+
34
+ end
35
+ end
36
+ end
@@ -7,7 +7,14 @@ module KatelloApi
7
7
 
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
9
  # @option params [String] organization_id organization identifier
10
- # @option params [String] name identifier of the gpg key
10
+ # @option params [String] order sort field and order, eg. ‘name desc’
11
+ # @option params [String] page page number, starting at 1
12
+ # @option params [String] per_page number of results per page to return
13
+ # @option params [String] search search string
14
+ # @option params [Hash] sort hash version of ‘order’ param
15
+ # allowed keys are:
16
+ # * by [String] field to sort the results on
17
+ # * order [String] how to order the sorted results (e.g. asc for ascending)
11
18
  #
12
19
  # @param [Hash] headers additional http headers
13
20
  # @return [Array] First item: parsed data; second item: raw body
@@ -16,33 +23,29 @@ module KatelloApi
16
23
  end
17
24
 
18
25
  # @param [Hash] params a hash of params to be passed to the service
19
- # @option params [String] id gpg key numeric identifier
26
+ # @option params [String] organization_id organization identifier
27
+ # @option params [String] content public key block in der encoding
28
+ # @option params [String] name identifier of the gpg key
20
29
  #
21
30
  # @param [Hash] headers additional http headers
22
31
  # @return [Array] First item: parsed data; second item: raw body
23
- def show(params = {}, headers = {})
32
+ def create(params = {}, headers = {})
24
33
  perform_call(__method__, params, headers)
25
34
  end
26
35
 
27
36
  # @param [Hash] params a hash of params to be passed to the service
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
37
+ # @option params [String] id gpg key numeric identifier
33
38
  #
34
39
  # @param [Hash] headers additional http headers
35
40
  # @return [Array] First item: parsed data; second item: raw body
36
- def create(params = {}, headers = {})
41
+ def show(params = {}, headers = {})
37
42
  perform_call(__method__, params, headers)
38
43
  end
39
44
 
40
45
  # @param [Hash] params a hash of params to be passed to the service
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
46
+ # @option params [String] id gpg key numeric identifier
47
+ # @option params [String] content public key block in der encoding
48
+ # @option params [String] name identifier of the gpg key
46
49
  #
47
50
  # @param [Hash] headers additional http headers
48
51
  # @return [Array] First item: parsed data; second item: raw body
@@ -61,6 +64,7 @@ module KatelloApi
61
64
 
62
65
  # @param [Hash] params a hash of params to be passed to the service
63
66
  # @option params [String] id gpg key numeric identifier
67
+ # @option params [String] content file contents
64
68
  #
65
69
  # @param [Hash] headers additional http headers
66
70
  # @return [Array] First item: parsed data; second item: raw body
@@ -6,9 +6,14 @@ 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
10
- # @option params [String] label label for filtering
11
- # @option params [String] name name for the organization
9
+ # @option params [String] order sort field and order, eg. ‘name desc’
10
+ # @option params [String] page page number, starting at 1
11
+ # @option params [String] per_page number of results per page to return
12
+ # @option params [String] search search string
13
+ # @option params [Hash] sort hash version of ‘order’ param
14
+ # allowed keys are:
15
+ # * by [String] field to sort the results on
16
+ # * order [String] how to order the sorted results (e.g. asc for ascending)
12
17
  #
13
18
  # @param [Hash] headers additional http headers
14
19
  # @return [Array] First item: parsed data; second item: raw body
@@ -26,8 +31,9 @@ module KatelloApi
26
31
  end
27
32
 
28
33
  # @param [Hash] params a hash of params to be passed to the service
29
- # @option params [String] description
30
- # @option params [String] name name for the organization
34
+ # @option params [String] description description
35
+ # @option params [String] label unique label
36
+ # @option params [String] name name
31
37
  #
32
38
  # @param [Hash] headers additional http headers
33
39
  # @return [Array] First item: parsed data; second item: raw body
@@ -37,10 +43,10 @@ module KatelloApi
37
43
 
38
44
  # @param [Hash] params a hash of params to be passed to the service
39
45
  # @option params [Object] id Part of +/api/organizations/:id+ path
40
- # @option params [Hash] organization
46
+ # @option params [String] description description
47
+ # @option params [Hash] resource
41
48
  # allowed keys are:
42
- # * description [String]
43
- # * name [String] name for the organization
49
+ # * name [String]
44
50
  #
45
51
  # @param [Hash] headers additional http headers
46
52
  # @return [Array] First item: parsed data; second item: raw body
@@ -57,6 +63,35 @@ module KatelloApi
57
63
  perform_call(__method__, params, headers)
58
64
  end
59
65
 
66
+ # @param [Hash] params a hash of params to be passed to the service
67
+ # @option params [String] id organization id, label, or name
68
+ # @option params [String] url base url to perform repo discovery on
69
+ #
70
+ # @param [Hash] headers additional http headers
71
+ # @return [Array] First item: parsed data; second item: raw body
72
+ def repo_discover(params = {}, headers = {})
73
+ perform_call(__method__, params, headers)
74
+ end
75
+
76
+ # @param [Hash] params a hash of params to be passed to the service
77
+ # @option params [String] id organization id, label, or name
78
+ # @option params [String] url base url to perform repo discovery on
79
+ #
80
+ # @param [Hash] headers additional http headers
81
+ # @return [Array] First item: parsed data; second item: raw body
82
+ def cancel_repo_discover(params = {}, headers = {})
83
+ perform_call(__method__, params, headers)
84
+ end
85
+
86
+ # @param [Hash] params a hash of params to be passed to the service
87
+ # @option params [Object] id Part of +/api/organizations/:id/autoattach_subscriptions+ path
88
+ #
89
+ # @param [Hash] headers additional http headers
90
+ # @return [Array] First item: parsed data; second item: raw body
91
+ def autoattach_subscriptions(params = {}, headers = {})
92
+ perform_call(__method__, params, headers)
93
+ end
94
+
60
95
  end
61
96
  end
62
97
  end
@@ -0,0 +1,48 @@
1
+ module KatelloApi
2
+ module Resources
3
+ class OrganizationDefaultInfo < KatelloApi::Base
4
+ def self.doc
5
+ @doc ||= KatelloApi.doc['resources']["organization_default_info"]
6
+ end
7
+
8
+ # @param [Hash] params a hash of params to be passed to the service
9
+ # @option params [String] informable_id resource identifier
10
+ # @option params [Object] organization_id Part of +/api/organizations/:organization_id/default_info/:informable_type+ path
11
+ # @option params [Hash] default_info
12
+ # allowed keys are:
13
+ # * keyname [String]
14
+ # @option params [String] informable_type name of the resource
15
+ #
16
+ # @param [Hash] headers additional http headers
17
+ # @return [Array] First item: parsed data; second item: raw body
18
+ def create(params = {}, headers = {})
19
+ perform_call(__method__, params, headers)
20
+ end
21
+
22
+ # @param [Hash] params a hash of params to be passed to the service
23
+ # @option params [String] informable_id resource identifier
24
+ # @option params [Object] organization_id Part of +/api/organizations/:organization_id/default_info/:informable_type/:informable_id/:keyname+ path
25
+ # @option params [String] informable_type name of the resource
26
+ # @option params [String] keyname custom info key
27
+ #
28
+ # @param [Hash] headers additional http headers
29
+ # @return [Array] First item: parsed data; second item: raw body
30
+ def destroy(params = {}, headers = {})
31
+ perform_call(__method__, params, headers)
32
+ end
33
+
34
+ # @param [Hash] params a hash of params to be passed to the service
35
+ # @option params [String] informable_id resource identifier
36
+ # @option params [Object] organization_id Part of +/api/organizations/:organization_id/default_info/:informable_type/apply+ path
37
+ # @option params [String] async directive to run this asynchronously or not
38
+ # @option params [String] informable_type name of the resource
39
+ #
40
+ # @param [Hash] headers additional http headers
41
+ # @return [Array] First item: parsed data; second item: raw body
42
+ def apply_to_all(params = {}, headers = {})
43
+ perform_call(__method__, params, headers)
44
+ end
45
+
46
+ end
47
+ end
48
+ end
@@ -29,14 +29,17 @@ module KatelloApi
29
29
  end
30
30
 
31
31
  # @param [Hash] params a hash of params to be passed to the service
32
- # @option params [String] organization_id
33
32
  # @option params [Object] role_id Part of +/api/roles/:role_id/permissions+ path
34
- # @option params [String] all_tags true if the permission should use all tags
35
- # @option params [String, nil] description
36
- # @option params [String] name
37
- # @option params [String] tags array of tag ids
38
- # @option params [String] type name of a resource or all
39
- # @option params [String] verbs array of permission verbs
33
+ # @option params [Hash] permission
34
+ # allowed keys are:
35
+ # * organization_id [String]
36
+ # * all_tags [String] true if the permission should use all tags
37
+ # * all_verbs [String] true if the permission should use all verbs
38
+ # * description [String, nil]
39
+ # * name [String]
40
+ # * tags [Array] array of tag ids
41
+ # * type [String] name of a resource or ‘all’
42
+ # * verbs [Array] array of permission verbs
40
43
  #
41
44
  # @param [Hash] headers additional http headers
42
45
  # @return [Array] First item: parsed data; second item: raw body
@@ -17,15 +17,7 @@ module KatelloApi
17
17
  #
18
18
  # @param [Hash] headers additional http headers
19
19
  # @return [Array] First item: parsed data; second item: raw body
20
- def status(params = {}, headers = {})
21
- perform_call(__method__, params, headers)
22
- end
23
-
24
- # @param [Hash] params a hash of params to be passed to the service
25
- #
26
- # @param [Hash] headers additional http headers
27
- # @return [Array] First item: parsed data; second item: raw body
28
- def version(params = {}, headers = {})
20
+ def server_status(params = {}, headers = {})
29
21
  perform_call(__method__, params, headers)
30
22
  end
31
23
 
@@ -6,38 +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 [String] id product numeric identifier
9
+ # @option params [Object] environment_id Part of +/api/environments/:environment_id/products+ path
10
10
  # @option params [String] organization_id organization identifier
11
+ # @option params [String] include_marketing include marketing products in results
12
+ # @option params [String] name product identifier
11
13
  #
12
14
  # @param [Hash] headers additional http headers
13
15
  # @return [Array] First item: parsed data; second item: raw body
14
- def show(params = {}, headers = {})
16
+ def index(params = {}, headers = {})
17
+ perform_call(__method__, params, headers)
18
+ end
19
+
20
+ # @param [Hash] params a hash of params to be passed to the service
21
+ # @option params [String] gpg_key_id identifier of the gpg key
22
+ # @option params [String] provider_id provider the product belongs to
23
+ # @option params [String] description product description
24
+ # @option params [String] label
25
+ # @option params [String] name
26
+ #
27
+ # @param [Hash] headers additional http headers
28
+ # @return [Array] First item: parsed data; second item: raw body
29
+ def create(params = {}, headers = {})
15
30
  perform_call(__method__, params, headers)
16
31
  end
17
32
 
18
33
  # @param [Hash] params a hash of params to be passed to the service
19
34
  # @option params [String] id product numeric identifier
20
35
  # @option params [String] organization_id organization identifier
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
26
36
  #
27
37
  # @param [Hash] headers additional http headers
28
38
  # @return [Array] First item: parsed data; second item: raw body
29
- def update(params = {}, headers = {})
39
+ def show(params = {}, headers = {})
30
40
  perform_call(__method__, params, headers)
31
41
  end
32
42
 
33
43
  # @param [Hash] params a hash of params to be passed to the service
34
- # @option params [String] environment_id environment identifier
44
+ # @option params [String] id product numeric identifier
35
45
  # @option params [String] organization_id organization identifier
36
- # @option params [String] name product identifier
46
+ # @option params [Hash] product
47
+ # allowed keys are:
48
+ # * description [String, nil] product description
49
+ # * gpg_key_name [String, nil] identifier of the gpg key
50
+ # * recursive [String] set to true to recursive update gpg key
37
51
  #
38
52
  # @param [Hash] headers additional http headers
39
53
  # @return [Array] First item: parsed data; second item: raw body
40
- def index(params = {}, headers = {})
54
+ def update(params = {}, headers = {})
41
55
  perform_call(__method__, params, headers)
42
56
  end
43
57
 
@@ -53,6 +67,7 @@ module KatelloApi
53
67
 
54
68
  # @param [Hash] params a hash of params to be passed to the service
55
69
  # @option params [String] id product numeric identifier
70
+ # @option params [String] content_view_id find repos in content view instead of default content view
56
71
  # @option params [String] environment_id environment identifier
57
72
  # @option params [String] organization_id organization identifier
58
73
  # @option params [String] include_disabled set to true if you want to list disabled repositories
@@ -86,25 +101,6 @@ module KatelloApi
86
101
  perform_call(__method__, params, headers)
87
102
  end
88
103
 
89
- # @param [Hash] params a hash of params to be passed to the service
90
- # @option params [String] content_view_definition_id content view definition identifier
91
- #
92
- # @param [Hash] headers additional http 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)
96
- end
97
-
98
- # @param [Hash] params a hash of params to be passed to the service
99
- # @option params [String] content_view_definition_id content view definition identifier
100
- # @option params [String] products updated list of products
101
- #
102
- # @param [Hash] headers additional http 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)
106
- end
107
-
108
104
  end
109
105
  end
110
106
  end