pulpcore_client 3.101.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.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -4
  3. data/docs/ArtifactDistributionResponse.md +15 -15
  4. data/docs/ContentOpenpgpPublickeyApi.md +3 -1
  5. data/docs/Domain.md +1 -1
  6. data/docs/DomainBackendMigrator.md +1 -1
  7. data/docs/DomainResponse.md +1 -1
  8. data/docs/GenericRemoteResponse.md +9 -9
  9. data/docs/PatchedDomain.md +1 -1
  10. data/docs/Purge.md +1 -1
  11. data/docs/RemoteNetworkConfig.md +50 -0
  12. data/docs/RemoteNetworkConfigResponse.md +40 -0
  13. data/lib/pulpcore_client/api/content_openpgp_publickey_api.rb +3 -0
  14. data/lib/pulpcore_client/models/artifact_distribution_response.rb +75 -75
  15. data/lib/pulpcore_client/models/domain.rb +1 -1
  16. data/lib/pulpcore_client/models/domain_backend_migrator.rb +1 -1
  17. data/lib/pulpcore_client/models/domain_response.rb +1 -1
  18. data/lib/pulpcore_client/models/generic_remote_response.rb +49 -49
  19. data/lib/pulpcore_client/models/patched_domain.rb +1 -1
  20. data/lib/pulpcore_client/models/purge.rb +1 -1
  21. data/lib/pulpcore_client/models/remote_network_config.rb +573 -0
  22. data/lib/pulpcore_client/models/remote_network_config_response.rb +398 -0
  23. data/lib/pulpcore_client/models/storage_class_enum.rb +2 -1
  24. data/lib/pulpcore_client/version.rb +1 -1
  25. data/lib/pulpcore_client.rb +2 -0
  26. data/spec/api/content_openpgp_publickey_api_spec.rb +1 -0
  27. data/spec/models/artifact_distribution_response_spec.rb +10 -10
  28. data/spec/models/generic_remote_response_spec.rb +10 -10
  29. data/spec/models/remote_network_config_response_spec.rb +102 -0
  30. data/spec/models/remote_network_config_spec.rb +132 -0
  31. metadata +10 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8d51c15cbf13f77a6f410754cd4539930f7fb9436b02fcefcfe834de92bb8477
4
- data.tar.gz: a729e01f820b4bb00cd7c0c5ba73f0c32cd083fc1f27257839d52e200477c69f
3
+ metadata.gz: 93373cf180b9013243f5c0be3665b4c93d156e62dcd12d73795a311910b592b5
4
+ data.tar.gz: 1215b836efc7bd2871887fea2834ae5f10aad8417e62200e208ee2c18f8cb71c
5
5
  SHA512:
6
- metadata.gz: 877ac5797c7078f905794cc94798101c8ac12d1902a6f90dfd1e6bfc403fb13b208350ebbe0dcc6eab06e28d4a2d24ff5105cfb0c0495e4018ea98c1e74d4672
7
- data.tar.gz: cc422a93dcd4fbce34313497a05ab5309c5242372409040f4007f2a067242994e6aec693a7f58fb4968c514cc12fc0afb24aec2a296f085e39f5a44248bc2121
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.101.0
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.101.0.gem
28
+ gem install ./pulpcore_client-3.103.0.gem
29
29
  ```
30
30
 
31
- (for development, run `gem install --dev ./pulpcore_client-3.101.0.gem` to install the development dependencies)
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.101.0'
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
- | **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
7
+ | **base_url** | **String** | The URL for accessing the publication as defined by this distribution. | [optional][readonly] |
8
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] |
11
+ | **pulp_href** | **String** | | [optional][readonly] |
9
12
  | **prn** | **String** | The Pulp Resource Name (PRN). | [optional][readonly] |
10
- | **pulp_labels** | **Hash<String, String>** | | [optional] |
13
+ | **content_guard** | **String** | An optional content-guard. | [optional] |
11
14
  | **pulp_created** | **Time** | Timestamp of creation. | [optional][readonly] |
15
+ | **pulp_labels** | **Hash<String, String>** | | [optional] |
16
+ | **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
12
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\") | |
13
- | **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] |
14
- | **content_guard** | **String** | An optional content-guard. | [optional] |
15
- | **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | |
16
- | **pulp_href** | **String** | | [optional][readonly] |
17
- | **base_url** | **String** | The URL for accessing the publication as defined by this distribution. | [optional][readonly] |
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
- hidden: null,
25
+ base_url: null,
26
26
  no_content_change_since: null,
27
- prn: null,
28
- pulp_labels: null,
29
- pulp_created: null,
30
- base_path: null,
31
- pulp_last_updated: null,
32
- content_guard: null,
33
27
  name: null,
28
+ pulp_last_updated: null,
34
29
  pulp_href: null,
35
- base_url: null
30
+ prn: null,
31
+ content_guard: null,
32
+ pulp_created: null,
33
+ pulp_labels: null,
34
+ hidden: 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 &#39;file_url. | [optional] |
81
83
 
82
84
  ### Return type
83
85
 
data/docs/Domain.md CHANGED
@@ -7,7 +7,7 @@
7
7
  | **name** | **String** | A name for this domain. | |
8
8
  | **description** | **String** | An optional description. | [optional] |
9
9
  | **pulp_labels** | **Hash&lt;String, String&gt;** | | [optional] |
10
- | **storage_class** | [**StorageClassEnum**](StorageClassEnum.md) | Backend storage class for domain. * &#x60;pulpcore.app.models.storage.FileSystem&#x60; - Use local filesystem as storage * &#x60;storages.backends.s3boto3.S3Boto3Storage&#x60; - Use Amazon S3 as storage * &#x60;storages.backends.azure_storage.AzureStorage&#x60; - Use Azure Blob as storage | |
10
+ | **storage_class** | [**StorageClassEnum**](StorageClassEnum.md) | Backend storage class for domain. * &#x60;pulpcore.app.models.storage.FileSystem&#x60; - Use local filesystem as storage * &#x60;storages.backends.s3boto3.S3Boto3Storage&#x60; - Use Amazon S3 as storage [deprecated] * &#x60;storages.backends.s3.S3Storage&#x60; - Use Amazon S3 as storage * &#x60;storages.backends.azure_storage.AzureStorage&#x60; - Use Azure Blob as storage | |
11
11
  | **storage_settings** | **Object** | Settings for storage class. | |
12
12
  | **redirect_to_object_storage** | **Boolean** | Boolean to have the content app redirect to object storage. | [optional][default to true] |
13
13
  | **hide_guarded_distributions** | **Boolean** | Boolean to hide distributions with a content guard in the content app. | [optional][default to false] |
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **storage_class** | [**StorageClassEnum**](StorageClassEnum.md) | The new backend storage class to migrate to. * &#x60;pulpcore.app.models.storage.FileSystem&#x60; - Use local filesystem as storage * &#x60;storages.backends.s3boto3.S3Boto3Storage&#x60; - Use Amazon S3 as storage * &#x60;storages.backends.azure_storage.AzureStorage&#x60; - Use Azure Blob as storage | |
7
+ | **storage_class** | [**StorageClassEnum**](StorageClassEnum.md) | The new backend storage class to migrate to. * &#x60;pulpcore.app.models.storage.FileSystem&#x60; - Use local filesystem as storage * &#x60;storages.backends.s3boto3.S3Boto3Storage&#x60; - Use Amazon S3 as storage [deprecated] * &#x60;storages.backends.s3.S3Storage&#x60; - Use Amazon S3 as storage * &#x60;storages.backends.azure_storage.AzureStorage&#x60; - Use Azure Blob as storage | |
8
8
  | **storage_settings** | **Object** | The settings for the new storage class to migrate to. | |
9
9
 
10
10
  ## Example
@@ -11,7 +11,7 @@
11
11
  | **name** | **String** | A name for this domain. | |
12
12
  | **description** | **String** | An optional description. | [optional] |
13
13
  | **pulp_labels** | **Hash&lt;String, String&gt;** | | [optional] |
14
- | **storage_class** | [**StorageClassEnum**](StorageClassEnum.md) | Backend storage class for domain. * &#x60;pulpcore.app.models.storage.FileSystem&#x60; - Use local filesystem as storage * &#x60;storages.backends.s3boto3.S3Boto3Storage&#x60; - Use Amazon S3 as storage * &#x60;storages.backends.azure_storage.AzureStorage&#x60; - Use Azure Blob as storage | |
14
+ | **storage_class** | [**StorageClassEnum**](StorageClassEnum.md) | Backend storage class for domain. * &#x60;pulpcore.app.models.storage.FileSystem&#x60; - Use local filesystem as storage * &#x60;storages.backends.s3boto3.S3Boto3Storage&#x60; - Use Amazon S3 as storage [deprecated] * &#x60;storages.backends.s3.S3Storage&#x60; - Use Amazon S3 as storage * &#x60;storages.backends.azure_storage.AzureStorage&#x60; - Use Azure Blob as storage | |
15
15
  | **storage_settings** | **Object** | Settings for storage class. | |
16
16
  | **redirect_to_object_storage** | **Boolean** | Boolean to have the content app redirect to object storage. | [optional][default to true] |
17
17
  | **hide_guarded_distributions** | **Boolean** | Boolean to hide distributions with a content guard in the content app. | [optional][default to false] |
@@ -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&lt;String, String&gt;** | | [optional] |
14
+ | **policy** | [**GenericRemoteResponsePolicyEnum**](GenericRemoteResponsePolicyEnum.md) | The policy to use when downloading content. * &#x60;immediate&#x60; - When syncing, download all metadata and content now. * &#x60;on_demand&#x60; - 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. * &#x60;streamed&#x60; - 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&lt;GenericRemoteResponseHiddenFieldsInner&gt;**](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&lt;String, String&gt;** | | [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. * &#x60;immediate&#x60; - When syncing, download all metadata and content now. * &#x60;on_demand&#x60; - 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. * &#x60;streamed&#x60; - 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&lt;Object&gt;** | 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&lt;GenericRemoteResponseHiddenFieldsInner&gt;**](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
- rate_limit: null,
55
- hidden_fields: null
54
+ download_concurrency: null,
55
+ rate_limit: null
56
56
  )
57
57
  ```
58
58
 
@@ -7,7 +7,7 @@
7
7
  | **name** | **String** | A name for this domain. | [optional] |
8
8
  | **description** | **String** | An optional description. | [optional] |
9
9
  | **pulp_labels** | **Hash&lt;String, String&gt;** | | [optional] |
10
- | **storage_class** | [**StorageClassEnum**](StorageClassEnum.md) | Backend storage class for domain. * &#x60;pulpcore.app.models.storage.FileSystem&#x60; - Use local filesystem as storage * &#x60;storages.backends.s3boto3.S3Boto3Storage&#x60; - Use Amazon S3 as storage * &#x60;storages.backends.azure_storage.AzureStorage&#x60; - Use Azure Blob as storage | [optional] |
10
+ | **storage_class** | [**StorageClassEnum**](StorageClassEnum.md) | Backend storage class for domain. * &#x60;pulpcore.app.models.storage.FileSystem&#x60; - Use local filesystem as storage * &#x60;storages.backends.s3boto3.S3Boto3Storage&#x60; - Use Amazon S3 as storage [deprecated] * &#x60;storages.backends.s3.S3Storage&#x60; - Use Amazon S3 as storage * &#x60;storages.backends.azure_storage.AzureStorage&#x60; - Use Azure Blob as storage | [optional] |
11
11
  | **storage_settings** | **Object** | Settings for storage class. | [optional] |
12
12
  | **redirect_to_object_storage** | **Boolean** | Boolean to have the content app redirect to object storage. | [optional][default to true] |
13
13
  | **hide_guarded_distributions** | **Boolean** | Boolean to hide distributions with a content guard in the content app. | [optional][default to false] |
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 &#39;%Y-%m-%d[T%H:%M:%S]&#39; | [optional][default to &#39;2025-12-14&#39;] |
7
+ | **finished_before** | **Time** | Purge tasks completed earlier than this timestamp. Format &#39;%Y-%m-%d[T%H:%M:%S]&#39; | [optional][default to &#39;2026-01-04&#39;] |
8
8
  | **states** | [**Array&lt;StatesEnum&gt;**](StatesEnum.md) | List of task-states to be purged. Only &#39;final&#39; 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&lt;Object&gt;** | 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&lt;Object&gt;** | 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 &#39;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 &#39;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,51 +16,51 @@ require 'time'
16
16
  module PulpcoreClient
17
17
  # A serializer for ArtifactDistribution.
18
18
  class ArtifactDistributionResponse
19
- # Whether this distribution should be shown in the content app.
20
- attr_accessor :hidden
19
+ # The URL for accessing the publication as defined by this distribution.
20
+ attr_accessor :base_url
21
21
 
22
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
23
  attr_accessor :no_content_change_since
24
24
 
25
- # The Pulp Resource Name (PRN).
26
- attr_accessor :prn
27
-
28
- attr_accessor :pulp_labels
29
-
30
- # Timestamp of creation.
31
- attr_accessor :pulp_created
32
-
33
- # 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
- attr_accessor :base_path
25
+ # A unique name. Ex, `rawhide` and `stable`.
26
+ attr_accessor :name
35
27
 
36
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.
37
29
  attr_accessor :pulp_last_updated
38
30
 
31
+ attr_accessor :pulp_href
32
+
33
+ # The Pulp Resource Name (PRN).
34
+ attr_accessor :prn
35
+
39
36
  # An optional content-guard.
40
37
  attr_accessor :content_guard
41
38
 
42
- # A unique name. Ex, `rawhide` and `stable`.
43
- attr_accessor :name
39
+ # Timestamp of creation.
40
+ attr_accessor :pulp_created
44
41
 
45
- attr_accessor :pulp_href
42
+ attr_accessor :pulp_labels
46
43
 
47
- # The URL for accessing the publication as defined by this distribution.
48
- attr_accessor :base_url
44
+ # Whether this distribution should be shown in the content app.
45
+ attr_accessor :hidden
46
+
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
- :'hidden' => :'hidden',
53
+ :'base_url' => :'base_url',
54
54
  :'no_content_change_since' => :'no_content_change_since',
55
- :'prn' => :'prn',
56
- :'pulp_labels' => :'pulp_labels',
57
- :'pulp_created' => :'pulp_created',
58
- :'base_path' => :'base_path',
59
- :'pulp_last_updated' => :'pulp_last_updated',
60
- :'content_guard' => :'content_guard',
61
55
  :'name' => :'name',
56
+ :'pulp_last_updated' => :'pulp_last_updated',
62
57
  :'pulp_href' => :'pulp_href',
63
- :'base_url' => :'base_url'
58
+ :'prn' => :'prn',
59
+ :'content_guard' => :'content_guard',
60
+ :'pulp_created' => :'pulp_created',
61
+ :'pulp_labels' => :'pulp_labels',
62
+ :'hidden' => :'hidden',
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
- :'hidden' => :'Boolean',
75
+ :'base_url' => :'String',
76
76
  :'no_content_change_since' => :'String',
77
- :'prn' => :'String',
78
- :'pulp_labels' => :'Hash<String, String>',
79
- :'pulp_created' => :'Time',
80
- :'base_path' => :'String',
81
- :'pulp_last_updated' => :'Time',
82
- :'content_guard' => :'String',
83
77
  :'name' => :'String',
78
+ :'pulp_last_updated' => :'Time',
84
79
  :'pulp_href' => :'String',
85
- :'base_url' => :'String'
80
+ :'prn' => :'String',
81
+ :'content_guard' => :'String',
82
+ :'pulp_created' => :'Time',
83
+ :'pulp_labels' => :'Hash<String, String>',
84
+ :'hidden' => :'Boolean',
85
+ :'base_path' => :'String'
86
86
  }
87
87
  end
88
88
 
@@ -108,56 +108,56 @@ module PulpcoreClient
108
108
  h[k.to_sym] = v
109
109
  }
110
110
 
111
- if attributes.key?(:'hidden')
112
- self.hidden = attributes[:'hidden']
113
- else
114
- self.hidden = false
111
+ if attributes.key?(:'base_url')
112
+ self.base_url = attributes[:'base_url']
115
113
  end
116
114
 
117
115
  if attributes.key?(:'no_content_change_since')
118
116
  self.no_content_change_since = attributes[:'no_content_change_since']
119
117
  end
120
118
 
121
- if attributes.key?(:'prn')
122
- self.prn = attributes[:'prn']
123
- end
124
-
125
- if attributes.key?(:'pulp_labels')
126
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
127
- self.pulp_labels = value
128
- end
119
+ if attributes.key?(:'name')
120
+ self.name = attributes[:'name']
121
+ else
122
+ self.name = nil
129
123
  end
130
124
 
131
- if attributes.key?(:'pulp_created')
132
- self.pulp_created = attributes[:'pulp_created']
125
+ if attributes.key?(:'pulp_last_updated')
126
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
133
127
  end
134
128
 
135
- if attributes.key?(:'base_path')
136
- self.base_path = attributes[:'base_path']
137
- else
138
- self.base_path = nil
129
+ if attributes.key?(:'pulp_href')
130
+ self.pulp_href = attributes[:'pulp_href']
139
131
  end
140
132
 
141
- if attributes.key?(:'pulp_last_updated')
142
- self.pulp_last_updated = attributes[:'pulp_last_updated']
133
+ if attributes.key?(:'prn')
134
+ self.prn = attributes[:'prn']
143
135
  end
144
136
 
145
137
  if attributes.key?(:'content_guard')
146
138
  self.content_guard = attributes[:'content_guard']
147
139
  end
148
140
 
149
- if attributes.key?(:'name')
150
- self.name = attributes[:'name']
151
- else
152
- self.name = nil
141
+ if attributes.key?(:'pulp_created')
142
+ self.pulp_created = attributes[:'pulp_created']
153
143
  end
154
144
 
155
- if attributes.key?(:'pulp_href')
156
- self.pulp_href = attributes[:'pulp_href']
145
+ if attributes.key?(:'pulp_labels')
146
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
147
+ self.pulp_labels = value
148
+ end
157
149
  end
158
150
 
159
- if attributes.key?(:'base_url')
160
- self.base_url = attributes[:'base_url']
151
+ if attributes.key?(:'hidden')
152
+ self.hidden = attributes[:'hidden']
153
+ else
154
+ self.hidden = false
155
+ end
156
+
157
+ if attributes.key?(:'base_path')
158
+ self.base_path = attributes[:'base_path']
159
+ else
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
- hidden == o.hidden &&
194
+ base_url == o.base_url &&
195
195
  no_content_change_since == o.no_content_change_since &&
196
- prn == o.prn &&
197
- pulp_labels == o.pulp_labels &&
198
- pulp_created == o.pulp_created &&
199
- base_path == o.base_path &&
200
- pulp_last_updated == o.pulp_last_updated &&
201
- content_guard == o.content_guard &&
202
196
  name == o.name &&
197
+ pulp_last_updated == o.pulp_last_updated &&
203
198
  pulp_href == o.pulp_href &&
204
- base_url == o.base_url
199
+ prn == o.prn &&
200
+ content_guard == o.content_guard &&
201
+ pulp_created == o.pulp_created &&
202
+ pulp_labels == o.pulp_labels &&
203
+ hidden == o.hidden &&
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
- [hidden, no_content_change_since, prn, pulp_labels, pulp_created, base_path, pulp_last_updated, content_guard, name, pulp_href, base_url].hash
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
@@ -24,7 +24,7 @@ module PulpcoreClient
24
24
 
25
25
  attr_accessor :pulp_labels
26
26
 
27
- # Backend storage class for domain. * `pulpcore.app.models.storage.FileSystem` - Use local filesystem as storage * `storages.backends.s3boto3.S3Boto3Storage` - Use Amazon S3 as storage * `storages.backends.azure_storage.AzureStorage` - Use Azure Blob as storage
27
+ # Backend storage class for domain. * `pulpcore.app.models.storage.FileSystem` - Use local filesystem as storage * `storages.backends.s3boto3.S3Boto3Storage` - Use Amazon S3 as storage [deprecated] * `storages.backends.s3.S3Storage` - Use Amazon S3 as storage * `storages.backends.azure_storage.AzureStorage` - Use Azure Blob as storage
28
28
  attr_accessor :storage_class
29
29
 
30
30
  # Settings for storage class.
@@ -16,7 +16,7 @@ require 'time'
16
16
  module PulpcoreClient
17
17
  # Special serializer for performing a storage backend migration on a Domain.
18
18
  class DomainBackendMigrator
19
- # The new backend storage class to migrate to. * `pulpcore.app.models.storage.FileSystem` - Use local filesystem as storage * `storages.backends.s3boto3.S3Boto3Storage` - Use Amazon S3 as storage * `storages.backends.azure_storage.AzureStorage` - Use Azure Blob as storage
19
+ # The new backend storage class to migrate to. * `pulpcore.app.models.storage.FileSystem` - Use local filesystem as storage * `storages.backends.s3boto3.S3Boto3Storage` - Use Amazon S3 as storage [deprecated] * `storages.backends.s3.S3Storage` - Use Amazon S3 as storage * `storages.backends.azure_storage.AzureStorage` - Use Azure Blob as storage
20
20
  attr_accessor :storage_class
21
21
 
22
22
  # The settings for the new storage class to migrate to.
@@ -35,7 +35,7 @@ module PulpcoreClient
35
35
 
36
36
  attr_accessor :pulp_labels
37
37
 
38
- # Backend storage class for domain. * `pulpcore.app.models.storage.FileSystem` - Use local filesystem as storage * `storages.backends.s3boto3.S3Boto3Storage` - Use Amazon S3 as storage * `storages.backends.azure_storage.AzureStorage` - Use Azure Blob as storage
38
+ # Backend storage class for domain. * `pulpcore.app.models.storage.FileSystem` - Use local filesystem as storage * `storages.backends.s3boto3.S3Boto3Storage` - Use Amazon S3 as storage [deprecated] * `storages.backends.s3.S3Storage` - Use Amazon S3 as storage * `storages.backends.azure_storage.AzureStorage` - Use Azure Blob as storage
39
39
  attr_accessor :storage_class
40
40
 
41
41
  # Settings for storage class.