pulp_container_client 2.10.13 → 2.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +41 -17
  3. data/docs/ContainerBlobResponse.md +1 -3
  4. data/docs/ContainerContainerDistribution.md +5 -5
  5. data/docs/ContainerContainerDistributionResponse.md +9 -9
  6. data/docs/ContainerContainerPushRepository.md +7 -5
  7. data/docs/ContainerContainerPushRepositoryResponse.md +14 -12
  8. data/docs/ContainerContainerRemote.md +3 -1
  9. data/docs/ContainerContainerRemoteResponse.md +3 -1
  10. data/docs/ContainerContainerRepository.md +3 -1
  11. data/docs/ContainerContainerRepositoryResponse.md +3 -1
  12. data/docs/ContainerManifestSignatureResponse.md +33 -0
  13. data/docs/{RepositorySyncURL.md → ContainerRepositorySyncURL.md} +5 -3
  14. data/docs/ContentBlobsApi.md +0 -2
  15. data/docs/ContentSignaturesApi.md +158 -0
  16. data/docs/ContentSummary.md +21 -0
  17. data/docs/DistributionsContainerApi.md +228 -0
  18. data/docs/MyPermissionsResponse.md +17 -0
  19. data/docs/NestedRole.md +21 -0
  20. data/docs/NestedRoleResponse.md +21 -0
  21. data/docs/ObjectRolesResponse.md +17 -0
  22. data/docs/{PaginatedcontainerContentRedirectContentGuardResponseList.md → PaginatedcontainerManifestSignatureResponseList.md} +3 -3
  23. data/docs/PatchedcontainerContainerDistribution.md +5 -5
  24. data/docs/PatchedcontainerContainerPushRepository.md +7 -5
  25. data/docs/PatchedcontainerContainerRemote.md +3 -1
  26. data/docs/PatchedcontainerContainerRepository.md +3 -1
  27. data/docs/PulpContainerNamespacesApi.md +228 -0
  28. data/docs/RemotesContainerApi.md +228 -0
  29. data/docs/RemoveSignatures.md +17 -0
  30. data/docs/RemoveSignaturesResponse.md +17 -0
  31. data/docs/RepositoriesContainerApi.md +288 -4
  32. data/docs/RepositoriesContainerPushApi.md +339 -0
  33. data/docs/RepositoriesContainerPushVersionsApi.md +4 -4
  34. data/docs/RepositoriesContainerVersionsApi.md +4 -4
  35. data/docs/RepositorySign.md +21 -0
  36. data/docs/RepositoryVersion.md +17 -0
  37. data/git_push.sh +58 -0
  38. data/lib/pulp_container_client/api/content_blobs_api.rb +0 -7
  39. data/lib/pulp_container_client/api/content_signatures_api.rb +200 -0
  40. data/lib/pulp_container_client/api/distributions_container_api.rb +268 -0
  41. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +268 -0
  42. data/lib/pulp_container_client/api/remotes_container_api.rb +268 -0
  43. data/lib/pulp_container_client/api/repositories_container_api.rb +347 -9
  44. data/lib/pulp_container_client/api/repositories_container_push_api.rb +406 -0
  45. data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +9 -9
  46. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +9 -9
  47. data/lib/pulp_container_client/api_client.rb +5 -2
  48. data/lib/pulp_container_client/configuration.rb +0 -1
  49. data/lib/pulp_container_client/models/container_blob_response.rb +4 -19
  50. data/lib/pulp_container_client/models/container_container_distribution.rb +21 -21
  51. data/lib/pulp_container_client/models/container_container_distribution_response.rb +34 -34
  52. data/lib/pulp_container_client/models/container_container_push_repository.rb +44 -33
  53. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +55 -44
  54. data/lib/pulp_container_client/models/container_container_remote.rb +30 -5
  55. data/lib/pulp_container_client/models/container_container_remote_response.rb +15 -5
  56. data/lib/pulp_container_client/models/container_container_repository.rb +16 -5
  57. data/lib/pulp_container_client/models/container_container_repository_response.rb +16 -5
  58. data/lib/pulp_container_client/models/{container_content_redirect_content_guard.rb → container_manifest_signature_response.rb} +108 -44
  59. data/lib/pulp_container_client/models/{repository_sync_url.rb → container_repository_sync_url.rb} +20 -8
  60. data/lib/pulp_container_client/models/content_summary.rb +246 -0
  61. data/lib/pulp_container_client/models/my_permissions_response.rb +213 -0
  62. data/lib/pulp_container_client/models/{container_content_redirect_content_guard_response.rb → nested_role.rb} +30 -39
  63. data/lib/pulp_container_client/models/nested_role_response.rb +234 -0
  64. data/lib/pulp_container_client/models/{repair.rb → object_roles_response.rb} +17 -13
  65. data/lib/pulp_container_client/models/{paginatedcontainer_content_redirect_content_guard_response_list.rb → paginatedcontainer_manifest_signature_response_list.rb} +4 -4
  66. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +21 -21
  67. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +44 -33
  68. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +30 -5
  69. data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +16 -5
  70. data/lib/pulp_container_client/models/remove_signatures.rb +232 -0
  71. data/lib/pulp_container_client/models/remove_signatures_response.rb +213 -0
  72. data/lib/pulp_container_client/models/{patchedcontainer_content_redirect_content_guard.rb → repository_sign.rb} +40 -43
  73. data/lib/pulp_container_client/models/repository_version.rb +208 -0
  74. data/lib/pulp_container_client/version.rb +1 -1
  75. data/lib/pulp_container_client.rb +13 -7
  76. data/pulp_container_client.gemspec +3 -3
  77. data/spec/api/content_blobs_api_spec.rb +0 -1
  78. data/spec/api/content_signatures_api_spec.rb +78 -0
  79. data/spec/api/distributions_container_api_spec.rb +50 -0
  80. data/spec/api/pulp_container_namespaces_api_spec.rb +50 -0
  81. data/spec/api/remotes_container_api_spec.rb +50 -0
  82. data/spec/api/repositories_container_api_spec.rb +64 -1
  83. data/spec/api/repositories_container_push_api_spec.rb +75 -0
  84. data/spec/api/repositories_container_push_versions_api_spec.rb +1 -1
  85. data/spec/api/repositories_container_versions_api_spec.rb +1 -1
  86. data/spec/models/container_blob_response_spec.rb +0 -6
  87. data/spec/models/container_container_distribution_response_spec.rb +7 -7
  88. data/spec/models/container_container_distribution_spec.rb +5 -5
  89. data/spec/models/container_container_push_repository_response_spec.rb +13 -7
  90. data/spec/models/container_container_push_repository_spec.rb +9 -3
  91. data/spec/models/container_container_remote_response_spec.rb +6 -0
  92. data/spec/models/container_container_remote_spec.rb +6 -0
  93. data/spec/models/container_container_repository_response_spec.rb +6 -0
  94. data/spec/models/container_container_repository_spec.rb +6 -0
  95. data/spec/models/container_manifest_signature_response_spec.rb +89 -0
  96. data/spec/models/{container_content_redirect_content_guard_response_spec.rb → container_repository_sync_url_spec.rb} +9 -15
  97. data/spec/models/{container_content_redirect_content_guard_spec.rb → content_summary_spec.rb} +14 -8
  98. data/spec/models/my_permissions_response_spec.rb +41 -0
  99. data/spec/models/nested_role_response_spec.rb +53 -0
  100. data/spec/models/{patchedcontainer_content_redirect_content_guard_spec.rb → nested_role_spec.rb} +14 -8
  101. data/spec/models/object_roles_response_spec.rb +41 -0
  102. data/spec/models/{paginatedcontainer_content_redirect_content_guard_response_list_spec.rb → paginatedcontainer_manifest_signature_response_list_spec.rb} +6 -6
  103. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  104. data/spec/models/patchedcontainer_container_push_repository_spec.rb +9 -3
  105. data/spec/models/patchedcontainer_container_remote_spec.rb +6 -0
  106. data/spec/models/patchedcontainer_container_repository_spec.rb +6 -0
  107. data/spec/models/remove_signatures_response_spec.rb +41 -0
  108. data/spec/models/{repair_spec.rb → remove_signatures_spec.rb} +7 -7
  109. data/spec/models/{repository_sync_url_spec.rb → repository_sign_spec.rb} +14 -8
  110. data/spec/models/repository_version_spec.rb +41 -0
  111. metadata +99 -74
  112. data/docs/ContainerContentRedirectContentGuard.md +0 -19
  113. data/docs/ContainerContentRedirectContentGuardResponse.md +0 -23
  114. data/docs/ContentguardsContentRedirectApi.md +0 -361
  115. data/docs/PatchedcontainerContentRedirectContentGuard.md +0 -19
  116. data/docs/Repair.md +0 -17
  117. data/lib/pulp_container_client/api/contentguards_content_redirect_api.rb +0 -440
  118. data/spec/api/contentguards_content_redirect_api_spec.rb +0 -120
@@ -19,6 +19,74 @@ module PulpContainerClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Add a role for this object to users/groups.
23
+ # @param container_container_distribution_href [String]
24
+ # @param nested_role [NestedRole]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [NestedRoleResponse]
27
+ def add_role(container_container_distribution_href, nested_role, opts = {})
28
+ data, _status_code, _headers = add_role_with_http_info(container_container_distribution_href, nested_role, opts)
29
+ data
30
+ end
31
+
32
+ # Add a role for this object to users/groups.
33
+ # @param container_container_distribution_href [String]
34
+ # @param nested_role [NestedRole]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
37
+ def add_role_with_http_info(container_container_distribution_href, nested_role, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: DistributionsContainerApi.add_role ...'
40
+ end
41
+ # verify the required parameter 'container_container_distribution_href' is set
42
+ if @api_client.config.client_side_validation && container_container_distribution_href.nil?
43
+ fail ArgumentError, "Missing the required parameter 'container_container_distribution_href' when calling DistributionsContainerApi.add_role"
44
+ end
45
+ # verify the required parameter 'nested_role' is set
46
+ if @api_client.config.client_side_validation && nested_role.nil?
47
+ fail ArgumentError, "Missing the required parameter 'nested_role' when calling DistributionsContainerApi.add_role"
48
+ end
49
+ # resource path
50
+ local_var_path = '{container_container_distribution_href}add_role/'.sub('{' + 'container_container_distribution_href' + '}', CGI.escape(container_container_distribution_href.to_s).gsub('%2F', '/'))
51
+
52
+ # query parameters
53
+ query_params = opts[:query_params] || {}
54
+
55
+ # header parameters
56
+ header_params = opts[:header_params] || {}
57
+ # HTTP header 'Accept' (if needed)
58
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
59
+ # HTTP header 'Content-Type'
60
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
61
+
62
+ # form parameters
63
+ form_params = opts[:form_params] || {}
64
+
65
+ # http body (model)
66
+ post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
67
+
68
+ # return_type
69
+ return_type = opts[:return_type] || 'NestedRoleResponse'
70
+
71
+ # auth_names
72
+ auth_names = opts[:auth_names] || ['basicAuth']
73
+
74
+ new_options = opts.merge(
75
+ :header_params => header_params,
76
+ :query_params => query_params,
77
+ :form_params => form_params,
78
+ :body => post_body,
79
+ :auth_names => auth_names,
80
+ :return_type => return_type
81
+ )
82
+
83
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
84
+ if @api_client.config.debugging
85
+ @api_client.config.logger.debug "API called: DistributionsContainerApi#add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
86
+ end
87
+ return data, status_code, headers
88
+ end
89
+
22
90
  # Create a container distribution
23
91
  # Trigger an asynchronous create task
24
92
  # @param container_container_distribution [ContainerContainerDistribution]
@@ -249,6 +317,138 @@ module PulpContainerClient
249
317
  return data, status_code, headers
250
318
  end
251
319
 
320
+ # List roles assigned to this object.
321
+ # @param container_container_distribution_href [String]
322
+ # @param [Hash] opts the optional parameters
323
+ # @option opts [String] :fields A list of fields to include in the response.
324
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
325
+ # @return [ObjectRolesResponse]
326
+ def list_roles(container_container_distribution_href, opts = {})
327
+ data, _status_code, _headers = list_roles_with_http_info(container_container_distribution_href, opts)
328
+ data
329
+ end
330
+
331
+ # List roles assigned to this object.
332
+ # @param container_container_distribution_href [String]
333
+ # @param [Hash] opts the optional parameters
334
+ # @option opts [String] :fields A list of fields to include in the response.
335
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
336
+ # @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
337
+ def list_roles_with_http_info(container_container_distribution_href, opts = {})
338
+ if @api_client.config.debugging
339
+ @api_client.config.logger.debug 'Calling API: DistributionsContainerApi.list_roles ...'
340
+ end
341
+ # verify the required parameter 'container_container_distribution_href' is set
342
+ if @api_client.config.client_side_validation && container_container_distribution_href.nil?
343
+ fail ArgumentError, "Missing the required parameter 'container_container_distribution_href' when calling DistributionsContainerApi.list_roles"
344
+ end
345
+ # resource path
346
+ local_var_path = '{container_container_distribution_href}list_roles/'.sub('{' + 'container_container_distribution_href' + '}', CGI.escape(container_container_distribution_href.to_s).gsub('%2F', '/'))
347
+
348
+ # query parameters
349
+ query_params = opts[:query_params] || {}
350
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
351
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
352
+
353
+ # header parameters
354
+ header_params = opts[:header_params] || {}
355
+ # HTTP header 'Accept' (if needed)
356
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
357
+
358
+ # form parameters
359
+ form_params = opts[:form_params] || {}
360
+
361
+ # http body (model)
362
+ post_body = opts[:body]
363
+
364
+ # return_type
365
+ return_type = opts[:return_type] || 'ObjectRolesResponse'
366
+
367
+ # auth_names
368
+ auth_names = opts[:auth_names] || ['basicAuth']
369
+
370
+ new_options = opts.merge(
371
+ :header_params => header_params,
372
+ :query_params => query_params,
373
+ :form_params => form_params,
374
+ :body => post_body,
375
+ :auth_names => auth_names,
376
+ :return_type => return_type
377
+ )
378
+
379
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
380
+ if @api_client.config.debugging
381
+ @api_client.config.logger.debug "API called: DistributionsContainerApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
382
+ end
383
+ return data, status_code, headers
384
+ end
385
+
386
+ # List permissions available to the current user on this object.
387
+ # @param container_container_distribution_href [String]
388
+ # @param [Hash] opts the optional parameters
389
+ # @option opts [String] :fields A list of fields to include in the response.
390
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
391
+ # @return [MyPermissionsResponse]
392
+ def my_permissions(container_container_distribution_href, opts = {})
393
+ data, _status_code, _headers = my_permissions_with_http_info(container_container_distribution_href, opts)
394
+ data
395
+ end
396
+
397
+ # List permissions available to the current user on this object.
398
+ # @param container_container_distribution_href [String]
399
+ # @param [Hash] opts the optional parameters
400
+ # @option opts [String] :fields A list of fields to include in the response.
401
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
402
+ # @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
403
+ def my_permissions_with_http_info(container_container_distribution_href, opts = {})
404
+ if @api_client.config.debugging
405
+ @api_client.config.logger.debug 'Calling API: DistributionsContainerApi.my_permissions ...'
406
+ end
407
+ # verify the required parameter 'container_container_distribution_href' is set
408
+ if @api_client.config.client_side_validation && container_container_distribution_href.nil?
409
+ fail ArgumentError, "Missing the required parameter 'container_container_distribution_href' when calling DistributionsContainerApi.my_permissions"
410
+ end
411
+ # resource path
412
+ local_var_path = '{container_container_distribution_href}my_permissions/'.sub('{' + 'container_container_distribution_href' + '}', CGI.escape(container_container_distribution_href.to_s).gsub('%2F', '/'))
413
+
414
+ # query parameters
415
+ query_params = opts[:query_params] || {}
416
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
417
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
418
+
419
+ # header parameters
420
+ header_params = opts[:header_params] || {}
421
+ # HTTP header 'Accept' (if needed)
422
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
423
+
424
+ # form parameters
425
+ form_params = opts[:form_params] || {}
426
+
427
+ # http body (model)
428
+ post_body = opts[:body]
429
+
430
+ # return_type
431
+ return_type = opts[:return_type] || 'MyPermissionsResponse'
432
+
433
+ # auth_names
434
+ auth_names = opts[:auth_names] || ['basicAuth']
435
+
436
+ new_options = opts.merge(
437
+ :header_params => header_params,
438
+ :query_params => query_params,
439
+ :form_params => form_params,
440
+ :body => post_body,
441
+ :auth_names => auth_names,
442
+ :return_type => return_type
443
+ )
444
+
445
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
446
+ if @api_client.config.debugging
447
+ @api_client.config.logger.debug "API called: DistributionsContainerApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
448
+ end
449
+ return data, status_code, headers
450
+ end
451
+
252
452
  # Update a container distribution
253
453
  # Trigger an asynchronous partial update task
254
454
  # @param container_container_distribution_href [String]
@@ -387,6 +587,74 @@ module PulpContainerClient
387
587
  return data, status_code, headers
388
588
  end
389
589
 
590
+ # Remove a role for this object from users/groups.
591
+ # @param container_container_distribution_href [String]
592
+ # @param nested_role [NestedRole]
593
+ # @param [Hash] opts the optional parameters
594
+ # @return [NestedRoleResponse]
595
+ def remove_role(container_container_distribution_href, nested_role, opts = {})
596
+ data, _status_code, _headers = remove_role_with_http_info(container_container_distribution_href, nested_role, opts)
597
+ data
598
+ end
599
+
600
+ # Remove a role for this object from users/groups.
601
+ # @param container_container_distribution_href [String]
602
+ # @param nested_role [NestedRole]
603
+ # @param [Hash] opts the optional parameters
604
+ # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
605
+ def remove_role_with_http_info(container_container_distribution_href, nested_role, opts = {})
606
+ if @api_client.config.debugging
607
+ @api_client.config.logger.debug 'Calling API: DistributionsContainerApi.remove_role ...'
608
+ end
609
+ # verify the required parameter 'container_container_distribution_href' is set
610
+ if @api_client.config.client_side_validation && container_container_distribution_href.nil?
611
+ fail ArgumentError, "Missing the required parameter 'container_container_distribution_href' when calling DistributionsContainerApi.remove_role"
612
+ end
613
+ # verify the required parameter 'nested_role' is set
614
+ if @api_client.config.client_side_validation && nested_role.nil?
615
+ fail ArgumentError, "Missing the required parameter 'nested_role' when calling DistributionsContainerApi.remove_role"
616
+ end
617
+ # resource path
618
+ local_var_path = '{container_container_distribution_href}remove_role/'.sub('{' + 'container_container_distribution_href' + '}', CGI.escape(container_container_distribution_href.to_s).gsub('%2F', '/'))
619
+
620
+ # query parameters
621
+ query_params = opts[:query_params] || {}
622
+
623
+ # header parameters
624
+ header_params = opts[:header_params] || {}
625
+ # HTTP header 'Accept' (if needed)
626
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
627
+ # HTTP header 'Content-Type'
628
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
629
+
630
+ # form parameters
631
+ form_params = opts[:form_params] || {}
632
+
633
+ # http body (model)
634
+ post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
635
+
636
+ # return_type
637
+ return_type = opts[:return_type] || 'NestedRoleResponse'
638
+
639
+ # auth_names
640
+ auth_names = opts[:auth_names] || ['basicAuth']
641
+
642
+ new_options = opts.merge(
643
+ :header_params => header_params,
644
+ :query_params => query_params,
645
+ :form_params => form_params,
646
+ :body => post_body,
647
+ :auth_names => auth_names,
648
+ :return_type => return_type
649
+ )
650
+
651
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
652
+ if @api_client.config.debugging
653
+ @api_client.config.logger.debug "API called: DistributionsContainerApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
654
+ end
655
+ return data, status_code, headers
656
+ end
657
+
390
658
  # Update a container distribution
391
659
  # Trigger an asynchronous update task
392
660
  # @param container_container_distribution_href [String]
@@ -19,6 +19,74 @@ module PulpContainerClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Add a role for this object to users/groups.
23
+ # @param container_container_namespace_href [String]
24
+ # @param nested_role [NestedRole]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [NestedRoleResponse]
27
+ def add_role(container_container_namespace_href, nested_role, opts = {})
28
+ data, _status_code, _headers = add_role_with_http_info(container_container_namespace_href, nested_role, opts)
29
+ data
30
+ end
31
+
32
+ # Add a role for this object to users/groups.
33
+ # @param container_container_namespace_href [String]
34
+ # @param nested_role [NestedRole]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
37
+ def add_role_with_http_info(container_container_namespace_href, nested_role, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: PulpContainerNamespacesApi.add_role ...'
40
+ end
41
+ # verify the required parameter 'container_container_namespace_href' is set
42
+ if @api_client.config.client_side_validation && container_container_namespace_href.nil?
43
+ fail ArgumentError, "Missing the required parameter 'container_container_namespace_href' when calling PulpContainerNamespacesApi.add_role"
44
+ end
45
+ # verify the required parameter 'nested_role' is set
46
+ if @api_client.config.client_side_validation && nested_role.nil?
47
+ fail ArgumentError, "Missing the required parameter 'nested_role' when calling PulpContainerNamespacesApi.add_role"
48
+ end
49
+ # resource path
50
+ local_var_path = '{container_container_namespace_href}add_role/'.sub('{' + 'container_container_namespace_href' + '}', CGI.escape(container_container_namespace_href.to_s).gsub('%2F', '/'))
51
+
52
+ # query parameters
53
+ query_params = opts[:query_params] || {}
54
+
55
+ # header parameters
56
+ header_params = opts[:header_params] || {}
57
+ # HTTP header 'Accept' (if needed)
58
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
59
+ # HTTP header 'Content-Type'
60
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
61
+
62
+ # form parameters
63
+ form_params = opts[:form_params] || {}
64
+
65
+ # http body (model)
66
+ post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
67
+
68
+ # return_type
69
+ return_type = opts[:return_type] || 'NestedRoleResponse'
70
+
71
+ # auth_names
72
+ auth_names = opts[:auth_names] || ['basicAuth']
73
+
74
+ new_options = opts.merge(
75
+ :header_params => header_params,
76
+ :query_params => query_params,
77
+ :form_params => form_params,
78
+ :body => post_body,
79
+ :auth_names => auth_names,
80
+ :return_type => return_type
81
+ )
82
+
83
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
84
+ if @api_client.config.debugging
85
+ @api_client.config.logger.debug "API called: PulpContainerNamespacesApi#add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
86
+ end
87
+ return data, status_code, headers
88
+ end
89
+
22
90
  # Create a container namespace
23
91
  # ViewSet for ContainerNamespaces.
24
92
  # @param container_container_namespace [ContainerContainerNamespace]
@@ -231,6 +299,138 @@ module PulpContainerClient
231
299
  return data, status_code, headers
232
300
  end
233
301
 
302
+ # List roles assigned to this object.
303
+ # @param container_container_namespace_href [String]
304
+ # @param [Hash] opts the optional parameters
305
+ # @option opts [String] :fields A list of fields to include in the response.
306
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
307
+ # @return [ObjectRolesResponse]
308
+ def list_roles(container_container_namespace_href, opts = {})
309
+ data, _status_code, _headers = list_roles_with_http_info(container_container_namespace_href, opts)
310
+ data
311
+ end
312
+
313
+ # List roles assigned to this object.
314
+ # @param container_container_namespace_href [String]
315
+ # @param [Hash] opts the optional parameters
316
+ # @option opts [String] :fields A list of fields to include in the response.
317
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
318
+ # @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
319
+ def list_roles_with_http_info(container_container_namespace_href, opts = {})
320
+ if @api_client.config.debugging
321
+ @api_client.config.logger.debug 'Calling API: PulpContainerNamespacesApi.list_roles ...'
322
+ end
323
+ # verify the required parameter 'container_container_namespace_href' is set
324
+ if @api_client.config.client_side_validation && container_container_namespace_href.nil?
325
+ fail ArgumentError, "Missing the required parameter 'container_container_namespace_href' when calling PulpContainerNamespacesApi.list_roles"
326
+ end
327
+ # resource path
328
+ local_var_path = '{container_container_namespace_href}list_roles/'.sub('{' + 'container_container_namespace_href' + '}', CGI.escape(container_container_namespace_href.to_s).gsub('%2F', '/'))
329
+
330
+ # query parameters
331
+ query_params = opts[:query_params] || {}
332
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
333
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
334
+
335
+ # header parameters
336
+ header_params = opts[:header_params] || {}
337
+ # HTTP header 'Accept' (if needed)
338
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
339
+
340
+ # form parameters
341
+ form_params = opts[:form_params] || {}
342
+
343
+ # http body (model)
344
+ post_body = opts[:body]
345
+
346
+ # return_type
347
+ return_type = opts[:return_type] || 'ObjectRolesResponse'
348
+
349
+ # auth_names
350
+ auth_names = opts[:auth_names] || ['basicAuth']
351
+
352
+ new_options = opts.merge(
353
+ :header_params => header_params,
354
+ :query_params => query_params,
355
+ :form_params => form_params,
356
+ :body => post_body,
357
+ :auth_names => auth_names,
358
+ :return_type => return_type
359
+ )
360
+
361
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
362
+ if @api_client.config.debugging
363
+ @api_client.config.logger.debug "API called: PulpContainerNamespacesApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
364
+ end
365
+ return data, status_code, headers
366
+ end
367
+
368
+ # List permissions available to the current user on this object.
369
+ # @param container_container_namespace_href [String]
370
+ # @param [Hash] opts the optional parameters
371
+ # @option opts [String] :fields A list of fields to include in the response.
372
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
373
+ # @return [MyPermissionsResponse]
374
+ def my_permissions(container_container_namespace_href, opts = {})
375
+ data, _status_code, _headers = my_permissions_with_http_info(container_container_namespace_href, opts)
376
+ data
377
+ end
378
+
379
+ # List permissions available to the current user on this object.
380
+ # @param container_container_namespace_href [String]
381
+ # @param [Hash] opts the optional parameters
382
+ # @option opts [String] :fields A list of fields to include in the response.
383
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
384
+ # @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
385
+ def my_permissions_with_http_info(container_container_namespace_href, opts = {})
386
+ if @api_client.config.debugging
387
+ @api_client.config.logger.debug 'Calling API: PulpContainerNamespacesApi.my_permissions ...'
388
+ end
389
+ # verify the required parameter 'container_container_namespace_href' is set
390
+ if @api_client.config.client_side_validation && container_container_namespace_href.nil?
391
+ fail ArgumentError, "Missing the required parameter 'container_container_namespace_href' when calling PulpContainerNamespacesApi.my_permissions"
392
+ end
393
+ # resource path
394
+ local_var_path = '{container_container_namespace_href}my_permissions/'.sub('{' + 'container_container_namespace_href' + '}', CGI.escape(container_container_namespace_href.to_s).gsub('%2F', '/'))
395
+
396
+ # query parameters
397
+ query_params = opts[:query_params] || {}
398
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
399
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
400
+
401
+ # header parameters
402
+ header_params = opts[:header_params] || {}
403
+ # HTTP header 'Accept' (if needed)
404
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
405
+
406
+ # form parameters
407
+ form_params = opts[:form_params] || {}
408
+
409
+ # http body (model)
410
+ post_body = opts[:body]
411
+
412
+ # return_type
413
+ return_type = opts[:return_type] || 'MyPermissionsResponse'
414
+
415
+ # auth_names
416
+ auth_names = opts[:auth_names] || ['basicAuth']
417
+
418
+ new_options = opts.merge(
419
+ :header_params => header_params,
420
+ :query_params => query_params,
421
+ :form_params => form_params,
422
+ :body => post_body,
423
+ :auth_names => auth_names,
424
+ :return_type => return_type
425
+ )
426
+
427
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
428
+ if @api_client.config.debugging
429
+ @api_client.config.logger.debug "API called: PulpContainerNamespacesApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
430
+ end
431
+ return data, status_code, headers
432
+ end
433
+
234
434
  # Inspect a container namespace
235
435
  # ViewSet for ContainerNamespaces.
236
436
  # @param container_container_namespace_href [String]
@@ -298,5 +498,73 @@ module PulpContainerClient
298
498
  end
299
499
  return data, status_code, headers
300
500
  end
501
+
502
+ # Remove a role for this object from users/groups.
503
+ # @param container_container_namespace_href [String]
504
+ # @param nested_role [NestedRole]
505
+ # @param [Hash] opts the optional parameters
506
+ # @return [NestedRoleResponse]
507
+ def remove_role(container_container_namespace_href, nested_role, opts = {})
508
+ data, _status_code, _headers = remove_role_with_http_info(container_container_namespace_href, nested_role, opts)
509
+ data
510
+ end
511
+
512
+ # Remove a role for this object from users/groups.
513
+ # @param container_container_namespace_href [String]
514
+ # @param nested_role [NestedRole]
515
+ # @param [Hash] opts the optional parameters
516
+ # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
517
+ def remove_role_with_http_info(container_container_namespace_href, nested_role, opts = {})
518
+ if @api_client.config.debugging
519
+ @api_client.config.logger.debug 'Calling API: PulpContainerNamespacesApi.remove_role ...'
520
+ end
521
+ # verify the required parameter 'container_container_namespace_href' is set
522
+ if @api_client.config.client_side_validation && container_container_namespace_href.nil?
523
+ fail ArgumentError, "Missing the required parameter 'container_container_namespace_href' when calling PulpContainerNamespacesApi.remove_role"
524
+ end
525
+ # verify the required parameter 'nested_role' is set
526
+ if @api_client.config.client_side_validation && nested_role.nil?
527
+ fail ArgumentError, "Missing the required parameter 'nested_role' when calling PulpContainerNamespacesApi.remove_role"
528
+ end
529
+ # resource path
530
+ local_var_path = '{container_container_namespace_href}remove_role/'.sub('{' + 'container_container_namespace_href' + '}', CGI.escape(container_container_namespace_href.to_s).gsub('%2F', '/'))
531
+
532
+ # query parameters
533
+ query_params = opts[:query_params] || {}
534
+
535
+ # header parameters
536
+ header_params = opts[:header_params] || {}
537
+ # HTTP header 'Accept' (if needed)
538
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
539
+ # HTTP header 'Content-Type'
540
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
541
+
542
+ # form parameters
543
+ form_params = opts[:form_params] || {}
544
+
545
+ # http body (model)
546
+ post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
547
+
548
+ # return_type
549
+ return_type = opts[:return_type] || 'NestedRoleResponse'
550
+
551
+ # auth_names
552
+ auth_names = opts[:auth_names] || ['basicAuth']
553
+
554
+ new_options = opts.merge(
555
+ :header_params => header_params,
556
+ :query_params => query_params,
557
+ :form_params => form_params,
558
+ :body => post_body,
559
+ :auth_names => auth_names,
560
+ :return_type => return_type
561
+ )
562
+
563
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
564
+ if @api_client.config.debugging
565
+ @api_client.config.logger.debug "API called: PulpContainerNamespacesApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
566
+ end
567
+ return data, status_code, headers
568
+ end
301
569
  end
302
570
  end