pulp_ansible_client 0.28.4 → 0.28.6

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