pulpcore_client 3.32.1 → 3.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -5
  3. data/docs/AccessPoliciesApi.md +7 -1
  4. data/docs/ApiAppStatusResponse.md +21 -0
  5. data/docs/ArtifactDistributionResponse.md +8 -8
  6. data/docs/ArtifactsApi.md +3 -1
  7. data/docs/ContentApi.md +7 -3
  8. data/docs/ContentAppStatusResponse.md +3 -1
  9. data/docs/ContentguardsApi.md +11 -3
  10. data/docs/ContentguardsContentRedirectApi.md +7 -1
  11. data/docs/ContentguardsRbacApi.md +7 -1
  12. data/docs/DistributionsApi.md +11 -3
  13. data/docs/DistributionsArtifactsApi.md +7 -1
  14. data/docs/DomainsApi.md +7 -1
  15. data/docs/ExportersFilesystemApi.md +7 -1
  16. data/docs/ExportersFilesystemExportsApi.md +1 -1
  17. data/docs/ExportersPulpApi.md +7 -1
  18. data/docs/ExportersPulpExportsApi.md +1 -1
  19. data/docs/GroupsApi.md +3 -1
  20. data/docs/GroupsRolesApi.md +3 -1
  21. data/docs/GroupsUsersApi.md +1 -1
  22. data/docs/ImportersPulpApi.md +7 -1
  23. data/docs/ImportersPulpImportCheckApi.md +1 -1
  24. data/docs/ImportersPulpImportsApi.md +1 -1
  25. data/docs/OrphansApi.md +1 -1
  26. data/docs/OrphansCleanupApi.md +1 -1
  27. data/docs/PublicationsApi.md +7 -3
  28. data/docs/RemotesApi.md +11 -3
  29. data/docs/RepairApi.md +1 -1
  30. data/docs/RepositoriesApi.md +11 -3
  31. data/docs/RepositoriesReclaimSpaceApi.md +1 -1
  32. data/docs/RepositoryVersionsApi.md +3 -1
  33. data/docs/RolesApi.md +7 -1
  34. data/docs/SigningServicesApi.md +3 -1
  35. data/docs/StatusApi.md +1 -1
  36. data/docs/StatusResponse.md +4 -2
  37. data/docs/TaskGroupsApi.md +1 -1
  38. data/docs/TaskSchedulesApi.md +3 -1
  39. data/docs/TasksApi.md +9 -1
  40. data/docs/UploadsApi.md +3 -1
  41. data/docs/UpstreamPulpsApi.md +1 -1
  42. data/docs/UsersApi.md +3 -1
  43. data/docs/UsersRolesApi.md +3 -1
  44. data/docs/WorkerResponse.md +2 -0
  45. data/docs/WorkersApi.md +7 -1
  46. data/lib/pulpcore_client/api/access_policies_api.rb +9 -0
  47. data/lib/pulpcore_client/api/artifacts_api.rb +3 -0
  48. data/lib/pulpcore_client/api/content_api.rb +12 -2
  49. data/lib/pulpcore_client/api/contentguards_api.rb +18 -2
  50. data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +9 -0
  51. data/lib/pulpcore_client/api/contentguards_rbac_api.rb +9 -0
  52. data/lib/pulpcore_client/api/distributions_api.rb +18 -2
  53. data/lib/pulpcore_client/api/distributions_artifacts_api.rb +9 -0
  54. data/lib/pulpcore_client/api/domains_api.rb +9 -0
  55. data/lib/pulpcore_client/api/exporters_filesystem_api.rb +9 -0
  56. data/lib/pulpcore_client/api/exporters_pulp_api.rb +9 -0
  57. data/lib/pulpcore_client/api/groups_api.rb +3 -0
  58. data/lib/pulpcore_client/api/groups_roles_api.rb +3 -0
  59. data/lib/pulpcore_client/api/importers_pulp_api.rb +9 -0
  60. data/lib/pulpcore_client/api/publications_api.rb +12 -2
  61. data/lib/pulpcore_client/api/remotes_api.rb +18 -2
  62. data/lib/pulpcore_client/api/repositories_api.rb +18 -2
  63. data/lib/pulpcore_client/api/repository_versions_api.rb +3 -0
  64. data/lib/pulpcore_client/api/roles_api.rb +9 -0
  65. data/lib/pulpcore_client/api/signing_services_api.rb +3 -0
  66. data/lib/pulpcore_client/api/task_schedules_api.rb +3 -0
  67. data/lib/pulpcore_client/api/tasks_api.rb +12 -0
  68. data/lib/pulpcore_client/api/uploads_api.rb +3 -0
  69. data/lib/pulpcore_client/api/users_api.rb +3 -0
  70. data/lib/pulpcore_client/api/users_roles_api.rb +3 -0
  71. data/lib/pulpcore_client/api/workers_api.rb +9 -0
  72. data/lib/pulpcore_client/configuration.rb +2 -2
  73. data/lib/pulpcore_client/models/api_app_status_response.rb +230 -0
  74. data/lib/pulpcore_client/models/artifact_distribution_response.rb +31 -31
  75. data/lib/pulpcore_client/models/content_app_status_response.rb +16 -4
  76. data/lib/pulpcore_client/models/status_response.rb +20 -3
  77. data/lib/pulpcore_client/models/worker_response.rb +13 -1
  78. data/lib/pulpcore_client/version.rb +1 -1
  79. data/lib/pulpcore_client.rb +1 -0
  80. data/spec/api/access_policies_api_spec.rb +3 -0
  81. data/spec/api/artifacts_api_spec.rb +1 -0
  82. data/spec/api/content_api_spec.rb +3 -1
  83. data/spec/api/contentguards_api_spec.rb +5 -1
  84. data/spec/api/contentguards_content_redirect_api_spec.rb +3 -0
  85. data/spec/api/contentguards_rbac_api_spec.rb +3 -0
  86. data/spec/api/distributions_api_spec.rb +5 -1
  87. data/spec/api/distributions_artifacts_api_spec.rb +3 -0
  88. data/spec/api/domains_api_spec.rb +3 -0
  89. data/spec/api/exporters_filesystem_api_spec.rb +3 -0
  90. data/spec/api/exporters_pulp_api_spec.rb +3 -0
  91. data/spec/api/groups_api_spec.rb +1 -0
  92. data/spec/api/groups_roles_api_spec.rb +1 -0
  93. data/spec/api/importers_pulp_api_spec.rb +3 -0
  94. data/spec/api/publications_api_spec.rb +3 -1
  95. data/spec/api/remotes_api_spec.rb +5 -1
  96. data/spec/api/repositories_api_spec.rb +5 -1
  97. data/spec/api/repository_versions_api_spec.rb +1 -0
  98. data/spec/api/roles_api_spec.rb +3 -0
  99. data/spec/api/signing_services_api_spec.rb +1 -0
  100. data/spec/api/task_schedules_api_spec.rb +1 -0
  101. data/spec/api/tasks_api_spec.rb +4 -0
  102. data/spec/api/uploads_api_spec.rb +1 -0
  103. data/spec/api/users_api_spec.rb +1 -0
  104. data/spec/api/users_roles_api_spec.rb +1 -0
  105. data/spec/api/workers_api_spec.rb +3 -0
  106. data/spec/configuration_spec.rb +3 -3
  107. data/spec/models/api_app_status_response_spec.rb +53 -0
  108. data/spec/models/artifact_distribution_response_spec.rb +7 -7
  109. data/spec/models/content_app_status_response_spec.rb +6 -0
  110. data/spec/models/status_response_spec.rb +6 -0
  111. data/spec/models/worker_response_spec.rb +6 -0
  112. metadata +6 -2
@@ -168,11 +168,13 @@ module PulpcoreClient
168
168
  # @option opts [String] :name Filter results where name matches value
169
169
  # @option opts [String] :name__contains Filter results where name contains value
170
170
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
171
+ # @option opts [String] :name__ne Filter results where name not equal to value
171
172
  # @option opts [Integer] :offset The initial index from which to return the results.
172
173
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;state&#x60; - State * &#x60;-state&#x60; - State (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;logging_cid&#x60; - Logging cid * &#x60;-logging_cid&#x60; - Logging cid (descending) * &#x60;started_at&#x60; - Started at * &#x60;-started_at&#x60; - Started at (descending) * &#x60;finished_at&#x60; - Finished at * &#x60;-finished_at&#x60; - Finished at (descending) * &#x60;error&#x60; - Error * &#x60;-error&#x60; - Error (descending) * &#x60;args&#x60; - Args * &#x60;-args&#x60; - Args (descending) * &#x60;kwargs&#x60; - Kwargs * &#x60;-kwargs&#x60; - Kwargs (descending) * &#x60;reserved_resources_record&#x60; - Reserved resources record * &#x60;-reserved_resources_record&#x60; - Reserved resources record (descending) * &#x60;versions&#x60; - Versions * &#x60;-versions&#x60; - Versions (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
173
174
  # @option opts [String] :parent_task Filter results where parent_task matches value
174
175
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
175
176
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
177
+ # @option opts [String] :q
176
178
  # @option opts [String] :reserved_resources
177
179
  # @option opts [Array<String>] :reserved_resources__in Multiple values may be separated by commas.
178
180
  # @option opts [Array<String>] :reserved_resources_record
@@ -186,9 +188,11 @@ module PulpcoreClient
186
188
  # @option opts [Array<DateTime>] :started_at__range Filter results where started_at is between two comma separated values
187
189
  # @option opts [String] :state Filter results where state matches value * &#x60;waiting&#x60; - Waiting * &#x60;skipped&#x60; - Skipped * &#x60;running&#x60; - Running * &#x60;completed&#x60; - Completed * &#x60;failed&#x60; - Failed * &#x60;canceled&#x60; - Canceled * &#x60;canceling&#x60; - Canceling
188
190
  # @option opts [Array<String>] :state__in Filter results where state is in a comma-separated list of values
191
+ # @option opts [String] :state__ne Filter results where state not equal to value
189
192
  # @option opts [String] :task_group Filter results where task_group matches value
190
193
  # @option opts [String] :worker Filter results where worker matches value
191
194
  # @option opts [Array<String>] :worker__in Filter results where worker is in a comma-separated list of values
195
+ # @option opts [Boolean] :worker__isnull Filter results where worker has a null value
192
196
  # @option opts [Array<String>] :fields A list of fields to include in the response.
193
197
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
194
198
  # @return [PaginatedTaskResponseList]
@@ -216,11 +220,13 @@ module PulpcoreClient
216
220
  # @option opts [String] :name Filter results where name matches value
217
221
  # @option opts [String] :name__contains Filter results where name contains value
218
222
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
223
+ # @option opts [String] :name__ne Filter results where name not equal to value
219
224
  # @option opts [Integer] :offset The initial index from which to return the results.
220
225
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;state&#x60; - State * &#x60;-state&#x60; - State (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;logging_cid&#x60; - Logging cid * &#x60;-logging_cid&#x60; - Logging cid (descending) * &#x60;started_at&#x60; - Started at * &#x60;-started_at&#x60; - Started at (descending) * &#x60;finished_at&#x60; - Finished at * &#x60;-finished_at&#x60; - Finished at (descending) * &#x60;error&#x60; - Error * &#x60;-error&#x60; - Error (descending) * &#x60;args&#x60; - Args * &#x60;-args&#x60; - Args (descending) * &#x60;kwargs&#x60; - Kwargs * &#x60;-kwargs&#x60; - Kwargs (descending) * &#x60;reserved_resources_record&#x60; - Reserved resources record * &#x60;-reserved_resources_record&#x60; - Reserved resources record (descending) * &#x60;versions&#x60; - Versions * &#x60;-versions&#x60; - Versions (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
221
226
  # @option opts [String] :parent_task Filter results where parent_task matches value
222
227
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
223
228
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
229
+ # @option opts [String] :q
224
230
  # @option opts [String] :reserved_resources
225
231
  # @option opts [Array<String>] :reserved_resources__in Multiple values may be separated by commas.
226
232
  # @option opts [Array<String>] :reserved_resources_record
@@ -234,9 +240,11 @@ module PulpcoreClient
234
240
  # @option opts [Array<DateTime>] :started_at__range Filter results where started_at is between two comma separated values
235
241
  # @option opts [String] :state Filter results where state matches value * &#x60;waiting&#x60; - Waiting * &#x60;skipped&#x60; - Skipped * &#x60;running&#x60; - Running * &#x60;completed&#x60; - Completed * &#x60;failed&#x60; - Failed * &#x60;canceled&#x60; - Canceled * &#x60;canceling&#x60; - Canceling
236
242
  # @option opts [Array<String>] :state__in Filter results where state is in a comma-separated list of values
243
+ # @option opts [String] :state__ne Filter results where state not equal to value
237
244
  # @option opts [String] :task_group Filter results where task_group matches value
238
245
  # @option opts [String] :worker Filter results where worker matches value
239
246
  # @option opts [Array<String>] :worker__in Filter results where worker is in a comma-separated list of values
247
+ # @option opts [Boolean] :worker__isnull Filter results where worker has a null value
240
248
  # @option opts [Array<String>] :fields A list of fields to include in the response.
241
249
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
242
250
  # @return [Array<(PaginatedTaskResponseList, Integer, Hash)>] PaginatedTaskResponseList data, response status code and response headers
@@ -273,11 +281,13 @@ module PulpcoreClient
273
281
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
274
282
  query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
275
283
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
284
+ query_params[:'name__ne'] = opts[:'name__ne'] if !opts[:'name__ne'].nil?
276
285
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
277
286
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
278
287
  query_params[:'parent_task'] = opts[:'parent_task'] if !opts[:'parent_task'].nil?
279
288
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
280
289
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
290
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
281
291
  query_params[:'reserved_resources'] = opts[:'reserved_resources'] if !opts[:'reserved_resources'].nil?
282
292
  query_params[:'reserved_resources__in'] = @api_client.build_collection_param(opts[:'reserved_resources__in'], :csv) if !opts[:'reserved_resources__in'].nil?
283
293
  query_params[:'reserved_resources_record'] = @api_client.build_collection_param(opts[:'reserved_resources_record'], :multi) if !opts[:'reserved_resources_record'].nil?
@@ -291,9 +301,11 @@ module PulpcoreClient
291
301
  query_params[:'started_at__range'] = @api_client.build_collection_param(opts[:'started_at__range'], :csv) if !opts[:'started_at__range'].nil?
292
302
  query_params[:'state'] = opts[:'state'] if !opts[:'state'].nil?
293
303
  query_params[:'state__in'] = @api_client.build_collection_param(opts[:'state__in'], :csv) if !opts[:'state__in'].nil?
304
+ query_params[:'state__ne'] = opts[:'state__ne'] if !opts[:'state__ne'].nil?
294
305
  query_params[:'task_group'] = opts[:'task_group'] if !opts[:'task_group'].nil?
295
306
  query_params[:'worker'] = opts[:'worker'] if !opts[:'worker'].nil?
296
307
  query_params[:'worker__in'] = @api_client.build_collection_param(opts[:'worker__in'], :csv) if !opts[:'worker__in'].nil?
308
+ query_params[:'worker__isnull'] = opts[:'worker__isnull'] if !opts[:'worker__isnull'].nil?
297
309
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
298
310
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
299
311
 
@@ -291,6 +291,7 @@ module PulpcoreClient
291
291
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;size&#x60; - Size * &#x60;-size&#x60; - Size (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
292
292
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
293
293
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
294
+ # @option opts [String] :q
294
295
  # @option opts [Integer] :size Filter results where size matches value
295
296
  # @option opts [Integer] :size__gt Filter results where size is greater than value
296
297
  # @option opts [Integer] :size__lt Filter results where size is less than value
@@ -311,6 +312,7 @@ module PulpcoreClient
311
312
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;size&#x60; - Size * &#x60;-size&#x60; - Size (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
312
313
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
313
314
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
315
+ # @option opts [String] :q
314
316
  # @option opts [Integer] :size Filter results where size matches value
315
317
  # @option opts [Integer] :size__gt Filter results where size is greater than value
316
318
  # @option opts [Integer] :size__lt Filter results where size is less than value
@@ -336,6 +338,7 @@ module PulpcoreClient
336
338
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
337
339
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
338
340
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
341
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
339
342
  query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
340
343
  query_params[:'size__gt'] = opts[:'size__gt'] if !opts[:'size__gt'].nil?
341
344
  query_params[:'size__lt'] = opts[:'size__lt'] if !opts[:'size__lt'].nil?
@@ -168,6 +168,7 @@ module PulpcoreClient
168
168
  # @option opts [Array<String>] :ordering Ordering * &#x60;id&#x60; - Id * &#x60;-id&#x60; - Id (descending) * &#x60;password&#x60; - Password * &#x60;-password&#x60; - Password (descending) * &#x60;last_login&#x60; - Last login * &#x60;-last_login&#x60; - Last login (descending) * &#x60;is_superuser&#x60; - Is superuser * &#x60;-is_superuser&#x60; - Is superuser (descending) * &#x60;username&#x60; - Username * &#x60;-username&#x60; - Username (descending) * &#x60;first_name&#x60; - First name * &#x60;-first_name&#x60; - First name (descending) * &#x60;last_name&#x60; - Last name * &#x60;-last_name&#x60; - Last name (descending) * &#x60;email&#x60; - Email * &#x60;-email&#x60; - Email (descending) * &#x60;is_staff&#x60; - Is staff * &#x60;-is_staff&#x60; - Is staff (descending) * &#x60;is_active&#x60; - Is active * &#x60;-is_active&#x60; - Is active (descending) * &#x60;date_joined&#x60; - Date joined * &#x60;-date_joined&#x60; - Date joined (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
169
169
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
170
170
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
171
+ # @option opts [String] :q
171
172
  # @option opts [String] :username Filter results where username matches value
172
173
  # @option opts [String] :username__contains Filter results where username contains value
173
174
  # @option opts [String] :username__icontains Filter results where username contains value
@@ -206,6 +207,7 @@ module PulpcoreClient
206
207
  # @option opts [Array<String>] :ordering Ordering * &#x60;id&#x60; - Id * &#x60;-id&#x60; - Id (descending) * &#x60;password&#x60; - Password * &#x60;-password&#x60; - Password (descending) * &#x60;last_login&#x60; - Last login * &#x60;-last_login&#x60; - Last login (descending) * &#x60;is_superuser&#x60; - Is superuser * &#x60;-is_superuser&#x60; - Is superuser (descending) * &#x60;username&#x60; - Username * &#x60;-username&#x60; - Username (descending) * &#x60;first_name&#x60; - First name * &#x60;-first_name&#x60; - First name (descending) * &#x60;last_name&#x60; - Last name * &#x60;-last_name&#x60; - Last name (descending) * &#x60;email&#x60; - Email * &#x60;-email&#x60; - Email (descending) * &#x60;is_staff&#x60; - Is staff * &#x60;-is_staff&#x60; - Is staff (descending) * &#x60;is_active&#x60; - Is active * &#x60;-is_active&#x60; - Is active (descending) * &#x60;date_joined&#x60; - Date joined * &#x60;-date_joined&#x60; - Date joined (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
207
208
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
208
209
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
210
+ # @option opts [String] :q
209
211
  # @option opts [String] :username Filter results where username matches value
210
212
  # @option opts [String] :username__contains Filter results where username contains value
211
213
  # @option opts [String] :username__icontains Filter results where username contains value
@@ -249,6 +251,7 @@ module PulpcoreClient
249
251
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
250
252
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
251
253
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
254
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
252
255
  query_params[:'username'] = opts[:'username'] if !opts[:'username'].nil?
253
256
  query_params[:'username__contains'] = opts[:'username__contains'] if !opts[:'username__contains'].nil?
254
257
  query_params[:'username__icontains'] = opts[:'username__icontains'] if !opts[:'username__icontains'].nil?
@@ -160,6 +160,7 @@ module PulpcoreClient
160
160
  # @option opts [Array<String>] :ordering Ordering * &#x60;role&#x60; - Role * &#x60;-role&#x60; - Role (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
161
161
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
162
162
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
163
+ # @option opts [String] :q
163
164
  # @option opts [String] :role
164
165
  # @option opts [String] :role__contains
165
166
  # @option opts [String] :role__icontains
@@ -184,6 +185,7 @@ module PulpcoreClient
184
185
  # @option opts [Array<String>] :ordering Ordering * &#x60;role&#x60; - Role * &#x60;-role&#x60; - Role (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
185
186
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
186
187
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
188
+ # @option opts [String] :q
187
189
  # @option opts [String] :role
188
190
  # @option opts [String] :role__contains
189
191
  # @option opts [String] :role__icontains
@@ -216,6 +218,7 @@ module PulpcoreClient
216
218
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
217
219
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
218
220
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
221
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
219
222
  query_params[:'role'] = opts[:'role'] if !opts[:'role'].nil?
220
223
  query_params[:'role__contains'] = opts[:'role__contains'] if !opts[:'role__contains'].nil?
221
224
  query_params[:'role__icontains'] = opts[:'role__icontains'] if !opts[:'role__icontains'].nil?
@@ -33,13 +33,16 @@ module PulpcoreClient
33
33
  # @option opts [String] :name Filter results where name matches value
34
34
  # @option opts [String] :name__contains Filter results where name contains value
35
35
  # @option opts [String] :name__icontains Filter results where name contains value
36
+ # @option opts [String] :name__iexact Filter results where name matches value
36
37
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
38
+ # @option opts [String] :name__istartswith Filter results where name starts with value
37
39
  # @option opts [String] :name__startswith Filter results where name starts with value
38
40
  # @option opts [Integer] :offset The initial index from which to return the results.
39
41
  # @option opts [Boolean] :online
40
42
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;last_heartbeat&#x60; - Last heartbeat * &#x60;-last_heartbeat&#x60; - Last heartbeat (descending) * &#x60;versions&#x60; - Versions * &#x60;-versions&#x60; - Versions (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
41
43
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
42
44
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
45
+ # @option opts [String] :q
43
46
  # @option opts [Array<String>] :fields A list of fields to include in the response.
44
47
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
45
48
  # @return [PaginatedWorkerResponseList]
@@ -62,13 +65,16 @@ module PulpcoreClient
62
65
  # @option opts [String] :name Filter results where name matches value
63
66
  # @option opts [String] :name__contains Filter results where name contains value
64
67
  # @option opts [String] :name__icontains Filter results where name contains value
68
+ # @option opts [String] :name__iexact Filter results where name matches value
65
69
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
70
+ # @option opts [String] :name__istartswith Filter results where name starts with value
66
71
  # @option opts [String] :name__startswith Filter results where name starts with value
67
72
  # @option opts [Integer] :offset The initial index from which to return the results.
68
73
  # @option opts [Boolean] :online
69
74
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;last_heartbeat&#x60; - Last heartbeat * &#x60;-last_heartbeat&#x60; - Last heartbeat (descending) * &#x60;versions&#x60; - Versions * &#x60;-versions&#x60; - Versions (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
70
75
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
71
76
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
77
+ # @option opts [String] :q
72
78
  # @option opts [Array<String>] :fields A list of fields to include in the response.
73
79
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
74
80
  # @return [Array<(PaginatedWorkerResponseList, Integer, Hash)>] PaginatedWorkerResponseList data, response status code and response headers
@@ -96,13 +102,16 @@ module PulpcoreClient
96
102
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
97
103
  query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
98
104
  query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
105
+ query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
99
106
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
107
+ query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
100
108
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
101
109
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
102
110
  query_params[:'online'] = opts[:'online'] if !opts[:'online'].nil?
103
111
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
104
112
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
105
113
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
114
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
106
115
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
107
116
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
108
117
 
@@ -127,7 +127,7 @@ module PulpcoreClient
127
127
  attr_accessor :force_ending_format
128
128
 
129
129
  def initialize
130
- @scheme = 'https'
130
+ @scheme = 'http'
131
131
  @host = 'pulp'
132
132
  @base_path = ''
133
133
  @api_key = {}
@@ -210,7 +210,7 @@ module PulpcoreClient
210
210
  def server_settings
211
211
  [
212
212
  {
213
- url: "https://pulp/",
213
+ url: "http://pulp/",
214
214
  description: "No description provided",
215
215
  }
216
216
  ]
@@ -0,0 +1,230 @@
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 'date'
14
+
15
+ module PulpcoreClient
16
+ # Base serializer for use with :class:`pulpcore.app.models.Model` This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
17
+ class ApiAppStatusResponse
18
+ # The name of the worker.
19
+ attr_accessor :name
20
+
21
+ # Timestamp of the last time the worker talked to the service.
22
+ attr_accessor :last_heartbeat
23
+
24
+ # Versions of the components installed.
25
+ attr_accessor :versions
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+ :'name' => :'name',
31
+ :'last_heartbeat' => :'last_heartbeat',
32
+ :'versions' => :'versions'
33
+ }
34
+ end
35
+
36
+ # Attribute type mapping.
37
+ def self.openapi_types
38
+ {
39
+ :'name' => :'String',
40
+ :'last_heartbeat' => :'DateTime',
41
+ :'versions' => :'Hash<String, String>'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ ])
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::ApiAppStatusResponse` initialize method"
56
+ end
57
+
58
+ # check to see if the attribute exists and convert string to symbol for hash key
59
+ attributes = attributes.each_with_object({}) { |(k, v), h|
60
+ if (!self.class.attribute_map.key?(k.to_sym))
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::ApiAppStatusResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
+ end
63
+ h[k.to_sym] = v
64
+ }
65
+
66
+ if attributes.key?(:'name')
67
+ self.name = attributes[:'name']
68
+ end
69
+
70
+ if attributes.key?(:'last_heartbeat')
71
+ self.last_heartbeat = attributes[:'last_heartbeat']
72
+ end
73
+
74
+ if attributes.key?(:'versions')
75
+ if (value = attributes[:'versions']).is_a?(Hash)
76
+ self.versions = value
77
+ end
78
+ end
79
+ end
80
+
81
+ # Show invalid properties with the reasons. Usually used together with valid?
82
+ # @return Array for valid properties with the reasons
83
+ def list_invalid_properties
84
+ invalid_properties = Array.new
85
+ invalid_properties
86
+ end
87
+
88
+ # Check to see if the all the properties in the model are valid
89
+ # @return true if the model is valid
90
+ def valid?
91
+ true
92
+ end
93
+
94
+ # Checks equality by comparing each attribute.
95
+ # @param [Object] Object to be compared
96
+ def ==(o)
97
+ return true if self.equal?(o)
98
+ self.class == o.class &&
99
+ name == o.name &&
100
+ last_heartbeat == o.last_heartbeat &&
101
+ versions == o.versions
102
+ end
103
+
104
+ # @see the `==` method
105
+ # @param [Object] Object to be compared
106
+ def eql?(o)
107
+ self == o
108
+ end
109
+
110
+ # Calculates hash code according to all attributes.
111
+ # @return [Integer] Hash code
112
+ def hash
113
+ [name, last_heartbeat, versions].hash
114
+ end
115
+
116
+ # Builds the object from hash
117
+ # @param [Hash] attributes Model attributes in the form of hash
118
+ # @return [Object] Returns the model itself
119
+ def self.build_from_hash(attributes)
120
+ new.build_from_hash(attributes)
121
+ end
122
+
123
+ # Builds the object from hash
124
+ # @param [Hash] attributes Model attributes in the form of hash
125
+ # @return [Object] Returns the model itself
126
+ def build_from_hash(attributes)
127
+ return nil unless attributes.is_a?(Hash)
128
+ self.class.openapi_types.each_pair do |key, type|
129
+ if type =~ /\AArray<(.*)>/i
130
+ # check to ensure the input is an array given that the attribute
131
+ # is documented as an array but the input is not
132
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
133
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
134
+ end
135
+ elsif !attributes[self.class.attribute_map[key]].nil?
136
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
137
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
138
+ end
139
+
140
+ self
141
+ end
142
+
143
+ # Deserializes the data based on type
144
+ # @param string type Data type
145
+ # @param string value Value to be deserialized
146
+ # @return [Object] Deserialized data
147
+ def _deserialize(type, value)
148
+ case type.to_sym
149
+ when :DateTime
150
+ DateTime.parse(value)
151
+ when :Date
152
+ Date.parse(value)
153
+ when :String
154
+ value.to_s
155
+ when :Integer
156
+ value.to_i
157
+ when :Float
158
+ value.to_f
159
+ when :Boolean
160
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
161
+ true
162
+ else
163
+ false
164
+ end
165
+ when :Object
166
+ # generic object (usually a Hash), return directly
167
+ value
168
+ when /\AArray<(?<inner_type>.+)>\z/
169
+ inner_type = Regexp.last_match[:inner_type]
170
+ value.map { |v| _deserialize(inner_type, v) }
171
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
172
+ k_type = Regexp.last_match[:k_type]
173
+ v_type = Regexp.last_match[:v_type]
174
+ {}.tap do |hash|
175
+ value.each do |k, v|
176
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
177
+ end
178
+ end
179
+ else # model
180
+ PulpcoreClient.const_get(type).build_from_hash(value)
181
+ end
182
+ end
183
+
184
+ # Returns the string representation of the object
185
+ # @return [String] String presentation of the object
186
+ def to_s
187
+ to_hash.to_s
188
+ end
189
+
190
+ # to_body is an alias to to_hash (backward compatibility)
191
+ # @return [Hash] Returns the object in the form of hash
192
+ def to_body
193
+ to_hash
194
+ end
195
+
196
+ # Returns the object in the form of hash
197
+ # @return [Hash] Returns the object in the form of hash
198
+ def to_hash
199
+ hash = {}
200
+ self.class.attribute_map.each_pair do |attr, param|
201
+ value = self.send(attr)
202
+ if value.nil?
203
+ is_nullable = self.class.openapi_nullable.include?(attr)
204
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
205
+ end
206
+
207
+ hash[param] = _to_hash(value)
208
+ end
209
+ hash
210
+ end
211
+
212
+ # Outputs non-array value in the form of hash
213
+ # For object, use to_hash. Otherwise, just return the value
214
+ # @param [Object] value Any valid value
215
+ # @return [Hash] Returns the value in the form of hash
216
+ def _to_hash(value)
217
+ if value.is_a?(Array)
218
+ value.compact.map { |v| _to_hash(v) }
219
+ elsif value.is_a?(Hash)
220
+ {}.tap do |hash|
221
+ value.each { |k, v| hash[k] = _to_hash(v) }
222
+ end
223
+ elsif value.respond_to? :to_hash
224
+ value.to_hash
225
+ else
226
+ value
227
+ end
228
+ end
229
+ end
230
+ end
@@ -15,53 +15,53 @@ require 'date'
15
15
  module PulpcoreClient
16
16
  # A serializer for ArtifactDistribution.
17
17
  class ArtifactDistributionResponse
18
+ # An optional content-guard.
19
+ attr_accessor :content_guard
20
+
18
21
  # The URL for accessing the publication as defined by this distribution.
19
22
  attr_accessor :base_url
20
23
 
21
- # An optional content-guard.
22
- attr_accessor :content_guard
24
+ attr_accessor :pulp_href
23
25
 
24
26
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
25
27
  attr_accessor :base_path
26
28
 
27
- attr_accessor :pulp_labels
28
-
29
29
  # A unique name. Ex, `rawhide` and `stable`.
30
30
  attr_accessor :name
31
31
 
32
- attr_accessor :pulp_href
33
-
34
32
  # Timestamp of creation.
35
33
  attr_accessor :pulp_created
36
34
 
37
35
  # Whether this distribution should be shown in the content app.
38
36
  attr_accessor :hidden
39
37
 
38
+ attr_accessor :pulp_labels
39
+
40
40
  # Attribute mapping from ruby-style variable name to JSON key.
41
41
  def self.attribute_map
42
42
  {
43
- :'base_url' => :'base_url',
44
43
  :'content_guard' => :'content_guard',
44
+ :'base_url' => :'base_url',
45
+ :'pulp_href' => :'pulp_href',
45
46
  :'base_path' => :'base_path',
46
- :'pulp_labels' => :'pulp_labels',
47
47
  :'name' => :'name',
48
- :'pulp_href' => :'pulp_href',
49
48
  :'pulp_created' => :'pulp_created',
50
- :'hidden' => :'hidden'
49
+ :'hidden' => :'hidden',
50
+ :'pulp_labels' => :'pulp_labels'
51
51
  }
52
52
  end
53
53
 
54
54
  # Attribute type mapping.
55
55
  def self.openapi_types
56
56
  {
57
- :'base_url' => :'String',
58
57
  :'content_guard' => :'String',
58
+ :'base_url' => :'String',
59
+ :'pulp_href' => :'String',
59
60
  :'base_path' => :'String',
60
- :'pulp_labels' => :'Hash<String, String>',
61
61
  :'name' => :'String',
62
- :'pulp_href' => :'String',
63
62
  :'pulp_created' => :'DateTime',
64
- :'hidden' => :'Boolean'
63
+ :'hidden' => :'Boolean',
64
+ :'pulp_labels' => :'Hash<String, String>'
65
65
  }
66
66
  end
67
67
 
@@ -87,32 +87,26 @@ module PulpcoreClient
87
87
  h[k.to_sym] = v
88
88
  }
89
89
 
90
+ if attributes.key?(:'content_guard')
91
+ self.content_guard = attributes[:'content_guard']
92
+ end
93
+
90
94
  if attributes.key?(:'base_url')
91
95
  self.base_url = attributes[:'base_url']
92
96
  end
93
97
 
94
- if attributes.key?(:'content_guard')
95
- self.content_guard = attributes[:'content_guard']
98
+ if attributes.key?(:'pulp_href')
99
+ self.pulp_href = attributes[:'pulp_href']
96
100
  end
97
101
 
98
102
  if attributes.key?(:'base_path')
99
103
  self.base_path = attributes[:'base_path']
100
104
  end
101
105
 
102
- if attributes.key?(:'pulp_labels')
103
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
104
- self.pulp_labels = value
105
- end
106
- end
107
-
108
106
  if attributes.key?(:'name')
109
107
  self.name = attributes[:'name']
110
108
  end
111
109
 
112
- if attributes.key?(:'pulp_href')
113
- self.pulp_href = attributes[:'pulp_href']
114
- end
115
-
116
110
  if attributes.key?(:'pulp_created')
117
111
  self.pulp_created = attributes[:'pulp_created']
118
112
  end
@@ -122,6 +116,12 @@ module PulpcoreClient
122
116
  else
123
117
  self.hidden = false
124
118
  end
119
+
120
+ if attributes.key?(:'pulp_labels')
121
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
122
+ self.pulp_labels = value
123
+ end
124
+ end
125
125
  end
126
126
 
127
127
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -152,14 +152,14 @@ module PulpcoreClient
152
152
  def ==(o)
153
153
  return true if self.equal?(o)
154
154
  self.class == o.class &&
155
- base_url == o.base_url &&
156
155
  content_guard == o.content_guard &&
156
+ base_url == o.base_url &&
157
+ pulp_href == o.pulp_href &&
157
158
  base_path == o.base_path &&
158
- pulp_labels == o.pulp_labels &&
159
159
  name == o.name &&
160
- pulp_href == o.pulp_href &&
161
160
  pulp_created == o.pulp_created &&
162
- hidden == o.hidden
161
+ hidden == o.hidden &&
162
+ pulp_labels == o.pulp_labels
163
163
  end
164
164
 
165
165
  # @see the `==` method
@@ -171,7 +171,7 @@ module PulpcoreClient
171
171
  # Calculates hash code according to all attributes.
172
172
  # @return [Integer] Hash code
173
173
  def hash
174
- [base_url, content_guard, base_path, pulp_labels, name, pulp_href, pulp_created, hidden].hash
174
+ [content_guard, base_url, pulp_href, base_path, name, pulp_created, hidden, pulp_labels].hash
175
175
  end
176
176
 
177
177
  # Builds the object from hash