pulp_gem_client 0.3.0 → 0.4.1
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.
- checksums.yaml +4 -4
- data/README.md +24 -4
- data/docs/ContentGemApi.md +2 -0
- data/docs/DistributionsGemApi.md +236 -0
- data/docs/MyPermissionsResponse.md +17 -0
- data/docs/NestedRole.md +21 -0
- data/docs/NestedRoleResponse.md +21 -0
- data/docs/ObjectRolesResponse.md +17 -0
- data/docs/PublicationsGemApi.md +232 -0
- data/docs/RemotesGemApi.md +236 -0
- data/docs/RepositoriesGemApi.md +236 -0
- data/lib/pulp_gem_client/api/content_gem_api.rb +3 -0
- data/lib/pulp_gem_client/api/distributions_gem_api.rb +282 -0
- data/lib/pulp_gem_client/api/publications_gem_api.rb +276 -0
- data/lib/pulp_gem_client/api/remotes_gem_api.rb +282 -0
- data/lib/pulp_gem_client/api/repositories_gem_api.rb +282 -0
- data/lib/pulp_gem_client/models/my_permissions_response.rb +213 -0
- data/lib/pulp_gem_client/models/nested_role.rb +253 -0
- data/lib/pulp_gem_client/models/nested_role_response.rb +234 -0
- data/lib/pulp_gem_client/models/object_roles_response.rb +213 -0
- data/lib/pulp_gem_client/version.rb +1 -1
- data/lib/pulp_gem_client.rb +4 -0
- data/spec/api/content_gem_api_spec.rb +1 -0
- data/spec/api/distributions_gem_api_spec.rb +56 -0
- data/spec/api/publications_gem_api_spec.rb +54 -0
- data/spec/api/remotes_gem_api_spec.rb +56 -0
- data/spec/api/repositories_gem_api_spec.rb +56 -0
- data/spec/models/my_permissions_response_spec.rb +41 -0
- data/spec/models/nested_role_response_spec.rb +53 -0
- data/spec/models/nested_role_spec.rb +53 -0
- data/spec/models/object_roles_response_spec.rb +41 -0
- metadata +41 -25
@@ -19,6 +19,76 @@ module PulpGemClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Add a role
|
23
|
+
# Add a role for this object to users/groups.
|
24
|
+
# @param gem_gem_publication_href [String]
|
25
|
+
# @param nested_role [NestedRole]
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [NestedRoleResponse]
|
28
|
+
def add_role(gem_gem_publication_href, nested_role, opts = {})
|
29
|
+
data, _status_code, _headers = add_role_with_http_info(gem_gem_publication_href, nested_role, opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Add a role
|
34
|
+
# Add a role for this object to users/groups.
|
35
|
+
# @param gem_gem_publication_href [String]
|
36
|
+
# @param nested_role [NestedRole]
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
39
|
+
def add_role_with_http_info(gem_gem_publication_href, nested_role, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: PublicationsGemApi.add_role ...'
|
42
|
+
end
|
43
|
+
# verify the required parameter 'gem_gem_publication_href' is set
|
44
|
+
if @api_client.config.client_side_validation && gem_gem_publication_href.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'gem_gem_publication_href' when calling PublicationsGemApi.add_role"
|
46
|
+
end
|
47
|
+
# verify the required parameter 'nested_role' is set
|
48
|
+
if @api_client.config.client_side_validation && nested_role.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling PublicationsGemApi.add_role"
|
50
|
+
end
|
51
|
+
# resource path
|
52
|
+
local_var_path = '{gem_gem_publication_href}add_role/'.sub('{' + 'gem_gem_publication_href' + '}', CGI.escape(gem_gem_publication_href.to_s).gsub('%2F', '/'))
|
53
|
+
|
54
|
+
# query parameters
|
55
|
+
query_params = opts[:query_params] || {}
|
56
|
+
|
57
|
+
# header parameters
|
58
|
+
header_params = opts[:header_params] || {}
|
59
|
+
# HTTP header 'Accept' (if needed)
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
61
|
+
# HTTP header 'Content-Type'
|
62
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
63
|
+
|
64
|
+
# form parameters
|
65
|
+
form_params = opts[:form_params] || {}
|
66
|
+
|
67
|
+
# http body (model)
|
68
|
+
post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
|
69
|
+
|
70
|
+
# return_type
|
71
|
+
return_type = opts[:return_type] || 'NestedRoleResponse'
|
72
|
+
|
73
|
+
# auth_names
|
74
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
75
|
+
|
76
|
+
new_options = opts.merge(
|
77
|
+
:header_params => header_params,
|
78
|
+
:query_params => query_params,
|
79
|
+
:form_params => form_params,
|
80
|
+
:body => post_body,
|
81
|
+
:auth_names => auth_names,
|
82
|
+
:return_type => return_type
|
83
|
+
)
|
84
|
+
|
85
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
86
|
+
if @api_client.config.debugging
|
87
|
+
@api_client.config.logger.debug "API called: PublicationsGemApi#add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
88
|
+
end
|
89
|
+
return data, status_code, headers
|
90
|
+
end
|
91
|
+
|
22
92
|
# Create a gem publication
|
23
93
|
# Trigger an asynchronous task to publish gem content
|
24
94
|
# @param gem_gem_publication [GemGemPublication]
|
@@ -257,6 +327,142 @@ module PulpGemClient
|
|
257
327
|
return data, status_code, headers
|
258
328
|
end
|
259
329
|
|
330
|
+
# List roles
|
331
|
+
# List roles assigned to this object.
|
332
|
+
# @param gem_gem_publication_href [String]
|
333
|
+
# @param [Hash] opts the optional parameters
|
334
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
335
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
336
|
+
# @return [ObjectRolesResponse]
|
337
|
+
def list_roles(gem_gem_publication_href, opts = {})
|
338
|
+
data, _status_code, _headers = list_roles_with_http_info(gem_gem_publication_href, opts)
|
339
|
+
data
|
340
|
+
end
|
341
|
+
|
342
|
+
# List roles
|
343
|
+
# List roles assigned to this object.
|
344
|
+
# @param gem_gem_publication_href [String]
|
345
|
+
# @param [Hash] opts the optional parameters
|
346
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
347
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
348
|
+
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
349
|
+
def list_roles_with_http_info(gem_gem_publication_href, opts = {})
|
350
|
+
if @api_client.config.debugging
|
351
|
+
@api_client.config.logger.debug 'Calling API: PublicationsGemApi.list_roles ...'
|
352
|
+
end
|
353
|
+
# verify the required parameter 'gem_gem_publication_href' is set
|
354
|
+
if @api_client.config.client_side_validation && gem_gem_publication_href.nil?
|
355
|
+
fail ArgumentError, "Missing the required parameter 'gem_gem_publication_href' when calling PublicationsGemApi.list_roles"
|
356
|
+
end
|
357
|
+
# resource path
|
358
|
+
local_var_path = '{gem_gem_publication_href}list_roles/'.sub('{' + 'gem_gem_publication_href' + '}', CGI.escape(gem_gem_publication_href.to_s).gsub('%2F', '/'))
|
359
|
+
|
360
|
+
# query parameters
|
361
|
+
query_params = opts[:query_params] || {}
|
362
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
363
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
364
|
+
|
365
|
+
# header parameters
|
366
|
+
header_params = opts[:header_params] || {}
|
367
|
+
# HTTP header 'Accept' (if needed)
|
368
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
369
|
+
|
370
|
+
# form parameters
|
371
|
+
form_params = opts[:form_params] || {}
|
372
|
+
|
373
|
+
# http body (model)
|
374
|
+
post_body = opts[:body]
|
375
|
+
|
376
|
+
# return_type
|
377
|
+
return_type = opts[:return_type] || 'ObjectRolesResponse'
|
378
|
+
|
379
|
+
# auth_names
|
380
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
381
|
+
|
382
|
+
new_options = opts.merge(
|
383
|
+
:header_params => header_params,
|
384
|
+
:query_params => query_params,
|
385
|
+
:form_params => form_params,
|
386
|
+
:body => post_body,
|
387
|
+
:auth_names => auth_names,
|
388
|
+
:return_type => return_type
|
389
|
+
)
|
390
|
+
|
391
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
392
|
+
if @api_client.config.debugging
|
393
|
+
@api_client.config.logger.debug "API called: PublicationsGemApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
394
|
+
end
|
395
|
+
return data, status_code, headers
|
396
|
+
end
|
397
|
+
|
398
|
+
# List user permissions
|
399
|
+
# List permissions available to the current user on this object.
|
400
|
+
# @param gem_gem_publication_href [String]
|
401
|
+
# @param [Hash] opts the optional parameters
|
402
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
403
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
404
|
+
# @return [MyPermissionsResponse]
|
405
|
+
def my_permissions(gem_gem_publication_href, opts = {})
|
406
|
+
data, _status_code, _headers = my_permissions_with_http_info(gem_gem_publication_href, opts)
|
407
|
+
data
|
408
|
+
end
|
409
|
+
|
410
|
+
# List user permissions
|
411
|
+
# List permissions available to the current user on this object.
|
412
|
+
# @param gem_gem_publication_href [String]
|
413
|
+
# @param [Hash] opts the optional parameters
|
414
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
415
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
416
|
+
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
417
|
+
def my_permissions_with_http_info(gem_gem_publication_href, opts = {})
|
418
|
+
if @api_client.config.debugging
|
419
|
+
@api_client.config.logger.debug 'Calling API: PublicationsGemApi.my_permissions ...'
|
420
|
+
end
|
421
|
+
# verify the required parameter 'gem_gem_publication_href' is set
|
422
|
+
if @api_client.config.client_side_validation && gem_gem_publication_href.nil?
|
423
|
+
fail ArgumentError, "Missing the required parameter 'gem_gem_publication_href' when calling PublicationsGemApi.my_permissions"
|
424
|
+
end
|
425
|
+
# resource path
|
426
|
+
local_var_path = '{gem_gem_publication_href}my_permissions/'.sub('{' + 'gem_gem_publication_href' + '}', CGI.escape(gem_gem_publication_href.to_s).gsub('%2F', '/'))
|
427
|
+
|
428
|
+
# query parameters
|
429
|
+
query_params = opts[:query_params] || {}
|
430
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
431
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
432
|
+
|
433
|
+
# header parameters
|
434
|
+
header_params = opts[:header_params] || {}
|
435
|
+
# HTTP header 'Accept' (if needed)
|
436
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
437
|
+
|
438
|
+
# form parameters
|
439
|
+
form_params = opts[:form_params] || {}
|
440
|
+
|
441
|
+
# http body (model)
|
442
|
+
post_body = opts[:body]
|
443
|
+
|
444
|
+
# return_type
|
445
|
+
return_type = opts[:return_type] || 'MyPermissionsResponse'
|
446
|
+
|
447
|
+
# auth_names
|
448
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
449
|
+
|
450
|
+
new_options = opts.merge(
|
451
|
+
:header_params => header_params,
|
452
|
+
:query_params => query_params,
|
453
|
+
:form_params => form_params,
|
454
|
+
:body => post_body,
|
455
|
+
:auth_names => auth_names,
|
456
|
+
:return_type => return_type
|
457
|
+
)
|
458
|
+
|
459
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
460
|
+
if @api_client.config.debugging
|
461
|
+
@api_client.config.logger.debug "API called: PublicationsGemApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
462
|
+
end
|
463
|
+
return data, status_code, headers
|
464
|
+
end
|
465
|
+
|
260
466
|
# Inspect a gem publication
|
261
467
|
# A ViewSet for GemPublication.
|
262
468
|
# @param gem_gem_publication_href [String]
|
@@ -324,5 +530,75 @@ module PulpGemClient
|
|
324
530
|
end
|
325
531
|
return data, status_code, headers
|
326
532
|
end
|
533
|
+
|
534
|
+
# Remove a role
|
535
|
+
# Remove a role for this object from users/groups.
|
536
|
+
# @param gem_gem_publication_href [String]
|
537
|
+
# @param nested_role [NestedRole]
|
538
|
+
# @param [Hash] opts the optional parameters
|
539
|
+
# @return [NestedRoleResponse]
|
540
|
+
def remove_role(gem_gem_publication_href, nested_role, opts = {})
|
541
|
+
data, _status_code, _headers = remove_role_with_http_info(gem_gem_publication_href, nested_role, opts)
|
542
|
+
data
|
543
|
+
end
|
544
|
+
|
545
|
+
# Remove a role
|
546
|
+
# Remove a role for this object from users/groups.
|
547
|
+
# @param gem_gem_publication_href [String]
|
548
|
+
# @param nested_role [NestedRole]
|
549
|
+
# @param [Hash] opts the optional parameters
|
550
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
551
|
+
def remove_role_with_http_info(gem_gem_publication_href, nested_role, opts = {})
|
552
|
+
if @api_client.config.debugging
|
553
|
+
@api_client.config.logger.debug 'Calling API: PublicationsGemApi.remove_role ...'
|
554
|
+
end
|
555
|
+
# verify the required parameter 'gem_gem_publication_href' is set
|
556
|
+
if @api_client.config.client_side_validation && gem_gem_publication_href.nil?
|
557
|
+
fail ArgumentError, "Missing the required parameter 'gem_gem_publication_href' when calling PublicationsGemApi.remove_role"
|
558
|
+
end
|
559
|
+
# verify the required parameter 'nested_role' is set
|
560
|
+
if @api_client.config.client_side_validation && nested_role.nil?
|
561
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling PublicationsGemApi.remove_role"
|
562
|
+
end
|
563
|
+
# resource path
|
564
|
+
local_var_path = '{gem_gem_publication_href}remove_role/'.sub('{' + 'gem_gem_publication_href' + '}', CGI.escape(gem_gem_publication_href.to_s).gsub('%2F', '/'))
|
565
|
+
|
566
|
+
# query parameters
|
567
|
+
query_params = opts[:query_params] || {}
|
568
|
+
|
569
|
+
# header parameters
|
570
|
+
header_params = opts[:header_params] || {}
|
571
|
+
# HTTP header 'Accept' (if needed)
|
572
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
573
|
+
# HTTP header 'Content-Type'
|
574
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
575
|
+
|
576
|
+
# form parameters
|
577
|
+
form_params = opts[:form_params] || {}
|
578
|
+
|
579
|
+
# http body (model)
|
580
|
+
post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
|
581
|
+
|
582
|
+
# return_type
|
583
|
+
return_type = opts[:return_type] || 'NestedRoleResponse'
|
584
|
+
|
585
|
+
# auth_names
|
586
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
587
|
+
|
588
|
+
new_options = opts.merge(
|
589
|
+
:header_params => header_params,
|
590
|
+
:query_params => query_params,
|
591
|
+
:form_params => form_params,
|
592
|
+
:body => post_body,
|
593
|
+
:auth_names => auth_names,
|
594
|
+
:return_type => return_type
|
595
|
+
)
|
596
|
+
|
597
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
598
|
+
if @api_client.config.debugging
|
599
|
+
@api_client.config.logger.debug "API called: PublicationsGemApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
600
|
+
end
|
601
|
+
return data, status_code, headers
|
602
|
+
end
|
327
603
|
end
|
328
604
|
end
|
@@ -19,6 +19,76 @@ module PulpGemClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Add a role
|
23
|
+
# Add a role for this object to users/groups.
|
24
|
+
# @param gem_gem_remote_href [String]
|
25
|
+
# @param nested_role [NestedRole]
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [NestedRoleResponse]
|
28
|
+
def add_role(gem_gem_remote_href, nested_role, opts = {})
|
29
|
+
data, _status_code, _headers = add_role_with_http_info(gem_gem_remote_href, nested_role, opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Add a role
|
34
|
+
# Add a role for this object to users/groups.
|
35
|
+
# @param gem_gem_remote_href [String]
|
36
|
+
# @param nested_role [NestedRole]
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
39
|
+
def add_role_with_http_info(gem_gem_remote_href, nested_role, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: RemotesGemApi.add_role ...'
|
42
|
+
end
|
43
|
+
# verify the required parameter 'gem_gem_remote_href' is set
|
44
|
+
if @api_client.config.client_side_validation && gem_gem_remote_href.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'gem_gem_remote_href' when calling RemotesGemApi.add_role"
|
46
|
+
end
|
47
|
+
# verify the required parameter 'nested_role' is set
|
48
|
+
if @api_client.config.client_side_validation && nested_role.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling RemotesGemApi.add_role"
|
50
|
+
end
|
51
|
+
# resource path
|
52
|
+
local_var_path = '{gem_gem_remote_href}add_role/'.sub('{' + 'gem_gem_remote_href' + '}', CGI.escape(gem_gem_remote_href.to_s).gsub('%2F', '/'))
|
53
|
+
|
54
|
+
# query parameters
|
55
|
+
query_params = opts[:query_params] || {}
|
56
|
+
|
57
|
+
# header parameters
|
58
|
+
header_params = opts[:header_params] || {}
|
59
|
+
# HTTP header 'Accept' (if needed)
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
61
|
+
# HTTP header 'Content-Type'
|
62
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
63
|
+
|
64
|
+
# form parameters
|
65
|
+
form_params = opts[:form_params] || {}
|
66
|
+
|
67
|
+
# http body (model)
|
68
|
+
post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
|
69
|
+
|
70
|
+
# return_type
|
71
|
+
return_type = opts[:return_type] || 'NestedRoleResponse'
|
72
|
+
|
73
|
+
# auth_names
|
74
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
75
|
+
|
76
|
+
new_options = opts.merge(
|
77
|
+
:header_params => header_params,
|
78
|
+
:query_params => query_params,
|
79
|
+
:form_params => form_params,
|
80
|
+
:body => post_body,
|
81
|
+
:auth_names => auth_names,
|
82
|
+
:return_type => return_type
|
83
|
+
)
|
84
|
+
|
85
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
86
|
+
if @api_client.config.debugging
|
87
|
+
@api_client.config.logger.debug "API called: RemotesGemApi#add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
88
|
+
end
|
89
|
+
return data, status_code, headers
|
90
|
+
end
|
91
|
+
|
22
92
|
# Create a gem remote
|
23
93
|
# A ViewSet for GemRemote.
|
24
94
|
# @param gem_gem_remote [GemGemRemote]
|
@@ -154,7 +224,9 @@ module PulpGemClient
|
|
154
224
|
# @option opts [String] :name__icontains Filter results where name contains value
|
155
225
|
# @option opts [String] :name__iexact Filter results where name matches value
|
156
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
|
157
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
|
158
230
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
159
231
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
160
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)
|
@@ -185,7 +257,9 @@ module PulpGemClient
|
|
185
257
|
# @option opts [String] :name__icontains Filter results where name contains value
|
186
258
|
# @option opts [String] :name__iexact Filter results where name matches value
|
187
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
|
188
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
|
189
263
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
190
264
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
191
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)
|
@@ -221,7 +295,9 @@ module PulpGemClient
|
|
221
295
|
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
222
296
|
query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
|
223
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?
|
224
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?
|
225
301
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
226
302
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
227
303
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
@@ -271,6 +347,142 @@ module PulpGemClient
|
|
271
347
|
return data, status_code, headers
|
272
348
|
end
|
273
349
|
|
350
|
+
# List roles
|
351
|
+
# List roles assigned to this object.
|
352
|
+
# @param gem_gem_remote_href [String]
|
353
|
+
# @param [Hash] opts the optional parameters
|
354
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
355
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
356
|
+
# @return [ObjectRolesResponse]
|
357
|
+
def list_roles(gem_gem_remote_href, opts = {})
|
358
|
+
data, _status_code, _headers = list_roles_with_http_info(gem_gem_remote_href, opts)
|
359
|
+
data
|
360
|
+
end
|
361
|
+
|
362
|
+
# List roles
|
363
|
+
# List roles assigned to this object.
|
364
|
+
# @param gem_gem_remote_href [String]
|
365
|
+
# @param [Hash] opts the optional parameters
|
366
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
367
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
368
|
+
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
369
|
+
def list_roles_with_http_info(gem_gem_remote_href, opts = {})
|
370
|
+
if @api_client.config.debugging
|
371
|
+
@api_client.config.logger.debug 'Calling API: RemotesGemApi.list_roles ...'
|
372
|
+
end
|
373
|
+
# verify the required parameter 'gem_gem_remote_href' is set
|
374
|
+
if @api_client.config.client_side_validation && gem_gem_remote_href.nil?
|
375
|
+
fail ArgumentError, "Missing the required parameter 'gem_gem_remote_href' when calling RemotesGemApi.list_roles"
|
376
|
+
end
|
377
|
+
# resource path
|
378
|
+
local_var_path = '{gem_gem_remote_href}list_roles/'.sub('{' + 'gem_gem_remote_href' + '}', CGI.escape(gem_gem_remote_href.to_s).gsub('%2F', '/'))
|
379
|
+
|
380
|
+
# query parameters
|
381
|
+
query_params = opts[:query_params] || {}
|
382
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
383
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
384
|
+
|
385
|
+
# header parameters
|
386
|
+
header_params = opts[:header_params] || {}
|
387
|
+
# HTTP header 'Accept' (if needed)
|
388
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
389
|
+
|
390
|
+
# form parameters
|
391
|
+
form_params = opts[:form_params] || {}
|
392
|
+
|
393
|
+
# http body (model)
|
394
|
+
post_body = opts[:body]
|
395
|
+
|
396
|
+
# return_type
|
397
|
+
return_type = opts[:return_type] || 'ObjectRolesResponse'
|
398
|
+
|
399
|
+
# auth_names
|
400
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
401
|
+
|
402
|
+
new_options = opts.merge(
|
403
|
+
:header_params => header_params,
|
404
|
+
:query_params => query_params,
|
405
|
+
:form_params => form_params,
|
406
|
+
:body => post_body,
|
407
|
+
:auth_names => auth_names,
|
408
|
+
:return_type => return_type
|
409
|
+
)
|
410
|
+
|
411
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
412
|
+
if @api_client.config.debugging
|
413
|
+
@api_client.config.logger.debug "API called: RemotesGemApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
414
|
+
end
|
415
|
+
return data, status_code, headers
|
416
|
+
end
|
417
|
+
|
418
|
+
# List user permissions
|
419
|
+
# List permissions available to the current user on this object.
|
420
|
+
# @param gem_gem_remote_href [String]
|
421
|
+
# @param [Hash] opts the optional parameters
|
422
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
423
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
424
|
+
# @return [MyPermissionsResponse]
|
425
|
+
def my_permissions(gem_gem_remote_href, opts = {})
|
426
|
+
data, _status_code, _headers = my_permissions_with_http_info(gem_gem_remote_href, opts)
|
427
|
+
data
|
428
|
+
end
|
429
|
+
|
430
|
+
# List user permissions
|
431
|
+
# List permissions available to the current user on this object.
|
432
|
+
# @param gem_gem_remote_href [String]
|
433
|
+
# @param [Hash] opts the optional parameters
|
434
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
435
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
436
|
+
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
437
|
+
def my_permissions_with_http_info(gem_gem_remote_href, opts = {})
|
438
|
+
if @api_client.config.debugging
|
439
|
+
@api_client.config.logger.debug 'Calling API: RemotesGemApi.my_permissions ...'
|
440
|
+
end
|
441
|
+
# verify the required parameter 'gem_gem_remote_href' is set
|
442
|
+
if @api_client.config.client_side_validation && gem_gem_remote_href.nil?
|
443
|
+
fail ArgumentError, "Missing the required parameter 'gem_gem_remote_href' when calling RemotesGemApi.my_permissions"
|
444
|
+
end
|
445
|
+
# resource path
|
446
|
+
local_var_path = '{gem_gem_remote_href}my_permissions/'.sub('{' + 'gem_gem_remote_href' + '}', CGI.escape(gem_gem_remote_href.to_s).gsub('%2F', '/'))
|
447
|
+
|
448
|
+
# query parameters
|
449
|
+
query_params = opts[:query_params] || {}
|
450
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
451
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
452
|
+
|
453
|
+
# header parameters
|
454
|
+
header_params = opts[:header_params] || {}
|
455
|
+
# HTTP header 'Accept' (if needed)
|
456
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
457
|
+
|
458
|
+
# form parameters
|
459
|
+
form_params = opts[:form_params] || {}
|
460
|
+
|
461
|
+
# http body (model)
|
462
|
+
post_body = opts[:body]
|
463
|
+
|
464
|
+
# return_type
|
465
|
+
return_type = opts[:return_type] || 'MyPermissionsResponse'
|
466
|
+
|
467
|
+
# auth_names
|
468
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
469
|
+
|
470
|
+
new_options = opts.merge(
|
471
|
+
:header_params => header_params,
|
472
|
+
:query_params => query_params,
|
473
|
+
:form_params => form_params,
|
474
|
+
:body => post_body,
|
475
|
+
:auth_names => auth_names,
|
476
|
+
:return_type => return_type
|
477
|
+
)
|
478
|
+
|
479
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
480
|
+
if @api_client.config.debugging
|
481
|
+
@api_client.config.logger.debug "API called: RemotesGemApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
482
|
+
end
|
483
|
+
return data, status_code, headers
|
484
|
+
end
|
485
|
+
|
274
486
|
# Update a gem remote
|
275
487
|
# Trigger an asynchronous partial update task
|
276
488
|
# @param gem_gem_remote_href [String]
|
@@ -409,6 +621,76 @@ module PulpGemClient
|
|
409
621
|
return data, status_code, headers
|
410
622
|
end
|
411
623
|
|
624
|
+
# Remove a role
|
625
|
+
# Remove a role for this object from users/groups.
|
626
|
+
# @param gem_gem_remote_href [String]
|
627
|
+
# @param nested_role [NestedRole]
|
628
|
+
# @param [Hash] opts the optional parameters
|
629
|
+
# @return [NestedRoleResponse]
|
630
|
+
def remove_role(gem_gem_remote_href, nested_role, opts = {})
|
631
|
+
data, _status_code, _headers = remove_role_with_http_info(gem_gem_remote_href, nested_role, opts)
|
632
|
+
data
|
633
|
+
end
|
634
|
+
|
635
|
+
# Remove a role
|
636
|
+
# Remove a role for this object from users/groups.
|
637
|
+
# @param gem_gem_remote_href [String]
|
638
|
+
# @param nested_role [NestedRole]
|
639
|
+
# @param [Hash] opts the optional parameters
|
640
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
641
|
+
def remove_role_with_http_info(gem_gem_remote_href, nested_role, opts = {})
|
642
|
+
if @api_client.config.debugging
|
643
|
+
@api_client.config.logger.debug 'Calling API: RemotesGemApi.remove_role ...'
|
644
|
+
end
|
645
|
+
# verify the required parameter 'gem_gem_remote_href' is set
|
646
|
+
if @api_client.config.client_side_validation && gem_gem_remote_href.nil?
|
647
|
+
fail ArgumentError, "Missing the required parameter 'gem_gem_remote_href' when calling RemotesGemApi.remove_role"
|
648
|
+
end
|
649
|
+
# verify the required parameter 'nested_role' is set
|
650
|
+
if @api_client.config.client_side_validation && nested_role.nil?
|
651
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling RemotesGemApi.remove_role"
|
652
|
+
end
|
653
|
+
# resource path
|
654
|
+
local_var_path = '{gem_gem_remote_href}remove_role/'.sub('{' + 'gem_gem_remote_href' + '}', CGI.escape(gem_gem_remote_href.to_s).gsub('%2F', '/'))
|
655
|
+
|
656
|
+
# query parameters
|
657
|
+
query_params = opts[:query_params] || {}
|
658
|
+
|
659
|
+
# header parameters
|
660
|
+
header_params = opts[:header_params] || {}
|
661
|
+
# HTTP header 'Accept' (if needed)
|
662
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
663
|
+
# HTTP header 'Content-Type'
|
664
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
665
|
+
|
666
|
+
# form parameters
|
667
|
+
form_params = opts[:form_params] || {}
|
668
|
+
|
669
|
+
# http body (model)
|
670
|
+
post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
|
671
|
+
|
672
|
+
# return_type
|
673
|
+
return_type = opts[:return_type] || 'NestedRoleResponse'
|
674
|
+
|
675
|
+
# auth_names
|
676
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
677
|
+
|
678
|
+
new_options = opts.merge(
|
679
|
+
:header_params => header_params,
|
680
|
+
:query_params => query_params,
|
681
|
+
:form_params => form_params,
|
682
|
+
:body => post_body,
|
683
|
+
:auth_names => auth_names,
|
684
|
+
:return_type => return_type
|
685
|
+
)
|
686
|
+
|
687
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
688
|
+
if @api_client.config.debugging
|
689
|
+
@api_client.config.logger.debug "API called: RemotesGemApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
690
|
+
end
|
691
|
+
return data, status_code, headers
|
692
|
+
end
|
693
|
+
|
412
694
|
# Set a label
|
413
695
|
# Set a single pulp_label on the object to a specific value or null.
|
414
696
|
# @param gem_gem_remote_href [String]
|