pulp_ansible_client 0.24.7 → 0.24.9

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,23 +16,23 @@ require 'time'
16
16
  module PulpAnsibleClient
17
17
  # A serializer for Role versions.
18
18
  class AnsibleRoleResponse
19
- # 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.
20
- attr_accessor :pulp_last_updated
19
+ # Timestamp of creation.
20
+ attr_accessor :pulp_created
21
+
22
+ # Artifact file representing the physical content
23
+ attr_accessor :artifact
21
24
 
22
25
  attr_accessor :pulp_href
23
26
 
24
27
  # The Pulp Resource Name (PRN).
25
28
  attr_accessor :prn
26
29
 
30
+ # 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.
31
+ attr_accessor :pulp_last_updated
32
+
27
33
  # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
28
34
  attr_accessor :pulp_labels
29
35
 
30
- # Artifact file representing the physical content
31
- attr_accessor :artifact
32
-
33
- # Timestamp of creation.
34
- attr_accessor :pulp_created
35
-
36
36
  attr_accessor :version
37
37
 
38
38
  attr_accessor :name
@@ -42,12 +42,12 @@ module PulpAnsibleClient
42
42
  # Attribute mapping from ruby-style variable name to JSON key.
43
43
  def self.attribute_map
44
44
  {
45
- :'pulp_last_updated' => :'pulp_last_updated',
45
+ :'pulp_created' => :'pulp_created',
46
+ :'artifact' => :'artifact',
46
47
  :'pulp_href' => :'pulp_href',
47
48
  :'prn' => :'prn',
49
+ :'pulp_last_updated' => :'pulp_last_updated',
48
50
  :'pulp_labels' => :'pulp_labels',
49
- :'artifact' => :'artifact',
50
- :'pulp_created' => :'pulp_created',
51
51
  :'version' => :'version',
52
52
  :'name' => :'name',
53
53
  :'namespace' => :'namespace'
@@ -62,12 +62,12 @@ module PulpAnsibleClient
62
62
  # Attribute type mapping.
63
63
  def self.openapi_types
64
64
  {
65
- :'pulp_last_updated' => :'Time',
65
+ :'pulp_created' => :'Time',
66
+ :'artifact' => :'String',
66
67
  :'pulp_href' => :'String',
67
68
  :'prn' => :'String',
69
+ :'pulp_last_updated' => :'Time',
68
70
  :'pulp_labels' => :'Hash<String, String>',
69
- :'artifact' => :'String',
70
- :'pulp_created' => :'Time',
71
71
  :'version' => :'String',
72
72
  :'name' => :'String',
73
73
  :'namespace' => :'String'
@@ -95,8 +95,14 @@ module PulpAnsibleClient
95
95
  h[k.to_sym] = v
96
96
  }
97
97
 
98
- if attributes.key?(:'pulp_last_updated')
99
- self.pulp_last_updated = attributes[:'pulp_last_updated']
98
+ if attributes.key?(:'pulp_created')
99
+ self.pulp_created = attributes[:'pulp_created']
100
+ end
101
+
102
+ if attributes.key?(:'artifact')
103
+ self.artifact = attributes[:'artifact']
104
+ else
105
+ self.artifact = nil
100
106
  end
101
107
 
102
108
  if attributes.key?(:'pulp_href')
@@ -107,22 +113,16 @@ module PulpAnsibleClient
107
113
  self.prn = attributes[:'prn']
108
114
  end
109
115
 
116
+ if attributes.key?(:'pulp_last_updated')
117
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
118
+ end
119
+
110
120
  if attributes.key?(:'pulp_labels')
111
121
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
112
122
  self.pulp_labels = value
113
123
  end
114
124
  end
115
125
 
116
- if attributes.key?(:'artifact')
117
- self.artifact = attributes[:'artifact']
118
- else
119
- self.artifact = nil
120
- end
121
-
122
- if attributes.key?(:'pulp_created')
123
- self.pulp_created = attributes[:'pulp_created']
124
- end
125
-
126
126
  if attributes.key?(:'version')
127
127
  self.version = attributes[:'version']
128
128
  else
@@ -182,12 +182,12 @@ module PulpAnsibleClient
182
182
  def ==(o)
183
183
  return true if self.equal?(o)
184
184
  self.class == o.class &&
185
- pulp_last_updated == o.pulp_last_updated &&
185
+ pulp_created == o.pulp_created &&
186
+ artifact == o.artifact &&
186
187
  pulp_href == o.pulp_href &&
187
188
  prn == o.prn &&
189
+ pulp_last_updated == o.pulp_last_updated &&
188
190
  pulp_labels == o.pulp_labels &&
189
- artifact == o.artifact &&
190
- pulp_created == o.pulp_created &&
191
191
  version == o.version &&
192
192
  name == o.name &&
193
193
  namespace == o.namespace
@@ -202,7 +202,7 @@ module PulpAnsibleClient
202
202
  # Calculates hash code according to all attributes.
203
203
  # @return [Integer] Hash code
204
204
  def hash
205
- [pulp_last_updated, pulp_href, prn, pulp_labels, artifact, pulp_created, version, name, namespace].hash
205
+ [pulp_created, artifact, pulp_href, prn, pulp_last_updated, pulp_labels, version, name, namespace].hash
206
206
  end
207
207
 
208
208
  # Builds the object from hash