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