pulp_gem_client 0.7.5 → 0.7.6

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 +5 -4
  3. data/docs/ContentGemApi.md +8 -6
  4. data/docs/DistributionsGemApi.md +4 -4
  5. data/docs/GemGemDistribution.md +2 -0
  6. data/docs/GemGemDistributionResponse.md +4 -0
  7. data/docs/GemGemRemote.md +6 -6
  8. data/docs/GemGemRemoteResponse.md +8 -8
  9. data/docs/GemGemRepository.md +2 -0
  10. data/docs/GemGemRepositoryResponse.md +2 -0
  11. data/docs/PatchedgemGemDistribution.md +2 -0
  12. data/docs/PatchedgemGemRemote.md +6 -6
  13. data/docs/PatchedgemGemRepository.md +2 -0
  14. data/docs/PublicationsGemApi.md +2 -2
  15. data/docs/RepositoriesGemApi.md +20 -4
  16. data/docs/RepositoryAddRemoveContent.md +3 -1
  17. data/lib/pulp_gem_client/api/content_gem_api.rb +9 -6
  18. data/lib/pulp_gem_client/api/distributions_gem_api.rb +4 -4
  19. data/lib/pulp_gem_client/api/publications_gem_api.rb +2 -2
  20. data/lib/pulp_gem_client/api/repositories_gem_api.rb +29 -5
  21. data/lib/pulp_gem_client/models/gem_gem_distribution.rb +12 -1
  22. data/lib/pulp_gem_client/models/gem_gem_distribution_response.rb +22 -1
  23. data/lib/pulp_gem_client/models/gem_gem_remote.rb +48 -33
  24. data/lib/pulp_gem_client/models/gem_gem_remote_response.rb +60 -45
  25. data/lib/pulp_gem_client/models/gem_gem_repository.rb +42 -1
  26. data/lib/pulp_gem_client/models/gem_gem_repository_response.rb +42 -1
  27. data/lib/pulp_gem_client/models/patchedgem_gem_distribution.rb +12 -1
  28. data/lib/pulp_gem_client/models/patchedgem_gem_remote.rb +48 -33
  29. data/lib/pulp_gem_client/models/patchedgem_gem_repository.rb +42 -1
  30. data/lib/pulp_gem_client/models/repository_add_remove_content.rb +16 -4
  31. data/lib/pulp_gem_client/models/set_label.rb +0 -11
  32. data/lib/pulp_gem_client/models/set_label_response.rb +0 -21
  33. data/lib/pulp_gem_client/models/unset_label.rb +0 -11
  34. data/lib/pulp_gem_client/models/unset_label_response.rb +0 -21
  35. data/lib/pulp_gem_client/version.rb +1 -1
  36. data/spec/api/content_gem_api_spec.rb +4 -3
  37. data/spec/api/distributions_gem_api_spec.rb +2 -2
  38. data/spec/api/publications_gem_api_spec.rb +1 -1
  39. data/spec/api/repositories_gem_api_spec.rb +10 -2
  40. data/spec/models/gem_gem_distribution_response_spec.rb +12 -0
  41. data/spec/models/gem_gem_distribution_spec.rb +6 -0
  42. data/spec/models/gem_gem_remote_response_spec.rb +10 -10
  43. data/spec/models/gem_gem_remote_spec.rb +17 -17
  44. data/spec/models/gem_gem_repository_response_spec.rb +6 -0
  45. data/spec/models/gem_gem_repository_spec.rb +6 -0
  46. data/spec/models/patchedgem_gem_distribution_spec.rb +6 -0
  47. data/spec/models/patchedgem_gem_remote_spec.rb +17 -17
  48. data/spec/models/patchedgem_gem_repository_spec.rb +6 -0
  49. data/spec/models/repository_add_remove_content_spec.rb +6 -0
  50. metadata +32 -32
@@ -33,6 +33,14 @@ module PulpGemClient
33
33
  # The URL of an external content source.
34
34
  attr_accessor :url
35
35
 
36
+ attr_accessor :pulp_labels
37
+
38
+ # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.
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 PulpGemClient
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
- # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.
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 PulpGemClient
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
  attr_accessor :prereleases
81
81
 
82
82
  attr_accessor :includes
@@ -114,21 +114,21 @@ module PulpGemClient
114
114
  :'pulp_last_updated' => :'pulp_last_updated',
115
115
  :'name' => :'name',
116
116
  :'url' => :'url',
117
+ :'pulp_labels' => :'pulp_labels',
118
+ :'policy' => :'policy',
119
+ :'hidden_fields' => :'hidden_fields',
117
120
  :'ca_cert' => :'ca_cert',
118
121
  :'client_cert' => :'client_cert',
119
122
  :'tls_validation' => :'tls_validation',
120
123
  :'proxy_url' => :'proxy_url',
121
- :'pulp_labels' => :'pulp_labels',
122
- :'download_concurrency' => :'download_concurrency',
123
124
  :'max_retries' => :'max_retries',
124
- :'policy' => :'policy',
125
125
  :'total_timeout' => :'total_timeout',
126
126
  :'connect_timeout' => :'connect_timeout',
127
127
  :'sock_connect_timeout' => :'sock_connect_timeout',
128
128
  :'sock_read_timeout' => :'sock_read_timeout',
129
129
  :'headers' => :'headers',
130
+ :'download_concurrency' => :'download_concurrency',
130
131
  :'rate_limit' => :'rate_limit',
131
- :'hidden_fields' => :'hidden_fields',
132
132
  :'prereleases' => :'prereleases',
133
133
  :'includes' => :'includes',
134
134
  :'excludes' => :'excludes'
@@ -149,21 +149,21 @@ module PulpGemClient
149
149
  :'pulp_last_updated' => :'Time',
150
150
  :'name' => :'String',
151
151
  :'url' => :'String',
152
+ :'pulp_labels' => :'Hash<String, String>',
153
+ :'policy' => :'PolicyEnum',
154
+ :'hidden_fields' => :'Array<GemGemRemoteResponseHiddenFieldsInner>',
152
155
  :'ca_cert' => :'String',
153
156
  :'client_cert' => :'String',
154
157
  :'tls_validation' => :'Boolean',
155
158
  :'proxy_url' => :'String',
156
- :'pulp_labels' => :'Hash<String, String>',
157
- :'download_concurrency' => :'Integer',
158
159
  :'max_retries' => :'Integer',
159
- :'policy' => :'PolicyEnum',
160
160
  :'total_timeout' => :'Float',
161
161
  :'connect_timeout' => :'Float',
162
162
  :'sock_connect_timeout' => :'Float',
163
163
  :'sock_read_timeout' => :'Float',
164
164
  :'headers' => :'Array<Object>',
165
+ :'download_concurrency' => :'Integer',
165
166
  :'rate_limit' => :'Integer',
166
- :'hidden_fields' => :'Array<GemGemRemoteResponseHiddenFieldsInner>',
167
167
  :'prereleases' => :'Boolean',
168
168
  :'includes' => :'Hash<String, String>',
169
169
  :'excludes' => :'Hash<String, String>'
@@ -176,12 +176,12 @@ module PulpGemClient
176
176
  :'ca_cert',
177
177
  :'client_cert',
178
178
  :'proxy_url',
179
- :'download_concurrency',
180
179
  :'max_retries',
181
180
  :'total_timeout',
182
181
  :'connect_timeout',
183
182
  :'sock_connect_timeout',
184
183
  :'sock_read_timeout',
184
+ :'download_concurrency',
185
185
  :'rate_limit',
186
186
  ])
187
187
  end
@@ -229,6 +229,22 @@ module PulpGemClient
229
229
  self.url = nil
230
230
  end
231
231
 
232
+ if attributes.key?(:'pulp_labels')
233
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
234
+ self.pulp_labels = value
235
+ end
236
+ end
237
+
238
+ if attributes.key?(:'policy')
239
+ self.policy = attributes[:'policy']
240
+ end
241
+
242
+ if attributes.key?(:'hidden_fields')
243
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
244
+ self.hidden_fields = value
245
+ end
246
+ end
247
+
232
248
  if attributes.key?(:'ca_cert')
233
249
  self.ca_cert = attributes[:'ca_cert']
234
250
  end
@@ -245,24 +261,10 @@ module PulpGemClient
245
261
  self.proxy_url = attributes[:'proxy_url']
246
262
  end
247
263
 
248
- if attributes.key?(:'pulp_labels')
249
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
250
- self.pulp_labels = value
251
- end
252
- end
253
-
254
- if attributes.key?(:'download_concurrency')
255
- self.download_concurrency = attributes[:'download_concurrency']
256
- end
257
-
258
264
  if attributes.key?(:'max_retries')
259
265
  self.max_retries = attributes[:'max_retries']
260
266
  end
261
267
 
262
- if attributes.key?(:'policy')
263
- self.policy = attributes[:'policy']
264
- end
265
-
266
268
  if attributes.key?(:'total_timeout')
267
269
  self.total_timeout = attributes[:'total_timeout']
268
270
  end
@@ -285,14 +287,12 @@ module PulpGemClient
285
287
  end
286
288
  end
287
289
 
288
- if attributes.key?(:'rate_limit')
289
- self.rate_limit = attributes[:'rate_limit']
290
+ if attributes.key?(:'download_concurrency')
291
+ self.download_concurrency = attributes[:'download_concurrency']
290
292
  end
291
293
 
292
- if attributes.key?(:'hidden_fields')
293
- if (value = attributes[:'hidden_fields']).is_a?(Array)
294
- self.hidden_fields = value
295
- end
294
+ if attributes.key?(:'rate_limit')
295
+ self.rate_limit = attributes[:'rate_limit']
296
296
  end
297
297
 
298
298
  if attributes.key?(:'prereleases')
@@ -343,6 +343,10 @@ module PulpGemClient
343
343
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
344
344
  end
345
345
 
346
+ if !@download_concurrency.nil? && @download_concurrency < 1
347
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
348
+ end
349
+
346
350
  invalid_properties
347
351
  end
348
352
 
@@ -356,6 +360,7 @@ module PulpGemClient
356
360
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
357
361
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
358
362
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
363
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
359
364
  true
360
365
  end
361
366
 
@@ -399,6 +404,16 @@ module PulpGemClient
399
404
  @sock_read_timeout = sock_read_timeout
400
405
  end
401
406
 
407
+ # Custom attribute writer method with validation
408
+ # @param [Object] download_concurrency Value to be assigned
409
+ def download_concurrency=(download_concurrency)
410
+ if !download_concurrency.nil? && download_concurrency < 1
411
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
412
+ end
413
+
414
+ @download_concurrency = download_concurrency
415
+ end
416
+
402
417
  # Checks equality by comparing each attribute.
403
418
  # @param [Object] Object to be compared
404
419
  def ==(o)
@@ -410,21 +425,21 @@ module PulpGemClient
410
425
  pulp_last_updated == o.pulp_last_updated &&
411
426
  name == o.name &&
412
427
  url == o.url &&
428
+ pulp_labels == o.pulp_labels &&
429
+ policy == o.policy &&
430
+ hidden_fields == o.hidden_fields &&
413
431
  ca_cert == o.ca_cert &&
414
432
  client_cert == o.client_cert &&
415
433
  tls_validation == o.tls_validation &&
416
434
  proxy_url == o.proxy_url &&
417
- pulp_labels == o.pulp_labels &&
418
- download_concurrency == o.download_concurrency &&
419
435
  max_retries == o.max_retries &&
420
- policy == o.policy &&
421
436
  total_timeout == o.total_timeout &&
422
437
  connect_timeout == o.connect_timeout &&
423
438
  sock_connect_timeout == o.sock_connect_timeout &&
424
439
  sock_read_timeout == o.sock_read_timeout &&
425
440
  headers == o.headers &&
441
+ download_concurrency == o.download_concurrency &&
426
442
  rate_limit == o.rate_limit &&
427
- hidden_fields == o.hidden_fields &&
428
443
  prereleases == o.prereleases &&
429
444
  includes == o.includes &&
430
445
  excludes == o.excludes
@@ -439,7 +454,7 @@ module PulpGemClient
439
454
  # Calculates hash code according to all attributes.
440
455
  # @return [Integer] Hash code
441
456
  def hash
442
- [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, prereleases, includes, excludes].hash
457
+ [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, prereleases, includes, excludes].hash
443
458
  end
444
459
 
445
460
  # Builds the object from hash
@@ -27,6 +27,9 @@ module PulpGemClient
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
 
@@ -37,6 +40,7 @@ module PulpGemClient
37
40
  :'name' => :'name',
38
41
  :'description' => :'description',
39
42
  :'retain_repo_versions' => :'retain_repo_versions',
43
+ :'retain_checkpoints' => :'retain_checkpoints',
40
44
  :'remote' => :'remote'
41
45
  }
42
46
  end
@@ -53,6 +57,7 @@ module PulpGemClient
53
57
  :'name' => :'String',
54
58
  :'description' => :'String',
55
59
  :'retain_repo_versions' => :'Integer',
60
+ :'retain_checkpoints' => :'Integer',
56
61
  :'remote' => :'String'
57
62
  }
58
63
  end
@@ -62,6 +67,7 @@ module PulpGemClient
62
67
  Set.new([
63
68
  :'description',
64
69
  :'retain_repo_versions',
70
+ :'retain_checkpoints',
65
71
  :'remote'
66
72
  ])
67
73
  end
@@ -101,6 +107,10 @@ module PulpGemClient
101
107
  self.retain_repo_versions = attributes[:'retain_repo_versions']
102
108
  end
103
109
 
110
+ if attributes.key?(:'retain_checkpoints')
111
+ self.retain_checkpoints = attributes[:'retain_checkpoints']
112
+ end
113
+
104
114
  if attributes.key?(:'remote')
105
115
  self.remote = attributes[:'remote']
106
116
  end
@@ -123,6 +133,14 @@ module PulpGemClient
123
133
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
124
134
  end
125
135
 
136
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
137
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
138
+ end
139
+
140
+ if !@retain_checkpoints.nil? && @retain_checkpoints < 1
141
+ invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
142
+ end
143
+
126
144
  invalid_properties
127
145
  end
128
146
 
@@ -133,6 +151,8 @@ module PulpGemClient
133
151
  return false if @name.nil?
134
152
  return false if @name.to_s.length < 1
135
153
  return false if !@description.nil? && @description.to_s.length < 1
154
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
155
+ return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
136
156
  true
137
157
  end
138
158
 
@@ -160,6 +180,26 @@ module PulpGemClient
160
180
  @description = description
161
181
  end
162
182
 
183
+ # Custom attribute writer method with validation
184
+ # @param [Object] retain_repo_versions Value to be assigned
185
+ def retain_repo_versions=(retain_repo_versions)
186
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
187
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
188
+ end
189
+
190
+ @retain_repo_versions = retain_repo_versions
191
+ end
192
+
193
+ # Custom attribute writer method with validation
194
+ # @param [Object] retain_checkpoints Value to be assigned
195
+ def retain_checkpoints=(retain_checkpoints)
196
+ if !retain_checkpoints.nil? && retain_checkpoints < 1
197
+ fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
198
+ end
199
+
200
+ @retain_checkpoints = retain_checkpoints
201
+ end
202
+
163
203
  # Checks equality by comparing each attribute.
164
204
  # @param [Object] Object to be compared
165
205
  def ==(o)
@@ -169,6 +209,7 @@ module PulpGemClient
169
209
  name == o.name &&
170
210
  description == o.description &&
171
211
  retain_repo_versions == o.retain_repo_versions &&
212
+ retain_checkpoints == o.retain_checkpoints &&
172
213
  remote == o.remote
173
214
  end
174
215
 
@@ -181,7 +222,7 @@ module PulpGemClient
181
222
  # Calculates hash code according to all attributes.
182
223
  # @return [Integer] Hash code
183
224
  def hash
184
- [pulp_labels, name, description, retain_repo_versions, remote].hash
225
+ [pulp_labels, name, description, retain_repo_versions, retain_checkpoints, remote].hash
185
226
  end
186
227
 
187
228
  # Builds the object from hash
@@ -42,6 +42,9 @@ module PulpGemClient
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
 
@@ -58,6 +61,7 @@ module PulpGemClient
58
61
  :'name' => :'name',
59
62
  :'description' => :'description',
60
63
  :'retain_repo_versions' => :'retain_repo_versions',
64
+ :'retain_checkpoints' => :'retain_checkpoints',
61
65
  :'remote' => :'remote'
62
66
  }
63
67
  end
@@ -80,6 +84,7 @@ module PulpGemClient
80
84
  :'name' => :'String',
81
85
  :'description' => :'String',
82
86
  :'retain_repo_versions' => :'Integer',
87
+ :'retain_checkpoints' => :'Integer',
83
88
  :'remote' => :'String'
84
89
  }
85
90
  end
@@ -89,6 +94,7 @@ module PulpGemClient
89
94
  Set.new([
90
95
  :'description',
91
96
  :'retain_repo_versions',
97
+ :'retain_checkpoints',
92
98
  :'remote'
93
99
  ])
94
100
  end
@@ -152,6 +158,10 @@ module PulpGemClient
152
158
  self.retain_repo_versions = attributes[:'retain_repo_versions']
153
159
  end
154
160
 
161
+ if attributes.key?(:'retain_checkpoints')
162
+ self.retain_checkpoints = attributes[:'retain_checkpoints']
163
+ end
164
+
155
165
  if attributes.key?(:'remote')
156
166
  self.remote = attributes[:'remote']
157
167
  end
@@ -166,6 +176,14 @@ module PulpGemClient
166
176
  invalid_properties.push('invalid value for "name", name cannot be nil.')
167
177
  end
168
178
 
179
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
180
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
181
+ end
182
+
183
+ if !@retain_checkpoints.nil? && @retain_checkpoints < 1
184
+ invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
185
+ end
186
+
169
187
  invalid_properties
170
188
  end
171
189
 
@@ -174,9 +192,31 @@ module PulpGemClient
174
192
  def valid?
175
193
  warn '[DEPRECATED] the `valid?` method is obsolete'
176
194
  return false if @name.nil?
195
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
196
+ return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
177
197
  true
178
198
  end
179
199
 
200
+ # Custom attribute writer method with validation
201
+ # @param [Object] retain_repo_versions Value to be assigned
202
+ def retain_repo_versions=(retain_repo_versions)
203
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
204
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
205
+ end
206
+
207
+ @retain_repo_versions = retain_repo_versions
208
+ end
209
+
210
+ # Custom attribute writer method with validation
211
+ # @param [Object] retain_checkpoints Value to be assigned
212
+ def retain_checkpoints=(retain_checkpoints)
213
+ if !retain_checkpoints.nil? && retain_checkpoints < 1
214
+ fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
215
+ end
216
+
217
+ @retain_checkpoints = retain_checkpoints
218
+ end
219
+
180
220
  # Checks equality by comparing each attribute.
181
221
  # @param [Object] Object to be compared
182
222
  def ==(o)
@@ -192,6 +232,7 @@ module PulpGemClient
192
232
  name == o.name &&
193
233
  description == o.description &&
194
234
  retain_repo_versions == o.retain_repo_versions &&
235
+ retain_checkpoints == o.retain_checkpoints &&
195
236
  remote == o.remote
196
237
  end
197
238
 
@@ -204,7 +245,7 @@ module PulpGemClient
204
245
  # Calculates hash code according to all attributes.
205
246
  # @return [Integer] Hash code
206
247
  def hash
207
- [pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote].hash
248
+ [pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, retain_checkpoints, remote].hash
208
249
  end
209
250
 
210
251
  # Builds the object from hash
@@ -33,6 +33,9 @@ module PulpGemClient
33
33
  # The latest RepositoryVersion for this Repository will be served.
34
34
  attr_accessor :repository
35
35
 
36
+ # RepositoryVersion to be served
37
+ attr_accessor :repository_version
38
+
36
39
  # Publication to be served
37
40
  attr_accessor :publication
38
41
 
@@ -48,6 +51,7 @@ module PulpGemClient
48
51
  :'pulp_labels' => :'pulp_labels',
49
52
  :'name' => :'name',
50
53
  :'repository' => :'repository',
54
+ :'repository_version' => :'repository_version',
51
55
  :'publication' => :'publication',
52
56
  :'remote' => :'remote'
53
57
  }
@@ -67,6 +71,7 @@ module PulpGemClient
67
71
  :'pulp_labels' => :'Hash<String, String>',
68
72
  :'name' => :'String',
69
73
  :'repository' => :'String',
74
+ :'repository_version' => :'String',
70
75
  :'publication' => :'String',
71
76
  :'remote' => :'String'
72
77
  }
@@ -77,6 +82,7 @@ module PulpGemClient
77
82
  Set.new([
78
83
  :'content_guard',
79
84
  :'repository',
85
+ :'repository_version',
80
86
  :'publication',
81
87
  :'remote'
82
88
  ])
@@ -125,6 +131,10 @@ module PulpGemClient
125
131
  self.repository = attributes[:'repository']
126
132
  end
127
133
 
134
+ if attributes.key?(:'repository_version')
135
+ self.repository_version = attributes[:'repository_version']
136
+ end
137
+
128
138
  if attributes.key?(:'publication')
129
139
  self.publication = attributes[:'publication']
130
140
  end
@@ -198,6 +208,7 @@ module PulpGemClient
198
208
  pulp_labels == o.pulp_labels &&
199
209
  name == o.name &&
200
210
  repository == o.repository &&
211
+ repository_version == o.repository_version &&
201
212
  publication == o.publication &&
202
213
  remote == o.remote
203
214
  end
@@ -211,7 +222,7 @@ module PulpGemClient
211
222
  # Calculates hash code according to all attributes.
212
223
  # @return [Integer] Hash code
213
224
  def hash
214
- [base_path, content_guard, hidden, pulp_labels, name, repository, publication, remote].hash
225
+ [base_path, content_guard, hidden, pulp_labels, name, repository, repository_version, publication, remote].hash
215
226
  end
216
227
 
217
228
  # Builds the object from hash