pulp_rpm_client 3.22.3 → 3.22.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +42 -29
- data/docs/AcsRpmApi.md +19 -9
- data/docs/ContentAdvisoriesApi.md +3 -1
- data/docs/ContentDistributionTreesApi.md +3 -1
- data/docs/ContentModulemdDefaultsApi.md +3 -1
- data/docs/ContentModulemdObsoletesApi.md +3 -1
- data/docs/ContentModulemdsApi.md +3 -1
- data/docs/ContentPackagecategoriesApi.md +3 -1
- data/docs/ContentPackageenvironmentsApi.md +3 -1
- data/docs/ContentPackagegroupsApi.md +3 -1
- data/docs/ContentPackagelangpacksApi.md +3 -1
- data/docs/ContentPackagesApi.md +3 -1
- data/docs/ContentRepoMetadataFilesApi.md +3 -1
- data/docs/DistributionsRpmApi.md +132 -10
- data/docs/PublicationsRpmApi.md +15 -9
- data/docs/RemotesRpmApi.md +131 -9
- data/docs/RemotesUlnApi.md +131 -9
- data/docs/RepositoriesRpmApi.md +132 -10
- data/docs/RepositoriesRpmVersionsApi.md +3 -1
- data/docs/RpmCompsApi.md +1 -1
- data/docs/RpmCopyApi.md +1 -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_rpm_client/api/acs_rpm_api.rb +17 -0
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_modulemd_obsoletes_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_modulemds_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_packages_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +3 -0
- data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +157 -0
- data/lib/pulp_rpm_client/api/publications_rpm_api.rb +11 -0
- data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +157 -0
- data/lib/pulp_rpm_client/api/remotes_uln_api.rb +157 -0
- data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +157 -0
- data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +3 -0
- data/lib/pulp_rpm_client/configuration.rb +2 -2
- data/lib/pulp_rpm_client/models/set_label.rb +252 -0
- data/lib/pulp_rpm_client/models/set_label_response.rb +243 -0
- data/lib/pulp_rpm_client/models/unset_label.rb +242 -0
- data/lib/pulp_rpm_client/models/unset_label_response.rb +242 -0
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/lib/pulp_rpm_client.rb +4 -0
- data/spec/api/acs_rpm_api_spec.rb +7 -0
- data/spec/api/content_advisories_api_spec.rb +1 -0
- data/spec/api/content_distribution_trees_api_spec.rb +1 -0
- data/spec/api/content_modulemd_defaults_api_spec.rb +1 -0
- data/spec/api/content_modulemd_obsoletes_api_spec.rb +1 -0
- data/spec/api/content_modulemds_api_spec.rb +1 -0
- data/spec/api/content_packagecategories_api_spec.rb +1 -0
- data/spec/api/content_packageenvironments_api_spec.rb +1 -0
- data/spec/api/content_packagegroups_api_spec.rb +1 -0
- data/spec/api/content_packagelangpacks_api_spec.rb +1 -0
- data/spec/api/content_packages_api_spec.rb +1 -0
- data/spec/api/content_repo_metadata_files_api_spec.rb +1 -0
- data/spec/api/distributions_rpm_api_spec.rb +33 -0
- data/spec/api/publications_rpm_api_spec.rb +5 -0
- data/spec/api/remotes_rpm_api_spec.rb +33 -0
- data/spec/api/remotes_uln_api_spec.rb +33 -0
- data/spec/api/repositories_rpm_api_spec.rb +33 -0
- data/spec/api/repositories_rpm_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 +97 -81
@@ -19,6 +19,7 @@ module PulpRpmClient
|
|
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 rpm_uln_remote_href [String]
|
24
25
|
# @param nested_role [NestedRole]
|
@@ -29,6 +30,7 @@ module PulpRpmClient
|
|
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 rpm_uln_remote_href [String]
|
34
36
|
# @param nested_role [NestedRole]
|
@@ -220,7 +222,9 @@ module PulpRpmClient
|
|
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__istartswith Filter results where name starts with value
|
224
228
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
225
229
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
226
230
|
# @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 +237,7 @@ module PulpRpmClient
|
|
233
237
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
234
238
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
235
239
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
240
|
+
# @option opts [String] :q
|
236
241
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
237
242
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
238
243
|
# @return [PaginatedrpmUlnRemoteResponseList]
|
@@ -248,7 +253,9 @@ module PulpRpmClient
|
|
248
253
|
# @option opts [String] :name Filter results where name matches value
|
249
254
|
# @option opts [String] :name__contains Filter results where name contains value
|
250
255
|
# @option opts [String] :name__icontains Filter results where name contains value
|
256
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
251
257
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
258
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
252
259
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
253
260
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
254
261
|
# @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 +268,7 @@ module PulpRpmClient
|
|
261
268
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
262
269
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
263
270
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
271
|
+
# @option opts [String] :q
|
264
272
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
265
273
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
266
274
|
# @return [Array<(PaginatedrpmUlnRemoteResponseList, Integer, Hash)>] PaginatedrpmUlnRemoteResponseList data, response status code and response headers
|
@@ -281,7 +289,9 @@ module PulpRpmClient
|
|
281
289
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
282
290
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
283
291
|
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
292
|
+
query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
|
284
293
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
294
|
+
query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
|
285
295
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
286
296
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
287
297
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
@@ -294,6 +304,7 @@ module PulpRpmClient
|
|
294
304
|
query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
|
295
305
|
query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
|
296
306
|
query_params[:'pulp_last_updated__range'] = @api_client.build_collection_param(opts[:'pulp_last_updated__range'], :csv) if !opts[:'pulp_last_updated__range'].nil?
|
307
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
297
308
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
298
309
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
299
310
|
|
@@ -330,6 +341,7 @@ module PulpRpmClient
|
|
330
341
|
return data, status_code, headers
|
331
342
|
end
|
332
343
|
|
344
|
+
# List roles
|
333
345
|
# List roles assigned to this object.
|
334
346
|
# @param rpm_uln_remote_href [String]
|
335
347
|
# @param [Hash] opts the optional parameters
|
@@ -341,6 +353,7 @@ module PulpRpmClient
|
|
341
353
|
data
|
342
354
|
end
|
343
355
|
|
356
|
+
# List roles
|
344
357
|
# List roles assigned to this object.
|
345
358
|
# @param rpm_uln_remote_href [String]
|
346
359
|
# @param [Hash] opts the optional parameters
|
@@ -396,6 +409,7 @@ module PulpRpmClient
|
|
396
409
|
return data, status_code, headers
|
397
410
|
end
|
398
411
|
|
412
|
+
# List user permissions
|
399
413
|
# List permissions available to the current user on this object.
|
400
414
|
# @param rpm_uln_remote_href [String]
|
401
415
|
# @param [Hash] opts the optional parameters
|
@@ -407,6 +421,7 @@ module PulpRpmClient
|
|
407
421
|
data
|
408
422
|
end
|
409
423
|
|
424
|
+
# List user permissions
|
410
425
|
# List permissions available to the current user on this object.
|
411
426
|
# @param rpm_uln_remote_href [String]
|
412
427
|
# @param [Hash] opts the optional parameters
|
@@ -600,6 +615,7 @@ module PulpRpmClient
|
|
600
615
|
return data, status_code, headers
|
601
616
|
end
|
602
617
|
|
618
|
+
# Remove a role
|
603
619
|
# Remove a role for this object from users/groups.
|
604
620
|
# @param rpm_uln_remote_href [String]
|
605
621
|
# @param nested_role [NestedRole]
|
@@ -610,6 +626,7 @@ module PulpRpmClient
|
|
610
626
|
data
|
611
627
|
end
|
612
628
|
|
629
|
+
# Remove a role
|
613
630
|
# Remove a role for this object from users/groups.
|
614
631
|
# @param rpm_uln_remote_href [String]
|
615
632
|
# @param nested_role [NestedRole]
|
@@ -668,6 +685,146 @@ module PulpRpmClient
|
|
668
685
|
return data, status_code, headers
|
669
686
|
end
|
670
687
|
|
688
|
+
# Set a label
|
689
|
+
# Set a single pulp_label on the object to a specific value or null.
|
690
|
+
# @param rpm_uln_remote_href [String]
|
691
|
+
# @param set_label [SetLabel]
|
692
|
+
# @param [Hash] opts the optional parameters
|
693
|
+
# @return [SetLabelResponse]
|
694
|
+
def set_label(rpm_uln_remote_href, set_label, opts = {})
|
695
|
+
data, _status_code, _headers = set_label_with_http_info(rpm_uln_remote_href, set_label, opts)
|
696
|
+
data
|
697
|
+
end
|
698
|
+
|
699
|
+
# Set a label
|
700
|
+
# Set a single pulp_label on the object to a specific value or null.
|
701
|
+
# @param rpm_uln_remote_href [String]
|
702
|
+
# @param set_label [SetLabel]
|
703
|
+
# @param [Hash] opts the optional parameters
|
704
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
705
|
+
def set_label_with_http_info(rpm_uln_remote_href, set_label, opts = {})
|
706
|
+
if @api_client.config.debugging
|
707
|
+
@api_client.config.logger.debug 'Calling API: RemotesUlnApi.set_label ...'
|
708
|
+
end
|
709
|
+
# verify the required parameter 'rpm_uln_remote_href' is set
|
710
|
+
if @api_client.config.client_side_validation && rpm_uln_remote_href.nil?
|
711
|
+
fail ArgumentError, "Missing the required parameter 'rpm_uln_remote_href' when calling RemotesUlnApi.set_label"
|
712
|
+
end
|
713
|
+
# verify the required parameter 'set_label' is set
|
714
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
715
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling RemotesUlnApi.set_label"
|
716
|
+
end
|
717
|
+
# resource path
|
718
|
+
local_var_path = '{rpm_uln_remote_href}set_label/'.sub('{' + 'rpm_uln_remote_href' + '}', CGI.escape(rpm_uln_remote_href.to_s).gsub('%2F', '/'))
|
719
|
+
|
720
|
+
# query parameters
|
721
|
+
query_params = opts[:query_params] || {}
|
722
|
+
|
723
|
+
# header parameters
|
724
|
+
header_params = opts[:header_params] || {}
|
725
|
+
# HTTP header 'Accept' (if needed)
|
726
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
727
|
+
# HTTP header 'Content-Type'
|
728
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
729
|
+
|
730
|
+
# form parameters
|
731
|
+
form_params = opts[:form_params] || {}
|
732
|
+
|
733
|
+
# http body (model)
|
734
|
+
post_body = opts[:body] || @api_client.object_to_http_body(set_label)
|
735
|
+
|
736
|
+
# return_type
|
737
|
+
return_type = opts[:return_type] || 'SetLabelResponse'
|
738
|
+
|
739
|
+
# auth_names
|
740
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
741
|
+
|
742
|
+
new_options = opts.merge(
|
743
|
+
:header_params => header_params,
|
744
|
+
:query_params => query_params,
|
745
|
+
:form_params => form_params,
|
746
|
+
:body => post_body,
|
747
|
+
:auth_names => auth_names,
|
748
|
+
:return_type => return_type
|
749
|
+
)
|
750
|
+
|
751
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
752
|
+
if @api_client.config.debugging
|
753
|
+
@api_client.config.logger.debug "API called: RemotesUlnApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
754
|
+
end
|
755
|
+
return data, status_code, headers
|
756
|
+
end
|
757
|
+
|
758
|
+
# Unset a label
|
759
|
+
# Unset a single pulp_label on the object.
|
760
|
+
# @param rpm_uln_remote_href [String]
|
761
|
+
# @param unset_label [UnsetLabel]
|
762
|
+
# @param [Hash] opts the optional parameters
|
763
|
+
# @return [UnsetLabelResponse]
|
764
|
+
def unset_label(rpm_uln_remote_href, unset_label, opts = {})
|
765
|
+
data, _status_code, _headers = unset_label_with_http_info(rpm_uln_remote_href, unset_label, opts)
|
766
|
+
data
|
767
|
+
end
|
768
|
+
|
769
|
+
# Unset a label
|
770
|
+
# Unset a single pulp_label on the object.
|
771
|
+
# @param rpm_uln_remote_href [String]
|
772
|
+
# @param unset_label [UnsetLabel]
|
773
|
+
# @param [Hash] opts the optional parameters
|
774
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
775
|
+
def unset_label_with_http_info(rpm_uln_remote_href, unset_label, opts = {})
|
776
|
+
if @api_client.config.debugging
|
777
|
+
@api_client.config.logger.debug 'Calling API: RemotesUlnApi.unset_label ...'
|
778
|
+
end
|
779
|
+
# verify the required parameter 'rpm_uln_remote_href' is set
|
780
|
+
if @api_client.config.client_side_validation && rpm_uln_remote_href.nil?
|
781
|
+
fail ArgumentError, "Missing the required parameter 'rpm_uln_remote_href' when calling RemotesUlnApi.unset_label"
|
782
|
+
end
|
783
|
+
# verify the required parameter 'unset_label' is set
|
784
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
785
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling RemotesUlnApi.unset_label"
|
786
|
+
end
|
787
|
+
# resource path
|
788
|
+
local_var_path = '{rpm_uln_remote_href}unset_label/'.sub('{' + 'rpm_uln_remote_href' + '}', CGI.escape(rpm_uln_remote_href.to_s).gsub('%2F', '/'))
|
789
|
+
|
790
|
+
# query parameters
|
791
|
+
query_params = opts[:query_params] || {}
|
792
|
+
|
793
|
+
# header parameters
|
794
|
+
header_params = opts[:header_params] || {}
|
795
|
+
# HTTP header 'Accept' (if needed)
|
796
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
797
|
+
# HTTP header 'Content-Type'
|
798
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
799
|
+
|
800
|
+
# form parameters
|
801
|
+
form_params = opts[:form_params] || {}
|
802
|
+
|
803
|
+
# http body (model)
|
804
|
+
post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
|
805
|
+
|
806
|
+
# return_type
|
807
|
+
return_type = opts[:return_type] || 'UnsetLabelResponse'
|
808
|
+
|
809
|
+
# auth_names
|
810
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
811
|
+
|
812
|
+
new_options = opts.merge(
|
813
|
+
:header_params => header_params,
|
814
|
+
:query_params => query_params,
|
815
|
+
:form_params => form_params,
|
816
|
+
:body => post_body,
|
817
|
+
:auth_names => auth_names,
|
818
|
+
:return_type => return_type
|
819
|
+
)
|
820
|
+
|
821
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
822
|
+
if @api_client.config.debugging
|
823
|
+
@api_client.config.logger.debug "API called: RemotesUlnApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
824
|
+
end
|
825
|
+
return data, status_code, headers
|
826
|
+
end
|
827
|
+
|
671
828
|
# Update an uln remote
|
672
829
|
# Trigger an asynchronous update task
|
673
830
|
# @param rpm_uln_remote_href [String]
|
@@ -19,6 +19,7 @@ module PulpRpmClient
|
|
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 rpm_rpm_repository_href [String]
|
24
25
|
# @param nested_role [NestedRole]
|
@@ -29,6 +30,7 @@ module PulpRpmClient
|
|
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 rpm_rpm_repository_href [String]
|
34
36
|
# @param nested_role [NestedRole]
|
@@ -221,13 +223,16 @@ module PulpRpmClient
|
|
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__istartswith Filter results where name starts with value
|
225
229
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
226
230
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
227
231
|
# @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
232
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
229
233
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
230
234
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
235
|
+
# @option opts [String] :q
|
231
236
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
232
237
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
233
238
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
@@ -254,13 +259,16 @@ module PulpRpmClient
|
|
254
259
|
# @option opts [String] :name Filter results where name matches value
|
255
260
|
# @option opts [String] :name__contains Filter results where name contains value
|
256
261
|
# @option opts [String] :name__icontains Filter results where name contains value
|
262
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
257
263
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
264
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
258
265
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
259
266
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
260
267
|
# @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
268
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
262
269
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
263
270
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
271
|
+
# @option opts [String] :q
|
264
272
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
265
273
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
266
274
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
@@ -292,13 +300,16 @@ module PulpRpmClient
|
|
292
300
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
293
301
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
294
302
|
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
303
|
+
query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
|
295
304
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
305
|
+
query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
|
296
306
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
297
307
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
298
308
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
299
309
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
300
310
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
301
311
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
312
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
302
313
|
query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
|
303
314
|
query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
|
304
315
|
query_params[:'retain_repo_versions__gt'] = opts[:'retain_repo_versions__gt'] if !opts[:'retain_repo_versions__gt'].nil?
|
@@ -345,6 +356,7 @@ module PulpRpmClient
|
|
345
356
|
return data, status_code, headers
|
346
357
|
end
|
347
358
|
|
359
|
+
# List roles
|
348
360
|
# List roles assigned to this object.
|
349
361
|
# @param rpm_rpm_repository_href [String]
|
350
362
|
# @param [Hash] opts the optional parameters
|
@@ -356,6 +368,7 @@ module PulpRpmClient
|
|
356
368
|
data
|
357
369
|
end
|
358
370
|
|
371
|
+
# List roles
|
359
372
|
# List roles assigned to this object.
|
360
373
|
# @param rpm_rpm_repository_href [String]
|
361
374
|
# @param [Hash] opts the optional parameters
|
@@ -481,6 +494,7 @@ module PulpRpmClient
|
|
481
494
|
return data, status_code, headers
|
482
495
|
end
|
483
496
|
|
497
|
+
# List user permissions
|
484
498
|
# List permissions available to the current user on this object.
|
485
499
|
# @param rpm_rpm_repository_href [String]
|
486
500
|
# @param [Hash] opts the optional parameters
|
@@ -492,6 +506,7 @@ module PulpRpmClient
|
|
492
506
|
data
|
493
507
|
end
|
494
508
|
|
509
|
+
# List user permissions
|
495
510
|
# List permissions available to the current user on this object.
|
496
511
|
# @param rpm_rpm_repository_href [String]
|
497
512
|
# @param [Hash] opts the optional parameters
|
@@ -685,6 +700,7 @@ module PulpRpmClient
|
|
685
700
|
return data, status_code, headers
|
686
701
|
end
|
687
702
|
|
703
|
+
# Remove a role
|
688
704
|
# Remove a role for this object from users/groups.
|
689
705
|
# @param rpm_rpm_repository_href [String]
|
690
706
|
# @param nested_role [NestedRole]
|
@@ -695,6 +711,7 @@ module PulpRpmClient
|
|
695
711
|
data
|
696
712
|
end
|
697
713
|
|
714
|
+
# Remove a role
|
698
715
|
# Remove a role for this object from users/groups.
|
699
716
|
# @param rpm_rpm_repository_href [String]
|
700
717
|
# @param nested_role [NestedRole]
|
@@ -753,6 +770,76 @@ module PulpRpmClient
|
|
753
770
|
return data, status_code, headers
|
754
771
|
end
|
755
772
|
|
773
|
+
# Set a label
|
774
|
+
# Set a single pulp_label on the object to a specific value or null.
|
775
|
+
# @param rpm_rpm_repository_href [String]
|
776
|
+
# @param set_label [SetLabel]
|
777
|
+
# @param [Hash] opts the optional parameters
|
778
|
+
# @return [SetLabelResponse]
|
779
|
+
def set_label(rpm_rpm_repository_href, set_label, opts = {})
|
780
|
+
data, _status_code, _headers = set_label_with_http_info(rpm_rpm_repository_href, set_label, opts)
|
781
|
+
data
|
782
|
+
end
|
783
|
+
|
784
|
+
# Set a label
|
785
|
+
# Set a single pulp_label on the object to a specific value or null.
|
786
|
+
# @param rpm_rpm_repository_href [String]
|
787
|
+
# @param set_label [SetLabel]
|
788
|
+
# @param [Hash] opts the optional parameters
|
789
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
790
|
+
def set_label_with_http_info(rpm_rpm_repository_href, set_label, opts = {})
|
791
|
+
if @api_client.config.debugging
|
792
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesRpmApi.set_label ...'
|
793
|
+
end
|
794
|
+
# verify the required parameter 'rpm_rpm_repository_href' is set
|
795
|
+
if @api_client.config.client_side_validation && rpm_rpm_repository_href.nil?
|
796
|
+
fail ArgumentError, "Missing the required parameter 'rpm_rpm_repository_href' when calling RepositoriesRpmApi.set_label"
|
797
|
+
end
|
798
|
+
# verify the required parameter 'set_label' is set
|
799
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
800
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling RepositoriesRpmApi.set_label"
|
801
|
+
end
|
802
|
+
# resource path
|
803
|
+
local_var_path = '{rpm_rpm_repository_href}set_label/'.sub('{' + 'rpm_rpm_repository_href' + '}', CGI.escape(rpm_rpm_repository_href.to_s).gsub('%2F', '/'))
|
804
|
+
|
805
|
+
# query parameters
|
806
|
+
query_params = opts[:query_params] || {}
|
807
|
+
|
808
|
+
# header parameters
|
809
|
+
header_params = opts[:header_params] || {}
|
810
|
+
# HTTP header 'Accept' (if needed)
|
811
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
812
|
+
# HTTP header 'Content-Type'
|
813
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
814
|
+
|
815
|
+
# form parameters
|
816
|
+
form_params = opts[:form_params] || {}
|
817
|
+
|
818
|
+
# http body (model)
|
819
|
+
post_body = opts[:body] || @api_client.object_to_http_body(set_label)
|
820
|
+
|
821
|
+
# return_type
|
822
|
+
return_type = opts[:return_type] || 'SetLabelResponse'
|
823
|
+
|
824
|
+
# auth_names
|
825
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
826
|
+
|
827
|
+
new_options = opts.merge(
|
828
|
+
:header_params => header_params,
|
829
|
+
:query_params => query_params,
|
830
|
+
:form_params => form_params,
|
831
|
+
:body => post_body,
|
832
|
+
:auth_names => auth_names,
|
833
|
+
:return_type => return_type
|
834
|
+
)
|
835
|
+
|
836
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
837
|
+
if @api_client.config.debugging
|
838
|
+
@api_client.config.logger.debug "API called: RepositoriesRpmApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
839
|
+
end
|
840
|
+
return data, status_code, headers
|
841
|
+
end
|
842
|
+
|
756
843
|
# Sync from remote
|
757
844
|
# Trigger an asynchronous task to sync RPM content.
|
758
845
|
# @param rpm_rpm_repository_href [String]
|
@@ -823,6 +910,76 @@ module PulpRpmClient
|
|
823
910
|
return data, status_code, headers
|
824
911
|
end
|
825
912
|
|
913
|
+
# Unset a label
|
914
|
+
# Unset a single pulp_label on the object.
|
915
|
+
# @param rpm_rpm_repository_href [String]
|
916
|
+
# @param unset_label [UnsetLabel]
|
917
|
+
# @param [Hash] opts the optional parameters
|
918
|
+
# @return [UnsetLabelResponse]
|
919
|
+
def unset_label(rpm_rpm_repository_href, unset_label, opts = {})
|
920
|
+
data, _status_code, _headers = unset_label_with_http_info(rpm_rpm_repository_href, unset_label, opts)
|
921
|
+
data
|
922
|
+
end
|
923
|
+
|
924
|
+
# Unset a label
|
925
|
+
# Unset a single pulp_label on the object.
|
926
|
+
# @param rpm_rpm_repository_href [String]
|
927
|
+
# @param unset_label [UnsetLabel]
|
928
|
+
# @param [Hash] opts the optional parameters
|
929
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
930
|
+
def unset_label_with_http_info(rpm_rpm_repository_href, unset_label, opts = {})
|
931
|
+
if @api_client.config.debugging
|
932
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesRpmApi.unset_label ...'
|
933
|
+
end
|
934
|
+
# verify the required parameter 'rpm_rpm_repository_href' is set
|
935
|
+
if @api_client.config.client_side_validation && rpm_rpm_repository_href.nil?
|
936
|
+
fail ArgumentError, "Missing the required parameter 'rpm_rpm_repository_href' when calling RepositoriesRpmApi.unset_label"
|
937
|
+
end
|
938
|
+
# verify the required parameter 'unset_label' is set
|
939
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
940
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling RepositoriesRpmApi.unset_label"
|
941
|
+
end
|
942
|
+
# resource path
|
943
|
+
local_var_path = '{rpm_rpm_repository_href}unset_label/'.sub('{' + 'rpm_rpm_repository_href' + '}', CGI.escape(rpm_rpm_repository_href.to_s).gsub('%2F', '/'))
|
944
|
+
|
945
|
+
# query parameters
|
946
|
+
query_params = opts[:query_params] || {}
|
947
|
+
|
948
|
+
# header parameters
|
949
|
+
header_params = opts[:header_params] || {}
|
950
|
+
# HTTP header 'Accept' (if needed)
|
951
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
952
|
+
# HTTP header 'Content-Type'
|
953
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
954
|
+
|
955
|
+
# form parameters
|
956
|
+
form_params = opts[:form_params] || {}
|
957
|
+
|
958
|
+
# http body (model)
|
959
|
+
post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
|
960
|
+
|
961
|
+
# return_type
|
962
|
+
return_type = opts[:return_type] || 'UnsetLabelResponse'
|
963
|
+
|
964
|
+
# auth_names
|
965
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
966
|
+
|
967
|
+
new_options = opts.merge(
|
968
|
+
:header_params => header_params,
|
969
|
+
:query_params => query_params,
|
970
|
+
:form_params => form_params,
|
971
|
+
:body => post_body,
|
972
|
+
:auth_names => auth_names,
|
973
|
+
:return_type => return_type
|
974
|
+
)
|
975
|
+
|
976
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
977
|
+
if @api_client.config.debugging
|
978
|
+
@api_client.config.logger.debug "API called: RepositoriesRpmApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
979
|
+
end
|
980
|
+
return data, status_code, headers
|
981
|
+
end
|
982
|
+
|
826
983
|
# Update a rpm repository
|
827
984
|
# Trigger an asynchronous update task
|
828
985
|
# @param rpm_rpm_repository_href [String]
|
@@ -103,6 +103,7 @@ module PulpRpmClient
|
|
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 PulpRpmClient
|
|
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 PulpRpmClient
|
|
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 PulpRpmClient
|
|
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 PulpRpmClient
|
|
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
|
]
|