pulp_ansible_client 0.28.2 → 0.28.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.
@@ -16,25 +16,25 @@ require 'time'
16
16
  module PulpAnsibleClient
17
17
  # A serializer for CollectionVersion Content.
18
18
  class AnsibleCollectionVersionResponse
19
- # The Pulp Resource Name (PRN).
20
- attr_accessor :prn
21
-
22
19
  attr_accessor :pulp_href
23
20
 
24
- # Artifact file representing the physical content
25
- attr_accessor :artifact
26
-
27
- attr_accessor :vuln_report
21
+ # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
22
+ attr_accessor :pulp_labels
28
23
 
29
24
  # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
30
25
  attr_accessor :pulp_last_updated
31
26
 
32
- # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
33
- attr_accessor :pulp_labels
34
-
35
27
  # Timestamp of creation.
36
28
  attr_accessor :pulp_created
37
29
 
30
+ # The Pulp Resource Name (PRN).
31
+ attr_accessor :prn
32
+
33
+ # Artifact file representing the physical content
34
+ attr_accessor :artifact
35
+
36
+ attr_accessor :vuln_report
37
+
38
38
  # The SHA-256 checksum if available.
39
39
  attr_accessor :sha256
40
40
 
@@ -59,24 +59,12 @@ module PulpAnsibleClient
59
59
  # A list of the CollectionVersion content's authors.
60
60
  attr_accessor :authors
61
61
 
62
- # A JSON field with data about the contents.
63
- attr_accessor :contents
64
-
65
62
  # A dict declaring Collections that this collection requires to be installed for it to be usable.
66
63
  attr_accessor :dependencies
67
64
 
68
65
  # A short summary description of the collection.
69
66
  attr_accessor :description
70
67
 
71
- # A JSON field holding the various documentation blobs in the collection.
72
- attr_accessor :docs_blob
73
-
74
- # A JSON field holding MANIFEST.json data.
75
- attr_accessor :manifest
76
-
77
- # A JSON field holding FILES.json data.
78
- attr_accessor :files
79
-
80
68
  # The URL to any online docs.
81
69
  attr_accessor :documentation
82
70
 
@@ -109,13 +97,13 @@ module PulpAnsibleClient
109
97
  # Attribute mapping from ruby-style variable name to JSON key.
110
98
  def self.attribute_map
111
99
  {
112
- :'prn' => :'prn',
113
100
  :'pulp_href' => :'pulp_href',
114
- :'artifact' => :'artifact',
115
- :'vuln_report' => :'vuln_report',
116
- :'pulp_last_updated' => :'pulp_last_updated',
117
101
  :'pulp_labels' => :'pulp_labels',
102
+ :'pulp_last_updated' => :'pulp_last_updated',
118
103
  :'pulp_created' => :'pulp_created',
104
+ :'prn' => :'prn',
105
+ :'artifact' => :'artifact',
106
+ :'vuln_report' => :'vuln_report',
119
107
  :'sha256' => :'sha256',
120
108
  :'md5' => :'md5',
121
109
  :'sha1' => :'sha1',
@@ -124,12 +112,8 @@ module PulpAnsibleClient
124
112
  :'sha512' => :'sha512',
125
113
  :'id' => :'id',
126
114
  :'authors' => :'authors',
127
- :'contents' => :'contents',
128
115
  :'dependencies' => :'dependencies',
129
116
  :'description' => :'description',
130
- :'docs_blob' => :'docs_blob',
131
- :'manifest' => :'manifest',
132
- :'files' => :'files',
133
117
  :'documentation' => :'documentation',
134
118
  :'homepage' => :'homepage',
135
119
  :'issues' => :'issues',
@@ -151,13 +135,13 @@ module PulpAnsibleClient
151
135
  # Attribute type mapping.
152
136
  def self.openapi_types
153
137
  {
154
- :'prn' => :'String',
155
138
  :'pulp_href' => :'String',
156
- :'artifact' => :'String',
157
- :'vuln_report' => :'String',
158
- :'pulp_last_updated' => :'Time',
159
139
  :'pulp_labels' => :'Hash<String, String>',
140
+ :'pulp_last_updated' => :'Time',
160
141
  :'pulp_created' => :'Time',
142
+ :'prn' => :'String',
143
+ :'artifact' => :'String',
144
+ :'vuln_report' => :'String',
161
145
  :'sha256' => :'String',
162
146
  :'md5' => :'String',
163
147
  :'sha1' => :'String',
@@ -166,12 +150,8 @@ module PulpAnsibleClient
166
150
  :'sha512' => :'String',
167
151
  :'id' => :'String',
168
152
  :'authors' => :'Array<String>',
169
- :'contents' => :'Array<Object>',
170
153
  :'dependencies' => :'Object',
171
154
  :'description' => :'String',
172
- :'docs_blob' => :'Object',
173
- :'manifest' => :'Object',
174
- :'files' => :'Object',
175
155
  :'documentation' => :'String',
176
156
  :'homepage' => :'String',
177
157
  :'issues' => :'String',
@@ -207,36 +187,36 @@ module PulpAnsibleClient
207
187
  h[k.to_sym] = v
208
188
  }
209
189
 
210
- if attributes.key?(:'prn')
211
- self.prn = attributes[:'prn']
212
- end
213
-
214
190
  if attributes.key?(:'pulp_href')
215
191
  self.pulp_href = attributes[:'pulp_href']
216
192
  end
217
193
 
218
- if attributes.key?(:'artifact')
219
- self.artifact = attributes[:'artifact']
220
- end
221
-
222
- if attributes.key?(:'vuln_report')
223
- self.vuln_report = attributes[:'vuln_report']
224
- end
225
-
226
- if attributes.key?(:'pulp_last_updated')
227
- self.pulp_last_updated = attributes[:'pulp_last_updated']
228
- end
229
-
230
194
  if attributes.key?(:'pulp_labels')
231
195
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
232
196
  self.pulp_labels = value
233
197
  end
234
198
  end
235
199
 
200
+ if attributes.key?(:'pulp_last_updated')
201
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
202
+ end
203
+
236
204
  if attributes.key?(:'pulp_created')
237
205
  self.pulp_created = attributes[:'pulp_created']
238
206
  end
239
207
 
208
+ if attributes.key?(:'prn')
209
+ self.prn = attributes[:'prn']
210
+ end
211
+
212
+ if attributes.key?(:'artifact')
213
+ self.artifact = attributes[:'artifact']
214
+ end
215
+
216
+ if attributes.key?(:'vuln_report')
217
+ self.vuln_report = attributes[:'vuln_report']
218
+ end
219
+
240
220
  if attributes.key?(:'sha256')
241
221
  self.sha256 = attributes[:'sha256']
242
222
  end
@@ -271,12 +251,6 @@ module PulpAnsibleClient
271
251
  end
272
252
  end
273
253
 
274
- if attributes.key?(:'contents')
275
- if (value = attributes[:'contents']).is_a?(Array)
276
- self.contents = value
277
- end
278
- end
279
-
280
254
  if attributes.key?(:'dependencies')
281
255
  self.dependencies = attributes[:'dependencies']
282
256
  end
@@ -285,18 +259,6 @@ module PulpAnsibleClient
285
259
  self.description = attributes[:'description']
286
260
  end
287
261
 
288
- if attributes.key?(:'docs_blob')
289
- self.docs_blob = attributes[:'docs_blob']
290
- end
291
-
292
- if attributes.key?(:'manifest')
293
- self.manifest = attributes[:'manifest']
294
- end
295
-
296
- if attributes.key?(:'files')
297
- self.files = attributes[:'files']
298
- end
299
-
300
262
  if attributes.key?(:'documentation')
301
263
  self.documentation = attributes[:'documentation']
302
264
  end
@@ -495,13 +457,13 @@ module PulpAnsibleClient
495
457
  def ==(o)
496
458
  return true if self.equal?(o)
497
459
  self.class == o.class &&
498
- prn == o.prn &&
499
460
  pulp_href == o.pulp_href &&
500
- artifact == o.artifact &&
501
- vuln_report == o.vuln_report &&
502
- pulp_last_updated == o.pulp_last_updated &&
503
461
  pulp_labels == o.pulp_labels &&
462
+ pulp_last_updated == o.pulp_last_updated &&
504
463
  pulp_created == o.pulp_created &&
464
+ prn == o.prn &&
465
+ artifact == o.artifact &&
466
+ vuln_report == o.vuln_report &&
505
467
  sha256 == o.sha256 &&
506
468
  md5 == o.md5 &&
507
469
  sha1 == o.sha1 &&
@@ -510,12 +472,8 @@ module PulpAnsibleClient
510
472
  sha512 == o.sha512 &&
511
473
  id == o.id &&
512
474
  authors == o.authors &&
513
- contents == o.contents &&
514
475
  dependencies == o.dependencies &&
515
476
  description == o.description &&
516
- docs_blob == o.docs_blob &&
517
- manifest == o.manifest &&
518
- files == o.files &&
519
477
  documentation == o.documentation &&
520
478
  homepage == o.homepage &&
521
479
  issues == o.issues &&
@@ -537,7 +495,7 @@ module PulpAnsibleClient
537
495
  # Calculates hash code according to all attributes.
538
496
  # @return [Integer] Hash code
539
497
  def hash
540
- [prn, pulp_href, artifact, vuln_report, pulp_last_updated, pulp_labels, pulp_created, sha256, md5, sha1, sha224, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, manifest, files, documentation, homepage, issues, license, name, namespace, origin_repository, tags, version, requires_ansible].hash
498
+ [pulp_href, pulp_labels, pulp_last_updated, pulp_created, prn, artifact, vuln_report, sha256, md5, sha1, sha224, sha384, sha512, id, authors, dependencies, description, documentation, homepage, issues, license, name, namespace, origin_repository, tags, version, requires_ansible].hash
541
499
  end
542
500
 
543
501
  # Builds the object from hash