pulp_ansible_client 0.24.4 → 0.24.6

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