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 Role versions.
18
18
  class AnsibleRoleResponse
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
  attr_accessor :version
39
39
 
40
40
  attr_accessor :name
@@ -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
- :'prn' => :'prn',
48
47
  :'pulp_href' => :'pulp_href',
49
- :'artifact' => :'artifact',
50
- :'vuln_report' => :'vuln_report',
51
- :'pulp_last_updated' => :'pulp_last_updated',
52
48
  :'pulp_labels' => :'pulp_labels',
49
+ :'pulp_last_updated' => :'pulp_last_updated',
53
50
  :'pulp_created' => :'pulp_created',
51
+ :'prn' => :'prn',
52
+ :'artifact' => :'artifact',
53
+ :'vuln_report' => :'vuln_report',
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
- :'prn' => :'String',
69
68
  :'pulp_href' => :'String',
70
- :'artifact' => :'String',
71
- :'vuln_report' => :'String',
72
- :'pulp_last_updated' => :'Time',
73
69
  :'pulp_labels' => :'Hash<String, String>',
70
+ :'pulp_last_updated' => :'Time',
74
71
  :'pulp_created' => :'Time',
72
+ :'prn' => :'String',
73
+ :'artifact' => :'String',
74
+ :'vuln_report' => :'String',
75
75
  :'version' => :'String',
76
76
  :'name' => :'String',
77
77
  :'namespace' => :'String'
@@ -99,38 +99,38 @@ module PulpAnsibleClient
99
99
  h[k.to_sym] = v
100
100
  }
101
101
 
102
- if attributes.key?(:'prn')
103
- self.prn = attributes[:'prn']
104
- end
105
-
106
102
  if attributes.key?(:'pulp_href')
107
103
  self.pulp_href = attributes[:'pulp_href']
108
104
  end
109
105
 
110
- if attributes.key?(:'artifact')
111
- self.artifact = attributes[:'artifact']
112
- else
113
- self.artifact = nil
114
- end
115
-
116
- if attributes.key?(:'vuln_report')
117
- self.vuln_report = attributes[:'vuln_report']
118
- end
119
-
120
- if attributes.key?(:'pulp_last_updated')
121
- self.pulp_last_updated = attributes[:'pulp_last_updated']
122
- end
123
-
124
106
  if attributes.key?(:'pulp_labels')
125
107
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
126
108
  self.pulp_labels = value
127
109
  end
128
110
  end
129
111
 
112
+ if attributes.key?(:'pulp_last_updated')
113
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
114
+ end
115
+
130
116
  if attributes.key?(:'pulp_created')
131
117
  self.pulp_created = attributes[:'pulp_created']
132
118
  end
133
119
 
120
+ if attributes.key?(:'prn')
121
+ self.prn = attributes[:'prn']
122
+ end
123
+
124
+ if attributes.key?(:'artifact')
125
+ self.artifact = attributes[:'artifact']
126
+ else
127
+ self.artifact = nil
128
+ end
129
+
130
+ if attributes.key?(:'vuln_report')
131
+ self.vuln_report = attributes[:'vuln_report']
132
+ end
133
+
134
134
  if attributes.key?(:'version')
135
135
  self.version = attributes[:'version']
136
136
  else
@@ -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
- prn == o.prn &&
194
193
  pulp_href == o.pulp_href &&
195
- artifact == o.artifact &&
196
- vuln_report == o.vuln_report &&
197
- pulp_last_updated == o.pulp_last_updated &&
198
194
  pulp_labels == o.pulp_labels &&
195
+ pulp_last_updated == o.pulp_last_updated &&
199
196
  pulp_created == o.pulp_created &&
197
+ prn == o.prn &&
198
+ artifact == o.artifact &&
199
+ vuln_report == o.vuln_report &&
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
- [prn, pulp_href, artifact, vuln_report, pulp_last_updated, pulp_labels, pulp_created, version, name, namespace].hash
214
+ [pulp_href, pulp_labels, pulp_last_updated, pulp_created, prn, artifact, vuln_report, version, name, namespace].hash
215
215
  end
216
216
 
217
217
  # Builds the object from hash