pulp_maven_client 0.27.5 → 0.29.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 +4 -4
- data/docs/ContentPackageApi.md +4 -4
- data/docs/MavenMavenPackageResponse.md +1 -1
- data/docs/MavenPackageReleaseResponse.md +1 -1
- data/docs/MavenRepositoryPackageResponse.md +4 -2
- data/docs/RepositoriesMavenApi.md +5 -1
- data/lib/pulp_maven_client/api/content_package_api.rb +4 -4
- data/lib/pulp_maven_client/api/repositories_maven_api.rb +8 -2
- data/lib/pulp_maven_client/models/maven_maven_package_response.rb +1 -1
- data/lib/pulp_maven_client/models/maven_package_release_response.rb +1 -1
- data/lib/pulp_maven_client/models/maven_repository_package_response.rb +16 -3
- data/lib/pulp_maven_client/version.rb +1 -1
- data/spec/api/content_package_api_spec.rb +2 -2
- data/spec/api/repositories_maven_api_spec.rb +3 -1
- data/spec/models/maven_repository_package_response_spec.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d1f52922c87c7d39739bbfde2b3492e57f1616d189f086aeb838cd7e8341b44a
|
|
4
|
+
data.tar.gz: 4ef08f8215b36aebc2b4437916a0704d59a4e4aa64aba3908b06e08bb8ff84e3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 467fb553cd936166170594f5c081c64c12de703ac8d48cfd3220d4235cc1e1a21a52edbc1e410f7403389f16d11f76fea723f596852371e5b6baaf83e56a6870
|
|
7
|
+
data.tar.gz: 838762c51337bb6935619d1a5eef613cdcb67073865c9ff7d22784975e76de06563a89271b14a287fc1cdb827a252a05db64f034e8df2952fb60743b27724e08
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
8
|
|
|
9
9
|
- API version: v3
|
|
10
|
-
- Package version: 0.
|
|
10
|
+
- Package version: 0.29.0
|
|
11
11
|
- Generator version: 7.10.0
|
|
12
12
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
13
13
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
|
@@ -25,16 +25,16 @@ gem build pulp_maven_client.gemspec
|
|
|
25
25
|
Then either install the gem locally:
|
|
26
26
|
|
|
27
27
|
```shell
|
|
28
|
-
gem install ./pulp_maven_client-0.
|
|
28
|
+
gem install ./pulp_maven_client-0.29.0.gem
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
(for development, run `gem install --dev ./pulp_maven_client-0.
|
|
31
|
+
(for development, run `gem install --dev ./pulp_maven_client-0.29.0.gem` to install the development dependencies)
|
|
32
32
|
|
|
33
33
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
34
34
|
|
|
35
35
|
Finally add this to the Gemfile:
|
|
36
36
|
|
|
37
|
-
gem 'pulp_maven_client', '~> 0.
|
|
37
|
+
gem 'pulp_maven_client', '~> 0.29.0'
|
|
38
38
|
|
|
39
39
|
### Install from Git
|
|
40
40
|
|
data/docs/ContentPackageApi.md
CHANGED
|
@@ -34,8 +34,8 @@ api_instance = PulpMavenClient::ContentPackageApi.new
|
|
|
34
34
|
opts = {
|
|
35
35
|
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
|
36
36
|
artifact_id: 'artifact_id_example', # String | Filter results where artifact_id matches value
|
|
37
|
-
base_version: 'base_version_example', # String | Match units whose version strips to this logical version (same suffix as collapse_builds: \\.[a-zA-Z]
|
|
38
|
-
collapse_builds: true, # Boolean | When true, collapse rebuilds of the same logical version: strip a trailing suffix matching \\.[a-zA-Z]
|
|
37
|
+
base_version: 'base_version_example', # String | Match units whose version strips to this logical version (same suffix as collapse_builds: \\.[a-zA-Z]+-[^.]+$). 5.3.17 matches 5.3.17, 5.3.17.rhlw-00001, and 5.3.17.rhlw-00001-n0001, but not 5.3.170.
|
|
38
|
+
collapse_builds: true, # Boolean | When true, collapse rebuilds of the same logical version: strip a trailing suffix matching \\.[a-zA-Z]+-[^.]+$ from version, then keep one MavenPackage per (group_id, artifact_id, base_version) with the latest pulp_created. Default false.
|
|
39
39
|
group_id: 'group_id_example', # String | Filter results where group_id matches value
|
|
40
40
|
limit: 56, # Integer | Number of results to return per page.
|
|
41
41
|
name: 'name_example', # String | Filter results where name matches value
|
|
@@ -90,8 +90,8 @@ end
|
|
|
90
90
|
| ---- | ---- | ----------- | ----- |
|
|
91
91
|
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
92
92
|
| **artifact_id** | **String** | Filter results where artifact_id matches value | [optional] |
|
|
93
|
-
| **base_version** | **String** | Match units whose version strips to this logical version (same suffix as collapse_builds: \\.[a-zA-Z]
|
|
94
|
-
| **collapse_builds** | **Boolean** | When true, collapse rebuilds of the same logical version: strip a trailing suffix matching \\.[a-zA-Z]
|
|
93
|
+
| **base_version** | **String** | Match units whose version strips to this logical version (same suffix as collapse_builds: \\.[a-zA-Z]+-[^.]+$). 5.3.17 matches 5.3.17, 5.3.17.rhlw-00001, and 5.3.17.rhlw-00001-n0001, but not 5.3.170. | [optional] |
|
|
94
|
+
| **collapse_builds** | **Boolean** | When true, collapse rebuilds of the same logical version: strip a trailing suffix matching \\.[a-zA-Z]+-[^.]+$ from version, then keep one MavenPackage per (group_id, artifact_id, base_version) with the latest pulp_created. Default false. | [optional] |
|
|
95
95
|
| **group_id** | **String** | Filter results where group_id matches value | [optional] |
|
|
96
96
|
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
|
97
97
|
| **name** | **String** | Filter results where name matches value | [optional] |
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
| **group_id** | **String** | Group Id of the package. | [optional][readonly] |
|
|
14
14
|
| **artifact_id** | **String** | Artifact Id of the package. | [optional][readonly] |
|
|
15
15
|
| **version** | **String** | Version of the package. | [optional][readonly] |
|
|
16
|
-
| **base_version** | **String** | The package version with a trailing rebuild suffix stripped (matching \\.[a-zA-Z]
|
|
16
|
+
| **base_version** | **String** | The package version with a trailing rebuild suffix stripped (matching \\.[a-zA-Z]+-[^.]+$). Equal to version when no suffix is present. | [optional][readonly] |
|
|
17
17
|
| **name** | **String** | Human-readable name from the POM. | [optional][readonly] |
|
|
18
18
|
| **description** | **String** | Description from the POM. | [optional][readonly] |
|
|
19
19
|
| **packaging** | **String** | Packaging type (jar, war, pom, etc). | [optional][readonly] |
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **version** | **String** | Logical version key (rebuild suffix stripped). | |
|
|
8
|
-
| **release** | **String** | Rebuild/release qualifier within the version line (e.g. rhlw-
|
|
8
|
+
| **release** | **String** | Rebuild/release qualifier within the version line (e.g. rhlw-00001 or rhlw-00001-n0001). Empty when the selected unit has no rebuild suffix. | |
|
|
9
9
|
| **created_at** | **Time** | When this logical version entered the repository: RepositoryContent.pulp_created of the newest rebuild, falling back to the content unit's pulp_created. | |
|
|
10
10
|
|
|
11
11
|
## Example
|
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **group_id** | **String** | Maven groupId. Index rows are unique on GA. | |
|
|
8
8
|
| **artifact_id** | **String** | Maven artifactId. Index rows are unique on GA. | |
|
|
9
|
-
| **
|
|
10
|
-
| **
|
|
9
|
+
| **last_updated** | **Time** | When this package was last updated in the repository: the latest RepositoryContent.pulp_created among all MavenPackage units for this GA (any rebuild), falling back to the content unit's pulp_created. | |
|
|
10
|
+
| **versions** | **Array<String>** | Distinct logical version keys after rebuild-suffix strip, newest first. The set of values matches latest_releases[].version. | |
|
|
11
|
+
| **latest_releases** | [**Array<MavenPackageReleaseResponse>**](MavenPackageReleaseResponse.md) | Newest rebuild per logical version (latest pulp_created), newest version first. set(versions) === set(latest_releases[].version). | |
|
|
11
12
|
|
|
12
13
|
## Example
|
|
13
14
|
|
|
@@ -17,6 +18,7 @@ require 'pulp_maven_client'
|
|
|
17
18
|
instance = PulpMavenClient::MavenRepositoryPackageResponse.new(
|
|
18
19
|
group_id: null,
|
|
19
20
|
artifact_id: null,
|
|
21
|
+
last_updated: null,
|
|
20
22
|
versions: null,
|
|
21
23
|
latest_releases: null
|
|
22
24
|
)
|
|
@@ -790,7 +790,7 @@ end
|
|
|
790
790
|
|
|
791
791
|
List packages
|
|
792
792
|
|
|
793
|
-
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) === set(latest_releases[].version).
|
|
793
|
+
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 last_updated (newest membership among any rebuild), versions (logical version keys after rebuild-suffix strip, newest first), and latest_releases (newest rebuild per logical version, same order). set(versions) === set(latest_releases[].version).
|
|
794
794
|
|
|
795
795
|
### Examples
|
|
796
796
|
|
|
@@ -810,7 +810,9 @@ opts = {
|
|
|
810
810
|
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
|
811
811
|
artifact_id__istartswith: 'artifact_id__istartswith_example', # String | Case-insensitive prefix on artifact_id.
|
|
812
812
|
group_id__istartswith: 'group_id__istartswith_example', # String | Case-insensitive prefix on group_id.
|
|
813
|
+
ordering: ['inner_example'], # Array<String> | Order catalog rows. Allowed: group_id, artifact_id, last_updated. Prefix with '-' for descending. Default is group_id, artifact_id. Ordering by group_id without artifact_id also sorts by artifact_id.
|
|
813
814
|
repository_version: 'repository_version_example', # String | HREF or PRN of a version of this repository. Defaults to the latest complete version.
|
|
815
|
+
search: 'search_example', # String | Case-insensitive package search. Without ':', group_id or artifact_id contains the term (OR). With ':', group_id contains the left part AND artifact_id contains the right part. A third ':' segment (version) is ignored. Empty or ':' is a no-op. Combines with prefix filters using AND.
|
|
814
816
|
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
|
815
817
|
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
|
816
818
|
}
|
|
@@ -850,7 +852,9 @@ end
|
|
|
850
852
|
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
851
853
|
| **artifact_id__istartswith** | **String** | Case-insensitive prefix on artifact_id. | [optional] |
|
|
852
854
|
| **group_id__istartswith** | **String** | Case-insensitive prefix on group_id. | [optional] |
|
|
855
|
+
| **ordering** | [**Array<String>**](String.md) | Order catalog rows. Allowed: group_id, artifact_id, last_updated. Prefix with '-' for descending. Default is group_id, artifact_id. Ordering by group_id without artifact_id also sorts by artifact_id. | [optional] |
|
|
853
856
|
| **repository_version** | **String** | HREF or PRN of a version of this repository. Defaults to the latest complete version. | [optional] |
|
|
857
|
+
| **search** | **String** | Case-insensitive package search. Without ':', group_id or artifact_id contains the term (OR). With ':', group_id contains the left part AND artifact_id contains the right part. A third ':' segment (version) is ignored. Empty or ':' is a no-op. Combines with prefix filters using AND. | [optional] |
|
|
854
858
|
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
|
855
859
|
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
|
856
860
|
|
|
@@ -24,8 +24,8 @@ module PulpMavenClient
|
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
26
26
|
# @option opts [String] :artifact_id Filter results where artifact_id matches value
|
|
27
|
-
# @option opts [String] :base_version Match units whose version strips to this logical version (same suffix as collapse_builds: \\.[a-zA-Z]
|
|
28
|
-
# @option opts [Boolean] :collapse_builds When true, collapse rebuilds of the same logical version: strip a trailing suffix matching \\.[a-zA-Z]
|
|
27
|
+
# @option opts [String] :base_version Match units whose version strips to this logical version (same suffix as collapse_builds: \\.[a-zA-Z]+-[^.]+$). 5.3.17 matches 5.3.17, 5.3.17.rhlw-00001, and 5.3.17.rhlw-00001-n0001, but not 5.3.170.
|
|
28
|
+
# @option opts [Boolean] :collapse_builds When true, collapse rebuilds of the same logical version: strip a trailing suffix matching \\.[a-zA-Z]+-[^.]+$ from version, then keep one MavenPackage per (group_id, artifact_id, base_version) with the latest pulp_created. Default false.
|
|
29
29
|
# @option opts [String] :group_id Filter results where group_id matches value
|
|
30
30
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
31
31
|
# @option opts [String] :name Filter results where name matches value
|
|
@@ -56,8 +56,8 @@ module PulpMavenClient
|
|
|
56
56
|
# @param [Hash] opts the optional parameters
|
|
57
57
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
58
58
|
# @option opts [String] :artifact_id Filter results where artifact_id matches value
|
|
59
|
-
# @option opts [String] :base_version Match units whose version strips to this logical version (same suffix as collapse_builds: \\.[a-zA-Z]
|
|
60
|
-
# @option opts [Boolean] :collapse_builds When true, collapse rebuilds of the same logical version: strip a trailing suffix matching \\.[a-zA-Z]
|
|
59
|
+
# @option opts [String] :base_version Match units whose version strips to this logical version (same suffix as collapse_builds: \\.[a-zA-Z]+-[^.]+$). 5.3.17 matches 5.3.17, 5.3.17.rhlw-00001, and 5.3.17.rhlw-00001-n0001, but not 5.3.170.
|
|
60
|
+
# @option opts [Boolean] :collapse_builds When true, collapse rebuilds of the same logical version: strip a trailing suffix matching \\.[a-zA-Z]+-[^.]+$ from version, then keep one MavenPackage per (group_id, artifact_id, base_version) with the latest pulp_created. Default false.
|
|
61
61
|
# @option opts [String] :group_id Filter results where group_id matches value
|
|
62
62
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
63
63
|
# @option opts [String] :name Filter results where name matches value
|
|
@@ -785,13 +785,15 @@ module PulpMavenClient
|
|
|
785
785
|
end
|
|
786
786
|
|
|
787
787
|
# List packages
|
|
788
|
-
# 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) === set(latest_releases[].version).
|
|
788
|
+
# 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 last_updated (newest membership among any rebuild), versions (logical version keys after rebuild-suffix strip, newest first), and latest_releases (newest rebuild per logical version, same order). set(versions) === set(latest_releases[].version).
|
|
789
789
|
# @param maven_maven_repository_href [String]
|
|
790
790
|
# @param [Hash] opts the optional parameters
|
|
791
791
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
792
792
|
# @option opts [String] :artifact_id__istartswith Case-insensitive prefix on artifact_id.
|
|
793
793
|
# @option opts [String] :group_id__istartswith Case-insensitive prefix on group_id.
|
|
794
|
+
# @option opts [Array<String>] :ordering Order catalog rows. Allowed: group_id, artifact_id, last_updated. Prefix with '-' for descending. Default is group_id, artifact_id. Ordering by group_id without artifact_id also sorts by artifact_id.
|
|
794
795
|
# @option opts [String] :repository_version HREF or PRN of a version of this repository. Defaults to the latest complete version.
|
|
796
|
+
# @option opts [String] :search Case-insensitive package search. Without ':', group_id or artifact_id contains the term (OR). With ':', group_id contains the left part AND artifact_id contains the right part. A third ':' segment (version) is ignored. Empty or ':' is a no-op. Combines with prefix filters using AND.
|
|
795
797
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
796
798
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
797
799
|
# @return [PaginatedMavenRepositoryPackageListResponse]
|
|
@@ -801,13 +803,15 @@ module PulpMavenClient
|
|
|
801
803
|
end
|
|
802
804
|
|
|
803
805
|
# List packages
|
|
804
|
-
# 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) === set(latest_releases[].version).
|
|
806
|
+
# 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 last_updated (newest membership among any rebuild), versions (logical version keys after rebuild-suffix strip, newest first), and latest_releases (newest rebuild per logical version, same order). set(versions) === set(latest_releases[].version).
|
|
805
807
|
# @param maven_maven_repository_href [String]
|
|
806
808
|
# @param [Hash] opts the optional parameters
|
|
807
809
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
808
810
|
# @option opts [String] :artifact_id__istartswith Case-insensitive prefix on artifact_id.
|
|
809
811
|
# @option opts [String] :group_id__istartswith Case-insensitive prefix on group_id.
|
|
812
|
+
# @option opts [Array<String>] :ordering Order catalog rows. Allowed: group_id, artifact_id, last_updated. Prefix with '-' for descending. Default is group_id, artifact_id. Ordering by group_id without artifact_id also sorts by artifact_id.
|
|
810
813
|
# @option opts [String] :repository_version HREF or PRN of a version of this repository. Defaults to the latest complete version.
|
|
814
|
+
# @option opts [String] :search Case-insensitive package search. Without ':', group_id or artifact_id contains the term (OR). With ':', group_id contains the left part AND artifact_id contains the right part. A third ':' segment (version) is ignored. Empty or ':' is a no-op. Combines with prefix filters using AND.
|
|
811
815
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
812
816
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
813
817
|
# @return [Array<(PaginatedMavenRepositoryPackageListResponse, Integer, Hash)>] PaginatedMavenRepositoryPackageListResponse data, response status code and response headers
|
|
@@ -826,7 +830,9 @@ module PulpMavenClient
|
|
|
826
830
|
query_params = opts[:query_params] || {}
|
|
827
831
|
query_params[:'artifact_id__istartswith'] = opts[:'artifact_id__istartswith'] if !opts[:'artifact_id__istartswith'].nil?
|
|
828
832
|
query_params[:'group_id__istartswith'] = opts[:'group_id__istartswith'] if !opts[:'group_id__istartswith'].nil?
|
|
833
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :multi) if !opts[:'ordering'].nil?
|
|
829
834
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
|
835
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
830
836
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
|
831
837
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
|
832
838
|
|
|
@@ -41,7 +41,7 @@ module PulpMavenClient
|
|
|
41
41
|
# Version of the package.
|
|
42
42
|
attr_accessor :version
|
|
43
43
|
|
|
44
|
-
# The package version with a trailing rebuild suffix stripped (matching \\.[a-zA-Z]
|
|
44
|
+
# The package version with a trailing rebuild suffix stripped (matching \\.[a-zA-Z]+-[^.]+$). Equal to version when no suffix is present.
|
|
45
45
|
attr_accessor :base_version
|
|
46
46
|
|
|
47
47
|
# Human-readable name from the POM.
|
|
@@ -19,7 +19,7 @@ module PulpMavenClient
|
|
|
19
19
|
# Logical version key (rebuild suffix stripped).
|
|
20
20
|
attr_accessor :version
|
|
21
21
|
|
|
22
|
-
# Rebuild/release qualifier within the version line (e.g. rhlw-
|
|
22
|
+
# Rebuild/release qualifier within the version line (e.g. rhlw-00001 or rhlw-00001-n0001). Empty when the selected unit has no rebuild suffix.
|
|
23
23
|
attr_accessor :release
|
|
24
24
|
|
|
25
25
|
# When this logical version entered the repository: RepositoryContent.pulp_created of the newest rebuild, falling back to the content unit's pulp_created.
|
|
@@ -22,10 +22,13 @@ module PulpMavenClient
|
|
|
22
22
|
# Maven artifactId. Index rows are unique on GA.
|
|
23
23
|
attr_accessor :artifact_id
|
|
24
24
|
|
|
25
|
-
#
|
|
25
|
+
# When this package was last updated in the repository: the latest RepositoryContent.pulp_created among all MavenPackage units for this GA (any rebuild), falling back to the content unit's pulp_created.
|
|
26
|
+
attr_accessor :last_updated
|
|
27
|
+
|
|
28
|
+
# Distinct logical version keys after rebuild-suffix strip, newest first. The set of values matches latest_releases[].version.
|
|
26
29
|
attr_accessor :versions
|
|
27
30
|
|
|
28
|
-
# Newest rebuild per logical version (latest pulp_created). set(versions) === set(latest_releases[].version).
|
|
31
|
+
# Newest rebuild per logical version (latest pulp_created), newest version first. set(versions) === set(latest_releases[].version).
|
|
29
32
|
attr_accessor :latest_releases
|
|
30
33
|
|
|
31
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -33,6 +36,7 @@ module PulpMavenClient
|
|
|
33
36
|
{
|
|
34
37
|
:'group_id' => :'group_id',
|
|
35
38
|
:'artifact_id' => :'artifact_id',
|
|
39
|
+
:'last_updated' => :'last_updated',
|
|
36
40
|
:'versions' => :'versions',
|
|
37
41
|
:'latest_releases' => :'latest_releases'
|
|
38
42
|
}
|
|
@@ -48,6 +52,7 @@ module PulpMavenClient
|
|
|
48
52
|
{
|
|
49
53
|
:'group_id' => :'String',
|
|
50
54
|
:'artifact_id' => :'String',
|
|
55
|
+
:'last_updated' => :'Time',
|
|
51
56
|
:'versions' => :'Array<String>',
|
|
52
57
|
:'latest_releases' => :'Array<MavenPackageReleaseResponse>'
|
|
53
58
|
}
|
|
@@ -56,6 +61,7 @@ module PulpMavenClient
|
|
|
56
61
|
# List of attributes with nullable: true
|
|
57
62
|
def self.openapi_nullable
|
|
58
63
|
Set.new([
|
|
64
|
+
:'last_updated',
|
|
59
65
|
])
|
|
60
66
|
end
|
|
61
67
|
|
|
@@ -86,6 +92,12 @@ module PulpMavenClient
|
|
|
86
92
|
self.artifact_id = nil
|
|
87
93
|
end
|
|
88
94
|
|
|
95
|
+
if attributes.key?(:'last_updated')
|
|
96
|
+
self.last_updated = attributes[:'last_updated']
|
|
97
|
+
else
|
|
98
|
+
self.last_updated = nil
|
|
99
|
+
end
|
|
100
|
+
|
|
89
101
|
if attributes.key?(:'versions')
|
|
90
102
|
if (value = attributes[:'versions']).is_a?(Array)
|
|
91
103
|
self.versions = value
|
|
@@ -145,6 +157,7 @@ module PulpMavenClient
|
|
|
145
157
|
self.class == o.class &&
|
|
146
158
|
group_id == o.group_id &&
|
|
147
159
|
artifact_id == o.artifact_id &&
|
|
160
|
+
last_updated == o.last_updated &&
|
|
148
161
|
versions == o.versions &&
|
|
149
162
|
latest_releases == o.latest_releases
|
|
150
163
|
end
|
|
@@ -158,7 +171,7 @@ module PulpMavenClient
|
|
|
158
171
|
# Calculates hash code according to all attributes.
|
|
159
172
|
# @return [Integer] Hash code
|
|
160
173
|
def hash
|
|
161
|
-
[group_id, artifact_id, versions, latest_releases].hash
|
|
174
|
+
[group_id, artifact_id, last_updated, versions, latest_releases].hash
|
|
162
175
|
end
|
|
163
176
|
|
|
164
177
|
# Builds the object from hash
|
|
@@ -38,8 +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]
|
|
42
|
-
# @option opts [Boolean] :collapse_builds When true, collapse rebuilds of the same logical version: strip a trailing suffix matching \\.[a-zA-Z]
|
|
41
|
+
# @option opts [String] :base_version Match units whose version strips to this logical version (same suffix as collapse_builds: \\.[a-zA-Z]+-[^.]+$). 5.3.17 matches 5.3.17, 5.3.17.rhlw-00001, and 5.3.17.rhlw-00001-n0001, but not 5.3.170.
|
|
42
|
+
# @option opts [Boolean] :collapse_builds When true, collapse rebuilds of the same logical version: strip a trailing suffix matching \\.[a-zA-Z]+-[^.]+$ from version, then keep one MavenPackage per (group_id, artifact_id, base_version) with the latest pulp_created. Default false.
|
|
43
43
|
# @option opts [String] :group_id Filter results where group_id matches value
|
|
44
44
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
45
45
|
# @option opts [String] :name Filter results where name matches value
|
|
@@ -198,13 +198,15 @@ describe 'RepositoriesMavenApi' do
|
|
|
198
198
|
|
|
199
199
|
# unit tests for packages
|
|
200
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) === set(latest_releases[].version).
|
|
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 last_updated (newest membership among any rebuild), versions (logical version keys after rebuild-suffix strip, newest first), and latest_releases (newest rebuild per logical version, same order). set(versions) === set(latest_releases[].version).
|
|
202
202
|
# @param maven_maven_repository_href
|
|
203
203
|
# @param [Hash] opts the optional parameters
|
|
204
204
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
205
205
|
# @option opts [String] :artifact_id__istartswith Case-insensitive prefix on artifact_id.
|
|
206
206
|
# @option opts [String] :group_id__istartswith Case-insensitive prefix on group_id.
|
|
207
|
+
# @option opts [Array<String>] :ordering Order catalog rows. Allowed: group_id, artifact_id, last_updated. Prefix with '-' for descending. Default is group_id, artifact_id. Ordering by group_id without artifact_id also sorts by artifact_id.
|
|
207
208
|
# @option opts [String] :repository_version HREF or PRN of a version of this repository. Defaults to the latest complete version.
|
|
209
|
+
# @option opts [String] :search Case-insensitive package search. Without ':', group_id or artifact_id contains the term (OR). With ':', group_id contains the left part AND artifact_id contains the right part. A third ':' segment (version) is ignored. Empty or ':' is a no-op. Combines with prefix filters using AND.
|
|
208
210
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
209
211
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
210
212
|
# @return [PaginatedMavenRepositoryPackageListResponse]
|
|
@@ -39,6 +39,12 @@ describe PulpMavenClient::MavenRepositoryPackageResponse do
|
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
+
describe 'test attribute "last_updated"' 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
|
+
|
|
42
48
|
describe 'test attribute "versions"' do
|
|
43
49
|
it 'should work' do
|
|
44
50
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|