pulp_ostree_client 2.1.0 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +16 -5
  3. data/docs/ContentCommitsApi.md +3 -1
  4. data/docs/ContentConfigsApi.md +3 -1
  5. data/docs/ContentContentApi.md +3 -1
  6. data/docs/ContentObjectsApi.md +3 -1
  7. data/docs/ContentRefsApi.md +7 -1
  8. data/docs/ContentSummariesApi.md +3 -1
  9. data/docs/DistributionsOstreeApi.md +122 -4
  10. data/docs/OstreeOstreeDistribution.md +2 -0
  11. data/docs/OstreeOstreeDistributionResponse.md +2 -0
  12. data/docs/PatchedostreeOstreeDistribution.md +2 -0
  13. data/docs/RemotesOstreeApi.md +119 -1
  14. data/docs/RepositoriesOstreeApi.md +120 -2
  15. data/docs/RepositoriesOstreeVersionsApi.md +3 -1
  16. data/docs/SetLabel.md +19 -0
  17. data/docs/SetLabelResponse.md +19 -0
  18. data/docs/UnsetLabel.md +17 -0
  19. data/docs/UnsetLabelResponse.md +19 -0
  20. data/lib/pulp_ostree_client/api/content_commits_api.rb +3 -0
  21. data/lib/pulp_ostree_client/api/content_configs_api.rb +3 -0
  22. data/lib/pulp_ostree_client/api/content_content_api.rb +3 -0
  23. data/lib/pulp_ostree_client/api/content_objects_api.rb +3 -0
  24. data/lib/pulp_ostree_client/api/content_refs_api.rb +9 -0
  25. data/lib/pulp_ostree_client/api/content_summaries_api.rb +3 -0
  26. data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +152 -3
  27. data/lib/pulp_ostree_client/api/remotes_ostree_api.rb +149 -0
  28. data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +149 -0
  29. data/lib/pulp_ostree_client/api/repositories_ostree_versions_api.rb +3 -0
  30. data/lib/pulp_ostree_client/configuration.rb +2 -2
  31. data/lib/pulp_ostree_client/models/ostree_ostree_distribution.rb +13 -1
  32. data/lib/pulp_ostree_client/models/ostree_ostree_distribution_response.rb +13 -1
  33. data/lib/pulp_ostree_client/models/patchedostree_ostree_distribution.rb +13 -1
  34. data/lib/pulp_ostree_client/models/set_label.rb +252 -0
  35. data/lib/pulp_ostree_client/models/set_label_response.rb +243 -0
  36. data/lib/pulp_ostree_client/models/unset_label.rb +242 -0
  37. data/lib/pulp_ostree_client/models/unset_label_response.rb +242 -0
  38. data/lib/pulp_ostree_client/version.rb +1 -1
  39. data/lib/pulp_ostree_client.rb +4 -0
  40. data/spec/api/content_commits_api_spec.rb +1 -0
  41. data/spec/api/content_configs_api_spec.rb +1 -0
  42. data/spec/api/content_content_api_spec.rb +1 -0
  43. data/spec/api/content_objects_api_spec.rb +1 -0
  44. data/spec/api/content_refs_api_spec.rb +3 -0
  45. data/spec/api/content_summaries_api_spec.rb +1 -0
  46. data/spec/api/distributions_ostree_api_spec.rb +30 -1
  47. data/spec/api/remotes_ostree_api_spec.rb +29 -0
  48. data/spec/api/repositories_ostree_api_spec.rb +29 -0
  49. data/spec/api/repositories_ostree_versions_api_spec.rb +1 -0
  50. data/spec/configuration_spec.rb +3 -3
  51. data/spec/models/ostree_ostree_distribution_response_spec.rb +6 -0
  52. data/spec/models/ostree_ostree_distribution_spec.rb +6 -0
  53. data/spec/models/patchedostree_ostree_distribution_spec.rb +6 -0
  54. data/spec/models/set_label_response_spec.rb +47 -0
  55. data/spec/models/set_label_spec.rb +47 -0
  56. data/spec/models/unset_label_response_spec.rb +47 -0
  57. data/spec/models/unset_label_spec.rb +41 -0
  58. metadata +49 -33
@@ -156,13 +156,16 @@ module PulpOstreeClient
156
156
  # @option opts [String] :name Filter results where name matches value
157
157
  # @option opts [String] :name__contains Filter results where name contains value
158
158
  # @option opts [String] :name__icontains Filter results where name contains value
159
+ # @option opts [String] :name__iexact Filter results where name matches value
159
160
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
161
+ # @option opts [String] :name__istartswith Filter results where name starts with value
160
162
  # @option opts [String] :name__startswith Filter results where name starts with value
161
163
  # @option opts [Integer] :offset The initial index from which to return the results.
162
- # @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;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;base_path&#x60; - Base path * &#x60;-base_path&#x60; - Base path (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
164
+ # @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;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;base_path&#x60; - Base path * &#x60;-base_path&#x60; - Base path (descending) * &#x60;hidden&#x60; - Hidden * &#x60;-hidden&#x60; - Hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
163
165
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
164
166
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
165
167
  # @option opts [String] :pulp_label_select Filter labels by search string
168
+ # @option opts [String] :q
166
169
  # @option opts [String] :repository Filter results where repository matches value
167
170
  # @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
168
171
  # @option opts [String] :with_content Filter distributions based on the content served by them
@@ -185,13 +188,16 @@ module PulpOstreeClient
185
188
  # @option opts [String] :name Filter results where name matches value
186
189
  # @option opts [String] :name__contains Filter results where name contains value
187
190
  # @option opts [String] :name__icontains Filter results where name contains value
191
+ # @option opts [String] :name__iexact Filter results where name matches value
188
192
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
193
+ # @option opts [String] :name__istartswith Filter results where name starts with value
189
194
  # @option opts [String] :name__startswith Filter results where name starts with value
190
195
  # @option opts [Integer] :offset The initial index from which to return the results.
191
- # @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;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;base_path&#x60; - Base path * &#x60;-base_path&#x60; - Base path (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
196
+ # @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;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;base_path&#x60; - Base path * &#x60;-base_path&#x60; - Base path (descending) * &#x60;hidden&#x60; - Hidden * &#x60;-hidden&#x60; - Hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
192
197
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
193
198
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
194
199
  # @option opts [String] :pulp_label_select Filter labels by search string
200
+ # @option opts [String] :q
195
201
  # @option opts [String] :repository Filter results where repository matches value
196
202
  # @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
197
203
  # @option opts [String] :with_content Filter distributions based on the content served by them
@@ -202,7 +208,7 @@ module PulpOstreeClient
202
208
  if @api_client.config.debugging
203
209
  @api_client.config.logger.debug 'Calling API: DistributionsOstreeApi.list ...'
204
210
  end
205
- allowable_values = ["-base_path", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
211
+ allowable_values = ["-base_path", "-hidden", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "hidden", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
206
212
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
207
213
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
208
214
  end
@@ -219,13 +225,16 @@ module PulpOstreeClient
219
225
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
220
226
  query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
221
227
  query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
228
+ query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
222
229
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
230
+ query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
223
231
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
224
232
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
225
233
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
226
234
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
227
235
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
228
236
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
237
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
229
238
  query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
230
239
  query_params[:'repository__in'] = @api_client.build_collection_param(opts[:'repository__in'], :csv) if !opts[:'repository__in'].nil?
231
240
  query_params[:'with_content'] = opts[:'with_content'] if !opts[:'with_content'].nil?
@@ -403,6 +412,146 @@ module PulpOstreeClient
403
412
  return data, status_code, headers
404
413
  end
405
414
 
415
+ # Set a label
416
+ # Set a single pulp_label on the object to a specific value or null.
417
+ # @param ostree_ostree_distribution_href [String]
418
+ # @param set_label [SetLabel]
419
+ # @param [Hash] opts the optional parameters
420
+ # @return [SetLabelResponse]
421
+ def set_label(ostree_ostree_distribution_href, set_label, opts = {})
422
+ data, _status_code, _headers = set_label_with_http_info(ostree_ostree_distribution_href, set_label, opts)
423
+ data
424
+ end
425
+
426
+ # Set a label
427
+ # Set a single pulp_label on the object to a specific value or null.
428
+ # @param ostree_ostree_distribution_href [String]
429
+ # @param set_label [SetLabel]
430
+ # @param [Hash] opts the optional parameters
431
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
432
+ def set_label_with_http_info(ostree_ostree_distribution_href, set_label, opts = {})
433
+ if @api_client.config.debugging
434
+ @api_client.config.logger.debug 'Calling API: DistributionsOstreeApi.set_label ...'
435
+ end
436
+ # verify the required parameter 'ostree_ostree_distribution_href' is set
437
+ if @api_client.config.client_side_validation && ostree_ostree_distribution_href.nil?
438
+ fail ArgumentError, "Missing the required parameter 'ostree_ostree_distribution_href' when calling DistributionsOstreeApi.set_label"
439
+ end
440
+ # verify the required parameter 'set_label' is set
441
+ if @api_client.config.client_side_validation && set_label.nil?
442
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling DistributionsOstreeApi.set_label"
443
+ end
444
+ # resource path
445
+ local_var_path = '{ostree_ostree_distribution_href}set_label/'.sub('{' + 'ostree_ostree_distribution_href' + '}', CGI.escape(ostree_ostree_distribution_href.to_s).gsub('%2F', '/'))
446
+
447
+ # query parameters
448
+ query_params = opts[:query_params] || {}
449
+
450
+ # header parameters
451
+ header_params = opts[:header_params] || {}
452
+ # HTTP header 'Accept' (if needed)
453
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
454
+ # HTTP header 'Content-Type'
455
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
456
+
457
+ # form parameters
458
+ form_params = opts[:form_params] || {}
459
+
460
+ # http body (model)
461
+ post_body = opts[:body] || @api_client.object_to_http_body(set_label)
462
+
463
+ # return_type
464
+ return_type = opts[:return_type] || 'SetLabelResponse'
465
+
466
+ # auth_names
467
+ auth_names = opts[:auth_names] || ['basicAuth']
468
+
469
+ new_options = opts.merge(
470
+ :header_params => header_params,
471
+ :query_params => query_params,
472
+ :form_params => form_params,
473
+ :body => post_body,
474
+ :auth_names => auth_names,
475
+ :return_type => return_type
476
+ )
477
+
478
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
479
+ if @api_client.config.debugging
480
+ @api_client.config.logger.debug "API called: DistributionsOstreeApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
481
+ end
482
+ return data, status_code, headers
483
+ end
484
+
485
+ # Unset a label
486
+ # Unset a single pulp_label on the object.
487
+ # @param ostree_ostree_distribution_href [String]
488
+ # @param unset_label [UnsetLabel]
489
+ # @param [Hash] opts the optional parameters
490
+ # @return [UnsetLabelResponse]
491
+ def unset_label(ostree_ostree_distribution_href, unset_label, opts = {})
492
+ data, _status_code, _headers = unset_label_with_http_info(ostree_ostree_distribution_href, unset_label, opts)
493
+ data
494
+ end
495
+
496
+ # Unset a label
497
+ # Unset a single pulp_label on the object.
498
+ # @param ostree_ostree_distribution_href [String]
499
+ # @param unset_label [UnsetLabel]
500
+ # @param [Hash] opts the optional parameters
501
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
502
+ def unset_label_with_http_info(ostree_ostree_distribution_href, unset_label, opts = {})
503
+ if @api_client.config.debugging
504
+ @api_client.config.logger.debug 'Calling API: DistributionsOstreeApi.unset_label ...'
505
+ end
506
+ # verify the required parameter 'ostree_ostree_distribution_href' is set
507
+ if @api_client.config.client_side_validation && ostree_ostree_distribution_href.nil?
508
+ fail ArgumentError, "Missing the required parameter 'ostree_ostree_distribution_href' when calling DistributionsOstreeApi.unset_label"
509
+ end
510
+ # verify the required parameter 'unset_label' is set
511
+ if @api_client.config.client_side_validation && unset_label.nil?
512
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling DistributionsOstreeApi.unset_label"
513
+ end
514
+ # resource path
515
+ local_var_path = '{ostree_ostree_distribution_href}unset_label/'.sub('{' + 'ostree_ostree_distribution_href' + '}', CGI.escape(ostree_ostree_distribution_href.to_s).gsub('%2F', '/'))
516
+
517
+ # query parameters
518
+ query_params = opts[:query_params] || {}
519
+
520
+ # header parameters
521
+ header_params = opts[:header_params] || {}
522
+ # HTTP header 'Accept' (if needed)
523
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
524
+ # HTTP header 'Content-Type'
525
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
526
+
527
+ # form parameters
528
+ form_params = opts[:form_params] || {}
529
+
530
+ # http body (model)
531
+ post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
532
+
533
+ # return_type
534
+ return_type = opts[:return_type] || 'UnsetLabelResponse'
535
+
536
+ # auth_names
537
+ auth_names = opts[:auth_names] || ['basicAuth']
538
+
539
+ new_options = opts.merge(
540
+ :header_params => header_params,
541
+ :query_params => query_params,
542
+ :form_params => form_params,
543
+ :body => post_body,
544
+ :auth_names => auth_names,
545
+ :return_type => return_type
546
+ )
547
+
548
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
549
+ if @api_client.config.debugging
550
+ @api_client.config.logger.debug "API called: DistributionsOstreeApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
551
+ end
552
+ return data, status_code, headers
553
+ end
554
+
406
555
  # Update an ostree distribution
407
556
  # Trigger an asynchronous update task
408
557
  # @param ostree_ostree_distribution_href [String]
@@ -152,7 +152,9 @@ module PulpOstreeClient
152
152
  # @option opts [String] :name Filter results where name matches value
153
153
  # @option opts [String] :name__contains Filter results where name contains value
154
154
  # @option opts [String] :name__icontains Filter results where name contains value
155
+ # @option opts [String] :name__iexact Filter results where name matches value
155
156
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
157
+ # @option opts [String] :name__istartswith Filter results where name starts with value
156
158
  # @option opts [String] :name__startswith Filter results where name starts with value
157
159
  # @option opts [Integer] :offset The initial index from which to return the results.
158
160
  # @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;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;url&#x60; - Url * &#x60;-url&#x60; - Url (descending) * &#x60;ca_cert&#x60; - Ca cert * &#x60;-ca_cert&#x60; - Ca cert (descending) * &#x60;client_cert&#x60; - Client cert * &#x60;-client_cert&#x60; - Client cert (descending) * &#x60;client_key&#x60; - Client key * &#x60;-client_key&#x60; - Client key (descending) * &#x60;tls_validation&#x60; - Tls validation * &#x60;-tls_validation&#x60; - Tls validation (descending) * &#x60;username&#x60; - Username * &#x60;-username&#x60; - Username (descending) * &#x60;password&#x60; - Password * &#x60;-password&#x60; - Password (descending) * &#x60;proxy_url&#x60; - Proxy url * &#x60;-proxy_url&#x60; - Proxy url (descending) * &#x60;proxy_username&#x60; - Proxy username * &#x60;-proxy_username&#x60; - Proxy username (descending) * &#x60;proxy_password&#x60; - Proxy password * &#x60;-proxy_password&#x60; - Proxy password (descending) * &#x60;download_concurrency&#x60; - Download concurrency * &#x60;-download_concurrency&#x60; - Download concurrency (descending) * &#x60;max_retries&#x60; - Max retries * &#x60;-max_retries&#x60; - Max retries (descending) * &#x60;policy&#x60; - Policy * &#x60;-policy&#x60; - Policy (descending) * &#x60;total_timeout&#x60; - Total timeout * &#x60;-total_timeout&#x60; - Total timeout (descending) * &#x60;connect_timeout&#x60; - Connect timeout * &#x60;-connect_timeout&#x60; - Connect timeout (descending) * &#x60;sock_connect_timeout&#x60; - Sock connect timeout * &#x60;-sock_connect_timeout&#x60; - Sock connect timeout (descending) * &#x60;sock_read_timeout&#x60; - Sock read timeout * &#x60;-sock_read_timeout&#x60; - Sock read timeout (descending) * &#x60;headers&#x60; - Headers * &#x60;-headers&#x60; - Headers (descending) * &#x60;rate_limit&#x60; - Rate limit * &#x60;-rate_limit&#x60; - Rate limit (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
@@ -165,6 +167,7 @@ module PulpOstreeClient
165
167
  # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
166
168
  # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
167
169
  # @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
170
+ # @option opts [String] :q
168
171
  # @option opts [Array<String>] :fields A list of fields to include in the response.
169
172
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
170
173
  # @return [PaginatedostreeOstreeRemoteResponseList]
@@ -180,7 +183,9 @@ module PulpOstreeClient
180
183
  # @option opts [String] :name Filter results where name matches value
181
184
  # @option opts [String] :name__contains Filter results where name contains value
182
185
  # @option opts [String] :name__icontains Filter results where name contains value
186
+ # @option opts [String] :name__iexact Filter results where name matches value
183
187
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
188
+ # @option opts [String] :name__istartswith Filter results where name starts with value
184
189
  # @option opts [String] :name__startswith Filter results where name starts with value
185
190
  # @option opts [Integer] :offset The initial index from which to return the results.
186
191
  # @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;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;url&#x60; - Url * &#x60;-url&#x60; - Url (descending) * &#x60;ca_cert&#x60; - Ca cert * &#x60;-ca_cert&#x60; - Ca cert (descending) * &#x60;client_cert&#x60; - Client cert * &#x60;-client_cert&#x60; - Client cert (descending) * &#x60;client_key&#x60; - Client key * &#x60;-client_key&#x60; - Client key (descending) * &#x60;tls_validation&#x60; - Tls validation * &#x60;-tls_validation&#x60; - Tls validation (descending) * &#x60;username&#x60; - Username * &#x60;-username&#x60; - Username (descending) * &#x60;password&#x60; - Password * &#x60;-password&#x60; - Password (descending) * &#x60;proxy_url&#x60; - Proxy url * &#x60;-proxy_url&#x60; - Proxy url (descending) * &#x60;proxy_username&#x60; - Proxy username * &#x60;-proxy_username&#x60; - Proxy username (descending) * &#x60;proxy_password&#x60; - Proxy password * &#x60;-proxy_password&#x60; - Proxy password (descending) * &#x60;download_concurrency&#x60; - Download concurrency * &#x60;-download_concurrency&#x60; - Download concurrency (descending) * &#x60;max_retries&#x60; - Max retries * &#x60;-max_retries&#x60; - Max retries (descending) * &#x60;policy&#x60; - Policy * &#x60;-policy&#x60; - Policy (descending) * &#x60;total_timeout&#x60; - Total timeout * &#x60;-total_timeout&#x60; - Total timeout (descending) * &#x60;connect_timeout&#x60; - Connect timeout * &#x60;-connect_timeout&#x60; - Connect timeout (descending) * &#x60;sock_connect_timeout&#x60; - Sock connect timeout * &#x60;-sock_connect_timeout&#x60; - Sock connect timeout (descending) * &#x60;sock_read_timeout&#x60; - Sock read timeout * &#x60;-sock_read_timeout&#x60; - Sock read timeout (descending) * &#x60;headers&#x60; - Headers * &#x60;-headers&#x60; - Headers (descending) * &#x60;rate_limit&#x60; - Rate limit * &#x60;-rate_limit&#x60; - Rate limit (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
@@ -193,6 +198,7 @@ module PulpOstreeClient
193
198
  # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
194
199
  # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
195
200
  # @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
201
+ # @option opts [String] :q
196
202
  # @option opts [Array<String>] :fields A list of fields to include in the response.
197
203
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
198
204
  # @return [Array<(PaginatedostreeOstreeRemoteResponseList, Integer, Hash)>] PaginatedostreeOstreeRemoteResponseList data, response status code and response headers
@@ -213,7 +219,9 @@ module PulpOstreeClient
213
219
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
214
220
  query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
215
221
  query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
222
+ query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
216
223
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
224
+ query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
217
225
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
218
226
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
219
227
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
@@ -226,6 +234,7 @@ module PulpOstreeClient
226
234
  query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
227
235
  query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
228
236
  query_params[:'pulp_last_updated__range'] = @api_client.build_collection_param(opts[:'pulp_last_updated__range'], :csv) if !opts[:'pulp_last_updated__range'].nil?
237
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
229
238
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
230
239
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
231
240
 
@@ -400,6 +409,146 @@ module PulpOstreeClient
400
409
  return data, status_code, headers
401
410
  end
402
411
 
412
+ # Set a label
413
+ # Set a single pulp_label on the object to a specific value or null.
414
+ # @param ostree_ostree_remote_href [String]
415
+ # @param set_label [SetLabel]
416
+ # @param [Hash] opts the optional parameters
417
+ # @return [SetLabelResponse]
418
+ def set_label(ostree_ostree_remote_href, set_label, opts = {})
419
+ data, _status_code, _headers = set_label_with_http_info(ostree_ostree_remote_href, set_label, opts)
420
+ data
421
+ end
422
+
423
+ # Set a label
424
+ # Set a single pulp_label on the object to a specific value or null.
425
+ # @param ostree_ostree_remote_href [String]
426
+ # @param set_label [SetLabel]
427
+ # @param [Hash] opts the optional parameters
428
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
429
+ def set_label_with_http_info(ostree_ostree_remote_href, set_label, opts = {})
430
+ if @api_client.config.debugging
431
+ @api_client.config.logger.debug 'Calling API: RemotesOstreeApi.set_label ...'
432
+ end
433
+ # verify the required parameter 'ostree_ostree_remote_href' is set
434
+ if @api_client.config.client_side_validation && ostree_ostree_remote_href.nil?
435
+ fail ArgumentError, "Missing the required parameter 'ostree_ostree_remote_href' when calling RemotesOstreeApi.set_label"
436
+ end
437
+ # verify the required parameter 'set_label' is set
438
+ if @api_client.config.client_side_validation && set_label.nil?
439
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling RemotesOstreeApi.set_label"
440
+ end
441
+ # resource path
442
+ local_var_path = '{ostree_ostree_remote_href}set_label/'.sub('{' + 'ostree_ostree_remote_href' + '}', CGI.escape(ostree_ostree_remote_href.to_s).gsub('%2F', '/'))
443
+
444
+ # query parameters
445
+ query_params = opts[:query_params] || {}
446
+
447
+ # header parameters
448
+ header_params = opts[:header_params] || {}
449
+ # HTTP header 'Accept' (if needed)
450
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
451
+ # HTTP header 'Content-Type'
452
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
453
+
454
+ # form parameters
455
+ form_params = opts[:form_params] || {}
456
+
457
+ # http body (model)
458
+ post_body = opts[:body] || @api_client.object_to_http_body(set_label)
459
+
460
+ # return_type
461
+ return_type = opts[:return_type] || 'SetLabelResponse'
462
+
463
+ # auth_names
464
+ auth_names = opts[:auth_names] || ['basicAuth']
465
+
466
+ new_options = opts.merge(
467
+ :header_params => header_params,
468
+ :query_params => query_params,
469
+ :form_params => form_params,
470
+ :body => post_body,
471
+ :auth_names => auth_names,
472
+ :return_type => return_type
473
+ )
474
+
475
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
476
+ if @api_client.config.debugging
477
+ @api_client.config.logger.debug "API called: RemotesOstreeApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
478
+ end
479
+ return data, status_code, headers
480
+ end
481
+
482
+ # Unset a label
483
+ # Unset a single pulp_label on the object.
484
+ # @param ostree_ostree_remote_href [String]
485
+ # @param unset_label [UnsetLabel]
486
+ # @param [Hash] opts the optional parameters
487
+ # @return [UnsetLabelResponse]
488
+ def unset_label(ostree_ostree_remote_href, unset_label, opts = {})
489
+ data, _status_code, _headers = unset_label_with_http_info(ostree_ostree_remote_href, unset_label, opts)
490
+ data
491
+ end
492
+
493
+ # Unset a label
494
+ # Unset a single pulp_label on the object.
495
+ # @param ostree_ostree_remote_href [String]
496
+ # @param unset_label [UnsetLabel]
497
+ # @param [Hash] opts the optional parameters
498
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
499
+ def unset_label_with_http_info(ostree_ostree_remote_href, unset_label, opts = {})
500
+ if @api_client.config.debugging
501
+ @api_client.config.logger.debug 'Calling API: RemotesOstreeApi.unset_label ...'
502
+ end
503
+ # verify the required parameter 'ostree_ostree_remote_href' is set
504
+ if @api_client.config.client_side_validation && ostree_ostree_remote_href.nil?
505
+ fail ArgumentError, "Missing the required parameter 'ostree_ostree_remote_href' when calling RemotesOstreeApi.unset_label"
506
+ end
507
+ # verify the required parameter 'unset_label' is set
508
+ if @api_client.config.client_side_validation && unset_label.nil?
509
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling RemotesOstreeApi.unset_label"
510
+ end
511
+ # resource path
512
+ local_var_path = '{ostree_ostree_remote_href}unset_label/'.sub('{' + 'ostree_ostree_remote_href' + '}', CGI.escape(ostree_ostree_remote_href.to_s).gsub('%2F', '/'))
513
+
514
+ # query parameters
515
+ query_params = opts[:query_params] || {}
516
+
517
+ # header parameters
518
+ header_params = opts[:header_params] || {}
519
+ # HTTP header 'Accept' (if needed)
520
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
521
+ # HTTP header 'Content-Type'
522
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
523
+
524
+ # form parameters
525
+ form_params = opts[:form_params] || {}
526
+
527
+ # http body (model)
528
+ post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
529
+
530
+ # return_type
531
+ return_type = opts[:return_type] || 'UnsetLabelResponse'
532
+
533
+ # auth_names
534
+ auth_names = opts[:auth_names] || ['basicAuth']
535
+
536
+ new_options = opts.merge(
537
+ :header_params => header_params,
538
+ :query_params => query_params,
539
+ :form_params => form_params,
540
+ :body => post_body,
541
+ :auth_names => auth_names,
542
+ :return_type => return_type
543
+ )
544
+
545
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
546
+ if @api_client.config.debugging
547
+ @api_client.config.logger.debug "API called: RemotesOstreeApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
548
+ end
549
+ return data, status_code, headers
550
+ end
551
+
403
552
  # Update an ostree remote
404
553
  # Trigger an asynchronous update task
405
554
  # @param ostree_ostree_remote_href [String]
@@ -293,13 +293,16 @@ module PulpOstreeClient
293
293
  # @option opts [String] :name Filter results where name matches value
294
294
  # @option opts [String] :name__contains Filter results where name contains value
295
295
  # @option opts [String] :name__icontains Filter results where name contains value
296
+ # @option opts [String] :name__iexact Filter results where name matches value
296
297
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
298
+ # @option opts [String] :name__istartswith Filter results where name starts with value
297
299
  # @option opts [String] :name__startswith Filter results where name starts with value
298
300
  # @option opts [Integer] :offset The initial index from which to return the results.
299
301
  # @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;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
300
302
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
301
303
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
302
304
  # @option opts [String] :pulp_label_select Filter labels by search string
305
+ # @option opts [String] :q
303
306
  # @option opts [String] :remote Foreign Key referenced by HREF
304
307
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
305
308
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
@@ -326,13 +329,16 @@ module PulpOstreeClient
326
329
  # @option opts [String] :name Filter results where name matches value
327
330
  # @option opts [String] :name__contains Filter results where name contains value
328
331
  # @option opts [String] :name__icontains Filter results where name contains value
332
+ # @option opts [String] :name__iexact Filter results where name matches value
329
333
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
334
+ # @option opts [String] :name__istartswith Filter results where name starts with value
330
335
  # @option opts [String] :name__startswith Filter results where name starts with value
331
336
  # @option opts [Integer] :offset The initial index from which to return the results.
332
337
  # @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;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
333
338
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
334
339
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
335
340
  # @option opts [String] :pulp_label_select Filter labels by search string
341
+ # @option opts [String] :q
336
342
  # @option opts [String] :remote Foreign Key referenced by HREF
337
343
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
338
344
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
@@ -364,13 +370,16 @@ module PulpOstreeClient
364
370
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
365
371
  query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
366
372
  query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
373
+ query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
367
374
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
375
+ query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
368
376
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
369
377
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
370
378
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
371
379
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
372
380
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
373
381
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
382
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
374
383
  query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
375
384
  query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
376
385
  query_params[:'retain_repo_versions__gt'] = opts[:'retain_repo_versions__gt'] if !opts[:'retain_repo_versions__gt'].nil?
@@ -625,6 +634,76 @@ module PulpOstreeClient
625
634
  return data, status_code, headers
626
635
  end
627
636
 
637
+ # Set a label
638
+ # Set a single pulp_label on the object to a specific value or null.
639
+ # @param ostree_ostree_repository_href [String]
640
+ # @param set_label [SetLabel]
641
+ # @param [Hash] opts the optional parameters
642
+ # @return [SetLabelResponse]
643
+ def set_label(ostree_ostree_repository_href, set_label, opts = {})
644
+ data, _status_code, _headers = set_label_with_http_info(ostree_ostree_repository_href, set_label, opts)
645
+ data
646
+ end
647
+
648
+ # Set a label
649
+ # Set a single pulp_label on the object to a specific value or null.
650
+ # @param ostree_ostree_repository_href [String]
651
+ # @param set_label [SetLabel]
652
+ # @param [Hash] opts the optional parameters
653
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
654
+ def set_label_with_http_info(ostree_ostree_repository_href, set_label, opts = {})
655
+ if @api_client.config.debugging
656
+ @api_client.config.logger.debug 'Calling API: RepositoriesOstreeApi.set_label ...'
657
+ end
658
+ # verify the required parameter 'ostree_ostree_repository_href' is set
659
+ if @api_client.config.client_side_validation && ostree_ostree_repository_href.nil?
660
+ fail ArgumentError, "Missing the required parameter 'ostree_ostree_repository_href' when calling RepositoriesOstreeApi.set_label"
661
+ end
662
+ # verify the required parameter 'set_label' is set
663
+ if @api_client.config.client_side_validation && set_label.nil?
664
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling RepositoriesOstreeApi.set_label"
665
+ end
666
+ # resource path
667
+ local_var_path = '{ostree_ostree_repository_href}set_label/'.sub('{' + 'ostree_ostree_repository_href' + '}', CGI.escape(ostree_ostree_repository_href.to_s).gsub('%2F', '/'))
668
+
669
+ # query parameters
670
+ query_params = opts[:query_params] || {}
671
+
672
+ # header parameters
673
+ header_params = opts[:header_params] || {}
674
+ # HTTP header 'Accept' (if needed)
675
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
676
+ # HTTP header 'Content-Type'
677
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
678
+
679
+ # form parameters
680
+ form_params = opts[:form_params] || {}
681
+
682
+ # http body (model)
683
+ post_body = opts[:body] || @api_client.object_to_http_body(set_label)
684
+
685
+ # return_type
686
+ return_type = opts[:return_type] || 'SetLabelResponse'
687
+
688
+ # auth_names
689
+ auth_names = opts[:auth_names] || ['basicAuth']
690
+
691
+ new_options = opts.merge(
692
+ :header_params => header_params,
693
+ :query_params => query_params,
694
+ :form_params => form_params,
695
+ :body => post_body,
696
+ :auth_names => auth_names,
697
+ :return_type => return_type
698
+ )
699
+
700
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
701
+ if @api_client.config.debugging
702
+ @api_client.config.logger.debug "API called: RepositoriesOstreeApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
703
+ end
704
+ return data, status_code, headers
705
+ end
706
+
628
707
  # Sync from remote
629
708
  # Trigger an asynchronous task to sync content.
630
709
  # @param ostree_ostree_repository_href [String]
@@ -695,6 +774,76 @@ module PulpOstreeClient
695
774
  return data, status_code, headers
696
775
  end
697
776
 
777
+ # Unset a label
778
+ # Unset a single pulp_label on the object.
779
+ # @param ostree_ostree_repository_href [String]
780
+ # @param unset_label [UnsetLabel]
781
+ # @param [Hash] opts the optional parameters
782
+ # @return [UnsetLabelResponse]
783
+ def unset_label(ostree_ostree_repository_href, unset_label, opts = {})
784
+ data, _status_code, _headers = unset_label_with_http_info(ostree_ostree_repository_href, unset_label, opts)
785
+ data
786
+ end
787
+
788
+ # Unset a label
789
+ # Unset a single pulp_label on the object.
790
+ # @param ostree_ostree_repository_href [String]
791
+ # @param unset_label [UnsetLabel]
792
+ # @param [Hash] opts the optional parameters
793
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
794
+ def unset_label_with_http_info(ostree_ostree_repository_href, unset_label, opts = {})
795
+ if @api_client.config.debugging
796
+ @api_client.config.logger.debug 'Calling API: RepositoriesOstreeApi.unset_label ...'
797
+ end
798
+ # verify the required parameter 'ostree_ostree_repository_href' is set
799
+ if @api_client.config.client_side_validation && ostree_ostree_repository_href.nil?
800
+ fail ArgumentError, "Missing the required parameter 'ostree_ostree_repository_href' when calling RepositoriesOstreeApi.unset_label"
801
+ end
802
+ # verify the required parameter 'unset_label' is set
803
+ if @api_client.config.client_side_validation && unset_label.nil?
804
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling RepositoriesOstreeApi.unset_label"
805
+ end
806
+ # resource path
807
+ local_var_path = '{ostree_ostree_repository_href}unset_label/'.sub('{' + 'ostree_ostree_repository_href' + '}', CGI.escape(ostree_ostree_repository_href.to_s).gsub('%2F', '/'))
808
+
809
+ # query parameters
810
+ query_params = opts[:query_params] || {}
811
+
812
+ # header parameters
813
+ header_params = opts[:header_params] || {}
814
+ # HTTP header 'Accept' (if needed)
815
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
816
+ # HTTP header 'Content-Type'
817
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
818
+
819
+ # form parameters
820
+ form_params = opts[:form_params] || {}
821
+
822
+ # http body (model)
823
+ post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
824
+
825
+ # return_type
826
+ return_type = opts[:return_type] || 'UnsetLabelResponse'
827
+
828
+ # auth_names
829
+ auth_names = opts[:auth_names] || ['basicAuth']
830
+
831
+ new_options = opts.merge(
832
+ :header_params => header_params,
833
+ :query_params => query_params,
834
+ :form_params => form_params,
835
+ :body => post_body,
836
+ :auth_names => auth_names,
837
+ :return_type => return_type
838
+ )
839
+
840
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
841
+ if @api_client.config.debugging
842
+ @api_client.config.logger.debug "API called: RepositoriesOstreeApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
843
+ end
844
+ return data, status_code, headers
845
+ end
846
+
698
847
  # Update an ostree repository
699
848
  # Trigger an asynchronous update task
700
849
  # @param ostree_ostree_repository_href [String]