pulp_ostree_client 2.0.0a1.dev1626751709 → 2.0.0a1.dev1631416829

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pulp_ostree_client might be problematic. Click here for more details.

Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +41 -23
  3. data/docs/ContentCommitsApi.md +138 -0
  4. data/docs/ContentConfigsApi.md +138 -0
  5. data/docs/ContentObjectsApi.md +138 -0
  6. data/docs/ContentRefsApi.md +138 -0
  7. data/docs/{ContentOstreeApi.md → ContentSummariesApi.md} +21 -75
  8. data/docs/DistributionsOstreeApi.md +3 -3
  9. data/docs/OstreeOstreeCommitResponse.md +25 -0
  10. data/docs/OstreeOstreeConfigResponse.md +21 -0
  11. data/docs/OstreeOstreeDistribution.md +2 -2
  12. data/docs/OstreeOstreeDistributionResponse.md +2 -2
  13. data/docs/OstreeOstreeObjectResponse.md +27 -0
  14. data/docs/OstreeOstreeRefResponse.md +25 -0
  15. data/docs/OstreeOstreeRemote.md +4 -2
  16. data/docs/OstreeOstreeRemoteResponse.md +4 -2
  17. data/docs/OstreeOstreeRepository.md +3 -3
  18. data/docs/OstreeOstreeRepositoryResponse.md +3 -3
  19. data/docs/{OstreeOstreeContentResponse.md → OstreeOstreeSummaryResponse.md} +2 -2
  20. data/docs/OstreeRepoImport.md +23 -0
  21. data/docs/{PaginatedostreeOstreePublicationResponseList.md → PaginatedostreeOstreeCommitResponseList.md} +3 -3
  22. data/docs/PaginatedostreeOstreeConfigResponseList.md +23 -0
  23. data/docs/PaginatedostreeOstreeObjectResponseList.md +23 -0
  24. data/docs/PaginatedostreeOstreeRefResponseList.md +23 -0
  25. data/docs/{PaginatedostreeOstreeContentResponseList.md → PaginatedostreeOstreeSummaryResponseList.md} +3 -3
  26. data/docs/PatchedostreeOstreeDistribution.md +2 -2
  27. data/docs/PatchedostreeOstreeRemote.md +4 -2
  28. data/docs/PatchedostreeOstreeRepository.md +3 -3
  29. data/docs/RemotesOstreeApi.md +4 -4
  30. data/docs/RepositoriesOstreeApi.md +60 -4
  31. data/docs/RepositoriesOstreeVersionsApi.md +3 -3
  32. data/lib/pulp_ostree_client/api/content_commits_api.rb +170 -0
  33. data/lib/pulp_ostree_client/api/content_configs_api.rb +170 -0
  34. data/lib/pulp_ostree_client/api/content_objects_api.rb +170 -0
  35. data/lib/pulp_ostree_client/api/content_refs_api.rb +170 -0
  36. data/lib/pulp_ostree_client/api/{content_ostree_api.rb → content_summaries_api.rb} +29 -93
  37. data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +4 -4
  38. data/lib/pulp_ostree_client/api/remotes_ostree_api.rb +6 -6
  39. data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +76 -6
  40. data/lib/pulp_ostree_client/api/repositories_ostree_versions_api.rb +4 -4
  41. data/lib/pulp_ostree_client/configuration.rb +2 -2
  42. data/lib/pulp_ostree_client/models/ostree_ostree_commit_response.rb +256 -0
  43. data/lib/pulp_ostree_client/models/{ostree_ostree_publication_response.rb → ostree_ostree_config_response.rb} +17 -21
  44. data/lib/pulp_ostree_client/models/ostree_ostree_distribution.rb +10 -10
  45. data/lib/pulp_ostree_client/models/ostree_ostree_distribution_response.rb +10 -10
  46. data/lib/pulp_ostree_client/models/ostree_ostree_object_response.rb +275 -0
  47. data/lib/pulp_ostree_client/models/{ostree_ostree_content.rb → ostree_ostree_ref_response.rb} +47 -15
  48. data/lib/pulp_ostree_client/models/ostree_ostree_remote.rb +34 -7
  49. data/lib/pulp_ostree_client/models/ostree_ostree_remote_response.rb +34 -7
  50. data/lib/pulp_ostree_client/models/ostree_ostree_repository.rb +18 -17
  51. data/lib/pulp_ostree_client/models/ostree_ostree_repository_response.rb +18 -17
  52. data/lib/pulp_ostree_client/models/{ostree_ostree_content_response.rb → ostree_ostree_summary_response.rb} +4 -4
  53. data/lib/pulp_ostree_client/models/ostree_repo_import.rb +248 -0
  54. data/lib/pulp_ostree_client/models/{paginatedostree_ostree_publication_response_list.rb → paginatedostree_ostree_commit_response_list.rb} +4 -4
  55. data/lib/pulp_ostree_client/models/paginatedostree_ostree_config_response_list.rb +237 -0
  56. data/lib/pulp_ostree_client/models/paginatedostree_ostree_object_response_list.rb +237 -0
  57. data/lib/pulp_ostree_client/models/{ostree_ostree_publication.rb → paginatedostree_ostree_ref_response_list.rb} +38 -18
  58. data/lib/pulp_ostree_client/models/{paginatedostree_ostree_content_response_list.rb → paginatedostree_ostree_summary_response_list.rb} +4 -4
  59. data/lib/pulp_ostree_client/models/patchedostree_ostree_distribution.rb +10 -10
  60. data/lib/pulp_ostree_client/models/patchedostree_ostree_remote.rb +34 -7
  61. data/lib/pulp_ostree_client/models/patchedostree_ostree_repository.rb +18 -17
  62. data/lib/pulp_ostree_client/models/policy_enum.rb +1 -1
  63. data/lib/pulp_ostree_client/version.rb +1 -1
  64. data/lib/pulp_ostree_client.rb +16 -8
  65. data/spec/api/{content_ostree_api_spec.rb → content_commits_api_spec.rb} +13 -25
  66. data/spec/api/content_configs_api_spec.rb +68 -0
  67. data/spec/api/content_objects_api_spec.rb +68 -0
  68. data/spec/api/content_refs_api_spec.rb +68 -0
  69. data/spec/api/content_summaries_api_spec.rb +68 -0
  70. data/spec/api/distributions_ostree_api_spec.rb +2 -2
  71. data/spec/api/remotes_ostree_api_spec.rb +3 -3
  72. data/spec/api/repositories_ostree_api_spec.rb +16 -3
  73. data/spec/api/repositories_ostree_versions_api_spec.rb +2 -2
  74. data/spec/configuration_spec.rb +3 -3
  75. data/spec/models/ostree_ostree_commit_response_spec.rb +65 -0
  76. data/spec/models/{ostree_ostree_content_spec.rb → ostree_ostree_config_response_spec.rb} +14 -8
  77. data/spec/models/ostree_ostree_distribution_response_spec.rb +1 -1
  78. data/spec/models/ostree_ostree_distribution_spec.rb +1 -1
  79. data/spec/models/ostree_ostree_object_response_spec.rb +71 -0
  80. data/spec/models/{ostree_ostree_publication_response_spec.rb → ostree_ostree_ref_response_spec.rb} +14 -8
  81. data/spec/models/ostree_ostree_remote_response_spec.rb +6 -0
  82. data/spec/models/ostree_ostree_remote_spec.rb +6 -0
  83. data/spec/models/ostree_ostree_repository_response_spec.rb +1 -1
  84. data/spec/models/ostree_ostree_repository_spec.rb +1 -1
  85. data/spec/models/{ostree_ostree_content_response_spec.rb → ostree_ostree_summary_response_spec.rb} +6 -6
  86. data/spec/models/ostree_repo_import_spec.rb +59 -0
  87. data/spec/models/{paginatedostree_ostree_publication_response_list_spec.rb → paginatedostree_ostree_commit_response_list_spec.rb} +6 -6
  88. data/spec/models/paginatedostree_ostree_config_response_list_spec.rb +59 -0
  89. data/spec/models/paginatedostree_ostree_object_response_list_spec.rb +59 -0
  90. data/spec/models/paginatedostree_ostree_ref_response_list_spec.rb +59 -0
  91. data/spec/models/{paginatedostree_ostree_content_response_list_spec.rb → paginatedostree_ostree_summary_response_list_spec.rb} +6 -6
  92. data/spec/models/patchedostree_ostree_distribution_spec.rb +1 -1
  93. data/spec/models/patchedostree_ostree_remote_spec.rb +6 -0
  94. data/spec/models/patchedostree_ostree_repository_spec.rb +1 -1
  95. metadata +81 -49
  96. data/docs/OstreeOstreeContent.md +0 -19
  97. data/docs/OstreeOstreePublication.md +0 -19
  98. data/docs/OstreeOstreePublicationResponse.md +0 -23
  99. data/docs/PublicationsOstreeApi.md +0 -257
  100. data/lib/pulp_ostree_client/api/publications_ostree_api.rb +0 -312
  101. data/spec/api/publications_ostree_api_spec.rb +0 -98
  102. data/spec/models/ostree_ostree_publication_spec.rb +0 -47
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module PulpOstreeClient
16
- # A Serializer for OstreeRemote. Add any new fields if defined on OstreeRemote. Similar to the example above, in OstreeContentSerializer. Additional validators can be added to the parent validators list For example:: class Meta: validators = platform.RemoteSerializer.Meta.validators + [myValidator1, myValidator2] By default the 'policy' field in platform.RemoteSerializer only validates the choice 'immediate'. To add on-demand support for more 'policy' options, e.g. 'streamed' or 'on_demand', re-define the 'policy' option as follows:: policy = serializers.ChoiceField( help_text=\"The policy to use when downloading content. The possible values include: \" \"'immediate', 'on_demand', and 'streamed'. 'immediate' is the default.\", choices=models.Remote.POLICY_CHOICES, default=models.Remote.IMMEDIATE )
16
+ # A Serializer class for a remote OSTree repository.
17
17
  class OstreeOstreeRemote
18
18
  # A unique name for this remote.
19
19
  attr_accessor :name
@@ -56,7 +56,7 @@ module PulpOstreeClient
56
56
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
57
57
  attr_accessor :max_retries
58
58
 
59
- # The policy to use when downloading content.
59
+ # 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.
60
60
  attr_accessor :policy
61
61
 
62
62
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
@@ -77,6 +77,9 @@ module PulpOstreeClient
77
77
  # Limits total download rate in requests per second
78
78
  attr_accessor :rate_limit
79
79
 
80
+ # An option to specify how many commits to traverse.
81
+ attr_accessor :depth
82
+
80
83
  # Attribute mapping from ruby-style variable name to JSON key.
81
84
  def self.attribute_map
82
85
  {
@@ -100,7 +103,8 @@ module PulpOstreeClient
100
103
  :'sock_connect_timeout' => :'sock_connect_timeout',
101
104
  :'sock_read_timeout' => :'sock_read_timeout',
102
105
  :'headers' => :'headers',
103
- :'rate_limit' => :'rate_limit'
106
+ :'rate_limit' => :'rate_limit',
107
+ :'depth' => :'depth'
104
108
  }
105
109
  end
106
110
 
@@ -127,7 +131,8 @@ module PulpOstreeClient
127
131
  :'sock_connect_timeout' => :'Float',
128
132
  :'sock_read_timeout' => :'Float',
129
133
  :'headers' => :'Array<Object>',
130
- :'rate_limit' => :'Integer'
134
+ :'rate_limit' => :'Integer',
135
+ :'depth' => :'Integer'
131
136
  }
132
137
  end
133
138
 
@@ -148,7 +153,7 @@ module PulpOstreeClient
148
153
  :'connect_timeout',
149
154
  :'sock_connect_timeout',
150
155
  :'sock_read_timeout',
151
- :'rate_limit'
156
+ :'rate_limit',
152
157
  ])
153
158
  end
154
159
 
@@ -252,6 +257,12 @@ module PulpOstreeClient
252
257
  if attributes.key?(:'rate_limit')
253
258
  self.rate_limit = attributes[:'rate_limit']
254
259
  end
260
+
261
+ if attributes.key?(:'depth')
262
+ self.depth = attributes[:'depth']
263
+ else
264
+ self.depth = 0
265
+ end
255
266
  end
256
267
 
257
268
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -286,6 +297,10 @@ module PulpOstreeClient
286
297
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
287
298
  end
288
299
 
300
+ if !@depth.nil? && @depth < 0
301
+ invalid_properties.push('invalid value for "depth", must be greater than or equal to 0.')
302
+ end
303
+
289
304
  invalid_properties
290
305
  end
291
306
 
@@ -299,6 +314,7 @@ module PulpOstreeClient
299
314
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
300
315
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
301
316
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
317
+ return false if !@depth.nil? && @depth < 0
302
318
  true
303
319
  end
304
320
 
@@ -352,6 +368,16 @@ module PulpOstreeClient
352
368
  @sock_read_timeout = sock_read_timeout
353
369
  end
354
370
 
371
+ # Custom attribute writer method with validation
372
+ # @param [Object] depth Value to be assigned
373
+ def depth=(depth)
374
+ if !depth.nil? && depth < 0
375
+ fail ArgumentError, 'invalid value for "depth", must be greater than or equal to 0.'
376
+ end
377
+
378
+ @depth = depth
379
+ end
380
+
355
381
  # Checks equality by comparing each attribute.
356
382
  # @param [Object] Object to be compared
357
383
  def ==(o)
@@ -377,7 +403,8 @@ module PulpOstreeClient
377
403
  sock_connect_timeout == o.sock_connect_timeout &&
378
404
  sock_read_timeout == o.sock_read_timeout &&
379
405
  headers == o.headers &&
380
- rate_limit == o.rate_limit
406
+ rate_limit == o.rate_limit &&
407
+ depth == o.depth
381
408
  end
382
409
 
383
410
  # @see the `==` method
@@ -389,7 +416,7 @@ module PulpOstreeClient
389
416
  # Calculates hash code according to all attributes.
390
417
  # @return [Integer] Hash code
391
418
  def hash
392
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
419
+ [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, depth].hash
393
420
  end
394
421
 
395
422
  # Builds the object from hash
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module PulpOstreeClient
16
- # A Serializer for OstreeRemote. Add any new fields if defined on OstreeRemote. Similar to the example above, in OstreeContentSerializer. Additional validators can be added to the parent validators list For example:: class Meta: validators = platform.RemoteSerializer.Meta.validators + [myValidator1, myValidator2] By default the 'policy' field in platform.RemoteSerializer only validates the choice 'immediate'. To add on-demand support for more 'policy' options, e.g. 'streamed' or 'on_demand', re-define the 'policy' option as follows:: policy = serializers.ChoiceField( help_text=\"The policy to use when downloading content. The possible values include: \" \"'immediate', 'on_demand', and 'streamed'. 'immediate' is the default.\", choices=models.Remote.POLICY_CHOICES, default=models.Remote.IMMEDIATE )
16
+ # A Serializer class for a remote OSTree repository.
17
17
  class OstreeOstreeRemoteResponse
18
18
  attr_accessor :pulp_href
19
19
 
@@ -49,7 +49,7 @@ module PulpOstreeClient
49
49
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
50
50
  attr_accessor :max_retries
51
51
 
52
- # The policy to use when downloading content.
52
+ # 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.
53
53
  attr_accessor :policy
54
54
 
55
55
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
@@ -70,6 +70,9 @@ module PulpOstreeClient
70
70
  # Limits total download rate in requests per second
71
71
  attr_accessor :rate_limit
72
72
 
73
+ # An option to specify how many commits to traverse.
74
+ attr_accessor :depth
75
+
73
76
  # Attribute mapping from ruby-style variable name to JSON key.
74
77
  def self.attribute_map
75
78
  {
@@ -91,7 +94,8 @@ module PulpOstreeClient
91
94
  :'sock_connect_timeout' => :'sock_connect_timeout',
92
95
  :'sock_read_timeout' => :'sock_read_timeout',
93
96
  :'headers' => :'headers',
94
- :'rate_limit' => :'rate_limit'
97
+ :'rate_limit' => :'rate_limit',
98
+ :'depth' => :'depth'
95
99
  }
96
100
  end
97
101
 
@@ -116,7 +120,8 @@ module PulpOstreeClient
116
120
  :'sock_connect_timeout' => :'Float',
117
121
  :'sock_read_timeout' => :'Float',
118
122
  :'headers' => :'Array<Object>',
119
- :'rate_limit' => :'Integer'
123
+ :'rate_limit' => :'Integer',
124
+ :'depth' => :'Integer'
120
125
  }
121
126
  end
122
127
 
@@ -132,7 +137,7 @@ module PulpOstreeClient
132
137
  :'connect_timeout',
133
138
  :'sock_connect_timeout',
134
139
  :'sock_read_timeout',
135
- :'rate_limit'
140
+ :'rate_limit',
136
141
  ])
137
142
  end
138
143
 
@@ -228,6 +233,12 @@ module PulpOstreeClient
228
233
  if attributes.key?(:'rate_limit')
229
234
  self.rate_limit = attributes[:'rate_limit']
230
235
  end
236
+
237
+ if attributes.key?(:'depth')
238
+ self.depth = attributes[:'depth']
239
+ else
240
+ self.depth = 0
241
+ end
231
242
  end
232
243
 
233
244
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -262,6 +273,10 @@ module PulpOstreeClient
262
273
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
263
274
  end
264
275
 
276
+ if !@depth.nil? && @depth < 0
277
+ invalid_properties.push('invalid value for "depth", must be greater than or equal to 0.')
278
+ end
279
+
265
280
  invalid_properties
266
281
  end
267
282
 
@@ -275,6 +290,7 @@ module PulpOstreeClient
275
290
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
276
291
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
277
292
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
293
+ return false if !@depth.nil? && @depth < 0
278
294
  true
279
295
  end
280
296
 
@@ -328,6 +344,16 @@ module PulpOstreeClient
328
344
  @sock_read_timeout = sock_read_timeout
329
345
  end
330
346
 
347
+ # Custom attribute writer method with validation
348
+ # @param [Object] depth Value to be assigned
349
+ def depth=(depth)
350
+ if !depth.nil? && depth < 0
351
+ fail ArgumentError, 'invalid value for "depth", must be greater than or equal to 0.'
352
+ end
353
+
354
+ @depth = depth
355
+ end
356
+
331
357
  # Checks equality by comparing each attribute.
332
358
  # @param [Object] Object to be compared
333
359
  def ==(o)
@@ -351,7 +377,8 @@ module PulpOstreeClient
351
377
  sock_connect_timeout == o.sock_connect_timeout &&
352
378
  sock_read_timeout == o.sock_read_timeout &&
353
379
  headers == o.headers &&
354
- rate_limit == o.rate_limit
380
+ rate_limit == o.rate_limit &&
381
+ depth == o.depth
355
382
  end
356
383
 
357
384
  # @see the `==` method
@@ -363,7 +390,7 @@ module PulpOstreeClient
363
390
  # Calculates hash code according to all attributes.
364
391
  # @return [Integer] Hash code
365
392
  def hash
366
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
393
+ [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, depth].hash
367
394
  end
368
395
 
369
396
  # Builds the object from hash
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module PulpOstreeClient
16
- # A Serializer for OstreeRepository. Add any new fields if defined on OstreeRepository. Similar to the example above, in OstreeContentSerializer. Additional validators can be added to the parent validators list For example:: class Meta: validators = platform.RepositorySerializer.Meta.validators + [myValidator1, myValidator2]
16
+ # A Serializer class for an OSTree repository.
17
17
  class OstreeOstreeRepository
18
18
  attr_accessor :pulp_labels
19
19
 
@@ -24,8 +24,9 @@ module PulpOstreeClient
24
24
  attr_accessor :description
25
25
 
26
26
  # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
27
- attr_accessor :retained_versions
27
+ attr_accessor :retain_repo_versions
28
28
 
29
+ # An optional remote to use by default when syncing.
29
30
  attr_accessor :remote
30
31
 
31
32
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -34,7 +35,7 @@ module PulpOstreeClient
34
35
  :'pulp_labels' => :'pulp_labels',
35
36
  :'name' => :'name',
36
37
  :'description' => :'description',
37
- :'retained_versions' => :'retained_versions',
38
+ :'retain_repo_versions' => :'retain_repo_versions',
38
39
  :'remote' => :'remote'
39
40
  }
40
41
  end
@@ -45,7 +46,7 @@ module PulpOstreeClient
45
46
  :'pulp_labels' => :'Object',
46
47
  :'name' => :'String',
47
48
  :'description' => :'String',
48
- :'retained_versions' => :'Integer',
49
+ :'retain_repo_versions' => :'Integer',
49
50
  :'remote' => :'String'
50
51
  }
51
52
  end
@@ -54,7 +55,7 @@ module PulpOstreeClient
54
55
  def self.openapi_nullable
55
56
  Set.new([
56
57
  :'description',
57
- :'retained_versions',
58
+ :'retain_repo_versions',
58
59
  :'remote'
59
60
  ])
60
61
  end
@@ -86,8 +87,8 @@ module PulpOstreeClient
86
87
  self.description = attributes[:'description']
87
88
  end
88
89
 
89
- if attributes.key?(:'retained_versions')
90
- self.retained_versions = attributes[:'retained_versions']
90
+ if attributes.key?(:'retain_repo_versions')
91
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
91
92
  end
92
93
 
93
94
  if attributes.key?(:'remote')
@@ -103,8 +104,8 @@ module PulpOstreeClient
103
104
  invalid_properties.push('invalid value for "name", name cannot be nil.')
104
105
  end
105
106
 
106
- if !@retained_versions.nil? && @retained_versions < 1
107
- invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
107
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
108
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
108
109
  end
109
110
 
110
111
  invalid_properties
@@ -114,18 +115,18 @@ module PulpOstreeClient
114
115
  # @return true if the model is valid
115
116
  def valid?
116
117
  return false if @name.nil?
117
- return false if !@retained_versions.nil? && @retained_versions < 1
118
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
118
119
  true
119
120
  end
120
121
 
121
122
  # Custom attribute writer method with validation
122
- # @param [Object] retained_versions Value to be assigned
123
- def retained_versions=(retained_versions)
124
- if !retained_versions.nil? && retained_versions < 1
125
- fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
123
+ # @param [Object] retain_repo_versions Value to be assigned
124
+ def retain_repo_versions=(retain_repo_versions)
125
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
126
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
126
127
  end
127
128
 
128
- @retained_versions = retained_versions
129
+ @retain_repo_versions = retain_repo_versions
129
130
  end
130
131
 
131
132
  # Checks equality by comparing each attribute.
@@ -136,7 +137,7 @@ module PulpOstreeClient
136
137
  pulp_labels == o.pulp_labels &&
137
138
  name == o.name &&
138
139
  description == o.description &&
139
- retained_versions == o.retained_versions &&
140
+ retain_repo_versions == o.retain_repo_versions &&
140
141
  remote == o.remote
141
142
  end
142
143
 
@@ -149,7 +150,7 @@ module PulpOstreeClient
149
150
  # Calculates hash code according to all attributes.
150
151
  # @return [Integer] Hash code
151
152
  def hash
152
- [pulp_labels, name, description, retained_versions, remote].hash
153
+ [pulp_labels, name, description, retain_repo_versions, remote].hash
153
154
  end
154
155
 
155
156
  # Builds the object from hash
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module PulpOstreeClient
16
- # A Serializer for OstreeRepository. Add any new fields if defined on OstreeRepository. Similar to the example above, in OstreeContentSerializer. Additional validators can be added to the parent validators list For example:: class Meta: validators = platform.RepositorySerializer.Meta.validators + [myValidator1, myValidator2]
16
+ # A Serializer class for an OSTree repository.
17
17
  class OstreeOstreeRepositoryResponse
18
18
  attr_accessor :pulp_href
19
19
 
@@ -33,8 +33,9 @@ module PulpOstreeClient
33
33
  attr_accessor :description
34
34
 
35
35
  # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
36
- attr_accessor :retained_versions
36
+ attr_accessor :retain_repo_versions
37
37
 
38
+ # An optional remote to use by default when syncing.
38
39
  attr_accessor :remote
39
40
 
40
41
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -47,7 +48,7 @@ module PulpOstreeClient
47
48
  :'latest_version_href' => :'latest_version_href',
48
49
  :'name' => :'name',
49
50
  :'description' => :'description',
50
- :'retained_versions' => :'retained_versions',
51
+ :'retain_repo_versions' => :'retain_repo_versions',
51
52
  :'remote' => :'remote'
52
53
  }
53
54
  end
@@ -62,7 +63,7 @@ module PulpOstreeClient
62
63
  :'latest_version_href' => :'String',
63
64
  :'name' => :'String',
64
65
  :'description' => :'String',
65
- :'retained_versions' => :'Integer',
66
+ :'retain_repo_versions' => :'Integer',
66
67
  :'remote' => :'String'
67
68
  }
68
69
  end
@@ -71,7 +72,7 @@ module PulpOstreeClient
71
72
  def self.openapi_nullable
72
73
  Set.new([
73
74
  :'description',
74
- :'retained_versions',
75
+ :'retain_repo_versions',
75
76
  :'remote'
76
77
  ])
77
78
  end
@@ -119,8 +120,8 @@ module PulpOstreeClient
119
120
  self.description = attributes[:'description']
120
121
  end
121
122
 
122
- if attributes.key?(:'retained_versions')
123
- self.retained_versions = attributes[:'retained_versions']
123
+ if attributes.key?(:'retain_repo_versions')
124
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
124
125
  end
125
126
 
126
127
  if attributes.key?(:'remote')
@@ -136,8 +137,8 @@ module PulpOstreeClient
136
137
  invalid_properties.push('invalid value for "name", name cannot be nil.')
137
138
  end
138
139
 
139
- if !@retained_versions.nil? && @retained_versions < 1
140
- invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
140
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
141
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
141
142
  end
142
143
 
143
144
  invalid_properties
@@ -147,18 +148,18 @@ module PulpOstreeClient
147
148
  # @return true if the model is valid
148
149
  def valid?
149
150
  return false if @name.nil?
150
- return false if !@retained_versions.nil? && @retained_versions < 1
151
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
151
152
  true
152
153
  end
153
154
 
154
155
  # Custom attribute writer method with validation
155
- # @param [Object] retained_versions Value to be assigned
156
- def retained_versions=(retained_versions)
157
- if !retained_versions.nil? && retained_versions < 1
158
- fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
156
+ # @param [Object] retain_repo_versions Value to be assigned
157
+ def retain_repo_versions=(retain_repo_versions)
158
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
159
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
159
160
  end
160
161
 
161
- @retained_versions = retained_versions
162
+ @retain_repo_versions = retain_repo_versions
162
163
  end
163
164
 
164
165
  # Checks equality by comparing each attribute.
@@ -173,7 +174,7 @@ module PulpOstreeClient
173
174
  latest_version_href == o.latest_version_href &&
174
175
  name == o.name &&
175
176
  description == o.description &&
176
- retained_versions == o.retained_versions &&
177
+ retain_repo_versions == o.retain_repo_versions &&
177
178
  remote == o.remote
178
179
  end
179
180
 
@@ -186,7 +187,7 @@ module PulpOstreeClient
186
187
  # Calculates hash code according to all attributes.
187
188
  # @return [Integer] Hash code
188
189
  def hash
189
- [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retained_versions, remote].hash
190
+ [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote].hash
190
191
  end
191
192
 
192
193
  # Builds the object from hash