pulp_rpm_client 3.17.4 → 3.17.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -6
  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/Repair.md +17 -0
  21. data/docs/RepositoriesRpmApi.md +2 -2
  22. data/docs/RepositoriesRpmVersionsApi.md +6 -6
  23. data/docs/RpmModulemd.md +2 -0
  24. data/docs/RpmModulemdDefaults.md +2 -0
  25. data/docs/RpmPackage.md +3 -1
  26. data/docs/RpmRpmPublication.md +2 -2
  27. data/docs/RpmRpmPublicationResponse.md +2 -2
  28. data/docs/RpmRpmRemote.md +2 -2
  29. data/docs/RpmUlnRemote.md +1 -1
  30. data/docs/RpmUlnRemoteResponse.md +0 -4
  31. data/lib/pulp_rpm_client/api/acs_rpm_api.rb +7 -3
  32. data/lib/pulp_rpm_client/api/content_advisories_api.rb +7 -3
  33. data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +7 -3
  34. data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +10 -3
  35. data/lib/pulp_rpm_client/api/content_modulemds_api.rb +10 -3
  36. data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +7 -3
  37. data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +7 -3
  38. data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +7 -3
  39. data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +7 -3
  40. data/lib/pulp_rpm_client/api/content_packages_api.rb +10 -3
  41. data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +7 -3
  42. data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +7 -3
  43. data/lib/pulp_rpm_client/api/publications_rpm_api.rb +10 -3
  44. data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +7 -3
  45. data/lib/pulp_rpm_client/api/remotes_uln_api.rb +7 -3
  46. data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +7 -3
  47. data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +16 -12
  48. data/lib/pulp_rpm_client/api_client.rb +1 -4
  49. data/lib/pulp_rpm_client/configuration.rb +1 -0
  50. data/lib/pulp_rpm_client/models/patchedrpm_rpm_remote.rb +2 -2
  51. data/lib/pulp_rpm_client/models/patchedrpm_uln_remote.rb +1 -1
  52. data/lib/pulp_rpm_client/models/{repository_version.rb → repair.rb} +13 -12
  53. data/lib/pulp_rpm_client/models/rpm_modulemd.rb +11 -1
  54. data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +11 -1
  55. data/lib/pulp_rpm_client/models/rpm_package.rb +14 -4
  56. data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +0 -4
  57. data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +0 -4
  58. data/lib/pulp_rpm_client/models/rpm_rpm_remote.rb +2 -2
  59. data/lib/pulp_rpm_client/models/rpm_uln_remote.rb +1 -1
  60. data/lib/pulp_rpm_client/models/rpm_uln_remote_response.rb +1 -31
  61. data/lib/pulp_rpm_client/version.rb +1 -1
  62. data/lib/pulp_rpm_client.rb +1 -2
  63. data/spec/api/acs_rpm_api_spec.rb +1 -1
  64. data/spec/api/content_advisories_api_spec.rb +1 -1
  65. data/spec/api/content_distribution_trees_api_spec.rb +1 -1
  66. data/spec/api/content_modulemd_defaults_api_spec.rb +2 -1
  67. data/spec/api/content_modulemds_api_spec.rb +2 -1
  68. data/spec/api/content_packagecategories_api_spec.rb +1 -1
  69. data/spec/api/content_packageenvironments_api_spec.rb +1 -1
  70. data/spec/api/content_packagegroups_api_spec.rb +1 -1
  71. data/spec/api/content_packagelangpacks_api_spec.rb +1 -1
  72. data/spec/api/content_packages_api_spec.rb +2 -1
  73. data/spec/api/content_repo_metadata_files_api_spec.rb +1 -1
  74. data/spec/api/distributions_rpm_api_spec.rb +1 -1
  75. data/spec/api/publications_rpm_api_spec.rb +2 -1
  76. data/spec/api/remotes_rpm_api_spec.rb +1 -1
  77. data/spec/api/remotes_uln_api_spec.rb +1 -1
  78. data/spec/api/repositories_rpm_api_spec.rb +1 -1
  79. data/spec/api/repositories_rpm_versions_api_spec.rb +2 -2
  80. data/spec/models/{repository_version_spec.rb → repair_spec.rb} +7 -7
  81. data/spec/models/rpm_modulemd_defaults_spec.rb +6 -0
  82. data/spec/models/rpm_modulemd_spec.rb +6 -0
  83. data/spec/models/rpm_package_spec.rb +6 -0
  84. data/spec/models/rpm_uln_remote_response_spec.rb +0 -12
  85. metadata +73 -77
  86. data/docs/ContentSummary.md +0 -21
  87. data/docs/RepositoryVersion.md +0 -17
  88. data/lib/pulp_rpm_client/models/content_summary.rb +0 -246
  89. data/spec/models/content_summary_spec.rb +0 -53
@@ -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?
@@ -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: RemotesUlnApi.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/uln/'
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?
@@ -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 [String] :fields A list of fields to include in the response.
161
161
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
@@ -175,7 +175,7 @@ module PulpRpmClient
175
175
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
176
176
  # @option opts [String] :name__startswith Filter results where name starts with value
177
177
  # @option opts [Integer] :offset The initial index from which to return the results.
178
- # @option opts [String] :ordering Which field to use when ordering the results.
178
+ # @option opts [Array<String>] :ordering Ordering
179
179
  # @option opts [String] :pulp_label_select Filter labels by search string
180
180
  # @option opts [String] :fields A list of fields to include in the response.
181
181
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
@@ -184,6 +184,10 @@ module PulpRpmClient
184
184
  if @api_client.config.debugging
185
185
  @api_client.config.logger.debug 'Calling API: RepositoriesRpmApi.list ...'
186
186
  end
187
+ allowable_values = ["-addons", "-alternatecontentsourcepath", "-content", "-core_pulp_exporter", "-description", "-distributions", "-group_roles", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-pulpimporterrepository", "-remote", "-repositorycontent", "-retain_repo_versions", "-rpm_rpmrepository", "-user_hidden", "-user_roles", "-variants", "-versions", "addons", "alternatecontentsourcepath", "content", "core_pulp_exporter", "description", "distributions", "group_roles", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "pulpimporterrepository", "remote", "repositorycontent", "retain_repo_versions", "rpm_rpmrepository", "user_hidden", "user_roles", "variants", "versions"]
188
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
189
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
190
+ end
187
191
  # resource path
188
192
  local_var_path = '/pulp/api/v3/repositories/rpm/rpm/'
189
193
 
@@ -196,7 +200,7 @@ module PulpRpmClient
196
200
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
197
201
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
198
202
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
199
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
203
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
200
204
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
201
205
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
202
206
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
@@ -95,7 +95,7 @@ module PulpRpmClient
95
95
  # @option opts [Integer] :number__lte Filter results where number is less than or equal to value
96
96
  # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
97
97
  # @option opts [Integer] :offset The initial index from which to return the results.
98
- # @option opts [String] :ordering Which field to use when ordering the results.
98
+ # @option opts [Array<String>] :ordering Ordering
99
99
  # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
100
100
  # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
101
101
  # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
@@ -124,7 +124,7 @@ module PulpRpmClient
124
124
  # @option opts [Integer] :number__lte Filter results where number is less than or equal to value
125
125
  # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
126
126
  # @option opts [Integer] :offset The initial index from which to return the results.
127
- # @option opts [String] :ordering Which field to use when ordering the results.
127
+ # @option opts [Array<String>] :ordering Ordering
128
128
  # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
129
129
  # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
130
130
  # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
@@ -142,6 +142,10 @@ module PulpRpmClient
142
142
  if @api_client.config.client_side_validation && rpm_rpm_repository_href.nil?
143
143
  fail ArgumentError, "Missing the required parameter 'rpm_rpm_repository_href' when calling RepositoriesRpmVersionsApi.list"
144
144
  end
145
+ allowable_values = ["-added_memberships", "-base_version", "-complete", "-counts", "-distribution", "-group_roles", "-number", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-removed_memberships", "-repository", "-user_roles", "-versions", "added_memberships", "base_version", "complete", "counts", "distribution", "group_roles", "number", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "removed_memberships", "repository", "user_roles", "versions"]
146
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
147
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
148
+ end
145
149
  # resource path
146
150
  local_var_path = '{rpm_rpm_repository_href}versions/'.sub('{' + 'rpm_rpm_repository_href' + '}', CGI.escape(rpm_rpm_repository_href.to_s).gsub('%2F', '/'))
147
151
 
@@ -157,7 +161,7 @@ module PulpRpmClient
157
161
  query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
158
162
  query_params[:'number__range'] = @api_client.build_collection_param(opts[:'number__range'], :csv) if !opts[:'number__range'].nil?
159
163
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
160
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
164
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
161
165
  query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
162
166
  query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
163
167
  query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
@@ -270,20 +274,20 @@ module PulpRpmClient
270
274
 
271
275
  # Trigger an asynchronous task to repair a repository version.
272
276
  # @param rpm_rpm_repository_version_href [String]
273
- # @param repository_version [RepositoryVersion]
277
+ # @param repair [Repair]
274
278
  # @param [Hash] opts the optional parameters
275
279
  # @return [AsyncOperationResponse]
276
- def repair(rpm_rpm_repository_version_href, repository_version, opts = {})
277
- data, _status_code, _headers = repair_with_http_info(rpm_rpm_repository_version_href, repository_version, opts)
280
+ def repair(rpm_rpm_repository_version_href, repair, opts = {})
281
+ data, _status_code, _headers = repair_with_http_info(rpm_rpm_repository_version_href, repair, opts)
278
282
  data
279
283
  end
280
284
 
281
285
  # Trigger an asynchronous task to repair a repository version.
282
286
  # @param rpm_rpm_repository_version_href [String]
283
- # @param repository_version [RepositoryVersion]
287
+ # @param repair [Repair]
284
288
  # @param [Hash] opts the optional parameters
285
289
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
286
- def repair_with_http_info(rpm_rpm_repository_version_href, repository_version, opts = {})
290
+ def repair_with_http_info(rpm_rpm_repository_version_href, repair, opts = {})
287
291
  if @api_client.config.debugging
288
292
  @api_client.config.logger.debug 'Calling API: RepositoriesRpmVersionsApi.repair ...'
289
293
  end
@@ -291,9 +295,9 @@ module PulpRpmClient
291
295
  if @api_client.config.client_side_validation && rpm_rpm_repository_version_href.nil?
292
296
  fail ArgumentError, "Missing the required parameter 'rpm_rpm_repository_version_href' when calling RepositoriesRpmVersionsApi.repair"
293
297
  end
294
- # verify the required parameter 'repository_version' is set
295
- if @api_client.config.client_side_validation && repository_version.nil?
296
- fail ArgumentError, "Missing the required parameter 'repository_version' when calling RepositoriesRpmVersionsApi.repair"
298
+ # verify the required parameter 'repair' is set
299
+ if @api_client.config.client_side_validation && repair.nil?
300
+ fail ArgumentError, "Missing the required parameter 'repair' when calling RepositoriesRpmVersionsApi.repair"
297
301
  end
298
302
  # resource path
299
303
  local_var_path = '{rpm_rpm_repository_version_href}repair/'.sub('{' + 'rpm_rpm_repository_version_href' + '}', CGI.escape(rpm_rpm_repository_version_href.to_s).gsub('%2F', '/'))
@@ -312,7 +316,7 @@ module PulpRpmClient
312
316
  form_params = opts[:form_params] || {}
313
317
 
314
318
  # http body (model)
315
- post_body = opts[:body] || @api_client.object_to_http_body(repository_version)
319
+ post_body = opts[:body] || @api_client.object_to_http_body(repair)
316
320
 
317
321
  # return_type
318
322
  return_type = opts[:return_type] || 'AsyncOperationResponse'
@@ -118,9 +118,6 @@ module PulpRpmClient
118
118
  update_params_for_auth! header_params, query_params, opts[:auth_names]
119
119
 
120
120
  req_opts = {
121
- :method => http_method,
122
- :headers => header_params,
123
- :params => query_params,
124
121
  :params_encoding => @config.params_encoding,
125
122
  :timeout => @config.timeout,
126
123
  :verbose => @config.debugging
@@ -128,13 +125,13 @@ module PulpRpmClient
128
125
 
129
126
  if [:post, :patch, :put, :delete].include?(http_method)
130
127
  req_body = build_request_body(header_params, form_params, opts[:body])
131
- req_opts.update :body => req_body
132
128
  if @config.debugging
133
129
  @config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n"
134
130
  end
135
131
  end
136
132
  request.headers = header_params
137
133
  request.body = req_body
134
+ request.options = OpenStruct.new(req_opts)
138
135
  request.url url
139
136
  request.params = query_params
140
137
  download_file(request) if opts[:return_type] == 'File'
@@ -140,6 +140,7 @@ module PulpRpmClient
140
140
  @ssl_client_cert = nil
141
141
  @ssl_client_key = nil
142
142
  @params_encoder = nil
143
+ @timeout = 60
143
144
  @debugging = false
144
145
  @inject_format = false
145
146
  @force_ending_format = false
@@ -39,13 +39,13 @@ module PulpRpmClient
39
39
  # The username to authenticte to the proxy.
40
40
  attr_accessor :proxy_username
41
41
 
42
- # The password to authenticte to the proxy.
42
+ # The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
43
43
  attr_accessor :proxy_password
44
44
 
45
45
  # The username to be used for authentication when syncing.
46
46
  attr_accessor :username
47
47
 
48
- # The password to be used for authentication when syncing.
48
+ # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
49
49
  attr_accessor :password
50
50
 
51
51
  attr_accessor :pulp_labels
@@ -39,7 +39,7 @@ module PulpRpmClient
39
39
  # The username to authenticte to the proxy.
40
40
  attr_accessor :proxy_username
41
41
 
42
- # The password to authenticte to the proxy.
42
+ # The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
43
43
  attr_accessor :proxy_password
44
44
 
45
45
  # Your ULN account username.
@@ -13,22 +13,21 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module PulpRpmClient
16
- # Base serializer for use with :class:`pulpcore.app.models.Model` This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
17
- class RepositoryVersion
18
- # A repository version whose content was used as the initial set of content for this repository version
19
- attr_accessor :base_version
16
+ class Repair
17
+ # Will verify that the checksum of all stored files matches what saved in the database. Otherwise only the existence of the files will be checked. Enabled by default
18
+ attr_accessor :verify_checksums
20
19
 
21
20
  # Attribute mapping from ruby-style variable name to JSON key.
22
21
  def self.attribute_map
23
22
  {
24
- :'base_version' => :'base_version'
23
+ :'verify_checksums' => :'verify_checksums'
25
24
  }
26
25
  end
27
26
 
28
27
  # Attribute type mapping.
29
28
  def self.openapi_types
30
29
  {
31
- :'base_version' => :'String'
30
+ :'verify_checksums' => :'Boolean'
32
31
  }
33
32
  end
34
33
 
@@ -42,19 +41,21 @@ module PulpRpmClient
42
41
  # @param [Hash] attributes Model attributes in the form of hash
43
42
  def initialize(attributes = {})
44
43
  if (!attributes.is_a?(Hash))
45
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::RepositoryVersion` initialize method"
44
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::Repair` initialize method"
46
45
  end
47
46
 
48
47
  # check to see if the attribute exists and convert string to symbol for hash key
49
48
  attributes = attributes.each_with_object({}) { |(k, v), h|
50
49
  if (!self.class.attribute_map.key?(k.to_sym))
51
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::RepositoryVersion`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
50
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::Repair`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
52
51
  end
53
52
  h[k.to_sym] = v
54
53
  }
55
54
 
56
- if attributes.key?(:'base_version')
57
- self.base_version = attributes[:'base_version']
55
+ if attributes.key?(:'verify_checksums')
56
+ self.verify_checksums = attributes[:'verify_checksums']
57
+ else
58
+ self.verify_checksums = true
58
59
  end
59
60
  end
60
61
 
@@ -76,7 +77,7 @@ module PulpRpmClient
76
77
  def ==(o)
77
78
  return true if self.equal?(o)
78
79
  self.class == o.class &&
79
- base_version == o.base_version
80
+ verify_checksums == o.verify_checksums
80
81
  end
81
82
 
82
83
  # @see the `==` method
@@ -88,7 +89,7 @@ module PulpRpmClient
88
89
  # Calculates hash code according to all attributes.
89
90
  # @return [Integer] Hash code
90
91
  def hash
91
- [base_version].hash
92
+ [verify_checksums].hash
92
93
  end
93
94
 
94
95
  # Builds the object from hash
@@ -27,6 +27,9 @@ module PulpRpmClient
27
27
  # A URI of a repository the new content unit should be associated with.
28
28
  attr_accessor :repository
29
29
 
30
+ # An uncommitted upload that may be turned into the artifact of the content unit.
31
+ attr_accessor :upload
32
+
30
33
  # Modulemd name.
31
34
  attr_accessor :name
32
35
 
@@ -61,6 +64,7 @@ module PulpRpmClient
61
64
  :'relative_path' => :'relative_path',
62
65
  :'file' => :'file',
63
66
  :'repository' => :'repository',
67
+ :'upload' => :'upload',
64
68
  :'name' => :'name',
65
69
  :'stream' => :'stream',
66
70
  :'version' => :'version',
@@ -80,6 +84,7 @@ module PulpRpmClient
80
84
  :'relative_path' => :'String',
81
85
  :'file' => :'File',
82
86
  :'repository' => :'String',
87
+ :'upload' => :'String',
83
88
  :'name' => :'String',
84
89
  :'stream' => :'String',
85
90
  :'version' => :'String',
@@ -131,6 +136,10 @@ module PulpRpmClient
131
136
  self.repository = attributes[:'repository']
132
137
  end
133
138
 
139
+ if attributes.key?(:'upload')
140
+ self.upload = attributes[:'upload']
141
+ end
142
+
134
143
  if attributes.key?(:'name')
135
144
  self.name = attributes[:'name']
136
145
  end
@@ -336,6 +345,7 @@ module PulpRpmClient
336
345
  relative_path == o.relative_path &&
337
346
  file == o.file &&
338
347
  repository == o.repository &&
348
+ upload == o.upload &&
339
349
  name == o.name &&
340
350
  stream == o.stream &&
341
351
  version == o.version &&
@@ -356,7 +366,7 @@ module PulpRpmClient
356
366
  # Calculates hash code according to all attributes.
357
367
  # @return [Integer] Hash code
358
368
  def hash
359
- [artifact, relative_path, file, repository, name, stream, version, static_context, context, arch, artifacts, dependencies, packages].hash
369
+ [artifact, relative_path, file, repository, upload, name, stream, version, static_context, context, arch, artifacts, dependencies, packages].hash
360
370
  end
361
371
 
362
372
  # Builds the object from hash
@@ -27,6 +27,9 @@ module PulpRpmClient
27
27
  # A URI of a repository the new content unit should be associated with.
28
28
  attr_accessor :repository
29
29
 
30
+ # An uncommitted upload that may be turned into the artifact of the content unit.
31
+ attr_accessor :upload
32
+
30
33
  # Modulemd name.
31
34
  attr_accessor :_module
32
35
 
@@ -43,6 +46,7 @@ module PulpRpmClient
43
46
  :'relative_path' => :'relative_path',
44
47
  :'file' => :'file',
45
48
  :'repository' => :'repository',
49
+ :'upload' => :'upload',
46
50
  :'_module' => :'module',
47
51
  :'stream' => :'stream',
48
52
  :'profiles' => :'profiles'
@@ -56,6 +60,7 @@ module PulpRpmClient
56
60
  :'relative_path' => :'String',
57
61
  :'file' => :'File',
58
62
  :'repository' => :'String',
63
+ :'upload' => :'String',
59
64
  :'_module' => :'String',
60
65
  :'stream' => :'String',
61
66
  :'profiles' => :'Object'
@@ -99,6 +104,10 @@ module PulpRpmClient
99
104
  self.repository = attributes[:'repository']
100
105
  end
101
106
 
107
+ if attributes.key?(:'upload')
108
+ self.upload = attributes[:'upload']
109
+ end
110
+
102
111
  if attributes.key?(:'_module')
103
112
  self._module = attributes[:'_module']
104
113
  end
@@ -211,6 +220,7 @@ module PulpRpmClient
211
220
  relative_path == o.relative_path &&
212
221
  file == o.file &&
213
222
  repository == o.repository &&
223
+ upload == o.upload &&
214
224
  _module == o._module &&
215
225
  stream == o.stream &&
216
226
  profiles == o.profiles
@@ -225,7 +235,7 @@ module PulpRpmClient
225
235
  # Calculates hash code according to all attributes.
226
236
  # @return [Integer] Hash code
227
237
  def hash
228
- [artifact, relative_path, file, repository, _module, stream, profiles].hash
238
+ [artifact, relative_path, file, repository, upload, _module, stream, profiles].hash
229
239
  end
230
240
 
231
241
  # Builds the object from hash
@@ -27,13 +27,17 @@ module PulpRpmClient
27
27
  # A URI of a repository the new content unit should be associated with.
28
28
  attr_accessor :repository
29
29
 
30
+ # An uncommitted upload that may be turned into the artifact of the content unit.
31
+ attr_accessor :upload
32
+
30
33
  # Attribute mapping from ruby-style variable name to JSON key.
31
34
  def self.attribute_map
32
35
  {
33
36
  :'artifact' => :'artifact',
34
37
  :'relative_path' => :'relative_path',
35
38
  :'file' => :'file',
36
- :'repository' => :'repository'
39
+ :'repository' => :'repository',
40
+ :'upload' => :'upload'
37
41
  }
38
42
  end
39
43
 
@@ -43,7 +47,8 @@ module PulpRpmClient
43
47
  :'artifact' => :'String',
44
48
  :'relative_path' => :'String',
45
49
  :'file' => :'File',
46
- :'repository' => :'String'
50
+ :'repository' => :'String',
51
+ :'upload' => :'String'
47
52
  }
48
53
  end
49
54
 
@@ -83,6 +88,10 @@ module PulpRpmClient
83
88
  if attributes.key?(:'repository')
84
89
  self.repository = attributes[:'repository']
85
90
  end
91
+
92
+ if attributes.key?(:'upload')
93
+ self.upload = attributes[:'upload']
94
+ end
86
95
  end
87
96
 
88
97
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -130,7 +139,8 @@ module PulpRpmClient
130
139
  artifact == o.artifact &&
131
140
  relative_path == o.relative_path &&
132
141
  file == o.file &&
133
- repository == o.repository
142
+ repository == o.repository &&
143
+ upload == o.upload
134
144
  end
135
145
 
136
146
  # @see the `==` method
@@ -142,7 +152,7 @@ module PulpRpmClient
142
152
  # Calculates hash code according to all attributes.
143
153
  # @return [Integer] Hash code
144
154
  def hash
145
- [artifact, relative_path, file, repository].hash
155
+ [artifact, relative_path, file, repository, upload].hash
146
156
  end
147
157
 
148
158
  # Builds the object from hash
@@ -100,14 +100,10 @@ module PulpRpmClient
100
100
 
101
101
  if attributes.key?(:'gpgcheck')
102
102
  self.gpgcheck = attributes[:'gpgcheck']
103
- else
104
- self.gpgcheck = 0
105
103
  end
106
104
 
107
105
  if attributes.key?(:'repo_gpgcheck')
108
106
  self.repo_gpgcheck = attributes[:'repo_gpgcheck']
109
- else
110
- self.repo_gpgcheck = 0
111
107
  end
112
108
 
113
109
  if attributes.key?(:'sqlite_metadata')
@@ -117,14 +117,10 @@ module PulpRpmClient
117
117
 
118
118
  if attributes.key?(:'gpgcheck')
119
119
  self.gpgcheck = attributes[:'gpgcheck']
120
- else
121
- self.gpgcheck = 0
122
120
  end
123
121
 
124
122
  if attributes.key?(:'repo_gpgcheck')
125
123
  self.repo_gpgcheck = attributes[:'repo_gpgcheck']
126
- else
127
- self.repo_gpgcheck = 0
128
124
  end
129
125
 
130
126
  if attributes.key?(:'sqlite_metadata')
@@ -39,13 +39,13 @@ module PulpRpmClient
39
39
  # The username to authenticte to the proxy.
40
40
  attr_accessor :proxy_username
41
41
 
42
- # The password to authenticte to the proxy.
42
+ # The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
43
43
  attr_accessor :proxy_password
44
44
 
45
45
  # The username to be used for authentication when syncing.
46
46
  attr_accessor :username
47
47
 
48
- # The password to be used for authentication when syncing.
48
+ # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
49
49
  attr_accessor :password
50
50
 
51
51
  attr_accessor :pulp_labels
@@ -39,7 +39,7 @@ module PulpRpmClient
39
39
  # The username to authenticte to the proxy.
40
40
  attr_accessor :proxy_username
41
41
 
42
- # The password to authenticte to the proxy.
42
+ # The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
43
43
  attr_accessor :proxy_password
44
44
 
45
45
  # Your ULN account username.