pulp_ansible_client 0.29.10 → 0.30.0

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