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
@@ -97,7 +97,7 @@ opts = {
97
97
  number__lte: 56, # Integer | Filter results where number is less than or equal to value
98
98
  number__range: [56], # Array<Integer> | Filter results where number is between two comma separated values
99
99
  offset: 56, # Integer | The initial index from which to return the results.
100
- ordering: 'ordering_example', # String | Which field to use when ordering the results.
100
+ ordering: ['ordering_example'], # Array<String> | Ordering
101
101
  pulp_created: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | ISO 8601 formatted dates are supported
102
102
  pulp_created__gt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is greater than value
103
103
  pulp_created__gte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is greater than or equal to value
@@ -133,7 +133,7 @@ Name | Type | Description | Notes
133
133
  **number__lte** | **Integer**| Filter results where number is less than or equal to value | [optional]
134
134
  **number__range** | [**Array&lt;Integer&gt;**](Integer.md)| Filter results where number is between two comma separated values | [optional]
135
135
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
136
- **ordering** | **String**| Which field to use when ordering the results. | [optional]
136
+ **ordering** | [**Array&lt;String&gt;**](String.md)| Ordering | [optional]
137
137
  **pulp_created** | **DateTime**| ISO 8601 formatted dates are supported | [optional]
138
138
  **pulp_created__gt** | **DateTime**| Filter results where pulp_created is greater than value | [optional]
139
139
  **pulp_created__gte** | **DateTime**| Filter results where pulp_created is greater than or equal to value | [optional]
@@ -218,7 +218,7 @@ Name | Type | Description | Notes
218
218
 
219
219
  ## repair
220
220
 
221
- > AsyncOperationResponse repair(deb_apt_repository_version_href, repository_version)
221
+ > AsyncOperationResponse repair(deb_apt_repository_version_href, repair)
222
222
 
223
223
 
224
224
 
@@ -238,10 +238,10 @@ end
238
238
 
239
239
  api_instance = PulpDebClient::RepositoriesAptVersionsApi.new
240
240
  deb_apt_repository_version_href = 'deb_apt_repository_version_href_example' # String |
241
- repository_version = PulpDebClient::RepositoryVersion.new # RepositoryVersion |
241
+ repair = PulpDebClient::Repair.new # Repair |
242
242
 
243
243
  begin
244
- result = api_instance.repair(deb_apt_repository_version_href, repository_version)
244
+ result = api_instance.repair(deb_apt_repository_version_href, repair)
245
245
  p result
246
246
  rescue PulpDebClient::ApiError => e
247
247
  puts "Exception when calling RepositoriesAptVersionsApi->repair: #{e}"
@@ -254,7 +254,7 @@ end
254
254
  Name | Type | Description | Notes
255
255
  ------------- | ------------- | ------------- | -------------
256
256
  **deb_apt_repository_version_href** | **String**| |
257
- **repository_version** | [**RepositoryVersion**](RepositoryVersion.md)| |
257
+ **repair** | [**Repair**](Repair.md)| |
258
258
 
259
259
  ### Return type
260
260
 
@@ -26,6 +26,7 @@ module PulpDebClient
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 PulpDebClient
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 PulpDebClient
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]
@@ -102,7 +105,7 @@ module PulpDebClient
102
105
  # @param [Hash] opts the optional parameters
103
106
  # @option opts [Integer] :limit Number of results to return per page.
104
107
  # @option opts [Integer] :offset The initial index from which to return the results.
105
- # @option opts [String] :ordering Which field to use when ordering the results.
108
+ # @option opts [Array<String>] :ordering Ordering
106
109
  # @option opts [String] :relative_path Filter results where relative_path matches value
107
110
  # @option opts [String] :repository_version Repository Version referenced by HREF
108
111
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
@@ -121,7 +124,7 @@ module PulpDebClient
121
124
  # @param [Hash] opts the optional parameters
122
125
  # @option opts [Integer] :limit Number of results to return per page.
123
126
  # @option opts [Integer] :offset The initial index from which to return the results.
124
- # @option opts [String] :ordering Which field to use when ordering the results.
127
+ # @option opts [Array<String>] :ordering Ordering
125
128
  # @option opts [String] :relative_path Filter results where relative_path matches value
126
129
  # @option opts [String] :repository_version Repository Version referenced by HREF
127
130
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
@@ -134,6 +137,10 @@ module PulpDebClient
134
137
  if @api_client.config.debugging
135
138
  @api_client.config.logger.debug 'Calling API: ContentGenericContentsApi.list ...'
136
139
  end
140
+ allowable_values = ["-_artifacts", "-content_ptr", "-contentartifact", "-group_roles", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-relative_path", "-repositories", "-sha256", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version_memberships", "_artifacts", "content_ptr", "contentartifact", "group_roles", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "relative_path", "repositories", "sha256", "timestamp_of_interest", "upstream_id", "user_roles", "version_memberships"]
141
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
142
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
143
+ end
137
144
  # resource path
138
145
  local_var_path = '/pulp/api/v3/content/deb/generic_contents/'
139
146
 
@@ -141,7 +148,7 @@ module PulpDebClient
141
148
  query_params = opts[:query_params] || {}
142
149
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
143
150
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
144
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
151
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
145
152
  query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
146
153
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
147
154
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
@@ -90,7 +90,7 @@ module PulpDebClient
90
90
  # @option opts [String] :component Filter results where component matches value
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] :relative_path Filter results where relative_path matches value
95
95
  # @option opts [String] :repository_version Repository Version referenced by HREF
96
96
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
@@ -111,7 +111,7 @@ module PulpDebClient
111
111
  # @option opts [String] :component Filter results where component matches value
112
112
  # @option opts [Integer] :limit Number of results to return per page.
113
113
  # @option opts [Integer] :offset The initial index from which to return the results.
114
- # @option opts [String] :ordering Which field to use when ordering the results.
114
+ # @option opts [Array<String>] :ordering Ordering
115
115
  # @option opts [String] :relative_path Filter results where relative_path matches value
116
116
  # @option opts [String] :repository_version Repository Version referenced by HREF
117
117
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
@@ -124,6 +124,10 @@ module PulpDebClient
124
124
  if @api_client.config.debugging
125
125
  @api_client.config.logger.debug 'Calling API: ContentInstallerFileIndicesApi.list ...'
126
126
  end
127
+ allowable_values = ["-_artifacts", "-architecture", "-component", "-content_ptr", "-contentartifact", "-group_roles", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-relative_path", "-release", "-repositories", "-sha256", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version_memberships", "_artifacts", "architecture", "component", "content_ptr", "contentartifact", "group_roles", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "relative_path", "release", "repositories", "sha256", "timestamp_of_interest", "upstream_id", "user_roles", "version_memberships"]
128
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
129
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
130
+ end
127
131
  # resource path
128
132
  local_var_path = '/pulp/api/v3/content/deb/installer_file_indices/'
129
133
 
@@ -133,7 +137,7 @@ module PulpDebClient
133
137
  query_params[:'component'] = opts[:'component'] if !opts[:'component'].nil?
134
138
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
135
139
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
136
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
140
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
137
141
  query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
138
142
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
139
143
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
@@ -26,6 +26,7 @@ module PulpDebClient
26
26
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
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(opts = {})
31
32
  data, _status_code, _headers = create_with_http_info(opts)
@@ -39,6 +40,7 @@ module PulpDebClient
39
40
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
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(opts = {})
44
46
  if @api_client.config.debugging
@@ -67,6 +69,7 @@ module PulpDebClient
67
69
  form_params['relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
68
70
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
69
71
  form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
72
+ form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
70
73
 
71
74
  # http body (model)
72
75
  post_body = opts[:body]
@@ -106,7 +109,7 @@ module PulpDebClient
106
109
  # @option opts [String] :maintainer Filter results where maintainer matches value
107
110
  # @option opts [String] :multi_arch Filter results where multi_arch matches value
108
111
  # @option opts [Integer] :offset The initial index from which to return the results.
109
- # @option opts [String] :ordering Which field to use when ordering the results.
112
+ # @option opts [Array<String>] :ordering Ordering
110
113
  # @option opts [String] :origin Filter results where origin matches value
111
114
  # @option opts [String] :original_maintainer Filter results where original_maintainer matches value
112
115
  # @option opts [String] :package Filter results where package matches value
@@ -140,7 +143,7 @@ module PulpDebClient
140
143
  # @option opts [String] :maintainer Filter results where maintainer matches value
141
144
  # @option opts [String] :multi_arch Filter results where multi_arch matches value
142
145
  # @option opts [Integer] :offset The initial index from which to return the results.
143
- # @option opts [String] :ordering Which field to use when ordering the results.
146
+ # @option opts [Array<String>] :ordering Ordering
144
147
  # @option opts [String] :origin Filter results where origin matches value
145
148
  # @option opts [String] :original_maintainer Filter results where original_maintainer matches value
146
149
  # @option opts [String] :package Filter results where package matches value
@@ -172,6 +175,10 @@ module PulpDebClient
172
175
  if @api_client.config.client_side_validation && opts[:'multi_arch'] && !allowable_values.include?(opts[:'multi_arch'])
173
176
  fail ArgumentError, "invalid value for \"multi_arch\", must be one of #{allowable_values}"
174
177
  end
178
+ allowable_values = ["-_artifacts", "-architecture", "-auto_built_package", "-breaks", "-bugs", "-build_essential", "-built_using", "-conflicts", "-content_ptr", "-contentartifact", "-custom_fields", "-depends", "-description", "-description_md5", "-enhances", "-essential", "-group_roles", "-homepage", "-installed_size", "-maintainer", "-multi_arch", "-origin", "-original_maintainer", "-package", "-pk", "-pre_depends", "-priority", "-provides", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-recommends", "-relative_path", "-replaces", "-repositories", "-section", "-sha256", "-source", "-suggests", "-tag", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version", "-version_memberships", "_artifacts", "architecture", "auto_built_package", "breaks", "bugs", "build_essential", "built_using", "conflicts", "content_ptr", "contentartifact", "custom_fields", "depends", "description", "description_md5", "enhances", "essential", "group_roles", "homepage", "installed_size", "maintainer", "multi_arch", "origin", "original_maintainer", "package", "pk", "pre_depends", "priority", "provides", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "recommends", "relative_path", "replaces", "repositories", "section", "sha256", "source", "suggests", "tag", "timestamp_of_interest", "upstream_id", "user_roles", "version", "version_memberships"]
179
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
180
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
181
+ end
175
182
  # resource path
176
183
  local_var_path = '/pulp/api/v3/content/deb/installer_packages/'
177
184
 
@@ -187,7 +194,7 @@ module PulpDebClient
187
194
  query_params[:'maintainer'] = opts[:'maintainer'] if !opts[:'maintainer'].nil?
188
195
  query_params[:'multi_arch'] = opts[:'multi_arch'] if !opts[:'multi_arch'].nil?
189
196
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
190
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
197
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
191
198
  query_params[:'origin'] = opts[:'origin'] if !opts[:'origin'].nil?
192
199
  query_params[:'original_maintainer'] = opts[:'original_maintainer'] if !opts[:'original_maintainer'].nil?
193
200
  query_params[:'package'] = opts[:'package'] if !opts[:'package'].nil?
@@ -90,7 +90,7 @@ module PulpDebClient
90
90
  # @option opts [String] :component Filter results where component matches value
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] :relative_path Filter results where relative_path matches value
95
95
  # @option opts [String] :repository_version Repository Version referenced by HREF
96
96
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
@@ -111,7 +111,7 @@ module PulpDebClient
111
111
  # @option opts [String] :component Filter results where component matches value
112
112
  # @option opts [Integer] :limit Number of results to return per page.
113
113
  # @option opts [Integer] :offset The initial index from which to return the results.
114
- # @option opts [String] :ordering Which field to use when ordering the results.
114
+ # @option opts [Array<String>] :ordering Ordering
115
115
  # @option opts [String] :relative_path Filter results where relative_path matches value
116
116
  # @option opts [String] :repository_version Repository Version referenced by HREF
117
117
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
@@ -124,6 +124,10 @@ module PulpDebClient
124
124
  if @api_client.config.debugging
125
125
  @api_client.config.logger.debug 'Calling API: ContentPackageIndicesApi.list ...'
126
126
  end
127
+ allowable_values = ["-_artifacts", "-architecture", "-artifact_set_sha256", "-component", "-content_ptr", "-contentartifact", "-group_roles", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-relative_path", "-release", "-repositories", "-sha256", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version_memberships", "_artifacts", "architecture", "artifact_set_sha256", "component", "content_ptr", "contentartifact", "group_roles", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "relative_path", "release", "repositories", "sha256", "timestamp_of_interest", "upstream_id", "user_roles", "version_memberships"]
128
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
129
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
130
+ end
127
131
  # resource path
128
132
  local_var_path = '/pulp/api/v3/content/deb/package_indices/'
129
133
 
@@ -133,7 +137,7 @@ module PulpDebClient
133
137
  query_params[:'component'] = opts[:'component'] if !opts[:'component'].nil?
134
138
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
135
139
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
136
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
140
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
137
141
  query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
138
142
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
139
143
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
@@ -88,7 +88,7 @@ module PulpDebClient
88
88
  # @param [Hash] opts the optional parameters
89
89
  # @option opts [Integer] :limit Number of results to return per page.
90
90
  # @option opts [Integer] :offset The initial index from which to return the results.
91
- # @option opts [String] :ordering Which field to use when ordering the results.
91
+ # @option opts [Array<String>] :ordering Ordering
92
92
  # @option opts [String] :package Filter results where package matches value
93
93
  # @option opts [String] :release_component Filter results where release_component matches value
94
94
  # @option opts [String] :repository_version Repository Version referenced by HREF
@@ -107,7 +107,7 @@ module PulpDebClient
107
107
  # @param [Hash] opts the optional parameters
108
108
  # @option opts [Integer] :limit Number of results to return per page.
109
109
  # @option opts [Integer] :offset The initial index from which to return the results.
110
- # @option opts [String] :ordering Which field to use when ordering the results.
110
+ # @option opts [Array<String>] :ordering Ordering
111
111
  # @option opts [String] :package Filter results where package matches value
112
112
  # @option opts [String] :release_component Filter results where release_component matches value
113
113
  # @option opts [String] :repository_version Repository Version referenced by HREF
@@ -120,6 +120,10 @@ module PulpDebClient
120
120
  if @api_client.config.debugging
121
121
  @api_client.config.logger.debug 'Calling API: ContentPackageReleaseComponentsApi.list ...'
122
122
  end
123
+ allowable_values = ["-_artifacts", "-content_ptr", "-contentartifact", "-group_roles", "-package", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-release_component", "-repositories", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version_memberships", "_artifacts", "content_ptr", "contentartifact", "group_roles", "package", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "release_component", "repositories", "timestamp_of_interest", "upstream_id", "user_roles", "version_memberships"]
124
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
125
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
126
+ end
123
127
  # resource path
124
128
  local_var_path = '/pulp/api/v3/content/deb/package_release_components/'
125
129
 
@@ -127,7 +131,7 @@ module PulpDebClient
127
131
  query_params = opts[:query_params] || {}
128
132
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
129
133
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
130
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
134
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
131
135
  query_params[:'package'] = opts[:'package'] if !opts[:'package'].nil?
132
136
  query_params[:'release_component'] = opts[:'release_component'] if !opts[:'release_component'].nil?
133
137
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
@@ -26,6 +26,7 @@ module PulpDebClient
26
26
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
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(opts = {})
31
32
  data, _status_code, _headers = create_with_http_info(opts)
@@ -39,6 +40,7 @@ module PulpDebClient
39
40
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
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(opts = {})
44
46
  if @api_client.config.debugging
@@ -67,6 +69,7 @@ module PulpDebClient
67
69
  form_params['relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
68
70
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
69
71
  form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
72
+ form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
70
73
 
71
74
  # http body (model)
72
75
  post_body = opts[:body]
@@ -106,7 +109,7 @@ module PulpDebClient
106
109
  # @option opts [String] :maintainer Filter results where maintainer matches value
107
110
  # @option opts [String] :multi_arch Filter results where multi_arch matches value
108
111
  # @option opts [Integer] :offset The initial index from which to return the results.
109
- # @option opts [String] :ordering Which field to use when ordering the results.
112
+ # @option opts [Array<String>] :ordering Ordering
110
113
  # @option opts [String] :origin Filter results where origin matches value
111
114
  # @option opts [String] :original_maintainer Filter results where original_maintainer matches value
112
115
  # @option opts [String] :package Filter results where package matches value
@@ -141,7 +144,7 @@ module PulpDebClient
141
144
  # @option opts [String] :maintainer Filter results where maintainer matches value
142
145
  # @option opts [String] :multi_arch Filter results where multi_arch matches value
143
146
  # @option opts [Integer] :offset The initial index from which to return the results.
144
- # @option opts [String] :ordering Which field to use when ordering the results.
147
+ # @option opts [Array<String>] :ordering Ordering
145
148
  # @option opts [String] :origin Filter results where origin matches value
146
149
  # @option opts [String] :original_maintainer Filter results where original_maintainer matches value
147
150
  # @option opts [String] :package Filter results where package matches value
@@ -174,6 +177,10 @@ module PulpDebClient
174
177
  if @api_client.config.client_side_validation && opts[:'multi_arch'] && !allowable_values.include?(opts[:'multi_arch'])
175
178
  fail ArgumentError, "invalid value for \"multi_arch\", must be one of #{allowable_values}"
176
179
  end
180
+ allowable_values = ["-_artifacts", "-architecture", "-auto_built_package", "-breaks", "-bugs", "-build_essential", "-built_using", "-conflicts", "-content_ptr", "-contentartifact", "-custom_fields", "-deb_packagereleasecomponent", "-depends", "-description", "-description_md5", "-enhances", "-essential", "-group_roles", "-homepage", "-installed_size", "-maintainer", "-multi_arch", "-origin", "-original_maintainer", "-package", "-pk", "-pre_depends", "-priority", "-provides", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-recommends", "-relative_path", "-replaces", "-repositories", "-section", "-sha256", "-source", "-suggests", "-tag", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version", "-version_memberships", "_artifacts", "architecture", "auto_built_package", "breaks", "bugs", "build_essential", "built_using", "conflicts", "content_ptr", "contentartifact", "custom_fields", "deb_packagereleasecomponent", "depends", "description", "description_md5", "enhances", "essential", "group_roles", "homepage", "installed_size", "maintainer", "multi_arch", "origin", "original_maintainer", "package", "pk", "pre_depends", "priority", "provides", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "recommends", "relative_path", "replaces", "repositories", "section", "sha256", "source", "suggests", "tag", "timestamp_of_interest", "upstream_id", "user_roles", "version", "version_memberships"]
181
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
182
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
183
+ end
177
184
  # resource path
178
185
  local_var_path = '/pulp/api/v3/content/deb/packages/'
179
186
 
@@ -189,7 +196,7 @@ module PulpDebClient
189
196
  query_params[:'maintainer'] = opts[:'maintainer'] if !opts[:'maintainer'].nil?
190
197
  query_params[:'multi_arch'] = opts[:'multi_arch'] if !opts[:'multi_arch'].nil?
191
198
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
192
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
199
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
193
200
  query_params[:'origin'] = opts[:'origin'] if !opts[:'origin'].nil?
194
201
  query_params[:'original_maintainer'] = opts[:'original_maintainer'] if !opts[:'original_maintainer'].nil?
195
202
  query_params[:'package'] = opts[:'package'] if !opts[:'package'].nil?
@@ -89,7 +89,7 @@ module PulpDebClient
89
89
  # @option opts [String] :architecture Filter results where architecture matches value
90
90
  # @option opts [Integer] :limit Number of results to return per page.
91
91
  # @option opts [Integer] :offset The initial index from which to return the results.
92
- # @option opts [String] :ordering Which field to use when ordering the results.
92
+ # @option opts [Array<String>] :ordering Ordering
93
93
  # @option opts [String] :release Filter results where release matches value
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
@@ -108,7 +108,7 @@ module PulpDebClient
108
108
  # @option opts [String] :architecture Filter results where architecture matches value
109
109
  # @option opts [Integer] :limit Number of results to return per page.
110
110
  # @option opts [Integer] :offset The initial index from which to return the results.
111
- # @option opts [String] :ordering Which field to use when ordering the results.
111
+ # @option opts [Array<String>] :ordering Ordering
112
112
  # @option opts [String] :release Filter results where release matches value
113
113
  # @option opts [String] :repository_version Repository Version referenced by HREF
114
114
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
@@ -120,6 +120,10 @@ module PulpDebClient
120
120
  if @api_client.config.debugging
121
121
  @api_client.config.logger.debug 'Calling API: ContentReleaseArchitecturesApi.list ...'
122
122
  end
123
+ allowable_values = ["-_artifacts", "-architecture", "-content_ptr", "-contentartifact", "-group_roles", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-release", "-repositories", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version_memberships", "_artifacts", "architecture", "content_ptr", "contentartifact", "group_roles", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "release", "repositories", "timestamp_of_interest", "upstream_id", "user_roles", "version_memberships"]
124
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
125
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
126
+ end
123
127
  # resource path
124
128
  local_var_path = '/pulp/api/v3/content/deb/release_architectures/'
125
129
 
@@ -128,7 +132,7 @@ module PulpDebClient
128
132
  query_params[:'architecture'] = opts[:'architecture'] if !opts[:'architecture'].nil?
129
133
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
130
134
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
131
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
135
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
132
136
  query_params[:'release'] = opts[:'release'] if !opts[:'release'].nil?
133
137
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
134
138
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
@@ -89,7 +89,7 @@ module PulpDebClient
89
89
  # @option opts [String] :component Filter results where component matches value
90
90
  # @option opts [Integer] :limit Number of results to return per page.
91
91
  # @option opts [Integer] :offset The initial index from which to return the results.
92
- # @option opts [String] :ordering Which field to use when ordering the results.
92
+ # @option opts [Array<String>] :ordering Ordering
93
93
  # @option opts [String] :release Filter results where release matches value
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
@@ -108,7 +108,7 @@ module PulpDebClient
108
108
  # @option opts [String] :component Filter results where component matches value
109
109
  # @option opts [Integer] :limit Number of results to return per page.
110
110
  # @option opts [Integer] :offset The initial index from which to return the results.
111
- # @option opts [String] :ordering Which field to use when ordering the results.
111
+ # @option opts [Array<String>] :ordering Ordering
112
112
  # @option opts [String] :release Filter results where release matches value
113
113
  # @option opts [String] :repository_version Repository Version referenced by HREF
114
114
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
@@ -120,6 +120,10 @@ module PulpDebClient
120
120
  if @api_client.config.debugging
121
121
  @api_client.config.logger.debug 'Calling API: ContentReleaseComponentsApi.list ...'
122
122
  end
123
+ allowable_values = ["-_artifacts", "-component", "-content_ptr", "-contentartifact", "-deb_packagereleasecomponent", "-group_roles", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-release", "-repositories", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version_memberships", "_artifacts", "component", "content_ptr", "contentartifact", "deb_packagereleasecomponent", "group_roles", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "release", "repositories", "timestamp_of_interest", "upstream_id", "user_roles", "version_memberships"]
124
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
125
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
126
+ end
123
127
  # resource path
124
128
  local_var_path = '/pulp/api/v3/content/deb/release_components/'
125
129
 
@@ -128,7 +132,7 @@ module PulpDebClient
128
132
  query_params[:'component'] = opts[:'component'] if !opts[:'component'].nil?
129
133
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
130
134
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
131
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
135
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
132
136
  query_params[:'release'] = opts[:'release'] if !opts[:'release'].nil?
133
137
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
134
138
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
@@ -89,7 +89,7 @@ module PulpDebClient
89
89
  # @option opts [String] :codename Filter results where codename matches value
90
90
  # @option opts [Integer] :limit Number of results to return per page.
91
91
  # @option opts [Integer] :offset The initial index from which to return the results.
92
- # @option opts [String] :ordering Which field to use when ordering the results.
92
+ # @option opts [Array<String>] :ordering Ordering
93
93
  # @option opts [String] :relative_path Filter results where relative_path matches value
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
@@ -110,7 +110,7 @@ module PulpDebClient
110
110
  # @option opts [String] :codename Filter results where codename matches value
111
111
  # @option opts [Integer] :limit Number of results to return per page.
112
112
  # @option opts [Integer] :offset The initial index from which to return the results.
113
- # @option opts [String] :ordering Which field to use when ordering the results.
113
+ # @option opts [Array<String>] :ordering Ordering
114
114
  # @option opts [String] :relative_path Filter results where relative_path matches value
115
115
  # @option opts [String] :repository_version Repository Version referenced by HREF
116
116
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
@@ -124,6 +124,10 @@ module PulpDebClient
124
124
  if @api_client.config.debugging
125
125
  @api_client.config.logger.debug 'Calling API: ContentReleaseFilesApi.list ...'
126
126
  end
127
+ allowable_values = ["-_artifacts", "-architectures", "-artifact_set_sha256", "-codename", "-components", "-content_ptr", "-contentartifact", "-deb_installerfileindex", "-deb_packageindex", "-distribution", "-group_roles", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-relative_path", "-repositories", "-sha256", "-suite", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version_memberships", "_artifacts", "architectures", "artifact_set_sha256", "codename", "components", "content_ptr", "contentartifact", "deb_installerfileindex", "deb_packageindex", "distribution", "group_roles", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "relative_path", "repositories", "sha256", "suite", "timestamp_of_interest", "upstream_id", "user_roles", "version_memberships"]
128
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
129
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
130
+ end
127
131
  # resource path
128
132
  local_var_path = '/pulp/api/v3/content/deb/release_files/'
129
133
 
@@ -132,7 +136,7 @@ module PulpDebClient
132
136
  query_params[:'codename'] = opts[:'codename'] if !opts[:'codename'].nil?
133
137
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
134
138
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
135
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
139
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
136
140
  query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
137
141
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
138
142
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
@@ -90,7 +90,7 @@ module PulpDebClient
90
90
  # @option opts [String] :distribution Filter results where distribution matches value
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
@@ -110,7 +110,7 @@ module PulpDebClient
110
110
  # @option opts [String] :distribution Filter results where distribution matches value
111
111
  # @option opts [Integer] :limit Number of results to return per page.
112
112
  # @option opts [Integer] :offset The initial index from which to return the results.
113
- # @option opts [String] :ordering Which field to use when ordering the results.
113
+ # @option opts [Array<String>] :ordering Ordering
114
114
  # @option opts [String] :repository_version Repository Version referenced by HREF
115
115
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
116
116
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -122,6 +122,10 @@ module PulpDebClient
122
122
  if @api_client.config.debugging
123
123
  @api_client.config.logger.debug 'Calling API: ContentReleasesApi.list ...'
124
124
  end
125
+ allowable_values = ["-_artifacts", "-codename", "-content_ptr", "-contentartifact", "-deb_releasearchitecture", "-deb_releasecomponent", "-distribution", "-group_roles", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repositories", "-suite", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version_memberships", "_artifacts", "codename", "content_ptr", "contentartifact", "deb_releasearchitecture", "deb_releasecomponent", "distribution", "group_roles", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repositories", "suite", "timestamp_of_interest", "upstream_id", "user_roles", "version_memberships"]
126
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
127
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
128
+ end
125
129
  # resource path
126
130
  local_var_path = '/pulp/api/v3/content/deb/releases/'
127
131
 
@@ -131,7 +135,7 @@ module PulpDebClient
131
135
  query_params[:'distribution'] = opts[:'distribution'] if !opts[:'distribution'].nil?
132
136
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
133
137
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
134
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
138
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
135
139
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
136
140
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
137
141
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -0,0 +1,86 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpDebClient
16
+ class DebCopyApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Copy content
23
+ # Trigger an asynchronous task to copy APT contentfrom one repository into another, creating a newrepository version.
24
+ # @param copy [Copy]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [AsyncOperationResponse]
27
+ def copy_content(copy, opts = {})
28
+ data, _status_code, _headers = copy_content_with_http_info(copy, opts)
29
+ data
30
+ end
31
+
32
+ # Copy content
33
+ # Trigger an asynchronous task to copy APT contentfrom one repository into another, creating a newrepository version.
34
+ # @param copy [Copy]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
37
+ def copy_content_with_http_info(copy, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: DebCopyApi.copy_content ...'
40
+ end
41
+ # verify the required parameter 'copy' is set
42
+ if @api_client.config.client_side_validation && copy.nil?
43
+ fail ArgumentError, "Missing the required parameter 'copy' when calling DebCopyApi.copy_content"
44
+ end
45
+ # resource path
46
+ local_var_path = '/pulp/api/v3/deb/copy/'
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+
51
+ # header parameters
52
+ header_params = opts[:header_params] || {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
+ # HTTP header 'Content-Type'
56
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
57
+
58
+ # form parameters
59
+ form_params = opts[:form_params] || {}
60
+
61
+ # http body (model)
62
+ post_body = opts[:body] || @api_client.object_to_http_body(copy)
63
+
64
+ # return_type
65
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
66
+
67
+ # auth_names
68
+ auth_names = opts[:auth_names] || ['basicAuth']
69
+
70
+ new_options = opts.merge(
71
+ :header_params => header_params,
72
+ :query_params => query_params,
73
+ :form_params => form_params,
74
+ :body => post_body,
75
+ :auth_names => auth_names,
76
+ :return_type => return_type
77
+ )
78
+
79
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
80
+ if @api_client.config.debugging
81
+ @api_client.config.logger.debug "API called: DebCopyApi#copy_content\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ end
83
+ return data, status_code, headers
84
+ end
85
+ end
86
+ end