pulp_ansible_client 0.20.2 → 0.20.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d7c4cd05811b128d33de563673f5a3e860b1b19a1c4bc4293056fd686a3cd19f
4
- data.tar.gz: 95f7254920be29162b810c134a9b8396851912e82934f1d4ce5b7c07008306c6
3
+ metadata.gz: 76affb32fa04e132a966f1ece6001c00e171e8c7f805f158bab381ed889cbc4f
4
+ data.tar.gz: 0b64f4b5b19cdacab621379099a999e0ca9b136eebf1d4d5dd80b84c6df9a733
5
5
  SHA512:
6
- metadata.gz: ed7f4ebb85c449005d1fd27c708c328b2e86fbcf1308d03767bc85f9dbd26cbf883b473320cebfd3ca4686eb9ddbca69546565f82cade02efaa7cc303033176a
7
- data.tar.gz: 90d607bc428155b04331e239cb18c6b5c4b3e9cebb78e336153ad7dd783a40d856db1456cb553a6b77ce269523cd7c5c712b3caab4cf417c67f47c39175a2cf2
6
+ metadata.gz: ff2531902ecdca8e636fb25445a7b3b3f6ef1e29ff2f95ffc77d2a03894d3adec4e03a5b0d4a03b92f7a9b3302d47f68dc1aa03c98570c4eb7a09c5f8e5e457e
7
+ data.tar.gz: ee215a7a4e6213fc5f8adff48fe1e426ad031d4258e6a03568ce939a48f4d5ebdd90178545bd1f6732c3c5f001a9bac9cd1ec8898b994c3e583e91f1a939eec5
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.20.2
10
+ - Package version: 0.20.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.20.2.gem
27
+ gem install ./pulp_ansible_client-0.20.3.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_ansible_client-0.20.2.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_ansible_client-0.20.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.20.2'
36
+ gem 'pulp_ansible_client', '~> 0.20.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
+ **artifact** | **String** | Artifact file representing the physical content | [optional]
7
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
- **artifact** | **String** | Artifact file representing the physical content | [optional]
10
10
  **file** | **File** | An uploaded file that may be turned into the artifact of the content unit. | [optional]
11
11
  **expected_name** | **String** | The name of the collection. | [optional]
12
12
  **expected_namespace** | **String** | The namespace of the collection. | [optional]
@@ -17,9 +17,9 @@ Name | Type | Description | Notes
17
17
  ```ruby
18
18
  require 'PulpAnsibleClient'
19
19
 
20
- instance = PulpAnsibleClient::AnsibleCollectionVersion.new(upload: null,
20
+ instance = PulpAnsibleClient::AnsibleCollectionVersion.new(artifact: null,
21
+ upload: null,
21
22
  repository: null,
22
- artifact: null,
23
23
  file: null,
24
24
  expected_name: null,
25
25
  expected_namespace: null,
@@ -4,26 +4,26 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional]
8
- **proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional]
9
7
  **client_key** | **String** | A PEM encoded private key used for authentication. | [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
+ **url** | **String** | The URL of an external content source. |
10
+ **rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
11
+ **proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional]
10
12
  **client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
11
13
  **headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
12
- **proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
13
- **rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
14
- **username** | **String** | The username to be used for authentication when syncing. | [optional]
15
14
  **proxy_username** | **String** | The username to authenticte to the proxy. | [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
- **name** | **String** | A unique name for this remote. |
18
- **url** | **String** | The URL of an external content source. |
19
- **ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
20
15
  **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
16
+ **proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
21
17
  **tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
18
+ **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]
19
+ **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
22
20
  **pulp_labels** | **Hash<String, String>** | | [optional]
21
+ **name** | **String** | A unique name for this remote. |
23
22
  **connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
24
- **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
25
23
  **download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
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]
24
+ **ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
25
+ **password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional]
26
+ **username** | **String** | The username to be used for authentication when syncing. | [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(password: null,
35
+ instance = PulpAnsibleClient::AnsibleGitRemote.new(client_key: null,
36
+ max_retries: null,
37
+ url: null,
38
+ rate_limit: null,
36
39
  proxy_password: null,
37
- client_key: null,
38
40
  client_cert: null,
39
41
  headers: null,
40
- proxy_url: null,
41
- rate_limit: null,
42
- username: null,
43
42
  proxy_username: null,
44
- max_retries: null,
45
- name: null,
46
- url: null,
47
- ca_cert: null,
48
43
  sock_read_timeout: null,
44
+ proxy_url: null,
49
45
  tls_validation: null,
46
+ total_timeout: null,
47
+ sock_connect_timeout: null,
50
48
  pulp_labels: null,
49
+ name: null,
51
50
  connect_timeout: null,
52
- sock_connect_timeout: null,
53
51
  download_concurrency: null,
54
- total_timeout: null,
52
+ ca_cert: null,
53
+ password: null,
54
+ username: 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
+ **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
+ **url** | **String** | The URL of an external content source. |
7
9
  **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
10
+ **rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
11
+ **pulp_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional] [readonly]
8
12
  **pulp_href** | **String** | | [optional] [readonly]
9
13
  **client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
10
14
  **headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
11
- **proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
12
- **pulp_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional] [readonly]
13
- **rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
14
- **hidden_fields** | [**Array<AnsibleCollectionRemoteResponseHiddenFields>**](AnsibleCollectionRemoteResponseHiddenFields.md) | List of hidden (write only) fields | [optional] [readonly]
15
- **max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
16
- **name** | **String** | A unique name for this remote. |
17
- **url** | **String** | The URL of an external content source. |
18
- **ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
19
15
  **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
16
+ **proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
20
17
  **tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
18
+ **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]
19
+ **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
21
20
  **pulp_labels** | **Hash<String, String>** | | [optional]
21
+ **name** | **String** | A unique name for this remote. |
22
22
  **connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
23
- **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
24
23
  **download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
25
- **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]
24
+ **ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
25
+ **hidden_fields** | [**Array<AnsibleCollectionRemoteResponseHiddenFields>**](AnsibleCollectionRemoteResponseHiddenFields.md) | List of hidden (write only) fields | [optional] [readonly]
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(pulp_created: null,
34
+ instance = PulpAnsibleClient::AnsibleGitRemoteResponse.new(max_retries: null,
35
+ url: null,
36
+ pulp_created: null,
37
+ rate_limit: null,
38
+ pulp_last_updated: null,
35
39
  pulp_href: null,
36
40
  client_cert: null,
37
41
  headers: null,
38
- proxy_url: null,
39
- pulp_last_updated: null,
40
- rate_limit: null,
41
- hidden_fields: null,
42
- max_retries: null,
43
- name: null,
44
- url: null,
45
- ca_cert: null,
46
42
  sock_read_timeout: null,
43
+ proxy_url: null,
47
44
  tls_validation: null,
45
+ total_timeout: null,
46
+ sock_connect_timeout: null,
48
47
  pulp_labels: null,
48
+ name: null,
49
49
  connect_timeout: null,
50
- sock_connect_timeout: null,
51
50
  download_concurrency: null,
52
- total_timeout: null,
51
+ ca_cert: null,
52
+ hidden_fields: null,
53
53
  metadata_only: null,
54
54
  git_ref: null)
55
55
  ```
@@ -5,8 +5,8 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
8
- **pulp_href** | **String** | | [optional] [readonly]
9
8
  **artifact** | **String** | Artifact file representing the physical content |
9
+ **pulp_href** | **String** | | [optional] [readonly]
10
10
  **version** | **String** | |
11
11
  **name** | **String** | |
12
12
  **namespace** | **String** | |
@@ -17,8 +17,8 @@ Name | Type | Description | Notes
17
17
  require 'PulpAnsibleClient'
18
18
 
19
19
  instance = PulpAnsibleClient::AnsibleRoleResponse.new(pulp_created: null,
20
- pulp_href: null,
21
20
  artifact: null,
21
+ pulp_href: null,
22
22
  version: null,
23
23
  name: null,
24
24
  namespace: null)
@@ -32,9 +32,9 @@ end
32
32
 
33
33
  api_instance = PulpAnsibleClient::ContentCollectionVersionsApi.new
34
34
  opts = {
35
+ artifact: 'artifact_example', # String | Artifact file representing the physical content
35
36
  upload: 'upload_example', # String | An uncommitted upload that may be turned into the artifact of the content unit.
36
37
  repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
37
- artifact: 'artifact_example', # String | Artifact file representing the physical content
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
  expected_name: 'expected_name_example', # String | The name of the collection.
40
40
  expected_namespace: 'expected_namespace_example', # String | The namespace of the collection.
@@ -55,9 +55,9 @@ end
55
55
 
56
56
  Name | Type | Description | Notes
57
57
  ------------- | ------------- | ------------- | -------------
58
+ **artifact** | **String**| Artifact file representing the physical content | [optional]
58
59
  **upload** | **String**| An uncommitted upload that may be turned into the artifact of the content unit. | [optional]
59
60
  **repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
60
- **artifact** | **String**| Artifact file representing the physical content | [optional]
61
61
  **file** | **File**| An uploaded file that may be turned into the artifact of the content unit. | [optional]
62
62
  **expected_name** | **String**| The name of the collection. | [optional]
63
63
  **expected_namespace** | **String**| The namespace of the collection. | [optional]
@@ -4,26 +4,26 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional]
8
- **proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional]
9
7
  **client_key** | **String** | A PEM encoded private key used for authentication. | [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
+ **url** | **String** | The URL of an external content source. | [optional]
10
+ **rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
11
+ **proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional]
10
12
  **client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
11
13
  **headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
12
- **proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
13
- **rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
14
- **username** | **String** | The username to be used for authentication when syncing. | [optional]
15
14
  **proxy_username** | **String** | The username to authenticte to the proxy. | [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
- **name** | **String** | A unique name for this remote. | [optional]
18
- **url** | **String** | The URL of an external content source. | [optional]
19
- **ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
20
15
  **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
16
+ **proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
21
17
  **tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
18
+ **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]
19
+ **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
22
20
  **pulp_labels** | **Hash<String, String>** | | [optional]
21
+ **name** | **String** | A unique name for this remote. | [optional]
23
22
  **connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
24
- **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
25
23
  **download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
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]
24
+ **ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
25
+ **password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional]
26
+ **username** | **String** | The username to be used for authentication when syncing. | [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(password: null,
35
+ instance = PulpAnsibleClient::PatchedansibleGitRemote.new(client_key: null,
36
+ max_retries: null,
37
+ url: null,
38
+ rate_limit: null,
36
39
  proxy_password: null,
37
- client_key: null,
38
40
  client_cert: null,
39
41
  headers: null,
40
- proxy_url: null,
41
- rate_limit: null,
42
- username: null,
43
42
  proxy_username: null,
44
- max_retries: null,
45
- name: null,
46
- url: null,
47
- ca_cert: null,
48
43
  sock_read_timeout: null,
44
+ proxy_url: null,
49
45
  tls_validation: null,
46
+ total_timeout: null,
47
+ sock_connect_timeout: null,
50
48
  pulp_labels: null,
49
+ name: null,
51
50
  connect_timeout: null,
52
- sock_connect_timeout: null,
53
51
  download_concurrency: null,
54
- total_timeout: null,
52
+ ca_cert: null,
53
+ password: null,
54
+ username: null,
55
55
  metadata_only: null,
56
56
  git_ref: null)
57
57
  ```
@@ -22,9 +22,9 @@ module PulpAnsibleClient
22
22
  # Create a collection version
23
23
  # Trigger an asynchronous task to create content,optionally create new repository version.
24
24
  # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :artifact Artifact file representing the physical content
25
26
  # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
26
27
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
27
- # @option opts [String] :artifact Artifact file representing the physical content
28
28
  # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
29
29
  # @option opts [String] :expected_name The name of the collection.
30
30
  # @option opts [String] :expected_namespace The namespace of the collection.
@@ -38,9 +38,9 @@ module PulpAnsibleClient
38
38
  # Create a collection version
39
39
  # Trigger an asynchronous task to create content,optionally create new repository version.
40
40
  # @param [Hash] opts the optional parameters
41
+ # @option opts [String] :artifact Artifact file representing the physical content
41
42
  # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
42
43
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
43
- # @option opts [String] :artifact Artifact file representing the physical content
44
44
  # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
45
45
  # @option opts [String] :expected_name The name of the collection.
46
46
  # @option opts [String] :expected_namespace The namespace of the collection.
@@ -89,9 +89,9 @@ module PulpAnsibleClient
89
89
 
90
90
  # form parameters
91
91
  form_params = opts[:form_params] || {}
92
+ form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
92
93
  form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
93
94
  form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
94
- form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
95
95
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
96
96
  form_params['expected_name'] = opts[:'expected_name'] if !opts[:'expected_name'].nil?
97
97
  form_params['expected_namespace'] = opts[:'expected_namespace'] if !opts[:'expected_namespace'].nil?
@@ -15,15 +15,15 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for CollectionVersion Content.
17
17
  class AnsibleCollectionVersion
18
+ # Artifact file representing the physical content
19
+ attr_accessor :artifact
20
+
18
21
  # An uncommitted upload that may be turned into the artifact of the content unit.
19
22
  attr_accessor :upload
20
23
 
21
24
  # A URI of a repository the new content unit should be associated with.
22
25
  attr_accessor :repository
23
26
 
24
- # Artifact file representing the physical content
25
- attr_accessor :artifact
26
-
27
27
  # An uploaded file that may be turned into the artifact of the content unit.
28
28
  attr_accessor :file
29
29
 
@@ -39,9 +39,9 @@ module PulpAnsibleClient
39
39
  # Attribute mapping from ruby-style variable name to JSON key.
40
40
  def self.attribute_map
41
41
  {
42
+ :'artifact' => :'artifact',
42
43
  :'upload' => :'upload',
43
44
  :'repository' => :'repository',
44
- :'artifact' => :'artifact',
45
45
  :'file' => :'file',
46
46
  :'expected_name' => :'expected_name',
47
47
  :'expected_namespace' => :'expected_namespace',
@@ -52,9 +52,9 @@ module PulpAnsibleClient
52
52
  # Attribute type mapping.
53
53
  def self.openapi_types
54
54
  {
55
+ :'artifact' => :'String',
55
56
  :'upload' => :'String',
56
57
  :'repository' => :'String',
57
- :'artifact' => :'String',
58
58
  :'file' => :'File',
59
59
  :'expected_name' => :'String',
60
60
  :'expected_namespace' => :'String',
@@ -83,6 +83,10 @@ module PulpAnsibleClient
83
83
  h[k.to_sym] = v
84
84
  }
85
85
 
86
+ if attributes.key?(:'artifact')
87
+ self.artifact = attributes[:'artifact']
88
+ end
89
+
86
90
  if attributes.key?(:'upload')
87
91
  self.upload = attributes[:'upload']
88
92
  end
@@ -91,10 +95,6 @@ module PulpAnsibleClient
91
95
  self.repository = attributes[:'repository']
92
96
  end
93
97
 
94
- if attributes.key?(:'artifact')
95
- self.artifact = attributes[:'artifact']
96
- end
97
-
98
98
  if attributes.key?(:'file')
99
99
  self.file = attributes[:'file']
100
100
  end
@@ -202,9 +202,9 @@ module PulpAnsibleClient
202
202
  def ==(o)
203
203
  return true if self.equal?(o)
204
204
  self.class == o.class &&
205
+ artifact == o.artifact &&
205
206
  upload == o.upload &&
206
207
  repository == o.repository &&
207
- artifact == o.artifact &&
208
208
  file == o.file &&
209
209
  expected_name == o.expected_name &&
210
210
  expected_namespace == o.expected_namespace &&
@@ -220,7 +220,7 @@ module PulpAnsibleClient
220
220
  # Calculates hash code according to all attributes.
221
221
  # @return [Integer] Hash code
222
222
  def hash
223
- [upload, repository, artifact, file, expected_name, expected_namespace, expected_version].hash
223
+ [artifact, upload, repository, file, expected_name, expected_namespace, expected_version].hash
224
224
  end
225
225
 
226
226
  # Builds the object from hash