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
@@ -10,11 +10,14 @@ All URIs are relative to *http://localhost:24817*
10
10
  | [**delete**](RepositoriesMavenApi.md#delete) | **DELETE** {maven_maven_repository_href} | Delete a maven repository |
11
11
  | [**list**](RepositoriesMavenApi.md#list) | **GET** /pulp/api/v3/repositories/maven/maven/ | List maven repositorys |
12
12
  | [**list_roles**](RepositoriesMavenApi.md#list_roles) | **GET** {maven_maven_repository_href}list_roles/ | List roles |
13
+ | [**metrics**](RepositoriesMavenApi.md#metrics) | **GET** {maven_maven_repository_href}metrics/ | Repository metrics |
13
14
  | [**modify**](RepositoriesMavenApi.md#modify) | **POST** {maven_maven_repository_href}modify/ | Modify Repository Content |
14
15
  | [**my_permissions**](RepositoriesMavenApi.md#my_permissions) | **GET** {maven_maven_repository_href}my_permissions/ | List user permissions |
16
+ | [**packages**](RepositoriesMavenApi.md#packages) | **GET** {maven_maven_repository_href}packages/ | List packages |
15
17
  | [**partial_update**](RepositoriesMavenApi.md#partial_update) | **PATCH** {maven_maven_repository_href} | Update a maven repository |
16
18
  | [**read**](RepositoriesMavenApi.md#read) | **GET** {maven_maven_repository_href} | Inspect a maven repository |
17
19
  | [**remove_role**](RepositoriesMavenApi.md#remove_role) | **POST** {maven_maven_repository_href}remove_role/ | Remove a role |
20
+ | [**repair_index_pages**](RepositoriesMavenApi.md#repair_index_pages) | **POST** {maven_maven_repository_href}repair_index_pages/ | Repair index pages |
18
21
  | [**repair_metadata**](RepositoriesMavenApi.md#repair_metadata) | **POST** {maven_maven_repository_href}repair_metadata/ | Repair metadata |
19
22
  | [**set_label**](RepositoriesMavenApi.md#set_label) | **POST** {maven_maven_repository_href}set_label/ | Set a label |
20
23
  | [**unset_label**](RepositoriesMavenApi.md#unset_label) | **POST** {maven_maven_repository_href}unset_label/ | Unset a label |
@@ -547,6 +550,86 @@ end
547
550
  - **Accept**: application/json
548
551
 
549
552
 
553
+ ## metrics
554
+
555
+ > <MavenRepositoryMetricsResponse> metrics(maven_maven_repository_href, opts)
556
+
557
+ Repository metrics
558
+
559
+ 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.
560
+
561
+ ### Examples
562
+
563
+ ```ruby
564
+ require 'time'
565
+ require 'pulp_maven_client'
566
+ # setup authorization
567
+ PulpMavenClient.configure do |config|
568
+ # Configure HTTP basic authorization: basicAuth
569
+ config.username = 'YOUR USERNAME'
570
+ config.password = 'YOUR PASSWORD'
571
+ end
572
+
573
+ api_instance = PulpMavenClient::RepositoriesMavenApi.new
574
+ maven_maven_repository_href = 'maven_maven_repository_href_example' # String |
575
+ opts = {
576
+ x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
577
+ repository_version: 'repository_version_example', # String | HREF or PRN of a version of this repository. Defaults to the latest complete version.
578
+ fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
579
+ exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
580
+ }
581
+
582
+ begin
583
+ # Repository metrics
584
+ result = api_instance.metrics(maven_maven_repository_href, opts)
585
+ p result
586
+ rescue PulpMavenClient::ApiError => e
587
+ puts "Error when calling RepositoriesMavenApi->metrics: #{e}"
588
+ end
589
+ ```
590
+
591
+ #### Using the metrics_with_http_info variant
592
+
593
+ This returns an Array which contains the response data, status code and headers.
594
+
595
+ > <Array(<MavenRepositoryMetricsResponse>, Integer, Hash)> metrics_with_http_info(maven_maven_repository_href, opts)
596
+
597
+ ```ruby
598
+ begin
599
+ # Repository metrics
600
+ data, status_code, headers = api_instance.metrics_with_http_info(maven_maven_repository_href, opts)
601
+ p status_code # => 2xx
602
+ p headers # => { ... }
603
+ p data # => <MavenRepositoryMetricsResponse>
604
+ rescue PulpMavenClient::ApiError => e
605
+ puts "Error when calling RepositoriesMavenApi->metrics_with_http_info: #{e}"
606
+ end
607
+ ```
608
+
609
+ ### Parameters
610
+
611
+ | Name | Type | Description | Notes |
612
+ | ---- | ---- | ----------- | ----- |
613
+ | **maven_maven_repository_href** | **String** | | |
614
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
615
+ | **repository_version** | **String** | HREF or PRN of a version of this repository. Defaults to the latest complete version. | [optional] |
616
+ | **fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to include in the response. | [optional] |
617
+ | **exclude_fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to exclude from the response. | [optional] |
618
+
619
+ ### Return type
620
+
621
+ [**MavenRepositoryMetricsResponse**](MavenRepositoryMetricsResponse.md)
622
+
623
+ ### Authorization
624
+
625
+ [basicAuth](../README.md#basicAuth)
626
+
627
+ ### HTTP request headers
628
+
629
+ - **Content-Type**: Not defined
630
+ - **Accept**: application/json
631
+
632
+
550
633
  ## modify
551
634
 
552
635
  > <AsyncOperationResponse> modify(maven_maven_repository_href, repository_add_remove_content, opts)
@@ -701,6 +784,90 @@ end
701
784
  - **Accept**: application/json
702
785
 
703
786
 
787
+ ## packages
788
+
789
+ > <PaginatedMavenRepositoryPackageListResponse> packages(maven_maven_repository_href, opts)
790
+
791
+ List packages
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).
794
+
795
+ ### Examples
796
+
797
+ ```ruby
798
+ require 'time'
799
+ require 'pulp_maven_client'
800
+ # setup authorization
801
+ PulpMavenClient.configure do |config|
802
+ # Configure HTTP basic authorization: basicAuth
803
+ config.username = 'YOUR USERNAME'
804
+ config.password = 'YOUR PASSWORD'
805
+ end
806
+
807
+ api_instance = PulpMavenClient::RepositoriesMavenApi.new
808
+ maven_maven_repository_href = 'maven_maven_repository_href_example' # String |
809
+ opts = {
810
+ x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
811
+ artifact_id__istartswith: 'artifact_id__istartswith_example', # String | Case-insensitive prefix on artifact_id.
812
+ group_id__istartswith: 'group_id__istartswith_example', # String | Case-insensitive prefix on group_id.
813
+ repository_version: 'repository_version_example', # String | HREF or PRN of a version of this repository. Defaults to the latest complete version.
814
+ fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
815
+ exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
816
+ }
817
+
818
+ begin
819
+ # List packages
820
+ result = api_instance.packages(maven_maven_repository_href, opts)
821
+ p result
822
+ rescue PulpMavenClient::ApiError => e
823
+ puts "Error when calling RepositoriesMavenApi->packages: #{e}"
824
+ end
825
+ ```
826
+
827
+ #### Using the packages_with_http_info variant
828
+
829
+ This returns an Array which contains the response data, status code and headers.
830
+
831
+ > <Array(<PaginatedMavenRepositoryPackageListResponse>, Integer, Hash)> packages_with_http_info(maven_maven_repository_href, opts)
832
+
833
+ ```ruby
834
+ begin
835
+ # List packages
836
+ data, status_code, headers = api_instance.packages_with_http_info(maven_maven_repository_href, opts)
837
+ p status_code # => 2xx
838
+ p headers # => { ... }
839
+ p data # => <PaginatedMavenRepositoryPackageListResponse>
840
+ rescue PulpMavenClient::ApiError => e
841
+ puts "Error when calling RepositoriesMavenApi->packages_with_http_info: #{e}"
842
+ end
843
+ ```
844
+
845
+ ### Parameters
846
+
847
+ | Name | Type | Description | Notes |
848
+ | ---- | ---- | ----------- | ----- |
849
+ | **maven_maven_repository_href** | **String** | | |
850
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
851
+ | **artifact_id__istartswith** | **String** | Case-insensitive prefix on artifact_id. | [optional] |
852
+ | **group_id__istartswith** | **String** | Case-insensitive prefix on group_id. | [optional] |
853
+ | **repository_version** | **String** | HREF or PRN of a version of this repository. Defaults to the latest complete version. | [optional] |
854
+ | **fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to include in the response. | [optional] |
855
+ | **exclude_fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to exclude from the response. | [optional] |
856
+
857
+ ### Return type
858
+
859
+ [**PaginatedMavenRepositoryPackageListResponse**](PaginatedMavenRepositoryPackageListResponse.md)
860
+
861
+ ### Authorization
862
+
863
+ [basicAuth](../README.md#basicAuth)
864
+
865
+ ### HTTP request headers
866
+
867
+ - **Content-Type**: Not defined
868
+ - **Accept**: application/json
869
+
870
+
704
871
  ## partial_update
705
872
 
706
873
  > <MavenMavenRepositoryResponse> partial_update(maven_maven_repository_href, patchedmaven_maven_repository, opts)
@@ -931,6 +1098,80 @@ end
931
1098
  - **Accept**: application/json
932
1099
 
933
1100
 
1101
+ ## repair_index_pages
1102
+
1103
+ > <AsyncOperationResponse> repair_index_pages(maven_maven_repository_href, opts)
1104
+
1105
+ Repair index pages
1106
+
1107
+ 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.
1108
+
1109
+ ### Examples
1110
+
1111
+ ```ruby
1112
+ require 'time'
1113
+ require 'pulp_maven_client'
1114
+ # setup authorization
1115
+ PulpMavenClient.configure do |config|
1116
+ # Configure HTTP basic authorization: basicAuth
1117
+ config.username = 'YOUR USERNAME'
1118
+ config.password = 'YOUR PASSWORD'
1119
+ end
1120
+
1121
+ api_instance = PulpMavenClient::RepositoriesMavenApi.new
1122
+ maven_maven_repository_href = 'maven_maven_repository_href_example' # String |
1123
+ opts = {
1124
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
1125
+ }
1126
+
1127
+ begin
1128
+ # Repair index pages
1129
+ result = api_instance.repair_index_pages(maven_maven_repository_href, opts)
1130
+ p result
1131
+ rescue PulpMavenClient::ApiError => e
1132
+ puts "Error when calling RepositoriesMavenApi->repair_index_pages: #{e}"
1133
+ end
1134
+ ```
1135
+
1136
+ #### Using the repair_index_pages_with_http_info variant
1137
+
1138
+ This returns an Array which contains the response data, status code and headers.
1139
+
1140
+ > <Array(<AsyncOperationResponse>, Integer, Hash)> repair_index_pages_with_http_info(maven_maven_repository_href, opts)
1141
+
1142
+ ```ruby
1143
+ begin
1144
+ # Repair index pages
1145
+ data, status_code, headers = api_instance.repair_index_pages_with_http_info(maven_maven_repository_href, opts)
1146
+ p status_code # => 2xx
1147
+ p headers # => { ... }
1148
+ p data # => <AsyncOperationResponse>
1149
+ rescue PulpMavenClient::ApiError => e
1150
+ puts "Error when calling RepositoriesMavenApi->repair_index_pages_with_http_info: #{e}"
1151
+ end
1152
+ ```
1153
+
1154
+ ### Parameters
1155
+
1156
+ | Name | Type | Description | Notes |
1157
+ | ---- | ---- | ----------- | ----- |
1158
+ | **maven_maven_repository_href** | **String** | | |
1159
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
1160
+
1161
+ ### Return type
1162
+
1163
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
1164
+
1165
+ ### Authorization
1166
+
1167
+ [basicAuth](../README.md#basicAuth)
1168
+
1169
+ ### HTTP request headers
1170
+
1171
+ - **Content-Type**: Not defined
1172
+ - **Accept**: application/json
1173
+
1174
+
934
1175
  ## repair_metadata
935
1176
 
936
1177
  > <AsyncOperationResponse> repair_metadata(maven_maven_repository_href, opts)
@@ -0,0 +1,354 @@
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 'cgi'
14
+
15
+ module PulpMavenClient
16
+ class ContentMavenIndexPageApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # List maven index pages
23
+ # A read-only ViewSet for MavenIndexPage.
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
26
+ # @option opts [Integer] :limit Number of results to return per page.
27
+ # @option opts [Integer] :offset The initial index from which to return the results.
28
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
29
+ # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
30
+ # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
31
+ # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
32
+ # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
33
+ # @option opts [String] :pulp_label_select Filter labels by search string
34
+ # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
35
+ # @option opts [String] :repository_version
36
+ # @option opts [String] :repository_version_added
37
+ # @option opts [String] :repository_version_removed
38
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
39
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
40
+ # @return [PaginatedmavenMavenIndexPageResponseList]
41
+ def list(opts = {})
42
+ data, _status_code, _headers = list_with_http_info(opts)
43
+ data
44
+ end
45
+
46
+ # List maven index pages
47
+ # A read-only ViewSet for MavenIndexPage.
48
+ # @param [Hash] opts the optional parameters
49
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
50
+ # @option opts [Integer] :limit Number of results to return per page.
51
+ # @option opts [Integer] :offset The initial index from which to return the results.
52
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
53
+ # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
54
+ # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
55
+ # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
56
+ # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
57
+ # @option opts [String] :pulp_label_select Filter labels by search string
58
+ # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
59
+ # @option opts [String] :repository_version
60
+ # @option opts [String] :repository_version_added
61
+ # @option opts [String] :repository_version_removed
62
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
63
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
64
+ # @return [Array<(PaginatedmavenMavenIndexPageResponseList, Integer, Hash)>] PaginatedmavenMavenIndexPageResponseList data, response status code and response headers
65
+ def list_with_http_info(opts = {})
66
+ if @api_client.config.debugging
67
+ @api_client.config.logger.debug 'Calling API: ContentMavenIndexPageApi.list ...'
68
+ end
69
+ allowable_values = ["-pk", "pk"]
70
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
71
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
72
+ end
73
+ # resource path
74
+ local_var_path = '/pulp/api/v3/content/maven/maven/index-page/'
75
+
76
+ # query parameters
77
+ query_params = opts[:query_params] || {}
78
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
79
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
80
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
81
+ query_params[:'orphaned_for'] = opts[:'orphaned_for'] if !opts[:'orphaned_for'].nil?
82
+ query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
83
+ query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
84
+ query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
85
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
86
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
87
+ query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
88
+ query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
89
+ query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
90
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
91
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
92
+
93
+ # header parameters
94
+ header_params = opts[:header_params] || {}
95
+ # HTTP header 'Accept' (if needed)
96
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
97
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
98
+
99
+ # form parameters
100
+ form_params = opts[:form_params] || {}
101
+
102
+ # http body (model)
103
+ post_body = opts[:debug_body]
104
+
105
+ # return_type
106
+ return_type = opts[:debug_return_type] || 'PaginatedmavenMavenIndexPageResponseList'
107
+
108
+ # auth_names
109
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
110
+
111
+ new_options = opts.merge(
112
+ :operation => :"ContentMavenIndexPageApi.list",
113
+ :header_params => header_params,
114
+ :query_params => query_params,
115
+ :form_params => form_params,
116
+ :body => post_body,
117
+ :auth_names => auth_names,
118
+ :return_type => return_type
119
+ )
120
+
121
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
122
+ if @api_client.config.debugging
123
+ @api_client.config.logger.debug "API called: ContentMavenIndexPageApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
124
+ end
125
+ return data, status_code, headers
126
+ end
127
+
128
+ # Inspect a maven index page
129
+ # A read-only ViewSet for MavenIndexPage.
130
+ # @param maven_maven_index_page_href [String]
131
+ # @param [Hash] opts the optional parameters
132
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
133
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
134
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
135
+ # @return [MavenMavenIndexPageResponse]
136
+ def read(maven_maven_index_page_href, opts = {})
137
+ data, _status_code, _headers = read_with_http_info(maven_maven_index_page_href, opts)
138
+ data
139
+ end
140
+
141
+ # Inspect a maven index page
142
+ # A read-only ViewSet for MavenIndexPage.
143
+ # @param maven_maven_index_page_href [String]
144
+ # @param [Hash] opts the optional parameters
145
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
146
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
147
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
148
+ # @return [Array<(MavenMavenIndexPageResponse, Integer, Hash)>] MavenMavenIndexPageResponse data, response status code and response headers
149
+ def read_with_http_info(maven_maven_index_page_href, opts = {})
150
+ if @api_client.config.debugging
151
+ @api_client.config.logger.debug 'Calling API: ContentMavenIndexPageApi.read ...'
152
+ end
153
+ # verify the required parameter 'maven_maven_index_page_href' is set
154
+ if @api_client.config.client_side_validation && maven_maven_index_page_href.nil?
155
+ fail ArgumentError, "Missing the required parameter 'maven_maven_index_page_href' when calling ContentMavenIndexPageApi.read"
156
+ end
157
+ # resource path
158
+ local_var_path = '{maven_maven_index_page_href}'.sub('{' + 'maven_maven_index_page_href' + '}', CGI.escape(maven_maven_index_page_href.to_s).gsub('%2F', '/'))
159
+
160
+ # query parameters
161
+ query_params = opts[:query_params] || {}
162
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
163
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
164
+
165
+ # header parameters
166
+ header_params = opts[:header_params] || {}
167
+ # HTTP header 'Accept' (if needed)
168
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
169
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
170
+
171
+ # form parameters
172
+ form_params = opts[:form_params] || {}
173
+
174
+ # http body (model)
175
+ post_body = opts[:debug_body]
176
+
177
+ # return_type
178
+ return_type = opts[:debug_return_type] || 'MavenMavenIndexPageResponse'
179
+
180
+ # auth_names
181
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
182
+
183
+ new_options = opts.merge(
184
+ :operation => :"ContentMavenIndexPageApi.read",
185
+ :header_params => header_params,
186
+ :query_params => query_params,
187
+ :form_params => form_params,
188
+ :body => post_body,
189
+ :auth_names => auth_names,
190
+ :return_type => return_type
191
+ )
192
+
193
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
194
+ if @api_client.config.debugging
195
+ @api_client.config.logger.debug "API called: ContentMavenIndexPageApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
196
+ end
197
+ return data, status_code, headers
198
+ end
199
+
200
+ # Set a label
201
+ # Set a single pulp_label on the object to a specific value or null.
202
+ # @param maven_maven_index_page_href [String]
203
+ # @param set_label [SetLabel]
204
+ # @param [Hash] opts the optional parameters
205
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
206
+ # @return [SetLabelResponse]
207
+ def set_label(maven_maven_index_page_href, set_label, opts = {})
208
+ data, _status_code, _headers = set_label_with_http_info(maven_maven_index_page_href, set_label, opts)
209
+ data
210
+ end
211
+
212
+ # Set a label
213
+ # Set a single pulp_label on the object to a specific value or null.
214
+ # @param maven_maven_index_page_href [String]
215
+ # @param set_label [SetLabel]
216
+ # @param [Hash] opts the optional parameters
217
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
218
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
219
+ def set_label_with_http_info(maven_maven_index_page_href, set_label, opts = {})
220
+ if @api_client.config.debugging
221
+ @api_client.config.logger.debug 'Calling API: ContentMavenIndexPageApi.set_label ...'
222
+ end
223
+ # verify the required parameter 'maven_maven_index_page_href' is set
224
+ if @api_client.config.client_side_validation && maven_maven_index_page_href.nil?
225
+ fail ArgumentError, "Missing the required parameter 'maven_maven_index_page_href' when calling ContentMavenIndexPageApi.set_label"
226
+ end
227
+ # verify the required parameter 'set_label' is set
228
+ if @api_client.config.client_side_validation && set_label.nil?
229
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentMavenIndexPageApi.set_label"
230
+ end
231
+ # resource path
232
+ local_var_path = '{maven_maven_index_page_href}set_label/'.sub('{' + 'maven_maven_index_page_href' + '}', CGI.escape(maven_maven_index_page_href.to_s).gsub('%2F', '/'))
233
+
234
+ # query parameters
235
+ query_params = opts[:query_params] || {}
236
+
237
+ # header parameters
238
+ header_params = opts[:header_params] || {}
239
+ # HTTP header 'Accept' (if needed)
240
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
241
+ # HTTP header 'Content-Type'
242
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
243
+ if !content_type.nil?
244
+ header_params['Content-Type'] = content_type
245
+ end
246
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
247
+
248
+ # form parameters
249
+ form_params = opts[:form_params] || {}
250
+
251
+ # http body (model)
252
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
253
+
254
+ # return_type
255
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
256
+
257
+ # auth_names
258
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
259
+
260
+ new_options = opts.merge(
261
+ :operation => :"ContentMavenIndexPageApi.set_label",
262
+ :header_params => header_params,
263
+ :query_params => query_params,
264
+ :form_params => form_params,
265
+ :body => post_body,
266
+ :auth_names => auth_names,
267
+ :return_type => return_type
268
+ )
269
+
270
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
271
+ if @api_client.config.debugging
272
+ @api_client.config.logger.debug "API called: ContentMavenIndexPageApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
273
+ end
274
+ return data, status_code, headers
275
+ end
276
+
277
+ # Unset a label
278
+ # Unset a single pulp_label on the object.
279
+ # @param maven_maven_index_page_href [String]
280
+ # @param unset_label [UnsetLabel]
281
+ # @param [Hash] opts the optional parameters
282
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
283
+ # @return [UnsetLabelResponse]
284
+ def unset_label(maven_maven_index_page_href, unset_label, opts = {})
285
+ data, _status_code, _headers = unset_label_with_http_info(maven_maven_index_page_href, unset_label, opts)
286
+ data
287
+ end
288
+
289
+ # Unset a label
290
+ # Unset a single pulp_label on the object.
291
+ # @param maven_maven_index_page_href [String]
292
+ # @param unset_label [UnsetLabel]
293
+ # @param [Hash] opts the optional parameters
294
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
295
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
296
+ def unset_label_with_http_info(maven_maven_index_page_href, unset_label, opts = {})
297
+ if @api_client.config.debugging
298
+ @api_client.config.logger.debug 'Calling API: ContentMavenIndexPageApi.unset_label ...'
299
+ end
300
+ # verify the required parameter 'maven_maven_index_page_href' is set
301
+ if @api_client.config.client_side_validation && maven_maven_index_page_href.nil?
302
+ fail ArgumentError, "Missing the required parameter 'maven_maven_index_page_href' when calling ContentMavenIndexPageApi.unset_label"
303
+ end
304
+ # verify the required parameter 'unset_label' is set
305
+ if @api_client.config.client_side_validation && unset_label.nil?
306
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentMavenIndexPageApi.unset_label"
307
+ end
308
+ # resource path
309
+ local_var_path = '{maven_maven_index_page_href}unset_label/'.sub('{' + 'maven_maven_index_page_href' + '}', CGI.escape(maven_maven_index_page_href.to_s).gsub('%2F', '/'))
310
+
311
+ # query parameters
312
+ query_params = opts[:query_params] || {}
313
+
314
+ # header parameters
315
+ header_params = opts[:header_params] || {}
316
+ # HTTP header 'Accept' (if needed)
317
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
318
+ # HTTP header 'Content-Type'
319
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
320
+ if !content_type.nil?
321
+ header_params['Content-Type'] = content_type
322
+ end
323
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
324
+
325
+ # form parameters
326
+ form_params = opts[:form_params] || {}
327
+
328
+ # http body (model)
329
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
330
+
331
+ # return_type
332
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
333
+
334
+ # auth_names
335
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
336
+
337
+ new_options = opts.merge(
338
+ :operation => :"ContentMavenIndexPageApi.unset_label",
339
+ :header_params => header_params,
340
+ :query_params => query_params,
341
+ :form_params => form_params,
342
+ :body => post_body,
343
+ :auth_names => auth_names,
344
+ :return_type => return_type
345
+ )
346
+
347
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
348
+ if @api_client.config.debugging
349
+ @api_client.config.logger.debug "API called: ContentMavenIndexPageApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
350
+ end
351
+ return data, status_code, headers
352
+ end
353
+ end
354
+ end
@@ -24,6 +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]+-\\d+$). 5.3.18 matches 5.3.18 and 5.3.18.rhlw-00003, but not 5.3.180.
28
+ # @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.
27
29
  # @option opts [String] :group_id Filter results where group_id matches value
28
30
  # @option opts [Integer] :limit Number of results to return per page.
29
31
  # @option opts [String] :name Filter results where name matches value
@@ -40,6 +42,7 @@ module PulpMavenClient
40
42
  # @option opts [String] :repository_version_added
41
43
  # @option opts [String] :repository_version_removed
42
44
  # @option opts [String] :version Filter results where version matches value
45
+ # @option opts [String] :version__startswith Filter results where version starts with value
43
46
  # @option opts [Array<String>] :fields A list of fields to include in the response.
44
47
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
45
48
  # @return [PaginatedmavenMavenPackageResponseList]
@@ -53,6 +56,8 @@ module PulpMavenClient
53
56
  # @param [Hash] opts the optional parameters
54
57
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
55
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]+-\\d+$). 5.3.18 matches 5.3.18 and 5.3.18.rhlw-00003, but not 5.3.180.
60
+ # @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.
56
61
  # @option opts [String] :group_id Filter results where group_id matches value
57
62
  # @option opts [Integer] :limit Number of results to return per page.
58
63
  # @option opts [String] :name Filter results where name matches value
@@ -69,6 +74,7 @@ module PulpMavenClient
69
74
  # @option opts [String] :repository_version_added
70
75
  # @option opts [String] :repository_version_removed
71
76
  # @option opts [String] :version Filter results where version matches value
77
+ # @option opts [String] :version__startswith Filter results where version starts with value
72
78
  # @option opts [Array<String>] :fields A list of fields to include in the response.
73
79
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
74
80
  # @return [Array<(PaginatedmavenMavenPackageResponseList, Integer, Hash)>] PaginatedmavenMavenPackageResponseList data, response status code and response headers
@@ -86,6 +92,8 @@ module PulpMavenClient
86
92
  # query parameters
87
93
  query_params = opts[:query_params] || {}
88
94
  query_params[:'artifact_id'] = opts[:'artifact_id'] if !opts[:'artifact_id'].nil?
95
+ query_params[:'base_version'] = opts[:'base_version'] if !opts[:'base_version'].nil?
96
+ query_params[:'collapse_builds'] = opts[:'collapse_builds'] if !opts[:'collapse_builds'].nil?
89
97
  query_params[:'group_id'] = opts[:'group_id'] if !opts[:'group_id'].nil?
90
98
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
91
99
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
@@ -102,6 +110,7 @@ module PulpMavenClient
102
110
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
103
111
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
104
112
  query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
113
+ query_params[:'version__startswith'] = opts[:'version__startswith'] if !opts[:'version__startswith'].nil?
105
114
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
106
115
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
107
116