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