pulp_deb_client 2.17.0 → 2.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -7
  3. data/docs/ContentGenericContentsApi.md +5 -3
  4. data/docs/ContentInstallerFileIndicesApi.md +2 -2
  5. data/docs/ContentInstallerPackagesApi.md +5 -3
  6. data/docs/ContentPackageIndicesApi.md +2 -2
  7. data/docs/ContentPackageReleaseComponentsApi.md +2 -2
  8. data/docs/ContentPackagesApi.md +5 -3
  9. data/docs/ContentReleaseArchitecturesApi.md +2 -2
  10. data/docs/ContentReleaseComponentsApi.md +2 -2
  11. data/docs/ContentReleaseFilesApi.md +2 -2
  12. data/docs/ContentReleasesApi.md +2 -2
  13. data/docs/Copy.md +21 -0
  14. data/docs/DebAptRemote.md +2 -2
  15. data/docs/DebBasePackage.md +3 -1
  16. data/docs/DebCopyApi.md +62 -0
  17. data/docs/DebGenericContent.md +3 -1
  18. data/docs/DistributionsAptApi.md +2 -2
  19. data/docs/PatcheddebAptRemote.md +2 -2
  20. data/docs/PublicationsAptApi.md +4 -2
  21. data/docs/PublicationsVerbatimApi.md +4 -2
  22. data/docs/RemotesAptApi.md +2 -2
  23. data/docs/Repair.md +17 -0
  24. data/docs/RepositoriesAptApi.md +2 -2
  25. data/docs/RepositoriesAptVersionsApi.md +6 -6
  26. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +10 -3
  27. data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +7 -3
  28. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +10 -3
  29. data/lib/pulp_deb_client/api/content_package_indices_api.rb +7 -3
  30. data/lib/pulp_deb_client/api/content_package_release_components_api.rb +7 -3
  31. data/lib/pulp_deb_client/api/content_packages_api.rb +10 -3
  32. data/lib/pulp_deb_client/api/content_release_architectures_api.rb +7 -3
  33. data/lib/pulp_deb_client/api/content_release_components_api.rb +7 -3
  34. data/lib/pulp_deb_client/api/content_release_files_api.rb +7 -3
  35. data/lib/pulp_deb_client/api/content_releases_api.rb +7 -3
  36. data/lib/pulp_deb_client/api/deb_copy_api.rb +86 -0
  37. data/lib/pulp_deb_client/api/distributions_apt_api.rb +7 -3
  38. data/lib/pulp_deb_client/api/publications_apt_api.rb +10 -3
  39. data/lib/pulp_deb_client/api/publications_verbatim_api.rb +10 -3
  40. data/lib/pulp_deb_client/api/remotes_apt_api.rb +7 -3
  41. data/lib/pulp_deb_client/api/repositories_apt_api.rb +7 -3
  42. data/lib/pulp_deb_client/api/repositories_apt_versions_api.rb +16 -12
  43. data/lib/pulp_deb_client/api_client.rb +1 -4
  44. data/lib/pulp_deb_client/configuration.rb +1 -0
  45. data/lib/pulp_deb_client/models/{content_summary.rb → copy.rb} +33 -42
  46. data/lib/pulp_deb_client/models/deb_apt_remote.rb +2 -2
  47. data/lib/pulp_deb_client/models/deb_base_package.rb +14 -4
  48. data/lib/pulp_deb_client/models/deb_generic_content.rb +14 -4
  49. data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +2 -2
  50. data/lib/pulp_deb_client/models/{repository_version.rb → repair.rb} +13 -12
  51. data/lib/pulp_deb_client/version.rb +1 -1
  52. data/lib/pulp_deb_client.rb +3 -2
  53. data/pulp_deb_client.gemspec +1 -1
  54. data/spec/api/content_generic_contents_api_spec.rb +2 -1
  55. data/spec/api/content_installer_file_indices_api_spec.rb +1 -1
  56. data/spec/api/content_installer_packages_api_spec.rb +2 -1
  57. data/spec/api/content_package_indices_api_spec.rb +1 -1
  58. data/spec/api/content_package_release_components_api_spec.rb +1 -1
  59. data/spec/api/content_packages_api_spec.rb +2 -1
  60. data/spec/api/content_release_architectures_api_spec.rb +1 -1
  61. data/spec/api/content_release_components_api_spec.rb +1 -1
  62. data/spec/api/content_release_files_api_spec.rb +1 -1
  63. data/spec/api/content_releases_api_spec.rb +1 -1
  64. data/spec/api/deb_copy_api_spec.rb +47 -0
  65. data/spec/api/distributions_apt_api_spec.rb +1 -1
  66. data/spec/api/publications_apt_api_spec.rb +2 -1
  67. data/spec/api/publications_verbatim_api_spec.rb +2 -1
  68. data/spec/api/remotes_apt_api_spec.rb +1 -1
  69. data/spec/api/repositories_apt_api_spec.rb +1 -1
  70. data/spec/api/repositories_apt_versions_api_spec.rb +2 -2
  71. data/spec/models/{content_summary_spec.rb → copy_spec.rb} +9 -9
  72. data/spec/models/deb_base_package_spec.rb +6 -0
  73. data/spec/models/deb_generic_content_spec.rb +6 -0
  74. data/spec/models/{repository_version_spec.rb → repair_spec.rb} +7 -7
  75. metadata +68 -64
  76. data/docs/ContentSummary.md +0 -21
  77. data/docs/RepositoryVersion.md +0 -17
@@ -159,7 +159,7 @@ module PulpDebClient
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 PulpDebClient
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 PulpDebClient
192
192
  if @api_client.config.debugging
193
193
  @api_client.config.logger.debug 'Calling API: DistributionsAptApi.list ...'
194
194
  end
195
+ allowable_values = ["-base_path", "-content_guard", "-deb_aptdistribution", "-group_roles", "-name", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-remote", "-repository", "-repository_version", "-user_roles", "base_path", "content_guard", "deb_aptdistribution", "group_roles", "name", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "remote", "repository", "repository_version", "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/deb/apt/'
197
201
 
@@ -208,7 +212,7 @@ module PulpDebClient
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 PulpDebClient
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 PulpDebClient
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 PulpDebClient
188
190
  if @api_client.config.debugging
189
191
  @api_client.config.logger.debug 'Calling API: PublicationsAptApi.list ...'
190
192
  end
193
+ allowable_values = ["-complete", "-deb_aptpublication", "-deb_verbatimpublication", "-distribution", "-group_roles", "-pass_through", "-pk", "-published_artifact", "-published_metadata", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repository_version", "-user_roles", "complete", "deb_aptpublication", "deb_verbatimpublication", "distribution", "group_roles", "pass_through", "pk", "published_artifact", "published_metadata", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repository_version", "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/deb/apt/'
193
199
 
@@ -197,13 +203,14 @@ module PulpDebClient
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?
@@ -150,13 +150,14 @@ module PulpDebClient
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 PulpDebClient
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 PulpDebClient
188
190
  if @api_client.config.debugging
189
191
  @api_client.config.logger.debug 'Calling API: PublicationsVerbatimApi.list ...'
190
192
  end
193
+ allowable_values = ["-complete", "-deb_aptpublication", "-deb_verbatimpublication", "-distribution", "-group_roles", "-pass_through", "-pk", "-published_artifact", "-published_metadata", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repository_version", "-user_roles", "complete", "deb_aptpublication", "deb_verbatimpublication", "distribution", "group_roles", "pass_through", "pk", "published_artifact", "published_metadata", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repository_version", "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/deb/verbatim/'
193
199
 
@@ -197,13 +203,14 @@ module PulpDebClient
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 PulpDebClient
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 PulpDebClient
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 PulpDebClient
196
196
  if @api_client.config.debugging
197
197
  @api_client.config.logger.debug 'Calling API: RemotesAptApi.list ...'
198
198
  end
199
+ allowable_values = ["-alternatecontentsource", "-basedistribution", "-ca_cert", "-client_cert", "-client_key", "-connect_timeout", "-deb_aptremote", "-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", "-sock_connect_timeout", "-sock_read_timeout", "-tls_validation", "-total_timeout", "-url", "-user_roles", "-username", "alternatecontentsource", "basedistribution", "ca_cert", "client_cert", "client_key", "connect_timeout", "deb_aptremote", "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", "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/deb/apt/'
201
205
 
@@ -208,7 +212,7 @@ module PulpDebClient
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 PulpDebClient
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 PulpDebClient
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 PulpDebClient
184
184
  if @api_client.config.debugging
185
185
  @api_client.config.logger.debug 'Calling API: RepositoriesAptApi.list ...'
186
186
  end
187
+ allowable_values = ["-alternatecontentsourcepath", "-content", "-core_pulp_exporter", "-deb_aptrepository", "-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", "-user_hidden", "-user_roles", "-versions", "alternatecontentsourcepath", "content", "core_pulp_exporter", "deb_aptrepository", "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", "user_hidden", "user_roles", "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/deb/apt/'
189
193
 
@@ -196,7 +200,7 @@ module PulpDebClient
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 PulpDebClient
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 PulpDebClient
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 PulpDebClient
142
142
  if @api_client.config.client_side_validation && deb_apt_repository_href.nil?
143
143
  fail ArgumentError, "Missing the required parameter 'deb_apt_repository_href' when calling RepositoriesAptVersionsApi.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 = '{deb_apt_repository_href}versions/'.sub('{' + 'deb_apt_repository_href' + '}', CGI.escape(deb_apt_repository_href.to_s).gsub('%2F', '/'))
147
151
 
@@ -157,7 +161,7 @@ module PulpDebClient
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 PulpDebClient
270
274
 
271
275
  # Trigger an asynchronous task to repair a repository version.
272
276
  # @param deb_apt_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(deb_apt_repository_version_href, repository_version, opts = {})
277
- data, _status_code, _headers = repair_with_http_info(deb_apt_repository_version_href, repository_version, opts)
280
+ def repair(deb_apt_repository_version_href, repair, opts = {})
281
+ data, _status_code, _headers = repair_with_http_info(deb_apt_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 deb_apt_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(deb_apt_repository_version_href, repository_version, opts = {})
290
+ def repair_with_http_info(deb_apt_repository_version_href, repair, opts = {})
287
291
  if @api_client.config.debugging
288
292
  @api_client.config.logger.debug 'Calling API: RepositoriesAptVersionsApi.repair ...'
289
293
  end
@@ -291,9 +295,9 @@ module PulpDebClient
291
295
  if @api_client.config.client_side_validation && deb_apt_repository_version_href.nil?
292
296
  fail ArgumentError, "Missing the required parameter 'deb_apt_repository_version_href' when calling RepositoriesAptVersionsApi.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 RepositoriesAptVersionsApi.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 RepositoriesAptVersionsApi.repair"
297
301
  end
298
302
  # resource path
299
303
  local_var_path = '{deb_apt_repository_version_href}repair/'.sub('{' + 'deb_apt_repository_version_href' + '}', CGI.escape(deb_apt_repository_version_href.to_s).gsub('%2F', '/'))
@@ -312,7 +316,7 @@ module PulpDebClient
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 PulpDebClient
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 PulpDebClient
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 PulpDebClient
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
@@ -13,29 +13,32 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module PulpDebClient
16
- # Serializer for the RepositoryVersion content summary
17
- class ContentSummary
18
- attr_accessor :added
16
+ # A serializer for Content Copy API.
17
+ class Copy
18
+ # A JSON document describing sources, destinations, and content to be copied
19
+ attr_accessor :config
19
20
 
20
- attr_accessor :removed
21
+ # Also copy any distributions, components, and releases as needed for any packages being copied. This will allow for structured publications of the target repository.Default is set to True
22
+ attr_accessor :structured
21
23
 
22
- attr_accessor :present
24
+ # Also copy dependencies of any packages being copied. NOT YETIMPLEMENTED! You must keep this at \"False\"!
25
+ attr_accessor :dependency_solving
23
26
 
24
27
  # Attribute mapping from ruby-style variable name to JSON key.
25
28
  def self.attribute_map
26
29
  {
27
- :'added' => :'added',
28
- :'removed' => :'removed',
29
- :'present' => :'present'
30
+ :'config' => :'config',
31
+ :'structured' => :'structured',
32
+ :'dependency_solving' => :'dependency_solving'
30
33
  }
31
34
  end
32
35
 
33
36
  # Attribute type mapping.
34
37
  def self.openapi_types
35
38
  {
36
- :'added' => :'Hash<String, Object>',
37
- :'removed' => :'Hash<String, Object>',
38
- :'present' => :'Hash<String, Object>'
39
+ :'config' => :'Object',
40
+ :'structured' => :'Boolean',
41
+ :'dependency_solving' => :'Boolean'
39
42
  }
40
43
  end
41
44
 
@@ -49,33 +52,31 @@ module PulpDebClient
49
52
  # @param [Hash] attributes Model attributes in the form of hash
50
53
  def initialize(attributes = {})
51
54
  if (!attributes.is_a?(Hash))
52
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::ContentSummary` initialize method"
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::Copy` initialize method"
53
56
  end
54
57
 
55
58
  # check to see if the attribute exists and convert string to symbol for hash key
56
59
  attributes = attributes.each_with_object({}) { |(k, v), h|
57
60
  if (!self.class.attribute_map.key?(k.to_sym))
58
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::ContentSummary`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::Copy`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
59
62
  end
60
63
  h[k.to_sym] = v
61
64
  }
62
65
 
63
- if attributes.key?(:'added')
64
- if (value = attributes[:'added']).is_a?(Hash)
65
- self.added = value
66
- end
66
+ if attributes.key?(:'config')
67
+ self.config = attributes[:'config']
67
68
  end
68
69
 
69
- if attributes.key?(:'removed')
70
- if (value = attributes[:'removed']).is_a?(Hash)
71
- self.removed = value
72
- end
70
+ if attributes.key?(:'structured')
71
+ self.structured = attributes[:'structured']
72
+ else
73
+ self.structured = true
73
74
  end
74
75
 
75
- if attributes.key?(:'present')
76
- if (value = attributes[:'present']).is_a?(Hash)
77
- self.present = value
78
- end
76
+ if attributes.key?(:'dependency_solving')
77
+ self.dependency_solving = attributes[:'dependency_solving']
78
+ else
79
+ self.dependency_solving = false
79
80
  end
80
81
  end
81
82
 
@@ -83,16 +84,8 @@ module PulpDebClient
83
84
  # @return Array for valid properties with the reasons
84
85
  def list_invalid_properties
85
86
  invalid_properties = Array.new
86
- if @added.nil?
87
- invalid_properties.push('invalid value for "added", added cannot be nil.')
88
- end
89
-
90
- if @removed.nil?
91
- invalid_properties.push('invalid value for "removed", removed cannot be nil.')
92
- end
93
-
94
- if @present.nil?
95
- invalid_properties.push('invalid value for "present", present cannot be nil.')
87
+ if @config.nil?
88
+ invalid_properties.push('invalid value for "config", config cannot be nil.')
96
89
  end
97
90
 
98
91
  invalid_properties
@@ -101,9 +94,7 @@ module PulpDebClient
101
94
  # Check to see if the all the properties in the model are valid
102
95
  # @return true if the model is valid
103
96
  def valid?
104
- return false if @added.nil?
105
- return false if @removed.nil?
106
- return false if @present.nil?
97
+ return false if @config.nil?
107
98
  true
108
99
  end
109
100
 
@@ -112,9 +103,9 @@ module PulpDebClient
112
103
  def ==(o)
113
104
  return true if self.equal?(o)
114
105
  self.class == o.class &&
115
- added == o.added &&
116
- removed == o.removed &&
117
- present == o.present
106
+ config == o.config &&
107
+ structured == o.structured &&
108
+ dependency_solving == o.dependency_solving
118
109
  end
119
110
 
120
111
  # @see the `==` method
@@ -126,7 +117,7 @@ module PulpDebClient
126
117
  # Calculates hash code according to all attributes.
127
118
  # @return [Integer] Hash code
128
119
  def hash
129
- [added, removed, present].hash
120
+ [config, structured, dependency_solving].hash
130
121
  end
131
122
 
132
123
  # Builds the object from hash
@@ -39,13 +39,13 @@ module PulpDebClient
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
@@ -27,13 +27,17 @@ module PulpDebClient
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 PulpDebClient
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 PulpDebClient
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?
@@ -121,7 +130,8 @@ module PulpDebClient
121
130
  artifact == o.artifact &&
122
131
  relative_path == o.relative_path &&
123
132
  file == o.file &&
124
- repository == o.repository
133
+ repository == o.repository &&
134
+ upload == o.upload
125
135
  end
126
136
 
127
137
  # @see the `==` method
@@ -133,7 +143,7 @@ module PulpDebClient
133
143
  # Calculates hash code according to all attributes.
134
144
  # @return [Integer] Hash code
135
145
  def hash
136
- [artifact, relative_path, file, repository].hash
146
+ [artifact, relative_path, file, repository, upload].hash
137
147
  end
138
148
 
139
149
  # Builds the object from hash