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