pulp_ansible_client 0.29.0 → 0.29.1

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,63 +16,63 @@ require 'time'
16
16
  module PulpAnsibleClient
17
17
  # A serializer for Git Collection Remotes.
18
18
  class AnsibleGitRemoteResponse
19
- # A unique name for this remote.
20
- attr_accessor :name
21
-
22
- attr_accessor :pulp_href
23
-
24
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
25
- attr_accessor :ca_cert
26
-
27
- # The URL of an external content source.
28
- attr_accessor :url
29
-
30
- # Limits requests per second for each concurrent downloader
31
- attr_accessor :rate_limit
19
+ # The proxy URL. Format: scheme://host:port
20
+ attr_accessor :proxy_url
32
21
 
33
- # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
34
- attr_accessor :sock_connect_timeout
22
+ # Total number of simultaneous connections. If not set then the default value will be used.
23
+ attr_accessor :download_concurrency
35
24
 
36
25
  # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
37
26
  attr_accessor :connect_timeout
38
27
 
39
- # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
40
- attr_accessor :sock_read_timeout
41
-
42
- attr_accessor :pulp_labels
28
+ # Timestamp of the most recent update of the remote.
29
+ attr_accessor :pulp_last_updated
43
30
 
44
31
  # List of hidden (write only) fields
45
32
  attr_accessor :hidden_fields
46
33
 
47
- # The proxy URL. Format: scheme://host:port
48
- attr_accessor :proxy_url
34
+ # A unique name for this remote.
35
+ attr_accessor :name
49
36
 
50
37
  # Headers for aiohttp.Clientsession
51
38
  attr_accessor :headers
52
39
 
40
+ # If True, TLS peer validation must be performed.
41
+ attr_accessor :tls_validation
42
+
43
+ # The URL of an external content source.
44
+ attr_accessor :url
45
+
46
+ # Limits requests per second for each concurrent downloader
47
+ attr_accessor :rate_limit
48
+
49
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
50
+ attr_accessor :ca_cert
51
+
53
52
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
54
53
  attr_accessor :total_timeout
55
54
 
56
- # A PEM encoded client certificate used for authentication.
57
- attr_accessor :client_cert
55
+ # The Pulp Resource Name (PRN).
56
+ attr_accessor :prn
58
57
 
59
58
  # Timestamp of creation.
60
59
  attr_accessor :pulp_created
61
60
 
62
- # Timestamp of the most recent update of the remote.
63
- attr_accessor :pulp_last_updated
64
-
65
- # If True, TLS peer validation must be performed.
66
- attr_accessor :tls_validation
61
+ attr_accessor :pulp_href
67
62
 
68
- # Total number of simultaneous connections. If not set then the default value will be used.
69
- attr_accessor :download_concurrency
63
+ attr_accessor :pulp_labels
70
64
 
71
65
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
72
66
  attr_accessor :max_retries
73
67
 
74
- # The Pulp Resource Name (PRN).
75
- attr_accessor :prn
68
+ # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
69
+ attr_accessor :sock_read_timeout
70
+
71
+ # A PEM encoded client certificate used for authentication.
72
+ attr_accessor :client_cert
73
+
74
+ # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
75
+ attr_accessor :sock_connect_timeout
76
76
 
77
77
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
78
78
  attr_accessor :metadata_only
@@ -83,26 +83,26 @@ module PulpAnsibleClient
83
83
  # Attribute mapping from ruby-style variable name to JSON key.
84
84
  def self.attribute_map
85
85
  {
86
- :'name' => :'name',
87
- :'pulp_href' => :'pulp_href',
88
- :'ca_cert' => :'ca_cert',
89
- :'url' => :'url',
90
- :'rate_limit' => :'rate_limit',
91
- :'sock_connect_timeout' => :'sock_connect_timeout',
86
+ :'proxy_url' => :'proxy_url',
87
+ :'download_concurrency' => :'download_concurrency',
92
88
  :'connect_timeout' => :'connect_timeout',
93
- :'sock_read_timeout' => :'sock_read_timeout',
94
- :'pulp_labels' => :'pulp_labels',
89
+ :'pulp_last_updated' => :'pulp_last_updated',
95
90
  :'hidden_fields' => :'hidden_fields',
96
- :'proxy_url' => :'proxy_url',
91
+ :'name' => :'name',
97
92
  :'headers' => :'headers',
93
+ :'tls_validation' => :'tls_validation',
94
+ :'url' => :'url',
95
+ :'rate_limit' => :'rate_limit',
96
+ :'ca_cert' => :'ca_cert',
98
97
  :'total_timeout' => :'total_timeout',
99
- :'client_cert' => :'client_cert',
98
+ :'prn' => :'prn',
100
99
  :'pulp_created' => :'pulp_created',
101
- :'pulp_last_updated' => :'pulp_last_updated',
102
- :'tls_validation' => :'tls_validation',
103
- :'download_concurrency' => :'download_concurrency',
100
+ :'pulp_href' => :'pulp_href',
101
+ :'pulp_labels' => :'pulp_labels',
104
102
  :'max_retries' => :'max_retries',
105
- :'prn' => :'prn',
103
+ :'sock_read_timeout' => :'sock_read_timeout',
104
+ :'client_cert' => :'client_cert',
105
+ :'sock_connect_timeout' => :'sock_connect_timeout',
106
106
  :'metadata_only' => :'metadata_only',
107
107
  :'git_ref' => :'git_ref'
108
108
  }
@@ -116,26 +116,26 @@ module PulpAnsibleClient
116
116
  # Attribute type mapping.
117
117
  def self.openapi_types
118
118
  {
119
- :'name' => :'String',
120
- :'pulp_href' => :'String',
121
- :'ca_cert' => :'String',
122
- :'url' => :'String',
123
- :'rate_limit' => :'Integer',
124
- :'sock_connect_timeout' => :'Float',
119
+ :'proxy_url' => :'String',
120
+ :'download_concurrency' => :'Integer',
125
121
  :'connect_timeout' => :'Float',
126
- :'sock_read_timeout' => :'Float',
127
- :'pulp_labels' => :'Hash<String, String>',
122
+ :'pulp_last_updated' => :'Time',
128
123
  :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
129
- :'proxy_url' => :'String',
124
+ :'name' => :'String',
130
125
  :'headers' => :'Array<Object>',
126
+ :'tls_validation' => :'Boolean',
127
+ :'url' => :'String',
128
+ :'rate_limit' => :'Integer',
129
+ :'ca_cert' => :'String',
131
130
  :'total_timeout' => :'Float',
132
- :'client_cert' => :'String',
131
+ :'prn' => :'String',
133
132
  :'pulp_created' => :'Time',
134
- :'pulp_last_updated' => :'Time',
135
- :'tls_validation' => :'Boolean',
136
- :'download_concurrency' => :'Integer',
133
+ :'pulp_href' => :'String',
134
+ :'pulp_labels' => :'Hash<String, String>',
137
135
  :'max_retries' => :'Integer',
138
- :'prn' => :'String',
136
+ :'sock_read_timeout' => :'Float',
137
+ :'client_cert' => :'String',
138
+ :'sock_connect_timeout' => :'Float',
139
139
  :'metadata_only' => :'Boolean',
140
140
  :'git_ref' => :'String'
141
141
  }
@@ -144,16 +144,16 @@ module PulpAnsibleClient
144
144
  # List of attributes with nullable: true
145
145
  def self.openapi_nullable
146
146
  Set.new([
147
- :'ca_cert',
148
- :'rate_limit',
149
- :'sock_connect_timeout',
150
- :'connect_timeout',
151
- :'sock_read_timeout',
152
147
  :'proxy_url',
153
- :'total_timeout',
154
- :'client_cert',
155
148
  :'download_concurrency',
149
+ :'connect_timeout',
150
+ :'rate_limit',
151
+ :'ca_cert',
152
+ :'total_timeout',
156
153
  :'max_retries',
154
+ :'sock_read_timeout',
155
+ :'client_cert',
156
+ :'sock_connect_timeout',
157
157
  ])
158
158
  end
159
159
 
@@ -172,46 +172,20 @@ module PulpAnsibleClient
172
172
  h[k.to_sym] = v
173
173
  }
174
174
 
175
- if attributes.key?(:'name')
176
- self.name = attributes[:'name']
177
- else
178
- self.name = nil
179
- end
180
-
181
- if attributes.key?(:'pulp_href')
182
- self.pulp_href = attributes[:'pulp_href']
183
- end
184
-
185
- if attributes.key?(:'ca_cert')
186
- self.ca_cert = attributes[:'ca_cert']
187
- end
188
-
189
- if attributes.key?(:'url')
190
- self.url = attributes[:'url']
191
- else
192
- self.url = nil
193
- end
194
-
195
- if attributes.key?(:'rate_limit')
196
- self.rate_limit = attributes[:'rate_limit']
175
+ if attributes.key?(:'proxy_url')
176
+ self.proxy_url = attributes[:'proxy_url']
197
177
  end
198
178
 
199
- if attributes.key?(:'sock_connect_timeout')
200
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
179
+ if attributes.key?(:'download_concurrency')
180
+ self.download_concurrency = attributes[:'download_concurrency']
201
181
  end
202
182
 
203
183
  if attributes.key?(:'connect_timeout')
204
184
  self.connect_timeout = attributes[:'connect_timeout']
205
185
  end
206
186
 
207
- if attributes.key?(:'sock_read_timeout')
208
- self.sock_read_timeout = attributes[:'sock_read_timeout']
209
- end
210
-
211
- if attributes.key?(:'pulp_labels')
212
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
213
- self.pulp_labels = value
214
- end
187
+ if attributes.key?(:'pulp_last_updated')
188
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
215
189
  end
216
190
 
217
191
  if attributes.key?(:'hidden_fields')
@@ -220,8 +194,10 @@ module PulpAnsibleClient
220
194
  end
221
195
  end
222
196
 
223
- if attributes.key?(:'proxy_url')
224
- self.proxy_url = attributes[:'proxy_url']
197
+ if attributes.key?(:'name')
198
+ self.name = attributes[:'name']
199
+ else
200
+ self.name = nil
225
201
  end
226
202
 
227
203
  if attributes.key?(:'headers')
@@ -230,36 +206,60 @@ module PulpAnsibleClient
230
206
  end
231
207
  end
232
208
 
209
+ if attributes.key?(:'tls_validation')
210
+ self.tls_validation = attributes[:'tls_validation']
211
+ end
212
+
213
+ if attributes.key?(:'url')
214
+ self.url = attributes[:'url']
215
+ else
216
+ self.url = nil
217
+ end
218
+
219
+ if attributes.key?(:'rate_limit')
220
+ self.rate_limit = attributes[:'rate_limit']
221
+ end
222
+
223
+ if attributes.key?(:'ca_cert')
224
+ self.ca_cert = attributes[:'ca_cert']
225
+ end
226
+
233
227
  if attributes.key?(:'total_timeout')
234
228
  self.total_timeout = attributes[:'total_timeout']
235
229
  end
236
230
 
237
- if attributes.key?(:'client_cert')
238
- self.client_cert = attributes[:'client_cert']
231
+ if attributes.key?(:'prn')
232
+ self.prn = attributes[:'prn']
239
233
  end
240
234
 
241
235
  if attributes.key?(:'pulp_created')
242
236
  self.pulp_created = attributes[:'pulp_created']
243
237
  end
244
238
 
245
- if attributes.key?(:'pulp_last_updated')
246
- self.pulp_last_updated = attributes[:'pulp_last_updated']
247
- end
248
-
249
- if attributes.key?(:'tls_validation')
250
- self.tls_validation = attributes[:'tls_validation']
239
+ if attributes.key?(:'pulp_href')
240
+ self.pulp_href = attributes[:'pulp_href']
251
241
  end
252
242
 
253
- if attributes.key?(:'download_concurrency')
254
- self.download_concurrency = attributes[:'download_concurrency']
243
+ if attributes.key?(:'pulp_labels')
244
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
245
+ self.pulp_labels = value
246
+ end
255
247
  end
256
248
 
257
249
  if attributes.key?(:'max_retries')
258
250
  self.max_retries = attributes[:'max_retries']
259
251
  end
260
252
 
261
- if attributes.key?(:'prn')
262
- self.prn = attributes[:'prn']
253
+ if attributes.key?(:'sock_read_timeout')
254
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
255
+ end
256
+
257
+ if attributes.key?(:'client_cert')
258
+ self.client_cert = attributes[:'client_cert']
259
+ end
260
+
261
+ if attributes.key?(:'sock_connect_timeout')
262
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
263
263
  end
264
264
 
265
265
  if attributes.key?(:'metadata_only')
@@ -276,6 +276,10 @@ module PulpAnsibleClient
276
276
  def list_invalid_properties
277
277
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
278
278
  invalid_properties = Array.new
279
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
280
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
281
+ end
282
+
279
283
  if @name.nil?
280
284
  invalid_properties.push('invalid value for "name", name cannot be nil.')
281
285
  end
@@ -284,20 +288,16 @@ module PulpAnsibleClient
284
288
  invalid_properties.push('invalid value for "url", url cannot be nil.')
285
289
  end
286
290
 
287
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
288
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
289
- end
290
-
291
- if !@connect_timeout.nil? && @connect_timeout < 0.0
292
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
291
+ if !@total_timeout.nil? && @total_timeout < 0.0
292
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
293
293
  end
294
294
 
295
295
  if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
296
296
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
297
297
  end
298
298
 
299
- if !@total_timeout.nil? && @total_timeout < 0.0
300
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
299
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
300
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
301
301
  end
302
302
 
303
303
  invalid_properties
@@ -307,25 +307,15 @@ module PulpAnsibleClient
307
307
  # @return true if the model is valid
308
308
  def valid?
309
309
  warn '[DEPRECATED] the `valid?` method is obsolete'
310
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
310
311
  return false if @name.nil?
311
312
  return false if @url.nil?
312
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
313
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
314
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
315
313
  return false if !@total_timeout.nil? && @total_timeout < 0.0
314
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
315
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
316
316
  true
317
317
  end
318
318
 
319
- # Custom attribute writer method with validation
320
- # @param [Object] sock_connect_timeout Value to be assigned
321
- def sock_connect_timeout=(sock_connect_timeout)
322
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
323
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
324
- end
325
-
326
- @sock_connect_timeout = sock_connect_timeout
327
- end
328
-
329
319
  # Custom attribute writer method with validation
330
320
  # @param [Object] connect_timeout Value to be assigned
331
321
  def connect_timeout=(connect_timeout)
@@ -336,6 +326,16 @@ module PulpAnsibleClient
336
326
  @connect_timeout = connect_timeout
337
327
  end
338
328
 
329
+ # Custom attribute writer method with validation
330
+ # @param [Object] total_timeout Value to be assigned
331
+ def total_timeout=(total_timeout)
332
+ if !total_timeout.nil? && total_timeout < 0.0
333
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
334
+ end
335
+
336
+ @total_timeout = total_timeout
337
+ end
338
+
339
339
  # Custom attribute writer method with validation
340
340
  # @param [Object] sock_read_timeout Value to be assigned
341
341
  def sock_read_timeout=(sock_read_timeout)
@@ -347,13 +347,13 @@ module PulpAnsibleClient
347
347
  end
348
348
 
349
349
  # Custom attribute writer method with validation
350
- # @param [Object] total_timeout Value to be assigned
351
- def total_timeout=(total_timeout)
352
- if !total_timeout.nil? && total_timeout < 0.0
353
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
350
+ # @param [Object] sock_connect_timeout Value to be assigned
351
+ def sock_connect_timeout=(sock_connect_timeout)
352
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
353
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
354
354
  end
355
355
 
356
- @total_timeout = total_timeout
356
+ @sock_connect_timeout = sock_connect_timeout
357
357
  end
358
358
 
359
359
  # Checks equality by comparing each attribute.
@@ -361,26 +361,26 @@ module PulpAnsibleClient
361
361
  def ==(o)
362
362
  return true if self.equal?(o)
363
363
  self.class == o.class &&
364
- name == o.name &&
365
- pulp_href == o.pulp_href &&
366
- ca_cert == o.ca_cert &&
367
- url == o.url &&
368
- rate_limit == o.rate_limit &&
369
- sock_connect_timeout == o.sock_connect_timeout &&
364
+ proxy_url == o.proxy_url &&
365
+ download_concurrency == o.download_concurrency &&
370
366
  connect_timeout == o.connect_timeout &&
371
- sock_read_timeout == o.sock_read_timeout &&
372
- pulp_labels == o.pulp_labels &&
367
+ pulp_last_updated == o.pulp_last_updated &&
373
368
  hidden_fields == o.hidden_fields &&
374
- proxy_url == o.proxy_url &&
369
+ name == o.name &&
375
370
  headers == o.headers &&
371
+ tls_validation == o.tls_validation &&
372
+ url == o.url &&
373
+ rate_limit == o.rate_limit &&
374
+ ca_cert == o.ca_cert &&
376
375
  total_timeout == o.total_timeout &&
377
- client_cert == o.client_cert &&
376
+ prn == o.prn &&
378
377
  pulp_created == o.pulp_created &&
379
- pulp_last_updated == o.pulp_last_updated &&
380
- tls_validation == o.tls_validation &&
381
- download_concurrency == o.download_concurrency &&
378
+ pulp_href == o.pulp_href &&
379
+ pulp_labels == o.pulp_labels &&
382
380
  max_retries == o.max_retries &&
383
- prn == o.prn &&
381
+ sock_read_timeout == o.sock_read_timeout &&
382
+ client_cert == o.client_cert &&
383
+ sock_connect_timeout == o.sock_connect_timeout &&
384
384
  metadata_only == o.metadata_only &&
385
385
  git_ref == o.git_ref
386
386
  end
@@ -394,7 +394,7 @@ module PulpAnsibleClient
394
394
  # Calculates hash code according to all attributes.
395
395
  # @return [Integer] Hash code
396
396
  def hash
397
- [name, pulp_href, ca_cert, url, rate_limit, sock_connect_timeout, connect_timeout, sock_read_timeout, pulp_labels, hidden_fields, proxy_url, headers, total_timeout, client_cert, pulp_created, pulp_last_updated, tls_validation, download_concurrency, max_retries, prn, metadata_only, git_ref].hash
397
+ [proxy_url, download_concurrency, connect_timeout, pulp_last_updated, hidden_fields, name, headers, tls_validation, url, rate_limit, ca_cert, total_timeout, prn, pulp_created, pulp_href, pulp_labels, max_retries, sock_read_timeout, client_cert, sock_connect_timeout, metadata_only, git_ref].hash
398
398
  end
399
399
 
400
400
  # Builds the object from hash
@@ -16,12 +16,12 @@ require 'time'
16
16
  module PulpAnsibleClient
17
17
  # A serializer for Role versions.
18
18
  class AnsibleRole
19
- # Artifact file representing the physical content
20
- attr_accessor :artifact
21
-
22
19
  # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
23
20
  attr_accessor :pulp_labels
24
21
 
22
+ # Artifact file representing the physical content
23
+ attr_accessor :artifact
24
+
25
25
  # A URI of a repository the new content unit should be associated with.
26
26
  attr_accessor :repository
27
27
 
@@ -34,8 +34,8 @@ module PulpAnsibleClient
34
34
  # Attribute mapping from ruby-style variable name to JSON key.
35
35
  def self.attribute_map
36
36
  {
37
- :'artifact' => :'artifact',
38
37
  :'pulp_labels' => :'pulp_labels',
38
+ :'artifact' => :'artifact',
39
39
  :'repository' => :'repository',
40
40
  :'version' => :'version',
41
41
  :'name' => :'name',
@@ -51,8 +51,8 @@ module PulpAnsibleClient
51
51
  # Attribute type mapping.
52
52
  def self.openapi_types
53
53
  {
54
- :'artifact' => :'String',
55
54
  :'pulp_labels' => :'Hash<String, String>',
55
+ :'artifact' => :'String',
56
56
  :'repository' => :'String',
57
57
  :'version' => :'String',
58
58
  :'name' => :'String',
@@ -81,18 +81,18 @@ module PulpAnsibleClient
81
81
  h[k.to_sym] = v
82
82
  }
83
83
 
84
- if attributes.key?(:'artifact')
85
- self.artifact = attributes[:'artifact']
86
- else
87
- self.artifact = nil
88
- end
89
-
90
84
  if attributes.key?(:'pulp_labels')
91
85
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
92
86
  self.pulp_labels = value
93
87
  end
94
88
  end
95
89
 
90
+ if attributes.key?(:'artifact')
91
+ self.artifact = attributes[:'artifact']
92
+ else
93
+ self.artifact = nil
94
+ end
95
+
96
96
  if attributes.key?(:'repository')
97
97
  self.repository = attributes[:'repository']
98
98
  end
@@ -213,8 +213,8 @@ module PulpAnsibleClient
213
213
  def ==(o)
214
214
  return true if self.equal?(o)
215
215
  self.class == o.class &&
216
- artifact == o.artifact &&
217
216
  pulp_labels == o.pulp_labels &&
217
+ artifact == o.artifact &&
218
218
  repository == o.repository &&
219
219
  version == o.version &&
220
220
  name == o.name &&
@@ -230,7 +230,7 @@ module PulpAnsibleClient
230
230
  # Calculates hash code according to all attributes.
231
231
  # @return [Integer] Hash code
232
232
  def hash
233
- [artifact, pulp_labels, repository, version, name, namespace].hash
233
+ [pulp_labels, artifact, repository, version, name, namespace].hash
234
234
  end
235
235
 
236
236
  # Builds the object from hash