pulp_ansible_client 0.17.3 → 0.17.4

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