pulp_ansible_client 0.24.9 → 0.24.10

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
+ # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
20
+ attr_accessor :pulp_labels
21
+
19
22
  # Timestamp of creation.
20
23
  attr_accessor :pulp_created
21
24
 
22
25
  # Artifact file representing the physical content
23
26
  attr_accessor :artifact
24
27
 
25
- attr_accessor :pulp_href
26
-
27
28
  # The Pulp Resource Name (PRN).
28
29
  attr_accessor :prn
29
30
 
31
+ attr_accessor :pulp_href
32
+
30
33
  # 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
34
  attr_accessor :pulp_last_updated
32
35
 
33
- # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
34
- attr_accessor :pulp_labels
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_labels' => :'pulp_labels',
45
46
  :'pulp_created' => :'pulp_created',
46
47
  :'artifact' => :'artifact',
47
- :'pulp_href' => :'pulp_href',
48
48
  :'prn' => :'prn',
49
+ :'pulp_href' => :'pulp_href',
49
50
  :'pulp_last_updated' => :'pulp_last_updated',
50
- :'pulp_labels' => :'pulp_labels',
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_labels' => :'Hash<String, String>',
65
66
  :'pulp_created' => :'Time',
66
67
  :'artifact' => :'String',
67
- :'pulp_href' => :'String',
68
68
  :'prn' => :'String',
69
+ :'pulp_href' => :'String',
69
70
  :'pulp_last_updated' => :'Time',
70
- :'pulp_labels' => :'Hash<String, String>',
71
71
  :'version' => :'String',
72
72
  :'name' => :'String',
73
73
  :'namespace' => :'String'
@@ -95,6 +95,12 @@ module PulpAnsibleClient
95
95
  h[k.to_sym] = v
96
96
  }
97
97
 
98
+ if attributes.key?(:'pulp_labels')
99
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
100
+ self.pulp_labels = value
101
+ end
102
+ end
103
+
98
104
  if attributes.key?(:'pulp_created')
99
105
  self.pulp_created = attributes[:'pulp_created']
100
106
  end
@@ -105,22 +111,16 @@ module PulpAnsibleClient
105
111
  self.artifact = nil
106
112
  end
107
113
 
108
- if attributes.key?(:'pulp_href')
109
- self.pulp_href = attributes[:'pulp_href']
110
- end
111
-
112
114
  if attributes.key?(:'prn')
113
115
  self.prn = attributes[:'prn']
114
116
  end
115
117
 
116
- if attributes.key?(:'pulp_last_updated')
117
- self.pulp_last_updated = attributes[:'pulp_last_updated']
118
+ if attributes.key?(:'pulp_href')
119
+ self.pulp_href = attributes[:'pulp_href']
118
120
  end
119
121
 
120
- if attributes.key?(:'pulp_labels')
121
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
122
- self.pulp_labels = value
123
- end
122
+ if attributes.key?(:'pulp_last_updated')
123
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
124
124
  end
125
125
 
126
126
  if attributes.key?(:'version')
@@ -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_labels == o.pulp_labels &&
185
186
  pulp_created == o.pulp_created &&
186
187
  artifact == o.artifact &&
187
- pulp_href == o.pulp_href &&
188
188
  prn == o.prn &&
189
+ pulp_href == o.pulp_href &&
189
190
  pulp_last_updated == o.pulp_last_updated &&
190
- pulp_labels == o.pulp_labels &&
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_created, artifact, pulp_href, prn, pulp_last_updated, pulp_labels, version, name, namespace].hash
205
+ [pulp_labels, pulp_created, artifact, prn, pulp_href, pulp_last_updated, version, name, namespace].hash
206
206
  end
207
207
 
208
208
  # Builds the object from hash