pulpcore_client 3.20.0 → 3.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -84
  3. data/docs/ContentApi.md +1 -115
  4. data/docs/ContentguardsApi.md +1 -280
  5. data/docs/DistributionsApi.md +3 -281
  6. data/docs/PublicationsApi.md +0 -113
  7. data/docs/PulpImport.md +3 -1
  8. data/docs/RemotesApi.md +0 -280
  9. data/docs/RepositoriesApi.md +3 -281
  10. data/docs/UploadsApi.md +228 -0
  11. data/lib/pulpcore_client/api/content_api.rb +2 -134
  12. data/lib/pulpcore_client/api/contentguards_api.rb +2 -334
  13. data/lib/pulpcore_client/api/distributions_api.rb +5 -336
  14. data/lib/pulpcore_client/api/publications_api.rb +0 -128
  15. data/lib/pulpcore_client/api/remotes_api.rb +0 -334
  16. data/lib/pulpcore_client/api/repositories_api.rb +5 -336
  17. data/lib/pulpcore_client/api/repository_versions_api.rb +1 -1
  18. data/lib/pulpcore_client/api/uploads_api.rb +268 -0
  19. data/lib/pulpcore_client/api_client.rb +1 -1
  20. data/lib/pulpcore_client/models/pulp_import.rb +16 -4
  21. data/lib/pulpcore_client/version.rb +1 -1
  22. data/lib/pulpcore_client.rb +0 -31
  23. data/pulpcore_client.gemspec +3 -3
  24. data/spec/api/content_api_spec.rb +1 -27
  25. data/spec/api/contentguards_api_spec.rb +1 -65
  26. data/spec/api/distributions_api_spec.rb +2 -65
  27. data/spec/api/publications_api_spec.rb +0 -26
  28. data/spec/api/remotes_api_spec.rb +0 -64
  29. data/spec/api/repositories_api_spec.rb +2 -65
  30. data/spec/api/uploads_api_spec.rb +50 -0
  31. data/spec/models/pulp_import_spec.rb +6 -0
  32. metadata +136 -261
  33. data/docs/AcsApi.md +0 -417
  34. data/docs/AlternateContentSource.md +0 -23
  35. data/docs/AlternateContentSourceResponse.md +0 -27
  36. data/docs/ContentGuard.md +0 -19
  37. data/docs/Distribution.md +0 -25
  38. data/docs/Export.md +0 -17
  39. data/docs/ExportResponse.md +0 -25
  40. data/docs/Exporter.md +0 -17
  41. data/docs/ExporterResponse.md +0 -21
  42. data/docs/ExportersApi.md +0 -362
  43. data/docs/ExportersExportsApi.md +0 -241
  44. data/docs/Import.md +0 -19
  45. data/docs/Importer.md +0 -17
  46. data/docs/ImporterResponse.md +0 -21
  47. data/docs/ImportersApi.md +0 -361
  48. data/docs/ImportersImportsApi.md +0 -241
  49. data/docs/MultipleArtifactContent.md +0 -17
  50. data/docs/PaginatedAlternateContentSourceResponseList.md +0 -23
  51. data/docs/PaginatedExportResponseList.md +0 -23
  52. data/docs/PaginatedExporterResponseList.md +0 -23
  53. data/docs/PaginatedImporterResponseList.md +0 -23
  54. data/docs/PatchedAlternateContentSource.md +0 -23
  55. data/docs/PatchedContentGuard.md +0 -19
  56. data/docs/PatchedDistribution.md +0 -25
  57. data/docs/PatchedExporter.md +0 -17
  58. data/docs/PatchedImporter.md +0 -17
  59. data/docs/PatchedRemote.md +0 -57
  60. data/docs/PatchedRepository.md +0 -25
  61. data/docs/Remote.md +0 -57
  62. data/docs/RepositoriesVersionsApi.md +0 -271
  63. data/docs/Repository.md +0 -25
  64. data/git_push.sh +0 -58
  65. data/lib/pulpcore_client/api/acs_api.rb +0 -514
  66. data/lib/pulpcore_client/api/exporters_api.rb +0 -446
  67. data/lib/pulpcore_client/api/exporters_exports_api.rb +0 -294
  68. data/lib/pulpcore_client/api/importers_api.rb +0 -444
  69. data/lib/pulpcore_client/api/importers_imports_api.rb +0 -294
  70. data/lib/pulpcore_client/api/repositories_versions_api.rb +0 -343
  71. data/lib/pulpcore_client/models/alternate_content_source.rb +0 -270
  72. data/lib/pulpcore_client/models/alternate_content_source_response.rb +0 -270
  73. data/lib/pulpcore_client/models/content_guard.rb +0 -258
  74. data/lib/pulpcore_client/models/distribution.rb +0 -297
  75. data/lib/pulpcore_client/models/export.rb +0 -209
  76. data/lib/pulpcore_client/models/export_response.rb +0 -250
  77. data/lib/pulpcore_client/models/exporter.rb +0 -232
  78. data/lib/pulpcore_client/models/exporter_response.rb +0 -232
  79. data/lib/pulpcore_client/models/import.rb +0 -228
  80. data/lib/pulpcore_client/models/importer.rb +0 -232
  81. data/lib/pulpcore_client/models/importer_response.rb +0 -232
  82. data/lib/pulpcore_client/models/multiple_artifact_content.rb +0 -213
  83. data/lib/pulpcore_client/models/paginated_alternate_content_source_response_list.rb +0 -237
  84. data/lib/pulpcore_client/models/paginated_export_response_list.rb +0 -237
  85. data/lib/pulpcore_client/models/paginated_exporter_response_list.rb +0 -237
  86. data/lib/pulpcore_client/models/paginated_importer_response_list.rb +0 -237
  87. data/lib/pulpcore_client/models/patched_alternate_content_source.rb +0 -256
  88. data/lib/pulpcore_client/models/patched_content_guard.rb +0 -249
  89. data/lib/pulpcore_client/models/patched_distribution.rb +0 -279
  90. data/lib/pulpcore_client/models/patched_exporter.rb +0 -223
  91. data/lib/pulpcore_client/models/patched_importer.rb +0 -223
  92. data/lib/pulpcore_client/models/patched_remote.rb +0 -649
  93. data/lib/pulpcore_client/models/patched_repository.rb +0 -295
  94. data/lib/pulpcore_client/models/remote.rb +0 -667
  95. data/lib/pulpcore_client/models/repository.rb +0 -304
  96. data/spec/api/acs_api_spec.rb +0 -132
  97. data/spec/api/exporters_api_spec.rb +0 -120
  98. data/spec/api/exporters_exports_api_spec.rb +0 -90
  99. data/spec/api/importers_api_spec.rb +0 -120
  100. data/spec/api/importers_imports_api_spec.rb +0 -90
  101. data/spec/api/repositories_versions_api_spec.rb +0 -104
  102. data/spec/models/alternate_content_source_response_spec.rb +0 -71
  103. data/spec/models/alternate_content_source_spec.rb +0 -59
  104. data/spec/models/content_guard_spec.rb +0 -47
  105. data/spec/models/distribution_spec.rb +0 -65
  106. data/spec/models/export_response_spec.rb +0 -65
  107. data/spec/models/export_spec.rb +0 -41
  108. data/spec/models/exporter_response_spec.rb +0 -53
  109. data/spec/models/exporter_spec.rb +0 -41
  110. data/spec/models/import_spec.rb +0 -47
  111. data/spec/models/importer_response_spec.rb +0 -53
  112. data/spec/models/importer_spec.rb +0 -41
  113. data/spec/models/multiple_artifact_content_spec.rb +0 -41
  114. data/spec/models/paginated_alternate_content_source_response_list_spec.rb +0 -59
  115. data/spec/models/paginated_export_response_list_spec.rb +0 -59
  116. data/spec/models/paginated_exporter_response_list_spec.rb +0 -59
  117. data/spec/models/paginated_importer_response_list_spec.rb +0 -59
  118. data/spec/models/patched_alternate_content_source_spec.rb +0 -59
  119. data/spec/models/patched_content_guard_spec.rb +0 -47
  120. data/spec/models/patched_distribution_spec.rb +0 -65
  121. data/spec/models/patched_exporter_spec.rb +0 -41
  122. data/spec/models/patched_importer_spec.rb +0 -41
  123. data/spec/models/patched_remote_spec.rb +0 -161
  124. data/spec/models/patched_repository_spec.rb +0 -65
  125. data/spec/models/remote_spec.rb +0 -161
  126. data/spec/models/repository_spec.rb +0 -65
@@ -154,7 +154,7 @@ module PulpcoreClient
154
154
  case value
155
155
  when ::File, ::Tempfile
156
156
  # TODO hardcode to application/octet-stream, need better way to detect content type
157
- data[key] = Faraday::UploadIO.new(value.path, 'application/octet-stream', value.path)
157
+ data[key] = Faraday::FilePart.new(value.path, 'application/octet-stream', value.path)
158
158
  when ::Array, nil
159
159
  # let Faraday handle Array and nil parameters
160
160
  data[key] = value
@@ -21,11 +21,15 @@ module PulpcoreClient
21
21
  # Path to a table-of-contents file describing chunks to be validated, reassembled, and imported.
22
22
  attr_accessor :toc
23
23
 
24
+ # If True, missing repositories will be automatically created during the import.
25
+ attr_accessor :create_repositories
26
+
24
27
  # Attribute mapping from ruby-style variable name to JSON key.
25
28
  def self.attribute_map
26
29
  {
27
30
  :'path' => :'path',
28
- :'toc' => :'toc'
31
+ :'toc' => :'toc',
32
+ :'create_repositories' => :'create_repositories'
29
33
  }
30
34
  end
31
35
 
@@ -33,7 +37,8 @@ module PulpcoreClient
33
37
  def self.openapi_types
34
38
  {
35
39
  :'path' => :'String',
36
- :'toc' => :'String'
40
+ :'toc' => :'String',
41
+ :'create_repositories' => :'Boolean'
37
42
  }
38
43
  end
39
44
 
@@ -65,6 +70,12 @@ module PulpcoreClient
65
70
  if attributes.key?(:'toc')
66
71
  self.toc = attributes[:'toc']
67
72
  end
73
+
74
+ if attributes.key?(:'create_repositories')
75
+ self.create_repositories = attributes[:'create_repositories']
76
+ else
77
+ self.create_repositories = false
78
+ end
68
79
  end
69
80
 
70
81
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -116,7 +127,8 @@ module PulpcoreClient
116
127
  return true if self.equal?(o)
117
128
  self.class == o.class &&
118
129
  path == o.path &&
119
- toc == o.toc
130
+ toc == o.toc &&
131
+ create_repositories == o.create_repositories
120
132
  end
121
133
 
122
134
  # @see the `==` method
@@ -128,7 +140,7 @@ module PulpcoreClient
128
140
  # Calculates hash code according to all attributes.
129
141
  # @return [Integer] Hash code
130
142
  def hash
131
- [path, toc].hash
143
+ [path, toc, create_repositories].hash
132
144
  end
133
145
 
134
146
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpcoreClient
14
- VERSION = '3.20.0'
14
+ VERSION = '3.21.0'
15
15
  end
@@ -19,25 +19,17 @@ require 'pulpcore_client/configuration'
19
19
  # Models
20
20
  require 'pulpcore_client/models/access_policy'
21
21
  require 'pulpcore_client/models/access_policy_response'
22
- require 'pulpcore_client/models/alternate_content_source'
23
- require 'pulpcore_client/models/alternate_content_source_response'
24
22
  require 'pulpcore_client/models/artifact'
25
23
  require 'pulpcore_client/models/artifact_response'
26
24
  require 'pulpcore_client/models/async_operation_response'
27
25
  require 'pulpcore_client/models/content_app_status_response'
28
- require 'pulpcore_client/models/content_guard'
29
26
  require 'pulpcore_client/models/content_guard_response'
30
27
  require 'pulpcore_client/models/content_redirect_content_guard'
31
28
  require 'pulpcore_client/models/content_redirect_content_guard_response'
32
29
  require 'pulpcore_client/models/content_summary_response'
33
30
  require 'pulpcore_client/models/database_connection_response'
34
- require 'pulpcore_client/models/distribution'
35
31
  require 'pulpcore_client/models/distribution_response'
36
32
  require 'pulpcore_client/models/evaluation_response'
37
- require 'pulpcore_client/models/export'
38
- require 'pulpcore_client/models/export_response'
39
- require 'pulpcore_client/models/exporter'
40
- require 'pulpcore_client/models/exporter_response'
41
33
  require 'pulpcore_client/models/filesystem_export'
42
34
  require 'pulpcore_client/models/filesystem_export_response'
43
35
  require 'pulpcore_client/models/filesystem_exporter'
@@ -49,13 +41,9 @@ require 'pulpcore_client/models/group_role'
49
41
  require 'pulpcore_client/models/group_role_response'
50
42
  require 'pulpcore_client/models/group_user'
51
43
  require 'pulpcore_client/models/group_user_response'
52
- require 'pulpcore_client/models/import'
53
44
  require 'pulpcore_client/models/import_response'
54
- require 'pulpcore_client/models/importer'
55
- require 'pulpcore_client/models/importer_response'
56
45
  require 'pulpcore_client/models/method_enum'
57
46
  require 'pulpcore_client/models/minimal_task_response'
58
- require 'pulpcore_client/models/multiple_artifact_content'
59
47
  require 'pulpcore_client/models/multiple_artifact_content_response'
60
48
  require 'pulpcore_client/models/my_permissions_response'
61
49
  require 'pulpcore_client/models/nested_role'
@@ -63,20 +51,16 @@ require 'pulpcore_client/models/nested_role_response'
63
51
  require 'pulpcore_client/models/object_roles_response'
64
52
  require 'pulpcore_client/models/orphans_cleanup'
65
53
  require 'pulpcore_client/models/paginated_access_policy_response_list'
66
- require 'pulpcore_client/models/paginated_alternate_content_source_response_list'
67
54
  require 'pulpcore_client/models/paginated_artifact_response_list'
68
55
  require 'pulpcore_client/models/paginated_content_guard_response_list'
69
56
  require 'pulpcore_client/models/paginated_content_redirect_content_guard_response_list'
70
57
  require 'pulpcore_client/models/paginated_distribution_response_list'
71
- require 'pulpcore_client/models/paginated_export_response_list'
72
- require 'pulpcore_client/models/paginated_exporter_response_list'
73
58
  require 'pulpcore_client/models/paginated_filesystem_export_response_list'
74
59
  require 'pulpcore_client/models/paginated_filesystem_exporter_response_list'
75
60
  require 'pulpcore_client/models/paginated_group_response_list'
76
61
  require 'pulpcore_client/models/paginated_group_role_response_list'
77
62
  require 'pulpcore_client/models/paginated_group_user_response_list'
78
63
  require 'pulpcore_client/models/paginated_import_response_list'
79
- require 'pulpcore_client/models/paginated_importer_response_list'
80
64
  require 'pulpcore_client/models/paginated_multiple_artifact_content_response_list'
81
65
  require 'pulpcore_client/models/paginated_publication_response_list'
82
66
  require 'pulpcore_client/models/paginated_pulp_export_response_list'
@@ -96,19 +80,12 @@ require 'pulpcore_client/models/paginated_user_response_list'
96
80
  require 'pulpcore_client/models/paginated_user_role_response_list'
97
81
  require 'pulpcore_client/models/paginated_worker_response_list'
98
82
  require 'pulpcore_client/models/patched_access_policy'
99
- require 'pulpcore_client/models/patched_alternate_content_source'
100
- require 'pulpcore_client/models/patched_content_guard'
101
83
  require 'pulpcore_client/models/patched_content_redirect_content_guard'
102
- require 'pulpcore_client/models/patched_distribution'
103
- require 'pulpcore_client/models/patched_exporter'
104
84
  require 'pulpcore_client/models/patched_filesystem_exporter'
105
85
  require 'pulpcore_client/models/patched_group'
106
- require 'pulpcore_client/models/patched_importer'
107
86
  require 'pulpcore_client/models/patched_pulp_exporter'
108
87
  require 'pulpcore_client/models/patched_pulp_importer'
109
88
  require 'pulpcore_client/models/patched_rbac_content_guard'
110
- require 'pulpcore_client/models/patched_remote'
111
- require 'pulpcore_client/models/patched_repository'
112
89
  require 'pulpcore_client/models/patched_role'
113
90
  require 'pulpcore_client/models/patched_task_cancel'
114
91
  require 'pulpcore_client/models/patched_user'
@@ -129,10 +106,8 @@ require 'pulpcore_client/models/rbac_content_guard'
129
106
  require 'pulpcore_client/models/rbac_content_guard_response'
130
107
  require 'pulpcore_client/models/reclaim_space'
131
108
  require 'pulpcore_client/models/redis_connection_response'
132
- require 'pulpcore_client/models/remote'
133
109
  require 'pulpcore_client/models/remote_response'
134
110
  require 'pulpcore_client/models/repair'
135
- require 'pulpcore_client/models/repository'
136
111
  require 'pulpcore_client/models/repository_response'
137
112
  require 'pulpcore_client/models/repository_version_response'
138
113
  require 'pulpcore_client/models/role'
@@ -162,15 +137,12 @@ require 'pulpcore_client/models/worker_response'
162
137
 
163
138
  # APIs
164
139
  require 'pulpcore_client/api/access_policies_api'
165
- require 'pulpcore_client/api/acs_api'
166
140
  require 'pulpcore_client/api/artifacts_api'
167
141
  require 'pulpcore_client/api/content_api'
168
142
  require 'pulpcore_client/api/contentguards_api'
169
143
  require 'pulpcore_client/api/contentguards_content_redirect_api'
170
144
  require 'pulpcore_client/api/contentguards_rbac_api'
171
145
  require 'pulpcore_client/api/distributions_api'
172
- require 'pulpcore_client/api/exporters_api'
173
- require 'pulpcore_client/api/exporters_exports_api'
174
146
  require 'pulpcore_client/api/exporters_filesystem_api'
175
147
  require 'pulpcore_client/api/exporters_filesystem_exports_api'
176
148
  require 'pulpcore_client/api/exporters_pulp_api'
@@ -178,8 +150,6 @@ require 'pulpcore_client/api/exporters_pulp_exports_api'
178
150
  require 'pulpcore_client/api/groups_api'
179
151
  require 'pulpcore_client/api/groups_roles_api'
180
152
  require 'pulpcore_client/api/groups_users_api'
181
- require 'pulpcore_client/api/importers_api'
182
- require 'pulpcore_client/api/importers_imports_api'
183
153
  require 'pulpcore_client/api/importers_pulp_api'
184
154
  require 'pulpcore_client/api/importers_pulp_import_check_api'
185
155
  require 'pulpcore_client/api/importers_pulp_imports_api'
@@ -190,7 +160,6 @@ require 'pulpcore_client/api/remotes_api'
190
160
  require 'pulpcore_client/api/repair_api'
191
161
  require 'pulpcore_client/api/repositories_api'
192
162
  require 'pulpcore_client/api/repositories_reclaim_space_api'
193
- require 'pulpcore_client/api/repositories_versions_api'
194
163
  require 'pulpcore_client/api/repository_versions_api'
195
164
  require 'pulpcore_client/api/roles_api'
196
165
  require 'pulpcore_client/api/signing_services_api'
@@ -21,13 +21,13 @@ Gem::Specification.new do |s|
21
21
  s.platform = Gem::Platform::RUBY
22
22
  s.authors = ["OpenAPI-Generator"]
23
23
  s.email = ["pulp-list@redhat.com"]
24
- s.homepage = "https://openapi-generator.tech"
24
+ s.homepage = "https://github.com/pulp/pulpcore"
25
25
  s.summary = "Pulp 3 API Ruby Gem"
26
26
  s.description = "Fetch, Upload, Organize, and Distribute Software Packages"
27
- s.license = 'GPL-2.0+'
27
+ s.license = 'GPLv2+'
28
28
  s.required_ruby_version = ">= 1.9"
29
29
 
30
- s.add_runtime_dependency 'faraday', '~> 0.17', '< 1.9.0'
30
+ s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 2.0'
31
31
  s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
32
 
33
33
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
@@ -32,21 +32,9 @@ describe 'ContentApi' do
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for create
36
- # Create a content
37
- # Content viewset that supports POST and GET by default.
38
- # @param multiple_artifact_content
39
- # @param [Hash] opts the optional parameters
40
- # @return [MultipleArtifactContentResponse]
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
35
  # unit tests for list
48
36
  # List content
49
- # Content viewset that supports POST and GET by default.
37
+ # Endpoint to list all content.
50
38
  # @param [Hash] opts the optional parameters
51
39
  # @option opts [Integer] :limit Number of results to return per page.
52
40
  # @option opts [Integer] :offset The initial index from which to return the results.
@@ -63,18 +51,4 @@ describe 'ContentApi' do
63
51
  end
64
52
  end
65
53
 
66
- # unit tests for read
67
- # Inspect a content
68
- # Content viewset that supports POST and GET by default.
69
- # @param content_href
70
- # @param [Hash] opts the optional parameters
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 [MultipleArtifactContentResponse]
74
- describe 'read 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
54
  end
@@ -32,33 +32,9 @@ describe 'ContentguardsApi' do
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for create
36
- # Create a content guard
37
- # A viewset for contentguards.
38
- # @param content_guard
39
- # @param [Hash] opts the optional parameters
40
- # @return [ContentGuardResponse]
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 a content guard
49
- # A viewset for contentguards.
50
- # @param content_guard_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
35
  # unit tests for list
60
36
  # List content guards
61
- # A viewset for contentguards.
37
+ # Endpoint to list all contentguards.
62
38
  # @param [Hash] opts the optional parameters
63
39
  # @option opts [Integer] :limit Number of results to return per page.
64
40
  # @option opts [String] :name
@@ -77,44 +53,4 @@ describe 'ContentguardsApi' do
77
53
  end
78
54
  end
79
55
 
80
- # unit tests for partial_update
81
- # Update a content guard
82
- # A viewset for contentguards.
83
- # @param content_guard_href
84
- # @param patched_content_guard
85
- # @param [Hash] opts the optional parameters
86
- # @return [ContentGuardResponse]
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 a content guard
95
- # A viewset for contentguards.
96
- # @param content_guard_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 [ContentGuardResponse]
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 a content guard
109
- # A viewset for contentguards.
110
- # @param content_guard_href
111
- # @param content_guard
112
- # @param [Hash] opts the optional parameters
113
- # @return [ContentGuardResponse]
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
56
  end
@@ -32,33 +32,9 @@ describe 'DistributionsApi' do
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for create
36
- # Create a distribution
37
- # Trigger an asynchronous create task
38
- # @param distribution
39
- # @param [Hash] opts the optional parameters
40
- # @return [AsyncOperationResponse]
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 a distribution
49
- # Trigger an asynchronous delete task
50
- # @param distribution_href
51
- # @param [Hash] opts the optional parameters
52
- # @return [AsyncOperationResponse]
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
35
  # unit tests for list
60
36
  # List distributions
61
- # Provides read and list methods and also provides asynchronous CUD methods to dispatch tasks with reservation that lock all Distributions preventing race conditions during base_path checking.
37
+ # A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \&quot;Normal\&quot; Django Models and Master/Detail models are supported by the &#x60;&#x60;register_with&#x60;&#x60; 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 &#39;pk&#39; endpoint_name (str): The name of the final path segment that should identify the ViewSet&#39;s collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \&quot;parent_prefix\&quot; 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&#39;s identity. schema (DefaultSchema): The schema class to use by default in a viewset.
62
38
  # @param [Hash] opts the optional parameters
63
39
  # @option opts [String] :base_path
64
40
  # @option opts [String] :base_path__contains Filter results where base_path contains value
@@ -73,6 +49,7 @@ describe 'DistributionsApi' do
73
49
  # @option opts [Integer] :offset The initial index from which to return the results.
74
50
  # @option opts [Array<String>] :ordering Ordering
75
51
  # @option opts [String] :pulp_label_select Filter labels by search string
52
+ # @option opts [String] :with_content Filter distributions based on the content served by them
76
53
  # @option opts [String] :fields A list of fields to include in the response.
77
54
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
78
55
  # @return [PaginatedDistributionResponseList]
@@ -82,44 +59,4 @@ describe 'DistributionsApi' do
82
59
  end
83
60
  end
84
61
 
85
- # unit tests for partial_update
86
- # Update a distribution
87
- # Trigger an asynchronous partial update task
88
- # @param distribution_href
89
- # @param patched_distribution
90
- # @param [Hash] opts the optional parameters
91
- # @return [AsyncOperationResponse]
92
- describe 'partial_update test' do
93
- it 'should work' do
94
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
95
- end
96
- end
97
-
98
- # unit tests for read
99
- # Inspect a distribution
100
- # Provides read and list methods and also provides asynchronous CUD methods to dispatch tasks with reservation that lock all Distributions preventing race conditions during base_path checking.
101
- # @param distribution_href
102
- # @param [Hash] opts the optional parameters
103
- # @option opts [String] :fields A list of fields to include in the response.
104
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
105
- # @return [DistributionResponse]
106
- describe 'read test' do
107
- it 'should work' do
108
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
109
- end
110
- end
111
-
112
- # unit tests for update
113
- # Update a distribution
114
- # Trigger an asynchronous update task
115
- # @param distribution_href
116
- # @param distribution
117
- # @param [Hash] opts the optional parameters
118
- # @return [AsyncOperationResponse]
119
- describe 'update test' do
120
- it 'should work' do
121
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
122
- end
123
- end
124
-
125
62
  end
@@ -32,18 +32,6 @@ describe 'PublicationsApi' do
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for delete
36
- # Delete a publication
37
- # A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \&quot;Normal\&quot; Django Models and Master/Detail models are supported by the &#x60;&#x60;register_with&#x60;&#x60; 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 &#39;pk&#39; endpoint_name (str): The name of the final path segment that should identify the ViewSet&#39;s collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \&quot;parent_prefix\&quot; 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&#39;s identity. schema (DefaultSchema): The schema class to use by default in a viewset.
38
- # @param publication_href
39
- # @param [Hash] opts the optional parameters
40
- # @return [nil]
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
35
  # unit tests for list
48
36
  # List publications
49
37
  # A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \&quot;Normal\&quot; Django Models and Master/Detail models are supported by the &#x60;&#x60;register_with&#x60;&#x60; 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 &#39;pk&#39; endpoint_name (str): The name of the final path segment that should identify the ViewSet&#39;s collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \&quot;parent_prefix\&quot; 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&#39;s identity. schema (DefaultSchema): The schema class to use by default in a viewset.
@@ -70,18 +58,4 @@ describe 'PublicationsApi' do
70
58
  end
71
59
  end
72
60
 
73
- # unit tests for read
74
- # Inspect a publication
75
- # A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \&quot;Normal\&quot; Django Models and Master/Detail models are supported by the &#x60;&#x60;register_with&#x60;&#x60; 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 &#39;pk&#39; endpoint_name (str): The name of the final path segment that should identify the ViewSet&#39;s collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \&quot;parent_prefix\&quot; 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&#39;s identity. schema (DefaultSchema): The schema class to use by default in a viewset.
76
- # @param publication_href
77
- # @param [Hash] opts the optional parameters
78
- # @option opts [String] :fields A list of fields to include in the response.
79
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
80
- # @return [PublicationResponse]
81
- describe 'read test' do
82
- it 'should work' do
83
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
84
- end
85
- end
86
-
87
61
  end
@@ -32,30 +32,6 @@ describe 'RemotesApi' do
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for create
36
- # Create a remote
37
- # A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \&quot;Normal\&quot; Django Models and Master/Detail models are supported by the &#x60;&#x60;register_with&#x60;&#x60; 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 &#39;pk&#39; endpoint_name (str): The name of the final path segment that should identify the ViewSet&#39;s collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \&quot;parent_prefix\&quot; 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&#39;s identity. schema (DefaultSchema): The schema class to use by default in a viewset.
38
- # @param remote
39
- # @param [Hash] opts the optional parameters
40
- # @return [RemoteResponse]
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 a remote
49
- # Trigger an asynchronous delete task
50
- # @param remote_href
51
- # @param [Hash] opts the optional parameters
52
- # @return [AsyncOperationResponse]
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
35
  # unit tests for list
60
36
  # List remotes
61
37
  # A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \&quot;Normal\&quot; Django Models and Master/Detail models are supported by the &#x60;&#x60;register_with&#x60;&#x60; 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 &#39;pk&#39; endpoint_name (str): The name of the final path segment that should identify the ViewSet&#39;s collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \&quot;parent_prefix\&quot; 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&#39;s identity. schema (DefaultSchema): The schema class to use by default in a viewset.
@@ -84,44 +60,4 @@ describe 'RemotesApi' do
84
60
  end
85
61
  end
86
62
 
87
- # unit tests for partial_update
88
- # Update a remote
89
- # Trigger an asynchronous partial update task
90
- # @param remote_href
91
- # @param patched_remote
92
- # @param [Hash] opts the optional parameters
93
- # @return [AsyncOperationResponse]
94
- describe 'partial_update test' do
95
- it 'should work' do
96
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
97
- end
98
- end
99
-
100
- # unit tests for read
101
- # Inspect a remote
102
- # A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \&quot;Normal\&quot; Django Models and Master/Detail models are supported by the &#x60;&#x60;register_with&#x60;&#x60; 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 &#39;pk&#39; endpoint_name (str): The name of the final path segment that should identify the ViewSet&#39;s collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \&quot;parent_prefix\&quot; 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&#39;s identity. schema (DefaultSchema): The schema class to use by default in a viewset.
103
- # @param remote_href
104
- # @param [Hash] opts the optional parameters
105
- # @option opts [String] :fields A list of fields to include in the response.
106
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
107
- # @return [RemoteResponse]
108
- describe 'read test' do
109
- it 'should work' do
110
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
111
- end
112
- end
113
-
114
- # unit tests for update
115
- # Update a remote
116
- # Trigger an asynchronous update task
117
- # @param remote_href
118
- # @param remote
119
- # @param [Hash] opts the optional parameters
120
- # @return [AsyncOperationResponse]
121
- describe 'update test' do
122
- it 'should work' do
123
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
124
- end
125
- end
126
-
127
63
  end
@@ -32,33 +32,9 @@ describe 'RepositoriesApi' do
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for create
36
- # Create a repository
37
- # An immutable repository ViewSet that does not allow the usage of the methods PATCH and PUT.
38
- # @param repository
39
- # @param [Hash] opts the optional parameters
40
- # @return [RepositoryResponse]
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 a repository
49
- # Trigger an asynchronous delete task
50
- # @param repository_href
51
- # @param [Hash] opts the optional parameters
52
- # @return [AsyncOperationResponse]
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
35
  # unit tests for list
60
36
  # List repositories
61
- # An immutable repository ViewSet that does not allow the usage of the methods PATCH and PUT.
37
+ # Endpoint to list all repositories.
62
38
  # @param [Hash] opts the optional parameters
63
39
  # @option opts [Integer] :limit Number of results to return per page.
64
40
  # @option opts [String] :name
@@ -69,6 +45,7 @@ describe 'RepositoriesApi' do
69
45
  # @option opts [Integer] :offset The initial index from which to return the results.
70
46
  # @option opts [Array<String>] :ordering Ordering
71
47
  # @option opts [String] :pulp_label_select Filter labels by search string
48
+ # @option opts [String] :remote Foreign Key referenced by HREF
72
49
  # @option opts [String] :fields A list of fields to include in the response.
73
50
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
74
51
  # @return [PaginatedRepositoryResponseList]
@@ -78,44 +55,4 @@ describe 'RepositoriesApi' do
78
55
  end
79
56
  end
80
57
 
81
- # unit tests for partial_update
82
- # Update a repository
83
- # Trigger an asynchronous partial update task
84
- # @param repository_href
85
- # @param patched_repository
86
- # @param [Hash] opts the optional parameters
87
- # @return [AsyncOperationResponse]
88
- describe 'partial_update test' do
89
- it 'should work' do
90
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
91
- end
92
- end
93
-
94
- # unit tests for read
95
- # Inspect a repository
96
- # An immutable repository ViewSet that does not allow the usage of the methods PATCH and PUT.
97
- # @param repository_href
98
- # @param [Hash] opts the optional parameters
99
- # @option opts [String] :fields A list of fields to include in the response.
100
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
101
- # @return [RepositoryResponse]
102
- describe 'read test' do
103
- it 'should work' do
104
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
105
- end
106
- end
107
-
108
- # unit tests for update
109
- # Update a repository
110
- # Trigger an asynchronous update task
111
- # @param repository_href
112
- # @param repository
113
- # @param [Hash] opts the optional parameters
114
- # @return [AsyncOperationResponse]
115
- describe 'update test' do
116
- it 'should work' do
117
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
118
- end
119
- end
120
-
121
58
  end