pulp_ansible_client 0.29.6 → 0.29.7

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