pulpcore_client 3.19.1 → 3.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +93 -16
- data/docs/AccessPoliciesApi.md +2 -2
- data/docs/AccessPolicy.md +3 -1
- data/docs/AccessPolicyResponse.md +3 -1
- data/docs/AcsApi.md +417 -0
- data/docs/AlternateContentSource.md +23 -0
- data/docs/AlternateContentSourceResponse.md +27 -0
- data/docs/ArtifactsApi.md +2 -2
- data/docs/ContentApi.md +117 -3
- data/docs/ContentGuard.md +19 -0
- data/docs/ContentguardsApi.md +282 -3
- data/docs/ContentguardsContentRedirectApi.md +230 -2
- data/docs/ContentguardsRbacApi.md +2 -2
- data/docs/Distribution.md +25 -0
- data/docs/DistributionsApi.md +283 -3
- data/docs/Export.md +17 -0
- data/docs/ExportResponse.md +25 -0
- data/docs/Exporter.md +17 -0
- data/docs/ExporterResponse.md +21 -0
- data/docs/ExportersApi.md +362 -0
- data/docs/{GroupsModelPermissionsApi.md → ExportersExportsApi.md} +46 -48
- data/docs/ExportersFilesystemApi.md +2 -2
- data/docs/ExportersFilesystemExportsApi.md +0 -2
- data/docs/ExportersPulpApi.md +2 -2
- data/docs/ExportersPulpExportsApi.md +0 -2
- data/docs/GroupRole.md +1 -1
- data/docs/GroupRoleResponse.md +6 -2
- data/docs/GroupsApi.md +2 -2
- data/docs/GroupsRolesApi.md +2 -2
- data/docs/GroupsUsersApi.md +0 -2
- data/docs/Import.md +19 -0
- data/docs/Importer.md +17 -0
- data/docs/ImporterResponse.md +21 -0
- data/docs/ImportersApi.md +361 -0
- data/docs/{GroupsObjectPermissionsApi.md → ImportersImportsApi.md} +46 -48
- data/docs/ImportersPulpApi.md +2 -2
- data/docs/ImportersPulpImportsApi.md +0 -2
- data/docs/MultipleArtifactContent.md +17 -0
- data/docs/OrphansCleanup.md +1 -1
- data/docs/PaginatedAlternateContentSourceResponseList.md +23 -0
- data/docs/{PaginatedPermissionResponseList.md → PaginatedExportResponseList.md} +3 -3
- data/docs/PaginatedExporterResponseList.md +23 -0
- data/docs/PaginatedImporterResponseList.md +23 -0
- data/docs/PaginatedRemoteResponseList.md +23 -0
- data/docs/PatchedAccessPolicy.md +3 -1
- data/docs/PatchedAlternateContentSource.md +23 -0
- data/docs/PatchedContentGuard.md +19 -0
- data/docs/PatchedDistribution.md +25 -0
- data/docs/PatchedExporter.md +17 -0
- data/docs/PatchedImporter.md +17 -0
- data/docs/PatchedRemote.md +57 -0
- data/docs/PatchedRepository.md +25 -0
- data/docs/PolicyEnum.md +16 -0
- data/docs/PublicationsApi.md +117 -2
- data/docs/Remote.md +57 -0
- data/docs/RemoteResponse.md +53 -0
- data/docs/RemotesApi.md +376 -0
- data/docs/RepositoriesApi.md +283 -3
- data/docs/RepositoriesVersionsApi.md +271 -0
- data/docs/Repository.md +25 -0
- data/docs/RepositoryVersionsApi.md +2 -0
- data/docs/RolesApi.md +6 -2
- data/docs/SigningServicesApi.md +0 -2
- data/docs/TaskGroupsApi.md +2 -2
- data/docs/TaskSchedulesApi.md +2 -2
- data/docs/TasksApi.md +2 -2
- data/docs/UploadsApi.md +0 -2
- data/docs/UserRole.md +1 -1
- data/docs/UserRoleResponse.md +6 -2
- data/docs/UsersApi.md +2 -61
- data/docs/UsersRolesApi.md +2 -2
- data/docs/VersionResponse.md +3 -1
- data/docs/WorkersApi.md +2 -2
- data/lib/pulpcore_client/api/access_policies_api.rb +7 -3
- data/lib/pulpcore_client/api/acs_api.rb +514 -0
- data/lib/pulpcore_client/api/artifacts_api.rb +7 -3
- data/lib/pulpcore_client/api/content_api.rb +141 -5
- data/lib/pulpcore_client/api/contentguards_api.rb +341 -5
- data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +275 -3
- data/lib/pulpcore_client/api/contentguards_rbac_api.rb +7 -3
- data/lib/pulpcore_client/api/distributions_api.rb +343 -5
- data/lib/pulpcore_client/api/exporters_api.rb +446 -0
- data/lib/pulpcore_client/api/{groups_model_permissions_api.rb → exporters_exports_api.rb} +76 -79
- data/lib/pulpcore_client/api/exporters_filesystem_api.rb +7 -3
- data/lib/pulpcore_client/api/exporters_filesystem_exports_api.rb +0 -3
- data/lib/pulpcore_client/api/exporters_pulp_api.rb +7 -3
- data/lib/pulpcore_client/api/exporters_pulp_exports_api.rb +0 -3
- data/lib/pulpcore_client/api/groups_api.rb +7 -3
- data/lib/pulpcore_client/api/groups_roles_api.rb +7 -3
- data/lib/pulpcore_client/api/groups_users_api.rb +0 -3
- data/lib/pulpcore_client/api/importers_api.rb +444 -0
- data/lib/pulpcore_client/api/{groups_object_permissions_api.rb → importers_imports_api.rb} +76 -79
- data/lib/pulpcore_client/api/importers_pulp_api.rb +7 -3
- data/lib/pulpcore_client/api/importers_pulp_imports_api.rb +0 -3
- data/lib/pulpcore_client/api/publications_api.rb +138 -3
- data/lib/pulpcore_client/api/remotes_api.rb +467 -0
- data/lib/pulpcore_client/api/repositories_api.rb +343 -5
- data/lib/pulpcore_client/api/repositories_versions_api.rb +343 -0
- data/lib/pulpcore_client/api/repository_versions_api.rb +7 -0
- data/lib/pulpcore_client/api/roles_api.rb +13 -3
- data/lib/pulpcore_client/api/signing_services_api.rb +0 -3
- data/lib/pulpcore_client/api/task_groups_api.rb +7 -3
- data/lib/pulpcore_client/api/task_schedules_api.rb +7 -3
- data/lib/pulpcore_client/api/tasks_api.rb +7 -3
- data/lib/pulpcore_client/api/uploads_api.rb +0 -3
- data/lib/pulpcore_client/api/users_api.rb +7 -69
- data/lib/pulpcore_client/api/users_roles_api.rb +7 -3
- data/lib/pulpcore_client/api/workers_api.rb +7 -3
- data/lib/pulpcore_client/models/access_policy.rb +14 -4
- data/lib/pulpcore_client/models/access_policy_response.rb +14 -4
- data/lib/pulpcore_client/models/alternate_content_source.rb +270 -0
- data/lib/pulpcore_client/models/alternate_content_source_response.rb +270 -0
- data/lib/pulpcore_client/models/content_guard.rb +258 -0
- data/lib/pulpcore_client/models/distribution.rb +297 -0
- data/lib/pulpcore_client/models/export.rb +209 -0
- data/lib/pulpcore_client/models/export_response.rb +250 -0
- data/lib/pulpcore_client/models/exporter.rb +232 -0
- data/lib/pulpcore_client/models/{permission_response.rb → exporter_response.rb} +24 -27
- data/lib/pulpcore_client/models/group_role.rb +1 -1
- data/lib/pulpcore_client/models/group_role_response.rb +26 -6
- data/lib/pulpcore_client/models/import.rb +228 -0
- data/lib/pulpcore_client/models/importer.rb +232 -0
- data/lib/pulpcore_client/models/importer_response.rb +232 -0
- data/lib/pulpcore_client/models/multiple_artifact_content.rb +213 -0
- data/lib/pulpcore_client/models/orphans_cleanup.rb +0 -2
- data/lib/pulpcore_client/models/paginated_alternate_content_source_response_list.rb +237 -0
- data/lib/pulpcore_client/models/{paginated_permission_response_list.rb → paginated_export_response_list.rb} +4 -4
- data/lib/pulpcore_client/models/paginated_exporter_response_list.rb +237 -0
- data/lib/pulpcore_client/models/paginated_importer_response_list.rb +237 -0
- data/lib/pulpcore_client/models/paginated_remote_response_list.rb +237 -0
- data/lib/pulpcore_client/models/patched_access_policy.rb +14 -4
- data/lib/pulpcore_client/models/patched_alternate_content_source.rb +256 -0
- data/lib/pulpcore_client/models/patched_content_guard.rb +249 -0
- data/lib/pulpcore_client/models/patched_distribution.rb +279 -0
- data/lib/pulpcore_client/models/patched_exporter.rb +223 -0
- data/lib/pulpcore_client/models/patched_importer.rb +223 -0
- data/lib/pulpcore_client/models/patched_remote.rb +649 -0
- data/lib/pulpcore_client/models/patched_repository.rb +295 -0
- data/lib/pulpcore_client/models/policy_enum.rb +36 -0
- data/lib/pulpcore_client/models/remote.rb +667 -0
- data/lib/pulpcore_client/models/remote_response.rb +483 -0
- data/lib/pulpcore_client/models/repository.rb +304 -0
- data/lib/pulpcore_client/models/user_role.rb +1 -1
- data/lib/pulpcore_client/models/user_role_response.rb +26 -6
- data/lib/pulpcore_client/models/version_response.rb +19 -4
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +35 -4
- data/spec/api/access_policies_api_spec.rb +1 -1
- data/spec/api/acs_api_spec.rb +132 -0
- data/spec/api/artifacts_api_spec.rb +1 -1
- data/spec/api/content_api_spec.rb +28 -2
- data/spec/api/contentguards_api_spec.rb +66 -2
- data/spec/api/contentguards_content_redirect_api_spec.rb +51 -1
- data/spec/api/contentguards_rbac_api_spec.rb +1 -1
- data/spec/api/distributions_api_spec.rb +66 -2
- data/spec/api/exporters_api_spec.rb +120 -0
- data/spec/api/{groups_model_permissions_api_spec.rb → exporters_exports_api_spec.rb} +22 -23
- data/spec/api/exporters_filesystem_api_spec.rb +1 -1
- data/spec/api/exporters_filesystem_exports_api_spec.rb +0 -1
- data/spec/api/exporters_pulp_api_spec.rb +1 -1
- data/spec/api/exporters_pulp_exports_api_spec.rb +0 -1
- data/spec/api/groups_api_spec.rb +1 -1
- data/spec/api/groups_roles_api_spec.rb +1 -1
- data/spec/api/groups_users_api_spec.rb +0 -1
- data/spec/api/importers_api_spec.rb +120 -0
- data/spec/api/{groups_object_permissions_api_spec.rb → importers_imports_api_spec.rb} +22 -23
- data/spec/api/importers_pulp_api_spec.rb +1 -1
- data/spec/api/importers_pulp_imports_api_spec.rb +0 -1
- data/spec/api/publications_api_spec.rb +28 -1
- data/spec/api/remotes_api_spec.rb +127 -0
- data/spec/api/repositories_api_spec.rb +66 -2
- data/spec/api/repositories_versions_api_spec.rb +104 -0
- data/spec/api/repository_versions_api_spec.rb +1 -0
- data/spec/api/roles_api_spec.rb +3 -1
- data/spec/api/signing_services_api_spec.rb +0 -1
- data/spec/api/task_groups_api_spec.rb +1 -1
- data/spec/api/task_schedules_api_spec.rb +1 -1
- data/spec/api/tasks_api_spec.rb +1 -1
- data/spec/api/uploads_api_spec.rb +0 -1
- data/spec/api/users_api_spec.rb +1 -14
- data/spec/api/users_roles_api_spec.rb +1 -1
- data/spec/api/workers_api_spec.rb +1 -1
- data/spec/models/access_policy_response_spec.rb +6 -0
- data/spec/models/access_policy_spec.rb +6 -0
- data/spec/models/alternate_content_source_response_spec.rb +71 -0
- data/spec/models/{permission_response_spec.rb → alternate_content_source_spec.rb} +10 -10
- data/spec/models/content_guard_spec.rb +47 -0
- data/spec/models/distribution_spec.rb +65 -0
- data/spec/models/export_response_spec.rb +65 -0
- data/spec/models/export_spec.rb +41 -0
- data/spec/models/exporter_response_spec.rb +53 -0
- data/spec/models/exporter_spec.rb +41 -0
- data/spec/models/group_role_response_spec.rb +12 -0
- data/spec/models/import_spec.rb +47 -0
- data/spec/models/importer_response_spec.rb +53 -0
- data/spec/models/importer_spec.rb +41 -0
- data/spec/models/multiple_artifact_content_spec.rb +41 -0
- data/spec/models/paginated_alternate_content_source_response_list_spec.rb +59 -0
- data/spec/models/{paginated_permission_response_list_spec.rb → paginated_export_response_list_spec.rb} +6 -6
- data/spec/models/paginated_exporter_response_list_spec.rb +59 -0
- data/spec/models/paginated_importer_response_list_spec.rb +59 -0
- data/spec/models/paginated_remote_response_list_spec.rb +59 -0
- data/spec/models/patched_access_policy_spec.rb +6 -0
- data/spec/models/patched_alternate_content_source_spec.rb +59 -0
- data/spec/models/patched_content_guard_spec.rb +47 -0
- data/spec/models/patched_distribution_spec.rb +65 -0
- data/spec/models/patched_exporter_spec.rb +41 -0
- data/spec/models/patched_importer_spec.rb +41 -0
- data/spec/models/patched_remote_spec.rb +161 -0
- data/spec/models/patched_repository_spec.rb +65 -0
- data/spec/models/policy_enum_spec.rb +35 -0
- data/spec/models/remote_response_spec.rb +149 -0
- data/spec/models/remote_spec.rb +161 -0
- data/spec/models/repository_spec.rb +65 -0
- data/spec/models/user_role_response_spec.rb +12 -0
- data/spec/models/version_response_spec.rb +6 -0
- metadata +263 -139
- data/docs/PermissionResponse.md +0 -23
@@ -0,0 +1,104 @@
|
|
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::RepositoriesVersionsApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'RepositoriesVersionsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpcoreClient::RepositoriesVersionsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of RepositoriesVersionsApi' do
|
30
|
+
it 'should create an instance of RepositoriesVersionsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpcoreClient::RepositoriesVersionsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for delete
|
36
|
+
# Delete a repository version
|
37
|
+
# Trigger an asynchronous task to delete a repository version.
|
38
|
+
# @param repositories_repository_version_href
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [AsyncOperationResponse]
|
41
|
+
describe 'delete test' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# unit tests for list
|
48
|
+
# List repository versions
|
49
|
+
# A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
50
|
+
# @param repository_href
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @option opts [String] :content Content Unit referenced by HREF
|
53
|
+
# @option opts [String] :content__in Content Unit referenced by HREF
|
54
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
55
|
+
# @option opts [Integer] :number
|
56
|
+
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
57
|
+
# @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
|
58
|
+
# @option opts [Integer] :number__lt Filter results where number is less than value
|
59
|
+
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
60
|
+
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
61
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
62
|
+
# @option opts [Array<String>] :ordering Ordering
|
63
|
+
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
64
|
+
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
65
|
+
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
66
|
+
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
67
|
+
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
68
|
+
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
69
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
70
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
71
|
+
# @return [PaginatedRepositoryVersionResponseList]
|
72
|
+
describe 'list test' do
|
73
|
+
it 'should work' do
|
74
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
# unit tests for read
|
79
|
+
# Inspect a repository version
|
80
|
+
# A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
81
|
+
# @param repositories_repository_version_href
|
82
|
+
# @param [Hash] opts the optional parameters
|
83
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
84
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
85
|
+
# @return [RepositoryVersionResponse]
|
86
|
+
describe 'read test' do
|
87
|
+
it 'should work' do
|
88
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
# unit tests for repair
|
93
|
+
# Trigger an asynchronous task to repair a repository version.
|
94
|
+
# @param repositories_repository_version_href
|
95
|
+
# @param repair
|
96
|
+
# @param [Hash] opts the optional parameters
|
97
|
+
# @return [AsyncOperationResponse]
|
98
|
+
describe 'repair test' do
|
99
|
+
it 'should work' do
|
100
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
end
|
@@ -45,6 +45,7 @@ describe 'RepositoryVersionsApi' do
|
|
45
45
|
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
46
46
|
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
47
47
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
48
|
+
# @option opts [Array<String>] :ordering Ordering
|
48
49
|
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
49
50
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
50
51
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
data/spec/api/roles_api_spec.rb
CHANGED
@@ -60,10 +60,12 @@ describe 'RolesApi' do
|
|
60
60
|
# List roles
|
61
61
|
# ViewSet for Role. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
62
62
|
# @param [Hash] opts the optional parameters
|
63
|
+
# @option opts [Array<String>] :contains_permission Filter roles that have any of the permissions in the list.
|
63
64
|
# @option opts [String] :description Filter results where description matches value
|
64
65
|
# @option opts [String] :description__contains Filter results where description contains value
|
65
66
|
# @option opts [String] :description__icontains Filter results where description contains value
|
66
67
|
# @option opts [String] :description__iexact Filter results where description matches value
|
68
|
+
# @option opts [String] :for_object_type Filter roles that only have permissions for the specified object HREF.
|
67
69
|
# @option opts [Integer] :limit Number of results to return per page.
|
68
70
|
# @option opts [Boolean] :locked Filter results where locked matches value
|
69
71
|
# @option opts [String] :name Filter results where name matches value
|
@@ -72,7 +74,7 @@ describe 'RolesApi' do
|
|
72
74
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
73
75
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
74
76
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
75
|
-
# @option opts [String] :ordering
|
77
|
+
# @option opts [Array<String>] :ordering Ordering
|
76
78
|
# @option opts [String] :fields A list of fields to include in the response.
|
77
79
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
78
80
|
# @return [PaginatedRoleResponseList]
|
@@ -39,7 +39,6 @@ describe 'SigningServicesApi' do
|
|
39
39
|
# @option opts [Integer] :limit Number of results to return per page.
|
40
40
|
# @option opts [String] :name
|
41
41
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
42
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
43
42
|
# @option opts [String] :fields A list of fields to include in the response.
|
44
43
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
45
44
|
# @return [PaginatedSigningServiceResponseList]
|
@@ -38,7 +38,7 @@ describe 'TaskGroupsApi' do
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @option opts [Integer] :limit Number of results to return per page.
|
40
40
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
41
|
-
# @option opts [String] :ordering
|
41
|
+
# @option opts [Array<String>] :ordering Ordering
|
42
42
|
# @option opts [String] :fields A list of fields to include in the response.
|
43
43
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
44
44
|
# @return [PaginatedTaskGroupResponseList]
|
@@ -52,7 +52,7 @@ describe 'TaskSchedulesApi' do
|
|
52
52
|
# @option opts [String] :name
|
53
53
|
# @option opts [String] :name__contains Filter results where name contains value
|
54
54
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
55
|
-
# @option opts [String] :ordering
|
55
|
+
# @option opts [Array<String>] :ordering Ordering
|
56
56
|
# @option opts [String] :task_name
|
57
57
|
# @option opts [String] :task_name__contains Filter results where task_name contains value
|
58
58
|
# @option opts [String] :fields A list of fields to include in the response.
|
data/spec/api/tasks_api_spec.rb
CHANGED
@@ -74,7 +74,7 @@ describe 'TasksApi' do
|
|
74
74
|
# @option opts [String] :name
|
75
75
|
# @option opts [String] :name__contains Filter results where name contains value
|
76
76
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
77
|
-
# @option opts [String] :ordering
|
77
|
+
# @option opts [Array<String>] :ordering Ordering
|
78
78
|
# @option opts [String] :parent_task Foreign Key referenced by HREF
|
79
79
|
# @option opts [Array<String>] :reserved_resources_record
|
80
80
|
# @option opts [DateTime] :started_at ISO 8601 formatted dates are supported
|
@@ -75,7 +75,6 @@ describe 'UploadsApi' do
|
|
75
75
|
# @param [Hash] opts the optional parameters
|
76
76
|
# @option opts [Integer] :limit Number of results to return per page.
|
77
77
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
78
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
79
78
|
# @option opts [String] :fields A list of fields to include in the response.
|
80
79
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
81
80
|
# @return [PaginatedUploadResponseList]
|
data/spec/api/users_api_spec.rb
CHANGED
@@ -79,7 +79,7 @@ describe 'UsersApi' do
|
|
79
79
|
# @option opts [Array<String>] :last_name__in Filter results where last_name is in a comma-separated list of values
|
80
80
|
# @option opts [Integer] :limit Number of results to return per page.
|
81
81
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
82
|
-
# @option opts [String] :ordering
|
82
|
+
# @option opts [Array<String>] :ordering Ordering
|
83
83
|
# @option opts [String] :username Filter results where username matches value
|
84
84
|
# @option opts [String] :username__contains Filter results where username contains value
|
85
85
|
# @option opts [String] :username__icontains Filter results where username contains value
|
@@ -107,19 +107,6 @@ describe 'UsersApi' do
|
|
107
107
|
end
|
108
108
|
end
|
109
109
|
|
110
|
-
# unit tests for permissions
|
111
|
-
# List user permissions.
|
112
|
-
# @param auth_user_href
|
113
|
-
# @param [Hash] opts the optional parameters
|
114
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
115
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
116
|
-
# @return [PermissionResponse]
|
117
|
-
describe 'permissions test' do
|
118
|
-
it 'should work' do
|
119
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
120
|
-
end
|
121
|
-
end
|
122
|
-
|
123
110
|
# unit tests for read
|
124
111
|
# Inspect an user
|
125
112
|
# ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
@@ -65,7 +65,7 @@ describe 'UsersRolesApi' do
|
|
65
65
|
# @option opts [String] :content_object content_object
|
66
66
|
# @option opts [Integer] :limit Number of results to return per page.
|
67
67
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
68
|
-
# @option opts [String] :ordering
|
68
|
+
# @option opts [Array<String>] :ordering Ordering
|
69
69
|
# @option opts [String] :role
|
70
70
|
# @option opts [String] :role__contains
|
71
71
|
# @option opts [String] :role__icontains
|
@@ -51,7 +51,7 @@ describe 'WorkersApi' do
|
|
51
51
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
52
52
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
53
53
|
# @option opts [Boolean] :online
|
54
|
-
# @option opts [String] :ordering
|
54
|
+
# @option opts [Array<String>] :ordering Ordering
|
55
55
|
# @option opts [String] :fields A list of fields to include in the response.
|
56
56
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
57
57
|
# @return [PaginatedWorkerResponseList]
|
@@ -0,0 +1,71 @@
|
|
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
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for PulpcoreClient::AlternateContentSourceResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'AlternateContentSourceResponse' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = PulpcoreClient::AlternateContentSourceResponse.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of AlternateContentSourceResponse' do
|
31
|
+
it 'should create an instance of AlternateContentSourceResponse' do
|
32
|
+
expect(@instance).to be_instance_of(PulpcoreClient::AlternateContentSourceResponse)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "pulp_href"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "pulp_created"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "name"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "last_refreshed"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
describe 'test attribute "paths"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test attribute "remote"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
end
|
@@ -14,43 +14,43 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for PulpcoreClient::
|
17
|
+
# Unit tests for PulpcoreClient::AlternateContentSource
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe '
|
20
|
+
describe 'AlternateContentSource' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance = PulpcoreClient::
|
23
|
+
@instance = PulpcoreClient::AlternateContentSource.new
|
24
24
|
end
|
25
25
|
|
26
26
|
after do
|
27
27
|
# run after each test
|
28
28
|
end
|
29
29
|
|
30
|
-
describe 'test an instance of
|
31
|
-
it 'should create an instance of
|
32
|
-
expect(@instance).to be_instance_of(PulpcoreClient::
|
30
|
+
describe 'test an instance of AlternateContentSource' do
|
31
|
+
it 'should create an instance of AlternateContentSource' do
|
32
|
+
expect(@instance).to be_instance_of(PulpcoreClient::AlternateContentSource)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "name"' do
|
36
36
|
it 'should work' do
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "last_refreshed"' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "paths"' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "remote"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
@@ -0,0 +1,47 @@
|
|
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
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for PulpcoreClient::ContentGuard
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'ContentGuard' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = PulpcoreClient::ContentGuard.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of ContentGuard' do
|
31
|
+
it 'should create an instance of ContentGuard' do
|
32
|
+
expect(@instance).to be_instance_of(PulpcoreClient::ContentGuard)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "name"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "description"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
@@ -0,0 +1,65 @@
|
|
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
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for PulpcoreClient::Distribution
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'Distribution' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = PulpcoreClient::Distribution.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of Distribution' do
|
31
|
+
it 'should create an instance of Distribution' do
|
32
|
+
expect(@instance).to be_instance_of(PulpcoreClient::Distribution)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "base_path"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "content_guard"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "pulp_labels"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "name"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
describe 'test attribute "repository"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
end
|
@@ -0,0 +1,65 @@
|
|
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
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for PulpcoreClient::ExportResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'ExportResponse' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = PulpcoreClient::ExportResponse.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of ExportResponse' do
|
31
|
+
it 'should create an instance of ExportResponse' do
|
32
|
+
expect(@instance).to be_instance_of(PulpcoreClient::ExportResponse)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "pulp_href"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "pulp_created"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "task"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "exported_resources"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
describe 'test attribute "params"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
end
|
@@ -0,0 +1,41 @@
|
|
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
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for PulpcoreClient::Export
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'Export' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = PulpcoreClient::Export.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of Export' do
|
31
|
+
it 'should create an instance of Export' do
|
32
|
+
expect(@instance).to be_instance_of(PulpcoreClient::Export)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "task"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
@@ -0,0 +1,53 @@
|
|
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
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for PulpcoreClient::ExporterResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'ExporterResponse' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = PulpcoreClient::ExporterResponse.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of ExporterResponse' do
|
31
|
+
it 'should create an instance of ExporterResponse' do
|
32
|
+
expect(@instance).to be_instance_of(PulpcoreClient::ExporterResponse)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "pulp_href"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "pulp_created"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "name"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|