pulp_ansible_client 0.24.2 → 0.24.4

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