pulp_rpm_client 3.17.6 → 3.17.7

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 (72) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AcsRpmApi.md +2 -2
  4. data/docs/ContentAdvisoriesApi.md +2 -2
  5. data/docs/ContentDistributionTreesApi.md +2 -2
  6. data/docs/ContentModulemdDefaultsApi.md +5 -3
  7. data/docs/ContentModulemdsApi.md +4 -2
  8. data/docs/ContentPackagecategoriesApi.md +2 -2
  9. data/docs/ContentPackageenvironmentsApi.md +2 -2
  10. data/docs/ContentPackagegroupsApi.md +2 -2
  11. data/docs/ContentPackagelangpacksApi.md +2 -2
  12. data/docs/ContentPackagesApi.md +5 -3
  13. data/docs/ContentRepoMetadataFilesApi.md +2 -2
  14. data/docs/DistributionsRpmApi.md +2 -2
  15. data/docs/PatchedrpmRpmRemote.md +2 -2
  16. data/docs/PatchedrpmUlnRemote.md +1 -1
  17. data/docs/PublicationsRpmApi.md +4 -2
  18. data/docs/RemotesRpmApi.md +2 -2
  19. data/docs/RemotesUlnApi.md +2 -2
  20. data/docs/RepositoriesRpmApi.md +2 -2
  21. data/docs/RepositoriesRpmVersionsApi.md +2 -2
  22. data/docs/RpmModulemd.md +2 -0
  23. data/docs/RpmModulemdDefaults.md +2 -0
  24. data/docs/RpmPackage.md +3 -1
  25. data/docs/RpmRpmRemote.md +2 -2
  26. data/docs/RpmUlnRemote.md +1 -1
  27. data/lib/pulp_rpm_client/api/acs_rpm_api.rb +7 -3
  28. data/lib/pulp_rpm_client/api/content_advisories_api.rb +7 -3
  29. data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +7 -3
  30. data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +10 -3
  31. data/lib/pulp_rpm_client/api/content_modulemds_api.rb +10 -3
  32. data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +7 -3
  33. data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +7 -3
  34. data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +7 -3
  35. data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +7 -3
  36. data/lib/pulp_rpm_client/api/content_packages_api.rb +10 -3
  37. data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +7 -3
  38. data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +7 -3
  39. data/lib/pulp_rpm_client/api/publications_rpm_api.rb +10 -3
  40. data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +7 -3
  41. data/lib/pulp_rpm_client/api/remotes_uln_api.rb +7 -3
  42. data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +7 -3
  43. data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +7 -3
  44. data/lib/pulp_rpm_client/models/patchedrpm_rpm_remote.rb +2 -2
  45. data/lib/pulp_rpm_client/models/patchedrpm_uln_remote.rb +1 -1
  46. data/lib/pulp_rpm_client/models/rpm_modulemd.rb +11 -1
  47. data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +11 -1
  48. data/lib/pulp_rpm_client/models/rpm_package.rb +14 -4
  49. data/lib/pulp_rpm_client/models/rpm_rpm_remote.rb +2 -2
  50. data/lib/pulp_rpm_client/models/rpm_uln_remote.rb +1 -1
  51. data/lib/pulp_rpm_client/version.rb +1 -1
  52. data/spec/api/acs_rpm_api_spec.rb +1 -1
  53. data/spec/api/content_advisories_api_spec.rb +1 -1
  54. data/spec/api/content_distribution_trees_api_spec.rb +1 -1
  55. data/spec/api/content_modulemd_defaults_api_spec.rb +2 -1
  56. data/spec/api/content_modulemds_api_spec.rb +2 -1
  57. data/spec/api/content_packagecategories_api_spec.rb +1 -1
  58. data/spec/api/content_packageenvironments_api_spec.rb +1 -1
  59. data/spec/api/content_packagegroups_api_spec.rb +1 -1
  60. data/spec/api/content_packagelangpacks_api_spec.rb +1 -1
  61. data/spec/api/content_packages_api_spec.rb +2 -1
  62. data/spec/api/content_repo_metadata_files_api_spec.rb +1 -1
  63. data/spec/api/distributions_rpm_api_spec.rb +1 -1
  64. data/spec/api/publications_rpm_api_spec.rb +2 -1
  65. data/spec/api/remotes_rpm_api_spec.rb +1 -1
  66. data/spec/api/remotes_uln_api_spec.rb +1 -1
  67. data/spec/api/repositories_rpm_api_spec.rb +1 -1
  68. data/spec/api/repositories_rpm_versions_api_spec.rb +1 -1
  69. data/spec/models/rpm_modulemd_defaults_spec.rb +6 -0
  70. data/spec/models/rpm_modulemd_spec.rb +6 -0
  71. data/spec/models/rpm_package_spec.rb +6 -0
  72. metadata +69 -69
@@ -90,7 +90,7 @@ module PulpRpmClient
90
90
  # @option opts [Array<String>] :id__in Filter results where id is in a comma-separated list of values
91
91
  # @option opts [Integer] :limit Number of results to return per page.
92
92
  # @option opts [Integer] :offset The initial index from which to return the results.
93
- # @option opts [String] :ordering Which field to use when ordering the results.
93
+ # @option opts [Array<String>] :ordering Ordering
94
94
  # @option opts [String] :repository_version Repository Version referenced by HREF
95
95
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
96
96
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -118,7 +118,7 @@ module PulpRpmClient
118
118
  # @option opts [Array<String>] :id__in Filter results where id is in a comma-separated list of values
119
119
  # @option opts [Integer] :limit Number of results to return per page.
120
120
  # @option opts [Integer] :offset The initial index from which to return the results.
121
- # @option opts [String] :ordering Which field to use when ordering the results.
121
+ # @option opts [Array<String>] :ordering Ordering
122
122
  # @option opts [String] :repository_version Repository Version referenced by HREF
123
123
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
124
124
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -138,6 +138,10 @@ module PulpRpmClient
138
138
  if @api_client.config.debugging
139
139
  @api_client.config.logger.debug 'Calling API: ContentAdvisoriesApi.list ...'
140
140
  end
141
+ allowable_values = ["-_artifacts", "-collections", "-content_ptr", "-contentartifact", "-description", "-digest", "-fromstr", "-group_roles", "-id", "-issued_date", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-pushcount", "-reboot_suggested", "-references", "-release", "-repositories", "-rights", "-severity", "-solution", "-status", "-summary", "-timestamp_of_interest", "-title", "-type", "-updated_date", "-upstream_id", "-user_roles", "-version", "-version_memberships", "_artifacts", "collections", "content_ptr", "contentartifact", "description", "digest", "fromstr", "group_roles", "id", "issued_date", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "pushcount", "reboot_suggested", "references", "release", "repositories", "rights", "severity", "solution", "status", "summary", "timestamp_of_interest", "title", "type", "updated_date", "upstream_id", "user_roles", "version", "version_memberships"]
142
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
143
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
144
+ end
141
145
  # resource path
142
146
  local_var_path = '/pulp/api/v3/content/rpm/advisories/'
143
147
 
@@ -147,7 +151,7 @@ module PulpRpmClient
147
151
  query_params[:'id__in'] = @api_client.build_collection_param(opts[:'id__in'], :csv) if !opts[:'id__in'].nil?
148
152
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
149
153
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
150
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
154
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
151
155
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
152
156
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
153
157
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -24,7 +24,7 @@ module PulpRpmClient
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [Integer] :limit Number of results to return per page.
26
26
  # @option opts [Integer] :offset The initial index from which to return the results.
27
- # @option opts [String] :ordering Which field to use when ordering the results.
27
+ # @option opts [Array<String>] :ordering Ordering
28
28
  # @option opts [String] :repository_version Repository Version referenced by HREF
29
29
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
30
30
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -41,7 +41,7 @@ module PulpRpmClient
41
41
  # @param [Hash] opts the optional parameters
42
42
  # @option opts [Integer] :limit Number of results to return per page.
43
43
  # @option opts [Integer] :offset The initial index from which to return the results.
44
- # @option opts [String] :ordering Which field to use when ordering the results.
44
+ # @option opts [Array<String>] :ordering Ordering
45
45
  # @option opts [String] :repository_version Repository Version referenced by HREF
46
46
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
47
47
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -52,6 +52,10 @@ module PulpRpmClient
52
52
  if @api_client.config.debugging
53
53
  @api_client.config.logger.debug 'Calling API: ContentDistributionTreesApi.list ...'
54
54
  end
55
+ allowable_values = ["-pk", "pk"]
56
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
57
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
58
+ end
55
59
  # resource path
56
60
  local_var_path = '/pulp/api/v3/content/rpm/distribution_trees/'
57
61
 
@@ -59,7 +63,7 @@ module PulpRpmClient
59
63
  query_params = opts[:query_params] || {}
60
64
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
61
65
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
62
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
66
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
63
67
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
64
68
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
65
69
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -29,6 +29,7 @@ module PulpRpmClient
29
29
  # @option opts [String] :artifact Artifact file representing the physical content
30
30
  # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
31
31
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
32
+ # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
32
33
  # @return [AsyncOperationResponse]
33
34
  def create(relative_path, _module, stream, profiles, opts = {})
34
35
  data, _status_code, _headers = create_with_http_info(relative_path, _module, stream, profiles, opts)
@@ -45,6 +46,7 @@ module PulpRpmClient
45
46
  # @option opts [String] :artifact Artifact file representing the physical content
46
47
  # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
47
48
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
49
+ # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
48
50
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
49
51
  def create_with_http_info(relative_path, _module, stream, profiles, opts = {})
50
52
  if @api_client.config.debugging
@@ -100,6 +102,7 @@ module PulpRpmClient
100
102
  form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
101
103
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
102
104
  form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
105
+ form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
103
106
 
104
107
  # http body (model)
105
108
  post_body = opts[:body]
@@ -133,7 +136,7 @@ module PulpRpmClient
133
136
  # @option opts [String] :_module Filter results where module matches value
134
137
  # @option opts [Array<String>] :module__in Filter results where module is in a comma-separated list of values
135
138
  # @option opts [Integer] :offset The initial index from which to return the results.
136
- # @option opts [String] :ordering Which field to use when ordering the results.
139
+ # @option opts [Array<String>] :ordering Ordering
137
140
  # @option opts [String] :repository_version Repository Version referenced by HREF
138
141
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
139
142
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -155,7 +158,7 @@ module PulpRpmClient
155
158
  # @option opts [String] :_module Filter results where module matches value
156
159
  # @option opts [Array<String>] :module__in Filter results where module is in a comma-separated list of values
157
160
  # @option opts [Integer] :offset The initial index from which to return the results.
158
- # @option opts [String] :ordering Which field to use when ordering the results.
161
+ # @option opts [Array<String>] :ordering Ordering
159
162
  # @option opts [String] :repository_version Repository Version referenced by HREF
160
163
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
161
164
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -169,6 +172,10 @@ module PulpRpmClient
169
172
  if @api_client.config.debugging
170
173
  @api_client.config.logger.debug 'Calling API: ContentModulemdDefaultsApi.list ...'
171
174
  end
175
+ allowable_values = ["-_artifacts", "-content_ptr", "-contentartifact", "-digest", "-group_roles", "-module", "-pk", "-profiles", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repositories", "-stream", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version_memberships", "_artifacts", "content_ptr", "contentartifact", "digest", "group_roles", "module", "pk", "profiles", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repositories", "stream", "timestamp_of_interest", "upstream_id", "user_roles", "version_memberships"]
176
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
177
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
178
+ end
172
179
  # resource path
173
180
  local_var_path = '/pulp/api/v3/content/rpm/modulemd_defaults/'
174
181
 
@@ -178,7 +185,7 @@ module PulpRpmClient
178
185
  query_params[:'module'] = opts[:'_module'] if !opts[:'_module'].nil?
179
186
  query_params[:'module__in'] = @api_client.build_collection_param(opts[:'module__in'], :csv) if !opts[:'module__in'].nil?
180
187
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
181
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
188
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
182
189
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
183
190
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
184
191
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -33,6 +33,7 @@ module PulpRpmClient
33
33
  # @option opts [String] :artifact Artifact file representing the physical content
34
34
  # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
35
35
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
36
+ # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
36
37
  # @option opts [Boolean] :static_context Modulemd static-context flag.
37
38
  # @option opts [Array<String>] :packages Modulemd artifacts&#39; packages.
38
39
  # @return [AsyncOperationResponse]
@@ -55,6 +56,7 @@ module PulpRpmClient
55
56
  # @option opts [String] :artifact Artifact file representing the physical content
56
57
  # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
57
58
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
59
+ # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
58
60
  # @option opts [Boolean] :static_context Modulemd static-context flag.
59
61
  # @option opts [Array<String>] :packages Modulemd artifacts&#39; packages.
60
62
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
@@ -136,6 +138,7 @@ module PulpRpmClient
136
138
  form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
137
139
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
138
140
  form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
141
+ form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
139
142
  form_params['static_context'] = opts[:'static_context'] if !opts[:'static_context'].nil?
140
143
  form_params['packages'] = @api_client.build_collection_param(opts[:'packages'], :csv) if !opts[:'packages'].nil?
141
144
 
@@ -171,7 +174,7 @@ module PulpRpmClient
171
174
  # @option opts [String] :name Filter results where name matches value
172
175
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
173
176
  # @option opts [Integer] :offset The initial index from which to return the results.
174
- # @option opts [String] :ordering Which field to use when ordering the results.
177
+ # @option opts [Array<String>] :ordering Ordering
175
178
  # @option opts [String] :repository_version Repository Version referenced by HREF
176
179
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
177
180
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -193,7 +196,7 @@ module PulpRpmClient
193
196
  # @option opts [String] :name Filter results where name matches value
194
197
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
195
198
  # @option opts [Integer] :offset The initial index from which to return the results.
196
- # @option opts [String] :ordering Which field to use when ordering the results.
199
+ # @option opts [Array<String>] :ordering Ordering
197
200
  # @option opts [String] :repository_version Repository Version referenced by HREF
198
201
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
199
202
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -207,6 +210,10 @@ module PulpRpmClient
207
210
  if @api_client.config.debugging
208
211
  @api_client.config.logger.debug 'Calling API: ContentModulemdsApi.list ...'
209
212
  end
213
+ allowable_values = ["-_artifacts", "-arch", "-artifacts", "-content_ptr", "-contentartifact", "-context", "-dependencies", "-group_roles", "-name", "-packages", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repositories", "-static_context", "-stream", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version", "-version_memberships", "_artifacts", "arch", "artifacts", "content_ptr", "contentartifact", "context", "dependencies", "group_roles", "name", "packages", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repositories", "static_context", "stream", "timestamp_of_interest", "upstream_id", "user_roles", "version", "version_memberships"]
214
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
215
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
216
+ end
210
217
  # resource path
211
218
  local_var_path = '/pulp/api/v3/content/rpm/modulemds/'
212
219
 
@@ -216,7 +223,7 @@ module PulpRpmClient
216
223
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
217
224
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
218
225
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
219
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
226
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
220
227
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
221
228
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
222
229
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -24,7 +24,7 @@ module PulpRpmClient
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [Integer] :limit Number of results to return per page.
26
26
  # @option opts [Integer] :offset The initial index from which to return the results.
27
- # @option opts [String] :ordering Which field to use when ordering the results.
27
+ # @option opts [Array<String>] :ordering Ordering
28
28
  # @option opts [String] :repository_version Repository Version referenced by HREF
29
29
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
30
30
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -41,7 +41,7 @@ module PulpRpmClient
41
41
  # @param [Hash] opts the optional parameters
42
42
  # @option opts [Integer] :limit Number of results to return per page.
43
43
  # @option opts [Integer] :offset The initial index from which to return the results.
44
- # @option opts [String] :ordering Which field to use when ordering the results.
44
+ # @option opts [Array<String>] :ordering Ordering
45
45
  # @option opts [String] :repository_version Repository Version referenced by HREF
46
46
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
47
47
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -52,6 +52,10 @@ module PulpRpmClient
52
52
  if @api_client.config.debugging
53
53
  @api_client.config.logger.debug 'Calling API: ContentPackagecategoriesApi.list ...'
54
54
  end
55
+ allowable_values = ["-pk", "pk"]
56
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
57
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
58
+ end
55
59
  # resource path
56
60
  local_var_path = '/pulp/api/v3/content/rpm/packagecategories/'
57
61
 
@@ -59,7 +63,7 @@ module PulpRpmClient
59
63
  query_params = opts[:query_params] || {}
60
64
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
61
65
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
62
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
66
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
63
67
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
64
68
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
65
69
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -24,7 +24,7 @@ module PulpRpmClient
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [Integer] :limit Number of results to return per page.
26
26
  # @option opts [Integer] :offset The initial index from which to return the results.
27
- # @option opts [String] :ordering Which field to use when ordering the results.
27
+ # @option opts [Array<String>] :ordering Ordering
28
28
  # @option opts [String] :repository_version Repository Version referenced by HREF
29
29
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
30
30
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -41,7 +41,7 @@ module PulpRpmClient
41
41
  # @param [Hash] opts the optional parameters
42
42
  # @option opts [Integer] :limit Number of results to return per page.
43
43
  # @option opts [Integer] :offset The initial index from which to return the results.
44
- # @option opts [String] :ordering Which field to use when ordering the results.
44
+ # @option opts [Array<String>] :ordering Ordering
45
45
  # @option opts [String] :repository_version Repository Version referenced by HREF
46
46
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
47
47
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -52,6 +52,10 @@ module PulpRpmClient
52
52
  if @api_client.config.debugging
53
53
  @api_client.config.logger.debug 'Calling API: ContentPackageenvironmentsApi.list ...'
54
54
  end
55
+ allowable_values = ["-pk", "pk"]
56
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
57
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
58
+ end
55
59
  # resource path
56
60
  local_var_path = '/pulp/api/v3/content/rpm/packageenvironments/'
57
61
 
@@ -59,7 +63,7 @@ module PulpRpmClient
59
63
  query_params = opts[:query_params] || {}
60
64
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
61
65
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
62
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
66
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
63
67
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
64
68
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
65
69
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -24,7 +24,7 @@ module PulpRpmClient
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [Integer] :limit Number of results to return per page.
26
26
  # @option opts [Integer] :offset The initial index from which to return the results.
27
- # @option opts [String] :ordering Which field to use when ordering the results.
27
+ # @option opts [Array<String>] :ordering Ordering
28
28
  # @option opts [String] :repository_version Repository Version referenced by HREF
29
29
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
30
30
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -41,7 +41,7 @@ module PulpRpmClient
41
41
  # @param [Hash] opts the optional parameters
42
42
  # @option opts [Integer] :limit Number of results to return per page.
43
43
  # @option opts [Integer] :offset The initial index from which to return the results.
44
- # @option opts [String] :ordering Which field to use when ordering the results.
44
+ # @option opts [Array<String>] :ordering Ordering
45
45
  # @option opts [String] :repository_version Repository Version referenced by HREF
46
46
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
47
47
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -52,6 +52,10 @@ module PulpRpmClient
52
52
  if @api_client.config.debugging
53
53
  @api_client.config.logger.debug 'Calling API: ContentPackagegroupsApi.list ...'
54
54
  end
55
+ allowable_values = ["-pk", "pk"]
56
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
57
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
58
+ end
55
59
  # resource path
56
60
  local_var_path = '/pulp/api/v3/content/rpm/packagegroups/'
57
61
 
@@ -59,7 +63,7 @@ module PulpRpmClient
59
63
  query_params = opts[:query_params] || {}
60
64
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
61
65
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
62
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
66
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
63
67
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
64
68
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
65
69
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -24,7 +24,7 @@ module PulpRpmClient
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [Integer] :limit Number of results to return per page.
26
26
  # @option opts [Integer] :offset The initial index from which to return the results.
27
- # @option opts [String] :ordering Which field to use when ordering the results.
27
+ # @option opts [Array<String>] :ordering Ordering
28
28
  # @option opts [String] :repository_version Repository Version referenced by HREF
29
29
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
30
30
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -41,7 +41,7 @@ module PulpRpmClient
41
41
  # @param [Hash] opts the optional parameters
42
42
  # @option opts [Integer] :limit Number of results to return per page.
43
43
  # @option opts [Integer] :offset The initial index from which to return the results.
44
- # @option opts [String] :ordering Which field to use when ordering the results.
44
+ # @option opts [Array<String>] :ordering Ordering
45
45
  # @option opts [String] :repository_version Repository Version referenced by HREF
46
46
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
47
47
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -52,6 +52,10 @@ module PulpRpmClient
52
52
  if @api_client.config.debugging
53
53
  @api_client.config.logger.debug 'Calling API: ContentPackagelangpacksApi.list ...'
54
54
  end
55
+ allowable_values = ["-pk", "pk"]
56
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
57
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
58
+ end
55
59
  # resource path
56
60
  local_var_path = '/pulp/api/v3/content/rpm/packagelangpacks/'
57
61
 
@@ -59,7 +63,7 @@ module PulpRpmClient
59
63
  query_params = opts[:query_params] || {}
60
64
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
61
65
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
62
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
66
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
63
67
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
64
68
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
65
69
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -26,6 +26,7 @@ module PulpRpmClient
26
26
  # @option opts [String] :artifact Artifact file representing the physical content
27
27
  # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
28
28
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
29
+ # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
29
30
  # @return [AsyncOperationResponse]
30
31
  def create(relative_path, opts = {})
31
32
  data, _status_code, _headers = create_with_http_info(relative_path, opts)
@@ -39,6 +40,7 @@ module PulpRpmClient
39
40
  # @option opts [String] :artifact Artifact file representing the physical content
40
41
  # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
41
42
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
43
+ # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
42
44
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
43
45
  def create_with_http_info(relative_path, opts = {})
44
46
  if @api_client.config.debugging
@@ -71,6 +73,7 @@ module PulpRpmClient
71
73
  form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
72
74
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
73
75
  form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
76
+ form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
74
77
 
75
78
  # http body (model)
76
79
  post_body = opts[:body]
@@ -114,7 +117,7 @@ module PulpRpmClient
114
117
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
115
118
  # @option opts [String] :name__ne Filter results where name not equal to value
116
119
  # @option opts [Integer] :offset The initial index from which to return the results.
117
- # @option opts [String] :ordering Which field to use when ordering the results.
120
+ # @option opts [Array<String>] :ordering Ordering
118
121
  # @option opts [String] :pkg_id Filter results where pkgId matches value
119
122
  # @option opts [Array<String>] :pkg_id__in Filter results where pkgId is in a comma-separated list of values
120
123
  # @option opts [String] :release Filter results where release matches value
@@ -152,7 +155,7 @@ module PulpRpmClient
152
155
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
153
156
  # @option opts [String] :name__ne Filter results where name not equal to value
154
157
  # @option opts [Integer] :offset The initial index from which to return the results.
155
- # @option opts [String] :ordering Which field to use when ordering the results.
158
+ # @option opts [Array<String>] :ordering Ordering
156
159
  # @option opts [String] :pkg_id Filter results where pkgId matches value
157
160
  # @option opts [Array<String>] :pkg_id__in Filter results where pkgId is in a comma-separated list of values
158
161
  # @option opts [String] :release Filter results where release matches value
@@ -176,6 +179,10 @@ module PulpRpmClient
176
179
  if @api_client.config.client_side_validation && opts[:'checksum_type'] && !allowable_values.include?(opts[:'checksum_type'])
177
180
  fail ArgumentError, "invalid value for \"checksum_type\", must be one of #{allowable_values}"
178
181
  end
182
+ allowable_values = ["-_artifacts", "-arch", "-changelogs", "-checksum_type", "-conflicts", "-content_ptr", "-contentartifact", "-description", "-enhances", "-epoch", "-evr", "-files", "-group_roles", "-is_modular", "-location_base", "-location_href", "-name", "-obsoletes", "-pk", "-pkgId", "-provides", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-recommends", "-release", "-repositories", "-requires", "-rpm_buildhost", "-rpm_group", "-rpm_header_end", "-rpm_header_start", "-rpm_license", "-rpm_modulemd", "-rpm_packager", "-rpm_sourcerpm", "-rpm_vendor", "-size_archive", "-size_installed", "-size_package", "-suggests", "-summary", "-supplements", "-time_build", "-time_file", "-timestamp_of_interest", "-upstream_id", "-url", "-user_roles", "-version", "-version_memberships", "_artifacts", "arch", "changelogs", "checksum_type", "conflicts", "content_ptr", "contentartifact", "description", "enhances", "epoch", "evr", "files", "group_roles", "is_modular", "location_base", "location_href", "name", "obsoletes", "pk", "pkgId", "provides", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "recommends", "release", "repositories", "requires", "rpm_buildhost", "rpm_group", "rpm_header_end", "rpm_header_start", "rpm_license", "rpm_modulemd", "rpm_packager", "rpm_sourcerpm", "rpm_vendor", "size_archive", "size_installed", "size_package", "suggests", "summary", "supplements", "time_build", "time_file", "timestamp_of_interest", "upstream_id", "url", "user_roles", "version", "version_memberships"]
183
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
184
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
185
+ end
179
186
  # resource path
180
187
  local_var_path = '/pulp/api/v3/content/rpm/packages/'
181
188
 
@@ -195,7 +202,7 @@ module PulpRpmClient
195
202
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
196
203
  query_params[:'name__ne'] = opts[:'name__ne'] if !opts[:'name__ne'].nil?
197
204
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
198
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
205
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
199
206
  query_params[:'pkgId'] = opts[:'pkg_id'] if !opts[:'pkg_id'].nil?
200
207
  query_params[:'pkgId__in'] = @api_client.build_collection_param(opts[:'pkg_id__in'], :csv) if !opts[:'pkg_id__in'].nil?
201
208
  query_params[:'release'] = opts[:'release'] if !opts[:'release'].nil?
@@ -24,7 +24,7 @@ module PulpRpmClient
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [Integer] :limit Number of results to return per page.
26
26
  # @option opts [Integer] :offset The initial index from which to return the results.
27
- # @option opts [String] :ordering Which field to use when ordering the results.
27
+ # @option opts [Array<String>] :ordering Ordering
28
28
  # @option opts [String] :repository_version Repository Version referenced by HREF
29
29
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
30
30
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -41,7 +41,7 @@ module PulpRpmClient
41
41
  # @param [Hash] opts the optional parameters
42
42
  # @option opts [Integer] :limit Number of results to return per page.
43
43
  # @option opts [Integer] :offset The initial index from which to return the results.
44
- # @option opts [String] :ordering Which field to use when ordering the results.
44
+ # @option opts [Array<String>] :ordering Ordering
45
45
  # @option opts [String] :repository_version Repository Version referenced by HREF
46
46
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
47
47
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -52,6 +52,10 @@ module PulpRpmClient
52
52
  if @api_client.config.debugging
53
53
  @api_client.config.logger.debug 'Calling API: ContentRepoMetadataFilesApi.list ...'
54
54
  end
55
+ allowable_values = ["-pk", "pk"]
56
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
57
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
58
+ end
55
59
  # resource path
56
60
  local_var_path = '/pulp/api/v3/content/rpm/repo_metadata_files/'
57
61
 
@@ -59,7 +63,7 @@ module PulpRpmClient
59
63
  query_params = opts[:query_params] || {}
60
64
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
61
65
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
62
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
66
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
63
67
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
64
68
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
65
69
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -159,7 +159,7 @@ module PulpRpmClient
159
159
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
160
160
  # @option opts [String] :name__startswith Filter results where name starts with value
161
161
  # @option opts [Integer] :offset The initial index from which to return the results.
162
- # @option opts [String] :ordering Which field to use when ordering the results.
162
+ # @option opts [Array<String>] :ordering Ordering
163
163
  # @option opts [String] :pulp_label_select Filter labels by search string
164
164
  # @option opts [String] :fields A list of fields to include in the response.
165
165
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
@@ -183,7 +183,7 @@ module PulpRpmClient
183
183
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
184
184
  # @option opts [String] :name__startswith Filter results where name starts with value
185
185
  # @option opts [Integer] :offset The initial index from which to return the results.
186
- # @option opts [String] :ordering Which field to use when ordering the results.
186
+ # @option opts [Array<String>] :ordering Ordering
187
187
  # @option opts [String] :pulp_label_select Filter labels by search string
188
188
  # @option opts [String] :fields A list of fields to include in the response.
189
189
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
@@ -192,6 +192,10 @@ module PulpRpmClient
192
192
  if @api_client.config.debugging
193
193
  @api_client.config.logger.debug 'Calling API: DistributionsRpmApi.list ...'
194
194
  end
195
+ allowable_values = ["-base_path", "-content_guard", "-group_roles", "-name", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-remote", "-repository", "-repository_version", "-rpm_rpmdistribution", "-user_roles", "base_path", "content_guard", "group_roles", "name", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "remote", "repository", "repository_version", "rpm_rpmdistribution", "user_roles"]
196
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
197
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
198
+ end
195
199
  # resource path
196
200
  local_var_path = '/pulp/api/v3/distributions/rpm/rpm/'
197
201
 
@@ -208,7 +212,7 @@ module PulpRpmClient
208
212
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
209
213
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
210
214
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
211
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
215
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
212
216
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
213
217
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
214
218
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
@@ -150,13 +150,14 @@ module PulpRpmClient
150
150
  # @option opts [String] :content__in Content Unit referenced by HREF
151
151
  # @option opts [Integer] :limit Number of results to return per page.
152
152
  # @option opts [Integer] :offset The initial index from which to return the results.
153
- # @option opts [String] :ordering Which field to use when ordering the results.
153
+ # @option opts [Array<String>] :ordering Ordering
154
154
  # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
155
155
  # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
156
156
  # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
157
157
  # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
158
158
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
159
159
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
160
+ # @option opts [String] :repository Repository referenced by HREF
160
161
  # @option opts [String] :repository_version Repository Version referenced by HREF
161
162
  # @option opts [String] :fields A list of fields to include in the response.
162
163
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
@@ -173,13 +174,14 @@ module PulpRpmClient
173
174
  # @option opts [String] :content__in Content Unit referenced by HREF
174
175
  # @option opts [Integer] :limit Number of results to return per page.
175
176
  # @option opts [Integer] :offset The initial index from which to return the results.
176
- # @option opts [String] :ordering Which field to use when ordering the results.
177
+ # @option opts [Array<String>] :ordering Ordering
177
178
  # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
178
179
  # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
179
180
  # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
180
181
  # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
181
182
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
182
183
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
184
+ # @option opts [String] :repository Repository referenced by HREF
183
185
  # @option opts [String] :repository_version Repository Version referenced by HREF
184
186
  # @option opts [String] :fields A list of fields to include in the response.
185
187
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
@@ -188,6 +190,10 @@ module PulpRpmClient
188
190
  if @api_client.config.debugging
189
191
  @api_client.config.logger.debug 'Calling API: PublicationsRpmApi.list ...'
190
192
  end
193
+ allowable_values = ["-complete", "-distribution", "-group_roles", "-pass_through", "-pk", "-published_artifact", "-published_metadata", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repository_version", "-rpm_rpmpublication", "-user_roles", "complete", "distribution", "group_roles", "pass_through", "pk", "published_artifact", "published_metadata", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repository_version", "rpm_rpmpublication", "user_roles"]
194
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
195
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
196
+ end
191
197
  # resource path
192
198
  local_var_path = '/pulp/api/v3/publications/rpm/rpm/'
193
199
 
@@ -197,13 +203,14 @@ module PulpRpmClient
197
203
  query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
198
204
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
199
205
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
200
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
206
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
201
207
  query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
202
208
  query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
203
209
  query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
204
210
  query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
205
211
  query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
206
212
  query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
213
+ query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
207
214
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
208
215
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
209
216
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
@@ -155,7 +155,7 @@ module PulpRpmClient
155
155
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
156
156
  # @option opts [String] :name__startswith Filter results where name starts with value
157
157
  # @option opts [Integer] :offset The initial index from which to return the results.
158
- # @option opts [String] :ordering Which field to use when ordering the results.
158
+ # @option opts [Array<String>] :ordering Ordering
159
159
  # @option opts [String] :pulp_label_select Filter labels by search string
160
160
  # @option opts [DateTime] :pulp_last_updated ISO 8601 formatted dates are supported
161
161
  # @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
@@ -181,7 +181,7 @@ module PulpRpmClient
181
181
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
182
182
  # @option opts [String] :name__startswith Filter results where name starts with value
183
183
  # @option opts [Integer] :offset The initial index from which to return the results.
184
- # @option opts [String] :ordering Which field to use when ordering the results.
184
+ # @option opts [Array<String>] :ordering Ordering
185
185
  # @option opts [String] :pulp_label_select Filter labels by search string
186
186
  # @option opts [DateTime] :pulp_last_updated ISO 8601 formatted dates are supported
187
187
  # @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
@@ -196,6 +196,10 @@ module PulpRpmClient
196
196
  if @api_client.config.debugging
197
197
  @api_client.config.logger.debug 'Calling API: RemotesRpmApi.list ...'
198
198
  end
199
+ allowable_values = ["-alternatecontentsource", "-basedistribution", "-ca_cert", "-client_cert", "-client_key", "-connect_timeout", "-distribution", "-download_concurrency", "-group_roles", "-headers", "-max_retries", "-name", "-password", "-pk", "-policy", "-proxy_password", "-proxy_url", "-proxy_username", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-rate_limit", "-remoteartifact", "-repository", "-rpm_rpmremote", "-rpm_ulnremote", "-sock_connect_timeout", "-sock_read_timeout", "-tls_validation", "-total_timeout", "-url", "-user_roles", "-username", "alternatecontentsource", "basedistribution", "ca_cert", "client_cert", "client_key", "connect_timeout", "distribution", "download_concurrency", "group_roles", "headers", "max_retries", "name", "password", "pk", "policy", "proxy_password", "proxy_url", "proxy_username", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "rate_limit", "remoteartifact", "repository", "rpm_rpmremote", "rpm_ulnremote", "sock_connect_timeout", "sock_read_timeout", "tls_validation", "total_timeout", "url", "user_roles", "username"]
200
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
201
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
202
+ end
199
203
  # resource path
200
204
  local_var_path = '/pulp/api/v3/remotes/rpm/rpm/'
201
205
 
@@ -208,7 +212,7 @@ module PulpRpmClient
208
212
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
209
213
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
210
214
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
211
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
215
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
212
216
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
213
217
  query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
214
218
  query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?