pulp_ansible_client 0.14.2 → 0.15.0.dev1656829800
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.
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/AnsibleCollectionVersion.md +3 -3
- data/docs/AnsibleCollectionVersionResponse.md +3 -3
- data/docs/AnsibleGitRemote.md +28 -28
- data/docs/AnsibleGitRemoteResponse.md +27 -27
- data/docs/AnsibleRoleResponse.md +3 -3
- data/docs/ContentCollectionVersionsApi.md +3 -3
- data/docs/DistributionsAnsibleApi.md +0 -2
- data/docs/PatchedansibleGitRemote.md +28 -28
- data/docs/RepositoriesAnsibleApi.md +0 -2
- data/git_push.sh +58 -0
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +3 -3
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +0 -3
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +0 -3
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +1 -1
- data/lib/pulp_ansible_client/api_client.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +233 -233
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +143 -143
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +233 -233
- 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 -1
- data/spec/api/distributions_ansible_api_spec.rb +0 -1
- data/spec/api/repositories_ansible_api_spec.rb +0 -1
- data/spec/models/ansible_collection_version_response_spec.rb +3 -3
- data/spec/models/ansible_collection_version_spec.rb +3 -3
- data/spec/models/ansible_git_remote_response_spec.rb +18 -18
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- data/spec/models/ansible_role_response_spec.rb +3 -3
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- metadata +108 -107
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5610447641e5f1607694e4d797f331eb12fea749deeb97472cf3b23efa97f845
|
|
4
|
+
data.tar.gz: a7b5a50dccde4d0098a2e9d72669223d2ce3b722b9ca299d11a4197013891261
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d36803a8a3e6294422bd0afda7bd3fae4ce9d594ceb1d3363ebfce2a9831011c9077c4062b38c5f3fa82c4d770f7377ab1755e8eb9a6e4bac276fdb060b3bad0
|
|
7
|
+
data.tar.gz: 9e4afaa9d4326a56380630c3283281b66ea111196b6056427336f3dc102e9fef772d508b68191d5efc3ef2aa94cdc705fbcec2c2120b9b78ba0b1493503736e8
|
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.15.0.dev1656829800
|
|
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.15.0.dev1656829800.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.15.0.dev1656829800.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.15.0.dev1656829800'
|
|
37
37
|
|
|
38
38
|
### Install from Git
|
|
39
39
|
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**upload** | **String** | An uncommitted upload that may be turned into the artifact of the content unit. | [optional]
|
|
8
7
|
**repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional]
|
|
9
8
|
**file** | **File** | An uploaded file that may be turned into the artifact of the content unit. | [optional]
|
|
9
|
+
**upload** | **String** | An uncommitted upload that may be turned into the artifact of the content unit. | [optional]
|
|
10
10
|
**name** | **String** | The name of the collection. |
|
|
11
11
|
**namespace** | **String** | The namespace of the collection. |
|
|
12
12
|
**version** | **String** | The version of the collection. |
|
|
@@ -16,9 +16,9 @@ Name | Type | Description | Notes
|
|
|
16
16
|
```ruby
|
|
17
17
|
require 'PulpAnsibleClient'
|
|
18
18
|
|
|
19
|
-
instance = PulpAnsibleClient::AnsibleCollectionVersion.new(
|
|
20
|
-
repository: null,
|
|
19
|
+
instance = PulpAnsibleClient::AnsibleCollectionVersion.new(repository: null,
|
|
21
20
|
file: null,
|
|
21
|
+
upload: null,
|
|
22
22
|
name: null,
|
|
23
23
|
namespace: null,
|
|
24
24
|
version: null)
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
7
8
|
**pulp_href** | **String** | | [optional] [readonly]
|
|
8
9
|
**artifact** | **String** | Artifact file representing the physical content | [optional]
|
|
9
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [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]
|
|
12
12
|
**sha224** | **String** | The SHA-224 checksum if available. | [optional] [readonly]
|
|
@@ -37,9 +37,9 @@ Name | Type | Description | Notes
|
|
|
37
37
|
```ruby
|
|
38
38
|
require 'PulpAnsibleClient'
|
|
39
39
|
|
|
40
|
-
instance = PulpAnsibleClient::AnsibleCollectionVersionResponse.new(
|
|
40
|
+
instance = PulpAnsibleClient::AnsibleCollectionVersionResponse.new(pulp_created: null,
|
|
41
|
+
pulp_href: null,
|
|
41
42
|
artifact: null,
|
|
42
|
-
pulp_created: null,
|
|
43
43
|
md5: null,
|
|
44
44
|
sha1: null,
|
|
45
45
|
sha224: null,
|
data/docs/AnsibleGitRemote.md
CHANGED
|
@@ -4,26 +4,26 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**
|
|
8
|
-
**
|
|
9
|
-
**proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
|
|
10
|
-
**password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
|
11
|
-
**client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
|
|
12
|
-
**url** | **String** | The URL of an external content source. |
|
|
13
|
-
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
14
|
-
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
|
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
|
+
**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]
|
|
15
9
|
**proxy_username** | **String** | The username to authenticte to the proxy. | [optional]
|
|
16
10
|
**rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
|
|
17
|
-
**
|
|
11
|
+
**client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
|
|
18
12
|
**max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
|
|
19
|
-
**
|
|
13
|
+
**proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
|
14
|
+
**ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
|
|
15
|
+
**password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
|
16
|
+
**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]
|
|
20
17
|
**client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
|
|
18
|
+
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
|
19
|
+
**download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
|
|
21
20
|
**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]
|
|
22
|
-
**
|
|
23
|
-
**
|
|
21
|
+
**headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
|
|
22
|
+
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
|
23
|
+
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
24
|
+
**url** | **String** | The URL of an external content source. |
|
|
24
25
|
**name** | **String** | A unique name for this remote. |
|
|
25
|
-
**
|
|
26
|
-
**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]
|
|
26
|
+
**proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [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(
|
|
36
|
-
|
|
37
|
-
proxy_url: null,
|
|
38
|
-
password: null,
|
|
39
|
-
client_cert: null,
|
|
40
|
-
url: null,
|
|
41
|
-
pulp_labels: null,
|
|
42
|
-
username: null,
|
|
35
|
+
instance = PulpAnsibleClient::AnsibleGitRemote.new(sock_read_timeout: null,
|
|
36
|
+
total_timeout: null,
|
|
43
37
|
proxy_username: null,
|
|
44
38
|
rate_limit: null,
|
|
45
|
-
|
|
39
|
+
client_cert: null,
|
|
46
40
|
max_retries: null,
|
|
47
|
-
|
|
41
|
+
proxy_password: null,
|
|
42
|
+
ca_cert: null,
|
|
43
|
+
password: null,
|
|
44
|
+
connect_timeout: null,
|
|
48
45
|
client_key: null,
|
|
46
|
+
username: null,
|
|
47
|
+
download_concurrency: null,
|
|
49
48
|
sock_connect_timeout: null,
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
headers: null,
|
|
50
|
+
tls_validation: null,
|
|
51
|
+
pulp_labels: null,
|
|
52
|
+
url: null,
|
|
52
53
|
name: null,
|
|
53
|
-
|
|
54
|
-
total_timeout: null,
|
|
54
|
+
proxy_url: 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
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
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
|
+
**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]
|
|
10
|
+
**rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
|
|
11
|
+
**client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
|
|
12
|
+
**pulp_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional] [readonly]
|
|
13
|
+
**max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
|
|
14
|
+
**ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
|
|
7
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]
|
|
8
16
|
**download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
|
|
9
|
-
**
|
|
10
|
-
**client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
|
|
11
|
-
**url** | **String** | The URL of an external content source. |
|
|
12
|
-
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
13
|
-
**rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
|
|
14
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
17
|
+
**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
18
|
**headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [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
19
|
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
|
18
|
-
**
|
|
19
|
-
**
|
|
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
|
-
**ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
|
|
22
|
-
**pulp_href** | **String** | | [optional] [readonly]
|
|
20
|
+
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
21
|
+
**url** | **String** | The URL of an external content source. |
|
|
23
22
|
**name** | **String** | A unique name for this remote. |
|
|
24
|
-
**
|
|
23
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
|
24
|
+
**proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
|
|
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
|
-
client_cert: null,
|
|
37
|
-
url: null,
|
|
38
|
-
pulp_labels: null,
|
|
33
|
+
instance = PulpAnsibleClient::AnsibleGitRemoteResponse.new(pulp_created: null,
|
|
34
|
+
sock_read_timeout: null,
|
|
35
|
+
total_timeout: null,
|
|
39
36
|
rate_limit: null,
|
|
40
|
-
|
|
41
|
-
headers: null,
|
|
42
|
-
max_retries: null,
|
|
43
|
-
tls_validation: null,
|
|
37
|
+
client_cert: null,
|
|
44
38
|
pulp_last_updated: null,
|
|
45
|
-
|
|
46
|
-
sock_read_timeout: null,
|
|
39
|
+
max_retries: null,
|
|
47
40
|
ca_cert: null,
|
|
48
|
-
|
|
41
|
+
connect_timeout: null,
|
|
42
|
+
download_concurrency: null,
|
|
43
|
+
sock_connect_timeout: null,
|
|
44
|
+
headers: null,
|
|
45
|
+
tls_validation: null,
|
|
46
|
+
pulp_labels: null,
|
|
47
|
+
url: null,
|
|
49
48
|
name: null,
|
|
50
|
-
|
|
49
|
+
pulp_href: null,
|
|
50
|
+
proxy_url: null,
|
|
51
51
|
metadata_only: null,
|
|
52
52
|
git_ref: null)
|
|
53
53
|
```
|
data/docs/AnsibleRoleResponse.md
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
7
8
|
**pulp_href** | **String** | | [optional] [readonly]
|
|
8
9
|
**artifact** | **String** | Artifact file representing the physical content |
|
|
9
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
10
10
|
**version** | **String** | |
|
|
11
11
|
**name** | **String** | |
|
|
12
12
|
**namespace** | **String** | |
|
|
@@ -16,9 +16,9 @@ Name | Type | Description | Notes
|
|
|
16
16
|
```ruby
|
|
17
17
|
require 'PulpAnsibleClient'
|
|
18
18
|
|
|
19
|
-
instance = PulpAnsibleClient::AnsibleRoleResponse.new(
|
|
19
|
+
instance = PulpAnsibleClient::AnsibleRoleResponse.new(pulp_created: null,
|
|
20
|
+
pulp_href: null,
|
|
20
21
|
artifact: null,
|
|
21
|
-
pulp_created: null,
|
|
22
22
|
version: null,
|
|
23
23
|
name: null,
|
|
24
24
|
namespace: null)
|
|
@@ -35,9 +35,9 @@ name = 'name_example' # String | The name of the collection.
|
|
|
35
35
|
namespace = 'namespace_example' # String | The namespace of the collection.
|
|
36
36
|
version = 'version_example' # String | The version of the collection.
|
|
37
37
|
opts = {
|
|
38
|
-
upload: 'upload_example', # String | An uncommitted upload that may be turned into the artifact of the content unit.
|
|
39
38
|
repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
|
|
40
|
-
file: File.new('/path/to/file') # File | An uploaded file that may be turned into the artifact of the content unit.
|
|
39
|
+
file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the artifact of the content unit.
|
|
40
|
+
upload: 'upload_example' # String | An uncommitted upload that may be turned into the artifact of the content unit.
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
begin
|
|
@@ -57,9 +57,9 @@ Name | Type | Description | Notes
|
|
|
57
57
|
**name** | **String**| The name of the collection. |
|
|
58
58
|
**namespace** | **String**| The namespace of the collection. |
|
|
59
59
|
**version** | **String**| The version of the collection. |
|
|
60
|
-
**upload** | **String**| An uncommitted upload that may be turned into the artifact of the content unit. | [optional]
|
|
61
60
|
**repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
|
|
62
61
|
**file** | **File**| An uploaded file that may be turned into the artifact of the content unit. | [optional]
|
|
62
|
+
**upload** | **String**| An uncommitted upload that may be turned into the artifact of the content unit. | [optional]
|
|
63
63
|
|
|
64
64
|
### Return type
|
|
65
65
|
|
|
@@ -154,7 +154,6 @@ opts = {
|
|
|
154
154
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
155
155
|
ordering: ['ordering_example'], # Array<String> | Ordering
|
|
156
156
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
|
157
|
-
with_content: 'with_content_example', # String | Filter distributions based on the content served by them
|
|
158
157
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
159
158
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
160
159
|
}
|
|
@@ -186,7 +185,6 @@ Name | Type | Description | Notes
|
|
|
186
185
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
187
186
|
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
|
188
187
|
**pulp_label_select** | **String**| Filter labels by search string | [optional]
|
|
189
|
-
**with_content** | **String**| Filter distributions based on the content served by them | [optional]
|
|
190
188
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
191
189
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
192
190
|
|
|
@@ -4,26 +4,26 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**
|
|
8
|
-
**
|
|
9
|
-
**proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
|
|
10
|
-
**password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
|
11
|
-
**client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
|
|
12
|
-
**url** | **String** | The URL of an external content source. | [optional]
|
|
13
|
-
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
14
|
-
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
|
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
|
+
**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]
|
|
15
9
|
**proxy_username** | **String** | The username to authenticte to the proxy. | [optional]
|
|
16
10
|
**rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
|
|
17
|
-
**
|
|
11
|
+
**client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
|
|
18
12
|
**max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
|
|
19
|
-
**
|
|
13
|
+
**proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
|
14
|
+
**ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
|
|
15
|
+
**password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
|
16
|
+
**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]
|
|
20
17
|
**client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
|
|
18
|
+
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
|
19
|
+
**download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
|
|
21
20
|
**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]
|
|
22
|
-
**
|
|
23
|
-
**
|
|
21
|
+
**headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
|
|
22
|
+
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
|
23
|
+
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
24
|
+
**url** | **String** | The URL of an external content source. | [optional]
|
|
24
25
|
**name** | **String** | A unique name for this remote. | [optional]
|
|
25
|
-
**
|
|
26
|
-
**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]
|
|
26
|
+
**proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [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(
|
|
36
|
-
|
|
37
|
-
proxy_url: null,
|
|
38
|
-
password: null,
|
|
39
|
-
client_cert: null,
|
|
40
|
-
url: null,
|
|
41
|
-
pulp_labels: null,
|
|
42
|
-
username: null,
|
|
35
|
+
instance = PulpAnsibleClient::PatchedansibleGitRemote.new(sock_read_timeout: null,
|
|
36
|
+
total_timeout: null,
|
|
43
37
|
proxy_username: null,
|
|
44
38
|
rate_limit: null,
|
|
45
|
-
|
|
39
|
+
client_cert: null,
|
|
46
40
|
max_retries: null,
|
|
47
|
-
|
|
41
|
+
proxy_password: null,
|
|
42
|
+
ca_cert: null,
|
|
43
|
+
password: null,
|
|
44
|
+
connect_timeout: null,
|
|
48
45
|
client_key: null,
|
|
46
|
+
username: null,
|
|
47
|
+
download_concurrency: null,
|
|
49
48
|
sock_connect_timeout: null,
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
headers: null,
|
|
50
|
+
tls_validation: null,
|
|
51
|
+
pulp_labels: null,
|
|
52
|
+
url: null,
|
|
52
53
|
name: null,
|
|
53
|
-
|
|
54
|
-
total_timeout: null,
|
|
54
|
+
proxy_url: null,
|
|
55
55
|
metadata_only: null,
|
|
56
56
|
git_ref: null)
|
|
57
57
|
```
|
|
@@ -153,7 +153,6 @@ opts = {
|
|
|
153
153
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
154
154
|
ordering: ['ordering_example'], # Array<String> | Ordering
|
|
155
155
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
|
156
|
-
remote: 'remote_example', # String | Foreign Key referenced by HREF
|
|
157
156
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
158
157
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
159
158
|
}
|
|
@@ -181,7 +180,6 @@ Name | Type | Description | Notes
|
|
|
181
180
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
182
181
|
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
|
183
182
|
**pulp_label_select** | **String**| Filter labels by search string | [optional]
|
|
184
|
-
**remote** | [**String**](.md)| Foreign Key referenced by HREF | [optional]
|
|
185
183
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
186
184
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
187
185
|
|
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
|
+
|
|
@@ -25,9 +25,9 @@ module PulpAnsibleClient
|
|
|
25
25
|
# @param namespace [String] The namespace of the collection.
|
|
26
26
|
# @param version [String] The version of the collection.
|
|
27
27
|
# @param [Hash] opts the optional parameters
|
|
28
|
-
# @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
|
|
29
28
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
|
30
29
|
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
|
30
|
+
# @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
|
|
31
31
|
# @return [AsyncOperationResponse]
|
|
32
32
|
def create(name, namespace, version, opts = {})
|
|
33
33
|
data, _status_code, _headers = create_with_http_info(name, namespace, version, opts)
|
|
@@ -40,9 +40,9 @@ module PulpAnsibleClient
|
|
|
40
40
|
# @param namespace [String] The namespace of the collection.
|
|
41
41
|
# @param version [String] The version of the collection.
|
|
42
42
|
# @param [Hash] opts the optional parameters
|
|
43
|
-
# @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
|
|
44
43
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
|
45
44
|
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
|
45
|
+
# @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
|
|
46
46
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
47
47
|
def create_with_http_info(name, namespace, version, opts = {})
|
|
48
48
|
if @api_client.config.debugging
|
|
@@ -102,9 +102,9 @@ module PulpAnsibleClient
|
|
|
102
102
|
form_params['name'] = name
|
|
103
103
|
form_params['namespace'] = namespace
|
|
104
104
|
form_params['version'] = version
|
|
105
|
-
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
|
106
105
|
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
|
107
106
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
|
107
|
+
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
|
108
108
|
|
|
109
109
|
# http body (model)
|
|
110
110
|
post_body = opts[:body]
|
|
@@ -161,7 +161,6 @@ module PulpAnsibleClient
|
|
|
161
161
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
162
162
|
# @option opts [Array<String>] :ordering Ordering
|
|
163
163
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
164
|
-
# @option opts [String] :with_content Filter distributions based on the content served by them
|
|
165
164
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
166
165
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
167
166
|
# @return [PaginatedansibleAnsibleDistributionResponseList]
|
|
@@ -186,7 +185,6 @@ module PulpAnsibleClient
|
|
|
186
185
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
187
186
|
# @option opts [Array<String>] :ordering Ordering
|
|
188
187
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
189
|
-
# @option opts [String] :with_content Filter distributions based on the content served by them
|
|
190
188
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
191
189
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
192
190
|
# @return [Array<(PaginatedansibleAnsibleDistributionResponseList, Integer, Hash)>] PaginatedansibleAnsibleDistributionResponseList data, response status code and response headers
|
|
@@ -216,7 +214,6 @@ module PulpAnsibleClient
|
|
|
216
214
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
217
215
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
|
218
216
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
|
219
|
-
query_params[:'with_content'] = opts[:'with_content'] if !opts[:'with_content'].nil?
|
|
220
217
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
221
218
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
222
219
|
|
|
@@ -157,7 +157,6 @@ module PulpAnsibleClient
|
|
|
157
157
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
158
158
|
# @option opts [Array<String>] :ordering Ordering
|
|
159
159
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
160
|
-
# @option opts [String] :remote Foreign Key referenced by HREF
|
|
161
160
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
162
161
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
163
162
|
# @return [PaginatedansibleAnsibleRepositoryResponseList]
|
|
@@ -178,7 +177,6 @@ module PulpAnsibleClient
|
|
|
178
177
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
179
178
|
# @option opts [Array<String>] :ordering Ordering
|
|
180
179
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
181
|
-
# @option opts [String] :remote Foreign Key referenced by HREF
|
|
182
180
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
183
181
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
184
182
|
# @return [Array<(PaginatedansibleAnsibleRepositoryResponseList, Integer, Hash)>] PaginatedansibleAnsibleRepositoryResponseList data, response status code and response headers
|
|
@@ -204,7 +202,6 @@ module PulpAnsibleClient
|
|
|
204
202
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
205
203
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
|
206
204
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
|
207
|
-
query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
|
|
208
205
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
209
206
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
210
207
|
|
|
@@ -142,7 +142,7 @@ module PulpAnsibleClient
|
|
|
142
142
|
if @api_client.config.client_side_validation && ansible_ansible_repository_href.nil?
|
|
143
143
|
fail ArgumentError, "Missing the required parameter 'ansible_ansible_repository_href' when calling RepositoriesAnsibleVersionsApi.list"
|
|
144
144
|
end
|
|
145
|
-
allowable_values = ["-added_memberships", "-base_version", "-complete", "-counts", "-distribution", "-group_roles", "-
|
|
145
|
+
allowable_values = ["-added_memberships", "-base_version", "-complete", "-counts", "-distribution", "-group_roles", "-number", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-removed_memberships", "-repository", "-user_roles", "-versions", "added_memberships", "base_version", "complete", "counts", "distribution", "group_roles", "number", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "removed_memberships", "repository", "user_roles", "versions"]
|
|
146
146
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
147
147
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
148
148
|
end
|
|
@@ -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
|