pulp_ansible_client 0.29.7 → 0.29.9

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