pulp_ansible_client 0.21.4 → 0.21.5

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