pulp_ansible_client 0.22.9 → 0.22.10

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.
@@ -15,20 +15,20 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for CollectionVersion Content.
17
17
  class AnsibleCollectionVersionResponse
18
- # The Pulp Resource Name (PRN).
19
- attr_accessor :prn
18
+ # Artifact file representing the physical content
19
+ attr_accessor :artifact
20
20
 
21
21
  # 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.
22
22
  attr_accessor :pulp_last_updated
23
23
 
24
- # Timestamp of creation.
25
- attr_accessor :pulp_created
26
-
27
- # Artifact file representing the physical content
28
- attr_accessor :artifact
24
+ # The Pulp Resource Name (PRN).
25
+ attr_accessor :prn
29
26
 
30
27
  attr_accessor :pulp_href
31
28
 
29
+ # Timestamp of creation.
30
+ attr_accessor :pulp_created
31
+
32
32
  # The SHA-256 checksum if available.
33
33
  attr_accessor :sha256
34
34
 
@@ -103,11 +103,11 @@ module PulpAnsibleClient
103
103
  # Attribute mapping from ruby-style variable name to JSON key.
104
104
  def self.attribute_map
105
105
  {
106
- :'prn' => :'prn',
107
- :'pulp_last_updated' => :'pulp_last_updated',
108
- :'pulp_created' => :'pulp_created',
109
106
  :'artifact' => :'artifact',
107
+ :'pulp_last_updated' => :'pulp_last_updated',
108
+ :'prn' => :'prn',
110
109
  :'pulp_href' => :'pulp_href',
110
+ :'pulp_created' => :'pulp_created',
111
111
  :'sha256' => :'sha256',
112
112
  :'md5' => :'md5',
113
113
  :'sha1' => :'sha1',
@@ -138,11 +138,11 @@ module PulpAnsibleClient
138
138
  # Attribute type mapping.
139
139
  def self.openapi_types
140
140
  {
141
- :'prn' => :'String',
142
- :'pulp_last_updated' => :'DateTime',
143
- :'pulp_created' => :'DateTime',
144
141
  :'artifact' => :'String',
142
+ :'pulp_last_updated' => :'DateTime',
143
+ :'prn' => :'String',
145
144
  :'pulp_href' => :'String',
145
+ :'pulp_created' => :'DateTime',
146
146
  :'sha256' => :'String',
147
147
  :'md5' => :'String',
148
148
  :'sha1' => :'String',
@@ -192,26 +192,26 @@ module PulpAnsibleClient
192
192
  h[k.to_sym] = v
193
193
  }
194
194
 
195
- if attributes.key?(:'prn')
196
- self.prn = attributes[:'prn']
195
+ if attributes.key?(:'artifact')
196
+ self.artifact = attributes[:'artifact']
197
197
  end
198
198
 
199
199
  if attributes.key?(:'pulp_last_updated')
200
200
  self.pulp_last_updated = attributes[:'pulp_last_updated']
201
201
  end
202
202
 
203
- if attributes.key?(:'pulp_created')
204
- self.pulp_created = attributes[:'pulp_created']
205
- end
206
-
207
- if attributes.key?(:'artifact')
208
- self.artifact = attributes[:'artifact']
203
+ if attributes.key?(:'prn')
204
+ self.prn = attributes[:'prn']
209
205
  end
210
206
 
211
207
  if attributes.key?(:'pulp_href')
212
208
  self.pulp_href = attributes[:'pulp_href']
213
209
  end
214
210
 
211
+ if attributes.key?(:'pulp_created')
212
+ self.pulp_created = attributes[:'pulp_created']
213
+ end
214
+
215
215
  if attributes.key?(:'sha256')
216
216
  self.sha256 = attributes[:'sha256']
217
217
  end
@@ -453,11 +453,11 @@ module PulpAnsibleClient
453
453
  def ==(o)
454
454
  return true if self.equal?(o)
455
455
  self.class == o.class &&
456
- prn == o.prn &&
457
- pulp_last_updated == o.pulp_last_updated &&
458
- pulp_created == o.pulp_created &&
459
456
  artifact == o.artifact &&
457
+ pulp_last_updated == o.pulp_last_updated &&
458
+ prn == o.prn &&
460
459
  pulp_href == o.pulp_href &&
460
+ pulp_created == o.pulp_created &&
461
461
  sha256 == o.sha256 &&
462
462
  md5 == o.md5 &&
463
463
  sha1 == o.sha1 &&
@@ -493,7 +493,7 @@ module PulpAnsibleClient
493
493
  # Calculates hash code according to all attributes.
494
494
  # @return [Integer] Hash code
495
495
  def hash
496
- [prn, pulp_last_updated, pulp_created, artifact, pulp_href, 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
496
+ [artifact, pulp_last_updated, prn, pulp_href, 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
497
497
  end
498
498
 
499
499
  # Builds the object from hash