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