pulp_rpm_client 3.0.0b71572533171 → 3.0.0rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (174) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +63 -22
  3. data/docs/ContentAdvisoriesApi.md +15 -7
  4. data/docs/ContentDistributionTreesApi.md +2 -2
  5. data/docs/ContentModulemdDefaultsApi.md +6 -6
  6. data/docs/{ContentModulemdApi.md → ContentModulemdsApi.md} +14 -14
  7. data/docs/ContentPackagecategoriesApi.md +189 -0
  8. data/docs/ContentPackageenvironmentsApi.md +189 -0
  9. data/docs/ContentPackagegroupsApi.md +189 -0
  10. data/docs/ContentPackagelangpacksApi.md +189 -0
  11. data/docs/ContentPackagesApi.md +4 -4
  12. data/docs/ContentRepoMetadataFilesApi.md +4 -4
  13. data/docs/ContentSummary.md +21 -0
  14. data/docs/DistributionsRpmApi.md +10 -10
  15. data/docs/InlineResponse200.md +1 -1
  16. data/docs/InlineResponse2001.md +1 -1
  17. data/docs/InlineResponse20010.md +23 -0
  18. data/docs/InlineResponse20011.md +23 -0
  19. data/docs/InlineResponse20012.md +23 -0
  20. data/docs/InlineResponse20013.md +23 -0
  21. data/docs/InlineResponse20014.md +23 -0
  22. data/docs/InlineResponse2002.md +1 -1
  23. data/docs/InlineResponse2003.md +1 -1
  24. data/docs/InlineResponse2004.md +1 -1
  25. data/docs/InlineResponse2005.md +1 -1
  26. data/docs/InlineResponse2006.md +1 -1
  27. data/docs/InlineResponse2007.md +1 -1
  28. data/docs/InlineResponse2008.md +1 -1
  29. data/docs/InlineResponse2009.md +23 -0
  30. data/docs/PublicationsRpmApi.md +6 -6
  31. data/docs/RemotesRpmApi.md +12 -68
  32. data/docs/RepositoriesRpmApi.md +465 -0
  33. data/docs/RepositoriesRpmVersionsApi.md +214 -0
  34. data/docs/RepositoryAddRemoveContent.md +21 -0
  35. data/docs/RepositorySyncURL.md +2 -2
  36. data/docs/RepositoryVersion.md +25 -0
  37. data/docs/{DistributionTree.md → RpmDistributionTree.md} +2 -2
  38. data/docs/{Modulemd.md → RpmModulemd.md} +2 -8
  39. data/docs/{ModulemdDefaults.md → RpmModulemdDefaults.md} +2 -8
  40. data/docs/{Package.md → RpmPackage.md} +2 -8
  41. data/docs/RpmPackageCategory.md +33 -0
  42. data/docs/RpmPackageEnvironment.md +37 -0
  43. data/docs/RpmPackageGroup.md +39 -0
  44. data/docs/RpmPackageLangpacks.md +19 -0
  45. data/docs/{RepoMetadataFile.md → RpmRepoMetadataFile.md} +2 -8
  46. data/docs/{RpmDistribution.md → RpmRpmDistribution.md} +2 -2
  47. data/docs/{RpmPublication.md → RpmRpmPublication.md} +2 -2
  48. data/docs/{RpmRemote.md → RpmRpmRemote.md} +10 -14
  49. data/docs/RpmRpmRepository.md +27 -0
  50. data/docs/RpmUpdateCollection.md +21 -0
  51. data/docs/{UpdateRecord.md → RpmUpdateRecord.md} +24 -20
  52. data/lib/pulp_rpm_client/api/content_advisories_api.rb +28 -14
  53. data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +4 -4
  54. data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +8 -8
  55. data/lib/pulp_rpm_client/api/{content_modulemd_api.rb → content_modulemds_api.rb} +30 -30
  56. data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +227 -0
  57. data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +227 -0
  58. data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +227 -0
  59. data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +227 -0
  60. data/lib/pulp_rpm_client/api/content_packages_api.rb +7 -7
  61. data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +7 -7
  62. data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +13 -13
  63. data/lib/pulp_rpm_client/api/publications_rpm_api.rb +9 -9
  64. data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +16 -86
  65. data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +568 -0
  66. data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +268 -0
  67. data/lib/pulp_rpm_client/api_client.rb +1 -1
  68. data/lib/pulp_rpm_client/api_error.rb +1 -1
  69. data/lib/pulp_rpm_client/configuration.rb +1 -1
  70. data/lib/pulp_rpm_client/models/addon.rb +12 -2
  71. data/lib/pulp_rpm_client/models/artifact.rb +18 -2
  72. data/lib/pulp_rpm_client/models/async_operation_response.rb +12 -2
  73. data/lib/pulp_rpm_client/models/checksum.rb +12 -2
  74. data/lib/pulp_rpm_client/models/content_summary.rb +246 -0
  75. data/lib/pulp_rpm_client/models/image.rb +12 -2
  76. data/lib/pulp_rpm_client/models/inline_response200.rb +15 -3
  77. data/lib/pulp_rpm_client/models/inline_response2001.rb +15 -3
  78. data/lib/pulp_rpm_client/models/inline_response20010.rb +247 -0
  79. data/lib/pulp_rpm_client/models/inline_response20011.rb +247 -0
  80. data/lib/pulp_rpm_client/models/inline_response20012.rb +247 -0
  81. data/lib/pulp_rpm_client/models/inline_response20013.rb +247 -0
  82. data/lib/pulp_rpm_client/models/inline_response20014.rb +247 -0
  83. data/lib/pulp_rpm_client/models/inline_response2002.rb +15 -3
  84. data/lib/pulp_rpm_client/models/inline_response2003.rb +15 -3
  85. data/lib/pulp_rpm_client/models/inline_response2004.rb +15 -3
  86. data/lib/pulp_rpm_client/models/inline_response2005.rb +15 -3
  87. data/lib/pulp_rpm_client/models/inline_response2006.rb +15 -3
  88. data/lib/pulp_rpm_client/models/inline_response2007.rb +15 -3
  89. data/lib/pulp_rpm_client/models/inline_response2008.rb +15 -3
  90. data/lib/pulp_rpm_client/models/inline_response2009.rb +247 -0
  91. data/lib/pulp_rpm_client/models/repository_add_remove_content.rb +231 -0
  92. data/lib/pulp_rpm_client/models/repository_sync_url.rb +22 -12
  93. data/lib/pulp_rpm_client/models/repository_version.rb +244 -0
  94. data/lib/pulp_rpm_client/models/{distribution_tree.rb → rpm_distribution_tree.rb} +15 -5
  95. data/lib/pulp_rpm_client/models/{modulemd.rb → rpm_modulemd.rb} +16 -60
  96. data/lib/pulp_rpm_client/models/{modulemd_defaults.rb → rpm_modulemd_defaults.rb} +16 -60
  97. data/lib/pulp_rpm_client/models/{package.rb → rpm_package.rb} +16 -60
  98. data/lib/pulp_rpm_client/models/rpm_package_category.rb +405 -0
  99. data/lib/pulp_rpm_client/models/rpm_package_environment.rb +432 -0
  100. data/lib/pulp_rpm_client/models/rpm_package_group.rb +435 -0
  101. data/lib/pulp_rpm_client/models/rpm_package_langpacks.rb +246 -0
  102. data/lib/pulp_rpm_client/models/{repo_metadata_file.rb → rpm_repo_metadata_file.rb} +16 -60
  103. data/lib/pulp_rpm_client/models/{rpm_distribution.rb → rpm_rpm_distribution.rb} +17 -23
  104. data/lib/pulp_rpm_client/models/{rpm_publication.rb → rpm_rpm_publication.rb} +16 -5
  105. data/lib/pulp_rpm_client/models/{rpm_remote.rb → rpm_rpm_remote.rb} +69 -105
  106. data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +294 -0
  107. data/lib/pulp_rpm_client/models/rpm_update_collection.rb +240 -0
  108. data/lib/pulp_rpm_client/models/{update_record.rb → rpm_update_record.rb} +49 -239
  109. data/lib/pulp_rpm_client/models/variant.rb +12 -2
  110. data/lib/pulp_rpm_client/version.rb +2 -2
  111. data/lib/pulp_rpm_client.rb +32 -12
  112. data/pulp_rpm_client.gemspec +1 -1
  113. data/spec/api/content_advisories_api_spec.rb +6 -3
  114. data/spec/api/content_distribution_trees_api_spec.rb +2 -2
  115. data/spec/api/content_modulemd_defaults_api_spec.rb +3 -3
  116. data/spec/api/{content_modulemd_api_spec.rb → content_modulemds_api_spec.rb} +9 -9
  117. data/spec/api/content_packagecategories_api_spec.rb +79 -0
  118. data/spec/api/content_packageenvironments_api_spec.rb +79 -0
  119. data/spec/api/content_packagegroups_api_spec.rb +79 -0
  120. data/spec/api/content_packagelangpacks_api_spec.rb +79 -0
  121. data/spec/api/content_packages_api_spec.rb +3 -3
  122. data/spec/api/content_repo_metadata_files_api_spec.rb +3 -3
  123. data/spec/api/distributions_rpm_api_spec.rb +3 -3
  124. data/spec/api/publications_rpm_api_spec.rb +3 -3
  125. data/spec/api/remotes_rpm_api_spec.rb +4 -17
  126. data/spec/api/repositories_rpm_api_spec.rb +141 -0
  127. data/spec/api/repositories_rpm_versions_api_spec.rb +91 -0
  128. data/spec/api_client_spec.rb +1 -1
  129. data/spec/configuration_spec.rb +1 -1
  130. data/spec/models/addon_spec.rb +1 -1
  131. data/spec/models/artifact_spec.rb +1 -1
  132. data/spec/models/async_operation_response_spec.rb +1 -1
  133. data/spec/models/checksum_spec.rb +1 -1
  134. data/spec/models/content_summary_spec.rb +53 -0
  135. data/spec/models/image_spec.rb +1 -1
  136. data/spec/models/inline_response20010_spec.rb +59 -0
  137. data/spec/models/inline_response20011_spec.rb +59 -0
  138. data/spec/models/inline_response20012_spec.rb +59 -0
  139. data/spec/models/inline_response20013_spec.rb +59 -0
  140. data/spec/models/inline_response20014_spec.rb +59 -0
  141. data/spec/models/inline_response2001_spec.rb +1 -1
  142. data/spec/models/inline_response2002_spec.rb +1 -1
  143. data/spec/models/inline_response2003_spec.rb +1 -1
  144. data/spec/models/inline_response2004_spec.rb +1 -1
  145. data/spec/models/inline_response2005_spec.rb +1 -1
  146. data/spec/models/inline_response2006_spec.rb +1 -1
  147. data/spec/models/inline_response2007_spec.rb +1 -1
  148. data/spec/models/inline_response2008_spec.rb +1 -1
  149. data/spec/models/inline_response2009_spec.rb +59 -0
  150. data/spec/models/inline_response200_spec.rb +1 -1
  151. data/spec/models/repository_add_remove_content_spec.rb +53 -0
  152. data/spec/models/repository_sync_url_spec.rb +2 -2
  153. data/spec/models/repository_version_spec.rb +65 -0
  154. data/spec/models/{distribution_tree_spec.rb → rpm_distribution_tree_spec.rb} +7 -7
  155. data/spec/models/{modulemd_defaults_spec.rb → rpm_modulemd_defaults_spec.rb} +7 -25
  156. data/spec/models/{modulemd_spec.rb → rpm_modulemd_spec.rb} +7 -25
  157. data/spec/models/{repo_metadata_file_spec.rb → rpm_package_category_spec.rb} +16 -16
  158. data/spec/models/rpm_package_environment_spec.rb +101 -0
  159. data/spec/models/rpm_package_group_spec.rb +107 -0
  160. data/spec/models/rpm_package_langpacks_spec.rb +47 -0
  161. data/spec/models/{package_spec.rb → rpm_package_spec.rb} +7 -25
  162. data/spec/models/rpm_repo_metadata_file_spec.rb +71 -0
  163. data/spec/models/{rpm_distribution_spec.rb → rpm_rpm_distribution_spec.rb} +7 -7
  164. data/spec/models/{rpm_publication_spec.rb → rpm_rpm_publication_spec.rb} +7 -7
  165. data/spec/models/{rpm_remote_spec.rb → rpm_rpm_remote_spec.rb} +11 -23
  166. data/spec/models/rpm_rpm_repository_spec.rb +71 -0
  167. data/spec/models/rpm_update_collection_spec.rb +53 -0
  168. data/spec/models/{update_record_spec.rb → rpm_update_record_spec.rb} +19 -7
  169. data/spec/models/variant_spec.rb +1 -1
  170. data/spec/spec_helper.rb +1 -1
  171. metadata +126 -46
  172. data/docs/RpmCopyApi.md +0 -70
  173. data/lib/pulp_rpm_client/api/rpm_copy_api.rb +0 -96
  174. data/spec/api/rpm_copy_api_spec.rb +0 -50
@@ -0,0 +1,227 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.2-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpRpmClient
16
+ class ContentPackageenvironmentsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Delete a package environment
23
+ # PackageEnvironment ViewSet.
24
+ # @param package_environment_href [String] URI of Package Environment. e.g.: /pulp/api/v3/content/rpm/packageenvironments/1/
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [nil]
27
+ def delete(package_environment_href, opts = {})
28
+ delete_with_http_info(package_environment_href, opts)
29
+ nil
30
+ end
31
+
32
+ # Delete a package environment
33
+ # PackageEnvironment ViewSet.
34
+ # @param package_environment_href [String] URI of Package Environment. e.g.: /pulp/api/v3/content/rpm/packageenvironments/1/
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
37
+ def delete_with_http_info(package_environment_href, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: ContentPackageenvironmentsApi.delete ...'
40
+ end
41
+ # verify the required parameter 'package_environment_href' is set
42
+ if @api_client.config.client_side_validation && package_environment_href.nil?
43
+ fail ArgumentError, "Missing the required parameter 'package_environment_href' when calling ContentPackageenvironmentsApi.delete"
44
+ end
45
+ # resource path
46
+ local_var_path = '{package_environment_href}'.sub('{' + 'package_environment_href' + '}', CGI.escape(package_environment_href.to_s).gsub('%2F', '/'))
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+
51
+ # header parameters
52
+ header_params = opts[:header_params] || {}
53
+
54
+ # form parameters
55
+ form_params = opts[:form_params] || {}
56
+
57
+ # http body (model)
58
+ post_body = opts[:body]
59
+
60
+ # return_type
61
+ return_type = opts[:return_type]
62
+
63
+ # auth_names
64
+ auth_names = opts[:auth_names] || ['Basic']
65
+
66
+ new_options = opts.merge(
67
+ :header_params => header_params,
68
+ :query_params => query_params,
69
+ :form_params => form_params,
70
+ :body => post_body,
71
+ :auth_names => auth_names,
72
+ :return_type => return_type
73
+ )
74
+
75
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
76
+ if @api_client.config.debugging
77
+ @api_client.config.logger.debug "API called: ContentPackageenvironmentsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
78
+ end
79
+ return data, status_code, headers
80
+ end
81
+
82
+ # List package environments
83
+ # PackageEnvironment ViewSet.
84
+ # @param [Hash] opts the optional parameters
85
+ # @option opts [String] :repository_version Repository Version referenced by HREF
86
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
87
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
88
+ # @option opts [Integer] :limit Number of results to return per page.
89
+ # @option opts [Integer] :offset The initial index from which to return the results.
90
+ # @option opts [String] :fields A list of fields to include in the response.
91
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
92
+ # @return [InlineResponse2005]
93
+ def list(opts = {})
94
+ data, _status_code, _headers = list_with_http_info(opts)
95
+ data
96
+ end
97
+
98
+ # List package environments
99
+ # PackageEnvironment ViewSet.
100
+ # @param [Hash] opts the optional parameters
101
+ # @option opts [String] :repository_version Repository Version referenced by HREF
102
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
103
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
104
+ # @option opts [Integer] :limit Number of results to return per page.
105
+ # @option opts [Integer] :offset The initial index from which to return the results.
106
+ # @option opts [String] :fields A list of fields to include in the response.
107
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
108
+ # @return [Array<(InlineResponse2005, Integer, Hash)>] InlineResponse2005 data, response status code and response headers
109
+ def list_with_http_info(opts = {})
110
+ if @api_client.config.debugging
111
+ @api_client.config.logger.debug 'Calling API: ContentPackageenvironmentsApi.list ...'
112
+ end
113
+ # resource path
114
+ local_var_path = '/pulp/api/v3/content/rpm/packageenvironments/'
115
+
116
+ # query parameters
117
+ query_params = opts[:query_params] || {}
118
+ query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
119
+ query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
120
+ query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
121
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
122
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
123
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
124
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
125
+
126
+ # header parameters
127
+ header_params = opts[:header_params] || {}
128
+ # HTTP header 'Accept' (if needed)
129
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
130
+
131
+ # form parameters
132
+ form_params = opts[:form_params] || {}
133
+
134
+ # http body (model)
135
+ post_body = opts[:body]
136
+
137
+ # return_type
138
+ return_type = opts[:return_type] || 'InlineResponse2005'
139
+
140
+ # auth_names
141
+ auth_names = opts[:auth_names] || ['Basic']
142
+
143
+ new_options = opts.merge(
144
+ :header_params => header_params,
145
+ :query_params => query_params,
146
+ :form_params => form_params,
147
+ :body => post_body,
148
+ :auth_names => auth_names,
149
+ :return_type => return_type
150
+ )
151
+
152
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
153
+ if @api_client.config.debugging
154
+ @api_client.config.logger.debug "API called: ContentPackageenvironmentsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
155
+ end
156
+ return data, status_code, headers
157
+ end
158
+
159
+ # Inspect a package environment
160
+ # PackageEnvironment ViewSet.
161
+ # @param package_environment_href [String] URI of Package Environment. e.g.: /pulp/api/v3/content/rpm/packageenvironments/1/
162
+ # @param [Hash] opts the optional parameters
163
+ # @option opts [String] :fields A list of fields to include in the response.
164
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
165
+ # @return [RpmPackageEnvironment]
166
+ def read(package_environment_href, opts = {})
167
+ data, _status_code, _headers = read_with_http_info(package_environment_href, opts)
168
+ data
169
+ end
170
+
171
+ # Inspect a package environment
172
+ # PackageEnvironment ViewSet.
173
+ # @param package_environment_href [String] URI of Package Environment. e.g.: /pulp/api/v3/content/rpm/packageenvironments/1/
174
+ # @param [Hash] opts the optional parameters
175
+ # @option opts [String] :fields A list of fields to include in the response.
176
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
177
+ # @return [Array<(RpmPackageEnvironment, Integer, Hash)>] RpmPackageEnvironment data, response status code and response headers
178
+ def read_with_http_info(package_environment_href, opts = {})
179
+ if @api_client.config.debugging
180
+ @api_client.config.logger.debug 'Calling API: ContentPackageenvironmentsApi.read ...'
181
+ end
182
+ # verify the required parameter 'package_environment_href' is set
183
+ if @api_client.config.client_side_validation && package_environment_href.nil?
184
+ fail ArgumentError, "Missing the required parameter 'package_environment_href' when calling ContentPackageenvironmentsApi.read"
185
+ end
186
+ # resource path
187
+ local_var_path = '{package_environment_href}'.sub('{' + 'package_environment_href' + '}', CGI.escape(package_environment_href.to_s).gsub('%2F', '/'))
188
+
189
+ # query parameters
190
+ query_params = opts[:query_params] || {}
191
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
192
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
193
+
194
+ # header parameters
195
+ header_params = opts[:header_params] || {}
196
+ # HTTP header 'Accept' (if needed)
197
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
198
+
199
+ # form parameters
200
+ form_params = opts[:form_params] || {}
201
+
202
+ # http body (model)
203
+ post_body = opts[:body]
204
+
205
+ # return_type
206
+ return_type = opts[:return_type] || 'RpmPackageEnvironment'
207
+
208
+ # auth_names
209
+ auth_names = opts[:auth_names] || ['Basic']
210
+
211
+ new_options = opts.merge(
212
+ :header_params => header_params,
213
+ :query_params => query_params,
214
+ :form_params => form_params,
215
+ :body => post_body,
216
+ :auth_names => auth_names,
217
+ :return_type => return_type
218
+ )
219
+
220
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
221
+ if @api_client.config.debugging
222
+ @api_client.config.logger.debug "API called: ContentPackageenvironmentsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
223
+ end
224
+ return data, status_code, headers
225
+ end
226
+ end
227
+ end
@@ -0,0 +1,227 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.2-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpRpmClient
16
+ class ContentPackagegroupsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Delete a package group
23
+ # PackageGroup ViewSet.
24
+ # @param package_group_href [String] URI of Package Group. e.g.: /pulp/api/v3/content/rpm/packagegroups/1/
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [nil]
27
+ def delete(package_group_href, opts = {})
28
+ delete_with_http_info(package_group_href, opts)
29
+ nil
30
+ end
31
+
32
+ # Delete a package group
33
+ # PackageGroup ViewSet.
34
+ # @param package_group_href [String] URI of Package Group. e.g.: /pulp/api/v3/content/rpm/packagegroups/1/
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
37
+ def delete_with_http_info(package_group_href, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: ContentPackagegroupsApi.delete ...'
40
+ end
41
+ # verify the required parameter 'package_group_href' is set
42
+ if @api_client.config.client_side_validation && package_group_href.nil?
43
+ fail ArgumentError, "Missing the required parameter 'package_group_href' when calling ContentPackagegroupsApi.delete"
44
+ end
45
+ # resource path
46
+ local_var_path = '{package_group_href}'.sub('{' + 'package_group_href' + '}', CGI.escape(package_group_href.to_s).gsub('%2F', '/'))
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+
51
+ # header parameters
52
+ header_params = opts[:header_params] || {}
53
+
54
+ # form parameters
55
+ form_params = opts[:form_params] || {}
56
+
57
+ # http body (model)
58
+ post_body = opts[:body]
59
+
60
+ # return_type
61
+ return_type = opts[:return_type]
62
+
63
+ # auth_names
64
+ auth_names = opts[:auth_names] || ['Basic']
65
+
66
+ new_options = opts.merge(
67
+ :header_params => header_params,
68
+ :query_params => query_params,
69
+ :form_params => form_params,
70
+ :body => post_body,
71
+ :auth_names => auth_names,
72
+ :return_type => return_type
73
+ )
74
+
75
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
76
+ if @api_client.config.debugging
77
+ @api_client.config.logger.debug "API called: ContentPackagegroupsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
78
+ end
79
+ return data, status_code, headers
80
+ end
81
+
82
+ # List package groups
83
+ # PackageGroup ViewSet.
84
+ # @param [Hash] opts the optional parameters
85
+ # @option opts [String] :repository_version Repository Version referenced by HREF
86
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
87
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
88
+ # @option opts [Integer] :limit Number of results to return per page.
89
+ # @option opts [Integer] :offset The initial index from which to return the results.
90
+ # @option opts [String] :fields A list of fields to include in the response.
91
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
92
+ # @return [InlineResponse2006]
93
+ def list(opts = {})
94
+ data, _status_code, _headers = list_with_http_info(opts)
95
+ data
96
+ end
97
+
98
+ # List package groups
99
+ # PackageGroup ViewSet.
100
+ # @param [Hash] opts the optional parameters
101
+ # @option opts [String] :repository_version Repository Version referenced by HREF
102
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
103
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
104
+ # @option opts [Integer] :limit Number of results to return per page.
105
+ # @option opts [Integer] :offset The initial index from which to return the results.
106
+ # @option opts [String] :fields A list of fields to include in the response.
107
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
108
+ # @return [Array<(InlineResponse2006, Integer, Hash)>] InlineResponse2006 data, response status code and response headers
109
+ def list_with_http_info(opts = {})
110
+ if @api_client.config.debugging
111
+ @api_client.config.logger.debug 'Calling API: ContentPackagegroupsApi.list ...'
112
+ end
113
+ # resource path
114
+ local_var_path = '/pulp/api/v3/content/rpm/packagegroups/'
115
+
116
+ # query parameters
117
+ query_params = opts[:query_params] || {}
118
+ query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
119
+ query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
120
+ query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
121
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
122
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
123
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
124
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
125
+
126
+ # header parameters
127
+ header_params = opts[:header_params] || {}
128
+ # HTTP header 'Accept' (if needed)
129
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
130
+
131
+ # form parameters
132
+ form_params = opts[:form_params] || {}
133
+
134
+ # http body (model)
135
+ post_body = opts[:body]
136
+
137
+ # return_type
138
+ return_type = opts[:return_type] || 'InlineResponse2006'
139
+
140
+ # auth_names
141
+ auth_names = opts[:auth_names] || ['Basic']
142
+
143
+ new_options = opts.merge(
144
+ :header_params => header_params,
145
+ :query_params => query_params,
146
+ :form_params => form_params,
147
+ :body => post_body,
148
+ :auth_names => auth_names,
149
+ :return_type => return_type
150
+ )
151
+
152
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
153
+ if @api_client.config.debugging
154
+ @api_client.config.logger.debug "API called: ContentPackagegroupsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
155
+ end
156
+ return data, status_code, headers
157
+ end
158
+
159
+ # Inspect a package group
160
+ # PackageGroup ViewSet.
161
+ # @param package_group_href [String] URI of Package Group. e.g.: /pulp/api/v3/content/rpm/packagegroups/1/
162
+ # @param [Hash] opts the optional parameters
163
+ # @option opts [String] :fields A list of fields to include in the response.
164
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
165
+ # @return [RpmPackageGroup]
166
+ def read(package_group_href, opts = {})
167
+ data, _status_code, _headers = read_with_http_info(package_group_href, opts)
168
+ data
169
+ end
170
+
171
+ # Inspect a package group
172
+ # PackageGroup ViewSet.
173
+ # @param package_group_href [String] URI of Package Group. e.g.: /pulp/api/v3/content/rpm/packagegroups/1/
174
+ # @param [Hash] opts the optional parameters
175
+ # @option opts [String] :fields A list of fields to include in the response.
176
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
177
+ # @return [Array<(RpmPackageGroup, Integer, Hash)>] RpmPackageGroup data, response status code and response headers
178
+ def read_with_http_info(package_group_href, opts = {})
179
+ if @api_client.config.debugging
180
+ @api_client.config.logger.debug 'Calling API: ContentPackagegroupsApi.read ...'
181
+ end
182
+ # verify the required parameter 'package_group_href' is set
183
+ if @api_client.config.client_side_validation && package_group_href.nil?
184
+ fail ArgumentError, "Missing the required parameter 'package_group_href' when calling ContentPackagegroupsApi.read"
185
+ end
186
+ # resource path
187
+ local_var_path = '{package_group_href}'.sub('{' + 'package_group_href' + '}', CGI.escape(package_group_href.to_s).gsub('%2F', '/'))
188
+
189
+ # query parameters
190
+ query_params = opts[:query_params] || {}
191
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
192
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
193
+
194
+ # header parameters
195
+ header_params = opts[:header_params] || {}
196
+ # HTTP header 'Accept' (if needed)
197
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
198
+
199
+ # form parameters
200
+ form_params = opts[:form_params] || {}
201
+
202
+ # http body (model)
203
+ post_body = opts[:body]
204
+
205
+ # return_type
206
+ return_type = opts[:return_type] || 'RpmPackageGroup'
207
+
208
+ # auth_names
209
+ auth_names = opts[:auth_names] || ['Basic']
210
+
211
+ new_options = opts.merge(
212
+ :header_params => header_params,
213
+ :query_params => query_params,
214
+ :form_params => form_params,
215
+ :body => post_body,
216
+ :auth_names => auth_names,
217
+ :return_type => return_type
218
+ )
219
+
220
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
221
+ if @api_client.config.debugging
222
+ @api_client.config.logger.debug "API called: ContentPackagegroupsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
223
+ end
224
+ return data, status_code, headers
225
+ end
226
+ end
227
+ end
@@ -0,0 +1,227 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.2-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpRpmClient
16
+ class ContentPackagelangpacksApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Delete a package langpacks
23
+ # PackageLangpacks ViewSet.
24
+ # @param package_langpacks_href [String] URI of Package Langpacks. e.g.: /pulp/api/v3/content/rpm/packagelangpacks/1/
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [nil]
27
+ def delete(package_langpacks_href, opts = {})
28
+ delete_with_http_info(package_langpacks_href, opts)
29
+ nil
30
+ end
31
+
32
+ # Delete a package langpacks
33
+ # PackageLangpacks ViewSet.
34
+ # @param package_langpacks_href [String] URI of Package Langpacks. e.g.: /pulp/api/v3/content/rpm/packagelangpacks/1/
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
37
+ def delete_with_http_info(package_langpacks_href, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: ContentPackagelangpacksApi.delete ...'
40
+ end
41
+ # verify the required parameter 'package_langpacks_href' is set
42
+ if @api_client.config.client_side_validation && package_langpacks_href.nil?
43
+ fail ArgumentError, "Missing the required parameter 'package_langpacks_href' when calling ContentPackagelangpacksApi.delete"
44
+ end
45
+ # resource path
46
+ local_var_path = '{package_langpacks_href}'.sub('{' + 'package_langpacks_href' + '}', CGI.escape(package_langpacks_href.to_s).gsub('%2F', '/'))
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+
51
+ # header parameters
52
+ header_params = opts[:header_params] || {}
53
+
54
+ # form parameters
55
+ form_params = opts[:form_params] || {}
56
+
57
+ # http body (model)
58
+ post_body = opts[:body]
59
+
60
+ # return_type
61
+ return_type = opts[:return_type]
62
+
63
+ # auth_names
64
+ auth_names = opts[:auth_names] || ['Basic']
65
+
66
+ new_options = opts.merge(
67
+ :header_params => header_params,
68
+ :query_params => query_params,
69
+ :form_params => form_params,
70
+ :body => post_body,
71
+ :auth_names => auth_names,
72
+ :return_type => return_type
73
+ )
74
+
75
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
76
+ if @api_client.config.debugging
77
+ @api_client.config.logger.debug "API called: ContentPackagelangpacksApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
78
+ end
79
+ return data, status_code, headers
80
+ end
81
+
82
+ # List package langpackss
83
+ # PackageLangpacks ViewSet.
84
+ # @param [Hash] opts the optional parameters
85
+ # @option opts [String] :repository_version Repository Version referenced by HREF
86
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
87
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
88
+ # @option opts [Integer] :limit Number of results to return per page.
89
+ # @option opts [Integer] :offset The initial index from which to return the results.
90
+ # @option opts [String] :fields A list of fields to include in the response.
91
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
92
+ # @return [InlineResponse2007]
93
+ def list(opts = {})
94
+ data, _status_code, _headers = list_with_http_info(opts)
95
+ data
96
+ end
97
+
98
+ # List package langpackss
99
+ # PackageLangpacks ViewSet.
100
+ # @param [Hash] opts the optional parameters
101
+ # @option opts [String] :repository_version Repository Version referenced by HREF
102
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
103
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
104
+ # @option opts [Integer] :limit Number of results to return per page.
105
+ # @option opts [Integer] :offset The initial index from which to return the results.
106
+ # @option opts [String] :fields A list of fields to include in the response.
107
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
108
+ # @return [Array<(InlineResponse2007, Integer, Hash)>] InlineResponse2007 data, response status code and response headers
109
+ def list_with_http_info(opts = {})
110
+ if @api_client.config.debugging
111
+ @api_client.config.logger.debug 'Calling API: ContentPackagelangpacksApi.list ...'
112
+ end
113
+ # resource path
114
+ local_var_path = '/pulp/api/v3/content/rpm/packagelangpacks/'
115
+
116
+ # query parameters
117
+ query_params = opts[:query_params] || {}
118
+ query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
119
+ query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
120
+ query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
121
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
122
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
123
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
124
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
125
+
126
+ # header parameters
127
+ header_params = opts[:header_params] || {}
128
+ # HTTP header 'Accept' (if needed)
129
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
130
+
131
+ # form parameters
132
+ form_params = opts[:form_params] || {}
133
+
134
+ # http body (model)
135
+ post_body = opts[:body]
136
+
137
+ # return_type
138
+ return_type = opts[:return_type] || 'InlineResponse2007'
139
+
140
+ # auth_names
141
+ auth_names = opts[:auth_names] || ['Basic']
142
+
143
+ new_options = opts.merge(
144
+ :header_params => header_params,
145
+ :query_params => query_params,
146
+ :form_params => form_params,
147
+ :body => post_body,
148
+ :auth_names => auth_names,
149
+ :return_type => return_type
150
+ )
151
+
152
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
153
+ if @api_client.config.debugging
154
+ @api_client.config.logger.debug "API called: ContentPackagelangpacksApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
155
+ end
156
+ return data, status_code, headers
157
+ end
158
+
159
+ # Inspect a package langpacks
160
+ # PackageLangpacks ViewSet.
161
+ # @param package_langpacks_href [String] URI of Package Langpacks. e.g.: /pulp/api/v3/content/rpm/packagelangpacks/1/
162
+ # @param [Hash] opts the optional parameters
163
+ # @option opts [String] :fields A list of fields to include in the response.
164
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
165
+ # @return [RpmPackageLangpacks]
166
+ def read(package_langpacks_href, opts = {})
167
+ data, _status_code, _headers = read_with_http_info(package_langpacks_href, opts)
168
+ data
169
+ end
170
+
171
+ # Inspect a package langpacks
172
+ # PackageLangpacks ViewSet.
173
+ # @param package_langpacks_href [String] URI of Package Langpacks. e.g.: /pulp/api/v3/content/rpm/packagelangpacks/1/
174
+ # @param [Hash] opts the optional parameters
175
+ # @option opts [String] :fields A list of fields to include in the response.
176
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
177
+ # @return [Array<(RpmPackageLangpacks, Integer, Hash)>] RpmPackageLangpacks data, response status code and response headers
178
+ def read_with_http_info(package_langpacks_href, opts = {})
179
+ if @api_client.config.debugging
180
+ @api_client.config.logger.debug 'Calling API: ContentPackagelangpacksApi.read ...'
181
+ end
182
+ # verify the required parameter 'package_langpacks_href' is set
183
+ if @api_client.config.client_side_validation && package_langpacks_href.nil?
184
+ fail ArgumentError, "Missing the required parameter 'package_langpacks_href' when calling ContentPackagelangpacksApi.read"
185
+ end
186
+ # resource path
187
+ local_var_path = '{package_langpacks_href}'.sub('{' + 'package_langpacks_href' + '}', CGI.escape(package_langpacks_href.to_s).gsub('%2F', '/'))
188
+
189
+ # query parameters
190
+ query_params = opts[:query_params] || {}
191
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
192
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
193
+
194
+ # header parameters
195
+ header_params = opts[:header_params] || {}
196
+ # HTTP header 'Accept' (if needed)
197
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
198
+
199
+ # form parameters
200
+ form_params = opts[:form_params] || {}
201
+
202
+ # http body (model)
203
+ post_body = opts[:body]
204
+
205
+ # return_type
206
+ return_type = opts[:return_type] || 'RpmPackageLangpacks'
207
+
208
+ # auth_names
209
+ auth_names = opts[:auth_names] || ['Basic']
210
+
211
+ new_options = opts.merge(
212
+ :header_params => header_params,
213
+ :query_params => query_params,
214
+ :form_params => form_params,
215
+ :body => post_body,
216
+ :auth_names => auth_names,
217
+ :return_type => return_type
218
+ )
219
+
220
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
221
+ if @api_client.config.debugging
222
+ @api_client.config.logger.debug "API called: ContentPackagelangpacksApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
223
+ end
224
+ return data, status_code, headers
225
+ end
226
+ end
227
+ end