pulp_ostree_client 2.6.0 → 2.6.1

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 +7 -7
  3. data/docs/ContentCommitsApi.md +6 -6
  4. data/docs/ContentConfigsApi.md +6 -6
  5. data/docs/ContentContentApi.md +6 -6
  6. data/docs/ContentObjectsApi.md +6 -6
  7. data/docs/ContentRefsApi.md +6 -6
  8. data/docs/ContentSummariesApi.md +6 -6
  9. data/docs/DistributionsOstreeApi.md +4 -4
  10. data/docs/OstreeOstreeContent.md +2 -0
  11. data/docs/OstreeOstreeDistributionResponse.md +2 -0
  12. data/docs/OstreeOstreeRemote.md +6 -6
  13. data/docs/OstreeOstreeRemoteResponse.md +8 -8
  14. data/docs/OstreeOstreeRepository.md +2 -0
  15. data/docs/OstreeOstreeRepositoryResponse.md +2 -0
  16. data/docs/PatchedostreeOstreeRemote.md +6 -6
  17. data/docs/PatchedostreeOstreeRepository.md +2 -0
  18. data/docs/RepositoriesOstreeApi.md +20 -4
  19. data/docs/RepositoryAddRemoveContent.md +3 -1
  20. data/lib/pulp_ostree_client/api/content_commits_api.rb +6 -6
  21. data/lib/pulp_ostree_client/api/content_configs_api.rb +6 -6
  22. data/lib/pulp_ostree_client/api/content_content_api.rb +6 -6
  23. data/lib/pulp_ostree_client/api/content_objects_api.rb +6 -6
  24. data/lib/pulp_ostree_client/api/content_refs_api.rb +6 -6
  25. data/lib/pulp_ostree_client/api/content_summaries_api.rb +6 -6
  26. data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +4 -4
  27. data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +29 -5
  28. data/lib/pulp_ostree_client/models/ostree_ostree_content.rb +11 -1
  29. data/lib/pulp_ostree_client/models/ostree_ostree_distribution_response.rb +11 -1
  30. data/lib/pulp_ostree_client/models/ostree_ostree_remote.rb +48 -33
  31. data/lib/pulp_ostree_client/models/ostree_ostree_remote_response.rb +60 -45
  32. data/lib/pulp_ostree_client/models/ostree_ostree_repository.rb +42 -1
  33. data/lib/pulp_ostree_client/models/ostree_ostree_repository_response.rb +42 -1
  34. data/lib/pulp_ostree_client/models/patchedostree_ostree_remote.rb +48 -33
  35. data/lib/pulp_ostree_client/models/patchedostree_ostree_repository.rb +42 -1
  36. data/lib/pulp_ostree_client/models/repository_add_remove_content.rb +16 -4
  37. data/lib/pulp_ostree_client/models/set_label.rb +0 -11
  38. data/lib/pulp_ostree_client/models/set_label_response.rb +0 -21
  39. data/lib/pulp_ostree_client/models/unset_label.rb +0 -11
  40. data/lib/pulp_ostree_client/models/unset_label_response.rb +0 -21
  41. data/lib/pulp_ostree_client/version.rb +1 -1
  42. data/spec/api/content_commits_api_spec.rb +3 -3
  43. data/spec/api/content_configs_api_spec.rb +3 -3
  44. data/spec/api/content_content_api_spec.rb +3 -3
  45. data/spec/api/content_objects_api_spec.rb +3 -3
  46. data/spec/api/content_refs_api_spec.rb +3 -3
  47. data/spec/api/content_summaries_api_spec.rb +3 -3
  48. data/spec/api/distributions_ostree_api_spec.rb +2 -2
  49. data/spec/api/repositories_ostree_api_spec.rb +10 -2
  50. data/spec/models/ostree_ostree_content_spec.rb +6 -0
  51. data/spec/models/ostree_ostree_distribution_response_spec.rb +6 -0
  52. data/spec/models/ostree_ostree_remote_response_spec.rb +10 -10
  53. data/spec/models/ostree_ostree_remote_spec.rb +17 -17
  54. data/spec/models/ostree_ostree_repository_response_spec.rb +6 -0
  55. data/spec/models/ostree_ostree_repository_spec.rb +6 -0
  56. data/spec/models/patchedostree_ostree_remote_spec.rb +17 -17
  57. data/spec/models/patchedostree_ostree_repository_spec.rb +6 -0
  58. data/spec/models/repository_add_remove_content_spec.rb +6 -0
  59. metadata +41 -41
@@ -33,6 +33,14 @@ module PulpOstreeClient
33
33
  # The URL of an external content source.
34
34
  attr_accessor :url
35
35
 
36
+ attr_accessor :pulp_labels
37
+
38
+ # immediate - All OSTree objects are downloaded and saved during synchronization. on_demand - Only commits, dirtrees, and refs are downloaded. Other OSTree objects are not downloaded until they are requested for the first time by a client. * `immediate` - immediate * `on_demand` - on_demand
39
+ attr_accessor :policy
40
+
41
+ # List of hidden (write only) fields
42
+ attr_accessor :hidden_fields
43
+
36
44
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
37
45
  attr_accessor :ca_cert
38
46
 
@@ -45,17 +53,9 @@ module PulpOstreeClient
45
53
  # The proxy URL. Format: scheme://host:port
46
54
  attr_accessor :proxy_url
47
55
 
48
- attr_accessor :pulp_labels
49
-
50
- # Total number of simultaneous connections. If not set then the default value will be used.
51
- attr_accessor :download_concurrency
52
-
53
56
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
54
57
  attr_accessor :max_retries
55
58
 
56
- # immediate - All OSTree objects are downloaded and saved during synchronization. on_demand - Only commits, dirtrees, and refs are downloaded. Other OSTree objects are not downloaded until they are requested for the first time by a client. * `immediate` - immediate * `on_demand` - on_demand
57
- attr_accessor :policy
58
-
59
59
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
60
60
  attr_accessor :total_timeout
61
61
 
@@ -71,12 +71,12 @@ module PulpOstreeClient
71
71
  # Headers for aiohttp.Clientsession
72
72
  attr_accessor :headers
73
73
 
74
+ # Total number of simultaneous connections. If not set then the default value will be used.
75
+ attr_accessor :download_concurrency
76
+
74
77
  # Limits requests per second for each concurrent downloader
75
78
  attr_accessor :rate_limit
76
79
 
77
- # List of hidden (write only) fields
78
- attr_accessor :hidden_fields
79
-
80
80
  # An option to specify how many commits to traverse.
81
81
  attr_accessor :depth
82
82
 
@@ -117,21 +117,21 @@ module PulpOstreeClient
117
117
  :'pulp_last_updated' => :'pulp_last_updated',
118
118
  :'name' => :'name',
119
119
  :'url' => :'url',
120
+ :'pulp_labels' => :'pulp_labels',
121
+ :'policy' => :'policy',
122
+ :'hidden_fields' => :'hidden_fields',
120
123
  :'ca_cert' => :'ca_cert',
121
124
  :'client_cert' => :'client_cert',
122
125
  :'tls_validation' => :'tls_validation',
123
126
  :'proxy_url' => :'proxy_url',
124
- :'pulp_labels' => :'pulp_labels',
125
- :'download_concurrency' => :'download_concurrency',
126
127
  :'max_retries' => :'max_retries',
127
- :'policy' => :'policy',
128
128
  :'total_timeout' => :'total_timeout',
129
129
  :'connect_timeout' => :'connect_timeout',
130
130
  :'sock_connect_timeout' => :'sock_connect_timeout',
131
131
  :'sock_read_timeout' => :'sock_read_timeout',
132
132
  :'headers' => :'headers',
133
+ :'download_concurrency' => :'download_concurrency',
133
134
  :'rate_limit' => :'rate_limit',
134
- :'hidden_fields' => :'hidden_fields',
135
135
  :'depth' => :'depth',
136
136
  :'include_refs' => :'include_refs',
137
137
  :'exclude_refs' => :'exclude_refs'
@@ -152,21 +152,21 @@ module PulpOstreeClient
152
152
  :'pulp_last_updated' => :'Time',
153
153
  :'name' => :'String',
154
154
  :'url' => :'String',
155
+ :'pulp_labels' => :'Hash<String, String>',
156
+ :'policy' => :'PolicyEnum',
157
+ :'hidden_fields' => :'Array<OstreeOstreeRemoteResponseHiddenFieldsInner>',
155
158
  :'ca_cert' => :'String',
156
159
  :'client_cert' => :'String',
157
160
  :'tls_validation' => :'Boolean',
158
161
  :'proxy_url' => :'String',
159
- :'pulp_labels' => :'Hash<String, String>',
160
- :'download_concurrency' => :'Integer',
161
162
  :'max_retries' => :'Integer',
162
- :'policy' => :'PolicyEnum',
163
163
  :'total_timeout' => :'Float',
164
164
  :'connect_timeout' => :'Float',
165
165
  :'sock_connect_timeout' => :'Float',
166
166
  :'sock_read_timeout' => :'Float',
167
167
  :'headers' => :'Array<Object>',
168
+ :'download_concurrency' => :'Integer',
168
169
  :'rate_limit' => :'Integer',
169
- :'hidden_fields' => :'Array<OstreeOstreeRemoteResponseHiddenFieldsInner>',
170
170
  :'depth' => :'Integer',
171
171
  :'include_refs' => :'Array<String>',
172
172
  :'exclude_refs' => :'Array<String>'
@@ -179,12 +179,12 @@ module PulpOstreeClient
179
179
  :'ca_cert',
180
180
  :'client_cert',
181
181
  :'proxy_url',
182
- :'download_concurrency',
183
182
  :'max_retries',
184
183
  :'total_timeout',
185
184
  :'connect_timeout',
186
185
  :'sock_connect_timeout',
187
186
  :'sock_read_timeout',
187
+ :'download_concurrency',
188
188
  :'rate_limit',
189
189
  :'include_refs',
190
190
  :'exclude_refs'
@@ -234,6 +234,22 @@ module PulpOstreeClient
234
234
  self.url = nil
235
235
  end
236
236
 
237
+ if attributes.key?(:'pulp_labels')
238
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
239
+ self.pulp_labels = value
240
+ end
241
+ end
242
+
243
+ if attributes.key?(:'policy')
244
+ self.policy = attributes[:'policy']
245
+ end
246
+
247
+ if attributes.key?(:'hidden_fields')
248
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
249
+ self.hidden_fields = value
250
+ end
251
+ end
252
+
237
253
  if attributes.key?(:'ca_cert')
238
254
  self.ca_cert = attributes[:'ca_cert']
239
255
  end
@@ -250,24 +266,10 @@ module PulpOstreeClient
250
266
  self.proxy_url = attributes[:'proxy_url']
251
267
  end
252
268
 
253
- if attributes.key?(:'pulp_labels')
254
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
255
- self.pulp_labels = value
256
- end
257
- end
258
-
259
- if attributes.key?(:'download_concurrency')
260
- self.download_concurrency = attributes[:'download_concurrency']
261
- end
262
-
263
269
  if attributes.key?(:'max_retries')
264
270
  self.max_retries = attributes[:'max_retries']
265
271
  end
266
272
 
267
- if attributes.key?(:'policy')
268
- self.policy = attributes[:'policy']
269
- end
270
-
271
273
  if attributes.key?(:'total_timeout')
272
274
  self.total_timeout = attributes[:'total_timeout']
273
275
  end
@@ -290,14 +292,12 @@ module PulpOstreeClient
290
292
  end
291
293
  end
292
294
 
293
- if attributes.key?(:'rate_limit')
294
- self.rate_limit = attributes[:'rate_limit']
295
+ if attributes.key?(:'download_concurrency')
296
+ self.download_concurrency = attributes[:'download_concurrency']
295
297
  end
296
298
 
297
- if attributes.key?(:'hidden_fields')
298
- if (value = attributes[:'hidden_fields']).is_a?(Array)
299
- self.hidden_fields = value
300
- end
299
+ if attributes.key?(:'rate_limit')
300
+ self.rate_limit = attributes[:'rate_limit']
301
301
  end
302
302
 
303
303
  if attributes.key?(:'depth')
@@ -348,6 +348,10 @@ module PulpOstreeClient
348
348
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
349
349
  end
350
350
 
351
+ if !@download_concurrency.nil? && @download_concurrency < 1
352
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
353
+ end
354
+
351
355
  if !@depth.nil? && @depth < 0
352
356
  invalid_properties.push('invalid value for "depth", must be greater than or equal to 0.')
353
357
  end
@@ -365,6 +369,7 @@ module PulpOstreeClient
365
369
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
366
370
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
367
371
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
372
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
368
373
  return false if !@depth.nil? && @depth < 0
369
374
  true
370
375
  end
@@ -409,6 +414,16 @@ module PulpOstreeClient
409
414
  @sock_read_timeout = sock_read_timeout
410
415
  end
411
416
 
417
+ # Custom attribute writer method with validation
418
+ # @param [Object] download_concurrency Value to be assigned
419
+ def download_concurrency=(download_concurrency)
420
+ if !download_concurrency.nil? && download_concurrency < 1
421
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
422
+ end
423
+
424
+ @download_concurrency = download_concurrency
425
+ end
426
+
412
427
  # Custom attribute writer method with validation
413
428
  # @param [Object] depth Value to be assigned
414
429
  def depth=(depth)
@@ -434,21 +449,21 @@ module PulpOstreeClient
434
449
  pulp_last_updated == o.pulp_last_updated &&
435
450
  name == o.name &&
436
451
  url == o.url &&
452
+ pulp_labels == o.pulp_labels &&
453
+ policy == o.policy &&
454
+ hidden_fields == o.hidden_fields &&
437
455
  ca_cert == o.ca_cert &&
438
456
  client_cert == o.client_cert &&
439
457
  tls_validation == o.tls_validation &&
440
458
  proxy_url == o.proxy_url &&
441
- pulp_labels == o.pulp_labels &&
442
- download_concurrency == o.download_concurrency &&
443
459
  max_retries == o.max_retries &&
444
- policy == o.policy &&
445
460
  total_timeout == o.total_timeout &&
446
461
  connect_timeout == o.connect_timeout &&
447
462
  sock_connect_timeout == o.sock_connect_timeout &&
448
463
  sock_read_timeout == o.sock_read_timeout &&
449
464
  headers == o.headers &&
465
+ download_concurrency == o.download_concurrency &&
450
466
  rate_limit == o.rate_limit &&
451
- hidden_fields == o.hidden_fields &&
452
467
  depth == o.depth &&
453
468
  include_refs == o.include_refs &&
454
469
  exclude_refs == o.exclude_refs
@@ -463,7 +478,7 @@ module PulpOstreeClient
463
478
  # Calculates hash code according to all attributes.
464
479
  # @return [Integer] Hash code
465
480
  def hash
466
- [pulp_href, prn, pulp_created, pulp_last_updated, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields, depth, include_refs, exclude_refs].hash
481
+ [pulp_href, prn, pulp_created, pulp_last_updated, name, url, pulp_labels, policy, hidden_fields, ca_cert, client_cert, tls_validation, proxy_url, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit, depth, include_refs, exclude_refs].hash
467
482
  end
468
483
 
469
484
  # Builds the object from hash
@@ -27,6 +27,9 @@ module PulpOstreeClient
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
 
@@ -39,6 +42,7 @@ module PulpOstreeClient
39
42
  :'name' => :'name',
40
43
  :'description' => :'description',
41
44
  :'retain_repo_versions' => :'retain_repo_versions',
45
+ :'retain_checkpoints' => :'retain_checkpoints',
42
46
  :'remote' => :'remote',
43
47
  :'compute_delta' => :'compute_delta'
44
48
  }
@@ -56,6 +60,7 @@ module PulpOstreeClient
56
60
  :'name' => :'String',
57
61
  :'description' => :'String',
58
62
  :'retain_repo_versions' => :'Integer',
63
+ :'retain_checkpoints' => :'Integer',
59
64
  :'remote' => :'String',
60
65
  :'compute_delta' => :'Boolean'
61
66
  }
@@ -66,6 +71,7 @@ module PulpOstreeClient
66
71
  Set.new([
67
72
  :'description',
68
73
  :'retain_repo_versions',
74
+ :'retain_checkpoints',
69
75
  :'remote',
70
76
  ])
71
77
  end
@@ -105,6 +111,10 @@ module PulpOstreeClient
105
111
  self.retain_repo_versions = attributes[:'retain_repo_versions']
106
112
  end
107
113
 
114
+ if attributes.key?(:'retain_checkpoints')
115
+ self.retain_checkpoints = attributes[:'retain_checkpoints']
116
+ end
117
+
108
118
  if attributes.key?(:'remote')
109
119
  self.remote = attributes[:'remote']
110
120
  end
@@ -133,6 +143,14 @@ module PulpOstreeClient
133
143
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
134
144
  end
135
145
 
146
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
147
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
148
+ end
149
+
150
+ if !@retain_checkpoints.nil? && @retain_checkpoints < 1
151
+ invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
152
+ end
153
+
136
154
  invalid_properties
137
155
  end
138
156
 
@@ -143,6 +161,8 @@ module PulpOstreeClient
143
161
  return false if @name.nil?
144
162
  return false if @name.to_s.length < 1
145
163
  return false if !@description.nil? && @description.to_s.length < 1
164
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
165
+ return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
146
166
  true
147
167
  end
148
168
 
@@ -170,6 +190,26 @@ module PulpOstreeClient
170
190
  @description = description
171
191
  end
172
192
 
193
+ # Custom attribute writer method with validation
194
+ # @param [Object] retain_repo_versions Value to be assigned
195
+ def retain_repo_versions=(retain_repo_versions)
196
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
197
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
198
+ end
199
+
200
+ @retain_repo_versions = retain_repo_versions
201
+ end
202
+
203
+ # Custom attribute writer method with validation
204
+ # @param [Object] retain_checkpoints Value to be assigned
205
+ def retain_checkpoints=(retain_checkpoints)
206
+ if !retain_checkpoints.nil? && retain_checkpoints < 1
207
+ fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
208
+ end
209
+
210
+ @retain_checkpoints = retain_checkpoints
211
+ end
212
+
173
213
  # Checks equality by comparing each attribute.
174
214
  # @param [Object] Object to be compared
175
215
  def ==(o)
@@ -179,6 +219,7 @@ module PulpOstreeClient
179
219
  name == o.name &&
180
220
  description == o.description &&
181
221
  retain_repo_versions == o.retain_repo_versions &&
222
+ retain_checkpoints == o.retain_checkpoints &&
182
223
  remote == o.remote &&
183
224
  compute_delta == o.compute_delta
184
225
  end
@@ -192,7 +233,7 @@ module PulpOstreeClient
192
233
  # Calculates hash code according to all attributes.
193
234
  # @return [Integer] Hash code
194
235
  def hash
195
- [pulp_labels, name, description, retain_repo_versions, remote, compute_delta].hash
236
+ [pulp_labels, name, description, retain_repo_versions, retain_checkpoints, remote, compute_delta].hash
196
237
  end
197
238
 
198
239
  # Builds the object from hash
@@ -42,6 +42,9 @@ module PulpOstreeClient
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
 
@@ -60,6 +63,7 @@ module PulpOstreeClient
60
63
  :'name' => :'name',
61
64
  :'description' => :'description',
62
65
  :'retain_repo_versions' => :'retain_repo_versions',
66
+ :'retain_checkpoints' => :'retain_checkpoints',
63
67
  :'remote' => :'remote',
64
68
  :'compute_delta' => :'compute_delta'
65
69
  }
@@ -83,6 +87,7 @@ module PulpOstreeClient
83
87
  :'name' => :'String',
84
88
  :'description' => :'String',
85
89
  :'retain_repo_versions' => :'Integer',
90
+ :'retain_checkpoints' => :'Integer',
86
91
  :'remote' => :'String',
87
92
  :'compute_delta' => :'Boolean'
88
93
  }
@@ -93,6 +98,7 @@ module PulpOstreeClient
93
98
  Set.new([
94
99
  :'description',
95
100
  :'retain_repo_versions',
101
+ :'retain_checkpoints',
96
102
  :'remote',
97
103
  ])
98
104
  end
@@ -156,6 +162,10 @@ module PulpOstreeClient
156
162
  self.retain_repo_versions = attributes[:'retain_repo_versions']
157
163
  end
158
164
 
165
+ if attributes.key?(:'retain_checkpoints')
166
+ self.retain_checkpoints = attributes[:'retain_checkpoints']
167
+ end
168
+
159
169
  if attributes.key?(:'remote')
160
170
  self.remote = attributes[:'remote']
161
171
  end
@@ -176,6 +186,14 @@ module PulpOstreeClient
176
186
  invalid_properties.push('invalid value for "name", name cannot be nil.')
177
187
  end
178
188
 
189
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
190
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
191
+ end
192
+
193
+ if !@retain_checkpoints.nil? && @retain_checkpoints < 1
194
+ invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
195
+ end
196
+
179
197
  invalid_properties
180
198
  end
181
199
 
@@ -184,9 +202,31 @@ module PulpOstreeClient
184
202
  def valid?
185
203
  warn '[DEPRECATED] the `valid?` method is obsolete'
186
204
  return false if @name.nil?
205
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
206
+ return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
187
207
  true
188
208
  end
189
209
 
210
+ # Custom attribute writer method with validation
211
+ # @param [Object] retain_repo_versions Value to be assigned
212
+ def retain_repo_versions=(retain_repo_versions)
213
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
214
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
215
+ end
216
+
217
+ @retain_repo_versions = retain_repo_versions
218
+ end
219
+
220
+ # Custom attribute writer method with validation
221
+ # @param [Object] retain_checkpoints Value to be assigned
222
+ def retain_checkpoints=(retain_checkpoints)
223
+ if !retain_checkpoints.nil? && retain_checkpoints < 1
224
+ fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
225
+ end
226
+
227
+ @retain_checkpoints = retain_checkpoints
228
+ end
229
+
190
230
  # Checks equality by comparing each attribute.
191
231
  # @param [Object] Object to be compared
192
232
  def ==(o)
@@ -202,6 +242,7 @@ module PulpOstreeClient
202
242
  name == o.name &&
203
243
  description == o.description &&
204
244
  retain_repo_versions == o.retain_repo_versions &&
245
+ retain_checkpoints == o.retain_checkpoints &&
205
246
  remote == o.remote &&
206
247
  compute_delta == o.compute_delta
207
248
  end
@@ -215,7 +256,7 @@ module PulpOstreeClient
215
256
  # Calculates hash code according to all attributes.
216
257
  # @return [Integer] Hash code
217
258
  def hash
218
- [pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, compute_delta].hash
259
+ [pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, retain_checkpoints, remote, compute_delta].hash
219
260
  end
220
261
 
221
262
  # Builds the object from hash