pulp_ansible_client 0.7.0 → 0.7.1

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: 1fe57dff708b85b3e6a11b5d139c02f37cc2e4f74a674ccb2ea6feaed7b6d020
4
- data.tar.gz: 1ec7fb95119056518e0f199bd36b55f4f865785866a0334143b214447d44b932
3
+ metadata.gz: 6687acc213176f33aec13ff3716d66ceacba511210d6e624cb79d1aeb95bb20e
4
+ data.tar.gz: 3227a8c50eaa53b37c2765846d3ea0ac46f7a5994dd1bf95b869cdf4dd288bb6
5
5
  SHA512:
6
- metadata.gz: 783ab9797912e9291bf70ea0322410c38b62c8144cea976a821bca7a41084f92fb6249f8b6557cd89619d4ba5bb2edaa7a6dfd0a1e38c0cf407a6e446aa973f9
7
- data.tar.gz: 9318b9f75e44d0012a10293d23f652e29bda12cee17d3705c3870e194cefc1388d118911ebe8b4a0d248fd3edde388430df74f0bd6c7d3c47e016bd60ceab100
6
+ metadata.gz: 95337a4155bf2a397a85920addd6c4b669acf62650108f99eff34a5990f80cd3e642b51fbcf84bd5b842650837458d4420eea675d3d713c4f96e57752ccbc402
7
+ data.tar.gz: 4f5fed5daecd8824f9411de312c8f19d28d7d8460cc96e93c686933b2b36a68f95fdb4087c3a873c606e4a30d717b537a15a2612dcfe86ca9a1d40851c0d32be
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.7.0
10
+ - Package version: 0.7.1
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.7.0.gem
27
+ gem install ./pulp_ansible_client-0.7.1.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_ansible_client-0.7.0.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_ansible_client-0.7.1.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.7.0'
36
+ gem 'pulp_ansible_client', '~> 0.7.1'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -214,6 +214,7 @@ Class | Method | HTTP request | Description
214
214
  - [PulpAnsibleClient::RepositoryVersion](docs/RepositoryVersion.md)
215
215
  - [PulpAnsibleClient::RepositoryVersionResponse](docs/RepositoryVersionResponse.md)
216
216
  - [PulpAnsibleClient::TagResponse](docs/TagResponse.md)
217
+ - [PulpAnsibleClient::UnpaginatedCollectionVersionResponse](docs/UnpaginatedCollectionVersionResponse.md)
217
218
 
218
219
 
219
220
  ## Documentation for Authorization
@@ -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
  **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(pulp_href: null,
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,
@@ -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(pulp_href: null,
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)
@@ -8,8 +8,6 @@ Name | Type | Description | Notes
8
8
  **href** | **String** | | [optional] [readonly]
9
9
  **created_at** | **DateTime** | |
10
10
  **updated_at** | **DateTime** | |
11
- **manifest** | [**Object**](.md) | A JSON field holding MANIFEST.json data. |
12
- **files** | [**Object**](.md) | A JSON field holding FILES.json data. |
13
11
  **requires_ansible** | **String** | | [optional]
14
12
  **artifact** | [**ArtifactRefResponse**](ArtifactRefResponse.md) | | [optional] [readonly]
15
13
  **collection** | [**CollectionRefResponse**](CollectionRefResponse.md) | | [optional] [readonly]
@@ -17,6 +15,8 @@ Name | Type | Description | Notes
17
15
  **name** | **String** | | [optional] [readonly]
18
16
  **namespace** | [**CollectionNamespaceResponse**](CollectionNamespaceResponse.md) | | [optional] [readonly]
19
17
  **metadata** | [**CollectionMetadataResponse**](CollectionMetadataResponse.md) | | [optional] [readonly]
18
+ **manifest** | [**Object**](.md) | A JSON field holding MANIFEST.json data. | [optional] [readonly]
19
+ **files** | [**Object**](.md) | A JSON field holding FILES.json data. | [optional] [readonly]
20
20
 
21
21
  ## Code Sample
22
22
 
@@ -27,15 +27,15 @@ instance = PulpAnsibleClient::CollectionVersionResponse.new(version: null,
27
27
  href: null,
28
28
  created_at: null,
29
29
  updated_at: null,
30
- manifest: null,
31
- files: null,
32
30
  requires_ansible: null,
33
31
  artifact: null,
34
32
  collection: null,
35
33
  download_url: null,
36
34
  name: null,
37
35
  namespace: null,
38
- metadata: null)
36
+ metadata: null,
37
+ manifest: null,
38
+ files: null)
39
39
  ```
40
40
 
41
41
 
@@ -11,7 +11,7 @@ Method | HTTP request | Description
11
11
 
12
12
  ## list
13
13
 
14
- > Array<CollectionVersionResponse> list(path, opts)
14
+ > Array<UnpaginatedCollectionVersionResponse> list(path, opts)
15
15
 
16
16
 
17
17
 
@@ -67,7 +67,7 @@ Name | Type | Description | Notes
67
67
 
68
68
  ### Return type
69
69
 
70
- [**Array<CollectionVersionResponse>**](CollectionVersionResponse.md)
70
+ [**Array<UnpaginatedCollectionVersionResponse>**](UnpaginatedCollectionVersionResponse.md)
71
71
 
72
72
  ### Authorization
73
73
 
@@ -0,0 +1,37 @@
1
+ # PulpAnsibleClient::UnpaginatedCollectionVersionResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **version** | **String** | | [optional] [readonly]
8
+ **href** | **String** | | [optional] [readonly]
9
+ **created_at** | **DateTime** | |
10
+ **updated_at** | **DateTime** | |
11
+ **requires_ansible** | **String** | | [optional]
12
+ **artifact** | [**ArtifactRefResponse**](ArtifactRefResponse.md) | | [optional] [readonly]
13
+ **collection** | [**CollectionRefResponse**](CollectionRefResponse.md) | | [optional] [readonly]
14
+ **download_url** | **String** | | [optional] [readonly]
15
+ **name** | **String** | | [optional] [readonly]
16
+ **namespace** | [**CollectionNamespaceResponse**](CollectionNamespaceResponse.md) | | [optional] [readonly]
17
+ **metadata** | [**CollectionMetadataResponse**](CollectionMetadataResponse.md) | | [optional] [readonly]
18
+
19
+ ## Code Sample
20
+
21
+ ```ruby
22
+ require 'PulpAnsibleClient'
23
+
24
+ instance = PulpAnsibleClient::UnpaginatedCollectionVersionResponse.new(version: null,
25
+ href: null,
26
+ created_at: null,
27
+ updated_at: null,
28
+ requires_ansible: null,
29
+ artifact: null,
30
+ collection: null,
31
+ download_url: null,
32
+ name: null,
33
+ namespace: null,
34
+ metadata: null)
35
+ ```
36
+
37
+
@@ -77,6 +77,7 @@ require 'pulp_ansible_client/models/repository_add_remove_content'
77
77
  require 'pulp_ansible_client/models/repository_version'
78
78
  require 'pulp_ansible_client/models/repository_version_response'
79
79
  require 'pulp_ansible_client/models/tag_response'
80
+ require 'pulp_ansible_client/models/unpaginated_collection_version_response'
80
81
 
81
82
  # APIs
82
83
  require 'pulp_ansible_client/api/ansible_collections_api'
@@ -33,7 +33,7 @@ module PulpAnsibleClient
33
33
  # @option opts [String] :version version
34
34
  # @option opts [String] :fields A list of fields to include in the response.
35
35
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
36
- # @return [Array<CollectionVersionResponse>]
36
+ # @return [Array<UnpaginatedCollectionVersionResponse>]
37
37
  def list(path, opts = {})
38
38
  data, _status_code, _headers = list_with_http_info(path, opts)
39
39
  data
@@ -53,7 +53,7 @@ module PulpAnsibleClient
53
53
  # @option opts [String] :version version
54
54
  # @option opts [String] :fields A list of fields to include in the response.
55
55
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
56
- # @return [Array<(Array<CollectionVersionResponse>, Integer, Hash)>] Array<CollectionVersionResponse> data, response status code and response headers
56
+ # @return [Array<(Array<UnpaginatedCollectionVersionResponse>, Integer, Hash)>] Array<UnpaginatedCollectionVersionResponse> data, response status code and response headers
57
57
  def list_with_http_info(path, opts = {})
58
58
  if @api_client.config.debugging
59
59
  @api_client.config.logger.debug 'Calling API: PulpAnsibleGalaxyApiV3AllApi.list ...'
@@ -91,7 +91,7 @@ module PulpAnsibleClient
91
91
  post_body = opts[:body]
92
92
 
93
93
  # return_type
94
- return_type = opts[:return_type] || 'Array<CollectionVersionResponse>'
94
+ return_type = opts[:return_type] || 'Array<UnpaginatedCollectionVersionResponse>'
95
95
 
96
96
  # auth_names
97
97
  auth_names = opts[:auth_names] || []
@@ -15,14 +15,14 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for CollectionVersion Content.
17
17
  class AnsibleCollectionVersionResponse
18
+ # Timestamp of creation.
19
+ attr_accessor :pulp_created
20
+
18
21
  attr_accessor :pulp_href
19
22
 
20
23
  # Artifact file representing the physical content
21
24
  attr_accessor :artifact
22
25
 
23
- # Timestamp of creation.
24
- attr_accessor :pulp_created
25
-
26
26
  # The MD5 checksum if available.
27
27
  attr_accessor :md5
28
28
 
@@ -97,9 +97,9 @@ module PulpAnsibleClient
97
97
  # Attribute mapping from ruby-style variable name to JSON key.
98
98
  def self.attribute_map
99
99
  {
100
+ :'pulp_created' => :'pulp_created',
100
101
  :'pulp_href' => :'pulp_href',
101
102
  :'artifact' => :'artifact',
102
- :'pulp_created' => :'pulp_created',
103
103
  :'md5' => :'md5',
104
104
  :'sha1' => :'sha1',
105
105
  :'sha224' => :'sha224',
@@ -130,9 +130,9 @@ module PulpAnsibleClient
130
130
  # Attribute type mapping.
131
131
  def self.openapi_types
132
132
  {
133
+ :'pulp_created' => :'DateTime',
133
134
  :'pulp_href' => :'String',
134
135
  :'artifact' => :'String',
135
- :'pulp_created' => :'DateTime',
136
136
  :'md5' => :'String',
137
137
  :'sha1' => :'String',
138
138
  :'sha224' => :'String',
@@ -182,6 +182,10 @@ module PulpAnsibleClient
182
182
  h[k.to_sym] = v
183
183
  }
184
184
 
185
+ if attributes.key?(:'pulp_created')
186
+ self.pulp_created = attributes[:'pulp_created']
187
+ end
188
+
185
189
  if attributes.key?(:'pulp_href')
186
190
  self.pulp_href = attributes[:'pulp_href']
187
191
  end
@@ -190,10 +194,6 @@ module PulpAnsibleClient
190
194
  self.artifact = attributes[:'artifact']
191
195
  end
192
196
 
193
- if attributes.key?(:'pulp_created')
194
- self.pulp_created = attributes[:'pulp_created']
195
- end
196
-
197
197
  if attributes.key?(:'md5')
198
198
  self.md5 = attributes[:'md5']
199
199
  end
@@ -550,9 +550,9 @@ module PulpAnsibleClient
550
550
  def ==(o)
551
551
  return true if self.equal?(o)
552
552
  self.class == o.class &&
553
+ pulp_created == o.pulp_created &&
553
554
  pulp_href == o.pulp_href &&
554
555
  artifact == o.artifact &&
555
- pulp_created == o.pulp_created &&
556
556
  md5 == o.md5 &&
557
557
  sha1 == o.sha1 &&
558
558
  sha224 == o.sha224 &&
@@ -588,7 +588,7 @@ module PulpAnsibleClient
588
588
  # Calculates hash code according to all attributes.
589
589
  # @return [Integer] Hash code
590
590
  def hash
591
- [pulp_href, artifact, pulp_created, md5, sha1, sha224, sha256, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, manifest, files, documentation, homepage, issues, license, name, namespace, repository, tags, version, requires_ansible].hash
591
+ [pulp_created, pulp_href, artifact, md5, sha1, sha224, sha256, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, manifest, files, documentation, homepage, issues, license, name, namespace, repository, tags, version, requires_ansible].hash
592
592
  end
593
593
 
594
594
  # Builds the object from hash
@@ -15,14 +15,14 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Role versions.
17
17
  class AnsibleRoleResponse
18
+ # Timestamp of creation.
19
+ attr_accessor :pulp_created
20
+
18
21
  attr_accessor :pulp_href
19
22
 
20
23
  # Artifact file representing the physical content
21
24
  attr_accessor :artifact
22
25
 
23
- # Timestamp of creation.
24
- attr_accessor :pulp_created
25
-
26
26
  attr_accessor :version
27
27
 
28
28
  attr_accessor :name
@@ -32,9 +32,9 @@ module PulpAnsibleClient
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
+ :'pulp_created' => :'pulp_created',
35
36
  :'pulp_href' => :'pulp_href',
36
37
  :'artifact' => :'artifact',
37
- :'pulp_created' => :'pulp_created',
38
38
  :'version' => :'version',
39
39
  :'name' => :'name',
40
40
  :'namespace' => :'namespace'
@@ -44,9 +44,9 @@ module PulpAnsibleClient
44
44
  # Attribute type mapping.
45
45
  def self.openapi_types
46
46
  {
47
+ :'pulp_created' => :'DateTime',
47
48
  :'pulp_href' => :'String',
48
49
  :'artifact' => :'String',
49
- :'pulp_created' => :'DateTime',
50
50
  :'version' => :'String',
51
51
  :'name' => :'String',
52
52
  :'namespace' => :'String'
@@ -74,6 +74,10 @@ module PulpAnsibleClient
74
74
  h[k.to_sym] = v
75
75
  }
76
76
 
77
+ if attributes.key?(:'pulp_created')
78
+ self.pulp_created = attributes[:'pulp_created']
79
+ end
80
+
77
81
  if attributes.key?(:'pulp_href')
78
82
  self.pulp_href = attributes[:'pulp_href']
79
83
  end
@@ -82,10 +86,6 @@ module PulpAnsibleClient
82
86
  self.artifact = attributes[:'artifact']
83
87
  end
84
88
 
85
- if attributes.key?(:'pulp_created')
86
- self.pulp_created = attributes[:'pulp_created']
87
- end
88
-
89
89
  if attributes.key?(:'version')
90
90
  self.version = attributes[:'version']
91
91
  end
@@ -137,9 +137,9 @@ module PulpAnsibleClient
137
137
  def ==(o)
138
138
  return true if self.equal?(o)
139
139
  self.class == o.class &&
140
+ pulp_created == o.pulp_created &&
140
141
  pulp_href == o.pulp_href &&
141
142
  artifact == o.artifact &&
142
- pulp_created == o.pulp_created &&
143
143
  version == o.version &&
144
144
  name == o.name &&
145
145
  namespace == o.namespace
@@ -154,7 +154,7 @@ module PulpAnsibleClient
154
154
  # Calculates hash code according to all attributes.
155
155
  # @return [Integer] Hash code
156
156
  def hash
157
- [pulp_href, artifact, pulp_created, version, name, namespace].hash
157
+ [pulp_created, pulp_href, artifact, version, name, namespace].hash
158
158
  end
159
159
 
160
160
  # Builds the object from hash
@@ -23,12 +23,6 @@ module PulpAnsibleClient
23
23
 
24
24
  attr_accessor :updated_at
25
25
 
26
- # A JSON field holding MANIFEST.json data.
27
- attr_accessor :manifest
28
-
29
- # A JSON field holding FILES.json data.
30
- attr_accessor :files
31
-
32
26
  attr_accessor :requires_ansible
33
27
 
34
28
  attr_accessor :artifact
@@ -43,6 +37,12 @@ module PulpAnsibleClient
43
37
 
44
38
  attr_accessor :metadata
45
39
 
40
+ # A JSON field holding MANIFEST.json data.
41
+ attr_accessor :manifest
42
+
43
+ # A JSON field holding FILES.json data.
44
+ attr_accessor :files
45
+
46
46
  # Attribute mapping from ruby-style variable name to JSON key.
47
47
  def self.attribute_map
48
48
  {
@@ -50,15 +50,15 @@ module PulpAnsibleClient
50
50
  :'href' => :'href',
51
51
  :'created_at' => :'created_at',
52
52
  :'updated_at' => :'updated_at',
53
- :'manifest' => :'manifest',
54
- :'files' => :'files',
55
53
  :'requires_ansible' => :'requires_ansible',
56
54
  :'artifact' => :'artifact',
57
55
  :'collection' => :'collection',
58
56
  :'download_url' => :'download_url',
59
57
  :'name' => :'name',
60
58
  :'namespace' => :'namespace',
61
- :'metadata' => :'metadata'
59
+ :'metadata' => :'metadata',
60
+ :'manifest' => :'manifest',
61
+ :'files' => :'files'
62
62
  }
63
63
  end
64
64
 
@@ -69,15 +69,15 @@ module PulpAnsibleClient
69
69
  :'href' => :'String',
70
70
  :'created_at' => :'DateTime',
71
71
  :'updated_at' => :'DateTime',
72
- :'manifest' => :'Object',
73
- :'files' => :'Object',
74
72
  :'requires_ansible' => :'String',
75
73
  :'artifact' => :'ArtifactRefResponse',
76
74
  :'collection' => :'CollectionRefResponse',
77
75
  :'download_url' => :'String',
78
76
  :'name' => :'String',
79
77
  :'namespace' => :'CollectionNamespaceResponse',
80
- :'metadata' => :'CollectionMetadataResponse'
78
+ :'metadata' => :'CollectionMetadataResponse',
79
+ :'manifest' => :'Object',
80
+ :'files' => :'Object'
81
81
  }
82
82
  end
83
83
 
@@ -119,14 +119,6 @@ module PulpAnsibleClient
119
119
  self.updated_at = attributes[:'updated_at']
120
120
  end
121
121
 
122
- if attributes.key?(:'manifest')
123
- self.manifest = attributes[:'manifest']
124
- end
125
-
126
- if attributes.key?(:'files')
127
- self.files = attributes[:'files']
128
- end
129
-
130
122
  if attributes.key?(:'requires_ansible')
131
123
  self.requires_ansible = attributes[:'requires_ansible']
132
124
  end
@@ -154,6 +146,14 @@ module PulpAnsibleClient
154
146
  if attributes.key?(:'metadata')
155
147
  self.metadata = attributes[:'metadata']
156
148
  end
149
+
150
+ if attributes.key?(:'manifest')
151
+ self.manifest = attributes[:'manifest']
152
+ end
153
+
154
+ if attributes.key?(:'files')
155
+ self.files = attributes[:'files']
156
+ end
157
157
  end
158
158
 
159
159
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -168,14 +168,6 @@ module PulpAnsibleClient
168
168
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
169
169
  end
170
170
 
171
- if @manifest.nil?
172
- invalid_properties.push('invalid value for "manifest", manifest cannot be nil.')
173
- end
174
-
175
- if @files.nil?
176
- invalid_properties.push('invalid value for "files", files cannot be nil.')
177
- end
178
-
179
171
  if !@requires_ansible.nil? && @requires_ansible.to_s.length > 255
180
172
  invalid_properties.push('invalid value for "requires_ansible", the character length must be smaller than or equal to 255.')
181
173
  end
@@ -188,8 +180,6 @@ module PulpAnsibleClient
188
180
  def valid?
189
181
  return false if @created_at.nil?
190
182
  return false if @updated_at.nil?
191
- return false if @manifest.nil?
192
- return false if @files.nil?
193
183
  return false if !@requires_ansible.nil? && @requires_ansible.to_s.length > 255
194
184
  true
195
185
  end
@@ -213,15 +203,15 @@ module PulpAnsibleClient
213
203
  href == o.href &&
214
204
  created_at == o.created_at &&
215
205
  updated_at == o.updated_at &&
216
- manifest == o.manifest &&
217
- files == o.files &&
218
206
  requires_ansible == o.requires_ansible &&
219
207
  artifact == o.artifact &&
220
208
  collection == o.collection &&
221
209
  download_url == o.download_url &&
222
210
  name == o.name &&
223
211
  namespace == o.namespace &&
224
- metadata == o.metadata
212
+ metadata == o.metadata &&
213
+ manifest == o.manifest &&
214
+ files == o.files
225
215
  end
226
216
 
227
217
  # @see the `==` method
@@ -233,7 +223,7 @@ module PulpAnsibleClient
233
223
  # Calculates hash code according to all attributes.
234
224
  # @return [Integer] Hash code
235
225
  def hash
236
- [version, href, created_at, updated_at, manifest, files, requires_ansible, artifact, collection, download_url, name, namespace, metadata].hash
226
+ [version, href, created_at, updated_at, requires_ansible, artifact, collection, download_url, name, namespace, metadata, manifest, files].hash
237
227
  end
238
228
 
239
229
  # Builds the object from hash
@@ -0,0 +1,323 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpAnsibleClient
16
+ # A serializer for unpaginated CollectionVersion.
17
+ class UnpaginatedCollectionVersionResponse
18
+ attr_accessor :version
19
+
20
+ attr_accessor :href
21
+
22
+ attr_accessor :created_at
23
+
24
+ attr_accessor :updated_at
25
+
26
+ attr_accessor :requires_ansible
27
+
28
+ attr_accessor :artifact
29
+
30
+ attr_accessor :collection
31
+
32
+ attr_accessor :download_url
33
+
34
+ attr_accessor :name
35
+
36
+ attr_accessor :namespace
37
+
38
+ attr_accessor :metadata
39
+
40
+ # Attribute mapping from ruby-style variable name to JSON key.
41
+ def self.attribute_map
42
+ {
43
+ :'version' => :'version',
44
+ :'href' => :'href',
45
+ :'created_at' => :'created_at',
46
+ :'updated_at' => :'updated_at',
47
+ :'requires_ansible' => :'requires_ansible',
48
+ :'artifact' => :'artifact',
49
+ :'collection' => :'collection',
50
+ :'download_url' => :'download_url',
51
+ :'name' => :'name',
52
+ :'namespace' => :'namespace',
53
+ :'metadata' => :'metadata'
54
+ }
55
+ end
56
+
57
+ # Attribute type mapping.
58
+ def self.openapi_types
59
+ {
60
+ :'version' => :'String',
61
+ :'href' => :'String',
62
+ :'created_at' => :'DateTime',
63
+ :'updated_at' => :'DateTime',
64
+ :'requires_ansible' => :'String',
65
+ :'artifact' => :'ArtifactRefResponse',
66
+ :'collection' => :'CollectionRefResponse',
67
+ :'download_url' => :'String',
68
+ :'name' => :'String',
69
+ :'namespace' => :'CollectionNamespaceResponse',
70
+ :'metadata' => :'CollectionMetadataResponse'
71
+ }
72
+ end
73
+
74
+ # List of attributes with nullable: true
75
+ def self.openapi_nullable
76
+ Set.new([
77
+ :'requires_ansible',
78
+ ])
79
+ end
80
+
81
+ # Initializes the object
82
+ # @param [Hash] attributes Model attributes in the form of hash
83
+ def initialize(attributes = {})
84
+ if (!attributes.is_a?(Hash))
85
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::UnpaginatedCollectionVersionResponse` initialize method"
86
+ end
87
+
88
+ # check to see if the attribute exists and convert string to symbol for hash key
89
+ attributes = attributes.each_with_object({}) { |(k, v), h|
90
+ if (!self.class.attribute_map.key?(k.to_sym))
91
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::UnpaginatedCollectionVersionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
92
+ end
93
+ h[k.to_sym] = v
94
+ }
95
+
96
+ if attributes.key?(:'version')
97
+ self.version = attributes[:'version']
98
+ end
99
+
100
+ if attributes.key?(:'href')
101
+ self.href = attributes[:'href']
102
+ end
103
+
104
+ if attributes.key?(:'created_at')
105
+ self.created_at = attributes[:'created_at']
106
+ end
107
+
108
+ if attributes.key?(:'updated_at')
109
+ self.updated_at = attributes[:'updated_at']
110
+ end
111
+
112
+ if attributes.key?(:'requires_ansible')
113
+ self.requires_ansible = attributes[:'requires_ansible']
114
+ end
115
+
116
+ if attributes.key?(:'artifact')
117
+ self.artifact = attributes[:'artifact']
118
+ end
119
+
120
+ if attributes.key?(:'collection')
121
+ self.collection = attributes[:'collection']
122
+ end
123
+
124
+ if attributes.key?(:'download_url')
125
+ self.download_url = attributes[:'download_url']
126
+ end
127
+
128
+ if attributes.key?(:'name')
129
+ self.name = attributes[:'name']
130
+ end
131
+
132
+ if attributes.key?(:'namespace')
133
+ self.namespace = attributes[:'namespace']
134
+ end
135
+
136
+ if attributes.key?(:'metadata')
137
+ self.metadata = attributes[:'metadata']
138
+ end
139
+ end
140
+
141
+ # Show invalid properties with the reasons. Usually used together with valid?
142
+ # @return Array for valid properties with the reasons
143
+ def list_invalid_properties
144
+ invalid_properties = Array.new
145
+ if @created_at.nil?
146
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
147
+ end
148
+
149
+ if @updated_at.nil?
150
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
151
+ end
152
+
153
+ if !@requires_ansible.nil? && @requires_ansible.to_s.length > 255
154
+ invalid_properties.push('invalid value for "requires_ansible", the character length must be smaller than or equal to 255.')
155
+ end
156
+
157
+ invalid_properties
158
+ end
159
+
160
+ # Check to see if the all the properties in the model are valid
161
+ # @return true if the model is valid
162
+ def valid?
163
+ return false if @created_at.nil?
164
+ return false if @updated_at.nil?
165
+ return false if !@requires_ansible.nil? && @requires_ansible.to_s.length > 255
166
+ true
167
+ end
168
+
169
+ # Custom attribute writer method with validation
170
+ # @param [Object] requires_ansible Value to be assigned
171
+ def requires_ansible=(requires_ansible)
172
+ if !requires_ansible.nil? && requires_ansible.to_s.length > 255
173
+ fail ArgumentError, 'invalid value for "requires_ansible", the character length must be smaller than or equal to 255.'
174
+ end
175
+
176
+ @requires_ansible = requires_ansible
177
+ end
178
+
179
+ # Checks equality by comparing each attribute.
180
+ # @param [Object] Object to be compared
181
+ def ==(o)
182
+ return true if self.equal?(o)
183
+ self.class == o.class &&
184
+ version == o.version &&
185
+ href == o.href &&
186
+ created_at == o.created_at &&
187
+ updated_at == o.updated_at &&
188
+ requires_ansible == o.requires_ansible &&
189
+ artifact == o.artifact &&
190
+ collection == o.collection &&
191
+ download_url == o.download_url &&
192
+ name == o.name &&
193
+ namespace == o.namespace &&
194
+ metadata == o.metadata
195
+ end
196
+
197
+ # @see the `==` method
198
+ # @param [Object] Object to be compared
199
+ def eql?(o)
200
+ self == o
201
+ end
202
+
203
+ # Calculates hash code according to all attributes.
204
+ # @return [Integer] Hash code
205
+ def hash
206
+ [version, href, created_at, updated_at, requires_ansible, artifact, collection, download_url, name, namespace, metadata].hash
207
+ end
208
+
209
+ # Builds the object from hash
210
+ # @param [Hash] attributes Model attributes in the form of hash
211
+ # @return [Object] Returns the model itself
212
+ def self.build_from_hash(attributes)
213
+ new.build_from_hash(attributes)
214
+ end
215
+
216
+ # Builds the object from hash
217
+ # @param [Hash] attributes Model attributes in the form of hash
218
+ # @return [Object] Returns the model itself
219
+ def build_from_hash(attributes)
220
+ return nil unless attributes.is_a?(Hash)
221
+ self.class.openapi_types.each_pair do |key, type|
222
+ if type =~ /\AArray<(.*)>/i
223
+ # check to ensure the input is an array given that the attribute
224
+ # is documented as an array but the input is not
225
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
226
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
227
+ end
228
+ elsif !attributes[self.class.attribute_map[key]].nil?
229
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
230
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
231
+ end
232
+
233
+ self
234
+ end
235
+
236
+ # Deserializes the data based on type
237
+ # @param string type Data type
238
+ # @param string value Value to be deserialized
239
+ # @return [Object] Deserialized data
240
+ def _deserialize(type, value)
241
+ case type.to_sym
242
+ when :DateTime
243
+ DateTime.parse(value)
244
+ when :Date
245
+ Date.parse(value)
246
+ when :String
247
+ value.to_s
248
+ when :Integer
249
+ value.to_i
250
+ when :Float
251
+ value.to_f
252
+ when :Boolean
253
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
254
+ true
255
+ else
256
+ false
257
+ end
258
+ when :Object
259
+ # generic object (usually a Hash), return directly
260
+ value
261
+ when /\AArray<(?<inner_type>.+)>\z/
262
+ inner_type = Regexp.last_match[:inner_type]
263
+ value.map { |v| _deserialize(inner_type, v) }
264
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
265
+ k_type = Regexp.last_match[:k_type]
266
+ v_type = Regexp.last_match[:v_type]
267
+ {}.tap do |hash|
268
+ value.each do |k, v|
269
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
270
+ end
271
+ end
272
+ else # model
273
+ PulpAnsibleClient.const_get(type).build_from_hash(value)
274
+ end
275
+ end
276
+
277
+ # Returns the string representation of the object
278
+ # @return [String] String presentation of the object
279
+ def to_s
280
+ to_hash.to_s
281
+ end
282
+
283
+ # to_body is an alias to to_hash (backward compatibility)
284
+ # @return [Hash] Returns the object in the form of hash
285
+ def to_body
286
+ to_hash
287
+ end
288
+
289
+ # Returns the object in the form of hash
290
+ # @return [Hash] Returns the object in the form of hash
291
+ def to_hash
292
+ hash = {}
293
+ self.class.attribute_map.each_pair do |attr, param|
294
+ value = self.send(attr)
295
+ if value.nil?
296
+ is_nullable = self.class.openapi_nullable.include?(attr)
297
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
298
+ end
299
+
300
+ hash[param] = _to_hash(value)
301
+ end
302
+ hash
303
+ end
304
+
305
+ # Outputs non-array value in the form of hash
306
+ # For object, use to_hash. Otherwise, just return the value
307
+ # @param [Object] value Any valid value
308
+ # @return [Hash] Returns the value in the form of hash
309
+ def _to_hash(value)
310
+ if value.is_a?(Array)
311
+ value.compact.map { |v| _to_hash(v) }
312
+ elsif value.is_a?(Hash)
313
+ {}.tap do |hash|
314
+ value.each { |k, v| hash[k] = _to_hash(v) }
315
+ end
316
+ elsif value.respond_to? :to_hash
317
+ value.to_hash
318
+ else
319
+ value
320
+ end
321
+ end
322
+ end
323
+ end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module PulpAnsibleClient
14
- VERSION = '0.7.0'
14
+ VERSION = '0.7.1'
15
15
  end
@@ -47,7 +47,7 @@ describe 'PulpAnsibleGalaxyApiV3AllApi' do
47
47
  # @option opts [String] :version version
48
48
  # @option opts [String] :fields A list of fields to include in the response.
49
49
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
50
- # @return [Array<CollectionVersionResponse>]
50
+ # @return [Array<UnpaginatedCollectionVersionResponse>]
51
51
  describe 'list test' do
52
52
  it 'should work' do
53
53
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -32,19 +32,19 @@ describe 'AnsibleCollectionVersionResponse' do
32
32
  expect(@instance).to be_instance_of(PulpAnsibleClient::AnsibleCollectionVersionResponse)
33
33
  end
34
34
  end
35
- describe 'test attribute "pulp_href"' do
35
+ describe 'test attribute "pulp_created"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "artifact"' do
41
+ describe 'test attribute "pulp_href"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "pulp_created"' do
47
+ describe 'test attribute "artifact"' do
48
48
  it 'should work' do
49
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
  end
@@ -32,19 +32,19 @@ describe 'AnsibleRoleResponse' do
32
32
  expect(@instance).to be_instance_of(PulpAnsibleClient::AnsibleRoleResponse)
33
33
  end
34
34
  end
35
- describe 'test attribute "pulp_href"' do
35
+ describe 'test attribute "pulp_created"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "artifact"' do
41
+ describe 'test attribute "pulp_href"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "pulp_created"' do
47
+ describe 'test attribute "artifact"' do
48
48
  it 'should work' do
49
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
  end
@@ -56,55 +56,55 @@ describe 'CollectionVersionResponse' do
56
56
  end
57
57
  end
58
58
 
59
- describe 'test attribute "manifest"' do
59
+ describe 'test attribute "requires_ansible"' do
60
60
  it 'should work' do
61
61
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
62
  end
63
63
  end
64
64
 
65
- describe 'test attribute "files"' do
65
+ describe 'test attribute "artifact"' do
66
66
  it 'should work' do
67
67
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
68
  end
69
69
  end
70
70
 
71
- describe 'test attribute "requires_ansible"' do
71
+ describe 'test attribute "collection"' do
72
72
  it 'should work' do
73
73
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
74
  end
75
75
  end
76
76
 
77
- describe 'test attribute "artifact"' do
77
+ describe 'test attribute "download_url"' do
78
78
  it 'should work' do
79
79
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
80
  end
81
81
  end
82
82
 
83
- describe 'test attribute "collection"' do
83
+ describe 'test attribute "name"' do
84
84
  it 'should work' do
85
85
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
86
86
  end
87
87
  end
88
88
 
89
- describe 'test attribute "download_url"' do
89
+ describe 'test attribute "namespace"' do
90
90
  it 'should work' do
91
91
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
92
  end
93
93
  end
94
94
 
95
- describe 'test attribute "name"' do
95
+ describe 'test attribute "metadata"' do
96
96
  it 'should work' do
97
97
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
98
98
  end
99
99
  end
100
100
 
101
- describe 'test attribute "namespace"' do
101
+ describe 'test attribute "manifest"' do
102
102
  it 'should work' do
103
103
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
104
104
  end
105
105
  end
106
106
 
107
- describe 'test attribute "metadata"' do
107
+ describe 'test attribute "files"' do
108
108
  it 'should work' do
109
109
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
110
110
  end
@@ -0,0 +1,101 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for PulpAnsibleClient::UnpaginatedCollectionVersionResponse
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'UnpaginatedCollectionVersionResponse' do
21
+ before do
22
+ # run before each test
23
+ @instance = PulpAnsibleClient::UnpaginatedCollectionVersionResponse.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of UnpaginatedCollectionVersionResponse' do
31
+ it 'should create an instance of UnpaginatedCollectionVersionResponse' do
32
+ expect(@instance).to be_instance_of(PulpAnsibleClient::UnpaginatedCollectionVersionResponse)
33
+ end
34
+ end
35
+ describe 'test attribute "version"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "href"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "created_at"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ describe 'test attribute "updated_at"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ describe 'test attribute "requires_ansible"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
65
+ describe 'test attribute "artifact"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ describe 'test attribute "collection"' do
72
+ it 'should work' do
73
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
+ end
75
+ end
76
+
77
+ describe 'test attribute "download_url"' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ describe 'test attribute "name"' do
84
+ it 'should work' do
85
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
86
+ end
87
+ end
88
+
89
+ describe 'test attribute "namespace"' do
90
+ it 'should work' do
91
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
+ end
93
+ end
94
+
95
+ describe 'test attribute "metadata"' do
96
+ it 'should work' do
97
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
98
+ end
99
+ end
100
+
101
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_ansible_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-11 00:00:00.000000000 Z
11
+ date: 2021-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -156,6 +156,7 @@ files:
156
156
  - docs/RepositoryVersion.md
157
157
  - docs/RepositoryVersionResponse.md
158
158
  - docs/TagResponse.md
159
+ - docs/UnpaginatedCollectionVersionResponse.md
159
160
  - docs/VersionsApi.md
160
161
  - git_push.sh
161
162
  - lib/pulp_ansible_client.rb
@@ -245,6 +246,7 @@ files:
245
246
  - lib/pulp_ansible_client/models/repository_version.rb
246
247
  - lib/pulp_ansible_client/models/repository_version_response.rb
247
248
  - lib/pulp_ansible_client/models/tag_response.rb
249
+ - lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb
248
250
  - lib/pulp_ansible_client/version.rb
249
251
  - pulp_ansible_client.gemspec
250
252
  - spec/api/ansible_collections_api_spec.rb
@@ -332,6 +334,7 @@ files:
332
334
  - spec/models/repository_version_response_spec.rb
333
335
  - spec/models/repository_version_spec.rb
334
336
  - spec/models/tag_response_spec.rb
337
+ - spec/models/unpaginated_collection_version_response_spec.rb
335
338
  - spec/spec_helper.rb
336
339
  homepage: https://openapi-generator.tech
337
340
  licenses:
@@ -421,6 +424,7 @@ test_files:
421
424
  - spec/models/paginatedansible_role_response_list_spec.rb
422
425
  - spec/models/paginated_galaxy_collection_response_list_spec.rb
423
426
  - spec/models/ansible_collection_remote_response_spec.rb
427
+ - spec/models/unpaginated_collection_version_response_spec.rb
424
428
  - spec/models/artifact_ref_response_spec.rb
425
429
  - spec/models/ansible_collection_remote_spec.rb
426
430
  - spec/models/ansible_collection_response_spec.rb