pulpcore_client 3.108.1 → 3.109.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 +7 -4
- data/docs/ArtifactDistributionResponse.md +14 -14
- 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 +74 -74
- 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 +11 -11
- 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: b0bbfb1af99e42ed3b1d2986d0aaf204f640657899175fb67690cd9520cbd079
|
|
4
|
+
data.tar.gz: 86b3c709b87995289b57120a52f2919697b4284fdbc29a43df851743e7e1d70b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 77003d727621002829306e4e22d0828e151048d0ac389b41b4e736c7256348fd078d76a5cc900c15d3b0e6f883ce2cdfdd3b8e13237630ccbe506cfa4658da29
|
|
7
|
+
data.tar.gz: 8d0df8d8f763ddeded98e3da4c5f07960b0c03a09af94efbf543541322a16f704744c05d51a4f27e82a93c50e90d7c25437fc4a4d8f248161af213c03165aeab
|
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.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 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.1.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.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 'pulpcore_client', '~> 3.
|
|
37
|
+
gem 'pulpcore_client', '~> 3.109.1'
|
|
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,18 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **pulp_href** | **String** | | [optional][readonly] |
|
|
8
|
-
| **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
|
|
9
|
-
| **content_guard_prn** | **String** | The Pulp Resource Name (PRN) of the associated optional content guard. | [optional][readonly] |
|
|
10
|
-
| **pulp_labels** | **Hash<String, String>** | | [optional] |
|
|
11
|
-
| **repository_version** | **String** | RepositoryVersion to be served | [optional] |
|
|
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] |
|
|
13
7
|
| **prn** | **String** | The Pulp Resource Name (PRN). | [optional][readonly] |
|
|
14
8
|
| **pulp_created** | **Time** | Timestamp of creation. | [optional][readonly] |
|
|
9
|
+
| **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] |
|
|
15
10
|
| **content_guard** | **String** | An optional content-guard. | [optional] |
|
|
11
|
+
| **repository_version** | **String** | RepositoryVersion to be served | [optional] |
|
|
16
12
|
| **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] |
|
|
17
|
-
| **
|
|
13
|
+
| **pulp_href** | **String** | | [optional][readonly] |
|
|
14
|
+
| **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
|
|
18
15
|
| **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\") | |
|
|
16
|
+
| **pulp_labels** | **Hash<String, String>** | | [optional] |
|
|
17
|
+
| **content_guard_prn** | **String** | The Pulp Resource Name (PRN) of the associated optional content guard. | [optional][readonly] |
|
|
18
|
+
| **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | |
|
|
19
19
|
| **base_url** | **String** | The URL for accessing the publication as defined by this distribution. | [optional][readonly] |
|
|
20
20
|
|
|
21
21
|
## Example
|
|
@@ -24,18 +24,18 @@
|
|
|
24
24
|
require 'pulpcore_client'
|
|
25
25
|
|
|
26
26
|
instance = PulpcoreClient::ArtifactDistributionResponse.new(
|
|
27
|
-
pulp_href: null,
|
|
28
|
-
hidden: null,
|
|
29
|
-
content_guard_prn: null,
|
|
30
|
-
pulp_labels: null,
|
|
31
|
-
repository_version: null,
|
|
32
|
-
pulp_last_updated: null,
|
|
33
27
|
prn: null,
|
|
34
28
|
pulp_created: null,
|
|
29
|
+
pulp_last_updated: null,
|
|
35
30
|
content_guard: null,
|
|
31
|
+
repository_version: null,
|
|
36
32
|
no_content_change_since: null,
|
|
37
|
-
|
|
33
|
+
pulp_href: null,
|
|
34
|
+
hidden: null,
|
|
38
35
|
base_path: null,
|
|
36
|
+
pulp_labels: null,
|
|
37
|
+
content_guard_prn: null,
|
|
38
|
+
name: null,
|
|
39
39
|
base_url: null
|
|
40
40
|
)
|
|
41
41
|
```
|
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-23'] |
|
|
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,58 +16,58 @@ require 'time'
|
|
|
16
16
|
module PulpcoreClient
|
|
17
17
|
# A serializer for ArtifactDistribution.
|
|
18
18
|
class ArtifactDistributionResponse
|
|
19
|
-
attr_accessor :pulp_href
|
|
20
|
-
|
|
21
|
-
# Whether this distribution should be shown in the content app.
|
|
22
|
-
attr_accessor :hidden
|
|
23
|
-
|
|
24
|
-
# The Pulp Resource Name (PRN) of the associated optional content guard.
|
|
25
|
-
attr_accessor :content_guard_prn
|
|
26
|
-
|
|
27
|
-
attr_accessor :pulp_labels
|
|
28
|
-
|
|
29
|
-
# RepositoryVersion to be served
|
|
30
|
-
attr_accessor :repository_version
|
|
31
|
-
|
|
32
|
-
# 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.
|
|
33
|
-
attr_accessor :pulp_last_updated
|
|
34
|
-
|
|
35
19
|
# The Pulp Resource Name (PRN).
|
|
36
20
|
attr_accessor :prn
|
|
37
21
|
|
|
38
22
|
# Timestamp of creation.
|
|
39
23
|
attr_accessor :pulp_created
|
|
40
24
|
|
|
25
|
+
# 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.
|
|
26
|
+
attr_accessor :pulp_last_updated
|
|
27
|
+
|
|
41
28
|
# An optional content-guard.
|
|
42
29
|
attr_accessor :content_guard
|
|
43
30
|
|
|
31
|
+
# RepositoryVersion to be served
|
|
32
|
+
attr_accessor :repository_version
|
|
33
|
+
|
|
44
34
|
# Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
|
|
45
35
|
attr_accessor :no_content_change_since
|
|
46
36
|
|
|
47
|
-
|
|
48
|
-
|
|
37
|
+
attr_accessor :pulp_href
|
|
38
|
+
|
|
39
|
+
# Whether this distribution should be shown in the content app.
|
|
40
|
+
attr_accessor :hidden
|
|
49
41
|
|
|
50
42
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
51
43
|
attr_accessor :base_path
|
|
52
44
|
|
|
45
|
+
attr_accessor :pulp_labels
|
|
46
|
+
|
|
47
|
+
# The Pulp Resource Name (PRN) of the associated optional content guard.
|
|
48
|
+
attr_accessor :content_guard_prn
|
|
49
|
+
|
|
50
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
51
|
+
attr_accessor :name
|
|
52
|
+
|
|
53
53
|
# The URL for accessing the publication as defined by this distribution.
|
|
54
54
|
attr_accessor :base_url
|
|
55
55
|
|
|
56
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
57
57
|
def self.attribute_map
|
|
58
58
|
{
|
|
59
|
-
:'pulp_href' => :'pulp_href',
|
|
60
|
-
:'hidden' => :'hidden',
|
|
61
|
-
:'content_guard_prn' => :'content_guard_prn',
|
|
62
|
-
:'pulp_labels' => :'pulp_labels',
|
|
63
|
-
:'repository_version' => :'repository_version',
|
|
64
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
65
59
|
:'prn' => :'prn',
|
|
66
60
|
:'pulp_created' => :'pulp_created',
|
|
61
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
67
62
|
:'content_guard' => :'content_guard',
|
|
63
|
+
:'repository_version' => :'repository_version',
|
|
68
64
|
:'no_content_change_since' => :'no_content_change_since',
|
|
69
|
-
:'
|
|
65
|
+
:'pulp_href' => :'pulp_href',
|
|
66
|
+
:'hidden' => :'hidden',
|
|
70
67
|
:'base_path' => :'base_path',
|
|
68
|
+
:'pulp_labels' => :'pulp_labels',
|
|
69
|
+
:'content_guard_prn' => :'content_guard_prn',
|
|
70
|
+
:'name' => :'name',
|
|
71
71
|
:'base_url' => :'base_url'
|
|
72
72
|
}
|
|
73
73
|
end
|
|
@@ -80,18 +80,18 @@ module PulpcoreClient
|
|
|
80
80
|
# Attribute type mapping.
|
|
81
81
|
def self.openapi_types
|
|
82
82
|
{
|
|
83
|
-
:'pulp_href' => :'String',
|
|
84
|
-
:'hidden' => :'Boolean',
|
|
85
|
-
:'content_guard_prn' => :'String',
|
|
86
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
87
|
-
:'repository_version' => :'String',
|
|
88
|
-
:'pulp_last_updated' => :'Time',
|
|
89
83
|
:'prn' => :'String',
|
|
90
84
|
:'pulp_created' => :'Time',
|
|
85
|
+
:'pulp_last_updated' => :'Time',
|
|
91
86
|
:'content_guard' => :'String',
|
|
87
|
+
:'repository_version' => :'String',
|
|
92
88
|
:'no_content_change_since' => :'String',
|
|
93
|
-
:'
|
|
89
|
+
:'pulp_href' => :'String',
|
|
90
|
+
:'hidden' => :'Boolean',
|
|
94
91
|
:'base_path' => :'String',
|
|
92
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
93
|
+
:'content_guard_prn' => :'String',
|
|
94
|
+
:'name' => :'String',
|
|
95
95
|
:'base_url' => :'String'
|
|
96
96
|
}
|
|
97
97
|
end
|
|
@@ -99,8 +99,8 @@ module PulpcoreClient
|
|
|
99
99
|
# List of attributes with nullable: true
|
|
100
100
|
def self.openapi_nullable
|
|
101
101
|
Set.new([
|
|
102
|
-
:'repository_version',
|
|
103
102
|
:'content_guard',
|
|
103
|
+
:'repository_version',
|
|
104
104
|
])
|
|
105
105
|
end
|
|
106
106
|
|
|
@@ -119,48 +119,54 @@ module PulpcoreClient
|
|
|
119
119
|
h[k.to_sym] = v
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
if attributes.key?(:'
|
|
123
|
-
self.
|
|
122
|
+
if attributes.key?(:'prn')
|
|
123
|
+
self.prn = attributes[:'prn']
|
|
124
124
|
end
|
|
125
125
|
|
|
126
|
-
if attributes.key?(:'
|
|
127
|
-
self.
|
|
128
|
-
else
|
|
129
|
-
self.hidden = false
|
|
126
|
+
if attributes.key?(:'pulp_created')
|
|
127
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
130
128
|
end
|
|
131
129
|
|
|
132
|
-
if attributes.key?(:'
|
|
133
|
-
self.
|
|
130
|
+
if attributes.key?(:'pulp_last_updated')
|
|
131
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
134
132
|
end
|
|
135
133
|
|
|
136
|
-
if attributes.key?(:'
|
|
137
|
-
|
|
138
|
-
self.pulp_labels = value
|
|
139
|
-
end
|
|
134
|
+
if attributes.key?(:'content_guard')
|
|
135
|
+
self.content_guard = attributes[:'content_guard']
|
|
140
136
|
end
|
|
141
137
|
|
|
142
138
|
if attributes.key?(:'repository_version')
|
|
143
139
|
self.repository_version = attributes[:'repository_version']
|
|
144
140
|
end
|
|
145
141
|
|
|
146
|
-
if attributes.key?(:'
|
|
147
|
-
self.
|
|
142
|
+
if attributes.key?(:'no_content_change_since')
|
|
143
|
+
self.no_content_change_since = attributes[:'no_content_change_since']
|
|
148
144
|
end
|
|
149
145
|
|
|
150
|
-
if attributes.key?(:'
|
|
151
|
-
self.
|
|
146
|
+
if attributes.key?(:'pulp_href')
|
|
147
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
152
148
|
end
|
|
153
149
|
|
|
154
|
-
if attributes.key?(:'
|
|
155
|
-
self.
|
|
150
|
+
if attributes.key?(:'hidden')
|
|
151
|
+
self.hidden = attributes[:'hidden']
|
|
152
|
+
else
|
|
153
|
+
self.hidden = false
|
|
156
154
|
end
|
|
157
155
|
|
|
158
|
-
if attributes.key?(:'
|
|
159
|
-
self.
|
|
156
|
+
if attributes.key?(:'base_path')
|
|
157
|
+
self.base_path = attributes[:'base_path']
|
|
158
|
+
else
|
|
159
|
+
self.base_path = nil
|
|
160
160
|
end
|
|
161
161
|
|
|
162
|
-
if attributes.key?(:'
|
|
163
|
-
|
|
162
|
+
if attributes.key?(:'pulp_labels')
|
|
163
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
164
|
+
self.pulp_labels = value
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
if attributes.key?(:'content_guard_prn')
|
|
169
|
+
self.content_guard_prn = attributes[:'content_guard_prn']
|
|
164
170
|
end
|
|
165
171
|
|
|
166
172
|
if attributes.key?(:'name')
|
|
@@ -169,12 +175,6 @@ module PulpcoreClient
|
|
|
169
175
|
self.name = nil
|
|
170
176
|
end
|
|
171
177
|
|
|
172
|
-
if attributes.key?(:'base_path')
|
|
173
|
-
self.base_path = attributes[:'base_path']
|
|
174
|
-
else
|
|
175
|
-
self.base_path = nil
|
|
176
|
-
end
|
|
177
|
-
|
|
178
178
|
if attributes.key?(:'base_url')
|
|
179
179
|
self.base_url = attributes[:'base_url']
|
|
180
180
|
end
|
|
@@ -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 @name.nil?
|
|
189
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
190
|
-
end
|
|
191
|
-
|
|
192
188
|
if @base_path.nil?
|
|
193
189
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
194
190
|
end
|
|
195
191
|
|
|
192
|
+
if @name.nil?
|
|
193
|
+
invalid_properties.push('invalid value for "name", name 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 @name.nil?
|
|
204
203
|
return false if @base_path.nil?
|
|
204
|
+
return false if @name.nil?
|
|
205
205
|
true
|
|
206
206
|
end
|
|
207
207
|
|
|
@@ -210,18 +210,18 @@ module PulpcoreClient
|
|
|
210
210
|
def ==(o)
|
|
211
211
|
return true if self.equal?(o)
|
|
212
212
|
self.class == o.class &&
|
|
213
|
-
pulp_href == o.pulp_href &&
|
|
214
|
-
hidden == o.hidden &&
|
|
215
|
-
content_guard_prn == o.content_guard_prn &&
|
|
216
|
-
pulp_labels == o.pulp_labels &&
|
|
217
|
-
repository_version == o.repository_version &&
|
|
218
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
219
213
|
prn == o.prn &&
|
|
220
214
|
pulp_created == o.pulp_created &&
|
|
215
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
221
216
|
content_guard == o.content_guard &&
|
|
217
|
+
repository_version == o.repository_version &&
|
|
222
218
|
no_content_change_since == o.no_content_change_since &&
|
|
223
|
-
|
|
219
|
+
pulp_href == o.pulp_href &&
|
|
220
|
+
hidden == o.hidden &&
|
|
224
221
|
base_path == o.base_path &&
|
|
222
|
+
pulp_labels == o.pulp_labels &&
|
|
223
|
+
content_guard_prn == o.content_guard_prn &&
|
|
224
|
+
name == o.name &&
|
|
225
225
|
base_url == o.base_url
|
|
226
226
|
end
|
|
227
227
|
|
|
@@ -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
|
+
[prn, pulp_created, pulp_last_updated, content_guard, repository_version, no_content_change_since, pulp_href, hidden, base_path, pulp_labels, content_guard_prn, name, base_url].hash
|
|
238
238
|
end
|
|
239
239
|
|
|
240
240
|
# Builds the object from hash
|