pulp_ansible_client 0.29.2 → 0.29.3
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/AnsibleCollectionRemote.md +6 -6
- data/docs/AnsibleCollectionRemoteResponse.md +8 -8
- data/docs/AnsibleCollectionVersionResponse.md +6 -6
- data/docs/AnsibleGitRemote.md +28 -28
- data/docs/AnsibleGitRemoteResponse.md +28 -28
- data/docs/AnsibleRoleRemote.md +6 -6
- data/docs/AnsibleRoleRemoteResponse.md +9 -9
- data/docs/AnsibleRoleResponse.md +6 -6
- data/docs/ContentCollectionSignaturesApi.md +3 -1
- data/docs/ContentCollectionVersionsApi.md +4 -2
- data/docs/PatchedansibleCollectionRemote.md +6 -6
- data/docs/PatchedansibleGitRemote.md +28 -28
- data/docs/PatchedansibleRoleRemote.md +6 -6
- data/docs/RemoteNetworkConfig.md +50 -0
- data/docs/RemoteNetworkConfigResponse.md +40 -0
- data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +3 -0
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -3
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +33 -33
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +45 -45
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +32 -32
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +253 -253
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +152 -152
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +33 -33
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +49 -49
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +32 -32
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +33 -33
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +244 -244
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +33 -33
- data/lib/pulp_ansible_client/models/remote_network_config.rb +573 -0
- data/lib/pulp_ansible_client/models/remote_network_config_response.rb +398 -0
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +2 -0
- data/spec/api/content_collection_signatures_api_spec.rb +1 -0
- data/spec/api/content_collection_versions_api_spec.rb +2 -1
- data/spec/models/ansible_collection_remote_response_spec.rb +10 -10
- data/spec/models/ansible_collection_remote_spec.rb +17 -17
- data/spec/models/ansible_collection_version_response_spec.rb +6 -6
- data/spec/models/ansible_git_remote_response_spec.rb +20 -20
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- data/spec/models/ansible_role_remote_response_spec.rb +10 -10
- data/spec/models/ansible_role_remote_spec.rb +17 -17
- data/spec/models/ansible_role_response_spec.rb +6 -6
- data/spec/models/patchedansible_collection_remote_spec.rb +17 -17
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- data/spec/models/patchedansible_role_remote_spec.rb +17 -17
- data/spec/models/remote_network_config_response_spec.rb +102 -0
- data/spec/models/remote_network_config_spec.rb +132 -0
- metadata +10 -2
|
@@ -4,26 +4,26 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **
|
|
8
|
-
| **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] |
|
|
9
|
-
| **download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional] |
|
|
7
|
+
| **url** | **String** | The URL of an external content source. | [optional] |
|
|
10
8
|
| **max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional] |
|
|
11
|
-
| **
|
|
9
|
+
| **proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional] |
|
|
10
|
+
| **headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional] |
|
|
11
|
+
| **client_key** | **String** | A PEM encoded private key used for authentication. | [optional] |
|
|
12
|
+
| **name** | **String** | A unique name for this remote. | [optional] |
|
|
13
|
+
| **download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional] |
|
|
12
14
|
| **client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional] |
|
|
15
|
+
| **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
16
|
| **tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional] |
|
|
17
|
+
| **password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional] |
|
|
18
|
+
| **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] |
|
|
19
|
+
| **rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional] |
|
|
20
|
+
| **proxy_username** | **String** | The username to authenticte to the proxy. | [optional] |
|
|
14
21
|
| **username** | **String** | The username to be used for authentication when syncing. | [optional] |
|
|
22
|
+
| **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] |
|
|
23
|
+
| **proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional] |
|
|
24
|
+
| **ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional] |
|
|
15
25
|
| **pulp_labels** | **Hash<String, String>** | | [optional] |
|
|
16
26
|
| **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] |
|
|
17
|
-
| **ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional] |
|
|
18
|
-
| **proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional] |
|
|
19
|
-
| **proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional] |
|
|
20
|
-
| **proxy_username** | **String** | The username to authenticte to the proxy. | [optional] |
|
|
21
|
-
| **rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional] |
|
|
22
|
-
| **headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional] |
|
|
23
|
-
| **url** | **String** | The URL of an external content source. | [optional] |
|
|
24
|
-
| **client_key** | **String** | A PEM encoded private key used for authentication. | [optional] |
|
|
25
|
-
| **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] |
|
|
26
|
-
| **name** | **String** | A unique name for this remote. | [optional] |
|
|
27
27
|
| **metadata_only** | **Boolean** | If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL. | [optional] |
|
|
28
28
|
| **git_ref** | **String** | A git ref. e.g.: branch, tag, or commit sha. | [optional] |
|
|
29
29
|
|
|
@@ -33,26 +33,26 @@
|
|
|
33
33
|
require 'pulp_ansible_client'
|
|
34
34
|
|
|
35
35
|
instance = PulpAnsibleClient::PatchedansibleGitRemote.new(
|
|
36
|
-
|
|
37
|
-
sock_read_timeout: null,
|
|
38
|
-
download_concurrency: null,
|
|
36
|
+
url: null,
|
|
39
37
|
max_retries: null,
|
|
40
|
-
|
|
38
|
+
proxy_url: null,
|
|
39
|
+
headers: null,
|
|
40
|
+
client_key: null,
|
|
41
|
+
name: null,
|
|
42
|
+
download_concurrency: null,
|
|
41
43
|
client_cert: null,
|
|
44
|
+
total_timeout: null,
|
|
42
45
|
tls_validation: null,
|
|
46
|
+
password: null,
|
|
47
|
+
sock_read_timeout: null,
|
|
48
|
+
rate_limit: null,
|
|
49
|
+
proxy_username: null,
|
|
43
50
|
username: null,
|
|
51
|
+
sock_connect_timeout: null,
|
|
52
|
+
proxy_password: null,
|
|
53
|
+
ca_cert: null,
|
|
44
54
|
pulp_labels: null,
|
|
45
55
|
connect_timeout: null,
|
|
46
|
-
ca_cert: null,
|
|
47
|
-
proxy_password: null,
|
|
48
|
-
proxy_url: null,
|
|
49
|
-
proxy_username: null,
|
|
50
|
-
rate_limit: null,
|
|
51
|
-
headers: null,
|
|
52
|
-
url: null,
|
|
53
|
-
client_key: null,
|
|
54
|
-
sock_connect_timeout: null,
|
|
55
|
-
name: null,
|
|
56
56
|
metadata_only: null,
|
|
57
57
|
git_ref: null
|
|
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. * `immediate` - When syncing, download all metadata and content now. | [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. * `immediate` - When syncing, download all metadata and content now. | [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_ansible_client'
|
|
|
34
34
|
instance = PulpAnsibleClient::PatchedansibleRoleRemote.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 = PulpAnsibleClient::PatchedansibleRoleRemote.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
|
+
# PulpAnsibleClient::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_ansible_client'
|
|
29
|
+
|
|
30
|
+
instance = PulpAnsibleClient::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
|
+
# PulpAnsibleClient::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_ansible_client'
|
|
24
|
+
|
|
25
|
+
instance = PulpAnsibleClient::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
|
+
|
|
@@ -29,6 +29,7 @@ module PulpAnsibleClient
|
|
|
29
29
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
|
30
30
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
|
31
31
|
# @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
|
|
32
|
+
# @option opts [RemoteNetworkConfig] :downloader_config Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.
|
|
32
33
|
# @return [AsyncOperationResponse]
|
|
33
34
|
def create(signed_collection, opts = {})
|
|
34
35
|
data, _status_code, _headers = create_with_http_info(signed_collection, opts)
|
|
@@ -45,6 +46,7 @@ module PulpAnsibleClient
|
|
|
45
46
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
|
46
47
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
|
47
48
|
# @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
|
|
49
|
+
# @option opts [RemoteNetworkConfig] :downloader_config Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.
|
|
48
50
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
49
51
|
def create_with_http_info(signed_collection, opts = {})
|
|
50
52
|
if @api_client.config.debugging
|
|
@@ -83,6 +85,7 @@ module PulpAnsibleClient
|
|
|
83
85
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
|
84
86
|
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
|
85
87
|
form_params['file_url'] = opts[:'file_url'] if !opts[:'file_url'].nil?
|
|
88
|
+
form_params['downloader_config'] = opts[:'downloader_config'] if !opts[:'downloader_config'].nil?
|
|
86
89
|
|
|
87
90
|
# http body (model)
|
|
88
91
|
post_body = opts[:debug_body]
|
|
@@ -23,11 +23,12 @@ module PulpAnsibleClient
|
|
|
23
23
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
26
|
+
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
|
27
|
+
# @option opts [RemoteNetworkConfig] :downloader_config Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.
|
|
26
28
|
# @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
|
|
27
29
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
|
28
30
|
# @option opts [String] :artifact Artifact file representing the physical content
|
|
29
31
|
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
30
|
-
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
|
31
32
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
|
32
33
|
# @option opts [String] :expected_name The name of the collection.
|
|
33
34
|
# @option opts [String] :expected_namespace The namespace of the collection.
|
|
@@ -42,11 +43,12 @@ module PulpAnsibleClient
|
|
|
42
43
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
|
43
44
|
# @param [Hash] opts the optional parameters
|
|
44
45
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
46
|
+
# @option opts [File] :file An uploaded file that may be turned 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.
|
|
45
48
|
# @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
|
|
46
49
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
|
47
50
|
# @option opts [String] :artifact Artifact file representing the physical content
|
|
48
51
|
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
49
|
-
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
|
50
52
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
|
51
53
|
# @option opts [String] :expected_name The name of the collection.
|
|
52
54
|
# @option opts [String] :expected_namespace The namespace of the collection.
|
|
@@ -103,11 +105,12 @@ module PulpAnsibleClient
|
|
|
103
105
|
|
|
104
106
|
# form parameters
|
|
105
107
|
form_params = opts[:form_params] || {}
|
|
108
|
+
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
|
109
|
+
form_params['downloader_config'] = opts[:'downloader_config'] if !opts[:'downloader_config'].nil?
|
|
106
110
|
form_params['file_url'] = opts[:'file_url'] if !opts[:'file_url'].nil?
|
|
107
111
|
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
|
108
112
|
form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
|
|
109
113
|
form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
|
|
110
|
-
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
|
111
114
|
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
|
112
115
|
form_params['expected_name'] = opts[:'expected_name'] if !opts[:'expected_name'].nil?
|
|
113
116
|
form_params['expected_namespace'] = opts[:'expected_namespace'] if !opts[:'expected_namespace'].nil?
|
|
@@ -22,6 +22,11 @@ module PulpAnsibleClient
|
|
|
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. * `immediate` - When syncing, download all metadata and content now.
|
|
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 PulpAnsibleClient
|
|
|
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. * `immediate` - When syncing, download all metadata and content now.
|
|
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 PulpAnsibleClient
|
|
|
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
|
|
|
@@ -120,6 +120,8 @@ module PulpAnsibleClient
|
|
|
120
120
|
{
|
|
121
121
|
:'name' => :'name',
|
|
122
122
|
:'url' => :'url',
|
|
123
|
+
:'pulp_labels' => :'pulp_labels',
|
|
124
|
+
:'policy' => :'policy',
|
|
123
125
|
:'ca_cert' => :'ca_cert',
|
|
124
126
|
:'client_cert' => :'client_cert',
|
|
125
127
|
:'client_key' => :'client_key',
|
|
@@ -129,15 +131,13 @@ module PulpAnsibleClient
|
|
|
129
131
|
:'proxy_password' => :'proxy_password',
|
|
130
132
|
:'username' => :'username',
|
|
131
133
|
:'password' => :'password',
|
|
132
|
-
:'pulp_labels' => :'pulp_labels',
|
|
133
|
-
:'download_concurrency' => :'download_concurrency',
|
|
134
134
|
:'max_retries' => :'max_retries',
|
|
135
|
-
:'policy' => :'policy',
|
|
136
135
|
:'total_timeout' => :'total_timeout',
|
|
137
136
|
:'connect_timeout' => :'connect_timeout',
|
|
138
137
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
139
138
|
:'sock_read_timeout' => :'sock_read_timeout',
|
|
140
139
|
:'headers' => :'headers',
|
|
140
|
+
:'download_concurrency' => :'download_concurrency',
|
|
141
141
|
:'rate_limit' => :'rate_limit',
|
|
142
142
|
:'requirements_file' => :'requirements_file',
|
|
143
143
|
:'auth_url' => :'auth_url',
|
|
@@ -157,6 +157,8 @@ module PulpAnsibleClient
|
|
|
157
157
|
{
|
|
158
158
|
:'name' => :'String',
|
|
159
159
|
:'url' => :'String',
|
|
160
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
161
|
+
:'policy' => :'PolicyEnum',
|
|
160
162
|
:'ca_cert' => :'String',
|
|
161
163
|
:'client_cert' => :'String',
|
|
162
164
|
:'client_key' => :'String',
|
|
@@ -166,15 +168,13 @@ module PulpAnsibleClient
|
|
|
166
168
|
:'proxy_password' => :'String',
|
|
167
169
|
:'username' => :'String',
|
|
168
170
|
:'password' => :'String',
|
|
169
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
170
|
-
:'download_concurrency' => :'Integer',
|
|
171
171
|
:'max_retries' => :'Integer',
|
|
172
|
-
:'policy' => :'PolicyEnum',
|
|
173
172
|
:'total_timeout' => :'Float',
|
|
174
173
|
:'connect_timeout' => :'Float',
|
|
175
174
|
:'sock_connect_timeout' => :'Float',
|
|
176
175
|
:'sock_read_timeout' => :'Float',
|
|
177
176
|
:'headers' => :'Array<Object>',
|
|
177
|
+
:'download_concurrency' => :'Integer',
|
|
178
178
|
:'rate_limit' => :'Integer',
|
|
179
179
|
:'requirements_file' => :'String',
|
|
180
180
|
:'auth_url' => :'String',
|
|
@@ -195,12 +195,12 @@ module PulpAnsibleClient
|
|
|
195
195
|
:'proxy_password',
|
|
196
196
|
:'username',
|
|
197
197
|
:'password',
|
|
198
|
-
:'download_concurrency',
|
|
199
198
|
:'max_retries',
|
|
200
199
|
:'total_timeout',
|
|
201
200
|
:'connect_timeout',
|
|
202
201
|
:'sock_connect_timeout',
|
|
203
202
|
:'sock_read_timeout',
|
|
203
|
+
:'download_concurrency',
|
|
204
204
|
:'rate_limit',
|
|
205
205
|
:'requirements_file',
|
|
206
206
|
:'auth_url',
|
|
@@ -235,6 +235,16 @@ module PulpAnsibleClient
|
|
|
235
235
|
self.url = nil
|
|
236
236
|
end
|
|
237
237
|
|
|
238
|
+
if attributes.key?(:'pulp_labels')
|
|
239
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
240
|
+
self.pulp_labels = value
|
|
241
|
+
end
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
if attributes.key?(:'policy')
|
|
245
|
+
self.policy = attributes[:'policy']
|
|
246
|
+
end
|
|
247
|
+
|
|
238
248
|
if attributes.key?(:'ca_cert')
|
|
239
249
|
self.ca_cert = attributes[:'ca_cert']
|
|
240
250
|
end
|
|
@@ -271,24 +281,10 @@ module PulpAnsibleClient
|
|
|
271
281
|
self.password = attributes[:'password']
|
|
272
282
|
end
|
|
273
283
|
|
|
274
|
-
if attributes.key?(:'pulp_labels')
|
|
275
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
276
|
-
self.pulp_labels = value
|
|
277
|
-
end
|
|
278
|
-
end
|
|
279
|
-
|
|
280
|
-
if attributes.key?(:'download_concurrency')
|
|
281
|
-
self.download_concurrency = attributes[:'download_concurrency']
|
|
282
|
-
end
|
|
283
|
-
|
|
284
284
|
if attributes.key?(:'max_retries')
|
|
285
285
|
self.max_retries = attributes[:'max_retries']
|
|
286
286
|
end
|
|
287
287
|
|
|
288
|
-
if attributes.key?(:'policy')
|
|
289
|
-
self.policy = attributes[:'policy']
|
|
290
|
-
end
|
|
291
|
-
|
|
292
288
|
if attributes.key?(:'total_timeout')
|
|
293
289
|
self.total_timeout = attributes[:'total_timeout']
|
|
294
290
|
end
|
|
@@ -311,6 +307,10 @@ module PulpAnsibleClient
|
|
|
311
307
|
end
|
|
312
308
|
end
|
|
313
309
|
|
|
310
|
+
if attributes.key?(:'download_concurrency')
|
|
311
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
|
312
|
+
end
|
|
313
|
+
|
|
314
314
|
if attributes.key?(:'rate_limit')
|
|
315
315
|
self.rate_limit = attributes[:'rate_limit']
|
|
316
316
|
end
|
|
@@ -631,6 +631,8 @@ module PulpAnsibleClient
|
|
|
631
631
|
self.class == o.class &&
|
|
632
632
|
name == o.name &&
|
|
633
633
|
url == o.url &&
|
|
634
|
+
pulp_labels == o.pulp_labels &&
|
|
635
|
+
policy == o.policy &&
|
|
634
636
|
ca_cert == o.ca_cert &&
|
|
635
637
|
client_cert == o.client_cert &&
|
|
636
638
|
client_key == o.client_key &&
|
|
@@ -640,15 +642,13 @@ module PulpAnsibleClient
|
|
|
640
642
|
proxy_password == o.proxy_password &&
|
|
641
643
|
username == o.username &&
|
|
642
644
|
password == o.password &&
|
|
643
|
-
pulp_labels == o.pulp_labels &&
|
|
644
|
-
download_concurrency == o.download_concurrency &&
|
|
645
645
|
max_retries == o.max_retries &&
|
|
646
|
-
policy == o.policy &&
|
|
647
646
|
total_timeout == o.total_timeout &&
|
|
648
647
|
connect_timeout == o.connect_timeout &&
|
|
649
648
|
sock_connect_timeout == o.sock_connect_timeout &&
|
|
650
649
|
sock_read_timeout == o.sock_read_timeout &&
|
|
651
650
|
headers == o.headers &&
|
|
651
|
+
download_concurrency == o.download_concurrency &&
|
|
652
652
|
rate_limit == o.rate_limit &&
|
|
653
653
|
requirements_file == o.requirements_file &&
|
|
654
654
|
auth_url == o.auth_url &&
|
|
@@ -666,7 +666,7 @@ module PulpAnsibleClient
|
|
|
666
666
|
# Calculates hash code according to all attributes.
|
|
667
667
|
# @return [Integer] Hash code
|
|
668
668
|
def hash
|
|
669
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password,
|
|
669
|
+
[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, requirements_file, auth_url, token, sync_dependencies, signed_only].hash
|
|
670
670
|
end
|
|
671
671
|
|
|
672
672
|
# Builds the object from hash
|