pulp_ansible_client 0.24.0 → 0.24.1

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