pulp_maven_client 0.32.0 → 0.33.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +8 -4
- data/docs/MavenPathIndexStatusResponse.md +26 -0
- data/docs/RepositoriesMavenApi.md +231 -0
- data/lib/pulp_maven_client/api/repositories_maven_api.rb +201 -0
- data/lib/pulp_maven_client/models/maven_path_index_status_response.rb +277 -0
- data/lib/pulp_maven_client/version.rb +1 -1
- data/lib/pulp_maven_client.rb +1 -0
- data/spec/api/repositories_maven_api_spec.rb +39 -0
- data/spec/models/maven_path_index_status_response_spec.rb +60 -0
- metadata +6 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4b2a00e467f5509235d6991412bf175824adda0979714314150a12e2d379391c
|
|
4
|
+
data.tar.gz: f35b2297339191af222afc778e23ea4b9f3f7bc888af22a6bde17f8bebe6c005
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e4a97f800a81be9782125dbfc02c6a5310e180d101f7efbdb356c19a63015d2851790598a744685a8bb2c55a998cd6bec5e78f980408f9fecc29779bc6f78ccb
|
|
7
|
+
data.tar.gz: 0de6ea23954da81b4801babd4598ee99d77a18ef476690b6004d1166189abf2d84865f90452f43b5be167d8a520f8af464e56a84eee273d8acbdbdb412590788
|
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.33.1
|
|
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.33.1.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.33.1.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.33.1'
|
|
38
38
|
|
|
39
39
|
### Install from Git
|
|
40
40
|
|
|
@@ -144,6 +144,8 @@ Class | Method | HTTP request | Description
|
|
|
144
144
|
*PulpMavenClient::RemotesMavenApi* | [**unset_label**](docs/RemotesMavenApi.md#unset_label) | **POST** {maven_maven_remote_href}unset_label/ | Unset a label
|
|
145
145
|
*PulpMavenClient::RemotesMavenApi* | [**update**](docs/RemotesMavenApi.md#update) | **PUT** {maven_maven_remote_href} | Update a maven remote
|
|
146
146
|
*PulpMavenClient::RepositoriesMavenApi* | [**add_role**](docs/RepositoriesMavenApi.md#add_role) | **POST** {maven_maven_repository_href}add_role/ | Add a role
|
|
147
|
+
*PulpMavenClient::RepositoriesMavenApi* | [**build_path_index**](docs/RepositoriesMavenApi.md#build_path_index) | **POST** {maven_maven_repository_href}build_path_index/ |
|
|
148
|
+
*PulpMavenClient::RepositoriesMavenApi* | [**compact_path_index**](docs/RepositoriesMavenApi.md#compact_path_index) | **POST** {maven_maven_repository_href}compact_path_index/ |
|
|
147
149
|
*PulpMavenClient::RepositoriesMavenApi* | [**create**](docs/RepositoriesMavenApi.md#create) | **POST** /pulp/api/v3/repositories/maven/maven/ | Create a maven repository
|
|
148
150
|
*PulpMavenClient::RepositoriesMavenApi* | [**delete**](docs/RepositoriesMavenApi.md#delete) | **DELETE** {maven_maven_repository_href} | Delete a maven repository
|
|
149
151
|
*PulpMavenClient::RepositoriesMavenApi* | [**list**](docs/RepositoriesMavenApi.md#list) | **GET** /pulp/api/v3/repositories/maven/maven/ | List maven repositorys
|
|
@@ -153,6 +155,7 @@ Class | Method | HTTP request | Description
|
|
|
153
155
|
*PulpMavenClient::RepositoriesMavenApi* | [**my_permissions**](docs/RepositoriesMavenApi.md#my_permissions) | **GET** {maven_maven_repository_href}my_permissions/ | List user permissions
|
|
154
156
|
*PulpMavenClient::RepositoriesMavenApi* | [**packages**](docs/RepositoriesMavenApi.md#packages) | **GET** {maven_maven_repository_href}packages/ | List packages
|
|
155
157
|
*PulpMavenClient::RepositoriesMavenApi* | [**partial_update**](docs/RepositoriesMavenApi.md#partial_update) | **PATCH** {maven_maven_repository_href} | Update a maven repository
|
|
158
|
+
*PulpMavenClient::RepositoriesMavenApi* | [**path_index_status**](docs/RepositoriesMavenApi.md#path_index_status) | **GET** {maven_maven_repository_href}path_index_status/ |
|
|
156
159
|
*PulpMavenClient::RepositoriesMavenApi* | [**read**](docs/RepositoriesMavenApi.md#read) | **GET** {maven_maven_repository_href} | Inspect a maven repository
|
|
157
160
|
*PulpMavenClient::RepositoriesMavenApi* | [**remove_role**](docs/RepositoriesMavenApi.md#remove_role) | **POST** {maven_maven_repository_href}remove_role/ | Remove a role
|
|
158
161
|
*PulpMavenClient::RepositoriesMavenApi* | [**repair_index_pages**](docs/RepositoriesMavenApi.md#repair_index_pages) | **POST** {maven_maven_repository_href}repair_index_pages/ | Repair index pages
|
|
@@ -182,6 +185,7 @@ Class | Method | HTTP request | Description
|
|
|
182
185
|
- [PulpMavenClient::MavenMavenRepository](docs/MavenMavenRepository.md)
|
|
183
186
|
- [PulpMavenClient::MavenMavenRepositoryResponse](docs/MavenMavenRepositoryResponse.md)
|
|
184
187
|
- [PulpMavenClient::MavenPackageReleaseResponse](docs/MavenPackageReleaseResponse.md)
|
|
188
|
+
- [PulpMavenClient::MavenPathIndexStatusResponse](docs/MavenPathIndexStatusResponse.md)
|
|
185
189
|
- [PulpMavenClient::MavenRepositoryMetricsResponse](docs/MavenRepositoryMetricsResponse.md)
|
|
186
190
|
- [PulpMavenClient::MavenRepositoryPackageResponse](docs/MavenRepositoryPackageResponse.md)
|
|
187
191
|
- [PulpMavenClient::MyPermissionsResponse](docs/MyPermissionsResponse.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# PulpMavenClient::MavenPathIndexStatusResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **enabled** | **Boolean** | | |
|
|
8
|
+
| **ready** | **Boolean** | | |
|
|
9
|
+
| **latest_version** | **String** | | |
|
|
10
|
+
| **manifest_digest** | **String** | | |
|
|
11
|
+
| **error** | **String** | | |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'pulp_maven_client'
|
|
17
|
+
|
|
18
|
+
instance = PulpMavenClient::MavenPathIndexStatusResponse.new(
|
|
19
|
+
enabled: null,
|
|
20
|
+
ready: null,
|
|
21
|
+
latest_version: null,
|
|
22
|
+
manifest_digest: null,
|
|
23
|
+
error: null
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
|
@@ -5,6 +5,8 @@ All URIs are relative to *http://localhost:24817*
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
| ------ | ------------ | ----------- |
|
|
7
7
|
| [**add_role**](RepositoriesMavenApi.md#add_role) | **POST** {maven_maven_repository_href}add_role/ | Add a role |
|
|
8
|
+
| [**build_path_index**](RepositoriesMavenApi.md#build_path_index) | **POST** {maven_maven_repository_href}build_path_index/ | |
|
|
9
|
+
| [**compact_path_index**](RepositoriesMavenApi.md#compact_path_index) | **POST** {maven_maven_repository_href}compact_path_index/ | |
|
|
8
10
|
| [**create**](RepositoriesMavenApi.md#create) | **POST** /pulp/api/v3/repositories/maven/maven/ | Create a maven repository |
|
|
9
11
|
| [**delete**](RepositoriesMavenApi.md#delete) | **DELETE** {maven_maven_repository_href} | Delete a maven repository |
|
|
10
12
|
| [**list**](RepositoriesMavenApi.md#list) | **GET** /pulp/api/v3/repositories/maven/maven/ | List maven repositorys |
|
|
@@ -14,6 +16,7 @@ All URIs are relative to *http://localhost:24817*
|
|
|
14
16
|
| [**my_permissions**](RepositoriesMavenApi.md#my_permissions) | **GET** {maven_maven_repository_href}my_permissions/ | List user permissions |
|
|
15
17
|
| [**packages**](RepositoriesMavenApi.md#packages) | **GET** {maven_maven_repository_href}packages/ | List packages |
|
|
16
18
|
| [**partial_update**](RepositoriesMavenApi.md#partial_update) | **PATCH** {maven_maven_repository_href} | Update a maven repository |
|
|
19
|
+
| [**path_index_status**](RepositoriesMavenApi.md#path_index_status) | **GET** {maven_maven_repository_href}path_index_status/ | |
|
|
17
20
|
| [**read**](RepositoriesMavenApi.md#read) | **GET** {maven_maven_repository_href} | Inspect a maven repository |
|
|
18
21
|
| [**remove_role**](RepositoriesMavenApi.md#remove_role) | **POST** {maven_maven_repository_href}remove_role/ | Remove a role |
|
|
19
22
|
| [**repair_index_pages**](RepositoriesMavenApi.md#repair_index_pages) | **POST** {maven_maven_repository_href}repair_index_pages/ | Repair index pages |
|
|
@@ -99,6 +102,156 @@ end
|
|
|
99
102
|
- **Accept**: application/json
|
|
100
103
|
|
|
101
104
|
|
|
105
|
+
## build_path_index
|
|
106
|
+
|
|
107
|
+
> <AsyncOperationResponse> build_path_index(maven_maven_repository_href, opts)
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
Build a consistent initial index while repository mutations queue.
|
|
112
|
+
|
|
113
|
+
### Examples
|
|
114
|
+
|
|
115
|
+
```ruby
|
|
116
|
+
require 'time'
|
|
117
|
+
require 'pulp_maven_client'
|
|
118
|
+
# setup authorization
|
|
119
|
+
PulpMavenClient.configure do |config|
|
|
120
|
+
# Configure HTTP basic authorization: basicAuth
|
|
121
|
+
config.username = 'YOUR USERNAME'
|
|
122
|
+
config.password = 'YOUR PASSWORD'
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
api_instance = PulpMavenClient::RepositoriesMavenApi.new
|
|
126
|
+
maven_maven_repository_href = 'maven_maven_repository_href_example' # String |
|
|
127
|
+
opts = {
|
|
128
|
+
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
|
129
|
+
repository_version: 'repository_version_example' # String | Optional pinned version HREF or PRN; otherwise resolve latest in task.
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
begin
|
|
133
|
+
|
|
134
|
+
result = api_instance.build_path_index(maven_maven_repository_href, opts)
|
|
135
|
+
p result
|
|
136
|
+
rescue PulpMavenClient::ApiError => e
|
|
137
|
+
puts "Error when calling RepositoriesMavenApi->build_path_index: #{e}"
|
|
138
|
+
end
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
#### Using the build_path_index_with_http_info variant
|
|
142
|
+
|
|
143
|
+
This returns an Array which contains the response data, status code and headers.
|
|
144
|
+
|
|
145
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> build_path_index_with_http_info(maven_maven_repository_href, opts)
|
|
146
|
+
|
|
147
|
+
```ruby
|
|
148
|
+
begin
|
|
149
|
+
|
|
150
|
+
data, status_code, headers = api_instance.build_path_index_with_http_info(maven_maven_repository_href, opts)
|
|
151
|
+
p status_code # => 2xx
|
|
152
|
+
p headers # => { ... }
|
|
153
|
+
p data # => <AsyncOperationResponse>
|
|
154
|
+
rescue PulpMavenClient::ApiError => e
|
|
155
|
+
puts "Error when calling RepositoriesMavenApi->build_path_index_with_http_info: #{e}"
|
|
156
|
+
end
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### Parameters
|
|
160
|
+
|
|
161
|
+
| Name | Type | Description | Notes |
|
|
162
|
+
| ---- | ---- | ----------- | ----- |
|
|
163
|
+
| **maven_maven_repository_href** | **String** | | |
|
|
164
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
165
|
+
| **repository_version** | **String** | Optional pinned version HREF or PRN; otherwise resolve latest in task. | [optional] |
|
|
166
|
+
|
|
167
|
+
### Return type
|
|
168
|
+
|
|
169
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
170
|
+
|
|
171
|
+
### Authorization
|
|
172
|
+
|
|
173
|
+
[basicAuth](../README.md#basicAuth)
|
|
174
|
+
|
|
175
|
+
### HTTP request headers
|
|
176
|
+
|
|
177
|
+
- **Content-Type**: Not defined
|
|
178
|
+
- **Accept**: application/json
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
## compact_path_index
|
|
182
|
+
|
|
183
|
+
> <AsyncOperationResponse> compact_path_index(maven_maven_repository_href, opts)
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
Rebase the latest completed index while repository mutations queue.
|
|
188
|
+
|
|
189
|
+
### Examples
|
|
190
|
+
|
|
191
|
+
```ruby
|
|
192
|
+
require 'time'
|
|
193
|
+
require 'pulp_maven_client'
|
|
194
|
+
# setup authorization
|
|
195
|
+
PulpMavenClient.configure do |config|
|
|
196
|
+
# Configure HTTP basic authorization: basicAuth
|
|
197
|
+
config.username = 'YOUR USERNAME'
|
|
198
|
+
config.password = 'YOUR PASSWORD'
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
api_instance = PulpMavenClient::RepositoriesMavenApi.new
|
|
202
|
+
maven_maven_repository_href = 'maven_maven_repository_href_example' # String |
|
|
203
|
+
opts = {
|
|
204
|
+
x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
begin
|
|
208
|
+
|
|
209
|
+
result = api_instance.compact_path_index(maven_maven_repository_href, opts)
|
|
210
|
+
p result
|
|
211
|
+
rescue PulpMavenClient::ApiError => e
|
|
212
|
+
puts "Error when calling RepositoriesMavenApi->compact_path_index: #{e}"
|
|
213
|
+
end
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
#### Using the compact_path_index_with_http_info variant
|
|
217
|
+
|
|
218
|
+
This returns an Array which contains the response data, status code and headers.
|
|
219
|
+
|
|
220
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> compact_path_index_with_http_info(maven_maven_repository_href, opts)
|
|
221
|
+
|
|
222
|
+
```ruby
|
|
223
|
+
begin
|
|
224
|
+
|
|
225
|
+
data, status_code, headers = api_instance.compact_path_index_with_http_info(maven_maven_repository_href, opts)
|
|
226
|
+
p status_code # => 2xx
|
|
227
|
+
p headers # => { ... }
|
|
228
|
+
p data # => <AsyncOperationResponse>
|
|
229
|
+
rescue PulpMavenClient::ApiError => e
|
|
230
|
+
puts "Error when calling RepositoriesMavenApi->compact_path_index_with_http_info: #{e}"
|
|
231
|
+
end
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
### Parameters
|
|
235
|
+
|
|
236
|
+
| Name | Type | Description | Notes |
|
|
237
|
+
| ---- | ---- | ----------- | ----- |
|
|
238
|
+
| **maven_maven_repository_href** | **String** | | |
|
|
239
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
240
|
+
|
|
241
|
+
### Return type
|
|
242
|
+
|
|
243
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
244
|
+
|
|
245
|
+
### Authorization
|
|
246
|
+
|
|
247
|
+
[basicAuth](../README.md#basicAuth)
|
|
248
|
+
|
|
249
|
+
### HTTP request headers
|
|
250
|
+
|
|
251
|
+
- **Content-Type**: Not defined
|
|
252
|
+
- **Accept**: application/json
|
|
253
|
+
|
|
254
|
+
|
|
102
255
|
## create
|
|
103
256
|
|
|
104
257
|
> <MavenMavenRepositoryResponse> create(maven_maven_repository, opts)
|
|
@@ -875,6 +1028,84 @@ end
|
|
|
875
1028
|
- **Accept**: application/json
|
|
876
1029
|
|
|
877
1030
|
|
|
1031
|
+
## path_index_status
|
|
1032
|
+
|
|
1033
|
+
> <MavenPathIndexStatusResponse> path_index_status(maven_maven_repository_href, opts)
|
|
1034
|
+
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
Inspect durable publication state without scanning repository content.
|
|
1038
|
+
|
|
1039
|
+
### Examples
|
|
1040
|
+
|
|
1041
|
+
```ruby
|
|
1042
|
+
require 'time'
|
|
1043
|
+
require 'pulp_maven_client'
|
|
1044
|
+
# setup authorization
|
|
1045
|
+
PulpMavenClient.configure do |config|
|
|
1046
|
+
# Configure HTTP basic authorization: basicAuth
|
|
1047
|
+
config.username = 'YOUR USERNAME'
|
|
1048
|
+
config.password = 'YOUR PASSWORD'
|
|
1049
|
+
end
|
|
1050
|
+
|
|
1051
|
+
api_instance = PulpMavenClient::RepositoriesMavenApi.new
|
|
1052
|
+
maven_maven_repository_href = 'maven_maven_repository_href_example' # String |
|
|
1053
|
+
opts = {
|
|
1054
|
+
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
|
1055
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
|
1056
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
begin
|
|
1060
|
+
|
|
1061
|
+
result = api_instance.path_index_status(maven_maven_repository_href, opts)
|
|
1062
|
+
p result
|
|
1063
|
+
rescue PulpMavenClient::ApiError => e
|
|
1064
|
+
puts "Error when calling RepositoriesMavenApi->path_index_status: #{e}"
|
|
1065
|
+
end
|
|
1066
|
+
```
|
|
1067
|
+
|
|
1068
|
+
#### Using the path_index_status_with_http_info variant
|
|
1069
|
+
|
|
1070
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1071
|
+
|
|
1072
|
+
> <Array(<MavenPathIndexStatusResponse>, Integer, Hash)> path_index_status_with_http_info(maven_maven_repository_href, opts)
|
|
1073
|
+
|
|
1074
|
+
```ruby
|
|
1075
|
+
begin
|
|
1076
|
+
|
|
1077
|
+
data, status_code, headers = api_instance.path_index_status_with_http_info(maven_maven_repository_href, opts)
|
|
1078
|
+
p status_code # => 2xx
|
|
1079
|
+
p headers # => { ... }
|
|
1080
|
+
p data # => <MavenPathIndexStatusResponse>
|
|
1081
|
+
rescue PulpMavenClient::ApiError => e
|
|
1082
|
+
puts "Error when calling RepositoriesMavenApi->path_index_status_with_http_info: #{e}"
|
|
1083
|
+
end
|
|
1084
|
+
```
|
|
1085
|
+
|
|
1086
|
+
### Parameters
|
|
1087
|
+
|
|
1088
|
+
| Name | Type | Description | Notes |
|
|
1089
|
+
| ---- | ---- | ----------- | ----- |
|
|
1090
|
+
| **maven_maven_repository_href** | **String** | | |
|
|
1091
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
1092
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
|
1093
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
|
1094
|
+
|
|
1095
|
+
### Return type
|
|
1096
|
+
|
|
1097
|
+
[**MavenPathIndexStatusResponse**](MavenPathIndexStatusResponse.md)
|
|
1098
|
+
|
|
1099
|
+
### Authorization
|
|
1100
|
+
|
|
1101
|
+
[basicAuth](../README.md#basicAuth)
|
|
1102
|
+
|
|
1103
|
+
### HTTP request headers
|
|
1104
|
+
|
|
1105
|
+
- **Content-Type**: Not defined
|
|
1106
|
+
- **Accept**: application/json
|
|
1107
|
+
|
|
1108
|
+
|
|
878
1109
|
## read
|
|
879
1110
|
|
|
880
1111
|
> <MavenMavenRepositoryResponse> read(maven_maven_repository_href, opts)
|
|
@@ -96,6 +96,137 @@ module PulpMavenClient
|
|
|
96
96
|
return data, status_code, headers
|
|
97
97
|
end
|
|
98
98
|
|
|
99
|
+
# Build a consistent initial index while repository mutations queue.
|
|
100
|
+
# @param maven_maven_repository_href [String]
|
|
101
|
+
# @param [Hash] opts the optional parameters
|
|
102
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
103
|
+
# @option opts [String] :repository_version Optional pinned version HREF or PRN; otherwise resolve latest in task.
|
|
104
|
+
# @return [AsyncOperationResponse]
|
|
105
|
+
def build_path_index(maven_maven_repository_href, opts = {})
|
|
106
|
+
data, _status_code, _headers = build_path_index_with_http_info(maven_maven_repository_href, opts)
|
|
107
|
+
data
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Build a consistent initial index while repository mutations queue.
|
|
111
|
+
# @param maven_maven_repository_href [String]
|
|
112
|
+
# @param [Hash] opts the optional parameters
|
|
113
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
114
|
+
# @option opts [String] :repository_version Optional pinned version HREF or PRN; otherwise resolve latest in task.
|
|
115
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
116
|
+
def build_path_index_with_http_info(maven_maven_repository_href, opts = {})
|
|
117
|
+
if @api_client.config.debugging
|
|
118
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.build_path_index ...'
|
|
119
|
+
end
|
|
120
|
+
# verify the required parameter 'maven_maven_repository_href' is set
|
|
121
|
+
if @api_client.config.client_side_validation && maven_maven_repository_href.nil?
|
|
122
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_repository_href' when calling RepositoriesMavenApi.build_path_index"
|
|
123
|
+
end
|
|
124
|
+
# resource path
|
|
125
|
+
local_var_path = '{maven_maven_repository_href}build_path_index/'.sub('{' + 'maven_maven_repository_href' + '}', CGI.escape(maven_maven_repository_href.to_s).gsub('%2F', '/'))
|
|
126
|
+
|
|
127
|
+
# query parameters
|
|
128
|
+
query_params = opts[:query_params] || {}
|
|
129
|
+
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
|
130
|
+
|
|
131
|
+
# header parameters
|
|
132
|
+
header_params = opts[:header_params] || {}
|
|
133
|
+
# HTTP header 'Accept' (if needed)
|
|
134
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
135
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
|
136
|
+
|
|
137
|
+
# form parameters
|
|
138
|
+
form_params = opts[:form_params] || {}
|
|
139
|
+
|
|
140
|
+
# http body (model)
|
|
141
|
+
post_body = opts[:debug_body]
|
|
142
|
+
|
|
143
|
+
# return_type
|
|
144
|
+
return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
|
|
145
|
+
|
|
146
|
+
# auth_names
|
|
147
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
148
|
+
|
|
149
|
+
new_options = opts.merge(
|
|
150
|
+
:operation => :"RepositoriesMavenApi.build_path_index",
|
|
151
|
+
:header_params => header_params,
|
|
152
|
+
:query_params => query_params,
|
|
153
|
+
:form_params => form_params,
|
|
154
|
+
:body => post_body,
|
|
155
|
+
:auth_names => auth_names,
|
|
156
|
+
:return_type => return_type
|
|
157
|
+
)
|
|
158
|
+
|
|
159
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
160
|
+
if @api_client.config.debugging
|
|
161
|
+
@api_client.config.logger.debug "API called: RepositoriesMavenApi#build_path_index\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
162
|
+
end
|
|
163
|
+
return data, status_code, headers
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# Rebase the latest completed index while repository mutations queue.
|
|
167
|
+
# @param maven_maven_repository_href [String]
|
|
168
|
+
# @param [Hash] opts the optional parameters
|
|
169
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
170
|
+
# @return [AsyncOperationResponse]
|
|
171
|
+
def compact_path_index(maven_maven_repository_href, opts = {})
|
|
172
|
+
data, _status_code, _headers = compact_path_index_with_http_info(maven_maven_repository_href, opts)
|
|
173
|
+
data
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# Rebase the latest completed index while repository mutations queue.
|
|
177
|
+
# @param maven_maven_repository_href [String]
|
|
178
|
+
# @param [Hash] opts the optional parameters
|
|
179
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
180
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
181
|
+
def compact_path_index_with_http_info(maven_maven_repository_href, opts = {})
|
|
182
|
+
if @api_client.config.debugging
|
|
183
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.compact_path_index ...'
|
|
184
|
+
end
|
|
185
|
+
# verify the required parameter 'maven_maven_repository_href' is set
|
|
186
|
+
if @api_client.config.client_side_validation && maven_maven_repository_href.nil?
|
|
187
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_repository_href' when calling RepositoriesMavenApi.compact_path_index"
|
|
188
|
+
end
|
|
189
|
+
# resource path
|
|
190
|
+
local_var_path = '{maven_maven_repository_href}compact_path_index/'.sub('{' + 'maven_maven_repository_href' + '}', CGI.escape(maven_maven_repository_href.to_s).gsub('%2F', '/'))
|
|
191
|
+
|
|
192
|
+
# query parameters
|
|
193
|
+
query_params = opts[:query_params] || {}
|
|
194
|
+
|
|
195
|
+
# header parameters
|
|
196
|
+
header_params = opts[:header_params] || {}
|
|
197
|
+
# HTTP header 'Accept' (if needed)
|
|
198
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
199
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
|
200
|
+
|
|
201
|
+
# form parameters
|
|
202
|
+
form_params = opts[:form_params] || {}
|
|
203
|
+
|
|
204
|
+
# http body (model)
|
|
205
|
+
post_body = opts[:debug_body]
|
|
206
|
+
|
|
207
|
+
# return_type
|
|
208
|
+
return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
|
|
209
|
+
|
|
210
|
+
# auth_names
|
|
211
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
212
|
+
|
|
213
|
+
new_options = opts.merge(
|
|
214
|
+
:operation => :"RepositoriesMavenApi.compact_path_index",
|
|
215
|
+
:header_params => header_params,
|
|
216
|
+
:query_params => query_params,
|
|
217
|
+
:form_params => form_params,
|
|
218
|
+
:body => post_body,
|
|
219
|
+
:auth_names => auth_names,
|
|
220
|
+
:return_type => return_type
|
|
221
|
+
)
|
|
222
|
+
|
|
223
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
224
|
+
if @api_client.config.debugging
|
|
225
|
+
@api_client.config.logger.debug "API called: RepositoriesMavenApi#compact_path_index\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
226
|
+
end
|
|
227
|
+
return data, status_code, headers
|
|
228
|
+
end
|
|
229
|
+
|
|
99
230
|
# Create a maven repository
|
|
100
231
|
# A ViewSet for MavenRepository.
|
|
101
232
|
# @param maven_maven_repository [MavenMavenRepository]
|
|
@@ -877,6 +1008,76 @@ module PulpMavenClient
|
|
|
877
1008
|
return data, status_code, headers
|
|
878
1009
|
end
|
|
879
1010
|
|
|
1011
|
+
# Inspect durable publication state without scanning repository content.
|
|
1012
|
+
# @param maven_maven_repository_href [String]
|
|
1013
|
+
# @param [Hash] opts the optional parameters
|
|
1014
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
1015
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
1016
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
1017
|
+
# @return [MavenPathIndexStatusResponse]
|
|
1018
|
+
def path_index_status(maven_maven_repository_href, opts = {})
|
|
1019
|
+
data, _status_code, _headers = path_index_status_with_http_info(maven_maven_repository_href, opts)
|
|
1020
|
+
data
|
|
1021
|
+
end
|
|
1022
|
+
|
|
1023
|
+
# Inspect durable publication state without scanning repository content.
|
|
1024
|
+
# @param maven_maven_repository_href [String]
|
|
1025
|
+
# @param [Hash] opts the optional parameters
|
|
1026
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
1027
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
1028
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
1029
|
+
# @return [Array<(MavenPathIndexStatusResponse, Integer, Hash)>] MavenPathIndexStatusResponse data, response status code and response headers
|
|
1030
|
+
def path_index_status_with_http_info(maven_maven_repository_href, opts = {})
|
|
1031
|
+
if @api_client.config.debugging
|
|
1032
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.path_index_status ...'
|
|
1033
|
+
end
|
|
1034
|
+
# verify the required parameter 'maven_maven_repository_href' is set
|
|
1035
|
+
if @api_client.config.client_side_validation && maven_maven_repository_href.nil?
|
|
1036
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_repository_href' when calling RepositoriesMavenApi.path_index_status"
|
|
1037
|
+
end
|
|
1038
|
+
# resource path
|
|
1039
|
+
local_var_path = '{maven_maven_repository_href}path_index_status/'.sub('{' + 'maven_maven_repository_href' + '}', CGI.escape(maven_maven_repository_href.to_s).gsub('%2F', '/'))
|
|
1040
|
+
|
|
1041
|
+
# query parameters
|
|
1042
|
+
query_params = opts[:query_params] || {}
|
|
1043
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
|
1044
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
|
1045
|
+
|
|
1046
|
+
# header parameters
|
|
1047
|
+
header_params = opts[:header_params] || {}
|
|
1048
|
+
# HTTP header 'Accept' (if needed)
|
|
1049
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1050
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
|
1051
|
+
|
|
1052
|
+
# form parameters
|
|
1053
|
+
form_params = opts[:form_params] || {}
|
|
1054
|
+
|
|
1055
|
+
# http body (model)
|
|
1056
|
+
post_body = opts[:debug_body]
|
|
1057
|
+
|
|
1058
|
+
# return_type
|
|
1059
|
+
return_type = opts[:debug_return_type] || 'MavenPathIndexStatusResponse'
|
|
1060
|
+
|
|
1061
|
+
# auth_names
|
|
1062
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
1063
|
+
|
|
1064
|
+
new_options = opts.merge(
|
|
1065
|
+
:operation => :"RepositoriesMavenApi.path_index_status",
|
|
1066
|
+
:header_params => header_params,
|
|
1067
|
+
:query_params => query_params,
|
|
1068
|
+
:form_params => form_params,
|
|
1069
|
+
:body => post_body,
|
|
1070
|
+
:auth_names => auth_names,
|
|
1071
|
+
:return_type => return_type
|
|
1072
|
+
)
|
|
1073
|
+
|
|
1074
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1075
|
+
if @api_client.config.debugging
|
|
1076
|
+
@api_client.config.logger.debug "API called: RepositoriesMavenApi#path_index_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1077
|
+
end
|
|
1078
|
+
return data, status_code, headers
|
|
1079
|
+
end
|
|
1080
|
+
|
|
880
1081
|
# Inspect a maven repository
|
|
881
1082
|
# A ViewSet for MavenRepository.
|
|
882
1083
|
# @param maven_maven_repository_href [String]
|
|
@@ -0,0 +1,277 @@
|
|
|
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 MavenPathIndexStatusResponse
|
|
18
|
+
attr_accessor :enabled
|
|
19
|
+
|
|
20
|
+
attr_accessor :ready
|
|
21
|
+
|
|
22
|
+
attr_accessor :latest_version
|
|
23
|
+
|
|
24
|
+
attr_accessor :manifest_digest
|
|
25
|
+
|
|
26
|
+
attr_accessor :error
|
|
27
|
+
|
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
|
+
def self.attribute_map
|
|
30
|
+
{
|
|
31
|
+
:'enabled' => :'enabled',
|
|
32
|
+
:'ready' => :'ready',
|
|
33
|
+
:'latest_version' => :'latest_version',
|
|
34
|
+
:'manifest_digest' => :'manifest_digest',
|
|
35
|
+
:'error' => :'error'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Returns all the JSON keys this model knows about
|
|
40
|
+
def self.acceptable_attributes
|
|
41
|
+
attribute_map.values
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Attribute type mapping.
|
|
45
|
+
def self.openapi_types
|
|
46
|
+
{
|
|
47
|
+
:'enabled' => :'Boolean',
|
|
48
|
+
:'ready' => :'Boolean',
|
|
49
|
+
:'latest_version' => :'String',
|
|
50
|
+
:'manifest_digest' => :'String',
|
|
51
|
+
:'error' => :'String'
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# List of attributes with nullable: true
|
|
56
|
+
def self.openapi_nullable
|
|
57
|
+
Set.new([
|
|
58
|
+
:'latest_version',
|
|
59
|
+
:'manifest_digest',
|
|
60
|
+
])
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Initializes the object
|
|
64
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
65
|
+
def initialize(attributes = {})
|
|
66
|
+
if (!attributes.is_a?(Hash))
|
|
67
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpMavenClient::MavenPathIndexStatusResponse` initialize method"
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
71
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
72
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
73
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpMavenClient::MavenPathIndexStatusResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
74
|
+
end
|
|
75
|
+
h[k.to_sym] = v
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'enabled')
|
|
79
|
+
self.enabled = attributes[:'enabled']
|
|
80
|
+
else
|
|
81
|
+
self.enabled = nil
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
if attributes.key?(:'ready')
|
|
85
|
+
self.ready = attributes[:'ready']
|
|
86
|
+
else
|
|
87
|
+
self.ready = nil
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
if attributes.key?(:'latest_version')
|
|
91
|
+
self.latest_version = attributes[:'latest_version']
|
|
92
|
+
else
|
|
93
|
+
self.latest_version = nil
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'manifest_digest')
|
|
97
|
+
self.manifest_digest = attributes[:'manifest_digest']
|
|
98
|
+
else
|
|
99
|
+
self.manifest_digest = nil
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
if attributes.key?(:'error')
|
|
103
|
+
self.error = attributes[:'error']
|
|
104
|
+
else
|
|
105
|
+
self.error = nil
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
110
|
+
# @return Array for valid properties with the reasons
|
|
111
|
+
def list_invalid_properties
|
|
112
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
113
|
+
invalid_properties = Array.new
|
|
114
|
+
if @enabled.nil?
|
|
115
|
+
invalid_properties.push('invalid value for "enabled", enabled cannot be nil.')
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if @ready.nil?
|
|
119
|
+
invalid_properties.push('invalid value for "ready", ready cannot be nil.')
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if @error.nil?
|
|
123
|
+
invalid_properties.push('invalid value for "error", error cannot be nil.')
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
invalid_properties
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Check to see if the all the properties in the model are valid
|
|
130
|
+
# @return true if the model is valid
|
|
131
|
+
def valid?
|
|
132
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
133
|
+
return false if @enabled.nil?
|
|
134
|
+
return false if @ready.nil?
|
|
135
|
+
return false if @error.nil?
|
|
136
|
+
true
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# Checks equality by comparing each attribute.
|
|
140
|
+
# @param [Object] Object to be compared
|
|
141
|
+
def ==(o)
|
|
142
|
+
return true if self.equal?(o)
|
|
143
|
+
self.class == o.class &&
|
|
144
|
+
enabled == o.enabled &&
|
|
145
|
+
ready == o.ready &&
|
|
146
|
+
latest_version == o.latest_version &&
|
|
147
|
+
manifest_digest == o.manifest_digest &&
|
|
148
|
+
error == o.error
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# @see the `==` method
|
|
152
|
+
# @param [Object] Object to be compared
|
|
153
|
+
def eql?(o)
|
|
154
|
+
self == o
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# Calculates hash code according to all attributes.
|
|
158
|
+
# @return [Integer] Hash code
|
|
159
|
+
def hash
|
|
160
|
+
[enabled, ready, latest_version, manifest_digest, error].hash
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# Builds the object from hash
|
|
164
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
165
|
+
# @return [Object] Returns the model itself
|
|
166
|
+
def self.build_from_hash(attributes)
|
|
167
|
+
return nil unless attributes.is_a?(Hash)
|
|
168
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
169
|
+
transformed_hash = {}
|
|
170
|
+
openapi_types.each_pair do |key, type|
|
|
171
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
172
|
+
transformed_hash["#{key}"] = nil
|
|
173
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
174
|
+
# check to ensure the input is an array given that the attribute
|
|
175
|
+
# is documented as an array but the input is not
|
|
176
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
177
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
178
|
+
end
|
|
179
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
180
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
181
|
+
end
|
|
182
|
+
end
|
|
183
|
+
new(transformed_hash)
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# Deserializes the data based on type
|
|
187
|
+
# @param string type Data type
|
|
188
|
+
# @param string value Value to be deserialized
|
|
189
|
+
# @return [Object] Deserialized data
|
|
190
|
+
def self._deserialize(type, value)
|
|
191
|
+
case type.to_sym
|
|
192
|
+
when :Time
|
|
193
|
+
Time.parse(value)
|
|
194
|
+
when :Date
|
|
195
|
+
Date.parse(value)
|
|
196
|
+
when :String
|
|
197
|
+
value.to_s
|
|
198
|
+
when :Integer
|
|
199
|
+
value.to_i
|
|
200
|
+
when :Float
|
|
201
|
+
value.to_f
|
|
202
|
+
when :Boolean
|
|
203
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
204
|
+
true
|
|
205
|
+
else
|
|
206
|
+
false
|
|
207
|
+
end
|
|
208
|
+
when :Object
|
|
209
|
+
# generic object (usually a Hash), return directly
|
|
210
|
+
value
|
|
211
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
212
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
213
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
214
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
215
|
+
k_type = Regexp.last_match[:k_type]
|
|
216
|
+
v_type = Regexp.last_match[:v_type]
|
|
217
|
+
{}.tap do |hash|
|
|
218
|
+
value.each do |k, v|
|
|
219
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
220
|
+
end
|
|
221
|
+
end
|
|
222
|
+
else # model
|
|
223
|
+
# models (e.g. Pet) or oneOf
|
|
224
|
+
klass = PulpMavenClient.const_get(type)
|
|
225
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
226
|
+
end
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
# Returns the string representation of the object
|
|
230
|
+
# @return [String] String presentation of the object
|
|
231
|
+
def to_s
|
|
232
|
+
to_hash.to_s
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
236
|
+
# @return [Hash] Returns the object in the form of hash
|
|
237
|
+
def to_body
|
|
238
|
+
to_hash
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
# Returns the object in the form of hash
|
|
242
|
+
# @return [Hash] Returns the object in the form of hash
|
|
243
|
+
def to_hash
|
|
244
|
+
hash = {}
|
|
245
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
246
|
+
value = self.send(attr)
|
|
247
|
+
if value.nil?
|
|
248
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
249
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
hash[param] = _to_hash(value)
|
|
253
|
+
end
|
|
254
|
+
hash
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
# Outputs non-array value in the form of hash
|
|
258
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
259
|
+
# @param [Object] value Any valid value
|
|
260
|
+
# @return [Hash] Returns the value in the form of hash
|
|
261
|
+
def _to_hash(value)
|
|
262
|
+
if value.is_a?(Array)
|
|
263
|
+
value.compact.map { |v| _to_hash(v) }
|
|
264
|
+
elsif value.is_a?(Hash)
|
|
265
|
+
{}.tap do |hash|
|
|
266
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
267
|
+
end
|
|
268
|
+
elsif value.respond_to? :to_hash
|
|
269
|
+
value.to_hash
|
|
270
|
+
else
|
|
271
|
+
value
|
|
272
|
+
end
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
end
|
data/lib/pulp_maven_client.rb
CHANGED
|
@@ -31,6 +31,7 @@ require 'pulp_maven_client/models/maven_maven_remote_response_hidden_fields_inne
|
|
|
31
31
|
require 'pulp_maven_client/models/maven_maven_repository'
|
|
32
32
|
require 'pulp_maven_client/models/maven_maven_repository_response'
|
|
33
33
|
require 'pulp_maven_client/models/maven_package_release_response'
|
|
34
|
+
require 'pulp_maven_client/models/maven_path_index_status_response'
|
|
34
35
|
require 'pulp_maven_client/models/maven_repository_metrics_response'
|
|
35
36
|
require 'pulp_maven_client/models/maven_repository_package_response'
|
|
36
37
|
require 'pulp_maven_client/models/my_permissions_response'
|
|
@@ -46,6 +46,31 @@ describe 'RepositoriesMavenApi' do
|
|
|
46
46
|
end
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
+
# unit tests for build_path_index
|
|
50
|
+
# Build a consistent initial index while repository mutations queue.
|
|
51
|
+
# @param maven_maven_repository_href
|
|
52
|
+
# @param [Hash] opts the optional parameters
|
|
53
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
54
|
+
# @option opts [String] :repository_version Optional pinned version HREF or PRN; otherwise resolve latest in task.
|
|
55
|
+
# @return [AsyncOperationResponse]
|
|
56
|
+
describe 'build_path_index test' do
|
|
57
|
+
it 'should work' do
|
|
58
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# unit tests for compact_path_index
|
|
63
|
+
# Rebase the latest completed index while repository mutations queue.
|
|
64
|
+
# @param maven_maven_repository_href
|
|
65
|
+
# @param [Hash] opts the optional parameters
|
|
66
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
67
|
+
# @return [AsyncOperationResponse]
|
|
68
|
+
describe 'compact_path_index test' do
|
|
69
|
+
it 'should work' do
|
|
70
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
49
74
|
# unit tests for create
|
|
50
75
|
# Create a maven repository
|
|
51
76
|
# A ViewSet for MavenRepository.
|
|
@@ -218,6 +243,20 @@ describe 'RepositoriesMavenApi' do
|
|
|
218
243
|
end
|
|
219
244
|
end
|
|
220
245
|
|
|
246
|
+
# unit tests for path_index_status
|
|
247
|
+
# Inspect durable publication state without scanning repository content.
|
|
248
|
+
# @param maven_maven_repository_href
|
|
249
|
+
# @param [Hash] opts the optional parameters
|
|
250
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
251
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
252
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
253
|
+
# @return [MavenPathIndexStatusResponse]
|
|
254
|
+
describe 'path_index_status test' do
|
|
255
|
+
it 'should work' do
|
|
256
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
257
|
+
end
|
|
258
|
+
end
|
|
259
|
+
|
|
221
260
|
# unit tests for read
|
|
222
261
|
# Inspect a maven repository
|
|
223
262
|
# A ViewSet for MavenRepository.
|
|
@@ -0,0 +1,60 @@
|
|
|
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::MavenPathIndexStatusResponse
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe PulpMavenClient::MavenPathIndexStatusResponse do
|
|
21
|
+
let(:instance) { PulpMavenClient::MavenPathIndexStatusResponse.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of MavenPathIndexStatusResponse' do
|
|
24
|
+
it 'should create an instance of MavenPathIndexStatusResponse' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(PulpMavenClient::MavenPathIndexStatusResponse)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "enabled"' 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 "ready"' 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 "latest_version"' 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 "manifest_digest"' 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 "error"' 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
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pulp_maven_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.33.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-09-
|
|
11
|
+
date: 2026-09-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -107,6 +107,7 @@ files:
|
|
|
107
107
|
- docs/MavenMavenRepository.md
|
|
108
108
|
- docs/MavenMavenRepositoryResponse.md
|
|
109
109
|
- docs/MavenPackageReleaseResponse.md
|
|
110
|
+
- docs/MavenPathIndexStatusResponse.md
|
|
110
111
|
- docs/MavenRepositoryMetricsResponse.md
|
|
111
112
|
- docs/MavenRepositoryPackageResponse.md
|
|
112
113
|
- docs/MyPermissionsResponse.md
|
|
@@ -166,6 +167,7 @@ files:
|
|
|
166
167
|
- lib/pulp_maven_client/models/maven_maven_repository.rb
|
|
167
168
|
- lib/pulp_maven_client/models/maven_maven_repository_response.rb
|
|
168
169
|
- lib/pulp_maven_client/models/maven_package_release_response.rb
|
|
170
|
+
- lib/pulp_maven_client/models/maven_path_index_status_response.rb
|
|
169
171
|
- lib/pulp_maven_client/models/maven_repository_metrics_response.rb
|
|
170
172
|
- lib/pulp_maven_client/models/maven_repository_package_response.rb
|
|
171
173
|
- lib/pulp_maven_client/models/my_permissions_response.rb
|
|
@@ -219,6 +221,7 @@ files:
|
|
|
219
221
|
- spec/models/maven_maven_repository_response_spec.rb
|
|
220
222
|
- spec/models/maven_maven_repository_spec.rb
|
|
221
223
|
- spec/models/maven_package_release_response_spec.rb
|
|
224
|
+
- spec/models/maven_path_index_status_response_spec.rb
|
|
222
225
|
- spec/models/maven_repository_metrics_response_spec.rb
|
|
223
226
|
- spec/models/maven_repository_package_response_spec.rb
|
|
224
227
|
- spec/models/my_permissions_response_spec.rb
|
|
@@ -283,6 +286,7 @@ test_files:
|
|
|
283
286
|
- spec/api/pulp_maven_api_spec.rb
|
|
284
287
|
- spec/models/unset_label_spec.rb
|
|
285
288
|
- spec/models/maven_maven_metadata_response_spec.rb
|
|
289
|
+
- spec/models/maven_path_index_status_response_spec.rb
|
|
286
290
|
- spec/models/paginated_maven_repository_package_list_response_spec.rb
|
|
287
291
|
- spec/models/maven_maven_index_page_response_spec.rb
|
|
288
292
|
- spec/models/repository_add_remove_content_spec.rb
|