pulpcore_client 3.21.32 → 3.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +147 -143
  3. data/docs/AccessPoliciesApi.md +28 -28
  4. data/docs/ArtifactDistributionResponse.md +29 -0
  5. data/docs/ArtifactsApi.md +21 -21
  6. data/docs/ContentApi.md +6 -6
  7. data/docs/ContentSettingsResponse.md +19 -0
  8. data/docs/ContentguardsApi.md +8 -8
  9. data/docs/ContentguardsContentRedirectApi.md +53 -53
  10. data/docs/ContentguardsRbacApi.md +53 -53
  11. data/docs/DistributionResponse.md +1 -1
  12. data/docs/DistributionsApi.md +11 -11
  13. data/docs/DistributionsArtifactsApi.md +154 -0
  14. data/docs/ExportersFilesystemApi.md +33 -33
  15. data/docs/ExportersFilesystemExportsApi.md +21 -21
  16. data/docs/ExportersPulpApi.md +33 -33
  17. data/docs/ExportersPulpExportsApi.md +21 -21
  18. data/docs/FilesystemExport.md +1 -3
  19. data/docs/GroupsApi.md +51 -51
  20. data/docs/GroupsRolesApi.md +21 -21
  21. data/docs/GroupsUsersApi.md +16 -16
  22. data/docs/ImportersPulpApi.md +33 -33
  23. data/docs/ImportersPulpImportCheckApi.md +1 -1
  24. data/docs/ImportersPulpImportsApi.md +21 -21
  25. data/docs/OrphansApi.md +6 -6
  26. data/docs/OrphansCleanupApi.md +6 -6
  27. data/docs/PaginatedArtifactDistributionResponseList.md +23 -0
  28. data/docs/PublicationsApi.md +8 -8
  29. data/docs/RemoteResponse.md +4 -2
  30. data/docs/RemoteResponseHiddenFields.md +19 -0
  31. data/docs/RemotesApi.md +10 -10
  32. data/docs/RepairApi.md +6 -6
  33. data/docs/RepositoriesApi.md +9 -9
  34. data/docs/RepositoriesReclaimSpaceApi.md +6 -6
  35. data/docs/RepositoryResponse.md +1 -1
  36. data/docs/RepositoryVersionsApi.md +10 -10
  37. data/docs/RolesApi.md +31 -31
  38. data/docs/SigningServicesApi.md +15 -13
  39. data/docs/StatusApi.md +1 -1
  40. data/docs/StatusResponse.md +3 -1
  41. data/docs/TaskGroupsApi.md +11 -13
  42. data/docs/TaskSchedulesApi.md +35 -35
  43. data/docs/TasksApi.md +128 -114
  44. data/docs/UploadsApi.md +61 -51
  45. data/docs/UserResponse.md +3 -1
  46. data/docs/UsersApi.md +31 -31
  47. data/docs/UsersRolesApi.md +21 -21
  48. data/docs/WorkersApi.md +15 -15
  49. data/lib/pulpcore_client/api/access_policies_api.rb +34 -34
  50. data/lib/pulpcore_client/api/artifacts_api.rb +30 -30
  51. data/lib/pulpcore_client/api/content_api.rb +5 -5
  52. data/lib/pulpcore_client/api/contentguards_api.rb +8 -8
  53. data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +66 -66
  54. data/lib/pulpcore_client/api/contentguards_rbac_api.rb +66 -66
  55. data/lib/pulpcore_client/api/distributions_api.rb +12 -12
  56. data/lib/pulpcore_client/api/distributions_artifacts_api.rb +198 -0
  57. data/lib/pulpcore_client/api/exporters_filesystem_api.rb +40 -40
  58. data/lib/pulpcore_client/api/exporters_filesystem_exports_api.rb +25 -25
  59. data/lib/pulpcore_client/api/exporters_pulp_api.rb +40 -40
  60. data/lib/pulpcore_client/api/exporters_pulp_exports_api.rb +25 -25
  61. data/lib/pulpcore_client/api/groups_api.rb +64 -64
  62. data/lib/pulpcore_client/api/groups_roles_api.rb +25 -25
  63. data/lib/pulpcore_client/api/groups_users_api.rb +19 -19
  64. data/lib/pulpcore_client/api/importers_pulp_api.rb +40 -40
  65. data/lib/pulpcore_client/api/importers_pulp_imports_api.rb +25 -25
  66. data/lib/pulpcore_client/api/orphans_api.rb +5 -5
  67. data/lib/pulpcore_client/api/orphans_cleanup_api.rb +6 -6
  68. data/lib/pulpcore_client/api/publications_api.rb +8 -8
  69. data/lib/pulpcore_client/api/remotes_api.rb +10 -10
  70. data/lib/pulpcore_client/api/repair_api.rb +6 -6
  71. data/lib/pulpcore_client/api/repositories_api.rb +8 -8
  72. data/lib/pulpcore_client/api/repositories_reclaim_space_api.rb +6 -6
  73. data/lib/pulpcore_client/api/repository_versions_api.rb +10 -10
  74. data/lib/pulpcore_client/api/roles_api.rb +38 -38
  75. data/lib/pulpcore_client/api/signing_services_api.rb +20 -13
  76. data/lib/pulpcore_client/api/task_groups_api.rb +11 -18
  77. data/lib/pulpcore_client/api/task_schedules_api.rb +42 -42
  78. data/lib/pulpcore_client/api/tasks_api.rb +159 -138
  79. data/lib/pulpcore_client/api/uploads_api.rb +84 -65
  80. data/lib/pulpcore_client/api/users_api.rb +38 -38
  81. data/lib/pulpcore_client/api/users_roles_api.rb +25 -25
  82. data/lib/pulpcore_client/api/workers_api.rb +16 -16
  83. data/lib/pulpcore_client/configuration.rb +3 -3
  84. data/lib/pulpcore_client/models/artifact_distribution_response.rb +279 -0
  85. data/lib/pulpcore_client/models/content_settings_response.rb +228 -0
  86. data/lib/pulpcore_client/models/distribution_response.rb +4 -2
  87. data/lib/pulpcore_client/models/filesystem_export.rb +4 -14
  88. data/lib/pulpcore_client/models/group_role.rb +19 -0
  89. data/lib/pulpcore_client/models/paginated_artifact_distribution_response_list.rb +237 -0
  90. data/lib/pulpcore_client/models/remote_response.rb +41 -27
  91. data/lib/pulpcore_client/models/remote_response_hidden_fields.rb +215 -0
  92. data/lib/pulpcore_client/models/repository_response.rb +4 -2
  93. data/lib/pulpcore_client/models/status_response.rb +19 -4
  94. data/lib/pulpcore_client/models/user_response.rb +16 -4
  95. data/lib/pulpcore_client/models/user_role.rb +19 -0
  96. data/lib/pulpcore_client/version.rb +1 -1
  97. data/lib/pulpcore_client.rb +5 -2
  98. data/spec/api/access_policies_api_spec.rb +11 -11
  99. data/spec/api/artifacts_api_spec.rb +8 -8
  100. data/spec/api/content_api_spec.rb +2 -2
  101. data/spec/api/contentguards_api_spec.rb +3 -3
  102. data/spec/api/contentguards_content_redirect_api_spec.rb +21 -21
  103. data/spec/api/contentguards_rbac_api_spec.rb +21 -21
  104. data/spec/api/distributions_api_spec.rb +5 -5
  105. data/spec/api/distributions_artifacts_api_spec.rb +76 -0
  106. data/spec/api/exporters_filesystem_api_spec.rb +13 -13
  107. data/spec/api/exporters_filesystem_exports_api_spec.rb +8 -8
  108. data/spec/api/exporters_pulp_api_spec.rb +13 -13
  109. data/spec/api/exporters_pulp_exports_api_spec.rb +8 -8
  110. data/spec/api/groups_api_spec.rb +20 -20
  111. data/spec/api/groups_roles_api_spec.rb +8 -8
  112. data/spec/api/groups_users_api_spec.rb +6 -6
  113. data/spec/api/importers_pulp_api_spec.rb +13 -13
  114. data/spec/api/importers_pulp_imports_api_spec.rb +8 -8
  115. data/spec/api/orphans_api_spec.rb +2 -2
  116. data/spec/api/orphans_cleanup_api_spec.rb +2 -2
  117. data/spec/api/publications_api_spec.rb +3 -3
  118. data/spec/api/remotes_api_spec.rb +4 -4
  119. data/spec/api/repair_api_spec.rb +2 -2
  120. data/spec/api/repositories_api_spec.rb +3 -3
  121. data/spec/api/repositories_reclaim_space_api_spec.rb +2 -2
  122. data/spec/api/repository_versions_api_spec.rb +4 -4
  123. data/spec/api/roles_api_spec.rb +12 -12
  124. data/spec/api/signing_services_api_spec.rb +6 -5
  125. data/spec/api/task_groups_api_spec.rb +4 -5
  126. data/spec/api/task_schedules_api_spec.rb +14 -14
  127. data/spec/api/tasks_api_spec.rb +45 -38
  128. data/spec/api/uploads_api_spec.rb +25 -20
  129. data/spec/api/users_api_spec.rb +12 -12
  130. data/spec/api/users_roles_api_spec.rb +8 -8
  131. data/spec/api/workers_api_spec.rb +6 -6
  132. data/spec/configuration_spec.rb +3 -3
  133. data/spec/models/artifact_distribution_response_spec.rb +77 -0
  134. data/spec/models/content_settings_response_spec.rb +47 -0
  135. data/spec/models/filesystem_export_spec.rb +0 -6
  136. data/spec/models/paginated_artifact_distribution_response_list_spec.rb +59 -0
  137. data/spec/models/remote_response_hidden_fields_spec.rb +47 -0
  138. data/spec/models/remote_response_spec.rb +6 -0
  139. data/spec/models/status_response_spec.rb +6 -0
  140. data/spec/models/user_response_spec.rb +6 -0
  141. metadata +162 -150
  142. data/docs/DocsApiJsonApi.md +0 -61
  143. data/docs/DocsApiYamlApi.md +0 -61
  144. data/lib/pulpcore_client/api/docs_api_json_api.rb +0 -89
  145. data/lib/pulpcore_client/api/docs_api_yaml_api.rb +0 -89
  146. data/spec/api/docs_api_json_api_spec.rb +0 -48
  147. data/spec/api/docs_api_yaml_api_spec.rb +0 -48
@@ -1,89 +0,0 @@
1
- =begin
2
- #Pulp 3 API
3
-
4
- #Fetch, Upload, Organize, and Distribute Software Packages
5
-
6
- The version of the OpenAPI document: v3
7
- Contact: pulp-list@redhat.com
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
10
-
11
- =end
12
-
13
- require 'cgi'
14
-
15
- module PulpcoreClient
16
- class DocsApiJsonApi
17
- attr_accessor :api_client
18
-
19
- def initialize(api_client = ApiClient.default)
20
- @api_client = api_client
21
- end
22
- # OpenApi3 schema for this API. Format can be selected via content negotiation. - YAML: application/vnd.oai.openapi - JSON: application/vnd.oai.openapi+json
23
- # @param [Hash] opts the optional parameters
24
- # @option opts [String] :lang
25
- # @option opts [Array<String>] :fields A list of fields to include in the response.
26
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
27
- # @return [Object]
28
- def docs_api_json_get(opts = {})
29
- data, _status_code, _headers = docs_api_json_get_with_http_info(opts)
30
- data
31
- end
32
-
33
- # OpenApi3 schema for this API. Format can be selected via content negotiation. - YAML: application/vnd.oai.openapi - JSON: application/vnd.oai.openapi+json
34
- # @param [Hash] opts the optional parameters
35
- # @option opts [String] :lang
36
- # @option opts [Array<String>] :fields A list of fields to include in the response.
37
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
38
- # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
39
- def docs_api_json_get_with_http_info(opts = {})
40
- if @api_client.config.debugging
41
- @api_client.config.logger.debug 'Calling API: DocsApiJsonApi.docs_api_json_get ...'
42
- end
43
- allowable_values = ["af", "ar", "ar-dz", "ast", "az", "be", "bg", "bn", "br", "bs", "ca", "cs", "cy", "da", "de", "dsb", "el", "en", "en-au", "en-gb", "eo", "es", "es-ar", "es-co", "es-mx", "es-ni", "es-ve", "et", "eu", "fa", "fi", "fr", "fy", "ga", "gd", "gl", "he", "hi", "hr", "hsb", "hu", "hy", "ia", "id", "ig", "io", "is", "it", "ja", "ka", "kab", "kk", "km", "kn", "ko", "ky", "lb", "lt", "lv", "mk", "ml", "mn", "mr", "my", "nb", "ne", "nl", "nn", "os", "pa", "pl", "pt", "pt-br", "ro", "ru", "sk", "sl", "sq", "sr", "sr-latn", "sv", "sw", "ta", "te", "tg", "th", "tk", "tr", "tt", "udm", "uk", "ur", "uz", "vi", "zh-hans", "zh-hant"]
44
- if @api_client.config.client_side_validation && opts[:'lang'] && !allowable_values.include?(opts[:'lang'])
45
- fail ArgumentError, "invalid value for \"lang\", must be one of #{allowable_values}"
46
- end
47
- # resource path
48
- local_var_path = '/pulp/api/v3/docs/api.json'
49
-
50
- # query parameters
51
- query_params = opts[:query_params] || {}
52
- query_params[:'lang'] = opts[:'lang'] if !opts[:'lang'].nil?
53
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
54
- query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
55
-
56
- # header parameters
57
- header_params = opts[:header_params] || {}
58
- # HTTP header 'Accept' (if needed)
59
- header_params['Accept'] = @api_client.select_header_accept(['application/vnd.oai.openapi+json', 'application/json'])
60
-
61
- # form parameters
62
- form_params = opts[:form_params] || {}
63
-
64
- # http body (model)
65
- post_body = opts[:body]
66
-
67
- # return_type
68
- return_type = opts[:return_type] || 'Object'
69
-
70
- # auth_names
71
- auth_names = opts[:auth_names] || []
72
-
73
- new_options = opts.merge(
74
- :header_params => header_params,
75
- :query_params => query_params,
76
- :form_params => form_params,
77
- :body => post_body,
78
- :auth_names => auth_names,
79
- :return_type => return_type
80
- )
81
-
82
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
83
- if @api_client.config.debugging
84
- @api_client.config.logger.debug "API called: DocsApiJsonApi#docs_api_json_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
85
- end
86
- return data, status_code, headers
87
- end
88
- end
89
- end
@@ -1,89 +0,0 @@
1
- =begin
2
- #Pulp 3 API
3
-
4
- #Fetch, Upload, Organize, and Distribute Software Packages
5
-
6
- The version of the OpenAPI document: v3
7
- Contact: pulp-list@redhat.com
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
10
-
11
- =end
12
-
13
- require 'cgi'
14
-
15
- module PulpcoreClient
16
- class DocsApiYamlApi
17
- attr_accessor :api_client
18
-
19
- def initialize(api_client = ApiClient.default)
20
- @api_client = api_client
21
- end
22
- # OpenApi3 schema for this API. Format can be selected via content negotiation. - YAML: application/vnd.oai.openapi - JSON: application/vnd.oai.openapi+json
23
- # @param [Hash] opts the optional parameters
24
- # @option opts [String] :lang
25
- # @option opts [Array<String>] :fields A list of fields to include in the response.
26
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
27
- # @return [Object]
28
- def docs_api_yaml_get(opts = {})
29
- data, _status_code, _headers = docs_api_yaml_get_with_http_info(opts)
30
- data
31
- end
32
-
33
- # OpenApi3 schema for this API. Format can be selected via content negotiation. - YAML: application/vnd.oai.openapi - JSON: application/vnd.oai.openapi+json
34
- # @param [Hash] opts the optional parameters
35
- # @option opts [String] :lang
36
- # @option opts [Array<String>] :fields A list of fields to include in the response.
37
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
38
- # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
39
- def docs_api_yaml_get_with_http_info(opts = {})
40
- if @api_client.config.debugging
41
- @api_client.config.logger.debug 'Calling API: DocsApiYamlApi.docs_api_yaml_get ...'
42
- end
43
- allowable_values = ["af", "ar", "ar-dz", "ast", "az", "be", "bg", "bn", "br", "bs", "ca", "cs", "cy", "da", "de", "dsb", "el", "en", "en-au", "en-gb", "eo", "es", "es-ar", "es-co", "es-mx", "es-ni", "es-ve", "et", "eu", "fa", "fi", "fr", "fy", "ga", "gd", "gl", "he", "hi", "hr", "hsb", "hu", "hy", "ia", "id", "ig", "io", "is", "it", "ja", "ka", "kab", "kk", "km", "kn", "ko", "ky", "lb", "lt", "lv", "mk", "ml", "mn", "mr", "my", "nb", "ne", "nl", "nn", "os", "pa", "pl", "pt", "pt-br", "ro", "ru", "sk", "sl", "sq", "sr", "sr-latn", "sv", "sw", "ta", "te", "tg", "th", "tk", "tr", "tt", "udm", "uk", "ur", "uz", "vi", "zh-hans", "zh-hant"]
44
- if @api_client.config.client_side_validation && opts[:'lang'] && !allowable_values.include?(opts[:'lang'])
45
- fail ArgumentError, "invalid value for \"lang\", must be one of #{allowable_values}"
46
- end
47
- # resource path
48
- local_var_path = '/pulp/api/v3/docs/api.yaml'
49
-
50
- # query parameters
51
- query_params = opts[:query_params] || {}
52
- query_params[:'lang'] = opts[:'lang'] if !opts[:'lang'].nil?
53
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
54
- query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
55
-
56
- # header parameters
57
- header_params = opts[:header_params] || {}
58
- # HTTP header 'Accept' (if needed)
59
- header_params['Accept'] = @api_client.select_header_accept(['application/vnd.oai.openapi', 'application/yaml'])
60
-
61
- # form parameters
62
- form_params = opts[:form_params] || {}
63
-
64
- # http body (model)
65
- post_body = opts[:body]
66
-
67
- # return_type
68
- return_type = opts[:return_type] || 'Object'
69
-
70
- # auth_names
71
- auth_names = opts[:auth_names] || []
72
-
73
- new_options = opts.merge(
74
- :header_params => header_params,
75
- :query_params => query_params,
76
- :form_params => form_params,
77
- :body => post_body,
78
- :auth_names => auth_names,
79
- :return_type => return_type
80
- )
81
-
82
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
83
- if @api_client.config.debugging
84
- @api_client.config.logger.debug "API called: DocsApiYamlApi#docs_api_yaml_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
85
- end
86
- return data, status_code, headers
87
- end
88
- end
89
- end
@@ -1,48 +0,0 @@
1
- =begin
2
- #Pulp 3 API
3
-
4
- #Fetch, Upload, Organize, and Distribute Software Packages
5
-
6
- The version of the OpenAPI document: v3
7
- Contact: pulp-list@redhat.com
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
- require 'json'
15
-
16
- # Unit tests for PulpcoreClient::DocsApiJsonApi
17
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
- # Please update as you see appropriate
19
- describe 'DocsApiJsonApi' do
20
- before do
21
- # run before each test
22
- @api_instance = PulpcoreClient::DocsApiJsonApi.new
23
- end
24
-
25
- after do
26
- # run after each test
27
- end
28
-
29
- describe 'test an instance of DocsApiJsonApi' do
30
- it 'should create an instance of DocsApiJsonApi' do
31
- expect(@api_instance).to be_instance_of(PulpcoreClient::DocsApiJsonApi)
32
- end
33
- end
34
-
35
- # unit tests for docs_api_json_get
36
- # OpenApi3 schema for this API. Format can be selected via content negotiation. - YAML: application/vnd.oai.openapi - JSON: application/vnd.oai.openapi+json
37
- # @param [Hash] opts the optional parameters
38
- # @option opts [String] :lang
39
- # @option opts [Array<String>] :fields A list of fields to include in the response.
40
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
41
- # @return [Object]
42
- describe 'docs_api_json_get test' do
43
- it 'should work' do
44
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
- end
46
- end
47
-
48
- end
@@ -1,48 +0,0 @@
1
- =begin
2
- #Pulp 3 API
3
-
4
- #Fetch, Upload, Organize, and Distribute Software Packages
5
-
6
- The version of the OpenAPI document: v3
7
- Contact: pulp-list@redhat.com
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
- require 'json'
15
-
16
- # Unit tests for PulpcoreClient::DocsApiYamlApi
17
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
- # Please update as you see appropriate
19
- describe 'DocsApiYamlApi' do
20
- before do
21
- # run before each test
22
- @api_instance = PulpcoreClient::DocsApiYamlApi.new
23
- end
24
-
25
- after do
26
- # run after each test
27
- end
28
-
29
- describe 'test an instance of DocsApiYamlApi' do
30
- it 'should create an instance of DocsApiYamlApi' do
31
- expect(@api_instance).to be_instance_of(PulpcoreClient::DocsApiYamlApi)
32
- end
33
- end
34
-
35
- # unit tests for docs_api_yaml_get
36
- # OpenApi3 schema for this API. Format can be selected via content negotiation. - YAML: application/vnd.oai.openapi - JSON: application/vnd.oai.openapi+json
37
- # @param [Hash] opts the optional parameters
38
- # @option opts [String] :lang
39
- # @option opts [Array<String>] :fields A list of fields to include in the response.
40
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
41
- # @return [Object]
42
- describe 'docs_api_yaml_get test' do
43
- it 'should work' do
44
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
- end
46
- end
47
-
48
- end