pulpcore_client 3.102.0 → 3.103.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 +6 -4
- data/docs/ArtifactDistributionResponse.md +14 -14
- data/docs/ContentOpenpgpPublickeyApi.md +3 -1
- data/docs/GenericRemoteResponse.md +9 -9
- data/docs/Purge.md +1 -1
- data/docs/RemoteNetworkConfig.md +50 -0
- data/docs/RemoteNetworkConfigResponse.md +40 -0
- data/lib/pulpcore_client/api/content_openpgp_publickey_api.rb +3 -0
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +69 -69
- data/lib/pulpcore_client/models/generic_remote_response.rb +49 -49
- data/lib/pulpcore_client/models/purge.rb +1 -1
- data/lib/pulpcore_client/models/remote_network_config.rb +573 -0
- data/lib/pulpcore_client/models/remote_network_config_response.rb +398 -0
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +2 -0
- data/spec/api/content_openpgp_publickey_api_spec.rb +1 -0
- data/spec/models/artifact_distribution_response_spec.rb +11 -11
- data/spec/models/generic_remote_response_spec.rb +10 -10
- data/spec/models/remote_network_config_response_spec.rb +102 -0
- data/spec/models/remote_network_config_spec.rb +132 -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: 93373cf180b9013243f5c0be3665b4c93d156e62dcd12d73795a311910b592b5
|
|
4
|
+
data.tar.gz: 1215b836efc7bd2871887fea2834ae5f10aad8417e62200e208ee2c18f8cb71c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e815825800d63195638fe7c395c29ad8a24e2544dc7d6cd9ba9753e862bad3c7a005d4f2db03630d09cff3c6c5739e98df31c10216b73ca1b7a7f700ce4a7c19
|
|
7
|
+
data.tar.gz: f65027ec173b771d1435f63a4e98ce2cac5dcd2a5e3ad1f24a880289c92c4c9e32abfe769094afc4b31801b6455e3246939131488712e292414a89c96b8fb70b
|
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.103.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.103.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.103.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.103.0'
|
|
38
38
|
|
|
39
39
|
### Install from Git
|
|
40
40
|
|
|
@@ -478,6 +478,8 @@ Class | Method | HTTP request | Description
|
|
|
478
478
|
- [PulpcoreClient::RBACContentGuardResponse](docs/RBACContentGuardResponse.md)
|
|
479
479
|
- [PulpcoreClient::ReclaimSpace](docs/ReclaimSpace.md)
|
|
480
480
|
- [PulpcoreClient::RedisConnectionResponse](docs/RedisConnectionResponse.md)
|
|
481
|
+
- [PulpcoreClient::RemoteNetworkConfig](docs/RemoteNetworkConfig.md)
|
|
482
|
+
- [PulpcoreClient::RemoteNetworkConfigResponse](docs/RemoteNetworkConfigResponse.md)
|
|
481
483
|
- [PulpcoreClient::Repair](docs/Repair.md)
|
|
482
484
|
- [PulpcoreClient::RepositoryAddRemoveContent](docs/RepositoryAddRemoveContent.md)
|
|
483
485
|
- [PulpcoreClient::RepositoryResponse](docs/RepositoryResponse.md)
|
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **
|
|
8
|
-
| **
|
|
7
|
+
| **base_url** | **String** | The URL for accessing the publication as defined by this distribution. | [optional][readonly] |
|
|
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
|
+
| **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | |
|
|
10
|
+
| **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] |
|
|
9
11
|
| **pulp_href** | **String** | | [optional][readonly] |
|
|
12
|
+
| **prn** | **String** | The Pulp Resource Name (PRN). | [optional][readonly] |
|
|
13
|
+
| **content_guard** | **String** | An optional content-guard. | [optional] |
|
|
10
14
|
| **pulp_created** | **Time** | Timestamp of creation. | [optional][readonly] |
|
|
11
15
|
| **pulp_labels** | **Hash<String, String>** | | [optional] |
|
|
12
16
|
| **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
|
|
13
|
-
| **
|
|
14
|
-
| **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] |
|
|
15
|
-
| **base_url** | **String** | The URL for accessing the publication as defined by this distribution. | [optional][readonly] |
|
|
16
|
-
| **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] |
|
|
17
|
-
| **prn** | **String** | The Pulp Resource Name (PRN). | [optional][readonly] |
|
|
17
|
+
| **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\") | |
|
|
18
18
|
|
|
19
19
|
## Example
|
|
20
20
|
|
|
@@ -22,17 +22,17 @@
|
|
|
22
22
|
require 'pulpcore_client'
|
|
23
23
|
|
|
24
24
|
instance = PulpcoreClient::ArtifactDistributionResponse.new(
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
base_url: null,
|
|
26
|
+
no_content_change_since: null,
|
|
27
|
+
name: null,
|
|
28
|
+
pulp_last_updated: null,
|
|
27
29
|
pulp_href: null,
|
|
30
|
+
prn: null,
|
|
31
|
+
content_guard: null,
|
|
28
32
|
pulp_created: null,
|
|
29
33
|
pulp_labels: null,
|
|
30
34
|
hidden: null,
|
|
31
|
-
|
|
32
|
-
no_content_change_since: null,
|
|
33
|
-
base_url: null,
|
|
34
|
-
pulp_last_updated: null,
|
|
35
|
-
prn: null
|
|
35
|
+
base_path: null
|
|
36
36
|
)
|
|
37
37
|
```
|
|
38
38
|
|
|
@@ -38,7 +38,8 @@ opts = {
|
|
|
38
38
|
pulp_labels: { key: 'inner_example'}, # Hash<String, String> | A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
39
39
|
file: File.new('/path/to/some/file'), # File | An uploaded file that may be turned into the content unit.
|
|
40
40
|
upload: 'upload_example', # String | An uncommitted upload that may be turned into the content unit.
|
|
41
|
-
file_url: 'file_url_example' # String | A url that Pulp can download and turn into the content unit.
|
|
41
|
+
file_url: 'file_url_example', # String | A url that Pulp can download and turn into the content unit.
|
|
42
|
+
downloader_config: PulpcoreClient::RemoteNetworkConfig.new # RemoteNetworkConfig | Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
begin
|
|
@@ -78,6 +79,7 @@ end
|
|
|
78
79
|
| **file** | **File** | An uploaded file that may be turned into the content unit. | [optional] |
|
|
79
80
|
| **upload** | **String** | An uncommitted upload that may be turned into the content unit. | [optional] |
|
|
80
81
|
| **file_url** | **String** | A url that Pulp can download and turn into the content unit. | [optional] |
|
|
82
|
+
| **downloader_config** | [**RemoteNetworkConfig**](RemoteNetworkConfig.md) | Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url. | [optional] |
|
|
81
83
|
|
|
82
84
|
### Return type
|
|
83
85
|
|
|
@@ -10,21 +10,21 @@
|
|
|
10
10
|
| **pulp_last_updated** | **Time** | Timestamp of the most recent update of the remote. | [optional][readonly] |
|
|
11
11
|
| **name** | **String** | A unique name for this remote. | |
|
|
12
12
|
| **url** | **String** | The URL of an external content source. | |
|
|
13
|
+
| **pulp_labels** | **Hash<String, String>** | | [optional] |
|
|
14
|
+
| **policy** | [**GenericRemoteResponsePolicyEnum**](GenericRemoteResponsePolicyEnum.md) | The policy to use when downloading content. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again. | [optional] |
|
|
15
|
+
| **hidden_fields** | [**Array<GenericRemoteResponseHiddenFieldsInner>**](GenericRemoteResponseHiddenFieldsInner.md) | List of hidden (write only) fields | [optional] |
|
|
13
16
|
| **ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional] |
|
|
14
17
|
| **client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional] |
|
|
15
18
|
| **tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional] |
|
|
16
19
|
| **proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional] |
|
|
17
|
-
| **pulp_labels** | **Hash<String, String>** | | [optional] |
|
|
18
|
-
| **download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional] |
|
|
19
20
|
| **max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional] |
|
|
20
|
-
| **policy** | [**GenericRemoteResponsePolicyEnum**](GenericRemoteResponsePolicyEnum.md) | The policy to use when downloading content. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again. | [optional] |
|
|
21
21
|
| **total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
|
|
22
22
|
| **connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
|
|
23
23
|
| **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
|
|
24
24
|
| **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
|
|
25
25
|
| **headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional] |
|
|
26
|
+
| **download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional] |
|
|
26
27
|
| **rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional] |
|
|
27
|
-
| **hidden_fields** | [**Array<GenericRemoteResponseHiddenFieldsInner>**](GenericRemoteResponseHiddenFieldsInner.md) | List of hidden (write only) fields | [optional] |
|
|
28
28
|
|
|
29
29
|
## Example
|
|
30
30
|
|
|
@@ -38,21 +38,21 @@ instance = PulpcoreClient::GenericRemoteResponse.new(
|
|
|
38
38
|
pulp_last_updated: null,
|
|
39
39
|
name: null,
|
|
40
40
|
url: null,
|
|
41
|
+
pulp_labels: null,
|
|
42
|
+
policy: null,
|
|
43
|
+
hidden_fields: null,
|
|
41
44
|
ca_cert: null,
|
|
42
45
|
client_cert: null,
|
|
43
46
|
tls_validation: null,
|
|
44
47
|
proxy_url: null,
|
|
45
|
-
pulp_labels: null,
|
|
46
|
-
download_concurrency: null,
|
|
47
48
|
max_retries: null,
|
|
48
|
-
policy: null,
|
|
49
49
|
total_timeout: null,
|
|
50
50
|
connect_timeout: null,
|
|
51
51
|
sock_connect_timeout: null,
|
|
52
52
|
sock_read_timeout: null,
|
|
53
53
|
headers: null,
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
download_concurrency: null,
|
|
55
|
+
rate_limit: null
|
|
56
56
|
)
|
|
57
57
|
```
|
|
58
58
|
|
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 '
|
|
7
|
+
| **finished_before** | **Time** | Purge tasks completed earlier than this timestamp. Format '%Y-%m-%d[T%H:%M:%S]' | [optional][default to '2026-01-04'] |
|
|
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
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# PulpcoreClient::RemoteNetworkConfig
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional] |
|
|
8
|
+
| **client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional] |
|
|
9
|
+
| **client_key** | **String** | A PEM encoded private key used for authentication. | [optional] |
|
|
10
|
+
| **tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional] |
|
|
11
|
+
| **proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional] |
|
|
12
|
+
| **proxy_username** | **String** | The username to authenticte to the proxy. | [optional] |
|
|
13
|
+
| **proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional] |
|
|
14
|
+
| **username** | **String** | The username to be used for authentication when syncing. | [optional] |
|
|
15
|
+
| **password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional] |
|
|
16
|
+
| **max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional] |
|
|
17
|
+
| **total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
|
|
18
|
+
| **connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
|
|
19
|
+
| **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
|
|
20
|
+
| **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
|
|
21
|
+
| **headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional] |
|
|
22
|
+
| **download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional] |
|
|
23
|
+
| **rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional] |
|
|
24
|
+
|
|
25
|
+
## Example
|
|
26
|
+
|
|
27
|
+
```ruby
|
|
28
|
+
require 'pulpcore_client'
|
|
29
|
+
|
|
30
|
+
instance = PulpcoreClient::RemoteNetworkConfig.new(
|
|
31
|
+
ca_cert: null,
|
|
32
|
+
client_cert: null,
|
|
33
|
+
client_key: null,
|
|
34
|
+
tls_validation: null,
|
|
35
|
+
proxy_url: null,
|
|
36
|
+
proxy_username: null,
|
|
37
|
+
proxy_password: null,
|
|
38
|
+
username: null,
|
|
39
|
+
password: null,
|
|
40
|
+
max_retries: null,
|
|
41
|
+
total_timeout: null,
|
|
42
|
+
connect_timeout: null,
|
|
43
|
+
sock_connect_timeout: null,
|
|
44
|
+
sock_read_timeout: null,
|
|
45
|
+
headers: null,
|
|
46
|
+
download_concurrency: null,
|
|
47
|
+
rate_limit: null
|
|
48
|
+
)
|
|
49
|
+
```
|
|
50
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# PulpcoreClient::RemoteNetworkConfigResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional] |
|
|
8
|
+
| **client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional] |
|
|
9
|
+
| **tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional] |
|
|
10
|
+
| **proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional] |
|
|
11
|
+
| **max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional] |
|
|
12
|
+
| **total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
|
|
13
|
+
| **connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
|
|
14
|
+
| **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
|
|
15
|
+
| **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
|
|
16
|
+
| **headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional] |
|
|
17
|
+
| **download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional] |
|
|
18
|
+
| **rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional] |
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```ruby
|
|
23
|
+
require 'pulpcore_client'
|
|
24
|
+
|
|
25
|
+
instance = PulpcoreClient::RemoteNetworkConfigResponse.new(
|
|
26
|
+
ca_cert: null,
|
|
27
|
+
client_cert: null,
|
|
28
|
+
tls_validation: null,
|
|
29
|
+
proxy_url: null,
|
|
30
|
+
max_retries: null,
|
|
31
|
+
total_timeout: null,
|
|
32
|
+
connect_timeout: null,
|
|
33
|
+
sock_connect_timeout: null,
|
|
34
|
+
sock_read_timeout: null,
|
|
35
|
+
headers: null,
|
|
36
|
+
download_concurrency: null,
|
|
37
|
+
rate_limit: null
|
|
38
|
+
)
|
|
39
|
+
```
|
|
40
|
+
|
|
@@ -28,6 +28,7 @@ module PulpcoreClient
|
|
|
28
28
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
|
29
29
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
|
30
30
|
# @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
|
|
31
|
+
# @option opts [RemoteNetworkConfig] :downloader_config Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.
|
|
31
32
|
# @return [AsyncOperationResponse]
|
|
32
33
|
def create(opts = {})
|
|
33
34
|
data, _status_code, _headers = create_with_http_info(opts)
|
|
@@ -43,6 +44,7 @@ module PulpcoreClient
|
|
|
43
44
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
|
44
45
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
|
45
46
|
# @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
|
|
47
|
+
# @option opts [RemoteNetworkConfig] :downloader_config Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.
|
|
46
48
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
47
49
|
def create_with_http_info(opts = {})
|
|
48
50
|
if @api_client.config.debugging
|
|
@@ -76,6 +78,7 @@ module PulpcoreClient
|
|
|
76
78
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
|
77
79
|
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
|
78
80
|
form_params['file_url'] = opts[:'file_url'] if !opts[:'file_url'].nil?
|
|
81
|
+
form_params['downloader_config'] = opts[:'downloader_config'] if !opts[:'downloader_config'].nil?
|
|
79
82
|
|
|
80
83
|
# http body (model)
|
|
81
84
|
post_body = opts[:debug_body]
|
|
@@ -16,14 +16,26 @@ require 'time'
|
|
|
16
16
|
module PulpcoreClient
|
|
17
17
|
# A serializer for ArtifactDistribution.
|
|
18
18
|
class ArtifactDistributionResponse
|
|
19
|
-
#
|
|
20
|
-
attr_accessor :
|
|
19
|
+
# The URL for accessing the publication as defined by this distribution.
|
|
20
|
+
attr_accessor :base_url
|
|
21
21
|
|
|
22
|
-
#
|
|
23
|
-
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
|
|
24
|
+
|
|
25
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
26
|
+
attr_accessor :name
|
|
27
|
+
|
|
28
|
+
# 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.
|
|
29
|
+
attr_accessor :pulp_last_updated
|
|
24
30
|
|
|
25
31
|
attr_accessor :pulp_href
|
|
26
32
|
|
|
33
|
+
# The Pulp Resource Name (PRN).
|
|
34
|
+
attr_accessor :prn
|
|
35
|
+
|
|
36
|
+
# An optional content-guard.
|
|
37
|
+
attr_accessor :content_guard
|
|
38
|
+
|
|
27
39
|
# Timestamp of creation.
|
|
28
40
|
attr_accessor :pulp_created
|
|
29
41
|
|
|
@@ -32,35 +44,23 @@ module PulpcoreClient
|
|
|
32
44
|
# Whether this distribution should be shown in the content app.
|
|
33
45
|
attr_accessor :hidden
|
|
34
46
|
|
|
35
|
-
#
|
|
36
|
-
attr_accessor :
|
|
37
|
-
|
|
38
|
-
# Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
|
|
39
|
-
attr_accessor :no_content_change_since
|
|
40
|
-
|
|
41
|
-
# The URL for accessing the publication as defined by this distribution.
|
|
42
|
-
attr_accessor :base_url
|
|
43
|
-
|
|
44
|
-
# 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.
|
|
45
|
-
attr_accessor :pulp_last_updated
|
|
46
|
-
|
|
47
|
-
# The Pulp Resource Name (PRN).
|
|
48
|
-
attr_accessor :prn
|
|
47
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
48
|
+
attr_accessor :base_path
|
|
49
49
|
|
|
50
50
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
51
51
|
def self.attribute_map
|
|
52
52
|
{
|
|
53
|
-
:'
|
|
54
|
-
:'
|
|
53
|
+
:'base_url' => :'base_url',
|
|
54
|
+
:'no_content_change_since' => :'no_content_change_since',
|
|
55
|
+
:'name' => :'name',
|
|
56
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
55
57
|
:'pulp_href' => :'pulp_href',
|
|
58
|
+
:'prn' => :'prn',
|
|
59
|
+
:'content_guard' => :'content_guard',
|
|
56
60
|
:'pulp_created' => :'pulp_created',
|
|
57
61
|
:'pulp_labels' => :'pulp_labels',
|
|
58
62
|
:'hidden' => :'hidden',
|
|
59
|
-
:'
|
|
60
|
-
:'no_content_change_since' => :'no_content_change_since',
|
|
61
|
-
:'base_url' => :'base_url',
|
|
62
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
63
|
-
:'prn' => :'prn'
|
|
63
|
+
:'base_path' => :'base_path'
|
|
64
64
|
}
|
|
65
65
|
end
|
|
66
66
|
|
|
@@ -72,17 +72,17 @@ module PulpcoreClient
|
|
|
72
72
|
# Attribute type mapping.
|
|
73
73
|
def self.openapi_types
|
|
74
74
|
{
|
|
75
|
-
:'
|
|
76
|
-
:'
|
|
75
|
+
:'base_url' => :'String',
|
|
76
|
+
:'no_content_change_since' => :'String',
|
|
77
|
+
:'name' => :'String',
|
|
78
|
+
:'pulp_last_updated' => :'Time',
|
|
77
79
|
:'pulp_href' => :'String',
|
|
80
|
+
:'prn' => :'String',
|
|
81
|
+
:'content_guard' => :'String',
|
|
78
82
|
:'pulp_created' => :'Time',
|
|
79
83
|
:'pulp_labels' => :'Hash<String, String>',
|
|
80
84
|
:'hidden' => :'Boolean',
|
|
81
|
-
:'
|
|
82
|
-
:'no_content_change_since' => :'String',
|
|
83
|
-
:'base_url' => :'String',
|
|
84
|
-
:'pulp_last_updated' => :'Time',
|
|
85
|
-
:'prn' => :'String'
|
|
85
|
+
:'base_path' => :'String'
|
|
86
86
|
}
|
|
87
87
|
end
|
|
88
88
|
|
|
@@ -108,20 +108,36 @@ module PulpcoreClient
|
|
|
108
108
|
h[k.to_sym] = v
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
if attributes.key?(:'
|
|
112
|
-
self.
|
|
111
|
+
if attributes.key?(:'base_url')
|
|
112
|
+
self.base_url = attributes[:'base_url']
|
|
113
113
|
end
|
|
114
114
|
|
|
115
|
-
if attributes.key?(:'
|
|
116
|
-
self.
|
|
115
|
+
if attributes.key?(:'no_content_change_since')
|
|
116
|
+
self.no_content_change_since = attributes[:'no_content_change_since']
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
if attributes.key?(:'name')
|
|
120
|
+
self.name = attributes[:'name']
|
|
117
121
|
else
|
|
118
|
-
self.
|
|
122
|
+
self.name = nil
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
if attributes.key?(:'pulp_last_updated')
|
|
126
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
119
127
|
end
|
|
120
128
|
|
|
121
129
|
if attributes.key?(:'pulp_href')
|
|
122
130
|
self.pulp_href = attributes[:'pulp_href']
|
|
123
131
|
end
|
|
124
132
|
|
|
133
|
+
if attributes.key?(:'prn')
|
|
134
|
+
self.prn = attributes[:'prn']
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
if attributes.key?(:'content_guard')
|
|
138
|
+
self.content_guard = attributes[:'content_guard']
|
|
139
|
+
end
|
|
140
|
+
|
|
125
141
|
if attributes.key?(:'pulp_created')
|
|
126
142
|
self.pulp_created = attributes[:'pulp_created']
|
|
127
143
|
end
|
|
@@ -138,26 +154,10 @@ module PulpcoreClient
|
|
|
138
154
|
self.hidden = false
|
|
139
155
|
end
|
|
140
156
|
|
|
141
|
-
if attributes.key?(:'
|
|
142
|
-
self.
|
|
157
|
+
if attributes.key?(:'base_path')
|
|
158
|
+
self.base_path = attributes[:'base_path']
|
|
143
159
|
else
|
|
144
|
-
self.
|
|
145
|
-
end
|
|
146
|
-
|
|
147
|
-
if attributes.key?(:'no_content_change_since')
|
|
148
|
-
self.no_content_change_since = attributes[:'no_content_change_since']
|
|
149
|
-
end
|
|
150
|
-
|
|
151
|
-
if attributes.key?(:'base_url')
|
|
152
|
-
self.base_url = attributes[:'base_url']
|
|
153
|
-
end
|
|
154
|
-
|
|
155
|
-
if attributes.key?(:'pulp_last_updated')
|
|
156
|
-
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
if attributes.key?(:'prn')
|
|
160
|
-
self.prn = attributes[:'prn']
|
|
160
|
+
self.base_path = nil
|
|
161
161
|
end
|
|
162
162
|
end
|
|
163
163
|
|
|
@@ -166,14 +166,14 @@ module PulpcoreClient
|
|
|
166
166
|
def list_invalid_properties
|
|
167
167
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
168
168
|
invalid_properties = Array.new
|
|
169
|
-
if @base_path.nil?
|
|
170
|
-
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
171
|
-
end
|
|
172
|
-
|
|
173
169
|
if @name.nil?
|
|
174
170
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
175
171
|
end
|
|
176
172
|
|
|
173
|
+
if @base_path.nil?
|
|
174
|
+
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
175
|
+
end
|
|
176
|
+
|
|
177
177
|
invalid_properties
|
|
178
178
|
end
|
|
179
179
|
|
|
@@ -181,8 +181,8 @@ module PulpcoreClient
|
|
|
181
181
|
# @return true if the model is valid
|
|
182
182
|
def valid?
|
|
183
183
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
184
|
-
return false if @base_path.nil?
|
|
185
184
|
return false if @name.nil?
|
|
185
|
+
return false if @base_path.nil?
|
|
186
186
|
true
|
|
187
187
|
end
|
|
188
188
|
|
|
@@ -191,17 +191,17 @@ module PulpcoreClient
|
|
|
191
191
|
def ==(o)
|
|
192
192
|
return true if self.equal?(o)
|
|
193
193
|
self.class == o.class &&
|
|
194
|
-
|
|
195
|
-
|
|
194
|
+
base_url == o.base_url &&
|
|
195
|
+
no_content_change_since == o.no_content_change_since &&
|
|
196
|
+
name == o.name &&
|
|
197
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
196
198
|
pulp_href == o.pulp_href &&
|
|
199
|
+
prn == o.prn &&
|
|
200
|
+
content_guard == o.content_guard &&
|
|
197
201
|
pulp_created == o.pulp_created &&
|
|
198
202
|
pulp_labels == o.pulp_labels &&
|
|
199
203
|
hidden == o.hidden &&
|
|
200
|
-
|
|
201
|
-
no_content_change_since == o.no_content_change_since &&
|
|
202
|
-
base_url == o.base_url &&
|
|
203
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
204
|
-
prn == o.prn
|
|
204
|
+
base_path == o.base_path
|
|
205
205
|
end
|
|
206
206
|
|
|
207
207
|
# @see the `==` method
|
|
@@ -213,7 +213,7 @@ module PulpcoreClient
|
|
|
213
213
|
# Calculates hash code according to all attributes.
|
|
214
214
|
# @return [Integer] Hash code
|
|
215
215
|
def hash
|
|
216
|
-
[
|
|
216
|
+
[base_url, no_content_change_since, name, pulp_last_updated, pulp_href, prn, content_guard, pulp_created, pulp_labels, hidden, base_path].hash
|
|
217
217
|
end
|
|
218
218
|
|
|
219
219
|
# Builds the object from hash
|