pulp_ansible_client 0.29.0 → 0.29.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.
@@ -16,24 +16,24 @@ require 'time'
16
16
  module PulpAnsibleClient
17
17
  # A serializer for Role versions.
18
18
  class AnsibleRoleResponse
19
- attr_accessor :pulp_href
20
-
21
- attr_accessor :vuln_report
19
+ # The Pulp Resource Name (PRN).
20
+ attr_accessor :prn
22
21
 
23
22
  # Timestamp of creation.
24
23
  attr_accessor :pulp_created
25
24
 
25
+ attr_accessor :pulp_href
26
+
26
27
  # 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.
27
28
  attr_accessor :pulp_last_updated
28
29
 
29
- # Artifact file representing the physical content
30
- attr_accessor :artifact
30
+ attr_accessor :vuln_report
31
31
 
32
32
  # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
33
33
  attr_accessor :pulp_labels
34
34
 
35
- # The Pulp Resource Name (PRN).
36
- attr_accessor :prn
35
+ # Artifact file representing the physical content
36
+ attr_accessor :artifact
37
37
 
38
38
  attr_accessor :version
39
39
 
@@ -44,13 +44,13 @@ module PulpAnsibleClient
44
44
  # Attribute mapping from ruby-style variable name to JSON key.
45
45
  def self.attribute_map
46
46
  {
47
- :'pulp_href' => :'pulp_href',
48
- :'vuln_report' => :'vuln_report',
47
+ :'prn' => :'prn',
49
48
  :'pulp_created' => :'pulp_created',
49
+ :'pulp_href' => :'pulp_href',
50
50
  :'pulp_last_updated' => :'pulp_last_updated',
51
- :'artifact' => :'artifact',
51
+ :'vuln_report' => :'vuln_report',
52
52
  :'pulp_labels' => :'pulp_labels',
53
- :'prn' => :'prn',
53
+ :'artifact' => :'artifact',
54
54
  :'version' => :'version',
55
55
  :'name' => :'name',
56
56
  :'namespace' => :'namespace'
@@ -65,13 +65,13 @@ module PulpAnsibleClient
65
65
  # Attribute type mapping.
66
66
  def self.openapi_types
67
67
  {
68
- :'pulp_href' => :'String',
69
- :'vuln_report' => :'String',
68
+ :'prn' => :'String',
70
69
  :'pulp_created' => :'Time',
70
+ :'pulp_href' => :'String',
71
71
  :'pulp_last_updated' => :'Time',
72
- :'artifact' => :'String',
72
+ :'vuln_report' => :'String',
73
73
  :'pulp_labels' => :'Hash<String, String>',
74
- :'prn' => :'String',
74
+ :'artifact' => :'String',
75
75
  :'version' => :'String',
76
76
  :'name' => :'String',
77
77
  :'namespace' => :'String'
@@ -99,26 +99,24 @@ module PulpAnsibleClient
99
99
  h[k.to_sym] = v
100
100
  }
101
101
 
102
- if attributes.key?(:'pulp_href')
103
- self.pulp_href = attributes[:'pulp_href']
104
- end
105
-
106
- if attributes.key?(:'vuln_report')
107
- self.vuln_report = attributes[:'vuln_report']
102
+ if attributes.key?(:'prn')
103
+ self.prn = attributes[:'prn']
108
104
  end
109
105
 
110
106
  if attributes.key?(:'pulp_created')
111
107
  self.pulp_created = attributes[:'pulp_created']
112
108
  end
113
109
 
110
+ if attributes.key?(:'pulp_href')
111
+ self.pulp_href = attributes[:'pulp_href']
112
+ end
113
+
114
114
  if attributes.key?(:'pulp_last_updated')
115
115
  self.pulp_last_updated = attributes[:'pulp_last_updated']
116
116
  end
117
117
 
118
- if attributes.key?(:'artifact')
119
- self.artifact = attributes[:'artifact']
120
- else
121
- self.artifact = nil
118
+ if attributes.key?(:'vuln_report')
119
+ self.vuln_report = attributes[:'vuln_report']
122
120
  end
123
121
 
124
122
  if attributes.key?(:'pulp_labels')
@@ -127,8 +125,10 @@ module PulpAnsibleClient
127
125
  end
128
126
  end
129
127
 
130
- if attributes.key?(:'prn')
131
- self.prn = attributes[:'prn']
128
+ if attributes.key?(:'artifact')
129
+ self.artifact = attributes[:'artifact']
130
+ else
131
+ self.artifact = nil
132
132
  end
133
133
 
134
134
  if attributes.key?(:'version')
@@ -190,13 +190,13 @@ module PulpAnsibleClient
190
190
  def ==(o)
191
191
  return true if self.equal?(o)
192
192
  self.class == o.class &&
193
- pulp_href == o.pulp_href &&
194
- vuln_report == o.vuln_report &&
193
+ prn == o.prn &&
195
194
  pulp_created == o.pulp_created &&
195
+ pulp_href == o.pulp_href &&
196
196
  pulp_last_updated == o.pulp_last_updated &&
197
- artifact == o.artifact &&
197
+ vuln_report == o.vuln_report &&
198
198
  pulp_labels == o.pulp_labels &&
199
- prn == o.prn &&
199
+ artifact == o.artifact &&
200
200
  version == o.version &&
201
201
  name == o.name &&
202
202
  namespace == o.namespace
@@ -211,7 +211,7 @@ module PulpAnsibleClient
211
211
  # Calculates hash code according to all attributes.
212
212
  # @return [Integer] Hash code
213
213
  def hash
214
- [pulp_href, vuln_report, pulp_created, pulp_last_updated, artifact, pulp_labels, prn, version, name, namespace].hash
214
+ [prn, pulp_created, pulp_href, pulp_last_updated, vuln_report, pulp_labels, artifact, version, name, namespace].hash
215
215
  end
216
216
 
217
217
  # Builds the object from hash