pulp_ostree_client 2.0.0a5 → 2.0.0a6

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 (54) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -9
  3. data/docs/ContentCommitsApi.md +2 -2
  4. data/docs/ContentConfigsApi.md +2 -2
  5. data/docs/ContentObjectsApi.md +2 -2
  6. data/docs/ContentRefsApi.md +2 -2
  7. data/docs/ContentSummariesApi.md +2 -2
  8. data/docs/DistributionsOstreeApi.md +2 -2
  9. data/docs/OstreeImportAll.md +19 -0
  10. data/docs/{OstreeRepoImport.md → OstreeImportCommitsToRef.md} +3 -3
  11. data/docs/OstreeOstreeRemote.md +7 -3
  12. data/docs/OstreeOstreeRemoteResponse.md +5 -1
  13. data/docs/PatchedostreeOstreeRemote.md +7 -3
  14. data/docs/RemotesOstreeApi.md +2 -2
  15. data/docs/Repair.md +17 -0
  16. data/docs/RepositoriesOstreeApi.md +66 -10
  17. data/docs/RepositoriesOstreeVersionsApi.md +6 -6
  18. data/lib/pulp_ostree_client/api/content_commits_api.rb +7 -3
  19. data/lib/pulp_ostree_client/api/content_configs_api.rb +7 -3
  20. data/lib/pulp_ostree_client/api/content_objects_api.rb +7 -3
  21. data/lib/pulp_ostree_client/api/content_refs_api.rb +7 -3
  22. data/lib/pulp_ostree_client/api/content_summaries_api.rb +7 -3
  23. data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +7 -3
  24. data/lib/pulp_ostree_client/api/remotes_ostree_api.rb +7 -3
  25. data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +90 -16
  26. data/lib/pulp_ostree_client/api/repositories_ostree_versions_api.rb +16 -12
  27. data/lib/pulp_ostree_client/api_client.rb +1 -4
  28. data/lib/pulp_ostree_client/configuration.rb +1 -0
  29. data/lib/pulp_ostree_client/models/{content_summary.rb → ostree_import_all.rb} +42 -41
  30. data/lib/pulp_ostree_client/models/{ostree_repo_import.rb → ostree_import_commits_to_ref.rb} +16 -7
  31. data/lib/pulp_ostree_client/models/ostree_ostree_remote.rb +32 -6
  32. data/lib/pulp_ostree_client/models/ostree_ostree_remote_response.rb +30 -4
  33. data/lib/pulp_ostree_client/models/patchedostree_ostree_remote.rb +32 -6
  34. data/lib/pulp_ostree_client/models/{repository_version.rb → repair.rb} +13 -12
  35. data/lib/pulp_ostree_client/version.rb +1 -1
  36. data/lib/pulp_ostree_client.rb +3 -3
  37. data/spec/api/content_commits_api_spec.rb +1 -1
  38. data/spec/api/content_configs_api_spec.rb +1 -1
  39. data/spec/api/content_objects_api_spec.rb +1 -1
  40. data/spec/api/content_refs_api_spec.rb +1 -1
  41. data/spec/api/content_summaries_api_spec.rb +1 -1
  42. data/spec/api/distributions_ostree_api_spec.rb +1 -1
  43. data/spec/api/remotes_ostree_api_spec.rb +1 -1
  44. data/spec/api/repositories_ostree_api_spec.rb +17 -4
  45. data/spec/api/repositories_ostree_versions_api_spec.rb +2 -2
  46. data/spec/models/{content_summary_spec.rb → ostree_import_all_spec.rb} +8 -14
  47. data/spec/models/{ostree_repo_import_spec.rb → ostree_import_commits_to_ref_spec.rb} +6 -6
  48. data/spec/models/ostree_ostree_remote_response_spec.rb +12 -0
  49. data/spec/models/ostree_ostree_remote_spec.rb +12 -0
  50. data/spec/models/patchedostree_ostree_remote_spec.rb +12 -0
  51. data/spec/models/{repository_version_spec.rb → repair_spec.rb} +7 -7
  52. metadata +41 -41
  53. data/docs/ContentSummary.md +0 -21
  54. data/docs/RepositoryVersion.md +0 -17
@@ -13,29 +13,27 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module PulpOstreeClient
16
- # Serializer for the RepositoryVersion content summary
17
- class ContentSummary
18
- attr_accessor :added
16
+ # A Serializer class for importing all refs and commits to a repository.
17
+ class OstreeImportAll
18
+ # An artifact representing OSTree content compressed as a tarball.
19
+ attr_accessor :artifact
19
20
 
20
- attr_accessor :removed
21
-
22
- attr_accessor :present
21
+ # The name of a repository that contains the compressed OSTree content.
22
+ attr_accessor :repository_name
23
23
 
24
24
  # Attribute mapping from ruby-style variable name to JSON key.
25
25
  def self.attribute_map
26
26
  {
27
- :'added' => :'added',
28
- :'removed' => :'removed',
29
- :'present' => :'present'
27
+ :'artifact' => :'artifact',
28
+ :'repository_name' => :'repository_name'
30
29
  }
31
30
  end
32
31
 
33
32
  # Attribute type mapping.
34
33
  def self.openapi_types
35
34
  {
36
- :'added' => :'Hash<String, Object>',
37
- :'removed' => :'Hash<String, Object>',
38
- :'present' => :'Hash<String, Object>'
35
+ :'artifact' => :'String',
36
+ :'repository_name' => :'String'
39
37
  }
40
38
  end
41
39
 
@@ -49,33 +47,23 @@ module PulpOstreeClient
49
47
  # @param [Hash] attributes Model attributes in the form of hash
50
48
  def initialize(attributes = {})
51
49
  if (!attributes.is_a?(Hash))
52
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpOstreeClient::ContentSummary` initialize method"
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpOstreeClient::OstreeImportAll` initialize method"
53
51
  end
54
52
 
55
53
  # check to see if the attribute exists and convert string to symbol for hash key
56
54
  attributes = attributes.each_with_object({}) { |(k, v), h|
57
55
  if (!self.class.attribute_map.key?(k.to_sym))
58
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpOstreeClient::ContentSummary`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpOstreeClient::OstreeImportAll`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
59
57
  end
60
58
  h[k.to_sym] = v
61
59
  }
62
60
 
63
- if attributes.key?(:'added')
64
- if (value = attributes[:'added']).is_a?(Hash)
65
- self.added = value
66
- end
67
- end
68
-
69
- if attributes.key?(:'removed')
70
- if (value = attributes[:'removed']).is_a?(Hash)
71
- self.removed = value
72
- end
61
+ if attributes.key?(:'artifact')
62
+ self.artifact = attributes[:'artifact']
73
63
  end
74
64
 
75
- if attributes.key?(:'present')
76
- if (value = attributes[:'present']).is_a?(Hash)
77
- self.present = value
78
- end
65
+ if attributes.key?(:'repository_name')
66
+ self.repository_name = attributes[:'repository_name']
79
67
  end
80
68
  end
81
69
 
@@ -83,16 +71,16 @@ module PulpOstreeClient
83
71
  # @return Array for valid properties with the reasons
84
72
  def list_invalid_properties
85
73
  invalid_properties = Array.new
86
- if @added.nil?
87
- invalid_properties.push('invalid value for "added", added cannot be nil.')
74
+ if @artifact.nil?
75
+ invalid_properties.push('invalid value for "artifact", artifact cannot be nil.')
88
76
  end
89
77
 
90
- if @removed.nil?
91
- invalid_properties.push('invalid value for "removed", removed cannot be nil.')
78
+ if @repository_name.nil?
79
+ invalid_properties.push('invalid value for "repository_name", repository_name cannot be nil.')
92
80
  end
93
81
 
94
- if @present.nil?
95
- invalid_properties.push('invalid value for "present", present cannot be nil.')
82
+ if @repository_name.to_s.length < 1
83
+ invalid_properties.push('invalid value for "repository_name", the character length must be great than or equal to 1.')
96
84
  end
97
85
 
98
86
  invalid_properties
@@ -101,20 +89,33 @@ module PulpOstreeClient
101
89
  # Check to see if the all the properties in the model are valid
102
90
  # @return true if the model is valid
103
91
  def valid?
104
- return false if @added.nil?
105
- return false if @removed.nil?
106
- return false if @present.nil?
92
+ return false if @artifact.nil?
93
+ return false if @repository_name.nil?
94
+ return false if @repository_name.to_s.length < 1
107
95
  true
108
96
  end
109
97
 
98
+ # Custom attribute writer method with validation
99
+ # @param [Object] repository_name Value to be assigned
100
+ def repository_name=(repository_name)
101
+ if repository_name.nil?
102
+ fail ArgumentError, 'repository_name cannot be nil'
103
+ end
104
+
105
+ if repository_name.to_s.length < 1
106
+ fail ArgumentError, 'invalid value for "repository_name", the character length must be great than or equal to 1.'
107
+ end
108
+
109
+ @repository_name = repository_name
110
+ end
111
+
110
112
  # Checks equality by comparing each attribute.
111
113
  # @param [Object] Object to be compared
112
114
  def ==(o)
113
115
  return true if self.equal?(o)
114
116
  self.class == o.class &&
115
- added == o.added &&
116
- removed == o.removed &&
117
- present == o.present
117
+ artifact == o.artifact &&
118
+ repository_name == o.repository_name
118
119
  end
119
120
 
120
121
  # @see the `==` method
@@ -126,7 +127,7 @@ module PulpOstreeClient
126
127
  # Calculates hash code according to all attributes.
127
128
  # @return [Integer] Hash code
128
129
  def hash
129
- [added, removed, present].hash
130
+ [artifact, repository_name].hash
130
131
  end
131
132
 
132
133
  # Builds the object from hash
@@ -13,8 +13,8 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module PulpOstreeClient
16
- # A Serializer class for importing commits to a Pulp OSTree repository.
17
- class OstreeRepoImport
16
+ # A Serializer class for appending child commits to a repository.
17
+ class OstreeImportCommitsToRef
18
18
  # An artifact representing OSTree content compressed as a tarball.
19
19
  attr_accessor :artifact
20
20
 
@@ -52,13 +52,13 @@ module PulpOstreeClient
52
52
  # @param [Hash] attributes Model attributes in the form of hash
53
53
  def initialize(attributes = {})
54
54
  if (!attributes.is_a?(Hash))
55
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpOstreeClient::OstreeRepoImport` initialize method"
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpOstreeClient::OstreeImportCommitsToRef` initialize method"
56
56
  end
57
57
 
58
58
  # check to see if the attribute exists and convert string to symbol for hash key
59
59
  attributes = attributes.each_with_object({}) { |(k, v), h|
60
60
  if (!self.class.attribute_map.key?(k.to_sym))
61
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpOstreeClient::OstreeRepoImport`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpOstreeClient::OstreeImportCommitsToRef`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
62
  end
63
63
  h[k.to_sym] = v
64
64
  }
@@ -92,7 +92,11 @@ module PulpOstreeClient
92
92
  invalid_properties.push('invalid value for "repository_name", the character length must be great than or equal to 1.')
93
93
  end
94
94
 
95
- if !@ref.nil? && @ref.to_s.length < 1
95
+ if @ref.nil?
96
+ invalid_properties.push('invalid value for "ref", ref cannot be nil.')
97
+ end
98
+
99
+ if @ref.to_s.length < 1
96
100
  invalid_properties.push('invalid value for "ref", the character length must be great than or equal to 1.')
97
101
  end
98
102
 
@@ -105,7 +109,8 @@ module PulpOstreeClient
105
109
  return false if @artifact.nil?
106
110
  return false if @repository_name.nil?
107
111
  return false if @repository_name.to_s.length < 1
108
- return false if !@ref.nil? && @ref.to_s.length < 1
112
+ return false if @ref.nil?
113
+ return false if @ref.to_s.length < 1
109
114
  true
110
115
  end
111
116
 
@@ -126,7 +131,11 @@ module PulpOstreeClient
126
131
  # Custom attribute writer method with validation
127
132
  # @param [Object] ref Value to be assigned
128
133
  def ref=(ref)
129
- if !ref.nil? && ref.to_s.length < 1
134
+ if ref.nil?
135
+ fail ArgumentError, 'ref cannot be nil'
136
+ end
137
+
138
+ if ref.to_s.length < 1
130
139
  fail ArgumentError, 'invalid value for "ref", the character length must be great than or equal to 1.'
131
140
  end
132
141
 
@@ -39,13 +39,13 @@ module PulpOstreeClient
39
39
  # The username to authenticte to the proxy.
40
40
  attr_accessor :proxy_username
41
41
 
42
- # The password to authenticte to the proxy.
42
+ # The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
43
43
  attr_accessor :proxy_password
44
44
 
45
45
  # The username to be used for authentication when syncing.
46
46
  attr_accessor :username
47
47
 
48
- # The password to be used for authentication when syncing.
48
+ # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
49
49
  attr_accessor :password
50
50
 
51
51
  attr_accessor :pulp_labels
@@ -80,6 +80,12 @@ module PulpOstreeClient
80
80
  # An option to specify how many commits to traverse.
81
81
  attr_accessor :depth
82
82
 
83
+ # A list of refs to include during a sync. The wildcards *, ? are recognized. 'include_refs' is evaluated before 'exclude_refs'.
84
+ attr_accessor :include_refs
85
+
86
+ # A list of tags to exclude during a sync. The wildcards *, ? are recognized. 'exclude_refs' is evaluated after 'include_refs'.
87
+ attr_accessor :exclude_refs
88
+
83
89
  # Attribute mapping from ruby-style variable name to JSON key.
84
90
  def self.attribute_map
85
91
  {
@@ -104,7 +110,9 @@ module PulpOstreeClient
104
110
  :'sock_read_timeout' => :'sock_read_timeout',
105
111
  :'headers' => :'headers',
106
112
  :'rate_limit' => :'rate_limit',
107
- :'depth' => :'depth'
113
+ :'depth' => :'depth',
114
+ :'include_refs' => :'include_refs',
115
+ :'exclude_refs' => :'exclude_refs'
108
116
  }
109
117
  end
110
118
 
@@ -132,7 +140,9 @@ module PulpOstreeClient
132
140
  :'sock_read_timeout' => :'Float',
133
141
  :'headers' => :'Array<Object>',
134
142
  :'rate_limit' => :'Integer',
135
- :'depth' => :'Integer'
143
+ :'depth' => :'Integer',
144
+ :'include_refs' => :'Array<String>',
145
+ :'exclude_refs' => :'Array<String>'
136
146
  }
137
147
  end
138
148
 
@@ -154,6 +164,8 @@ module PulpOstreeClient
154
164
  :'sock_connect_timeout',
155
165
  :'sock_read_timeout',
156
166
  :'rate_limit',
167
+ :'include_refs',
168
+ :'exclude_refs'
157
169
  ])
158
170
  end
159
171
 
@@ -263,6 +275,18 @@ module PulpOstreeClient
263
275
  else
264
276
  self.depth = 0
265
277
  end
278
+
279
+ if attributes.key?(:'include_refs')
280
+ if (value = attributes[:'include_refs']).is_a?(Array)
281
+ self.include_refs = value
282
+ end
283
+ end
284
+
285
+ if attributes.key?(:'exclude_refs')
286
+ if (value = attributes[:'exclude_refs']).is_a?(Array)
287
+ self.exclude_refs = value
288
+ end
289
+ end
266
290
  end
267
291
 
268
292
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -562,7 +586,9 @@ module PulpOstreeClient
562
586
  sock_read_timeout == o.sock_read_timeout &&
563
587
  headers == o.headers &&
564
588
  rate_limit == o.rate_limit &&
565
- depth == o.depth
589
+ depth == o.depth &&
590
+ include_refs == o.include_refs &&
591
+ exclude_refs == o.exclude_refs
566
592
  end
567
593
 
568
594
  # @see the `==` method
@@ -574,7 +600,7 @@ module PulpOstreeClient
574
600
  # Calculates hash code according to all attributes.
575
601
  # @return [Integer] Hash code
576
602
  def hash
577
- [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
603
+ [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, include_refs, exclude_refs].hash
578
604
  end
579
605
 
580
606
  # Builds the object from hash
@@ -73,6 +73,12 @@ module PulpOstreeClient
73
73
  # An option to specify how many commits to traverse.
74
74
  attr_accessor :depth
75
75
 
76
+ # A list of refs to include during a sync. The wildcards *, ? are recognized. 'include_refs' is evaluated before 'exclude_refs'.
77
+ attr_accessor :include_refs
78
+
79
+ # A list of tags to exclude during a sync. The wildcards *, ? are recognized. 'exclude_refs' is evaluated after 'include_refs'.
80
+ attr_accessor :exclude_refs
81
+
76
82
  # Attribute mapping from ruby-style variable name to JSON key.
77
83
  def self.attribute_map
78
84
  {
@@ -95,7 +101,9 @@ module PulpOstreeClient
95
101
  :'sock_read_timeout' => :'sock_read_timeout',
96
102
  :'headers' => :'headers',
97
103
  :'rate_limit' => :'rate_limit',
98
- :'depth' => :'depth'
104
+ :'depth' => :'depth',
105
+ :'include_refs' => :'include_refs',
106
+ :'exclude_refs' => :'exclude_refs'
99
107
  }
100
108
  end
101
109
 
@@ -121,7 +129,9 @@ module PulpOstreeClient
121
129
  :'sock_read_timeout' => :'Float',
122
130
  :'headers' => :'Array<Object>',
123
131
  :'rate_limit' => :'Integer',
124
- :'depth' => :'Integer'
132
+ :'depth' => :'Integer',
133
+ :'include_refs' => :'Array<String>',
134
+ :'exclude_refs' => :'Array<String>'
125
135
  }
126
136
  end
127
137
 
@@ -138,6 +148,8 @@ module PulpOstreeClient
138
148
  :'sock_connect_timeout',
139
149
  :'sock_read_timeout',
140
150
  :'rate_limit',
151
+ :'include_refs',
152
+ :'exclude_refs'
141
153
  ])
142
154
  end
143
155
 
@@ -239,6 +251,18 @@ module PulpOstreeClient
239
251
  else
240
252
  self.depth = 0
241
253
  end
254
+
255
+ if attributes.key?(:'include_refs')
256
+ if (value = attributes[:'include_refs']).is_a?(Array)
257
+ self.include_refs = value
258
+ end
259
+ end
260
+
261
+ if attributes.key?(:'exclude_refs')
262
+ if (value = attributes[:'exclude_refs']).is_a?(Array)
263
+ self.exclude_refs = value
264
+ end
265
+ end
242
266
  end
243
267
 
244
268
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -378,7 +402,9 @@ module PulpOstreeClient
378
402
  sock_read_timeout == o.sock_read_timeout &&
379
403
  headers == o.headers &&
380
404
  rate_limit == o.rate_limit &&
381
- depth == o.depth
405
+ depth == o.depth &&
406
+ include_refs == o.include_refs &&
407
+ exclude_refs == o.exclude_refs
382
408
  end
383
409
 
384
410
  # @see the `==` method
@@ -390,7 +416,7 @@ module PulpOstreeClient
390
416
  # Calculates hash code according to all attributes.
391
417
  # @return [Integer] Hash code
392
418
  def 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
419
+ [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, include_refs, exclude_refs].hash
394
420
  end
395
421
 
396
422
  # Builds the object from hash
@@ -39,13 +39,13 @@ module PulpOstreeClient
39
39
  # The username to authenticte to the proxy.
40
40
  attr_accessor :proxy_username
41
41
 
42
- # The password to authenticte to the proxy.
42
+ # The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
43
43
  attr_accessor :proxy_password
44
44
 
45
45
  # The username to be used for authentication when syncing.
46
46
  attr_accessor :username
47
47
 
48
- # The password to be used for authentication when syncing.
48
+ # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
49
49
  attr_accessor :password
50
50
 
51
51
  attr_accessor :pulp_labels
@@ -80,6 +80,12 @@ module PulpOstreeClient
80
80
  # An option to specify how many commits to traverse.
81
81
  attr_accessor :depth
82
82
 
83
+ # A list of refs to include during a sync. The wildcards *, ? are recognized. 'include_refs' is evaluated before 'exclude_refs'.
84
+ attr_accessor :include_refs
85
+
86
+ # A list of tags to exclude during a sync. The wildcards *, ? are recognized. 'exclude_refs' is evaluated after 'include_refs'.
87
+ attr_accessor :exclude_refs
88
+
83
89
  # Attribute mapping from ruby-style variable name to JSON key.
84
90
  def self.attribute_map
85
91
  {
@@ -104,7 +110,9 @@ module PulpOstreeClient
104
110
  :'sock_read_timeout' => :'sock_read_timeout',
105
111
  :'headers' => :'headers',
106
112
  :'rate_limit' => :'rate_limit',
107
- :'depth' => :'depth'
113
+ :'depth' => :'depth',
114
+ :'include_refs' => :'include_refs',
115
+ :'exclude_refs' => :'exclude_refs'
108
116
  }
109
117
  end
110
118
 
@@ -132,7 +140,9 @@ module PulpOstreeClient
132
140
  :'sock_read_timeout' => :'Float',
133
141
  :'headers' => :'Array<Object>',
134
142
  :'rate_limit' => :'Integer',
135
- :'depth' => :'Integer'
143
+ :'depth' => :'Integer',
144
+ :'include_refs' => :'Array<String>',
145
+ :'exclude_refs' => :'Array<String>'
136
146
  }
137
147
  end
138
148
 
@@ -154,6 +164,8 @@ module PulpOstreeClient
154
164
  :'sock_connect_timeout',
155
165
  :'sock_read_timeout',
156
166
  :'rate_limit',
167
+ :'include_refs',
168
+ :'exclude_refs'
157
169
  ])
158
170
  end
159
171
 
@@ -263,6 +275,18 @@ module PulpOstreeClient
263
275
  else
264
276
  self.depth = 0
265
277
  end
278
+
279
+ if attributes.key?(:'include_refs')
280
+ if (value = attributes[:'include_refs']).is_a?(Array)
281
+ self.include_refs = value
282
+ end
283
+ end
284
+
285
+ if attributes.key?(:'exclude_refs')
286
+ if (value = attributes[:'exclude_refs']).is_a?(Array)
287
+ self.exclude_refs = value
288
+ end
289
+ end
266
290
  end
267
291
 
268
292
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -544,7 +568,9 @@ module PulpOstreeClient
544
568
  sock_read_timeout == o.sock_read_timeout &&
545
569
  headers == o.headers &&
546
570
  rate_limit == o.rate_limit &&
547
- depth == o.depth
571
+ depth == o.depth &&
572
+ include_refs == o.include_refs &&
573
+ exclude_refs == o.exclude_refs
548
574
  end
549
575
 
550
576
  # @see the `==` method
@@ -556,7 +582,7 @@ module PulpOstreeClient
556
582
  # Calculates hash code according to all attributes.
557
583
  # @return [Integer] Hash code
558
584
  def hash
559
- [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
585
+ [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, include_refs, exclude_refs].hash
560
586
  end
561
587
 
562
588
  # Builds the object from hash
@@ -13,22 +13,21 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module PulpOstreeClient
16
- # Base serializer for use with :class:`pulpcore.app.models.Model` This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
17
- class RepositoryVersion
18
- # A repository version whose content was used as the initial set of content for this repository version
19
- attr_accessor :base_version
16
+ class Repair
17
+ # Will verify that the checksum of all stored files matches what saved in the database. Otherwise only the existence of the files will be checked. Enabled by default
18
+ attr_accessor :verify_checksums
20
19
 
21
20
  # Attribute mapping from ruby-style variable name to JSON key.
22
21
  def self.attribute_map
23
22
  {
24
- :'base_version' => :'base_version'
23
+ :'verify_checksums' => :'verify_checksums'
25
24
  }
26
25
  end
27
26
 
28
27
  # Attribute type mapping.
29
28
  def self.openapi_types
30
29
  {
31
- :'base_version' => :'String'
30
+ :'verify_checksums' => :'Boolean'
32
31
  }
33
32
  end
34
33
 
@@ -42,19 +41,21 @@ module PulpOstreeClient
42
41
  # @param [Hash] attributes Model attributes in the form of hash
43
42
  def initialize(attributes = {})
44
43
  if (!attributes.is_a?(Hash))
45
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpOstreeClient::RepositoryVersion` initialize method"
44
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpOstreeClient::Repair` initialize method"
46
45
  end
47
46
 
48
47
  # check to see if the attribute exists and convert string to symbol for hash key
49
48
  attributes = attributes.each_with_object({}) { |(k, v), h|
50
49
  if (!self.class.attribute_map.key?(k.to_sym))
51
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpOstreeClient::RepositoryVersion`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
50
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpOstreeClient::Repair`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
52
51
  end
53
52
  h[k.to_sym] = v
54
53
  }
55
54
 
56
- if attributes.key?(:'base_version')
57
- self.base_version = attributes[:'base_version']
55
+ if attributes.key?(:'verify_checksums')
56
+ self.verify_checksums = attributes[:'verify_checksums']
57
+ else
58
+ self.verify_checksums = true
58
59
  end
59
60
  end
60
61
 
@@ -76,7 +77,7 @@ module PulpOstreeClient
76
77
  def ==(o)
77
78
  return true if self.equal?(o)
78
79
  self.class == o.class &&
79
- base_version == o.base_version
80
+ verify_checksums == o.verify_checksums
80
81
  end
81
82
 
82
83
  # @see the `==` method
@@ -88,7 +89,7 @@ module PulpOstreeClient
88
89
  # Calculates hash code according to all attributes.
89
90
  # @return [Integer] Hash code
90
91
  def hash
91
- [base_version].hash
92
+ [verify_checksums].hash
92
93
  end
93
94
 
94
95
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpOstreeClient
14
- VERSION = '2.0.0a5'
14
+ VERSION = '2.0.0a6'
15
15
  end
@@ -18,8 +18,9 @@ require 'pulp_ostree_client/configuration'
18
18
 
19
19
  # Models
20
20
  require 'pulp_ostree_client/models/async_operation_response'
21
- require 'pulp_ostree_client/models/content_summary'
22
21
  require 'pulp_ostree_client/models/content_summary_response'
22
+ require 'pulp_ostree_client/models/ostree_import_all'
23
+ require 'pulp_ostree_client/models/ostree_import_commits_to_ref'
23
24
  require 'pulp_ostree_client/models/ostree_ostree_commit_response'
24
25
  require 'pulp_ostree_client/models/ostree_ostree_config_response'
25
26
  require 'pulp_ostree_client/models/ostree_ostree_distribution'
@@ -31,7 +32,6 @@ require 'pulp_ostree_client/models/ostree_ostree_remote_response'
31
32
  require 'pulp_ostree_client/models/ostree_ostree_repository'
32
33
  require 'pulp_ostree_client/models/ostree_ostree_repository_response'
33
34
  require 'pulp_ostree_client/models/ostree_ostree_summary_response'
34
- require 'pulp_ostree_client/models/ostree_repo_import'
35
35
  require 'pulp_ostree_client/models/ostree_repository_add_remove_content'
36
36
  require 'pulp_ostree_client/models/paginated_repository_version_response_list'
37
37
  require 'pulp_ostree_client/models/paginatedostree_ostree_commit_response_list'
@@ -46,8 +46,8 @@ require 'pulp_ostree_client/models/patchedostree_ostree_distribution'
46
46
  require 'pulp_ostree_client/models/patchedostree_ostree_remote'
47
47
  require 'pulp_ostree_client/models/patchedostree_ostree_repository'
48
48
  require 'pulp_ostree_client/models/policy_enum'
49
+ require 'pulp_ostree_client/models/repair'
49
50
  require 'pulp_ostree_client/models/repository_sync_url'
50
- require 'pulp_ostree_client/models/repository_version'
51
51
  require 'pulp_ostree_client/models/repository_version_response'
52
52
 
53
53
  # APIs
@@ -39,7 +39,7 @@ describe 'ContentCommitsApi' do
39
39
  # @option opts [String] :checksum Filter results where checksum matches value
40
40
  # @option opts [Integer] :limit Number of results to return per page.
41
41
  # @option opts [Integer] :offset The initial index from which to return the results.
42
- # @option opts [String] :ordering Which field to use when ordering the results.
42
+ # @option opts [Array<String>] :ordering Ordering
43
43
  # @option opts [String] :repository_version Repository Version referenced by HREF
44
44
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
45
45
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -38,7 +38,7 @@ describe 'ContentConfigsApi' do
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @option opts [Integer] :limit Number of results to return per page.
40
40
  # @option opts [Integer] :offset The initial index from which to return the results.
41
- # @option opts [String] :ordering Which field to use when ordering the results.
41
+ # @option opts [Array<String>] :ordering Ordering
42
42
  # @option opts [String] :repository_version Repository Version referenced by HREF
43
43
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
44
44
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -39,7 +39,7 @@ describe 'ContentObjectsApi' do
39
39
  # @option opts [String] :checksum Filter results where checksum matches value
40
40
  # @option opts [Integer] :limit Number of results to return per page.
41
41
  # @option opts [Integer] :offset The initial index from which to return the results.
42
- # @option opts [String] :ordering Which field to use when ordering the results.
42
+ # @option opts [Array<String>] :ordering Ordering
43
43
  # @option opts [String] :repository_version Repository Version referenced by HREF
44
44
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
45
45
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -44,7 +44,7 @@ describe 'ContentRefsApi' do
44
44
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
45
45
  # @option opts [String] :name__startswith Filter results where name starts with value
46
46
  # @option opts [Integer] :offset The initial index from which to return the results.
47
- # @option opts [String] :ordering Which field to use when ordering the results.
47
+ # @option opts [Array<String>] :ordering Ordering
48
48
  # @option opts [String] :repository_version Repository Version referenced by HREF
49
49
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
50
50
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -38,7 +38,7 @@ describe 'ContentSummariesApi' do
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @option opts [Integer] :limit Number of results to return per page.
40
40
  # @option opts [Integer] :offset The initial index from which to return the results.
41
- # @option opts [String] :ordering Which field to use when ordering the results.
41
+ # @option opts [Array<String>] :ordering Ordering
42
42
  # @option opts [String] :repository_version Repository Version referenced by HREF
43
43
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
44
44
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -71,7 +71,7 @@ describe 'DistributionsOstreeApi' do
71
71
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
72
72
  # @option opts [String] :name__startswith Filter results where name starts with value
73
73
  # @option opts [Integer] :offset The initial index from which to return the results.
74
- # @option opts [String] :ordering Which field to use when ordering the results.
74
+ # @option opts [Array<String>] :ordering Ordering
75
75
  # @option opts [String] :pulp_label_select Filter labels by search string
76
76
  # @option opts [String] :fields A list of fields to include in the response.
77
77
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.