pulp_maven_client 0.25.1 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -4
  3. data/docs/ContentMavenIndexPageApi.md +341 -0
  4. data/docs/ContentPackageApi.md +6 -0
  5. data/docs/MavenMavenIndexPageResponse.md +32 -0
  6. data/docs/MavenMavenPackageResponse.md +2 -0
  7. data/docs/MavenPackageReleaseResponse.md +22 -0
  8. data/docs/MavenRepositoryMetricsResponse.md +22 -0
  9. data/docs/MavenRepositoryPackageResponse.md +24 -0
  10. data/docs/PaginatedMavenRepositoryPackageListResponse.md +24 -0
  11. data/docs/PaginatedmavenMavenIndexPageResponseList.md +24 -0
  12. data/docs/RepositoriesMavenApi.md +241 -0
  13. data/lib/pulp_maven_client/api/content_maven_index_page_api.rb +354 -0
  14. data/lib/pulp_maven_client/api/content_package_api.rb +9 -0
  15. data/lib/pulp_maven_client/api/repositories_maven_api.rb +222 -0
  16. data/lib/pulp_maven_client/models/maven_maven_index_page_response.rb +286 -0
  17. data/lib/pulp_maven_client/models/maven_maven_package_response.rb +11 -1
  18. data/lib/pulp_maven_client/models/maven_package_release_response.rb +257 -0
  19. data/lib/pulp_maven_client/models/maven_repository_metrics_response.rb +257 -0
  20. data/lib/pulp_maven_client/models/maven_repository_package_response.rb +278 -0
  21. data/lib/pulp_maven_client/models/nested_role.rb +1 -1
  22. data/lib/pulp_maven_client/models/nested_role_response.rb +1 -1
  23. data/lib/pulp_maven_client/models/paginated_maven_repository_package_list_response.rb +263 -0
  24. data/lib/pulp_maven_client/models/paginatedmaven_maven_index_page_response_list.rb +257 -0
  25. data/lib/pulp_maven_client/models/repository_add_remove_content.rb +1 -1
  26. data/lib/pulp_maven_client/models/repository_version_response.rb +1 -1
  27. data/lib/pulp_maven_client/version.rb +1 -1
  28. data/lib/pulp_maven_client.rb +7 -0
  29. data/spec/api/content_maven_index_page_api_spec.rb +104 -0
  30. data/spec/api/content_package_api_spec.rb +3 -0
  31. data/spec/api/repositories_maven_api_spec.rb +47 -0
  32. data/spec/models/maven_maven_index_page_response_spec.rb +78 -0
  33. data/spec/models/maven_maven_package_response_spec.rb +6 -0
  34. data/spec/models/maven_package_release_response_spec.rb +48 -0
  35. data/spec/models/maven_repository_metrics_response_spec.rb +48 -0
  36. data/spec/models/maven_repository_package_response_spec.rb +54 -0
  37. data/spec/models/paginated_maven_repository_package_list_response_spec.rb +54 -0
  38. data/spec/models/paginatedmaven_maven_index_page_response_list_spec.rb +54 -0
  39. metadata +60 -32
@@ -0,0 +1,257 @@
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
+ Generator version: 7.10.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module PulpMavenClient
17
+ class PaginatedmavenMavenIndexPageResponseList
18
+ attr_accessor :count
19
+
20
+ attr_accessor :_next
21
+
22
+ attr_accessor :previous
23
+
24
+ attr_accessor :results
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'count' => :'count',
30
+ :'_next' => :'next',
31
+ :'previous' => :'previous',
32
+ :'results' => :'results'
33
+ }
34
+ end
35
+
36
+ # Returns all the JSON keys this model knows about
37
+ def self.acceptable_attributes
38
+ attribute_map.values
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.openapi_types
43
+ {
44
+ :'count' => :'Integer',
45
+ :'_next' => :'String',
46
+ :'previous' => :'String',
47
+ :'results' => :'Array<MavenMavenIndexPageResponse>'
48
+ }
49
+ end
50
+
51
+ # List of attributes with nullable: true
52
+ def self.openapi_nullable
53
+ Set.new([
54
+ ])
55
+ end
56
+
57
+ # Initializes the object
58
+ # @param [Hash] attributes Model attributes in the form of hash
59
+ def initialize(attributes = {})
60
+ if (!attributes.is_a?(Hash))
61
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpMavenClient::PaginatedmavenMavenIndexPageResponseList` initialize method"
62
+ end
63
+
64
+ # check to see if the attribute exists and convert string to symbol for hash key
65
+ attributes = attributes.each_with_object({}) { |(k, v), h|
66
+ if (!self.class.attribute_map.key?(k.to_sym))
67
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpMavenClient::PaginatedmavenMavenIndexPageResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
68
+ end
69
+ h[k.to_sym] = v
70
+ }
71
+
72
+ if attributes.key?(:'count')
73
+ self.count = attributes[:'count']
74
+ else
75
+ self.count = nil
76
+ end
77
+
78
+ if attributes.key?(:'_next')
79
+ self._next = attributes[:'_next']
80
+ end
81
+
82
+ if attributes.key?(:'previous')
83
+ self.previous = attributes[:'previous']
84
+ end
85
+
86
+ if attributes.key?(:'results')
87
+ if (value = attributes[:'results']).is_a?(Array)
88
+ self.results = value
89
+ end
90
+ else
91
+ self.results = nil
92
+ end
93
+ end
94
+
95
+ # Show invalid properties with the reasons. Usually used together with valid?
96
+ # @return Array for valid properties with the reasons
97
+ def list_invalid_properties
98
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
99
+ invalid_properties = Array.new
100
+ if @count.nil?
101
+ invalid_properties.push('invalid value for "count", count cannot be nil.')
102
+ end
103
+
104
+ if @results.nil?
105
+ invalid_properties.push('invalid value for "results", results cannot be nil.')
106
+ end
107
+
108
+ invalid_properties
109
+ end
110
+
111
+ # Check to see if the all the properties in the model are valid
112
+ # @return true if the model is valid
113
+ def valid?
114
+ warn '[DEPRECATED] the `valid?` method is obsolete'
115
+ return false if @count.nil?
116
+ return false if @results.nil?
117
+ true
118
+ end
119
+
120
+ # Checks equality by comparing each attribute.
121
+ # @param [Object] Object to be compared
122
+ def ==(o)
123
+ return true if self.equal?(o)
124
+ self.class == o.class &&
125
+ count == o.count &&
126
+ _next == o._next &&
127
+ previous == o.previous &&
128
+ results == o.results
129
+ end
130
+
131
+ # @see the `==` method
132
+ # @param [Object] Object to be compared
133
+ def eql?(o)
134
+ self == o
135
+ end
136
+
137
+ # Calculates hash code according to all attributes.
138
+ # @return [Integer] Hash code
139
+ def hash
140
+ [count, _next, previous, results].hash
141
+ end
142
+
143
+ # Builds the object from hash
144
+ # @param [Hash] attributes Model attributes in the form of hash
145
+ # @return [Object] Returns the model itself
146
+ def self.build_from_hash(attributes)
147
+ return nil unless attributes.is_a?(Hash)
148
+ attributes = attributes.transform_keys(&:to_sym)
149
+ transformed_hash = {}
150
+ openapi_types.each_pair do |key, type|
151
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
152
+ transformed_hash["#{key}"] = nil
153
+ elsif type =~ /\AArray<(.*)>/i
154
+ # check to ensure the input is an array given that the attribute
155
+ # is documented as an array but the input is not
156
+ if attributes[attribute_map[key]].is_a?(Array)
157
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
158
+ end
159
+ elsif !attributes[attribute_map[key]].nil?
160
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
161
+ end
162
+ end
163
+ new(transformed_hash)
164
+ end
165
+
166
+ # Deserializes the data based on type
167
+ # @param string type Data type
168
+ # @param string value Value to be deserialized
169
+ # @return [Object] Deserialized data
170
+ def self._deserialize(type, value)
171
+ case type.to_sym
172
+ when :Time
173
+ Time.parse(value)
174
+ when :Date
175
+ Date.parse(value)
176
+ when :String
177
+ value.to_s
178
+ when :Integer
179
+ value.to_i
180
+ when :Float
181
+ value.to_f
182
+ when :Boolean
183
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
184
+ true
185
+ else
186
+ false
187
+ end
188
+ when :Object
189
+ # generic object (usually a Hash), return directly
190
+ value
191
+ when /\AArray<(?<inner_type>.+)>\z/
192
+ inner_type = Regexp.last_match[:inner_type]
193
+ value.map { |v| _deserialize(inner_type, v) }
194
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
195
+ k_type = Regexp.last_match[:k_type]
196
+ v_type = Regexp.last_match[:v_type]
197
+ {}.tap do |hash|
198
+ value.each do |k, v|
199
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
200
+ end
201
+ end
202
+ else # model
203
+ # models (e.g. Pet) or oneOf
204
+ klass = PulpMavenClient.const_get(type)
205
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
206
+ end
207
+ end
208
+
209
+ # Returns the string representation of the object
210
+ # @return [String] String presentation of the object
211
+ def to_s
212
+ to_hash.to_s
213
+ end
214
+
215
+ # to_body is an alias to to_hash (backward compatibility)
216
+ # @return [Hash] Returns the object in the form of hash
217
+ def to_body
218
+ to_hash
219
+ end
220
+
221
+ # Returns the object in the form of hash
222
+ # @return [Hash] Returns the object in the form of hash
223
+ def to_hash
224
+ hash = {}
225
+ self.class.attribute_map.each_pair do |attr, param|
226
+ value = self.send(attr)
227
+ if value.nil?
228
+ is_nullable = self.class.openapi_nullable.include?(attr)
229
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
230
+ end
231
+
232
+ hash[param] = _to_hash(value)
233
+ end
234
+ hash
235
+ end
236
+
237
+ # Outputs non-array value in the form of hash
238
+ # For object, use to_hash. Otherwise, just return the value
239
+ # @param [Object] value Any valid value
240
+ # @return [Hash] Returns the value in the form of hash
241
+ def _to_hash(value)
242
+ if value.is_a?(Array)
243
+ value.compact.map { |v| _to_hash(v) }
244
+ elsif value.is_a?(Hash)
245
+ {}.tap do |hash|
246
+ value.each { |k, v| hash[k] = _to_hash(v) }
247
+ end
248
+ elsif value.respond_to? :to_hash
249
+ value.to_hash
250
+ else
251
+ value
252
+ end
253
+ end
254
+
255
+ end
256
+
257
+ end
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module PulpMavenClient
17
- # Base serializer for use with [pulpcore.app.models.Model][] This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
17
+ # Base serializer for use with [pulpcore.app.models.Model][] This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the `ref_name` attribute in the ModelSerializers's `Meta` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
18
18
  class RepositoryAddRemoveContent
19
19
  # A list of content units to add to a new repository version. This content is added after remove_content_units are removed.
20
20
  attr_accessor :add_content_units
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module PulpMavenClient
17
- # Base serializer for use with [pulpcore.app.models.Model][] This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
17
+ # Base serializer for use with [pulpcore.app.models.Model][] This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the `ref_name` attribute in the ModelSerializers's `Meta` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
18
18
  class RepositoryVersionResponse
19
19
  attr_accessor :pulp_href
20
20
 
@@ -11,5 +11,5 @@ Generator version: 7.10.0
11
11
  =end
12
12
 
13
13
  module PulpMavenClient
14
- VERSION = '0.25.1'
14
+ VERSION = '0.27.0'
15
15
  end
@@ -22,6 +22,7 @@ require 'pulp_maven_client/models/content_summary_response'
22
22
  require 'pulp_maven_client/models/maven_maven_artifact_response'
23
23
  require 'pulp_maven_client/models/maven_maven_distribution'
24
24
  require 'pulp_maven_client/models/maven_maven_distribution_response'
25
+ require 'pulp_maven_client/models/maven_maven_index_page_response'
25
26
  require 'pulp_maven_client/models/maven_maven_metadata_response'
26
27
  require 'pulp_maven_client/models/maven_maven_package_response'
27
28
  require 'pulp_maven_client/models/maven_maven_remote'
@@ -29,13 +30,18 @@ require 'pulp_maven_client/models/maven_maven_remote_response'
29
30
  require 'pulp_maven_client/models/maven_maven_remote_response_hidden_fields_inner'
30
31
  require 'pulp_maven_client/models/maven_maven_repository'
31
32
  require 'pulp_maven_client/models/maven_maven_repository_response'
33
+ require 'pulp_maven_client/models/maven_package_release_response'
34
+ require 'pulp_maven_client/models/maven_repository_metrics_response'
35
+ require 'pulp_maven_client/models/maven_repository_package_response'
32
36
  require 'pulp_maven_client/models/my_permissions_response'
33
37
  require 'pulp_maven_client/models/nested_role'
34
38
  require 'pulp_maven_client/models/nested_role_response'
35
39
  require 'pulp_maven_client/models/object_roles_response'
40
+ require 'pulp_maven_client/models/paginated_maven_repository_package_list_response'
36
41
  require 'pulp_maven_client/models/paginated_repository_version_response_list'
37
42
  require 'pulp_maven_client/models/paginatedmaven_maven_artifact_response_list'
38
43
  require 'pulp_maven_client/models/paginatedmaven_maven_distribution_response_list'
44
+ require 'pulp_maven_client/models/paginatedmaven_maven_index_page_response_list'
39
45
  require 'pulp_maven_client/models/paginatedmaven_maven_metadata_response_list'
40
46
  require 'pulp_maven_client/models/paginatedmaven_maven_package_response_list'
41
47
  require 'pulp_maven_client/models/paginatedmaven_maven_remote_response_list'
@@ -57,6 +63,7 @@ require 'pulp_maven_client/models/unset_label_response'
57
63
 
58
64
  # APIs
59
65
  require 'pulp_maven_client/api/content_artifact_api'
66
+ require 'pulp_maven_client/api/content_maven_index_page_api'
60
67
  require 'pulp_maven_client/api/content_metadata_api'
61
68
  require 'pulp_maven_client/api/content_package_api'
62
69
  require 'pulp_maven_client/api/distributions_maven_api'
@@ -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
+ Generator version: 7.10.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PulpMavenClient::ContentMavenIndexPageApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'ContentMavenIndexPageApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PulpMavenClient::ContentMavenIndexPageApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ContentMavenIndexPageApi' do
30
+ it 'should create an instance of ContentMavenIndexPageApi' do
31
+ expect(@api_instance).to be_instance_of(PulpMavenClient::ContentMavenIndexPageApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for list
36
+ # List maven index pages
37
+ # A read-only ViewSet for MavenIndexPage.
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
40
+ # @option opts [Integer] :limit Number of results to return per page.
41
+ # @option opts [Integer] :offset The initial index from which to return the results.
42
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
43
+ # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
44
+ # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
45
+ # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
46
+ # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
47
+ # @option opts [String] :pulp_label_select Filter labels by search string
48
+ # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
49
+ # @option opts [String] :repository_version
50
+ # @option opts [String] :repository_version_added
51
+ # @option opts [String] :repository_version_removed
52
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
53
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
54
+ # @return [PaginatedmavenMavenIndexPageResponseList]
55
+ describe 'list test' do
56
+ it 'should work' do
57
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
58
+ end
59
+ end
60
+
61
+ # unit tests for read
62
+ # Inspect a maven index page
63
+ # A read-only ViewSet for MavenIndexPage.
64
+ # @param maven_maven_index_page_href
65
+ # @param [Hash] opts the optional parameters
66
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
67
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
68
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
69
+ # @return [MavenMavenIndexPageResponse]
70
+ describe 'read test' do
71
+ it 'should work' do
72
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
73
+ end
74
+ end
75
+
76
+ # unit tests for set_label
77
+ # Set a label
78
+ # Set a single pulp_label on the object to a specific value or null.
79
+ # @param maven_maven_index_page_href
80
+ # @param set_label
81
+ # @param [Hash] opts the optional parameters
82
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
83
+ # @return [SetLabelResponse]
84
+ describe 'set_label test' do
85
+ it 'should work' do
86
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
87
+ end
88
+ end
89
+
90
+ # unit tests for unset_label
91
+ # Unset a label
92
+ # Unset a single pulp_label on the object.
93
+ # @param maven_maven_index_page_href
94
+ # @param unset_label
95
+ # @param [Hash] opts the optional parameters
96
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
97
+ # @return [UnsetLabelResponse]
98
+ describe 'unset_label test' do
99
+ it 'should work' do
100
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
101
+ end
102
+ end
103
+
104
+ end
@@ -38,6 +38,8 @@ describe 'ContentPackageApi' do
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
40
40
  # @option opts [String] :artifact_id Filter results where artifact_id matches value
41
+ # @option opts [String] :base_version Match units whose version strips to this logical version (same suffix as collapse_builds: \\.[a-zA-Z]+-\\d+$). 5.3.18 matches 5.3.18 and 5.3.18.rhlw-00003, but not 5.3.180.
42
+ # @option opts [Boolean] :collapse_builds When true, collapse rebuilds of the same logical version: strip a trailing suffix matching \\.[a-zA-Z]+-\\d+$ from version, then keep one MavenPackage per (group_id, artifact_id, base_version) with the latest pulp_created. Default false.
41
43
  # @option opts [String] :group_id Filter results where group_id matches value
42
44
  # @option opts [Integer] :limit Number of results to return per page.
43
45
  # @option opts [String] :name Filter results where name matches value
@@ -54,6 +56,7 @@ describe 'ContentPackageApi' do
54
56
  # @option opts [String] :repository_version_added
55
57
  # @option opts [String] :repository_version_removed
56
58
  # @option opts [String] :version Filter results where version matches value
59
+ # @option opts [String] :version__startswith Filter results where version starts with value
57
60
  # @option opts [Array<String>] :fields A list of fields to include in the response.
58
61
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
59
62
  # @return [PaginatedmavenMavenPackageResponseList]
@@ -151,6 +151,22 @@ describe 'RepositoriesMavenApi' do
151
151
  end
152
152
  end
153
153
 
154
+ # unit tests for metrics
155
+ # Repository metrics
156
+ # Distinct counts for MavenPackage content in a repository version (latest complete version if repository_version is omitted). package_count is distinct (group_id, artifact_id). version_count is distinct (group_id, artifact_id, base_version) after rebuild-suffix strip. build_count is distinct (group_id, artifact_id, full version). Counts use MavenPackage (POM-backed GAV), not MavenArtifact files.
157
+ # @param maven_maven_repository_href
158
+ # @param [Hash] opts the optional parameters
159
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
160
+ # @option opts [String] :repository_version HREF or PRN of a version of this repository. Defaults to the latest complete version.
161
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
162
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
163
+ # @return [MavenRepositoryMetricsResponse]
164
+ describe 'metrics test' do
165
+ it 'should work' do
166
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
167
+ end
168
+ end
169
+
154
170
  # unit tests for modify
155
171
  # Modify Repository Content
156
172
  # Trigger an asynchronous task to create a new repository version.
@@ -180,6 +196,24 @@ describe 'RepositoriesMavenApi' do
180
196
  end
181
197
  end
182
198
 
199
+ # unit tests for packages
200
+ # List packages
201
+ # Return one row per distinct (group_id, artifact_id) in a repository version (latest complete version if repository_version is omitted). Pagination count is the number of distinct packages, not GAVs. Each row includes versions (logical version keys after rebuild-suffix strip) and latest_releases (newest rebuild per logical version). set(versions) &#x3D;&#x3D;&#x3D; set(latest_releases[].version).
202
+ # @param maven_maven_repository_href
203
+ # @param [Hash] opts the optional parameters
204
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
205
+ # @option opts [String] :artifact_id__istartswith Case-insensitive prefix on artifact_id.
206
+ # @option opts [String] :group_id__istartswith Case-insensitive prefix on group_id.
207
+ # @option opts [String] :repository_version HREF or PRN of a version of this repository. Defaults to the latest complete version.
208
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
209
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
210
+ # @return [PaginatedMavenRepositoryPackageListResponse]
211
+ describe 'packages test' do
212
+ it 'should work' do
213
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
214
+ end
215
+ end
216
+
183
217
  # unit tests for partial_update
184
218
  # Update a maven repository
185
219
  # Update the entity partially and trigger an asynchronous task if necessary
@@ -223,6 +257,19 @@ describe 'RepositoriesMavenApi' do
223
257
  end
224
258
  end
225
259
 
260
+ # unit tests for repair_index_pages
261
+ # Repair index pages
262
+ # Trigger an asynchronous task to generate (or regenerate) HTML directory index pages for every directory in the latest repository version. This is a one-time catch-up for repositories created before the pre-generation feature was deployed. After the task completes every directory URL will be served by a pre-generated page rather than the on-demand fallback.
263
+ # @param maven_maven_repository_href
264
+ # @param [Hash] opts the optional parameters
265
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
266
+ # @return [AsyncOperationResponse]
267
+ describe 'repair_index_pages test' do
268
+ it 'should work' do
269
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
270
+ end
271
+ end
272
+
226
273
  # unit tests for repair_metadata
227
274
  # Repair metadata
228
275
  # Trigger an asynchronous task to regenerate all maven-metadata.xml files and their checksums for every artifact in the repository.
@@ -0,0 +1,78 @@
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
+ Generator version: 7.10.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for PulpMavenClient::MavenMavenIndexPageResponse
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe PulpMavenClient::MavenMavenIndexPageResponse do
21
+ let(:instance) { PulpMavenClient::MavenMavenIndexPageResponse.new }
22
+
23
+ describe 'test an instance of MavenMavenIndexPageResponse' do
24
+ it 'should create an instance of MavenMavenIndexPageResponse' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(PulpMavenClient::MavenMavenIndexPageResponse)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "pulp_href"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "prn"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "pulp_created"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ describe 'test attribute "pulp_last_updated"' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
+ end
52
+ end
53
+
54
+ describe 'test attribute "pulp_labels"' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
+ end
58
+ end
59
+
60
+ describe 'test attribute "vuln_report"' do
61
+ it 'should work' do
62
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
63
+ end
64
+ end
65
+
66
+ describe 'test attribute "path"' do
67
+ it 'should work' do
68
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
69
+ end
70
+ end
71
+
72
+ describe 'test attribute "sha256"' do
73
+ it 'should work' do
74
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
75
+ end
76
+ end
77
+
78
+ end
@@ -81,6 +81,12 @@ describe PulpMavenClient::MavenMavenPackageResponse do
81
81
  end
82
82
  end
83
83
 
84
+ describe 'test attribute "base_version"' do
85
+ it 'should work' do
86
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
87
+ end
88
+ end
89
+
84
90
  describe 'test attribute "name"' do
85
91
  it 'should work' do
86
92
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -0,0 +1,48 @@
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
+ Generator version: 7.10.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for PulpMavenClient::MavenPackageReleaseResponse
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe PulpMavenClient::MavenPackageReleaseResponse do
21
+ let(:instance) { PulpMavenClient::MavenPackageReleaseResponse.new }
22
+
23
+ describe 'test an instance of MavenPackageReleaseResponse' do
24
+ it 'should create an instance of MavenPackageReleaseResponse' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(PulpMavenClient::MavenPackageReleaseResponse)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "version"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "release"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "created_at"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ end