pulp_ansible_client 0.13.6 → 0.14.0.dev1655611247
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pulp_ansible_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/AnsibleCollectionRemote.md +2 -2
- data/docs/AnsibleCollectionRemoteResponse.md +2 -0
- data/docs/AnsibleCollectionVersion.md +2 -0
- data/docs/AnsibleCollectionVersionResponse.md +3 -3
- data/docs/AnsibleGitRemote.md +28 -28
- data/docs/AnsibleGitRemoteResponse.md +25 -25
- data/docs/AnsibleRoleRemote.md +2 -2
- data/docs/AnsibleRoleResponse.md +3 -3
- data/docs/ContentCollectionVersionsApi.md +2 -0
- data/docs/PatchedansibleCollectionRemote.md +2 -2
- data/docs/PatchedansibleGitRemote.md +28 -28
- data/docs/PatchedansibleRoleRemote.md +2 -2
- data/git_push.sh +58 -0
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +3 -0
- data/lib/pulp_ansible_client/api_client.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +2 -2
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +27 -1
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -1
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +248 -248
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +144 -144
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +2 -2
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +2 -2
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +239 -239
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +2 -2
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/pulp_ansible_client.gemspec +3 -3
- data/spec/api/content_collection_versions_api_spec.rb +1 -0
- data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
- data/spec/models/ansible_collection_version_response_spec.rb +2 -2
- data/spec/models/ansible_collection_version_spec.rb +6 -0
- data/spec/models/ansible_git_remote_response_spec.rb +18 -18
- data/spec/models/ansible_git_remote_spec.rb +20 -20
- data/spec/models/ansible_role_response_spec.rb +2 -2
- data/spec/models/patchedansible_git_remote_spec.rb +20 -20
- metadata +107 -106
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22dd58f016157a752ce5605d65c881b1000bfe4d7d1331b7f7ea381d3bd0b46b
|
4
|
+
data.tar.gz: 9873fc84aad1d9e4122d6472ac47a22c0e3201adb46da78d6db0e3752ad43162
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d91ffb111b80b4c61abd93016a3b8c978065c5c1d229f7ec81f4a27882573cd448e00409748e79fdf7dd9062bf46651c566be1e6803e84360eeaf0cb2e554ae4
|
7
|
+
data.tar.gz: 3279b6508359dc03d54b73e6b88f74f35807b915ec186bb1ea7fa6a6c68b11a2ba91573ebbc0fa1295a4a59db6786ccd22e8c3dd2af60b29116d7aedee1cadd2
|
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: 0.
|
10
|
+
- Package version: 0.14.0.dev1655611247
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build pulp_ansible_client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./pulp_ansible_client-0.
|
27
|
+
gem install ./pulp_ansible_client-0.14.0.dev1655611247.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_ansible_client-0.
|
30
|
+
(for development, run `gem install --dev ./pulp_ansible_client-0.14.0.dev1655611247.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'pulp_ansible_client', '~> 0.
|
36
|
+
gem 'pulp_ansible_client', '~> 0.14.0.dev1655611247'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -12,9 +12,9 @@ Name | Type | Description | Notes
|
|
12
12
|
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
13
13
|
**proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
|
14
14
|
**proxy_username** | **String** | The username to authenticte to the proxy. | [optional]
|
15
|
-
**proxy_password** | **String** | The password to
|
15
|
+
**proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
16
16
|
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
17
|
-
**password** | **String** | The password to be used for authentication when syncing. | [optional]
|
17
|
+
**password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
18
18
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
19
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]
|
@@ -25,6 +25,7 @@ Name | Type | Description | Notes
|
|
25
25
|
**rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
|
26
26
|
**requirements_file** | **String** | The string version of Collection requirements yaml. | [optional]
|
27
27
|
**auth_url** | **String** | The URL to receive a session token from, e.g. used with Automation Hub. | [optional]
|
28
|
+
**token** | **String** | The token key to use for authentication. See https://docs.ansible.com/ansible/latest/user_guide/collections_using.html#configuring-the-ansible-galaxy-clientfor more details | [optional]
|
28
29
|
**sync_dependencies** | **Boolean** | Sync dependencies for collections specified via requirements file | [optional] [default to true]
|
29
30
|
**signed_only** | **Boolean** | Sync only collections that have a signature | [optional] [default to false]
|
30
31
|
|
@@ -54,6 +55,7 @@ instance = PulpAnsibleClient::AnsibleCollectionRemoteResponse.new(pulp_href: nul
|
|
54
55
|
rate_limit: null,
|
55
56
|
requirements_file: null,
|
56
57
|
auth_url: null,
|
58
|
+
token: null,
|
57
59
|
sync_dependencies: null,
|
58
60
|
signed_only: null)
|
59
61
|
```
|
@@ -5,6 +5,7 @@
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**file** | **File** | An uploaded file that may be turned into the artifact of the content unit. | [optional]
|
8
|
+
**upload** | **String** | An uncommitted upload that may be turned into the artifact of the content unit. | [optional]
|
8
9
|
**repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional]
|
9
10
|
**name** | **String** | The name of the collection. |
|
10
11
|
**namespace** | **String** | The namespace of the collection. |
|
@@ -16,6 +17,7 @@ Name | Type | Description | Notes
|
|
16
17
|
require 'PulpAnsibleClient'
|
17
18
|
|
18
19
|
instance = PulpAnsibleClient::AnsibleCollectionVersion.new(file: null,
|
20
|
+
upload: null,
|
19
21
|
repository: null,
|
20
22
|
name: null,
|
21
23
|
namespace: null,
|
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**artifact** | **String** | Artifact file representing the physical content | [optional]
|
8
7
|
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
8
|
+
**artifact** | **String** | Artifact file representing the physical content | [optional]
|
9
9
|
**pulp_href** | **String** | | [optional] [readonly]
|
10
10
|
**md5** | **String** | The MD5 checksum if available. | [optional] [readonly]
|
11
11
|
**sha1** | **String** | The SHA-1 checksum if available. | [optional] [readonly]
|
@@ -37,8 +37,8 @@ Name | Type | Description | Notes
|
|
37
37
|
```ruby
|
38
38
|
require 'PulpAnsibleClient'
|
39
39
|
|
40
|
-
instance = PulpAnsibleClient::AnsibleCollectionVersionResponse.new(
|
41
|
-
|
40
|
+
instance = PulpAnsibleClient::AnsibleCollectionVersionResponse.new(pulp_created: null,
|
41
|
+
artifact: null,
|
42
42
|
pulp_href: null,
|
43
43
|
md5: null,
|
44
44
|
sha1: null,
|
data/docs/AnsibleGitRemote.md
CHANGED
@@ -4,26 +4,26 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**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]
|
8
|
-
**client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
|
9
|
-
**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]
|
10
|
-
**client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
|
11
|
-
**proxy_password** | **String** | The password to authenticte to the proxy. | [optional]
|
12
|
-
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
13
7
|
**headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
|
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]
|
9
|
+
**name** | **String** | A unique name for this remote. |
|
14
10
|
**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]
|
11
|
+
**download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
|
15
12
|
**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]
|
16
|
-
**
|
17
|
-
**
|
13
|
+
**rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
|
14
|
+
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
15
|
+
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
16
|
+
**client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
|
17
|
+
**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]
|
18
|
+
**password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
19
|
+
**proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
18
20
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
19
21
|
**proxy_username** | **String** | The username to authenticte to the proxy. | [optional]
|
22
|
+
**url** | **String** | The URL of an external content source. |
|
23
|
+
**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]
|
24
|
+
**ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
|
25
|
+
**client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
|
20
26
|
**proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
|
21
|
-
**password** | **String** | The password to be used for authentication when syncing. | [optional]
|
22
|
-
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
23
|
-
**name** | **String** | A unique name for this remote. |
|
24
|
-
**max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
|
25
|
-
**download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
|
26
|
-
**rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [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
|
|
@@ -32,26 +32,26 @@ Name | Type | Description | Notes
|
|
32
32
|
```ruby
|
33
33
|
require 'PulpAnsibleClient'
|
34
34
|
|
35
|
-
instance = PulpAnsibleClient::AnsibleGitRemote.new(
|
35
|
+
instance = PulpAnsibleClient::AnsibleGitRemote.new(headers: null,
|
36
|
+
max_retries: null,
|
37
|
+
name: null,
|
38
|
+
total_timeout: null,
|
39
|
+
download_concurrency: null,
|
40
|
+
sock_connect_timeout: null,
|
41
|
+
rate_limit: null,
|
42
|
+
tls_validation: null,
|
43
|
+
username: null,
|
36
44
|
client_key: null,
|
37
45
|
connect_timeout: null,
|
38
|
-
|
46
|
+
password: null,
|
39
47
|
proxy_password: null,
|
40
|
-
username: null,
|
41
|
-
headers: null,
|
42
|
-
total_timeout: null,
|
43
|
-
sock_connect_timeout: null,
|
44
|
-
url: null,
|
45
|
-
ca_cert: null,
|
46
48
|
pulp_labels: null,
|
47
49
|
proxy_username: null,
|
50
|
+
url: null,
|
51
|
+
sock_read_timeout: null,
|
52
|
+
ca_cert: null,
|
53
|
+
client_cert: null,
|
48
54
|
proxy_url: null,
|
49
|
-
password: null,
|
50
|
-
tls_validation: null,
|
51
|
-
name: null,
|
52
|
-
max_retries: null,
|
53
|
-
download_concurrency: null,
|
54
|
-
rate_limit: null,
|
55
55
|
metadata_only: null,
|
56
56
|
git_ref: null)
|
57
57
|
```
|
@@ -4,24 +4,24 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**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]
|
8
|
-
**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]
|
9
|
-
**client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
|
10
7
|
**headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
|
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]
|
9
|
+
**name** | **String** | A unique name for this remote. |
|
11
10
|
**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]
|
12
|
-
**
|
11
|
+
**download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
|
13
12
|
**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]
|
13
|
+
**rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
|
14
|
+
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
15
|
+
**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]
|
16
|
+
**pulp_labels** | [**Object**](.md) | | [optional]
|
14
17
|
**url** | **String** | The URL of an external content source. |
|
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
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
15
20
|
**ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
|
16
|
-
**
|
17
|
-
**
|
21
|
+
**client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
|
22
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
18
23
|
**proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
|
19
|
-
**
|
20
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
21
|
-
**name** | **String** | A unique name for this remote. |
|
22
|
-
**max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
|
23
|
-
**download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
|
24
|
-
**rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
|
24
|
+
**pulp_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional] [readonly]
|
25
25
|
**metadata_only** | **Boolean** | If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL. | [optional]
|
26
26
|
**git_ref** | **String** | A git ref. e.g.: branch, tag, or commit sha. | [optional]
|
27
27
|
|
@@ -30,24 +30,24 @@ Name | Type | Description | Notes
|
|
30
30
|
```ruby
|
31
31
|
require 'PulpAnsibleClient'
|
32
32
|
|
33
|
-
instance = PulpAnsibleClient::AnsibleGitRemoteResponse.new(
|
34
|
-
|
35
|
-
|
36
|
-
headers: null,
|
33
|
+
instance = PulpAnsibleClient::AnsibleGitRemoteResponse.new(headers: null,
|
34
|
+
max_retries: null,
|
35
|
+
name: null,
|
37
36
|
total_timeout: null,
|
38
|
-
|
37
|
+
download_concurrency: null,
|
39
38
|
sock_connect_timeout: null,
|
39
|
+
rate_limit: null,
|
40
|
+
tls_validation: null,
|
41
|
+
connect_timeout: null,
|
42
|
+
pulp_labels: null,
|
40
43
|
url: null,
|
44
|
+
sock_read_timeout: null,
|
45
|
+
pulp_created: null,
|
41
46
|
ca_cert: null,
|
42
|
-
|
43
|
-
|
47
|
+
client_cert: null,
|
48
|
+
pulp_href: null,
|
44
49
|
proxy_url: null,
|
45
|
-
|
46
|
-
pulp_created: null,
|
47
|
-
name: null,
|
48
|
-
max_retries: null,
|
49
|
-
download_concurrency: null,
|
50
|
-
rate_limit: null,
|
50
|
+
pulp_last_updated: null,
|
51
51
|
metadata_only: null,
|
52
52
|
git_ref: null)
|
53
53
|
```
|
data/docs/AnsibleRoleRemote.md
CHANGED
@@ -12,9 +12,9 @@ Name | Type | Description | Notes
|
|
12
12
|
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
13
13
|
**proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
|
14
14
|
**proxy_username** | **String** | The username to authenticte to the proxy. | [optional]
|
15
|
-
**proxy_password** | **String** | The password to
|
15
|
+
**proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
16
16
|
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
17
|
-
**password** | **String** | The password to be used for authentication when syncing. | [optional]
|
17
|
+
**password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
18
18
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
19
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]
|
data/docs/AnsibleRoleResponse.md
CHANGED
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**artifact** | **String** | Artifact file representing the physical content |
|
8
7
|
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
8
|
+
**artifact** | **String** | Artifact file representing the physical content |
|
9
9
|
**pulp_href** | **String** | | [optional] [readonly]
|
10
10
|
**version** | **String** | |
|
11
11
|
**name** | **String** | |
|
@@ -16,8 +16,8 @@ Name | Type | Description | Notes
|
|
16
16
|
```ruby
|
17
17
|
require 'PulpAnsibleClient'
|
18
18
|
|
19
|
-
instance = PulpAnsibleClient::AnsibleRoleResponse.new(
|
20
|
-
|
19
|
+
instance = PulpAnsibleClient::AnsibleRoleResponse.new(pulp_created: null,
|
20
|
+
artifact: null,
|
21
21
|
pulp_href: null,
|
22
22
|
version: null,
|
23
23
|
name: null,
|
@@ -36,6 +36,7 @@ namespace = 'namespace_example' # String | The namespace of the collection.
|
|
36
36
|
version = 'version_example' # String | The version of the collection.
|
37
37
|
opts = {
|
38
38
|
file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the artifact of the content unit.
|
39
|
+
upload: 'upload_example', # String | An uncommitted upload that may be turned into the artifact of the content unit.
|
39
40
|
repository: 'repository_example' # String | A URI of a repository the new content unit should be associated with.
|
40
41
|
}
|
41
42
|
|
@@ -57,6 +58,7 @@ Name | Type | Description | Notes
|
|
57
58
|
**namespace** | **String**| The namespace of the collection. |
|
58
59
|
**version** | **String**| The version of the collection. |
|
59
60
|
**file** | **File**| An uploaded file that may be turned into the artifact of the content unit. | [optional]
|
61
|
+
**upload** | **String**| An uncommitted upload that may be turned into the artifact of the content unit. | [optional]
|
60
62
|
**repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
|
61
63
|
|
62
64
|
### Return type
|
@@ -12,9 +12,9 @@ Name | Type | Description | Notes
|
|
12
12
|
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
13
13
|
**proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
|
14
14
|
**proxy_username** | **String** | The username to authenticte to the proxy. | [optional]
|
15
|
-
**proxy_password** | **String** | The password to
|
15
|
+
**proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
16
16
|
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
17
|
-
**password** | **String** | The password to be used for authentication when syncing. | [optional]
|
17
|
+
**password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
18
18
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
19
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]
|
@@ -4,26 +4,26 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**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]
|
8
|
-
**client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
|
9
|
-
**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]
|
10
|
-
**client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
|
11
|
-
**proxy_password** | **String** | The password to authenticte to the proxy. | [optional]
|
12
|
-
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
13
7
|
**headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
|
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]
|
9
|
+
**name** | **String** | A unique name for this remote. | [optional]
|
14
10
|
**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]
|
11
|
+
**download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
|
15
12
|
**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]
|
16
|
-
**
|
17
|
-
**
|
13
|
+
**rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
|
14
|
+
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
15
|
+
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
16
|
+
**client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
|
17
|
+
**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]
|
18
|
+
**password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
19
|
+
**proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
18
20
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
19
21
|
**proxy_username** | **String** | The username to authenticte to the proxy. | [optional]
|
22
|
+
**url** | **String** | The URL of an external content source. | [optional]
|
23
|
+
**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]
|
24
|
+
**ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
|
25
|
+
**client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
|
20
26
|
**proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
|
21
|
-
**password** | **String** | The password to be used for authentication when syncing. | [optional]
|
22
|
-
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
23
|
-
**name** | **String** | A unique name for this remote. | [optional]
|
24
|
-
**max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
|
25
|
-
**download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
|
26
|
-
**rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [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
|
|
@@ -32,26 +32,26 @@ Name | Type | Description | Notes
|
|
32
32
|
```ruby
|
33
33
|
require 'PulpAnsibleClient'
|
34
34
|
|
35
|
-
instance = PulpAnsibleClient::PatchedansibleGitRemote.new(
|
35
|
+
instance = PulpAnsibleClient::PatchedansibleGitRemote.new(headers: null,
|
36
|
+
max_retries: null,
|
37
|
+
name: null,
|
38
|
+
total_timeout: null,
|
39
|
+
download_concurrency: null,
|
40
|
+
sock_connect_timeout: null,
|
41
|
+
rate_limit: null,
|
42
|
+
tls_validation: null,
|
43
|
+
username: null,
|
36
44
|
client_key: null,
|
37
45
|
connect_timeout: null,
|
38
|
-
|
46
|
+
password: null,
|
39
47
|
proxy_password: null,
|
40
|
-
username: null,
|
41
|
-
headers: null,
|
42
|
-
total_timeout: null,
|
43
|
-
sock_connect_timeout: null,
|
44
|
-
url: null,
|
45
|
-
ca_cert: null,
|
46
48
|
pulp_labels: null,
|
47
49
|
proxy_username: null,
|
50
|
+
url: null,
|
51
|
+
sock_read_timeout: null,
|
52
|
+
ca_cert: null,
|
53
|
+
client_cert: null,
|
48
54
|
proxy_url: null,
|
49
|
-
password: null,
|
50
|
-
tls_validation: null,
|
51
|
-
name: null,
|
52
|
-
max_retries: null,
|
53
|
-
download_concurrency: null,
|
54
|
-
rate_limit: null,
|
55
55
|
metadata_only: null,
|
56
56
|
git_ref: null)
|
57
57
|
```
|
@@ -12,9 +12,9 @@ Name | Type | Description | Notes
|
|
12
12
|
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
13
13
|
**proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
|
14
14
|
**proxy_username** | **String** | The username to authenticte to the proxy. | [optional]
|
15
|
-
**proxy_password** | **String** | The password to
|
15
|
+
**proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
16
16
|
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
17
|
-
**password** | **String** | The password to be used for authentication when syncing. | [optional]
|
17
|
+
**password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
18
18
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
19
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]
|
data/git_push.sh
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
3
|
+
#
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
|
5
|
+
|
6
|
+
git_user_id=$1
|
7
|
+
git_repo_id=$2
|
8
|
+
release_note=$3
|
9
|
+
git_host=$4
|
10
|
+
|
11
|
+
if [ "$git_host" = "" ]; then
|
12
|
+
git_host="github.com"
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
14
|
+
fi
|
15
|
+
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
17
|
+
git_user_id="GIT_USER_ID"
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
19
|
+
fi
|
20
|
+
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
22
|
+
git_repo_id="GIT_REPO_ID"
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
24
|
+
fi
|
25
|
+
|
26
|
+
if [ "$release_note" = "" ]; then
|
27
|
+
release_note="Minor update"
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
29
|
+
fi
|
30
|
+
|
31
|
+
# Initialize the local directory as a Git repository
|
32
|
+
git init
|
33
|
+
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
35
|
+
git add .
|
36
|
+
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
38
|
+
git commit -m "$release_note"
|
39
|
+
|
40
|
+
# Sets the new remote
|
41
|
+
git_remote=`git remote`
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
43
|
+
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
47
|
+
else
|
48
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
|
49
|
+
fi
|
50
|
+
|
51
|
+
fi
|
52
|
+
|
53
|
+
git pull origin master
|
54
|
+
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|
58
|
+
|
@@ -26,6 +26,7 @@ module PulpAnsibleClient
|
|
26
26
|
# @param version [String] The version of the collection.
|
27
27
|
# @param [Hash] opts the optional parameters
|
28
28
|
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
29
|
+
# @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
|
29
30
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
30
31
|
# @return [AsyncOperationResponse]
|
31
32
|
def create(name, namespace, version, opts = {})
|
@@ -40,6 +41,7 @@ module PulpAnsibleClient
|
|
40
41
|
# @param version [String] The version of the collection.
|
41
42
|
# @param [Hash] opts the optional parameters
|
42
43
|
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
44
|
+
# @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
|
43
45
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
44
46
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
45
47
|
def create_with_http_info(name, namespace, version, opts = {})
|
@@ -101,6 +103,7 @@ module PulpAnsibleClient
|
|
101
103
|
form_params['namespace'] = namespace
|
102
104
|
form_params['version'] = version
|
103
105
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
106
|
+
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
104
107
|
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
105
108
|
|
106
109
|
# http body (model)
|
@@ -154,7 +154,7 @@ module PulpAnsibleClient
|
|
154
154
|
case value
|
155
155
|
when ::File, ::Tempfile
|
156
156
|
# TODO hardcode to application/octet-stream, need better way to detect content type
|
157
|
-
data[key] = Faraday::
|
157
|
+
data[key] = Faraday::UploadIO.new(value.path, 'application/octet-stream', value.path)
|
158
158
|
when ::Array, nil
|
159
159
|
# let Faraday handle Array and nil parameters
|
160
160
|
data[key] = value
|
@@ -39,13 +39,13 @@ module PulpAnsibleClient
|
|
39
39
|
# The username to authenticte to the proxy.
|
40
40
|
attr_accessor :proxy_username
|
41
41
|
|
42
|
-
# The password to
|
42
|
+
# The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
|
43
43
|
attr_accessor :proxy_password
|
44
44
|
|
45
45
|
# The username to be used for authentication when syncing.
|
46
46
|
attr_accessor :username
|
47
47
|
|
48
|
-
# The password to be used for authentication when syncing.
|
48
|
+
# The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
|
49
49
|
attr_accessor :password
|
50
50
|
|
51
51
|
attr_accessor :pulp_labels
|