pulp_ansible_client 0.30.1 → 0.30.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
- # Artifact file representing the physical content
20
- attr_accessor :artifact
21
-
22
- # The Pulp Resource Name (PRN).
23
- attr_accessor :prn
24
-
25
- attr_accessor :pulp_href
26
-
27
- # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
28
- attr_accessor :pulp_labels
19
+ attr_accessor :vuln_report
29
20
 
30
21
  # Timestamp of creation.
31
22
  attr_accessor :pulp_created
32
23
 
33
- attr_accessor :vuln_report
24
+ attr_accessor :pulp_href
25
+
26
+ # The Pulp Resource Name (PRN).
27
+ attr_accessor :prn
34
28
 
35
29
  # 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.
36
30
  attr_accessor :pulp_last_updated
37
31
 
32
+ # Artifact file representing the physical content
33
+ attr_accessor :artifact
34
+
35
+ # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
36
+ attr_accessor :pulp_labels
37
+
38
38
  # The SHA-256 checksum if available.
39
39
  attr_accessor :sha256
40
40
 
@@ -97,13 +97,13 @@ module PulpAnsibleClient
97
97
  # Attribute mapping from ruby-style variable name to JSON key.
98
98
  def self.attribute_map
99
99
  {
100
- :'artifact' => :'artifact',
101
- :'prn' => :'prn',
102
- :'pulp_href' => :'pulp_href',
103
- :'pulp_labels' => :'pulp_labels',
104
- :'pulp_created' => :'pulp_created',
105
100
  :'vuln_report' => :'vuln_report',
101
+ :'pulp_created' => :'pulp_created',
102
+ :'pulp_href' => :'pulp_href',
103
+ :'prn' => :'prn',
106
104
  :'pulp_last_updated' => :'pulp_last_updated',
105
+ :'artifact' => :'artifact',
106
+ :'pulp_labels' => :'pulp_labels',
107
107
  :'sha256' => :'sha256',
108
108
  :'md5' => :'md5',
109
109
  :'sha1' => :'sha1',
@@ -135,13 +135,13 @@ module PulpAnsibleClient
135
135
  # Attribute type mapping.
136
136
  def self.openapi_types
137
137
  {
138
- :'artifact' => :'String',
139
- :'prn' => :'String',
140
- :'pulp_href' => :'String',
141
- :'pulp_labels' => :'Hash<String, String>',
142
- :'pulp_created' => :'Time',
143
138
  :'vuln_report' => :'String',
139
+ :'pulp_created' => :'Time',
140
+ :'pulp_href' => :'String',
141
+ :'prn' => :'String',
144
142
  :'pulp_last_updated' => :'Time',
143
+ :'artifact' => :'String',
144
+ :'pulp_labels' => :'Hash<String, String>',
145
145
  :'sha256' => :'String',
146
146
  :'md5' => :'String',
147
147
  :'sha1' => :'String',
@@ -187,34 +187,34 @@ module PulpAnsibleClient
187
187
  h[k.to_sym] = v
188
188
  }
189
189
 
190
- if attributes.key?(:'artifact')
191
- self.artifact = attributes[:'artifact']
190
+ if attributes.key?(:'vuln_report')
191
+ self.vuln_report = attributes[:'vuln_report']
192
192
  end
193
193
 
194
- if attributes.key?(:'prn')
195
- self.prn = attributes[:'prn']
194
+ if attributes.key?(:'pulp_created')
195
+ self.pulp_created = attributes[:'pulp_created']
196
196
  end
197
197
 
198
198
  if attributes.key?(:'pulp_href')
199
199
  self.pulp_href = attributes[:'pulp_href']
200
200
  end
201
201
 
202
- if attributes.key?(:'pulp_labels')
203
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
204
- self.pulp_labels = value
205
- end
202
+ if attributes.key?(:'prn')
203
+ self.prn = attributes[:'prn']
206
204
  end
207
205
 
208
- if attributes.key?(:'pulp_created')
209
- self.pulp_created = attributes[:'pulp_created']
206
+ if attributes.key?(:'pulp_last_updated')
207
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
210
208
  end
211
209
 
212
- if attributes.key?(:'vuln_report')
213
- self.vuln_report = attributes[:'vuln_report']
210
+ if attributes.key?(:'artifact')
211
+ self.artifact = attributes[:'artifact']
214
212
  end
215
213
 
216
- if attributes.key?(:'pulp_last_updated')
217
- self.pulp_last_updated = attributes[:'pulp_last_updated']
214
+ if attributes.key?(:'pulp_labels')
215
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
216
+ self.pulp_labels = value
217
+ end
218
218
  end
219
219
 
220
220
  if attributes.key?(:'sha256')
@@ -472,13 +472,13 @@ module PulpAnsibleClient
472
472
  def ==(o)
473
473
  return true if self.equal?(o)
474
474
  self.class == o.class &&
475
- artifact == o.artifact &&
476
- prn == o.prn &&
477
- pulp_href == o.pulp_href &&
478
- pulp_labels == o.pulp_labels &&
479
- pulp_created == o.pulp_created &&
480
475
  vuln_report == o.vuln_report &&
476
+ pulp_created == o.pulp_created &&
477
+ pulp_href == o.pulp_href &&
478
+ prn == o.prn &&
481
479
  pulp_last_updated == o.pulp_last_updated &&
480
+ artifact == o.artifact &&
481
+ pulp_labels == o.pulp_labels &&
482
482
  sha256 == o.sha256 &&
483
483
  md5 == o.md5 &&
484
484
  sha1 == o.sha1 &&
@@ -510,7 +510,7 @@ module PulpAnsibleClient
510
510
  # Calculates hash code according to all attributes.
511
511
  # @return [Integer] Hash code
512
512
  def hash
513
- [artifact, prn, pulp_href, pulp_labels, pulp_created, vuln_report, pulp_last_updated, sha256, md5, sha1, sha224, sha384, sha512, id, authors, dependencies, description, documentation, homepage, issues, license, name, namespace, origin_repository, tags, version, requires_ansible].hash
513
+ [vuln_report, pulp_created, pulp_href, prn, pulp_last_updated, artifact, pulp_labels, sha256, md5, sha1, sha224, sha384, sha512, id, authors, dependencies, description, documentation, homepage, issues, license, name, namespace, origin_repository, tags, version, requires_ansible].hash
514
514
  end
515
515
 
516
516
  # Builds the object from hash