pulp_ansible_client 0.29.5 → 0.29.7

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 (59) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleAnsibleRepository.md +2 -0
  4. data/docs/AnsibleAnsibleRepositoryResponse.md +2 -0
  5. data/docs/AnsibleCollectionVersionResponse.md +8 -8
  6. data/docs/AnsibleGitRemote.md +22 -22
  7. data/docs/AnsibleGitRemoteResponse.md +22 -22
  8. data/docs/AnsibleRole.md +2 -2
  9. data/docs/AnsibleRoleResponse.md +8 -8
  10. data/docs/ContentCollectionVersionsApi.md +8 -8
  11. data/docs/PatchedansibleAnsibleRepository.md +2 -0
  12. data/docs/PatchedansibleGitRemote.md +22 -22
  13. data/docs/RepositoriesAnsibleApi.md +18 -2
  14. data/docs/Repository.md +2 -0
  15. data/docs/RepositoryResponse.md +2 -0
  16. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +12 -12
  17. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +27 -3
  18. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +42 -1
  19. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +42 -1
  20. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +33 -0
  21. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +30 -0
  22. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +51 -36
  23. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +209 -194
  24. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +124 -109
  25. data/lib/pulp_ansible_client/models/ansible_role.rb +13 -13
  26. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +15 -0
  27. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +15 -0
  28. data/lib/pulp_ansible_client/models/ansible_role_response.rb +36 -36
  29. data/lib/pulp_ansible_client/models/collection_summary_response.rb +15 -0
  30. data/lib/pulp_ansible_client/models/collection_version_list_response.rb +15 -0
  31. data/lib/pulp_ansible_client/models/collection_version_response.rb +15 -0
  32. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +42 -1
  33. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +33 -0
  34. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +205 -190
  35. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +15 -0
  36. data/lib/pulp_ansible_client/models/remote_network_config.rb +15 -0
  37. data/lib/pulp_ansible_client/models/remote_network_config_response.rb +15 -0
  38. data/lib/pulp_ansible_client/models/repository.rb +42 -1
  39. data/lib/pulp_ansible_client/models/repository_response.rb +42 -1
  40. data/lib/pulp_ansible_client/models/set_label.rb +0 -11
  41. data/lib/pulp_ansible_client/models/set_label_response.rb +0 -21
  42. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +15 -0
  43. data/lib/pulp_ansible_client/models/unset_label.rb +0 -11
  44. data/lib/pulp_ansible_client/models/unset_label_response.rb +0 -21
  45. data/lib/pulp_ansible_client/version.rb +1 -1
  46. data/spec/api/content_collection_versions_api_spec.rb +4 -4
  47. data/spec/api/repositories_ansible_api_spec.rb +9 -1
  48. data/spec/models/ansible_ansible_repository_response_spec.rb +6 -0
  49. data/spec/models/ansible_ansible_repository_spec.rb +6 -0
  50. data/spec/models/ansible_collection_version_response_spec.rb +7 -7
  51. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  52. data/spec/models/ansible_git_remote_spec.rb +16 -16
  53. data/spec/models/ansible_role_response_spec.rb +7 -7
  54. data/spec/models/ansible_role_spec.rb +3 -3
  55. data/spec/models/patchedansible_ansible_repository_spec.rb +6 -0
  56. data/spec/models/patchedansible_git_remote_spec.rb +16 -16
  57. data/spec/models/repository_response_spec.rb +6 -0
  58. data/spec/models/repository_spec.rb +6 -0
  59. metadata +126 -126
@@ -324,13 +324,21 @@ module PulpAnsibleClient
324
324
  # @option opts [String] :name__regex Filter results where name matches regex value
325
325
  # @option opts [String] :name__startswith Filter results where name starts with value
326
326
  # @option opts [Integer] :offset The initial index from which to return the results.
327
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
327
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;retain_checkpoints&#x60; - Retain checkpoints * &#x60;-retain_checkpoints&#x60; - Retain checkpoints (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
328
328
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
329
329
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
330
330
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
331
331
  # @option opts [String] :pulp_label_select Filter labels by search string
332
332
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
333
333
  # @option opts [String] :remote
334
+ # @option opts [Integer] :retain_checkpoints Filter results where retain_checkpoints matches value
335
+ # @option opts [Integer] :retain_checkpoints__gt Filter results where retain_checkpoints is greater than value
336
+ # @option opts [Integer] :retain_checkpoints__gte Filter results where retain_checkpoints is greater than or equal to value
337
+ # @option opts [Boolean] :retain_checkpoints__isnull Filter results where retain_checkpoints has a null value
338
+ # @option opts [Integer] :retain_checkpoints__lt Filter results where retain_checkpoints is less than value
339
+ # @option opts [Integer] :retain_checkpoints__lte Filter results where retain_checkpoints is less than or equal to value
340
+ # @option opts [Integer] :retain_checkpoints__ne Filter results where retain_checkpoints not equal to value
341
+ # @option opts [Array<Integer>] :retain_checkpoints__range Filter results where retain_checkpoints is between two comma separated values
334
342
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
335
343
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
336
344
  # @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
@@ -364,13 +372,21 @@ module PulpAnsibleClient
364
372
  # @option opts [String] :name__regex Filter results where name matches regex value
365
373
  # @option opts [String] :name__startswith Filter results where name starts with value
366
374
  # @option opts [Integer] :offset The initial index from which to return the results.
367
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
375
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;retain_checkpoints&#x60; - Retain checkpoints * &#x60;-retain_checkpoints&#x60; - Retain checkpoints (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
368
376
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
369
377
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
370
378
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
371
379
  # @option opts [String] :pulp_label_select Filter labels by search string
372
380
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
373
381
  # @option opts [String] :remote
382
+ # @option opts [Integer] :retain_checkpoints Filter results where retain_checkpoints matches value
383
+ # @option opts [Integer] :retain_checkpoints__gt Filter results where retain_checkpoints is greater than value
384
+ # @option opts [Integer] :retain_checkpoints__gte Filter results where retain_checkpoints is greater than or equal to value
385
+ # @option opts [Boolean] :retain_checkpoints__isnull Filter results where retain_checkpoints has a null value
386
+ # @option opts [Integer] :retain_checkpoints__lt Filter results where retain_checkpoints is less than value
387
+ # @option opts [Integer] :retain_checkpoints__lte Filter results where retain_checkpoints is less than or equal to value
388
+ # @option opts [Integer] :retain_checkpoints__ne Filter results where retain_checkpoints not equal to value
389
+ # @option opts [Array<Integer>] :retain_checkpoints__range Filter results where retain_checkpoints is between two comma separated values
374
390
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
375
391
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
376
392
  # @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
@@ -387,7 +403,7 @@ module PulpAnsibleClient
387
403
  if @api_client.config.debugging
388
404
  @api_client.config.logger.debug 'Calling API: RepositoriesAnsibleApi.list ...'
389
405
  end
390
- allowable_values = ["-description", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-retain_repo_versions", "-user_hidden", "description", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "retain_repo_versions", "user_hidden"]
406
+ allowable_values = ["-description", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-retain_checkpoints", "-retain_repo_versions", "-user_hidden", "description", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "retain_checkpoints", "retain_repo_versions", "user_hidden"]
391
407
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
392
408
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
393
409
  end
@@ -415,6 +431,14 @@ module PulpAnsibleClient
415
431
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
416
432
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
417
433
  query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
434
+ query_params[:'retain_checkpoints'] = opts[:'retain_checkpoints'] if !opts[:'retain_checkpoints'].nil?
435
+ query_params[:'retain_checkpoints__gt'] = opts[:'retain_checkpoints__gt'] if !opts[:'retain_checkpoints__gt'].nil?
436
+ query_params[:'retain_checkpoints__gte'] = opts[:'retain_checkpoints__gte'] if !opts[:'retain_checkpoints__gte'].nil?
437
+ query_params[:'retain_checkpoints__isnull'] = opts[:'retain_checkpoints__isnull'] if !opts[:'retain_checkpoints__isnull'].nil?
438
+ query_params[:'retain_checkpoints__lt'] = opts[:'retain_checkpoints__lt'] if !opts[:'retain_checkpoints__lt'].nil?
439
+ query_params[:'retain_checkpoints__lte'] = opts[:'retain_checkpoints__lte'] if !opts[:'retain_checkpoints__lte'].nil?
440
+ query_params[:'retain_checkpoints__ne'] = opts[:'retain_checkpoints__ne'] if !opts[:'retain_checkpoints__ne'].nil?
441
+ query_params[:'retain_checkpoints__range'] = @api_client.build_collection_param(opts[:'retain_checkpoints__range'], :csv) if !opts[:'retain_checkpoints__range'].nil?
418
442
  query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
419
443
  query_params[:'retain_repo_versions__gt'] = opts[:'retain_repo_versions__gt'] if !opts[:'retain_repo_versions__gt'].nil?
420
444
  query_params[:'retain_repo_versions__gte'] = opts[:'retain_repo_versions__gte'] if !opts[:'retain_repo_versions__gte'].nil?
@@ -27,6 +27,9 @@ module PulpAnsibleClient
27
27
  # Retain X versions of the repository. Default is null which retains all versions.
28
28
  attr_accessor :retain_repo_versions
29
29
 
30
+ # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
31
+ attr_accessor :retain_checkpoints
32
+
30
33
  # An optional remote to use by default when syncing.
31
34
  attr_accessor :remote
32
35
 
@@ -45,6 +48,7 @@ module PulpAnsibleClient
45
48
  :'name' => :'name',
46
49
  :'description' => :'description',
47
50
  :'retain_repo_versions' => :'retain_repo_versions',
51
+ :'retain_checkpoints' => :'retain_checkpoints',
48
52
  :'remote' => :'remote',
49
53
  :'last_synced_metadata_time' => :'last_synced_metadata_time',
50
54
  :'gpgkey' => :'gpgkey',
@@ -64,6 +68,7 @@ module PulpAnsibleClient
64
68
  :'name' => :'String',
65
69
  :'description' => :'String',
66
70
  :'retain_repo_versions' => :'Integer',
71
+ :'retain_checkpoints' => :'Integer',
67
72
  :'remote' => :'String',
68
73
  :'last_synced_metadata_time' => :'Time',
69
74
  :'gpgkey' => :'String',
@@ -76,6 +81,7 @@ module PulpAnsibleClient
76
81
  Set.new([
77
82
  :'description',
78
83
  :'retain_repo_versions',
84
+ :'retain_checkpoints',
79
85
  :'remote',
80
86
  :'last_synced_metadata_time',
81
87
  :'gpgkey',
@@ -117,6 +123,10 @@ module PulpAnsibleClient
117
123
  self.retain_repo_versions = attributes[:'retain_repo_versions']
118
124
  end
119
125
 
126
+ if attributes.key?(:'retain_checkpoints')
127
+ self.retain_checkpoints = attributes[:'retain_checkpoints']
128
+ end
129
+
120
130
  if attributes.key?(:'remote')
121
131
  self.remote = attributes[:'remote']
122
132
  end
@@ -151,6 +161,14 @@ module PulpAnsibleClient
151
161
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
152
162
  end
153
163
 
164
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
165
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
166
+ end
167
+
168
+ if !@retain_checkpoints.nil? && @retain_checkpoints < 1
169
+ invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
170
+ end
171
+
154
172
  if !@gpgkey.nil? && @gpgkey.to_s.length < 1
155
173
  invalid_properties.push('invalid value for "gpgkey", the character length must be great than or equal to 1.')
156
174
  end
@@ -165,6 +183,8 @@ module PulpAnsibleClient
165
183
  return false if @name.nil?
166
184
  return false if @name.to_s.length < 1
167
185
  return false if !@description.nil? && @description.to_s.length < 1
186
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
187
+ return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
168
188
  return false if !@gpgkey.nil? && @gpgkey.to_s.length < 1
169
189
  true
170
190
  end
@@ -193,6 +213,26 @@ module PulpAnsibleClient
193
213
  @description = description
194
214
  end
195
215
 
216
+ # Custom attribute writer method with validation
217
+ # @param [Object] retain_repo_versions Value to be assigned
218
+ def retain_repo_versions=(retain_repo_versions)
219
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
220
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
221
+ end
222
+
223
+ @retain_repo_versions = retain_repo_versions
224
+ end
225
+
226
+ # Custom attribute writer method with validation
227
+ # @param [Object] retain_checkpoints Value to be assigned
228
+ def retain_checkpoints=(retain_checkpoints)
229
+ if !retain_checkpoints.nil? && retain_checkpoints < 1
230
+ fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
231
+ end
232
+
233
+ @retain_checkpoints = retain_checkpoints
234
+ end
235
+
196
236
  # Custom attribute writer method with validation
197
237
  # @param [Object] gpgkey Value to be assigned
198
238
  def gpgkey=(gpgkey)
@@ -212,6 +252,7 @@ module PulpAnsibleClient
212
252
  name == o.name &&
213
253
  description == o.description &&
214
254
  retain_repo_versions == o.retain_repo_versions &&
255
+ retain_checkpoints == o.retain_checkpoints &&
215
256
  remote == o.remote &&
216
257
  last_synced_metadata_time == o.last_synced_metadata_time &&
217
258
  gpgkey == o.gpgkey &&
@@ -227,7 +268,7 @@ module PulpAnsibleClient
227
268
  # Calculates hash code according to all attributes.
228
269
  # @return [Integer] Hash code
229
270
  def hash
230
- [pulp_labels, name, description, retain_repo_versions, remote, last_synced_metadata_time, gpgkey, private].hash
271
+ [pulp_labels, name, description, retain_repo_versions, retain_checkpoints, remote, last_synced_metadata_time, gpgkey, private].hash
231
272
  end
232
273
 
233
274
  # Builds the object from hash
@@ -42,6 +42,9 @@ module PulpAnsibleClient
42
42
  # Retain X versions of the repository. Default is null which retains all versions.
43
43
  attr_accessor :retain_repo_versions
44
44
 
45
+ # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
46
+ attr_accessor :retain_checkpoints
47
+
45
48
  # An optional remote to use by default when syncing.
46
49
  attr_accessor :remote
47
50
 
@@ -68,6 +71,7 @@ module PulpAnsibleClient
68
71
  :'name' => :'name',
69
72
  :'description' => :'description',
70
73
  :'retain_repo_versions' => :'retain_repo_versions',
74
+ :'retain_checkpoints' => :'retain_checkpoints',
71
75
  :'remote' => :'remote',
72
76
  :'last_synced_metadata_time' => :'last_synced_metadata_time',
73
77
  :'gpgkey' => :'gpgkey',
@@ -94,6 +98,7 @@ module PulpAnsibleClient
94
98
  :'name' => :'String',
95
99
  :'description' => :'String',
96
100
  :'retain_repo_versions' => :'Integer',
101
+ :'retain_checkpoints' => :'Integer',
97
102
  :'remote' => :'String',
98
103
  :'last_synced_metadata_time' => :'Time',
99
104
  :'gpgkey' => :'String',
@@ -107,6 +112,7 @@ module PulpAnsibleClient
107
112
  Set.new([
108
113
  :'description',
109
114
  :'retain_repo_versions',
115
+ :'retain_checkpoints',
110
116
  :'remote',
111
117
  :'last_synced_metadata_time',
112
118
  :'gpgkey',
@@ -173,6 +179,10 @@ module PulpAnsibleClient
173
179
  self.retain_repo_versions = attributes[:'retain_repo_versions']
174
180
  end
175
181
 
182
+ if attributes.key?(:'retain_checkpoints')
183
+ self.retain_checkpoints = attributes[:'retain_checkpoints']
184
+ end
185
+
176
186
  if attributes.key?(:'remote')
177
187
  self.remote = attributes[:'remote']
178
188
  end
@@ -203,6 +213,14 @@ module PulpAnsibleClient
203
213
  invalid_properties.push('invalid value for "name", name cannot be nil.')
204
214
  end
205
215
 
216
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
217
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
218
+ end
219
+
220
+ if !@retain_checkpoints.nil? && @retain_checkpoints < 1
221
+ invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
222
+ end
223
+
206
224
  invalid_properties
207
225
  end
208
226
 
@@ -211,9 +229,31 @@ module PulpAnsibleClient
211
229
  def valid?
212
230
  warn '[DEPRECATED] the `valid?` method is obsolete'
213
231
  return false if @name.nil?
232
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
233
+ return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
214
234
  true
215
235
  end
216
236
 
237
+ # Custom attribute writer method with validation
238
+ # @param [Object] retain_repo_versions Value to be assigned
239
+ def retain_repo_versions=(retain_repo_versions)
240
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
241
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
242
+ end
243
+
244
+ @retain_repo_versions = retain_repo_versions
245
+ end
246
+
247
+ # Custom attribute writer method with validation
248
+ # @param [Object] retain_checkpoints Value to be assigned
249
+ def retain_checkpoints=(retain_checkpoints)
250
+ if !retain_checkpoints.nil? && retain_checkpoints < 1
251
+ fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
252
+ end
253
+
254
+ @retain_checkpoints = retain_checkpoints
255
+ end
256
+
217
257
  # Checks equality by comparing each attribute.
218
258
  # @param [Object] Object to be compared
219
259
  def ==(o)
@@ -229,6 +269,7 @@ module PulpAnsibleClient
229
269
  name == o.name &&
230
270
  description == o.description &&
231
271
  retain_repo_versions == o.retain_repo_versions &&
272
+ retain_checkpoints == o.retain_checkpoints &&
232
273
  remote == o.remote &&
233
274
  last_synced_metadata_time == o.last_synced_metadata_time &&
234
275
  gpgkey == o.gpgkey &&
@@ -245,7 +286,7 @@ module PulpAnsibleClient
245
286
  # Calculates hash code according to all attributes.
246
287
  # @return [Integer] Hash code
247
288
  def hash
248
- [pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, last_synced_metadata_time, gpgkey, last_sync_task, private].hash
289
+ [pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, retain_checkpoints, remote, last_synced_metadata_time, gpgkey, last_sync_task, private].hash
249
290
  end
250
291
 
251
292
  # Builds the object from hash
@@ -405,14 +405,26 @@ module PulpAnsibleClient
405
405
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
406
406
  end
407
407
 
408
+ if !@download_concurrency.nil? && @download_concurrency < 1
409
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
410
+ end
411
+
408
412
  if !@requirements_file.nil? && @requirements_file.to_s.length < 1
409
413
  invalid_properties.push('invalid value for "requirements_file", the character length must be great than or equal to 1.')
410
414
  end
411
415
 
416
+ if !@auth_url.nil? && @auth_url.to_s.length > 255
417
+ invalid_properties.push('invalid value for "auth_url", the character length must be smaller than or equal to 255.')
418
+ end
419
+
412
420
  if !@auth_url.nil? && @auth_url.to_s.length < 1
413
421
  invalid_properties.push('invalid value for "auth_url", the character length must be great than or equal to 1.')
414
422
  end
415
423
 
424
+ if !@token.nil? && @token.to_s.length > 2000
425
+ invalid_properties.push('invalid value for "token", the character length must be smaller than or equal to 2000.')
426
+ end
427
+
416
428
  if !@token.nil? && @token.to_s.length < 1
417
429
  invalid_properties.push('invalid value for "token", the character length must be great than or equal to 1.')
418
430
  end
@@ -440,8 +452,11 @@ module PulpAnsibleClient
440
452
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
441
453
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
442
454
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
455
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
443
456
  return false if !@requirements_file.nil? && @requirements_file.to_s.length < 1
457
+ return false if !@auth_url.nil? && @auth_url.to_s.length > 255
444
458
  return false if !@auth_url.nil? && @auth_url.to_s.length < 1
459
+ return false if !@token.nil? && @token.to_s.length > 2000
445
460
  return false if !@token.nil? && @token.to_s.length < 1
446
461
  true
447
462
  end
@@ -594,6 +609,16 @@ module PulpAnsibleClient
594
609
  @sock_read_timeout = sock_read_timeout
595
610
  end
596
611
 
612
+ # Custom attribute writer method with validation
613
+ # @param [Object] download_concurrency Value to be assigned
614
+ def download_concurrency=(download_concurrency)
615
+ if !download_concurrency.nil? && download_concurrency < 1
616
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
617
+ end
618
+
619
+ @download_concurrency = download_concurrency
620
+ end
621
+
597
622
  # Custom attribute writer method with validation
598
623
  # @param [Object] requirements_file Value to be assigned
599
624
  def requirements_file=(requirements_file)
@@ -607,6 +632,10 @@ module PulpAnsibleClient
607
632
  # Custom attribute writer method with validation
608
633
  # @param [Object] auth_url Value to be assigned
609
634
  def auth_url=(auth_url)
635
+ if !auth_url.nil? && auth_url.to_s.length > 255
636
+ fail ArgumentError, 'invalid value for "auth_url", the character length must be smaller than or equal to 255.'
637
+ end
638
+
610
639
  if !auth_url.nil? && auth_url.to_s.length < 1
611
640
  fail ArgumentError, 'invalid value for "auth_url", the character length must be great than or equal to 1.'
612
641
  end
@@ -617,6 +646,10 @@ module PulpAnsibleClient
617
646
  # Custom attribute writer method with validation
618
647
  # @param [Object] token Value to be assigned
619
648
  def token=(token)
649
+ if !token.nil? && token.to_s.length > 2000
650
+ fail ArgumentError, 'invalid value for "token", the character length must be smaller than or equal to 2000.'
651
+ end
652
+
620
653
  if !token.nil? && token.to_s.length < 1
621
654
  fail ArgumentError, 'invalid value for "token", the character length must be great than or equal to 1.'
622
655
  end
@@ -359,6 +359,14 @@ module PulpAnsibleClient
359
359
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
360
360
  end
361
361
 
362
+ if !@download_concurrency.nil? && @download_concurrency < 1
363
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
364
+ end
365
+
366
+ if !@auth_url.nil? && @auth_url.to_s.length > 255
367
+ invalid_properties.push('invalid value for "auth_url", the character length must be smaller than or equal to 255.')
368
+ end
369
+
362
370
  invalid_properties
363
371
  end
364
372
 
@@ -372,6 +380,8 @@ module PulpAnsibleClient
372
380
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
373
381
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
374
382
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
383
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
384
+ return false if !@auth_url.nil? && @auth_url.to_s.length > 255
375
385
  true
376
386
  end
377
387
 
@@ -415,6 +425,26 @@ module PulpAnsibleClient
415
425
  @sock_read_timeout = sock_read_timeout
416
426
  end
417
427
 
428
+ # Custom attribute writer method with validation
429
+ # @param [Object] download_concurrency Value to be assigned
430
+ def download_concurrency=(download_concurrency)
431
+ if !download_concurrency.nil? && download_concurrency < 1
432
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
433
+ end
434
+
435
+ @download_concurrency = download_concurrency
436
+ end
437
+
438
+ # Custom attribute writer method with validation
439
+ # @param [Object] auth_url Value to be assigned
440
+ def auth_url=(auth_url)
441
+ if !auth_url.nil? && auth_url.to_s.length > 255
442
+ fail ArgumentError, 'invalid value for "auth_url", the character length must be smaller than or equal to 255.'
443
+ end
444
+
445
+ @auth_url = auth_url
446
+ end
447
+
418
448
  # Checks equality by comparing each attribute.
419
449
  # @param [Object] Object to be compared
420
450
  def ==(o)
@@ -16,25 +16,25 @@ require 'time'
16
16
  module PulpAnsibleClient
17
17
  # A serializer for CollectionVersion Content.
18
18
  class AnsibleCollectionVersionResponse
19
- # 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.
20
- attr_accessor :pulp_last_updated
21
-
22
- attr_accessor :pulp_href
23
-
24
- attr_accessor :vuln_report
25
-
26
19
  # The Pulp Resource Name (PRN).
27
20
  attr_accessor :prn
28
21
 
29
22
  # Timestamp of creation.
30
23
  attr_accessor :pulp_created
31
24
 
32
- # Artifact file representing the physical content
33
- attr_accessor :artifact
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.
26
+ attr_accessor :pulp_last_updated
34
27
 
35
28
  # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
36
29
  attr_accessor :pulp_labels
37
30
 
31
+ attr_accessor :vuln_report
32
+
33
+ attr_accessor :pulp_href
34
+
35
+ # Artifact file representing the physical content
36
+ attr_accessor :artifact
37
+
38
38
  # The SHA-256 checksum if available.
39
39
  attr_accessor :sha256
40
40
 
@@ -97,13 +97,13 @@ module PulpAnsibleClient
97
97
  # Attribute mapping from ruby-style variable name to JSON key.
98
98
  def self.attribute_map
99
99
  {
100
- :'pulp_last_updated' => :'pulp_last_updated',
101
- :'pulp_href' => :'pulp_href',
102
- :'vuln_report' => :'vuln_report',
103
100
  :'prn' => :'prn',
104
101
  :'pulp_created' => :'pulp_created',
105
- :'artifact' => :'artifact',
102
+ :'pulp_last_updated' => :'pulp_last_updated',
106
103
  :'pulp_labels' => :'pulp_labels',
104
+ :'vuln_report' => :'vuln_report',
105
+ :'pulp_href' => :'pulp_href',
106
+ :'artifact' => :'artifact',
107
107
  :'sha256' => :'sha256',
108
108
  :'md5' => :'md5',
109
109
  :'sha1' => :'sha1',
@@ -135,13 +135,13 @@ module PulpAnsibleClient
135
135
  # Attribute type mapping.
136
136
  def self.openapi_types
137
137
  {
138
- :'pulp_last_updated' => :'Time',
139
- :'pulp_href' => :'String',
140
- :'vuln_report' => :'String',
141
138
  :'prn' => :'String',
142
139
  :'pulp_created' => :'Time',
143
- :'artifact' => :'String',
140
+ :'pulp_last_updated' => :'Time',
144
141
  :'pulp_labels' => :'Hash<String, String>',
142
+ :'vuln_report' => :'String',
143
+ :'pulp_href' => :'String',
144
+ :'artifact' => :'String',
145
145
  :'sha256' => :'String',
146
146
  :'md5' => :'String',
147
147
  :'sha1' => :'String',
@@ -187,18 +187,6 @@ module PulpAnsibleClient
187
187
  h[k.to_sym] = v
188
188
  }
189
189
 
190
- if attributes.key?(:'pulp_last_updated')
191
- self.pulp_last_updated = attributes[:'pulp_last_updated']
192
- end
193
-
194
- if attributes.key?(:'pulp_href')
195
- self.pulp_href = attributes[:'pulp_href']
196
- end
197
-
198
- if attributes.key?(:'vuln_report')
199
- self.vuln_report = attributes[:'vuln_report']
200
- end
201
-
202
190
  if attributes.key?(:'prn')
203
191
  self.prn = attributes[:'prn']
204
192
  end
@@ -207,8 +195,8 @@ module PulpAnsibleClient
207
195
  self.pulp_created = attributes[:'pulp_created']
208
196
  end
209
197
 
210
- if attributes.key?(:'artifact')
211
- self.artifact = attributes[:'artifact']
198
+ if attributes.key?(:'pulp_last_updated')
199
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
212
200
  end
213
201
 
214
202
  if attributes.key?(:'pulp_labels')
@@ -217,6 +205,18 @@ module PulpAnsibleClient
217
205
  end
218
206
  end
219
207
 
208
+ if attributes.key?(:'vuln_report')
209
+ self.vuln_report = attributes[:'vuln_report']
210
+ end
211
+
212
+ if attributes.key?(:'pulp_href')
213
+ self.pulp_href = attributes[:'pulp_href']
214
+ end
215
+
216
+ if attributes.key?(:'artifact')
217
+ self.artifact = attributes[:'artifact']
218
+ end
219
+
220
220
  if attributes.key?(:'sha256')
221
221
  self.sha256 = attributes[:'sha256']
222
222
  end
@@ -337,6 +337,10 @@ module PulpAnsibleClient
337
337
  invalid_properties.push('invalid value for "version", the character length must be smaller than or equal to 128.')
338
338
  end
339
339
 
340
+ if !@requires_ansible.nil? && @requires_ansible.to_s.length > 255
341
+ invalid_properties.push('invalid value for "requires_ansible", the character length must be smaller than or equal to 255.')
342
+ end
343
+
340
344
  invalid_properties
341
345
  end
342
346
 
@@ -351,6 +355,7 @@ module PulpAnsibleClient
351
355
  return false if !@namespace.nil? && @namespace.to_s.length > 64
352
356
  return false if !@origin_repository.nil? && @origin_repository.to_s.length > 2000
353
357
  return false if !@version.nil? && @version.to_s.length > 128
358
+ return false if !@requires_ansible.nil? && @requires_ansible.to_s.length > 255
354
359
  true
355
360
  end
356
361
 
@@ -452,18 +457,28 @@ module PulpAnsibleClient
452
457
  @version = version
453
458
  end
454
459
 
460
+ # Custom attribute writer method with validation
461
+ # @param [Object] requires_ansible Value to be assigned
462
+ def requires_ansible=(requires_ansible)
463
+ if !requires_ansible.nil? && requires_ansible.to_s.length > 255
464
+ fail ArgumentError, 'invalid value for "requires_ansible", the character length must be smaller than or equal to 255.'
465
+ end
466
+
467
+ @requires_ansible = requires_ansible
468
+ end
469
+
455
470
  # Checks equality by comparing each attribute.
456
471
  # @param [Object] Object to be compared
457
472
  def ==(o)
458
473
  return true if self.equal?(o)
459
474
  self.class == o.class &&
460
- pulp_last_updated == o.pulp_last_updated &&
461
- pulp_href == o.pulp_href &&
462
- vuln_report == o.vuln_report &&
463
475
  prn == o.prn &&
464
476
  pulp_created == o.pulp_created &&
465
- artifact == o.artifact &&
477
+ pulp_last_updated == o.pulp_last_updated &&
466
478
  pulp_labels == o.pulp_labels &&
479
+ vuln_report == o.vuln_report &&
480
+ pulp_href == o.pulp_href &&
481
+ artifact == o.artifact &&
467
482
  sha256 == o.sha256 &&
468
483
  md5 == o.md5 &&
469
484
  sha1 == o.sha1 &&
@@ -495,7 +510,7 @@ module PulpAnsibleClient
495
510
  # Calculates hash code according to all attributes.
496
511
  # @return [Integer] Hash code
497
512
  def hash
498
- [pulp_last_updated, pulp_href, vuln_report, prn, pulp_created, artifact, pulp_labels, sha256, md5, sha1, sha224, sha384, sha512, id, authors, dependencies, description, documentation, homepage, issues, license, name, namespace, origin_repository, tags, version, requires_ansible].hash
513
+ [prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, pulp_href, artifact, sha256, md5, sha1, sha224, sha384, sha512, id, authors, dependencies, description, documentation, homepage, issues, license, name, namespace, origin_repository, tags, version, requires_ansible].hash
499
514
  end
500
515
 
501
516
  # Builds the object from hash