pulp_ansible_client 0.28.1 → 0.28.3

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