pulpcore_client 3.20.0 → 3.21.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.
- checksums.yaml +4 -4
- data/README.md +8 -84
- data/docs/ContentApi.md +1 -115
- data/docs/ContentguardsApi.md +1 -280
- data/docs/DistributionsApi.md +3 -281
- data/docs/PublicationsApi.md +0 -113
- data/docs/PulpImport.md +3 -1
- data/docs/RemotesApi.md +0 -280
- data/docs/RepositoriesApi.md +3 -281
- data/docs/UploadsApi.md +228 -0
- data/lib/pulpcore_client/api/content_api.rb +2 -134
- data/lib/pulpcore_client/api/contentguards_api.rb +2 -334
- data/lib/pulpcore_client/api/distributions_api.rb +5 -336
- data/lib/pulpcore_client/api/publications_api.rb +0 -128
- data/lib/pulpcore_client/api/remotes_api.rb +0 -334
- data/lib/pulpcore_client/api/repositories_api.rb +5 -336
- data/lib/pulpcore_client/api/repository_versions_api.rb +1 -1
- data/lib/pulpcore_client/api/uploads_api.rb +268 -0
- data/lib/pulpcore_client/api_client.rb +1 -1
- data/lib/pulpcore_client/models/pulp_import.rb +16 -4
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +0 -31
- data/pulpcore_client.gemspec +3 -3
- data/spec/api/content_api_spec.rb +1 -27
- data/spec/api/contentguards_api_spec.rb +1 -65
- data/spec/api/distributions_api_spec.rb +2 -65
- data/spec/api/publications_api_spec.rb +0 -26
- data/spec/api/remotes_api_spec.rb +0 -64
- data/spec/api/repositories_api_spec.rb +2 -65
- data/spec/api/uploads_api_spec.rb +50 -0
- data/spec/models/pulp_import_spec.rb +6 -0
- metadata +136 -261
- data/docs/AcsApi.md +0 -417
- data/docs/AlternateContentSource.md +0 -23
- data/docs/AlternateContentSourceResponse.md +0 -27
- data/docs/ContentGuard.md +0 -19
- data/docs/Distribution.md +0 -25
- data/docs/Export.md +0 -17
- data/docs/ExportResponse.md +0 -25
- data/docs/Exporter.md +0 -17
- data/docs/ExporterResponse.md +0 -21
- data/docs/ExportersApi.md +0 -362
- data/docs/ExportersExportsApi.md +0 -241
- data/docs/Import.md +0 -19
- data/docs/Importer.md +0 -17
- data/docs/ImporterResponse.md +0 -21
- data/docs/ImportersApi.md +0 -361
- data/docs/ImportersImportsApi.md +0 -241
- data/docs/MultipleArtifactContent.md +0 -17
- data/docs/PaginatedAlternateContentSourceResponseList.md +0 -23
- data/docs/PaginatedExportResponseList.md +0 -23
- data/docs/PaginatedExporterResponseList.md +0 -23
- data/docs/PaginatedImporterResponseList.md +0 -23
- data/docs/PatchedAlternateContentSource.md +0 -23
- data/docs/PatchedContentGuard.md +0 -19
- data/docs/PatchedDistribution.md +0 -25
- data/docs/PatchedExporter.md +0 -17
- data/docs/PatchedImporter.md +0 -17
- data/docs/PatchedRemote.md +0 -57
- data/docs/PatchedRepository.md +0 -25
- data/docs/Remote.md +0 -57
- data/docs/RepositoriesVersionsApi.md +0 -271
- data/docs/Repository.md +0 -25
- data/git_push.sh +0 -58
- data/lib/pulpcore_client/api/acs_api.rb +0 -514
- data/lib/pulpcore_client/api/exporters_api.rb +0 -446
- data/lib/pulpcore_client/api/exporters_exports_api.rb +0 -294
- data/lib/pulpcore_client/api/importers_api.rb +0 -444
- data/lib/pulpcore_client/api/importers_imports_api.rb +0 -294
- data/lib/pulpcore_client/api/repositories_versions_api.rb +0 -343
- data/lib/pulpcore_client/models/alternate_content_source.rb +0 -270
- data/lib/pulpcore_client/models/alternate_content_source_response.rb +0 -270
- data/lib/pulpcore_client/models/content_guard.rb +0 -258
- data/lib/pulpcore_client/models/distribution.rb +0 -297
- data/lib/pulpcore_client/models/export.rb +0 -209
- data/lib/pulpcore_client/models/export_response.rb +0 -250
- data/lib/pulpcore_client/models/exporter.rb +0 -232
- data/lib/pulpcore_client/models/exporter_response.rb +0 -232
- data/lib/pulpcore_client/models/import.rb +0 -228
- data/lib/pulpcore_client/models/importer.rb +0 -232
- data/lib/pulpcore_client/models/importer_response.rb +0 -232
- data/lib/pulpcore_client/models/multiple_artifact_content.rb +0 -213
- data/lib/pulpcore_client/models/paginated_alternate_content_source_response_list.rb +0 -237
- data/lib/pulpcore_client/models/paginated_export_response_list.rb +0 -237
- data/lib/pulpcore_client/models/paginated_exporter_response_list.rb +0 -237
- data/lib/pulpcore_client/models/paginated_importer_response_list.rb +0 -237
- data/lib/pulpcore_client/models/patched_alternate_content_source.rb +0 -256
- data/lib/pulpcore_client/models/patched_content_guard.rb +0 -249
- data/lib/pulpcore_client/models/patched_distribution.rb +0 -279
- data/lib/pulpcore_client/models/patched_exporter.rb +0 -223
- data/lib/pulpcore_client/models/patched_importer.rb +0 -223
- data/lib/pulpcore_client/models/patched_remote.rb +0 -649
- data/lib/pulpcore_client/models/patched_repository.rb +0 -295
- data/lib/pulpcore_client/models/remote.rb +0 -667
- data/lib/pulpcore_client/models/repository.rb +0 -304
- data/spec/api/acs_api_spec.rb +0 -132
- data/spec/api/exporters_api_spec.rb +0 -120
- data/spec/api/exporters_exports_api_spec.rb +0 -90
- data/spec/api/importers_api_spec.rb +0 -120
- data/spec/api/importers_imports_api_spec.rb +0 -90
- data/spec/api/repositories_versions_api_spec.rb +0 -104
- data/spec/models/alternate_content_source_response_spec.rb +0 -71
- data/spec/models/alternate_content_source_spec.rb +0 -59
- data/spec/models/content_guard_spec.rb +0 -47
- data/spec/models/distribution_spec.rb +0 -65
- data/spec/models/export_response_spec.rb +0 -65
- data/spec/models/export_spec.rb +0 -41
- data/spec/models/exporter_response_spec.rb +0 -53
- data/spec/models/exporter_spec.rb +0 -41
- data/spec/models/import_spec.rb +0 -47
- data/spec/models/importer_response_spec.rb +0 -53
- data/spec/models/importer_spec.rb +0 -41
- data/spec/models/multiple_artifact_content_spec.rb +0 -41
- data/spec/models/paginated_alternate_content_source_response_list_spec.rb +0 -59
- data/spec/models/paginated_export_response_list_spec.rb +0 -59
- data/spec/models/paginated_exporter_response_list_spec.rb +0 -59
- data/spec/models/paginated_importer_response_list_spec.rb +0 -59
- data/spec/models/patched_alternate_content_source_spec.rb +0 -59
- data/spec/models/patched_content_guard_spec.rb +0 -47
- data/spec/models/patched_distribution_spec.rb +0 -65
- data/spec/models/patched_exporter_spec.rb +0 -41
- data/spec/models/patched_importer_spec.rb +0 -41
- data/spec/models/patched_remote_spec.rb +0 -161
- data/spec/models/patched_repository_spec.rb +0 -65
- data/spec/models/remote_spec.rb +0 -161
- data/spec/models/repository_spec.rb +0 -65
|
@@ -1,120 +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::ImportersApi
|
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
-
# Please update as you see appropriate
|
|
19
|
-
describe 'ImportersApi' do
|
|
20
|
-
before do
|
|
21
|
-
# run before each test
|
|
22
|
-
@api_instance = PulpcoreClient::ImportersApi.new
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
after do
|
|
26
|
-
# run after each test
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
describe 'test an instance of ImportersApi' do
|
|
30
|
-
it 'should create an instance of ImportersApi' do
|
|
31
|
-
expect(@api_instance).to be_instance_of(PulpcoreClient::ImportersApi)
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
# unit tests for create
|
|
36
|
-
# Create an importer
|
|
37
|
-
# ViewSet for Importers.
|
|
38
|
-
# @param importer
|
|
39
|
-
# @param [Hash] opts the optional parameters
|
|
40
|
-
# @return [ImporterResponse]
|
|
41
|
-
describe 'create 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 delete
|
|
48
|
-
# Delete an importer
|
|
49
|
-
# ViewSet for Importers.
|
|
50
|
-
# @param importer_href
|
|
51
|
-
# @param [Hash] opts the optional parameters
|
|
52
|
-
# @return [nil]
|
|
53
|
-
describe 'delete test' 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
|
-
# unit tests for list
|
|
60
|
-
# List importers
|
|
61
|
-
# ViewSet for Importers.
|
|
62
|
-
# @param [Hash] opts the optional parameters
|
|
63
|
-
# @option opts [Integer] :limit Number of results to return per page.
|
|
64
|
-
# @option opts [String] :name
|
|
65
|
-
# @option opts [String] :name__contains Filter results where name contains value
|
|
66
|
-
# @option opts [String] :name__icontains Filter results where name contains value
|
|
67
|
-
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
68
|
-
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
69
|
-
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
70
|
-
# @option opts [Array<String>] :ordering Ordering
|
|
71
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
|
72
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
73
|
-
# @return [PaginatedImporterResponseList]
|
|
74
|
-
describe 'list test' do
|
|
75
|
-
it 'should work' do
|
|
76
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
77
|
-
end
|
|
78
|
-
end
|
|
79
|
-
|
|
80
|
-
# unit tests for partial_update
|
|
81
|
-
# Update an importer
|
|
82
|
-
# ViewSet for Importers.
|
|
83
|
-
# @param importer_href
|
|
84
|
-
# @param patched_importer
|
|
85
|
-
# @param [Hash] opts the optional parameters
|
|
86
|
-
# @return [ImporterResponse]
|
|
87
|
-
describe 'partial_update test' do
|
|
88
|
-
it 'should work' do
|
|
89
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
90
|
-
end
|
|
91
|
-
end
|
|
92
|
-
|
|
93
|
-
# unit tests for read
|
|
94
|
-
# Inspect an importer
|
|
95
|
-
# ViewSet for Importers.
|
|
96
|
-
# @param importer_href
|
|
97
|
-
# @param [Hash] opts the optional parameters
|
|
98
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
|
99
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
100
|
-
# @return [ImporterResponse]
|
|
101
|
-
describe 'read test' do
|
|
102
|
-
it 'should work' do
|
|
103
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
104
|
-
end
|
|
105
|
-
end
|
|
106
|
-
|
|
107
|
-
# unit tests for update
|
|
108
|
-
# Update an importer
|
|
109
|
-
# ViewSet for Importers.
|
|
110
|
-
# @param importer_href
|
|
111
|
-
# @param importer
|
|
112
|
-
# @param [Hash] opts the optional parameters
|
|
113
|
-
# @return [ImporterResponse]
|
|
114
|
-
describe 'update test' do
|
|
115
|
-
it 'should work' do
|
|
116
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
117
|
-
end
|
|
118
|
-
end
|
|
119
|
-
|
|
120
|
-
end
|
|
@@ -1,90 +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::ImportersImportsApi
|
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
-
# Please update as you see appropriate
|
|
19
|
-
describe 'ImportersImportsApi' do
|
|
20
|
-
before do
|
|
21
|
-
# run before each test
|
|
22
|
-
@api_instance = PulpcoreClient::ImportersImportsApi.new
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
after do
|
|
26
|
-
# run after each test
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
describe 'test an instance of ImportersImportsApi' do
|
|
30
|
-
it 'should create an instance of ImportersImportsApi' do
|
|
31
|
-
expect(@api_instance).to be_instance_of(PulpcoreClient::ImportersImportsApi)
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
# unit tests for create
|
|
36
|
-
# Create an import
|
|
37
|
-
# ViewSet for viewing imports from an Importer.
|
|
38
|
-
# @param importer_href
|
|
39
|
-
# @param import
|
|
40
|
-
# @param [Hash] opts the optional parameters
|
|
41
|
-
# @return [ImportResponse]
|
|
42
|
-
describe 'create 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
|
-
# unit tests for delete
|
|
49
|
-
# Delete an import
|
|
50
|
-
# ViewSet for viewing imports from an Importer.
|
|
51
|
-
# @param importers_import_href
|
|
52
|
-
# @param [Hash] opts the optional parameters
|
|
53
|
-
# @return [nil]
|
|
54
|
-
describe 'delete test' do
|
|
55
|
-
it 'should work' do
|
|
56
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
57
|
-
end
|
|
58
|
-
end
|
|
59
|
-
|
|
60
|
-
# unit tests for list
|
|
61
|
-
# List imports
|
|
62
|
-
# ViewSet for viewing imports from an Importer.
|
|
63
|
-
# @param importer_href
|
|
64
|
-
# @param [Hash] opts the optional parameters
|
|
65
|
-
# @option opts [Integer] :limit Number of results to return per page.
|
|
66
|
-
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
67
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
|
68
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
69
|
-
# @return [PaginatedImportResponseList]
|
|
70
|
-
describe 'list test' do
|
|
71
|
-
it 'should work' do
|
|
72
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
73
|
-
end
|
|
74
|
-
end
|
|
75
|
-
|
|
76
|
-
# unit tests for read
|
|
77
|
-
# Inspect an import
|
|
78
|
-
# ViewSet for viewing imports from an Importer.
|
|
79
|
-
# @param importers_import_href
|
|
80
|
-
# @param [Hash] opts the optional parameters
|
|
81
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
|
82
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
83
|
-
# @return [ImportResponse]
|
|
84
|
-
describe 'read test' do
|
|
85
|
-
it 'should work' do
|
|
86
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
87
|
-
end
|
|
88
|
-
end
|
|
89
|
-
|
|
90
|
-
end
|
|
@@ -1,104 +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::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
|
|
@@ -1,71 +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
|
-
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
|
|
@@ -1,59 +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
|
-
require 'date'
|
|
16
|
-
|
|
17
|
-
# Unit tests for PulpcoreClient::AlternateContentSource
|
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
-
# Please update as you see appropriate
|
|
20
|
-
describe 'AlternateContentSource' do
|
|
21
|
-
before do
|
|
22
|
-
# run before each test
|
|
23
|
-
@instance = PulpcoreClient::AlternateContentSource.new
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
after do
|
|
27
|
-
# run after each test
|
|
28
|
-
end
|
|
29
|
-
|
|
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
|
-
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 "last_refreshed"' 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 "paths"' 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 "remote"' 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
|
-
end
|
|
@@ -1,47 +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
|
-
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
|
|
@@ -1,65 +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
|
-
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
|
|
@@ -1,65 +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
|
-
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
|
data/spec/models/export_spec.rb
DELETED
|
@@ -1,41 +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
|
-
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
|