pulp_file_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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c4fa3732cebea4e703c04d1dc6273735d7a6151d7e44843a3af9ff2aed5fa67
4
- data.tar.gz: 373719ce1ab937cb53fcf27d1f38a8d5599ce5d2019d6d554e5c364dabc7bb13
3
+ metadata.gz: 1a3c1c631a4685d7bffd67453f40391596601b04c401e7013919095cbf0e6d4b
4
+ data.tar.gz: ead61a7d88281d22eb9fb568f73558eca3065c045fd72f6cddf0b0160e92764b
5
5
  SHA512:
6
- metadata.gz: 870b6954c27e80f1df1f85e48c3092dcd7720b7f105dd1a792937afcb3e6d024fd2331ce59496d81feb5c802a0afee1019286a21665a05edc2f99e6320d64c7b
7
- data.tar.gz: e4a6377938cb1f634bb75b2912877e1aa4d29f1de18edfa4cd0cd19275e0c9f13abdc8f3c5a06c4f8d9ec5a1c1d0045d6f5bde82c5b4da213787d5d8b5ef0a38
6
+ metadata.gz: 9828229082939f7fd28b56007586ba033c0a3eec803957f88941d248fdfcbc90e6f328d9ee01346d1576116c62b8eaad79882cab58b4290d1fe4ab2ebf6fe964
7
+ data.tar.gz: 495ab5ef62052376afb9b32e9710f4ab85601858bde32d5aa5857eb049421ca5d02e9fa831f84e088ed01cf4b092d57692d18431607e519a9b10917a2fc8caff
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.102.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 pulp_file_client.gemspec
25
25
  Then either install the gem locally:
26
26
 
27
27
  ```shell
28
- gem install ./pulp_file_client-3.102.0.gem
28
+ gem install ./pulp_file_client-3.103.0.gem
29
29
  ```
30
30
 
31
- (for development, run `gem install --dev ./pulp_file_client-3.102.0.gem` to install the development dependencies)
31
+ (for development, run `gem install --dev ./pulp_file_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 'pulp_file_client', '~> 3.102.0'
37
+ gem 'pulp_file_client', '~> 3.103.0'
38
38
 
39
39
  ### Install from Git
40
40
 
@@ -192,6 +192,8 @@ Class | Method | HTTP request | Description
192
192
  - [PulpFileClient::PatchedfileFileRemote](docs/PatchedfileFileRemote.md)
193
193
  - [PulpFileClient::PatchedfileFileRepository](docs/PatchedfileFileRepository.md)
194
194
  - [PulpFileClient::PolicyEnum](docs/PolicyEnum.md)
195
+ - [PulpFileClient::RemoteNetworkConfig](docs/RemoteNetworkConfig.md)
196
+ - [PulpFileClient::RemoteNetworkConfigResponse](docs/RemoteNetworkConfigResponse.md)
195
197
  - [PulpFileClient::Repair](docs/Repair.md)
196
198
  - [PulpFileClient::RepositoryAddRemoveContent](docs/RepositoryAddRemoveContent.md)
197
199
  - [PulpFileClient::RepositorySyncURL](docs/RepositorySyncURL.md)
@@ -41,7 +41,8 @@ opts = {
41
41
  artifact: 'artifact_example', # String | Artifact file representing the physical content
42
42
  file: File.new('/path/to/some/file'), # File | An uploaded file that may be turned into the content unit.
43
43
  upload: 'upload_example', # String | An uncommitted upload that may be turned into the content unit.
44
- file_url: 'file_url_example' # String | A url that Pulp can download and turn into the content unit.
44
+ file_url: 'file_url_example', # String | A url that Pulp can download and turn into the content unit.
45
+ downloader_config: PulpFileClient::RemoteNetworkConfig.new # RemoteNetworkConfig | Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.
45
46
  }
46
47
 
47
48
  begin
@@ -83,6 +84,7 @@ end
83
84
  | **file** | **File** | An uploaded file that may be turned into the content unit. | [optional] |
84
85
  | **upload** | **String** | An uncommitted upload that may be turned into the content unit. | [optional] |
85
86
  | **file_url** | **String** | A url that Pulp can download and turn into the content unit. | [optional] |
87
+ | **downloader_config** | [**RemoteNetworkConfig**](RemoteNetworkConfig.md) | Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url. | [optional] |
86
88
 
87
89
  ### Return type
88
90
 
@@ -460,7 +462,8 @@ opts = {
460
462
  artifact: 'artifact_example', # String | Artifact file representing the physical content
461
463
  file: File.new('/path/to/some/file'), # File | An uploaded file that may be turned into the content unit.
462
464
  upload: 'upload_example', # String | An uncommitted upload that may be turned into the content unit.
463
- file_url: 'file_url_example' # String | A url that Pulp can download and turn into the content unit.
465
+ file_url: 'file_url_example', # String | A url that Pulp can download and turn into the content unit.
466
+ downloader_config: PulpFileClient::RemoteNetworkConfig.new # RemoteNetworkConfig | Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.
464
467
  }
465
468
 
466
469
  begin
@@ -501,6 +504,7 @@ end
501
504
  | **file** | **File** | An uploaded file that may be turned into the content unit. | [optional] |
502
505
  | **upload** | **String** | An uncommitted upload that may be turned into the content unit. | [optional] |
503
506
  | **file_url** | **String** | A url that Pulp can download and turn into the content unit. | [optional] |
507
+ | **downloader_config** | [**RemoteNetworkConfig**](RemoteNetworkConfig.md) | Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url. | [optional] |
504
508
 
505
509
  ### Return type
506
510
 
@@ -6,6 +6,8 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **name** | **String** | A unique name for this remote. | |
8
8
  | **url** | **String** | The URL of an external content source. | |
9
+ | **pulp_labels** | **Hash<String, String>** | | [optional] |
10
+ | **policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. * `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] |
9
11
  | **ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional] |
10
12
  | **client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional] |
11
13
  | **client_key** | **String** | A PEM encoded private key used for authentication. | [optional] |
@@ -15,15 +17,13 @@
15
17
  | **proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional] |
16
18
  | **username** | **String** | The username to be used for authentication when syncing. | [optional] |
17
19
  | **password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional] |
18
- | **pulp_labels** | **Hash<String, String>** | | [optional] |
19
- | **download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional] |
20
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] |
21
- | **policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. * `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] |
22
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] |
23
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] |
24
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] |
25
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] |
26
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] |
27
27
  | **rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional] |
28
28
 
29
29
  ## Example
@@ -34,6 +34,8 @@ require 'pulp_file_client'
34
34
  instance = PulpFileClient::FileFileRemote.new(
35
35
  name: null,
36
36
  url: null,
37
+ pulp_labels: null,
38
+ policy: null,
37
39
  ca_cert: null,
38
40
  client_cert: null,
39
41
  client_key: null,
@@ -43,15 +45,13 @@ instance = PulpFileClient::FileFileRemote.new(
43
45
  proxy_password: null,
44
46
  username: null,
45
47
  password: null,
46
- pulp_labels: null,
47
- download_concurrency: null,
48
48
  max_retries: null,
49
- policy: null,
50
49
  total_timeout: null,
51
50
  connect_timeout: null,
52
51
  sock_connect_timeout: null,
53
52
  sock_read_timeout: null,
54
53
  headers: null,
54
+ download_concurrency: null,
55
55
  rate_limit: null
56
56
  )
57
57
  ```
@@ -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** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. * `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<FileFileRemoteResponseHiddenFieldsInner>**](FileFileRemoteResponseHiddenFieldsInner.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** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. * `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<FileFileRemoteResponseHiddenFieldsInner>**](FileFileRemoteResponseHiddenFieldsInner.md) | List of hidden (write only) fields | [optional] |
28
28
 
29
29
  ## Example
30
30
 
@@ -38,21 +38,21 @@ instance = PulpFileClient::FileFileRemoteResponse.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
 
@@ -6,6 +6,8 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **name** | **String** | A unique name for this remote. | [optional] |
8
8
  | **url** | **String** | The URL of an external content source. | [optional] |
9
+ | **pulp_labels** | **Hash<String, String>** | | [optional] |
10
+ | **policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. * `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] |
9
11
  | **ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional] |
10
12
  | **client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional] |
11
13
  | **client_key** | **String** | A PEM encoded private key used for authentication. | [optional] |
@@ -15,15 +17,13 @@
15
17
  | **proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional] |
16
18
  | **username** | **String** | The username to be used for authentication when syncing. | [optional] |
17
19
  | **password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional] |
18
- | **pulp_labels** | **Hash<String, String>** | | [optional] |
19
- | **download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional] |
20
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] |
21
- | **policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. * `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] |
22
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] |
23
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] |
24
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] |
25
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] |
26
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] |
27
27
  | **rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional] |
28
28
 
29
29
  ## Example
@@ -34,6 +34,8 @@ require 'pulp_file_client'
34
34
  instance = PulpFileClient::PatchedfileFileRemote.new(
35
35
  name: null,
36
36
  url: null,
37
+ pulp_labels: null,
38
+ policy: null,
37
39
  ca_cert: null,
38
40
  client_cert: null,
39
41
  client_key: null,
@@ -43,15 +45,13 @@ instance = PulpFileClient::PatchedfileFileRemote.new(
43
45
  proxy_password: null,
44
46
  username: null,
45
47
  password: null,
46
- pulp_labels: null,
47
- download_concurrency: null,
48
48
  max_retries: null,
49
- policy: null,
50
49
  total_timeout: null,
51
50
  connect_timeout: null,
52
51
  sock_connect_timeout: null,
53
52
  sock_read_timeout: null,
54
53
  headers: null,
54
+ download_concurrency: null,
55
55
  rate_limit: null
56
56
  )
57
57
  ```
@@ -0,0 +1,50 @@
1
+ # PulpFileClient::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 'pulp_file_client'
29
+
30
+ instance = PulpFileClient::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
+ # PulpFileClient::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 'pulp_file_client'
24
+
25
+ instance = PulpFileClient::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
+
@@ -30,6 +30,7 @@ module PulpFileClient
30
30
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
31
31
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
32
32
  # @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
33
+ # @option opts [RemoteNetworkConfig] :downloader_config Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.
33
34
  # @return [AsyncOperationResponse]
34
35
  def create(relative_path, opts = {})
35
36
  data, _status_code, _headers = create_with_http_info(relative_path, opts)
@@ -47,6 +48,7 @@ module PulpFileClient
47
48
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
48
49
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
49
50
  # @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
51
+ # @option opts [RemoteNetworkConfig] :downloader_config Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.
50
52
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
51
53
  def create_with_http_info(relative_path, opts = {})
52
54
  if @api_client.config.debugging
@@ -90,6 +92,7 @@ module PulpFileClient
90
92
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
91
93
  form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
92
94
  form_params['file_url'] = opts[:'file_url'] if !opts[:'file_url'].nil?
95
+ form_params['downloader_config'] = opts[:'downloader_config'] if !opts[:'downloader_config'].nil?
93
96
 
94
97
  # http body (model)
95
98
  post_body = opts[:debug_body]
@@ -465,6 +468,7 @@ module PulpFileClient
465
468
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
466
469
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
467
470
  # @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
471
+ # @option opts [RemoteNetworkConfig] :downloader_config Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a &#39;file_url.
468
472
  # @return [FileContentUploadResponse]
469
473
  def upload(relative_path, opts = {})
470
474
  data, _status_code, _headers = upload_with_http_info(relative_path, opts)
@@ -481,6 +485,7 @@ module PulpFileClient
481
485
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
482
486
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
483
487
  # @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
488
+ # @option opts [RemoteNetworkConfig] :downloader_config Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a &#39;file_url.
484
489
  # @return [Array<(FileContentUploadResponse, Integer, Hash)>] FileContentUploadResponse data, response status code and response headers
485
490
  def upload_with_http_info(relative_path, opts = {})
486
491
  if @api_client.config.debugging
@@ -523,6 +528,7 @@ module PulpFileClient
523
528
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
524
529
  form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
525
530
  form_params['file_url'] = opts[:'file_url'] if !opts[:'file_url'].nil?
531
+ form_params['downloader_config'] = opts[:'downloader_config'] if !opts[:'downloader_config'].nil?
526
532
 
527
533
  # http body (model)
528
534
  post_body = opts[:debug_body]
@@ -22,6 +22,11 @@ module PulpFileClient
22
22
  # The URL of an external content source.
23
23
  attr_accessor :url
24
24
 
25
+ attr_accessor :pulp_labels
26
+
27
+ # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. * `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.
28
+ attr_accessor :policy
29
+
25
30
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
26
31
  attr_accessor :ca_cert
27
32
 
@@ -49,17 +54,9 @@ module PulpFileClient
49
54
  # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
50
55
  attr_accessor :password
51
56
 
52
- attr_accessor :pulp_labels
53
-
54
- # Total number of simultaneous connections. If not set then the default value will be used.
55
- attr_accessor :download_concurrency
56
-
57
57
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
58
58
  attr_accessor :max_retries
59
59
 
60
- # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. * `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.
61
- attr_accessor :policy
62
-
63
60
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
64
61
  attr_accessor :total_timeout
65
62
 
@@ -75,6 +72,9 @@ module PulpFileClient
75
72
  # Headers for aiohttp.Clientsession
76
73
  attr_accessor :headers
77
74
 
75
+ # Total number of simultaneous connections. If not set then the default value will be used.
76
+ attr_accessor :download_concurrency
77
+
78
78
  # Limits requests per second for each concurrent downloader
79
79
  attr_accessor :rate_limit
80
80
 
@@ -105,6 +105,8 @@ module PulpFileClient
105
105
  {
106
106
  :'name' => :'name',
107
107
  :'url' => :'url',
108
+ :'pulp_labels' => :'pulp_labels',
109
+ :'policy' => :'policy',
108
110
  :'ca_cert' => :'ca_cert',
109
111
  :'client_cert' => :'client_cert',
110
112
  :'client_key' => :'client_key',
@@ -114,15 +116,13 @@ module PulpFileClient
114
116
  :'proxy_password' => :'proxy_password',
115
117
  :'username' => :'username',
116
118
  :'password' => :'password',
117
- :'pulp_labels' => :'pulp_labels',
118
- :'download_concurrency' => :'download_concurrency',
119
119
  :'max_retries' => :'max_retries',
120
- :'policy' => :'policy',
121
120
  :'total_timeout' => :'total_timeout',
122
121
  :'connect_timeout' => :'connect_timeout',
123
122
  :'sock_connect_timeout' => :'sock_connect_timeout',
124
123
  :'sock_read_timeout' => :'sock_read_timeout',
125
124
  :'headers' => :'headers',
125
+ :'download_concurrency' => :'download_concurrency',
126
126
  :'rate_limit' => :'rate_limit'
127
127
  }
128
128
  end
@@ -137,6 +137,8 @@ module PulpFileClient
137
137
  {
138
138
  :'name' => :'String',
139
139
  :'url' => :'String',
140
+ :'pulp_labels' => :'Hash<String, String>',
141
+ :'policy' => :'PolicyEnum',
140
142
  :'ca_cert' => :'String',
141
143
  :'client_cert' => :'String',
142
144
  :'client_key' => :'String',
@@ -146,15 +148,13 @@ module PulpFileClient
146
148
  :'proxy_password' => :'String',
147
149
  :'username' => :'String',
148
150
  :'password' => :'String',
149
- :'pulp_labels' => :'Hash<String, String>',
150
- :'download_concurrency' => :'Integer',
151
151
  :'max_retries' => :'Integer',
152
- :'policy' => :'PolicyEnum',
153
152
  :'total_timeout' => :'Float',
154
153
  :'connect_timeout' => :'Float',
155
154
  :'sock_connect_timeout' => :'Float',
156
155
  :'sock_read_timeout' => :'Float',
157
156
  :'headers' => :'Array<Object>',
157
+ :'download_concurrency' => :'Integer',
158
158
  :'rate_limit' => :'Integer'
159
159
  }
160
160
  end
@@ -170,12 +170,12 @@ module PulpFileClient
170
170
  :'proxy_password',
171
171
  :'username',
172
172
  :'password',
173
- :'download_concurrency',
174
173
  :'max_retries',
175
174
  :'total_timeout',
176
175
  :'connect_timeout',
177
176
  :'sock_connect_timeout',
178
177
  :'sock_read_timeout',
178
+ :'download_concurrency',
179
179
  :'rate_limit'
180
180
  ])
181
181
  end
@@ -207,6 +207,16 @@ module PulpFileClient
207
207
  self.url = nil
208
208
  end
209
209
 
210
+ if attributes.key?(:'pulp_labels')
211
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
212
+ self.pulp_labels = value
213
+ end
214
+ end
215
+
216
+ if attributes.key?(:'policy')
217
+ self.policy = attributes[:'policy']
218
+ end
219
+
210
220
  if attributes.key?(:'ca_cert')
211
221
  self.ca_cert = attributes[:'ca_cert']
212
222
  end
@@ -243,24 +253,10 @@ module PulpFileClient
243
253
  self.password = attributes[:'password']
244
254
  end
245
255
 
246
- if attributes.key?(:'pulp_labels')
247
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
248
- self.pulp_labels = value
249
- end
250
- end
251
-
252
- if attributes.key?(:'download_concurrency')
253
- self.download_concurrency = attributes[:'download_concurrency']
254
- end
255
-
256
256
  if attributes.key?(:'max_retries')
257
257
  self.max_retries = attributes[:'max_retries']
258
258
  end
259
259
 
260
- if attributes.key?(:'policy')
261
- self.policy = attributes[:'policy']
262
- end
263
-
264
260
  if attributes.key?(:'total_timeout')
265
261
  self.total_timeout = attributes[:'total_timeout']
266
262
  end
@@ -283,6 +279,10 @@ module PulpFileClient
283
279
  end
284
280
  end
285
281
 
282
+ if attributes.key?(:'download_concurrency')
283
+ self.download_concurrency = attributes[:'download_concurrency']
284
+ end
285
+
286
286
  if attributes.key?(:'rate_limit')
287
287
  self.rate_limit = attributes[:'rate_limit']
288
288
  end
@@ -538,6 +538,8 @@ module PulpFileClient
538
538
  self.class == o.class &&
539
539
  name == o.name &&
540
540
  url == o.url &&
541
+ pulp_labels == o.pulp_labels &&
542
+ policy == o.policy &&
541
543
  ca_cert == o.ca_cert &&
542
544
  client_cert == o.client_cert &&
543
545
  client_key == o.client_key &&
@@ -547,15 +549,13 @@ module PulpFileClient
547
549
  proxy_password == o.proxy_password &&
548
550
  username == o.username &&
549
551
  password == o.password &&
550
- pulp_labels == o.pulp_labels &&
551
- download_concurrency == o.download_concurrency &&
552
552
  max_retries == o.max_retries &&
553
- policy == o.policy &&
554
553
  total_timeout == o.total_timeout &&
555
554
  connect_timeout == o.connect_timeout &&
556
555
  sock_connect_timeout == o.sock_connect_timeout &&
557
556
  sock_read_timeout == o.sock_read_timeout &&
558
557
  headers == o.headers &&
558
+ download_concurrency == o.download_concurrency &&
559
559
  rate_limit == o.rate_limit
560
560
  end
561
561
 
@@ -568,7 +568,7 @@ module PulpFileClient
568
568
  # Calculates hash code according to all attributes.
569
569
  # @return [Integer] Hash code
570
570
  def hash
571
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
571
+ [name, url, pulp_labels, policy, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit].hash
572
572
  end
573
573
 
574
574
  # Builds the object from hash