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