pulp_ansible_client 0.28.1 → 0.29.1

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