pulp_file_client 1.14.4 → 1.14.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +36 -25
- data/docs/AcsFileApi.md +23 -9
- data/docs/ContentFilesApi.md +3 -1
- data/docs/DistributionsFileApi.md +135 -9
- data/docs/PublicationsFileApi.md +15 -9
- data/docs/RemotesFileApi.md +135 -9
- data/docs/RepositoriesFileApi.md +135 -9
- data/docs/RepositoriesFileVersionsApi.md +3 -1
- data/docs/SetLabel.md +19 -0
- data/docs/SetLabelResponse.md +19 -0
- data/docs/UnsetLabel.md +17 -0
- data/docs/UnsetLabelResponse.md +19 -0
- data/lib/pulp_file_client/api/acs_file_api.rb +23 -0
- data/lib/pulp_file_client/api/content_files_api.rb +3 -0
- data/lib/pulp_file_client/api/distributions_file_api.rb +163 -0
- data/lib/pulp_file_client/api/publications_file_api.rb +11 -0
- data/lib/pulp_file_client/api/remotes_file_api.rb +163 -0
- data/lib/pulp_file_client/api/repositories_file_api.rb +163 -0
- data/lib/pulp_file_client/api/repositories_file_versions_api.rb +3 -0
- data/lib/pulp_file_client/configuration.rb +2 -2
- data/lib/pulp_file_client/models/set_label.rb +252 -0
- data/lib/pulp_file_client/models/set_label_response.rb +243 -0
- data/lib/pulp_file_client/models/unset_label.rb +242 -0
- data/lib/pulp_file_client/models/unset_label_response.rb +242 -0
- data/lib/pulp_file_client/version.rb +1 -1
- data/lib/pulp_file_client.rb +4 -0
- data/spec/api/acs_file_api_spec.rb +9 -0
- data/spec/api/content_files_api_spec.rb +1 -0
- data/spec/api/distributions_file_api_spec.rb +35 -0
- data/spec/api/publications_file_api_spec.rb +5 -0
- data/spec/api/remotes_file_api_spec.rb +35 -0
- data/spec/api/repositories_file_api_spec.rb +35 -0
- data/spec/api/repositories_file_versions_api_spec.rb +1 -0
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/set_label_response_spec.rb +47 -0
- data/spec/models/set_label_spec.rb +47 -0
- data/spec/models/unset_label_response_spec.rb +47 -0
- data/spec/models/unset_label_spec.rb +41 -0
- metadata +49 -33
@@ -19,6 +19,7 @@ module PulpFileClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Add a role
|
22
23
|
# Add a role for this object to users/groups.
|
23
24
|
# @param file_file_remote_href [String]
|
24
25
|
# @param nested_role [NestedRole]
|
@@ -29,6 +30,7 @@ module PulpFileClient
|
|
29
30
|
data
|
30
31
|
end
|
31
32
|
|
33
|
+
# Add a role
|
32
34
|
# Add a role for this object to users/groups.
|
33
35
|
# @param file_file_remote_href [String]
|
34
36
|
# @param nested_role [NestedRole]
|
@@ -220,7 +222,11 @@ module PulpFileClient
|
|
220
222
|
# @option opts [String] :name Filter results where name matches value
|
221
223
|
# @option opts [String] :name__contains Filter results where name contains value
|
222
224
|
# @option opts [String] :name__icontains Filter results where name contains value
|
225
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
223
226
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
227
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
228
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
229
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
224
230
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
225
231
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
226
232
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
@@ -233,6 +239,7 @@ module PulpFileClient
|
|
233
239
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
234
240
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
235
241
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
242
|
+
# @option opts [String] :q
|
236
243
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
237
244
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
238
245
|
# @return [PaginatedfileFileRemoteResponseList]
|
@@ -248,7 +255,11 @@ module PulpFileClient
|
|
248
255
|
# @option opts [String] :name Filter results where name matches value
|
249
256
|
# @option opts [String] :name__contains Filter results where name contains value
|
250
257
|
# @option opts [String] :name__icontains Filter results where name contains value
|
258
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
251
259
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
260
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
261
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
262
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
252
263
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
253
264
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
254
265
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
@@ -261,6 +272,7 @@ module PulpFileClient
|
|
261
272
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
262
273
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
263
274
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
275
|
+
# @option opts [String] :q
|
264
276
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
265
277
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
266
278
|
# @return [Array<(PaginatedfileFileRemoteResponseList, Integer, Hash)>] PaginatedfileFileRemoteResponseList data, response status code and response headers
|
@@ -281,7 +293,11 @@ module PulpFileClient
|
|
281
293
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
282
294
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
283
295
|
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
296
|
+
query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
|
284
297
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
298
|
+
query_params[:'name__iregex'] = opts[:'name__iregex'] if !opts[:'name__iregex'].nil?
|
299
|
+
query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
|
300
|
+
query_params[:'name__regex'] = opts[:'name__regex'] if !opts[:'name__regex'].nil?
|
285
301
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
286
302
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
287
303
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
@@ -294,6 +310,7 @@ module PulpFileClient
|
|
294
310
|
query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
|
295
311
|
query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
|
296
312
|
query_params[:'pulp_last_updated__range'] = @api_client.build_collection_param(opts[:'pulp_last_updated__range'], :csv) if !opts[:'pulp_last_updated__range'].nil?
|
313
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
297
314
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
298
315
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
299
316
|
|
@@ -330,6 +347,7 @@ module PulpFileClient
|
|
330
347
|
return data, status_code, headers
|
331
348
|
end
|
332
349
|
|
350
|
+
# List roles
|
333
351
|
# List roles assigned to this object.
|
334
352
|
# @param file_file_remote_href [String]
|
335
353
|
# @param [Hash] opts the optional parameters
|
@@ -341,6 +359,7 @@ module PulpFileClient
|
|
341
359
|
data
|
342
360
|
end
|
343
361
|
|
362
|
+
# List roles
|
344
363
|
# List roles assigned to this object.
|
345
364
|
# @param file_file_remote_href [String]
|
346
365
|
# @param [Hash] opts the optional parameters
|
@@ -396,6 +415,7 @@ module PulpFileClient
|
|
396
415
|
return data, status_code, headers
|
397
416
|
end
|
398
417
|
|
418
|
+
# List user permissions
|
399
419
|
# List permissions available to the current user on this object.
|
400
420
|
# @param file_file_remote_href [String]
|
401
421
|
# @param [Hash] opts the optional parameters
|
@@ -407,6 +427,7 @@ module PulpFileClient
|
|
407
427
|
data
|
408
428
|
end
|
409
429
|
|
430
|
+
# List user permissions
|
410
431
|
# List permissions available to the current user on this object.
|
411
432
|
# @param file_file_remote_href [String]
|
412
433
|
# @param [Hash] opts the optional parameters
|
@@ -600,6 +621,7 @@ module PulpFileClient
|
|
600
621
|
return data, status_code, headers
|
601
622
|
end
|
602
623
|
|
624
|
+
# Remove a role
|
603
625
|
# Remove a role for this object from users/groups.
|
604
626
|
# @param file_file_remote_href [String]
|
605
627
|
# @param nested_role [NestedRole]
|
@@ -610,6 +632,7 @@ module PulpFileClient
|
|
610
632
|
data
|
611
633
|
end
|
612
634
|
|
635
|
+
# Remove a role
|
613
636
|
# Remove a role for this object from users/groups.
|
614
637
|
# @param file_file_remote_href [String]
|
615
638
|
# @param nested_role [NestedRole]
|
@@ -668,6 +691,146 @@ module PulpFileClient
|
|
668
691
|
return data, status_code, headers
|
669
692
|
end
|
670
693
|
|
694
|
+
# Set a label
|
695
|
+
# Set a single pulp_label on the object to a specific value or null.
|
696
|
+
# @param file_file_remote_href [String]
|
697
|
+
# @param set_label [SetLabel]
|
698
|
+
# @param [Hash] opts the optional parameters
|
699
|
+
# @return [SetLabelResponse]
|
700
|
+
def set_label(file_file_remote_href, set_label, opts = {})
|
701
|
+
data, _status_code, _headers = set_label_with_http_info(file_file_remote_href, set_label, opts)
|
702
|
+
data
|
703
|
+
end
|
704
|
+
|
705
|
+
# Set a label
|
706
|
+
# Set a single pulp_label on the object to a specific value or null.
|
707
|
+
# @param file_file_remote_href [String]
|
708
|
+
# @param set_label [SetLabel]
|
709
|
+
# @param [Hash] opts the optional parameters
|
710
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
711
|
+
def set_label_with_http_info(file_file_remote_href, set_label, opts = {})
|
712
|
+
if @api_client.config.debugging
|
713
|
+
@api_client.config.logger.debug 'Calling API: RemotesFileApi.set_label ...'
|
714
|
+
end
|
715
|
+
# verify the required parameter 'file_file_remote_href' is set
|
716
|
+
if @api_client.config.client_side_validation && file_file_remote_href.nil?
|
717
|
+
fail ArgumentError, "Missing the required parameter 'file_file_remote_href' when calling RemotesFileApi.set_label"
|
718
|
+
end
|
719
|
+
# verify the required parameter 'set_label' is set
|
720
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
721
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling RemotesFileApi.set_label"
|
722
|
+
end
|
723
|
+
# resource path
|
724
|
+
local_var_path = '{file_file_remote_href}set_label/'.sub('{' + 'file_file_remote_href' + '}', CGI.escape(file_file_remote_href.to_s).gsub('%2F', '/'))
|
725
|
+
|
726
|
+
# query parameters
|
727
|
+
query_params = opts[:query_params] || {}
|
728
|
+
|
729
|
+
# header parameters
|
730
|
+
header_params = opts[:header_params] || {}
|
731
|
+
# HTTP header 'Accept' (if needed)
|
732
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
733
|
+
# HTTP header 'Content-Type'
|
734
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
735
|
+
|
736
|
+
# form parameters
|
737
|
+
form_params = opts[:form_params] || {}
|
738
|
+
|
739
|
+
# http body (model)
|
740
|
+
post_body = opts[:body] || @api_client.object_to_http_body(set_label)
|
741
|
+
|
742
|
+
# return_type
|
743
|
+
return_type = opts[:return_type] || 'SetLabelResponse'
|
744
|
+
|
745
|
+
# auth_names
|
746
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
747
|
+
|
748
|
+
new_options = opts.merge(
|
749
|
+
:header_params => header_params,
|
750
|
+
:query_params => query_params,
|
751
|
+
:form_params => form_params,
|
752
|
+
:body => post_body,
|
753
|
+
:auth_names => auth_names,
|
754
|
+
:return_type => return_type
|
755
|
+
)
|
756
|
+
|
757
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
758
|
+
if @api_client.config.debugging
|
759
|
+
@api_client.config.logger.debug "API called: RemotesFileApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
760
|
+
end
|
761
|
+
return data, status_code, headers
|
762
|
+
end
|
763
|
+
|
764
|
+
# Unset a label
|
765
|
+
# Unset a single pulp_label on the object.
|
766
|
+
# @param file_file_remote_href [String]
|
767
|
+
# @param unset_label [UnsetLabel]
|
768
|
+
# @param [Hash] opts the optional parameters
|
769
|
+
# @return [UnsetLabelResponse]
|
770
|
+
def unset_label(file_file_remote_href, unset_label, opts = {})
|
771
|
+
data, _status_code, _headers = unset_label_with_http_info(file_file_remote_href, unset_label, opts)
|
772
|
+
data
|
773
|
+
end
|
774
|
+
|
775
|
+
# Unset a label
|
776
|
+
# Unset a single pulp_label on the object.
|
777
|
+
# @param file_file_remote_href [String]
|
778
|
+
# @param unset_label [UnsetLabel]
|
779
|
+
# @param [Hash] opts the optional parameters
|
780
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
781
|
+
def unset_label_with_http_info(file_file_remote_href, unset_label, opts = {})
|
782
|
+
if @api_client.config.debugging
|
783
|
+
@api_client.config.logger.debug 'Calling API: RemotesFileApi.unset_label ...'
|
784
|
+
end
|
785
|
+
# verify the required parameter 'file_file_remote_href' is set
|
786
|
+
if @api_client.config.client_side_validation && file_file_remote_href.nil?
|
787
|
+
fail ArgumentError, "Missing the required parameter 'file_file_remote_href' when calling RemotesFileApi.unset_label"
|
788
|
+
end
|
789
|
+
# verify the required parameter 'unset_label' is set
|
790
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
791
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling RemotesFileApi.unset_label"
|
792
|
+
end
|
793
|
+
# resource path
|
794
|
+
local_var_path = '{file_file_remote_href}unset_label/'.sub('{' + 'file_file_remote_href' + '}', CGI.escape(file_file_remote_href.to_s).gsub('%2F', '/'))
|
795
|
+
|
796
|
+
# query parameters
|
797
|
+
query_params = opts[:query_params] || {}
|
798
|
+
|
799
|
+
# header parameters
|
800
|
+
header_params = opts[:header_params] || {}
|
801
|
+
# HTTP header 'Accept' (if needed)
|
802
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
803
|
+
# HTTP header 'Content-Type'
|
804
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
805
|
+
|
806
|
+
# form parameters
|
807
|
+
form_params = opts[:form_params] || {}
|
808
|
+
|
809
|
+
# http body (model)
|
810
|
+
post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
|
811
|
+
|
812
|
+
# return_type
|
813
|
+
return_type = opts[:return_type] || 'UnsetLabelResponse'
|
814
|
+
|
815
|
+
# auth_names
|
816
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
817
|
+
|
818
|
+
new_options = opts.merge(
|
819
|
+
:header_params => header_params,
|
820
|
+
:query_params => query_params,
|
821
|
+
:form_params => form_params,
|
822
|
+
:body => post_body,
|
823
|
+
:auth_names => auth_names,
|
824
|
+
:return_type => return_type
|
825
|
+
)
|
826
|
+
|
827
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
828
|
+
if @api_client.config.debugging
|
829
|
+
@api_client.config.logger.debug "API called: RemotesFileApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
830
|
+
end
|
831
|
+
return data, status_code, headers
|
832
|
+
end
|
833
|
+
|
671
834
|
# Update a file remote
|
672
835
|
# Trigger an asynchronous update task
|
673
836
|
# @param file_file_remote_href [String]
|
@@ -19,6 +19,7 @@ module PulpFileClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Add a role
|
22
23
|
# Add a role for this object to users/groups.
|
23
24
|
# @param file_file_repository_href [String]
|
24
25
|
# @param nested_role [NestedRole]
|
@@ -29,6 +30,7 @@ module PulpFileClient
|
|
29
30
|
data
|
30
31
|
end
|
31
32
|
|
33
|
+
# Add a role
|
32
34
|
# Add a role for this object to users/groups.
|
33
35
|
# @param file_file_repository_href [String]
|
34
36
|
# @param nested_role [NestedRole]
|
@@ -221,13 +223,18 @@ module PulpFileClient
|
|
221
223
|
# @option opts [String] :name Filter results where name matches value
|
222
224
|
# @option opts [String] :name__contains Filter results where name contains value
|
223
225
|
# @option opts [String] :name__icontains Filter results where name contains value
|
226
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
224
227
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
228
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
229
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
230
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
225
231
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
226
232
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
227
233
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
228
234
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
229
235
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
230
236
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
237
|
+
# @option opts [String] :q
|
231
238
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
232
239
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
233
240
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
@@ -254,13 +261,18 @@ module PulpFileClient
|
|
254
261
|
# @option opts [String] :name Filter results where name matches value
|
255
262
|
# @option opts [String] :name__contains Filter results where name contains value
|
256
263
|
# @option opts [String] :name__icontains Filter results where name contains value
|
264
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
257
265
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
266
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
267
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
268
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
258
269
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
259
270
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
260
271
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
261
272
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
262
273
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
263
274
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
275
|
+
# @option opts [String] :q
|
264
276
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
265
277
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
266
278
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
@@ -292,13 +304,18 @@ module PulpFileClient
|
|
292
304
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
293
305
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
294
306
|
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
307
|
+
query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
|
295
308
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
309
|
+
query_params[:'name__iregex'] = opts[:'name__iregex'] if !opts[:'name__iregex'].nil?
|
310
|
+
query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
|
311
|
+
query_params[:'name__regex'] = opts[:'name__regex'] if !opts[:'name__regex'].nil?
|
296
312
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
297
313
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
298
314
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
299
315
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
300
316
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
301
317
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
318
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
302
319
|
query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
|
303
320
|
query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
|
304
321
|
query_params[:'retain_repo_versions__gt'] = opts[:'retain_repo_versions__gt'] if !opts[:'retain_repo_versions__gt'].nil?
|
@@ -345,6 +362,7 @@ module PulpFileClient
|
|
345
362
|
return data, status_code, headers
|
346
363
|
end
|
347
364
|
|
365
|
+
# List roles
|
348
366
|
# List roles assigned to this object.
|
349
367
|
# @param file_file_repository_href [String]
|
350
368
|
# @param [Hash] opts the optional parameters
|
@@ -356,6 +374,7 @@ module PulpFileClient
|
|
356
374
|
data
|
357
375
|
end
|
358
376
|
|
377
|
+
# List roles
|
359
378
|
# List roles assigned to this object.
|
360
379
|
# @param file_file_repository_href [String]
|
361
380
|
# @param [Hash] opts the optional parameters
|
@@ -481,6 +500,7 @@ module PulpFileClient
|
|
481
500
|
return data, status_code, headers
|
482
501
|
end
|
483
502
|
|
503
|
+
# List user permissions
|
484
504
|
# List permissions available to the current user on this object.
|
485
505
|
# @param file_file_repository_href [String]
|
486
506
|
# @param [Hash] opts the optional parameters
|
@@ -492,6 +512,7 @@ module PulpFileClient
|
|
492
512
|
data
|
493
513
|
end
|
494
514
|
|
515
|
+
# List user permissions
|
495
516
|
# List permissions available to the current user on this object.
|
496
517
|
# @param file_file_repository_href [String]
|
497
518
|
# @param [Hash] opts the optional parameters
|
@@ -685,6 +706,7 @@ module PulpFileClient
|
|
685
706
|
return data, status_code, headers
|
686
707
|
end
|
687
708
|
|
709
|
+
# Remove a role
|
688
710
|
# Remove a role for this object from users/groups.
|
689
711
|
# @param file_file_repository_href [String]
|
690
712
|
# @param nested_role [NestedRole]
|
@@ -695,6 +717,7 @@ module PulpFileClient
|
|
695
717
|
data
|
696
718
|
end
|
697
719
|
|
720
|
+
# Remove a role
|
698
721
|
# Remove a role for this object from users/groups.
|
699
722
|
# @param file_file_repository_href [String]
|
700
723
|
# @param nested_role [NestedRole]
|
@@ -753,6 +776,76 @@ module PulpFileClient
|
|
753
776
|
return data, status_code, headers
|
754
777
|
end
|
755
778
|
|
779
|
+
# Set a label
|
780
|
+
# Set a single pulp_label on the object to a specific value or null.
|
781
|
+
# @param file_file_repository_href [String]
|
782
|
+
# @param set_label [SetLabel]
|
783
|
+
# @param [Hash] opts the optional parameters
|
784
|
+
# @return [SetLabelResponse]
|
785
|
+
def set_label(file_file_repository_href, set_label, opts = {})
|
786
|
+
data, _status_code, _headers = set_label_with_http_info(file_file_repository_href, set_label, opts)
|
787
|
+
data
|
788
|
+
end
|
789
|
+
|
790
|
+
# Set a label
|
791
|
+
# Set a single pulp_label on the object to a specific value or null.
|
792
|
+
# @param file_file_repository_href [String]
|
793
|
+
# @param set_label [SetLabel]
|
794
|
+
# @param [Hash] opts the optional parameters
|
795
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
796
|
+
def set_label_with_http_info(file_file_repository_href, set_label, opts = {})
|
797
|
+
if @api_client.config.debugging
|
798
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesFileApi.set_label ...'
|
799
|
+
end
|
800
|
+
# verify the required parameter 'file_file_repository_href' is set
|
801
|
+
if @api_client.config.client_side_validation && file_file_repository_href.nil?
|
802
|
+
fail ArgumentError, "Missing the required parameter 'file_file_repository_href' when calling RepositoriesFileApi.set_label"
|
803
|
+
end
|
804
|
+
# verify the required parameter 'set_label' is set
|
805
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
806
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling RepositoriesFileApi.set_label"
|
807
|
+
end
|
808
|
+
# resource path
|
809
|
+
local_var_path = '{file_file_repository_href}set_label/'.sub('{' + 'file_file_repository_href' + '}', CGI.escape(file_file_repository_href.to_s).gsub('%2F', '/'))
|
810
|
+
|
811
|
+
# query parameters
|
812
|
+
query_params = opts[:query_params] || {}
|
813
|
+
|
814
|
+
# header parameters
|
815
|
+
header_params = opts[:header_params] || {}
|
816
|
+
# HTTP header 'Accept' (if needed)
|
817
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
818
|
+
# HTTP header 'Content-Type'
|
819
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
820
|
+
|
821
|
+
# form parameters
|
822
|
+
form_params = opts[:form_params] || {}
|
823
|
+
|
824
|
+
# http body (model)
|
825
|
+
post_body = opts[:body] || @api_client.object_to_http_body(set_label)
|
826
|
+
|
827
|
+
# return_type
|
828
|
+
return_type = opts[:return_type] || 'SetLabelResponse'
|
829
|
+
|
830
|
+
# auth_names
|
831
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
832
|
+
|
833
|
+
new_options = opts.merge(
|
834
|
+
:header_params => header_params,
|
835
|
+
:query_params => query_params,
|
836
|
+
:form_params => form_params,
|
837
|
+
:body => post_body,
|
838
|
+
:auth_names => auth_names,
|
839
|
+
:return_type => return_type
|
840
|
+
)
|
841
|
+
|
842
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
843
|
+
if @api_client.config.debugging
|
844
|
+
@api_client.config.logger.debug "API called: RepositoriesFileApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
845
|
+
end
|
846
|
+
return data, status_code, headers
|
847
|
+
end
|
848
|
+
|
756
849
|
# Sync from a remote
|
757
850
|
# Trigger an asynchronous task to sync file content.
|
758
851
|
# @param file_file_repository_href [String]
|
@@ -823,6 +916,76 @@ module PulpFileClient
|
|
823
916
|
return data, status_code, headers
|
824
917
|
end
|
825
918
|
|
919
|
+
# Unset a label
|
920
|
+
# Unset a single pulp_label on the object.
|
921
|
+
# @param file_file_repository_href [String]
|
922
|
+
# @param unset_label [UnsetLabel]
|
923
|
+
# @param [Hash] opts the optional parameters
|
924
|
+
# @return [UnsetLabelResponse]
|
925
|
+
def unset_label(file_file_repository_href, unset_label, opts = {})
|
926
|
+
data, _status_code, _headers = unset_label_with_http_info(file_file_repository_href, unset_label, opts)
|
927
|
+
data
|
928
|
+
end
|
929
|
+
|
930
|
+
# Unset a label
|
931
|
+
# Unset a single pulp_label on the object.
|
932
|
+
# @param file_file_repository_href [String]
|
933
|
+
# @param unset_label [UnsetLabel]
|
934
|
+
# @param [Hash] opts the optional parameters
|
935
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
936
|
+
def unset_label_with_http_info(file_file_repository_href, unset_label, opts = {})
|
937
|
+
if @api_client.config.debugging
|
938
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesFileApi.unset_label ...'
|
939
|
+
end
|
940
|
+
# verify the required parameter 'file_file_repository_href' is set
|
941
|
+
if @api_client.config.client_side_validation && file_file_repository_href.nil?
|
942
|
+
fail ArgumentError, "Missing the required parameter 'file_file_repository_href' when calling RepositoriesFileApi.unset_label"
|
943
|
+
end
|
944
|
+
# verify the required parameter 'unset_label' is set
|
945
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
946
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling RepositoriesFileApi.unset_label"
|
947
|
+
end
|
948
|
+
# resource path
|
949
|
+
local_var_path = '{file_file_repository_href}unset_label/'.sub('{' + 'file_file_repository_href' + '}', CGI.escape(file_file_repository_href.to_s).gsub('%2F', '/'))
|
950
|
+
|
951
|
+
# query parameters
|
952
|
+
query_params = opts[:query_params] || {}
|
953
|
+
|
954
|
+
# header parameters
|
955
|
+
header_params = opts[:header_params] || {}
|
956
|
+
# HTTP header 'Accept' (if needed)
|
957
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
958
|
+
# HTTP header 'Content-Type'
|
959
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
960
|
+
|
961
|
+
# form parameters
|
962
|
+
form_params = opts[:form_params] || {}
|
963
|
+
|
964
|
+
# http body (model)
|
965
|
+
post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
|
966
|
+
|
967
|
+
# return_type
|
968
|
+
return_type = opts[:return_type] || 'UnsetLabelResponse'
|
969
|
+
|
970
|
+
# auth_names
|
971
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
972
|
+
|
973
|
+
new_options = opts.merge(
|
974
|
+
:header_params => header_params,
|
975
|
+
:query_params => query_params,
|
976
|
+
:form_params => form_params,
|
977
|
+
:body => post_body,
|
978
|
+
:auth_names => auth_names,
|
979
|
+
:return_type => return_type
|
980
|
+
)
|
981
|
+
|
982
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
983
|
+
if @api_client.config.debugging
|
984
|
+
@api_client.config.logger.debug "API called: RepositoriesFileApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
985
|
+
end
|
986
|
+
return data, status_code, headers
|
987
|
+
end
|
988
|
+
|
826
989
|
# Update a file repository
|
827
990
|
# Trigger an asynchronous update task
|
828
991
|
# @param file_file_repository_href [String]
|
@@ -103,6 +103,7 @@ module PulpFileClient
|
|
103
103
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
104
104
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
105
105
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
106
|
+
# @option opts [String] :q
|
106
107
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
107
108
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
108
109
|
# @return [PaginatedRepositoryVersionResponseList]
|
@@ -133,6 +134,7 @@ module PulpFileClient
|
|
133
134
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
134
135
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
135
136
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
137
|
+
# @option opts [String] :q
|
136
138
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
137
139
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
138
140
|
# @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
|
@@ -171,6 +173,7 @@ module PulpFileClient
|
|
171
173
|
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
172
174
|
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
173
175
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
176
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
174
177
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
175
178
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
176
179
|
|
@@ -127,7 +127,7 @@ module PulpFileClient
|
|
127
127
|
attr_accessor :force_ending_format
|
128
128
|
|
129
129
|
def initialize
|
130
|
-
@scheme = '
|
130
|
+
@scheme = 'http'
|
131
131
|
@host = 'pulp'
|
132
132
|
@base_path = ''
|
133
133
|
@api_key = {}
|
@@ -210,7 +210,7 @@ module PulpFileClient
|
|
210
210
|
def server_settings
|
211
211
|
[
|
212
212
|
{
|
213
|
-
url: "
|
213
|
+
url: "http://pulp/",
|
214
214
|
description: "No description provided",
|
215
215
|
}
|
216
216
|
]
|