pulp_ansible_client 0.15.2 → 0.15.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/AnsibleCollectionVersion.md +4 -4
- data/docs/AnsibleGitRemote.md +27 -27
- data/docs/AnsibleGitRemoteResponse.md +24 -24
- data/docs/ContentCollectionVersionsApi.md +4 -4
- data/docs/PatchedansibleGitRemote.md +27 -27
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +15 -15
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +251 -251
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +145 -145
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +242 -242
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_versions_api_spec.rb +2 -2
- data/spec/models/ansible_collection_version_spec.rb +2 -2
- data/spec/models/ansible_git_remote_response_spec.rb +17 -17
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- metadata +101 -101
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c57f769765776ed9ad376fb7bfaa8da7ee5dd5a06f51fa3a50d14bc5739a929b
|
4
|
+
data.tar.gz: 8937b00a32f97a39626187428acf7999bd13a33aabeeb77395f93df1d0c3cdb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7f0dc1790c0a649048444e05e0b26b1be2c62eb2bab5e5f538ac668442de790ead55f9ddf1c478b7fd1bbd24dca89cff6072ddec1009095bb8020666bca0aaf
|
7
|
+
data.tar.gz: 4cceb90f55c8d71c22921ef1fc6d611b1c50122058cb9ac17a1ca3c0e9c83f75c9e5604049b9477884a0cc6969d86b5ac25fd4b0c8c67cd3ef7910a523e50a23
|
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.15.
|
10
|
+
- Package version: 0.15.3
|
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.15.
|
27
|
+
gem install ./pulp_ansible_client-0.15.3.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_ansible_client-0.15.
|
30
|
+
(for development, run `gem install --dev ./pulp_ansible_client-0.15.3.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.15.
|
36
|
+
gem 'pulp_ansible_client', '~> 0.15.3'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -4,9 +4,9 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional]
|
8
|
-
**upload** | **String** | An uncommitted upload that may be turned into the artifact of the content unit. | [optional]
|
9
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]
|
9
|
+
**repository** | **String** | A URI of a repository the new content unit should be associated with. | [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(
|
19
|
+
instance = PulpAnsibleClient::AnsibleCollectionVersion.new(file: null,
|
20
20
|
upload: null,
|
21
|
-
|
21
|
+
repository: null,
|
22
22
|
name: null,
|
23
23
|
namespace: null,
|
24
24
|
version: null)
|
data/docs/AnsibleGitRemote.md
CHANGED
@@ -4,26 +4,26 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
|
8
7
|
**headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
|
9
|
-
**
|
10
|
-
**
|
11
|
-
**name** | **String** | A unique name for this remote. |
|
12
|
-
**proxy_username** | **String** | The username to authenticte to the proxy. | [optional]
|
13
|
-
**client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
|
14
|
-
**max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
|
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
|
+
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
15
10
|
**proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
|
11
|
+
**ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
|
16
12
|
**url** | **String** | The URL of an external content source. |
|
13
|
+
**client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
|
14
|
+
**rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
|
15
|
+
**proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
16
|
+
**proxy_username** | **String** | The username to authenticte to the proxy. | [optional]
|
17
17
|
**total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
18
|
+
**connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
19
|
+
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
18
20
|
**pulp_labels** | **Hash<String, String>** | | [optional]
|
19
|
-
**
|
21
|
+
**download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
|
22
|
+
**name** | **String** | A unique name for this remote. |
|
23
|
+
**max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
|
24
|
+
**client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
|
20
25
|
**sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
21
26
|
**password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
22
|
-
**client_cert** | **String** | A PEM encoded client certificate used for authentication. | [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
|
-
**rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
|
25
|
-
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
26
|
-
**ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [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
|
-
|
38
|
-
connect_timeout: null,
|
39
|
-
name: null,
|
40
|
-
proxy_username: null,
|
41
|
-
client_key: null,
|
42
|
-
max_retries: null,
|
35
|
+
instance = PulpAnsibleClient::AnsibleGitRemote.new(headers: null,
|
36
|
+
sock_read_timeout: null,
|
37
|
+
tls_validation: null,
|
43
38
|
proxy_url: null,
|
39
|
+
ca_cert: null,
|
44
40
|
url: null,
|
41
|
+
client_cert: null,
|
42
|
+
rate_limit: null,
|
43
|
+
proxy_password: null,
|
44
|
+
proxy_username: null,
|
45
45
|
total_timeout: null,
|
46
|
+
connect_timeout: null,
|
47
|
+
username: null,
|
46
48
|
pulp_labels: null,
|
47
|
-
|
49
|
+
download_concurrency: null,
|
50
|
+
name: null,
|
51
|
+
max_retries: null,
|
52
|
+
client_key: null,
|
48
53
|
sock_connect_timeout: null,
|
49
54
|
password: null,
|
50
|
-
client_cert: null,
|
51
|
-
sock_read_timeout: null,
|
52
|
-
rate_limit: null,
|
53
|
-
tls_validation: null,
|
54
|
-
ca_cert: null,
|
55
55
|
metadata_only: null,
|
56
56
|
git_ref: null)
|
57
57
|
```
|
@@ -4,25 +4,25 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**
|
7
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
8
8
|
**headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
|
9
|
+
**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]
|
10
|
+
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
9
11
|
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
10
|
-
**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]
|
11
|
-
**name** | **String** | A unique name for this remote. |
|
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]
|
13
12
|
**proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
|
13
|
+
**ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
|
14
14
|
**url** | **String** | The URL of an external content source. |
|
15
|
+
**client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
|
16
|
+
**rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
|
15
17
|
**total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
18
|
+
**connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
16
19
|
**pulp_labels** | **Hash<String, String>** | | [optional]
|
17
|
-
**
|
18
|
-
**pulp_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional] [readonly]
|
19
|
-
**client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
|
20
|
+
**download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
|
20
21
|
**hidden_fields** | [**Array<AnsibleCollectionRemoteResponseHiddenFields>**](AnsibleCollectionRemoteResponseHiddenFields.md) | List of hidden (write only) fields | [optional] [readonly]
|
21
|
-
**
|
22
|
-
**
|
23
|
-
**
|
24
|
-
**
|
25
|
-
**ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
|
22
|
+
**name** | **String** | A unique name for this remote. |
|
23
|
+
**pulp_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional] [readonly]
|
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
|
+
**sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
26
26
|
**metadata_only** | **Boolean** | If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL. | [optional]
|
27
27
|
**git_ref** | **String** | A git ref. e.g.: branch, tag, or commit sha. | [optional]
|
28
28
|
|
@@ -31,25 +31,25 @@ Name | Type | Description | Notes
|
|
31
31
|
```ruby
|
32
32
|
require 'PulpAnsibleClient'
|
33
33
|
|
34
|
-
instance = PulpAnsibleClient::AnsibleGitRemoteResponse.new(
|
34
|
+
instance = PulpAnsibleClient::AnsibleGitRemoteResponse.new(pulp_href: null,
|
35
35
|
headers: null,
|
36
|
+
sock_read_timeout: null,
|
37
|
+
tls_validation: null,
|
36
38
|
pulp_created: null,
|
37
|
-
connect_timeout: null,
|
38
|
-
name: null,
|
39
|
-
max_retries: null,
|
40
39
|
proxy_url: null,
|
40
|
+
ca_cert: null,
|
41
41
|
url: null,
|
42
|
+
client_cert: null,
|
43
|
+
rate_limit: null,
|
42
44
|
total_timeout: null,
|
45
|
+
connect_timeout: null,
|
43
46
|
pulp_labels: null,
|
44
|
-
|
45
|
-
pulp_last_updated: null,
|
46
|
-
client_cert: null,
|
47
|
+
download_concurrency: null,
|
47
48
|
hidden_fields: null,
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
ca_cert: null,
|
49
|
+
name: null,
|
50
|
+
pulp_last_updated: null,
|
51
|
+
max_retries: null,
|
52
|
+
sock_connect_timeout: null,
|
53
53
|
metadata_only: null,
|
54
54
|
git_ref: null)
|
55
55
|
```
|
@@ -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
|
-
|
38
|
+
file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the artifact of the content unit.
|
39
39
|
upload: 'upload_example', # String | An uncommitted upload that may be turned into the artifact of the content unit.
|
40
|
-
|
40
|
+
repository: 'repository_example' # String | A URI of a repository the new content unit should be associated with.
|
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
|
-
**repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
|
61
|
-
**upload** | **String**| An uncommitted upload that may be turned into the artifact of the content unit. | [optional]
|
62
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]
|
62
|
+
**repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
|
63
63
|
|
64
64
|
### Return type
|
65
65
|
|
@@ -4,26 +4,26 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
|
8
7
|
**headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
|
9
|
-
**
|
10
|
-
**
|
11
|
-
**name** | **String** | A unique name for this remote. | [optional]
|
12
|
-
**proxy_username** | **String** | The username to authenticte to the proxy. | [optional]
|
13
|
-
**client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
|
14
|
-
**max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
|
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
|
+
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
15
10
|
**proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
|
11
|
+
**ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
|
16
12
|
**url** | **String** | The URL of an external content source. | [optional]
|
13
|
+
**client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
|
14
|
+
**rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
|
15
|
+
**proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
16
|
+
**proxy_username** | **String** | The username to authenticte to the proxy. | [optional]
|
17
17
|
**total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
18
|
+
**connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
19
|
+
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
18
20
|
**pulp_labels** | **Hash<String, String>** | | [optional]
|
19
|
-
**
|
21
|
+
**download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
|
22
|
+
**name** | **String** | A unique name for this remote. | [optional]
|
23
|
+
**max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
|
24
|
+
**client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
|
20
25
|
**sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
21
26
|
**password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
22
|
-
**client_cert** | **String** | A PEM encoded client certificate used for authentication. | [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
|
-
**rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
|
25
|
-
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
26
|
-
**ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [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
|
-
|
38
|
-
connect_timeout: null,
|
39
|
-
name: null,
|
40
|
-
proxy_username: null,
|
41
|
-
client_key: null,
|
42
|
-
max_retries: null,
|
35
|
+
instance = PulpAnsibleClient::PatchedansibleGitRemote.new(headers: null,
|
36
|
+
sock_read_timeout: null,
|
37
|
+
tls_validation: null,
|
43
38
|
proxy_url: null,
|
39
|
+
ca_cert: null,
|
44
40
|
url: null,
|
41
|
+
client_cert: null,
|
42
|
+
rate_limit: null,
|
43
|
+
proxy_password: null,
|
44
|
+
proxy_username: null,
|
45
45
|
total_timeout: null,
|
46
|
+
connect_timeout: null,
|
47
|
+
username: null,
|
46
48
|
pulp_labels: null,
|
47
|
-
|
49
|
+
download_concurrency: null,
|
50
|
+
name: null,
|
51
|
+
max_retries: null,
|
52
|
+
client_key: null,
|
48
53
|
sock_connect_timeout: null,
|
49
54
|
password: null,
|
50
|
-
client_cert: null,
|
51
|
-
sock_read_timeout: null,
|
52
|
-
rate_limit: null,
|
53
|
-
tls_validation: null,
|
54
|
-
ca_cert: null,
|
55
55
|
metadata_only: null,
|
56
56
|
git_ref: null)
|
57
57
|
```
|
@@ -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] :repository A URI of a repository the new content unit should be associated with.
|
29
|
-
# @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
|
30
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.
|
30
|
+
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
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] :repository A URI of a repository the new content unit should be associated with.
|
44
|
-
# @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
|
45
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.
|
45
|
+
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
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['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
106
|
-
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
107
105
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
106
|
+
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
107
|
+
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
108
108
|
|
109
109
|
# http body (model)
|
110
110
|
post_body = opts[:body]
|
@@ -15,14 +15,14 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for CollectionVersion Content.
|
17
17
|
class AnsibleCollectionVersion
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# An uploaded file that may be turned into the artifact of the content unit.
|
19
|
+
attr_accessor :file
|
20
20
|
|
21
21
|
# An uncommitted upload that may be turned into the artifact of the content unit.
|
22
22
|
attr_accessor :upload
|
23
23
|
|
24
|
-
#
|
25
|
-
attr_accessor :
|
24
|
+
# A URI of a repository the new content unit should be associated with.
|
25
|
+
attr_accessor :repository
|
26
26
|
|
27
27
|
# The name of the collection.
|
28
28
|
attr_accessor :name
|
@@ -36,9 +36,9 @@ module PulpAnsibleClient
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
37
|
def self.attribute_map
|
38
38
|
{
|
39
|
-
:'repository' => :'repository',
|
40
|
-
:'upload' => :'upload',
|
41
39
|
:'file' => :'file',
|
40
|
+
:'upload' => :'upload',
|
41
|
+
:'repository' => :'repository',
|
42
42
|
:'name' => :'name',
|
43
43
|
:'namespace' => :'namespace',
|
44
44
|
:'version' => :'version'
|
@@ -48,9 +48,9 @@ module PulpAnsibleClient
|
|
48
48
|
# Attribute type mapping.
|
49
49
|
def self.openapi_types
|
50
50
|
{
|
51
|
-
:'repository' => :'String',
|
52
|
-
:'upload' => :'String',
|
53
51
|
:'file' => :'File',
|
52
|
+
:'upload' => :'String',
|
53
|
+
:'repository' => :'String',
|
54
54
|
:'name' => :'String',
|
55
55
|
:'namespace' => :'String',
|
56
56
|
:'version' => :'String'
|
@@ -78,16 +78,16 @@ module PulpAnsibleClient
|
|
78
78
|
h[k.to_sym] = v
|
79
79
|
}
|
80
80
|
|
81
|
-
if attributes.key?(:'
|
82
|
-
self.
|
81
|
+
if attributes.key?(:'file')
|
82
|
+
self.file = attributes[:'file']
|
83
83
|
end
|
84
84
|
|
85
85
|
if attributes.key?(:'upload')
|
86
86
|
self.upload = attributes[:'upload']
|
87
87
|
end
|
88
88
|
|
89
|
-
if attributes.key?(:'
|
90
|
-
self.
|
89
|
+
if attributes.key?(:'repository')
|
90
|
+
self.repository = attributes[:'repository']
|
91
91
|
end
|
92
92
|
|
93
93
|
if attributes.key?(:'name')
|
@@ -220,9 +220,9 @@ module PulpAnsibleClient
|
|
220
220
|
def ==(o)
|
221
221
|
return true if self.equal?(o)
|
222
222
|
self.class == o.class &&
|
223
|
-
repository == o.repository &&
|
224
|
-
upload == o.upload &&
|
225
223
|
file == o.file &&
|
224
|
+
upload == o.upload &&
|
225
|
+
repository == o.repository &&
|
226
226
|
name == o.name &&
|
227
227
|
namespace == o.namespace &&
|
228
228
|
version == o.version
|
@@ -237,7 +237,7 @@ module PulpAnsibleClient
|
|
237
237
|
# Calculates hash code according to all attributes.
|
238
238
|
# @return [Integer] Hash code
|
239
239
|
def hash
|
240
|
-
[
|
240
|
+
[file, upload, repository, name, namespace, version].hash
|
241
241
|
end
|
242
242
|
|
243
243
|
# Builds the object from hash
|