pulp_gem_client 0.2.0 → 0.3.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 (37) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -5
  3. data/docs/ContentGemApi.md +3 -1
  4. data/docs/DistributionsGemApi.md +119 -1
  5. data/docs/PublicationsGemApi.md +3 -1
  6. data/docs/RemotesGemApi.md +119 -1
  7. data/docs/RepositoriesGemApi.md +119 -1
  8. data/docs/RepositoriesGemVersionsApi.md +3 -1
  9. data/docs/SetLabel.md +19 -0
  10. data/docs/SetLabelResponse.md +19 -0
  11. data/docs/UnsetLabel.md +17 -0
  12. data/docs/UnsetLabelResponse.md +19 -0
  13. data/lib/pulp_gem_client/api/content_gem_api.rb +3 -0
  14. data/lib/pulp_gem_client/api/distributions_gem_api.rb +149 -0
  15. data/lib/pulp_gem_client/api/publications_gem_api.rb +3 -0
  16. data/lib/pulp_gem_client/api/remotes_gem_api.rb +149 -0
  17. data/lib/pulp_gem_client/api/repositories_gem_api.rb +149 -0
  18. data/lib/pulp_gem_client/api/repositories_gem_versions_api.rb +3 -0
  19. data/lib/pulp_gem_client/configuration.rb +2 -2
  20. data/lib/pulp_gem_client/models/set_label.rb +252 -0
  21. data/lib/pulp_gem_client/models/set_label_response.rb +243 -0
  22. data/lib/pulp_gem_client/models/unset_label.rb +242 -0
  23. data/lib/pulp_gem_client/models/unset_label_response.rb +242 -0
  24. data/lib/pulp_gem_client/version.rb +1 -1
  25. data/lib/pulp_gem_client.rb +4 -0
  26. data/spec/api/content_gem_api_spec.rb +1 -0
  27. data/spec/api/distributions_gem_api_spec.rb +29 -0
  28. data/spec/api/publications_gem_api_spec.rb +1 -0
  29. data/spec/api/remotes_gem_api_spec.rb +29 -0
  30. data/spec/api/repositories_gem_api_spec.rb +29 -0
  31. data/spec/api/repositories_gem_versions_api_spec.rb +1 -0
  32. data/spec/configuration_spec.rb +3 -3
  33. data/spec/models/set_label_response_spec.rb +47 -0
  34. data/spec/models/set_label_spec.rb +47 -0
  35. data/spec/models/unset_label_response_spec.rb +47 -0
  36. data/spec/models/unset_label_spec.rb +41 -0
  37. metadata +37 -21
@@ -1,6 +1,6 @@
1
1
  # PulpGemClient::RepositoriesGemVersionsApi
2
2
 
3
- All URIs are relative to *https://pulp*
3
+ All URIs are relative to *http://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -105,6 +105,7 @@ opts = {
105
105
  pulp_created__lte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is less than or equal to value
106
106
  pulp_created__range: [DateTime.parse('2013-10-20T19:20:30+01:00')], # Array<DateTime> | Filter results where pulp_created is between two comma separated values
107
107
  pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
108
+ q: 'q_example', # String |
108
109
  fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
109
110
  exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
110
111
  }
@@ -142,6 +143,7 @@ Name | Type | Description | Notes
142
143
  **pulp_created__lte** | **DateTime**| Filter results where pulp_created is less than or equal to value | [optional]
143
144
  **pulp_created__range** | [**Array&lt;DateTime&gt;**](DateTime.md)| Filter results where pulp_created is between two comma separated values | [optional]
144
145
  **pulp_href__in** | [**Array&lt;String&gt;**](String.md)| Multiple values may be separated by commas. | [optional]
146
+ **q** | **String**| | [optional]
145
147
  **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
146
148
  **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
147
149
 
data/docs/SetLabel.md ADDED
@@ -0,0 +1,19 @@
1
+ # PulpGemClient::SetLabel
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **key** | **String** | |
8
+ **value** | **String** | |
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'PulpGemClient'
14
+
15
+ instance = PulpGemClient::SetLabel.new(key: null,
16
+ value: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,19 @@
1
+ # PulpGemClient::SetLabelResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **key** | **String** | |
8
+ **value** | **String** | |
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'PulpGemClient'
14
+
15
+ instance = PulpGemClient::SetLabelResponse.new(key: null,
16
+ value: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,17 @@
1
+ # PulpGemClient::UnsetLabel
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **key** | **String** | |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'PulpGemClient'
13
+
14
+ instance = PulpGemClient::UnsetLabel.new(key: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,19 @@
1
+ # PulpGemClient::UnsetLabelResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **key** | **String** | |
8
+ **value** | **String** | | [optional] [readonly]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'PulpGemClient'
14
+
15
+ instance = PulpGemClient::UnsetLabelResponse.new(key: null,
16
+ value: null)
17
+ ```
18
+
19
+
@@ -97,6 +97,7 @@ module PulpGemClient
97
97
  # @option opts [Boolean] :prerelease Filter results where prerelease matches value
98
98
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
99
99
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
100
+ # @option opts [String] :q
100
101
  # @option opts [String] :repository_version Repository Version referenced by HREF
101
102
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
102
103
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -120,6 +121,7 @@ module PulpGemClient
120
121
  # @option opts [Boolean] :prerelease Filter results where prerelease matches value
121
122
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
122
123
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
124
+ # @option opts [String] :q
123
125
  # @option opts [String] :repository_version Repository Version referenced by HREF
124
126
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
125
127
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -148,6 +150,7 @@ module PulpGemClient
148
150
  query_params[:'prerelease'] = opts[:'prerelease'] if !opts[:'prerelease'].nil?
149
151
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
150
152
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
153
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
151
154
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
152
155
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
153
156
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -156,13 +156,16 @@ module PulpGemClient
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
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 PulpGemClient
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
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
@@ -219,13 +225,16 @@ module PulpGemClient
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 PulpGemClient
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 gem_gem_distribution_href [String]
418
+ # @param set_label [SetLabel]
419
+ # @param [Hash] opts the optional parameters
420
+ # @return [SetLabelResponse]
421
+ def set_label(gem_gem_distribution_href, set_label, opts = {})
422
+ data, _status_code, _headers = set_label_with_http_info(gem_gem_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 gem_gem_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(gem_gem_distribution_href, set_label, opts = {})
433
+ if @api_client.config.debugging
434
+ @api_client.config.logger.debug 'Calling API: DistributionsGemApi.set_label ...'
435
+ end
436
+ # verify the required parameter 'gem_gem_distribution_href' is set
437
+ if @api_client.config.client_side_validation && gem_gem_distribution_href.nil?
438
+ fail ArgumentError, "Missing the required parameter 'gem_gem_distribution_href' when calling DistributionsGemApi.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 DistributionsGemApi.set_label"
443
+ end
444
+ # resource path
445
+ local_var_path = '{gem_gem_distribution_href}set_label/'.sub('{' + 'gem_gem_distribution_href' + '}', CGI.escape(gem_gem_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: DistributionsGemApi#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 gem_gem_distribution_href [String]
488
+ # @param unset_label [UnsetLabel]
489
+ # @param [Hash] opts the optional parameters
490
+ # @return [UnsetLabelResponse]
491
+ def unset_label(gem_gem_distribution_href, unset_label, opts = {})
492
+ data, _status_code, _headers = unset_label_with_http_info(gem_gem_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 gem_gem_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(gem_gem_distribution_href, unset_label, opts = {})
503
+ if @api_client.config.debugging
504
+ @api_client.config.logger.debug 'Calling API: DistributionsGemApi.unset_label ...'
505
+ end
506
+ # verify the required parameter 'gem_gem_distribution_href' is set
507
+ if @api_client.config.client_side_validation && gem_gem_distribution_href.nil?
508
+ fail ArgumentError, "Missing the required parameter 'gem_gem_distribution_href' when calling DistributionsGemApi.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 DistributionsGemApi.unset_label"
513
+ end
514
+ # resource path
515
+ local_var_path = '{gem_gem_distribution_href}unset_label/'.sub('{' + 'gem_gem_distribution_href' + '}', CGI.escape(gem_gem_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: DistributionsGemApi#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 a gem distribution
407
556
  # Trigger an asynchronous update task
408
557
  # @param gem_gem_distribution_href [String]
@@ -159,6 +159,7 @@ module PulpGemClient
159
159
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
160
160
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
161
161
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
162
+ # @option opts [String] :q
162
163
  # @option opts [String] :repository Repository referenced by HREF
163
164
  # @option opts [String] :repository_version Repository Version referenced by HREF
164
165
  # @option opts [Array<String>] :fields A list of fields to include in the response.
@@ -185,6 +186,7 @@ module PulpGemClient
185
186
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
186
187
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
187
188
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
189
+ # @option opts [String] :q
188
190
  # @option opts [String] :repository Repository referenced by HREF
189
191
  # @option opts [String] :repository_version Repository Version referenced by HREF
190
192
  # @option opts [Array<String>] :fields A list of fields to include in the response.
@@ -216,6 +218,7 @@ module PulpGemClient
216
218
  query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].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[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
220
223
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
221
224
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
@@ -152,7 +152,9 @@ module PulpGemClient
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 PulpGemClient
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 [PaginatedgemGemRemoteResponseList]
@@ -180,7 +183,9 @@ module PulpGemClient
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 PulpGemClient
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<(PaginatedgemGemRemoteResponseList, Integer, Hash)>] PaginatedgemGemRemoteResponseList data, response status code and response headers
@@ -213,7 +219,9 @@ module PulpGemClient
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 PulpGemClient
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 PulpGemClient
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 gem_gem_remote_href [String]
415
+ # @param set_label [SetLabel]
416
+ # @param [Hash] opts the optional parameters
417
+ # @return [SetLabelResponse]
418
+ def set_label(gem_gem_remote_href, set_label, opts = {})
419
+ data, _status_code, _headers = set_label_with_http_info(gem_gem_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 gem_gem_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(gem_gem_remote_href, set_label, opts = {})
430
+ if @api_client.config.debugging
431
+ @api_client.config.logger.debug 'Calling API: RemotesGemApi.set_label ...'
432
+ end
433
+ # verify the required parameter 'gem_gem_remote_href' is set
434
+ if @api_client.config.client_side_validation && gem_gem_remote_href.nil?
435
+ fail ArgumentError, "Missing the required parameter 'gem_gem_remote_href' when calling RemotesGemApi.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 RemotesGemApi.set_label"
440
+ end
441
+ # resource path
442
+ local_var_path = '{gem_gem_remote_href}set_label/'.sub('{' + 'gem_gem_remote_href' + '}', CGI.escape(gem_gem_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: RemotesGemApi#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 gem_gem_remote_href [String]
485
+ # @param unset_label [UnsetLabel]
486
+ # @param [Hash] opts the optional parameters
487
+ # @return [UnsetLabelResponse]
488
+ def unset_label(gem_gem_remote_href, unset_label, opts = {})
489
+ data, _status_code, _headers = unset_label_with_http_info(gem_gem_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 gem_gem_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(gem_gem_remote_href, unset_label, opts = {})
500
+ if @api_client.config.debugging
501
+ @api_client.config.logger.debug 'Calling API: RemotesGemApi.unset_label ...'
502
+ end
503
+ # verify the required parameter 'gem_gem_remote_href' is set
504
+ if @api_client.config.client_side_validation && gem_gem_remote_href.nil?
505
+ fail ArgumentError, "Missing the required parameter 'gem_gem_remote_href' when calling RemotesGemApi.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 RemotesGemApi.unset_label"
510
+ end
511
+ # resource path
512
+ local_var_path = '{gem_gem_remote_href}unset_label/'.sub('{' + 'gem_gem_remote_href' + '}', CGI.escape(gem_gem_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: RemotesGemApi#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 a gem remote
404
553
  # Trigger an asynchronous update task
405
554
  # @param gem_gem_remote_href [String]