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.

Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleCollectionRemote.md +2 -2
  4. data/docs/AnsibleCollectionRemoteResponse.md +2 -0
  5. data/docs/AnsibleCollectionVersion.md +2 -0
  6. data/docs/AnsibleCollectionVersionResponse.md +3 -3
  7. data/docs/AnsibleGitRemote.md +28 -28
  8. data/docs/AnsibleGitRemoteResponse.md +25 -25
  9. data/docs/AnsibleRoleRemote.md +2 -2
  10. data/docs/AnsibleRoleResponse.md +3 -3
  11. data/docs/ContentCollectionVersionsApi.md +2 -0
  12. data/docs/PatchedansibleCollectionRemote.md +2 -2
  13. data/docs/PatchedansibleGitRemote.md +28 -28
  14. data/docs/PatchedansibleRoleRemote.md +2 -2
  15. data/git_push.sh +58 -0
  16. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +3 -0
  17. data/lib/pulp_ansible_client/api_client.rb +1 -1
  18. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +2 -2
  19. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +27 -1
  20. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -1
  21. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
  22. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +248 -248
  23. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +144 -144
  24. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +2 -2
  25. data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
  26. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +2 -2
  27. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +239 -239
  28. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +2 -2
  29. data/lib/pulp_ansible_client/version.rb +1 -1
  30. data/pulp_ansible_client.gemspec +3 -3
  31. data/spec/api/content_collection_versions_api_spec.rb +1 -0
  32. data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
  33. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  34. data/spec/models/ansible_collection_version_spec.rb +6 -0
  35. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  36. data/spec/models/ansible_git_remote_spec.rb +20 -20
  37. data/spec/models/ansible_role_response_spec.rb +2 -2
  38. data/spec/models/patchedansible_git_remote_spec.rb +20 -20
  39. metadata +107 -106
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7b173c2da27c52ad3b9dc4c38177fce2438355cc3f64255c345724986e0d7321
4
- data.tar.gz: cde688ebd0bb6c4ca25a3c721e70533aa07930a7aa1a944df833770d97b3c3d3
3
+ metadata.gz: 22dd58f016157a752ce5605d65c881b1000bfe4d7d1331b7f7ea381d3bd0b46b
4
+ data.tar.gz: 9873fc84aad1d9e4122d6472ac47a22c0e3201adb46da78d6db0e3752ad43162
5
5
  SHA512:
6
- metadata.gz: 8a37f0d128bff967c3bcad4844ecdadfc377aff230107d68e9fcce7ac14e7216706ce96995989a69e3d74211dda0f1b9f5f9f9f028065e8ac6ea14c90f8a925a
7
- data.tar.gz: b26a618d150514e8222f8872c54f63c05b7ed7610a8f91e93365019ea2a4c9ea2cc8e2cb7eed7ce2c6be4ece518e17168f559af55210d667dc7146726210f18d
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.13.6
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.13.6.gem
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.13.6.gem` to install the development dependencies)
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.13.6'
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 authenticte to the proxy. | [optional]
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(artifact: null,
41
- pulp_created: null,
40
+ instance = PulpAnsibleClient::AnsibleCollectionVersionResponse.new(pulp_created: null,
41
+ artifact: null,
42
42
  pulp_href: null,
43
43
  md5: null,
44
44
  sha1: null,
@@ -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
- **url** | **String** | The URL of an external content source. |
17
- **ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [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
+ **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(sock_read_timeout: null,
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
- client_cert: null,
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
- **pulp_href** | **String** | | [optional] [readonly]
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
- **pulp_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional] [readonly]
17
- **pulp_labels** | [**Object**](.md) | | [optional]
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
- **tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
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(sock_read_timeout: null,
34
- connect_timeout: null,
35
- client_cert: null,
36
- headers: null,
33
+ instance = PulpAnsibleClient::AnsibleGitRemoteResponse.new(headers: null,
34
+ max_retries: null,
35
+ name: null,
37
36
  total_timeout: null,
38
- pulp_href: null,
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
- pulp_last_updated: null,
43
- pulp_labels: null,
47
+ client_cert: null,
48
+ pulp_href: null,
44
49
  proxy_url: null,
45
- tls_validation: null,
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
  ```
@@ -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 authenticte to the proxy. | [optional]
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,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(artifact: null,
20
- pulp_created: null,
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 authenticte to the proxy. | [optional]
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
- **url** | **String** | The URL of an external content source. | [optional]
17
- **ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [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
+ **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(sock_read_timeout: null,
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
- client_cert: null,
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 authenticte to the proxy. | [optional]
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::FilePart.new(value.path, 'application/octet-stream', value.path)
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 authenticte to the proxy.
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