pulpcore_client 3.108.2 → 3.109.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 +7 -4
- data/docs/ArtifactDistributionResponse.md +20 -20
- data/docs/LoginApi.md +73 -0
- data/docs/LoginUpdateResponse.md +24 -0
- data/docs/PatchedLoginUpdate.md +28 -0
- data/docs/Purge.md +1 -1
- data/lib/pulpcore_client/api/login_api.rb +67 -0
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +87 -87
- data/lib/pulpcore_client/models/login_update_response.rb +302 -0
- data/lib/pulpcore_client/models/patched_login_update.rb +369 -0
- data/lib/pulpcore_client/models/purge.rb +1 -1
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +2 -0
- data/spec/api/login_api_spec.rb +11 -0
- data/spec/models/artifact_distribution_response_spec.rb +12 -12
- data/spec/models/login_update_response_spec.rb +54 -0
- data/spec/models/patched_login_update_spec.rb +66 -0
- metadata +10 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 62f912d47aaf2c62e36aceb39a855712efdffd9fc71c51ada7763abd53f311ad
|
|
4
|
+
data.tar.gz: 3bd2068d9b0675e55f068bb73ab61c0a267eff8554f2a6894f5e5f4315f4bf72
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 61442424eedc453ce109c7f193afcb4222f30e8cbc9cb4d71342ed73d5859f7be8bb0d8601024443e47d425f150352d55f746eb7c4e517f4e18733bc4a2cc29f
|
|
7
|
+
data.tar.gz: a5f219bc75578d1b89bcdbd130aba8ec52193723d353c03dd7946e31507a2c4e842e6c317568ebedc8e8dea908c0d7f69cefc6f753f376215a4ea9b58c615175
|
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: 3.
|
|
10
|
+
- Package version: 3.109.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 pulpcore_client.gemspec
|
|
|
25
25
|
Then either install the gem locally:
|
|
26
26
|
|
|
27
27
|
```shell
|
|
28
|
-
gem install ./pulpcore_client-3.
|
|
28
|
+
gem install ./pulpcore_client-3.109.0.gem
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
(for development, run `gem install --dev ./pulpcore_client-3.
|
|
31
|
+
(for development, run `gem install --dev ./pulpcore_client-3.109.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 'pulpcore_client', '~> 3.
|
|
37
|
+
gem 'pulpcore_client', '~> 3.109.0'
|
|
38
38
|
|
|
39
39
|
### Install from Git
|
|
40
40
|
|
|
@@ -252,6 +252,7 @@ Class | Method | HTTP request | Description
|
|
|
252
252
|
*PulpcoreClient::LivezApi* | [**livez_read**](docs/LivezApi.md#livez_read) | **GET** /pulp/api/v3/livez/ | Inspect liveness of Pulp's REST API.
|
|
253
253
|
*PulpcoreClient::LoginApi* | [**login**](docs/LoginApi.md#login) | **POST** /pulp/api/v3/login/ |
|
|
254
254
|
*PulpcoreClient::LoginApi* | [**login_read**](docs/LoginApi.md#login_read) | **GET** /pulp/api/v3/login/ |
|
|
255
|
+
*PulpcoreClient::LoginApi* | [**login_update**](docs/LoginApi.md#login_update) | **PATCH** /pulp/api/v3/login/ |
|
|
255
256
|
*PulpcoreClient::LoginApi* | [**logout**](docs/LoginApi.md#logout) | **DELETE** /pulp/api/v3/login/ |
|
|
256
257
|
*PulpcoreClient::OrphansApi* | [**delete**](docs/OrphansApi.md#delete) | **DELETE** /pulp/api/v3/orphans/ | Delete orphans
|
|
257
258
|
*PulpcoreClient::OrphansCleanupApi* | [**cleanup**](docs/OrphansCleanupApi.md#cleanup) | **POST** /pulp/api/v3/orphans/cleanup/ |
|
|
@@ -381,6 +382,7 @@ Class | Method | HTTP request | Description
|
|
|
381
382
|
- [PulpcoreClient::HeaderContentGuardResponse](docs/HeaderContentGuardResponse.md)
|
|
382
383
|
- [PulpcoreClient::ImportResponse](docs/ImportResponse.md)
|
|
383
384
|
- [PulpcoreClient::LoginResponse](docs/LoginResponse.md)
|
|
385
|
+
- [PulpcoreClient::LoginUpdateResponse](docs/LoginUpdateResponse.md)
|
|
384
386
|
- [PulpcoreClient::MethodEnum](docs/MethodEnum.md)
|
|
385
387
|
- [PulpcoreClient::MinimalTaskResponse](docs/MinimalTaskResponse.md)
|
|
386
388
|
- [PulpcoreClient::MultipleArtifactContentResponse](docs/MultipleArtifactContentResponse.md)
|
|
@@ -455,6 +457,7 @@ Class | Method | HTTP request | Description
|
|
|
455
457
|
- [PulpcoreClient::PatchedFilesystemExporter](docs/PatchedFilesystemExporter.md)
|
|
456
458
|
- [PulpcoreClient::PatchedGroup](docs/PatchedGroup.md)
|
|
457
459
|
- [PulpcoreClient::PatchedHeaderContentGuard](docs/PatchedHeaderContentGuard.md)
|
|
460
|
+
- [PulpcoreClient::PatchedLoginUpdate](docs/PatchedLoginUpdate.md)
|
|
458
461
|
- [PulpcoreClient::PatchedOpenPGPDistribution](docs/PatchedOpenPGPDistribution.md)
|
|
459
462
|
- [PulpcoreClient::PatchedOpenPGPKeyring](docs/PatchedOpenPGPKeyring.md)
|
|
460
463
|
- [PulpcoreClient::PatchedPulpExporter](docs/PatchedPulpExporter.md)
|
|
@@ -4,19 +4,19 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **pulp_last_updated** | **Time** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional][readonly] |
|
|
8
|
-
| **content_guard** | **String** | An optional content-guard. | [optional] |
|
|
9
|
-
| **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
|
|
10
|
-
| **content_guard_prn** | **String** | The Pulp Resource Name (PRN) of the associated optional content guard. | [optional][readonly] |
|
|
11
|
-
| **pulp_href** | **String** | | [optional][readonly] |
|
|
12
|
-
| **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | |
|
|
13
7
|
| **base_url** | **String** | The URL for accessing the publication as defined by this distribution. | [optional][readonly] |
|
|
14
|
-
| **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | |
|
|
15
|
-
| **pulp_created** | **Time** | Timestamp of creation. | [optional][readonly] |
|
|
16
|
-
| **pulp_labels** | **Hash<String, String>** | | [optional] |
|
|
17
|
-
| **repository_version** | **String** | RepositoryVersion to be served | [optional] |
|
|
18
8
|
| **no_content_change_since** | **String** | Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes. | [optional][readonly] |
|
|
9
|
+
| **pulp_href** | **String** | | [optional][readonly] |
|
|
10
|
+
| **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | |
|
|
11
|
+
| **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | |
|
|
12
|
+
| **pulp_last_updated** | **Time** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional][readonly] |
|
|
19
13
|
| **prn** | **String** | The Pulp Resource Name (PRN). | [optional][readonly] |
|
|
14
|
+
| **repository_version** | **String** | RepositoryVersion to be served | [optional] |
|
|
15
|
+
| **content_guard_prn** | **String** | The Pulp Resource Name (PRN) of the associated optional content guard. | [optional][readonly] |
|
|
16
|
+
| **pulp_labels** | **Hash<String, String>** | | [optional] |
|
|
17
|
+
| **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
|
|
18
|
+
| **content_guard** | **String** | An optional content-guard. | [optional] |
|
|
19
|
+
| **pulp_created** | **Time** | Timestamp of creation. | [optional][readonly] |
|
|
20
20
|
|
|
21
21
|
## Example
|
|
22
22
|
|
|
@@ -24,19 +24,19 @@
|
|
|
24
24
|
require 'pulpcore_client'
|
|
25
25
|
|
|
26
26
|
instance = PulpcoreClient::ArtifactDistributionResponse.new(
|
|
27
|
-
pulp_last_updated: null,
|
|
28
|
-
content_guard: null,
|
|
29
|
-
hidden: null,
|
|
30
|
-
content_guard_prn: null,
|
|
31
|
-
pulp_href: null,
|
|
32
|
-
base_path: null,
|
|
33
27
|
base_url: null,
|
|
28
|
+
no_content_change_since: null,
|
|
29
|
+
pulp_href: null,
|
|
34
30
|
name: null,
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
base_path: null,
|
|
32
|
+
pulp_last_updated: null,
|
|
33
|
+
prn: null,
|
|
37
34
|
repository_version: null,
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
content_guard_prn: null,
|
|
36
|
+
pulp_labels: null,
|
|
37
|
+
hidden: null,
|
|
38
|
+
content_guard: null,
|
|
39
|
+
pulp_created: null
|
|
40
40
|
)
|
|
41
41
|
```
|
|
42
42
|
|
data/docs/LoginApi.md
CHANGED
|
@@ -6,6 +6,7 @@ All URIs are relative to *http://localhost:24817*
|
|
|
6
6
|
| ------ | ------------ | ----------- |
|
|
7
7
|
| [**login**](LoginApi.md#login) | **POST** /pulp/api/v3/login/ | |
|
|
8
8
|
| [**login_read**](LoginApi.md#login_read) | **GET** /pulp/api/v3/login/ | |
|
|
9
|
+
| [**login_update**](LoginApi.md#login_update) | **PATCH** /pulp/api/v3/login/ | |
|
|
9
10
|
| [**logout**](LoginApi.md#logout) | **DELETE** /pulp/api/v3/login/ | |
|
|
10
11
|
|
|
11
12
|
|
|
@@ -153,6 +154,78 @@ end
|
|
|
153
154
|
- **Accept**: application/json
|
|
154
155
|
|
|
155
156
|
|
|
157
|
+
## login_update
|
|
158
|
+
|
|
159
|
+
> <LoginUpdateResponse> login_update(patched_login_update, opts)
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
### Examples
|
|
164
|
+
|
|
165
|
+
```ruby
|
|
166
|
+
require 'time'
|
|
167
|
+
require 'pulpcore_client'
|
|
168
|
+
# setup authorization
|
|
169
|
+
PulpcoreClient.configure do |config|
|
|
170
|
+
# Configure HTTP basic authorization: basicAuth
|
|
171
|
+
config.username = 'YOUR USERNAME'
|
|
172
|
+
config.password = 'YOUR PASSWORD'
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
api_instance = PulpcoreClient::LoginApi.new
|
|
176
|
+
patched_login_update = PulpcoreClient::PatchedLoginUpdate.new # PatchedLoginUpdate |
|
|
177
|
+
opts = {
|
|
178
|
+
x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
begin
|
|
182
|
+
|
|
183
|
+
result = api_instance.login_update(patched_login_update, opts)
|
|
184
|
+
p result
|
|
185
|
+
rescue PulpcoreClient::ApiError => e
|
|
186
|
+
puts "Error when calling LoginApi->login_update: #{e}"
|
|
187
|
+
end
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
#### Using the login_update_with_http_info variant
|
|
191
|
+
|
|
192
|
+
This returns an Array which contains the response data, status code and headers.
|
|
193
|
+
|
|
194
|
+
> <Array(<LoginUpdateResponse>, Integer, Hash)> login_update_with_http_info(patched_login_update, opts)
|
|
195
|
+
|
|
196
|
+
```ruby
|
|
197
|
+
begin
|
|
198
|
+
|
|
199
|
+
data, status_code, headers = api_instance.login_update_with_http_info(patched_login_update, opts)
|
|
200
|
+
p status_code # => 2xx
|
|
201
|
+
p headers # => { ... }
|
|
202
|
+
p data # => <LoginUpdateResponse>
|
|
203
|
+
rescue PulpcoreClient::ApiError => e
|
|
204
|
+
puts "Error when calling LoginApi->login_update_with_http_info: #{e}"
|
|
205
|
+
end
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
### Parameters
|
|
209
|
+
|
|
210
|
+
| Name | Type | Description | Notes |
|
|
211
|
+
| ---- | ---- | ----------- | ----- |
|
|
212
|
+
| **patched_login_update** | [**PatchedLoginUpdate**](PatchedLoginUpdate.md) | | |
|
|
213
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
214
|
+
|
|
215
|
+
### Return type
|
|
216
|
+
|
|
217
|
+
[**LoginUpdateResponse**](LoginUpdateResponse.md)
|
|
218
|
+
|
|
219
|
+
### Authorization
|
|
220
|
+
|
|
221
|
+
[basicAuth](../README.md#basicAuth)
|
|
222
|
+
|
|
223
|
+
### HTTP request headers
|
|
224
|
+
|
|
225
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
226
|
+
- **Accept**: application/json
|
|
227
|
+
|
|
228
|
+
|
|
156
229
|
## logout
|
|
157
230
|
|
|
158
231
|
> logout(opts)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# PulpcoreClient::LoginUpdateResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **username** | **String** | 150 characters or fewer. Letters, digits and @/./+/-/_ only. | [optional] |
|
|
8
|
+
| **first_name** | **String** | First name | [optional] |
|
|
9
|
+
| **last_name** | **String** | Last name | [optional] |
|
|
10
|
+
| **email** | **String** | Email address | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'pulpcore_client'
|
|
16
|
+
|
|
17
|
+
instance = PulpcoreClient::LoginUpdateResponse.new(
|
|
18
|
+
username: null,
|
|
19
|
+
first_name: null,
|
|
20
|
+
last_name: null,
|
|
21
|
+
email: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# PulpcoreClient::PatchedLoginUpdate
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **username** | **String** | 150 characters or fewer. Letters, digits and @/./+/-/_ only. | [optional] |
|
|
8
|
+
| **old_password** | **String** | Old password | [optional] |
|
|
9
|
+
| **new_password** | **String** | New password | [optional] |
|
|
10
|
+
| **first_name** | **String** | First name | [optional] |
|
|
11
|
+
| **last_name** | **String** | Last name | [optional] |
|
|
12
|
+
| **email** | **String** | Email address | [optional] |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'pulpcore_client'
|
|
18
|
+
|
|
19
|
+
instance = PulpcoreClient::PatchedLoginUpdate.new(
|
|
20
|
+
username: null,
|
|
21
|
+
old_password: null,
|
|
22
|
+
new_password: null,
|
|
23
|
+
first_name: null,
|
|
24
|
+
last_name: null,
|
|
25
|
+
email: null
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|
data/docs/Purge.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **finished_before** | **Time** | Purge tasks completed earlier than this timestamp. Format '%Y-%m-%d[T%H:%M:%S]' | [optional][default to '2026-03-
|
|
7
|
+
| **finished_before** | **Time** | Purge tasks completed earlier than this timestamp. Format '%Y-%m-%d[T%H:%M:%S]' | [optional][default to '2026-03-22'] |
|
|
8
8
|
| **states** | [**Array<StatesEnum>**](StatesEnum.md) | List of task-states to be purged. Only 'final' states are allowed. | [optional] |
|
|
9
9
|
|
|
10
10
|
## Example
|
|
@@ -137,6 +137,73 @@ module PulpcoreClient
|
|
|
137
137
|
return data, status_code, headers
|
|
138
138
|
end
|
|
139
139
|
|
|
140
|
+
# @param patched_login_update [PatchedLoginUpdate]
|
|
141
|
+
# @param [Hash] opts the optional parameters
|
|
142
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
143
|
+
# @return [LoginUpdateResponse]
|
|
144
|
+
def login_update(patched_login_update, opts = {})
|
|
145
|
+
data, _status_code, _headers = login_update_with_http_info(patched_login_update, opts)
|
|
146
|
+
data
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# @param patched_login_update [PatchedLoginUpdate]
|
|
150
|
+
# @param [Hash] opts the optional parameters
|
|
151
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
152
|
+
# @return [Array<(LoginUpdateResponse, Integer, Hash)>] LoginUpdateResponse data, response status code and response headers
|
|
153
|
+
def login_update_with_http_info(patched_login_update, opts = {})
|
|
154
|
+
if @api_client.config.debugging
|
|
155
|
+
@api_client.config.logger.debug 'Calling API: LoginApi.login_update ...'
|
|
156
|
+
end
|
|
157
|
+
# verify the required parameter 'patched_login_update' is set
|
|
158
|
+
if @api_client.config.client_side_validation && patched_login_update.nil?
|
|
159
|
+
fail ArgumentError, "Missing the required parameter 'patched_login_update' when calling LoginApi.login_update"
|
|
160
|
+
end
|
|
161
|
+
# resource path
|
|
162
|
+
local_var_path = '/pulp/api/v3/login/'
|
|
163
|
+
|
|
164
|
+
# query parameters
|
|
165
|
+
query_params = opts[:query_params] || {}
|
|
166
|
+
|
|
167
|
+
# header parameters
|
|
168
|
+
header_params = opts[:header_params] || {}
|
|
169
|
+
# HTTP header 'Accept' (if needed)
|
|
170
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
171
|
+
# HTTP header 'Content-Type'
|
|
172
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
173
|
+
if !content_type.nil?
|
|
174
|
+
header_params['Content-Type'] = content_type
|
|
175
|
+
end
|
|
176
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
|
177
|
+
|
|
178
|
+
# form parameters
|
|
179
|
+
form_params = opts[:form_params] || {}
|
|
180
|
+
|
|
181
|
+
# http body (model)
|
|
182
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(patched_login_update)
|
|
183
|
+
|
|
184
|
+
# return_type
|
|
185
|
+
return_type = opts[:debug_return_type] || 'LoginUpdateResponse'
|
|
186
|
+
|
|
187
|
+
# auth_names
|
|
188
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
189
|
+
|
|
190
|
+
new_options = opts.merge(
|
|
191
|
+
:operation => :"LoginApi.login_update",
|
|
192
|
+
:header_params => header_params,
|
|
193
|
+
:query_params => query_params,
|
|
194
|
+
:form_params => form_params,
|
|
195
|
+
:body => post_body,
|
|
196
|
+
:auth_names => auth_names,
|
|
197
|
+
:return_type => return_type
|
|
198
|
+
)
|
|
199
|
+
|
|
200
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
201
|
+
if @api_client.config.debugging
|
|
202
|
+
@api_client.config.logger.debug "API called: LoginApi#login_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
203
|
+
end
|
|
204
|
+
return data, status_code, headers
|
|
205
|
+
end
|
|
206
|
+
|
|
140
207
|
# @param [Hash] opts the optional parameters
|
|
141
208
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
142
209
|
# @return [nil]
|
|
@@ -16,59 +16,59 @@ require 'time'
|
|
|
16
16
|
module PulpcoreClient
|
|
17
17
|
# A serializer for ArtifactDistribution.
|
|
18
18
|
class ArtifactDistributionResponse
|
|
19
|
-
#
|
|
20
|
-
attr_accessor :
|
|
21
|
-
|
|
22
|
-
# An optional content-guard.
|
|
23
|
-
attr_accessor :content_guard
|
|
24
|
-
|
|
25
|
-
# Whether this distribution should be shown in the content app.
|
|
26
|
-
attr_accessor :hidden
|
|
19
|
+
# The URL for accessing the publication as defined by this distribution.
|
|
20
|
+
attr_accessor :base_url
|
|
27
21
|
|
|
28
|
-
#
|
|
29
|
-
attr_accessor :
|
|
22
|
+
# Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
|
|
23
|
+
attr_accessor :no_content_change_since
|
|
30
24
|
|
|
31
25
|
attr_accessor :pulp_href
|
|
32
26
|
|
|
27
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
28
|
+
attr_accessor :name
|
|
29
|
+
|
|
33
30
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
34
31
|
attr_accessor :base_path
|
|
35
32
|
|
|
36
|
-
#
|
|
37
|
-
attr_accessor :
|
|
33
|
+
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
|
34
|
+
attr_accessor :pulp_last_updated
|
|
38
35
|
|
|
39
|
-
#
|
|
40
|
-
attr_accessor :
|
|
36
|
+
# The Pulp Resource Name (PRN).
|
|
37
|
+
attr_accessor :prn
|
|
41
38
|
|
|
42
|
-
#
|
|
43
|
-
attr_accessor :
|
|
39
|
+
# RepositoryVersion to be served
|
|
40
|
+
attr_accessor :repository_version
|
|
41
|
+
|
|
42
|
+
# The Pulp Resource Name (PRN) of the associated optional content guard.
|
|
43
|
+
attr_accessor :content_guard_prn
|
|
44
44
|
|
|
45
45
|
attr_accessor :pulp_labels
|
|
46
46
|
|
|
47
|
-
#
|
|
48
|
-
attr_accessor :
|
|
47
|
+
# Whether this distribution should be shown in the content app.
|
|
48
|
+
attr_accessor :hidden
|
|
49
49
|
|
|
50
|
-
#
|
|
51
|
-
attr_accessor :
|
|
50
|
+
# An optional content-guard.
|
|
51
|
+
attr_accessor :content_guard
|
|
52
52
|
|
|
53
|
-
#
|
|
54
|
-
attr_accessor :
|
|
53
|
+
# Timestamp of creation.
|
|
54
|
+
attr_accessor :pulp_created
|
|
55
55
|
|
|
56
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
57
57
|
def self.attribute_map
|
|
58
58
|
{
|
|
59
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
60
|
-
:'content_guard' => :'content_guard',
|
|
61
|
-
:'hidden' => :'hidden',
|
|
62
|
-
:'content_guard_prn' => :'content_guard_prn',
|
|
63
|
-
:'pulp_href' => :'pulp_href',
|
|
64
|
-
:'base_path' => :'base_path',
|
|
65
59
|
:'base_url' => :'base_url',
|
|
60
|
+
:'no_content_change_since' => :'no_content_change_since',
|
|
61
|
+
:'pulp_href' => :'pulp_href',
|
|
66
62
|
:'name' => :'name',
|
|
67
|
-
:'
|
|
68
|
-
:'
|
|
63
|
+
:'base_path' => :'base_path',
|
|
64
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
65
|
+
:'prn' => :'prn',
|
|
69
66
|
:'repository_version' => :'repository_version',
|
|
70
|
-
:'
|
|
71
|
-
:'
|
|
67
|
+
:'content_guard_prn' => :'content_guard_prn',
|
|
68
|
+
:'pulp_labels' => :'pulp_labels',
|
|
69
|
+
:'hidden' => :'hidden',
|
|
70
|
+
:'content_guard' => :'content_guard',
|
|
71
|
+
:'pulp_created' => :'pulp_created'
|
|
72
72
|
}
|
|
73
73
|
end
|
|
74
74
|
|
|
@@ -80,27 +80,27 @@ module PulpcoreClient
|
|
|
80
80
|
# Attribute type mapping.
|
|
81
81
|
def self.openapi_types
|
|
82
82
|
{
|
|
83
|
-
:'pulp_last_updated' => :'Time',
|
|
84
|
-
:'content_guard' => :'String',
|
|
85
|
-
:'hidden' => :'Boolean',
|
|
86
|
-
:'content_guard_prn' => :'String',
|
|
87
|
-
:'pulp_href' => :'String',
|
|
88
|
-
:'base_path' => :'String',
|
|
89
83
|
:'base_url' => :'String',
|
|
84
|
+
:'no_content_change_since' => :'String',
|
|
85
|
+
:'pulp_href' => :'String',
|
|
90
86
|
:'name' => :'String',
|
|
91
|
-
:'
|
|
92
|
-
:'
|
|
87
|
+
:'base_path' => :'String',
|
|
88
|
+
:'pulp_last_updated' => :'Time',
|
|
89
|
+
:'prn' => :'String',
|
|
93
90
|
:'repository_version' => :'String',
|
|
94
|
-
:'
|
|
95
|
-
:'
|
|
91
|
+
:'content_guard_prn' => :'String',
|
|
92
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
93
|
+
:'hidden' => :'Boolean',
|
|
94
|
+
:'content_guard' => :'String',
|
|
95
|
+
:'pulp_created' => :'Time'
|
|
96
96
|
}
|
|
97
97
|
end
|
|
98
98
|
|
|
99
99
|
# List of attributes with nullable: true
|
|
100
100
|
def self.openapi_nullable
|
|
101
101
|
Set.new([
|
|
102
|
-
:'content_guard',
|
|
103
102
|
:'repository_version',
|
|
103
|
+
:'content_guard',
|
|
104
104
|
])
|
|
105
105
|
end
|
|
106
106
|
|
|
@@ -119,46 +119,44 @@ module PulpcoreClient
|
|
|
119
119
|
h[k.to_sym] = v
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
if attributes.key?(:'
|
|
123
|
-
self.
|
|
124
|
-
end
|
|
125
|
-
|
|
126
|
-
if attributes.key?(:'content_guard')
|
|
127
|
-
self.content_guard = attributes[:'content_guard']
|
|
128
|
-
end
|
|
129
|
-
|
|
130
|
-
if attributes.key?(:'hidden')
|
|
131
|
-
self.hidden = attributes[:'hidden']
|
|
132
|
-
else
|
|
133
|
-
self.hidden = false
|
|
122
|
+
if attributes.key?(:'base_url')
|
|
123
|
+
self.base_url = attributes[:'base_url']
|
|
134
124
|
end
|
|
135
125
|
|
|
136
|
-
if attributes.key?(:'
|
|
137
|
-
self.
|
|
126
|
+
if attributes.key?(:'no_content_change_since')
|
|
127
|
+
self.no_content_change_since = attributes[:'no_content_change_since']
|
|
138
128
|
end
|
|
139
129
|
|
|
140
130
|
if attributes.key?(:'pulp_href')
|
|
141
131
|
self.pulp_href = attributes[:'pulp_href']
|
|
142
132
|
end
|
|
143
133
|
|
|
134
|
+
if attributes.key?(:'name')
|
|
135
|
+
self.name = attributes[:'name']
|
|
136
|
+
else
|
|
137
|
+
self.name = nil
|
|
138
|
+
end
|
|
139
|
+
|
|
144
140
|
if attributes.key?(:'base_path')
|
|
145
141
|
self.base_path = attributes[:'base_path']
|
|
146
142
|
else
|
|
147
143
|
self.base_path = nil
|
|
148
144
|
end
|
|
149
145
|
|
|
150
|
-
if attributes.key?(:'
|
|
151
|
-
self.
|
|
146
|
+
if attributes.key?(:'pulp_last_updated')
|
|
147
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
152
148
|
end
|
|
153
149
|
|
|
154
|
-
if attributes.key?(:'
|
|
155
|
-
self.
|
|
156
|
-
else
|
|
157
|
-
self.name = nil
|
|
150
|
+
if attributes.key?(:'prn')
|
|
151
|
+
self.prn = attributes[:'prn']
|
|
158
152
|
end
|
|
159
153
|
|
|
160
|
-
if attributes.key?(:'
|
|
161
|
-
self.
|
|
154
|
+
if attributes.key?(:'repository_version')
|
|
155
|
+
self.repository_version = attributes[:'repository_version']
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
if attributes.key?(:'content_guard_prn')
|
|
159
|
+
self.content_guard_prn = attributes[:'content_guard_prn']
|
|
162
160
|
end
|
|
163
161
|
|
|
164
162
|
if attributes.key?(:'pulp_labels')
|
|
@@ -167,16 +165,18 @@ module PulpcoreClient
|
|
|
167
165
|
end
|
|
168
166
|
end
|
|
169
167
|
|
|
170
|
-
if attributes.key?(:'
|
|
171
|
-
self.
|
|
168
|
+
if attributes.key?(:'hidden')
|
|
169
|
+
self.hidden = attributes[:'hidden']
|
|
170
|
+
else
|
|
171
|
+
self.hidden = false
|
|
172
172
|
end
|
|
173
173
|
|
|
174
|
-
if attributes.key?(:'
|
|
175
|
-
self.
|
|
174
|
+
if attributes.key?(:'content_guard')
|
|
175
|
+
self.content_guard = attributes[:'content_guard']
|
|
176
176
|
end
|
|
177
177
|
|
|
178
|
-
if attributes.key?(:'
|
|
179
|
-
self.
|
|
178
|
+
if attributes.key?(:'pulp_created')
|
|
179
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
180
180
|
end
|
|
181
181
|
end
|
|
182
182
|
|
|
@@ -185,14 +185,14 @@ module PulpcoreClient
|
|
|
185
185
|
def list_invalid_properties
|
|
186
186
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
187
187
|
invalid_properties = Array.new
|
|
188
|
-
if @base_path.nil?
|
|
189
|
-
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
190
|
-
end
|
|
191
|
-
|
|
192
188
|
if @name.nil?
|
|
193
189
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
194
190
|
end
|
|
195
191
|
|
|
192
|
+
if @base_path.nil?
|
|
193
|
+
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
194
|
+
end
|
|
195
|
+
|
|
196
196
|
invalid_properties
|
|
197
197
|
end
|
|
198
198
|
|
|
@@ -200,8 +200,8 @@ module PulpcoreClient
|
|
|
200
200
|
# @return true if the model is valid
|
|
201
201
|
def valid?
|
|
202
202
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
203
|
-
return false if @base_path.nil?
|
|
204
203
|
return false if @name.nil?
|
|
204
|
+
return false if @base_path.nil?
|
|
205
205
|
true
|
|
206
206
|
end
|
|
207
207
|
|
|
@@ -210,19 +210,19 @@ module PulpcoreClient
|
|
|
210
210
|
def ==(o)
|
|
211
211
|
return true if self.equal?(o)
|
|
212
212
|
self.class == o.class &&
|
|
213
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
214
|
-
content_guard == o.content_guard &&
|
|
215
|
-
hidden == o.hidden &&
|
|
216
|
-
content_guard_prn == o.content_guard_prn &&
|
|
217
|
-
pulp_href == o.pulp_href &&
|
|
218
|
-
base_path == o.base_path &&
|
|
219
213
|
base_url == o.base_url &&
|
|
214
|
+
no_content_change_since == o.no_content_change_since &&
|
|
215
|
+
pulp_href == o.pulp_href &&
|
|
220
216
|
name == o.name &&
|
|
221
|
-
|
|
222
|
-
|
|
217
|
+
base_path == o.base_path &&
|
|
218
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
219
|
+
prn == o.prn &&
|
|
223
220
|
repository_version == o.repository_version &&
|
|
224
|
-
|
|
225
|
-
|
|
221
|
+
content_guard_prn == o.content_guard_prn &&
|
|
222
|
+
pulp_labels == o.pulp_labels &&
|
|
223
|
+
hidden == o.hidden &&
|
|
224
|
+
content_guard == o.content_guard &&
|
|
225
|
+
pulp_created == o.pulp_created
|
|
226
226
|
end
|
|
227
227
|
|
|
228
228
|
# @see the `==` method
|
|
@@ -234,7 +234,7 @@ module PulpcoreClient
|
|
|
234
234
|
# Calculates hash code according to all attributes.
|
|
235
235
|
# @return [Integer] Hash code
|
|
236
236
|
def hash
|
|
237
|
-
[
|
|
237
|
+
[base_url, no_content_change_since, pulp_href, name, base_path, pulp_last_updated, prn, repository_version, content_guard_prn, pulp_labels, hidden, content_guard, pulp_created].hash
|
|
238
238
|
end
|
|
239
239
|
|
|
240
240
|
# Builds the object from hash
|