pulp_ostree_client 2.0.0a6 → 2.0.0

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 (73) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -7
  3. data/docs/ContentCommitsApi.md +8 -8
  4. data/docs/ContentConfigsApi.md +8 -8
  5. data/docs/ContentContentApi.md +138 -0
  6. data/docs/ContentObjectsApi.md +8 -8
  7. data/docs/ContentRefsApi.md +8 -8
  8. data/docs/ContentSummariesApi.md +8 -8
  9. data/docs/DistributionsOstreeApi.md +18 -12
  10. data/docs/OstreeOstreeContentResponse.md +25 -0
  11. data/docs/OstreeOstreeDistribution.md +1 -1
  12. data/docs/OstreeOstreeDistributionResponse.md +1 -1
  13. data/docs/OstreeOstreeRemote.md +1 -1
  14. data/docs/OstreeOstreeRemoteResponse.md +3 -1
  15. data/docs/OstreeOstreeRemoteResponseHiddenFields.md +19 -0
  16. data/docs/OstreeOstreeRepository.md +5 -3
  17. data/docs/OstreeOstreeRepositoryResponse.md +5 -3
  18. data/docs/PaginatedostreeOstreeContentResponseList.md +23 -0
  19. data/docs/PatchedostreeOstreeDistribution.md +1 -1
  20. data/docs/PatchedostreeOstreeRemote.md +1 -1
  21. data/docs/PatchedostreeOstreeRepository.md +5 -3
  22. data/docs/RemotesOstreeApi.md +12 -12
  23. data/docs/RepositoriesOstreeApi.md +32 -14
  24. data/docs/RepositoriesOstreeVersionsApi.md +12 -12
  25. data/docs/RepositoryAddRemoveContent.md +21 -0
  26. data/lib/pulp_ostree_client/api/content_commits_api.rb +13 -13
  27. data/lib/pulp_ostree_client/api/content_configs_api.rb +12 -12
  28. data/lib/pulp_ostree_client/api/content_content_api.rb +174 -0
  29. data/lib/pulp_ostree_client/api/content_objects_api.rb +13 -13
  30. data/lib/pulp_ostree_client/api/content_refs_api.rb +13 -13
  31. data/lib/pulp_ostree_client/api/content_summaries_api.rb +12 -12
  32. data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +26 -17
  33. data/lib/pulp_ostree_client/api/remotes_ostree_api.rb +17 -17
  34. data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +51 -24
  35. data/lib/pulp_ostree_client/api/repositories_ostree_versions_api.rb +17 -17
  36. data/lib/pulp_ostree_client/api_client.rb +1 -1
  37. data/lib/pulp_ostree_client/models/ostree_ostree_content_response.rb +260 -0
  38. data/lib/pulp_ostree_client/models/ostree_ostree_distribution.rb +4 -2
  39. data/lib/pulp_ostree_client/models/ostree_ostree_distribution_response.rb +4 -2
  40. data/lib/pulp_ostree_client/models/ostree_ostree_remote.rb +4 -2
  41. data/lib/pulp_ostree_client/models/ostree_ostree_remote_response.rb +17 -3
  42. data/lib/pulp_ostree_client/models/ostree_ostree_remote_response_hidden_fields.rb +215 -0
  43. data/lib/pulp_ostree_client/models/ostree_ostree_repository.rb +21 -8
  44. data/lib/pulp_ostree_client/models/ostree_ostree_repository_response.rb +21 -8
  45. data/lib/pulp_ostree_client/models/paginatedostree_ostree_content_response_list.rb +237 -0
  46. data/lib/pulp_ostree_client/models/patchedostree_ostree_distribution.rb +4 -2
  47. data/lib/pulp_ostree_client/models/patchedostree_ostree_remote.rb +4 -2
  48. data/lib/pulp_ostree_client/models/patchedostree_ostree_repository.rb +21 -8
  49. data/lib/pulp_ostree_client/models/{ostree_repository_add_remove_content.rb → repository_add_remove_content.rb} +6 -6
  50. data/lib/pulp_ostree_client/version.rb +1 -1
  51. data/lib/pulp_ostree_client.rb +5 -1
  52. data/pulp_ostree_client.gemspec +3 -3
  53. data/spec/api/content_commits_api_spec.rb +4 -4
  54. data/spec/api/content_configs_api_spec.rb +4 -4
  55. data/spec/api/content_content_api_spec.rb +68 -0
  56. data/spec/api/content_objects_api_spec.rb +4 -4
  57. data/spec/api/content_refs_api_spec.rb +4 -4
  58. data/spec/api/content_summaries_api_spec.rb +4 -4
  59. data/spec/api/distributions_ostree_api_spec.rb +9 -6
  60. data/spec/api/remotes_ostree_api_spec.rb +6 -6
  61. data/spec/api/repositories_ostree_api_spec.rb +15 -6
  62. data/spec/api/repositories_ostree_versions_api_spec.rb +6 -6
  63. data/spec/models/ostree_ostree_content_response_spec.rb +65 -0
  64. data/spec/models/ostree_ostree_remote_response_hidden_fields_spec.rb +47 -0
  65. data/spec/models/ostree_ostree_remote_response_spec.rb +6 -0
  66. data/spec/models/ostree_ostree_repository_response_spec.rb +6 -0
  67. data/spec/models/ostree_ostree_repository_spec.rb +6 -0
  68. data/spec/models/paginatedostree_ostree_content_response_list_spec.rb +59 -0
  69. data/spec/models/patchedostree_ostree_repository_spec.rb +6 -0
  70. data/spec/models/{ostree_repository_add_remove_content_spec.rb → repository_add_remove_content_spec.rb} +6 -6
  71. metadata +60 -45
  72. data/docs/OstreeRepositoryAddRemoveContent.md +0 -21
  73. data/git_push.sh +0 -58
@@ -0,0 +1,237 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpOstreeClient
16
+ class PaginatedostreeOstreeContentResponseList
17
+ attr_accessor :count
18
+
19
+ attr_accessor :_next
20
+
21
+ attr_accessor :previous
22
+
23
+ attr_accessor :results
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+ :'count' => :'count',
29
+ :'_next' => :'next',
30
+ :'previous' => :'previous',
31
+ :'results' => :'results'
32
+ }
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.openapi_types
37
+ {
38
+ :'count' => :'Integer',
39
+ :'_next' => :'String',
40
+ :'previous' => :'String',
41
+ :'results' => :'Array<OstreeOstreeContentResponse>'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ :'_next',
49
+ :'previous',
50
+ ])
51
+ end
52
+
53
+ # Initializes the object
54
+ # @param [Hash] attributes Model attributes in the form of hash
55
+ def initialize(attributes = {})
56
+ if (!attributes.is_a?(Hash))
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpOstreeClient::PaginatedostreeOstreeContentResponseList` initialize method"
58
+ end
59
+
60
+ # check to see if the attribute exists and convert string to symbol for hash key
61
+ attributes = attributes.each_with_object({}) { |(k, v), h|
62
+ if (!self.class.attribute_map.key?(k.to_sym))
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpOstreeClient::PaginatedostreeOstreeContentResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
+ end
65
+ h[k.to_sym] = v
66
+ }
67
+
68
+ if attributes.key?(:'count')
69
+ self.count = attributes[:'count']
70
+ end
71
+
72
+ if attributes.key?(:'_next')
73
+ self._next = attributes[:'_next']
74
+ end
75
+
76
+ if attributes.key?(:'previous')
77
+ self.previous = attributes[:'previous']
78
+ end
79
+
80
+ if attributes.key?(:'results')
81
+ if (value = attributes[:'results']).is_a?(Array)
82
+ self.results = value
83
+ end
84
+ end
85
+ end
86
+
87
+ # Show invalid properties with the reasons. Usually used together with valid?
88
+ # @return Array for valid properties with the reasons
89
+ def list_invalid_properties
90
+ invalid_properties = Array.new
91
+ invalid_properties
92
+ end
93
+
94
+ # Check to see if the all the properties in the model are valid
95
+ # @return true if the model is valid
96
+ def valid?
97
+ true
98
+ end
99
+
100
+ # Checks equality by comparing each attribute.
101
+ # @param [Object] Object to be compared
102
+ def ==(o)
103
+ return true if self.equal?(o)
104
+ self.class == o.class &&
105
+ count == o.count &&
106
+ _next == o._next &&
107
+ previous == o.previous &&
108
+ results == o.results
109
+ end
110
+
111
+ # @see the `==` method
112
+ # @param [Object] Object to be compared
113
+ def eql?(o)
114
+ self == o
115
+ end
116
+
117
+ # Calculates hash code according to all attributes.
118
+ # @return [Integer] Hash code
119
+ def hash
120
+ [count, _next, previous, results].hash
121
+ end
122
+
123
+ # Builds the object from hash
124
+ # @param [Hash] attributes Model attributes in the form of hash
125
+ # @return [Object] Returns the model itself
126
+ def self.build_from_hash(attributes)
127
+ new.build_from_hash(attributes)
128
+ end
129
+
130
+ # Builds the object from hash
131
+ # @param [Hash] attributes Model attributes in the form of hash
132
+ # @return [Object] Returns the model itself
133
+ def build_from_hash(attributes)
134
+ return nil unless attributes.is_a?(Hash)
135
+ self.class.openapi_types.each_pair do |key, type|
136
+ if type =~ /\AArray<(.*)>/i
137
+ # check to ensure the input is an array given that the attribute
138
+ # is documented as an array but the input is not
139
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
140
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
141
+ end
142
+ elsif !attributes[self.class.attribute_map[key]].nil?
143
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
144
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
145
+ end
146
+
147
+ self
148
+ end
149
+
150
+ # Deserializes the data based on type
151
+ # @param string type Data type
152
+ # @param string value Value to be deserialized
153
+ # @return [Object] Deserialized data
154
+ def _deserialize(type, value)
155
+ case type.to_sym
156
+ when :DateTime
157
+ DateTime.parse(value)
158
+ when :Date
159
+ Date.parse(value)
160
+ when :String
161
+ value.to_s
162
+ when :Integer
163
+ value.to_i
164
+ when :Float
165
+ value.to_f
166
+ when :Boolean
167
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
168
+ true
169
+ else
170
+ false
171
+ end
172
+ when :Object
173
+ # generic object (usually a Hash), return directly
174
+ value
175
+ when /\AArray<(?<inner_type>.+)>\z/
176
+ inner_type = Regexp.last_match[:inner_type]
177
+ value.map { |v| _deserialize(inner_type, v) }
178
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
179
+ k_type = Regexp.last_match[:k_type]
180
+ v_type = Regexp.last_match[:v_type]
181
+ {}.tap do |hash|
182
+ value.each do |k, v|
183
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
184
+ end
185
+ end
186
+ else # model
187
+ PulpOstreeClient.const_get(type).build_from_hash(value)
188
+ end
189
+ end
190
+
191
+ # Returns the string representation of the object
192
+ # @return [String] String presentation of the object
193
+ def to_s
194
+ to_hash.to_s
195
+ end
196
+
197
+ # to_body is an alias to to_hash (backward compatibility)
198
+ # @return [Hash] Returns the object in the form of hash
199
+ def to_body
200
+ to_hash
201
+ end
202
+
203
+ # Returns the object in the form of hash
204
+ # @return [Hash] Returns the object in the form of hash
205
+ def to_hash
206
+ hash = {}
207
+ self.class.attribute_map.each_pair do |attr, param|
208
+ value = self.send(attr)
209
+ if value.nil?
210
+ is_nullable = self.class.openapi_nullable.include?(attr)
211
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
212
+ end
213
+
214
+ hash[param] = _to_hash(value)
215
+ end
216
+ hash
217
+ end
218
+
219
+ # Outputs non-array value in the form of hash
220
+ # For object, use to_hash. Otherwise, just return the value
221
+ # @param [Object] value Any valid value
222
+ # @return [Hash] Returns the value in the form of hash
223
+ def _to_hash(value)
224
+ if value.is_a?(Array)
225
+ value.compact.map { |v| _to_hash(v) }
226
+ elsif value.is_a?(Hash)
227
+ {}.tap do |hash|
228
+ value.each { |k, v| hash[k] = _to_hash(v) }
229
+ end
230
+ elsif value.respond_to? :to_hash
231
+ value.to_hash
232
+ else
233
+ value
234
+ end
235
+ end
236
+ end
237
+ end
@@ -49,7 +49,7 @@ module PulpOstreeClient
49
49
  {
50
50
  :'base_path' => :'String',
51
51
  :'content_guard' => :'String',
52
- :'pulp_labels' => :'Object',
52
+ :'pulp_labels' => :'Hash<String, String>',
53
53
  :'name' => :'String',
54
54
  :'repository' => :'String',
55
55
  :'repository_version' => :'String'
@@ -89,7 +89,9 @@ module PulpOstreeClient
89
89
  end
90
90
 
91
91
  if attributes.key?(:'pulp_labels')
92
- self.pulp_labels = attributes[:'pulp_labels']
92
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
93
+ self.pulp_labels = value
94
+ end
93
95
  end
94
96
 
95
97
  if attributes.key?(:'name')
@@ -130,7 +130,7 @@ module PulpOstreeClient
130
130
  :'proxy_password' => :'String',
131
131
  :'username' => :'String',
132
132
  :'password' => :'String',
133
- :'pulp_labels' => :'Object',
133
+ :'pulp_labels' => :'Hash<String, String>',
134
134
  :'download_concurrency' => :'Integer',
135
135
  :'max_retries' => :'Integer',
136
136
  :'policy' => :'PolicyEnum',
@@ -229,7 +229,9 @@ module PulpOstreeClient
229
229
  end
230
230
 
231
231
  if attributes.key?(:'pulp_labels')
232
- self.pulp_labels = attributes[:'pulp_labels']
232
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
233
+ self.pulp_labels = value
234
+ end
233
235
  end
234
236
 
235
237
  if attributes.key?(:'download_concurrency')
@@ -23,12 +23,14 @@ module PulpOstreeClient
23
23
  # An optional description.
24
24
  attr_accessor :description
25
25
 
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.
26
+ # Retain X versions of the repository. Default is null which retains all versions.
27
27
  attr_accessor :retain_repo_versions
28
28
 
29
29
  # An optional remote to use by default when syncing.
30
30
  attr_accessor :remote
31
31
 
32
+ attr_accessor :compute_delta
33
+
32
34
  # Attribute mapping from ruby-style variable name to JSON key.
33
35
  def self.attribute_map
34
36
  {
@@ -36,18 +38,20 @@ module PulpOstreeClient
36
38
  :'name' => :'name',
37
39
  :'description' => :'description',
38
40
  :'retain_repo_versions' => :'retain_repo_versions',
39
- :'remote' => :'remote'
41
+ :'remote' => :'remote',
42
+ :'compute_delta' => :'compute_delta'
40
43
  }
41
44
  end
42
45
 
43
46
  # Attribute type mapping.
44
47
  def self.openapi_types
45
48
  {
46
- :'pulp_labels' => :'Object',
49
+ :'pulp_labels' => :'Hash<String, String>',
47
50
  :'name' => :'String',
48
51
  :'description' => :'String',
49
52
  :'retain_repo_versions' => :'Integer',
50
- :'remote' => :'String'
53
+ :'remote' => :'String',
54
+ :'compute_delta' => :'Boolean'
51
55
  }
52
56
  end
53
57
 
@@ -56,7 +60,7 @@ module PulpOstreeClient
56
60
  Set.new([
57
61
  :'description',
58
62
  :'retain_repo_versions',
59
- :'remote'
63
+ :'remote',
60
64
  ])
61
65
  end
62
66
 
@@ -76,7 +80,9 @@ module PulpOstreeClient
76
80
  }
77
81
 
78
82
  if attributes.key?(:'pulp_labels')
79
- self.pulp_labels = attributes[:'pulp_labels']
83
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
84
+ self.pulp_labels = value
85
+ end
80
86
  end
81
87
 
82
88
  if attributes.key?(:'name')
@@ -94,6 +100,12 @@ module PulpOstreeClient
94
100
  if attributes.key?(:'remote')
95
101
  self.remote = attributes[:'remote']
96
102
  end
103
+
104
+ if attributes.key?(:'compute_delta')
105
+ self.compute_delta = attributes[:'compute_delta']
106
+ else
107
+ self.compute_delta = true
108
+ end
97
109
  end
98
110
 
99
111
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -163,7 +175,8 @@ module PulpOstreeClient
163
175
  name == o.name &&
164
176
  description == o.description &&
165
177
  retain_repo_versions == o.retain_repo_versions &&
166
- remote == o.remote
178
+ remote == o.remote &&
179
+ compute_delta == o.compute_delta
167
180
  end
168
181
 
169
182
  # @see the `==` method
@@ -175,7 +188,7 @@ module PulpOstreeClient
175
188
  # Calculates hash code according to all attributes.
176
189
  # @return [Integer] Hash code
177
190
  def hash
178
- [pulp_labels, name, description, retain_repo_versions, remote].hash
191
+ [pulp_labels, name, description, retain_repo_versions, remote, compute_delta].hash
179
192
  end
180
193
 
181
194
  # 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 modifying a repository from an existing repository.
17
- class OstreeRepositoryAddRemoveContent
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 RepositoryAddRemoveContent
18
18
  # A list of content units to add to a new repository version. This content is added after remove_content_units are removed.
19
19
  attr_accessor :add_content_units
20
20
 
@@ -36,8 +36,8 @@ module PulpOstreeClient
36
36
  # Attribute type mapping.
37
37
  def self.openapi_types
38
38
  {
39
- :'add_content_units' => :'Array<AnyType>',
40
- :'remove_content_units' => :'Array<AnyType>',
39
+ :'add_content_units' => :'Array<String>',
40
+ :'remove_content_units' => :'Array<String>',
41
41
  :'base_version' => :'String'
42
42
  }
43
43
  end
@@ -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::OstreeRepositoryAddRemoveContent` initialize method"
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpOstreeClient::RepositoryAddRemoveContent` 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::OstreeRepositoryAddRemoveContent`. 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::RepositoryAddRemoveContent`. 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
  }
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpOstreeClient
14
- VERSION = '2.0.0a6'
14
+ VERSION = '2.0.0'
15
15
  end
@@ -23,19 +23,21 @@ require 'pulp_ostree_client/models/ostree_import_all'
23
23
  require 'pulp_ostree_client/models/ostree_import_commits_to_ref'
24
24
  require 'pulp_ostree_client/models/ostree_ostree_commit_response'
25
25
  require 'pulp_ostree_client/models/ostree_ostree_config_response'
26
+ require 'pulp_ostree_client/models/ostree_ostree_content_response'
26
27
  require 'pulp_ostree_client/models/ostree_ostree_distribution'
27
28
  require 'pulp_ostree_client/models/ostree_ostree_distribution_response'
28
29
  require 'pulp_ostree_client/models/ostree_ostree_object_response'
29
30
  require 'pulp_ostree_client/models/ostree_ostree_ref_response'
30
31
  require 'pulp_ostree_client/models/ostree_ostree_remote'
31
32
  require 'pulp_ostree_client/models/ostree_ostree_remote_response'
33
+ require 'pulp_ostree_client/models/ostree_ostree_remote_response_hidden_fields'
32
34
  require 'pulp_ostree_client/models/ostree_ostree_repository'
33
35
  require 'pulp_ostree_client/models/ostree_ostree_repository_response'
34
36
  require 'pulp_ostree_client/models/ostree_ostree_summary_response'
35
- require 'pulp_ostree_client/models/ostree_repository_add_remove_content'
36
37
  require 'pulp_ostree_client/models/paginated_repository_version_response_list'
37
38
  require 'pulp_ostree_client/models/paginatedostree_ostree_commit_response_list'
38
39
  require 'pulp_ostree_client/models/paginatedostree_ostree_config_response_list'
40
+ require 'pulp_ostree_client/models/paginatedostree_ostree_content_response_list'
39
41
  require 'pulp_ostree_client/models/paginatedostree_ostree_distribution_response_list'
40
42
  require 'pulp_ostree_client/models/paginatedostree_ostree_object_response_list'
41
43
  require 'pulp_ostree_client/models/paginatedostree_ostree_ref_response_list'
@@ -47,12 +49,14 @@ require 'pulp_ostree_client/models/patchedostree_ostree_remote'
47
49
  require 'pulp_ostree_client/models/patchedostree_ostree_repository'
48
50
  require 'pulp_ostree_client/models/policy_enum'
49
51
  require 'pulp_ostree_client/models/repair'
52
+ require 'pulp_ostree_client/models/repository_add_remove_content'
50
53
  require 'pulp_ostree_client/models/repository_sync_url'
51
54
  require 'pulp_ostree_client/models/repository_version_response'
52
55
 
53
56
  # APIs
54
57
  require 'pulp_ostree_client/api/content_commits_api'
55
58
  require 'pulp_ostree_client/api/content_configs_api'
59
+ require 'pulp_ostree_client/api/content_content_api'
56
60
  require 'pulp_ostree_client/api/content_objects_api'
57
61
  require 'pulp_ostree_client/api/content_refs_api'
58
62
  require 'pulp_ostree_client/api/content_summaries_api'
@@ -21,13 +21,13 @@ Gem::Specification.new do |s|
21
21
  s.platform = Gem::Platform::RUBY
22
22
  s.authors = ["OpenAPI-Generator"]
23
23
  s.email = ["pulp-list@redhat.com"]
24
- s.homepage = "https://openapi-generator.tech"
24
+ s.homepage = "https://github.com/pulp/pulp_ostree"
25
25
  s.summary = "Pulp 3 API Ruby Gem"
26
26
  s.description = "Fetch, Upload, Organize, and Distribute Software Packages"
27
- s.license = 'GPL-2.0+'
27
+ s.license = 'GPLv2+'
28
28
  s.required_ruby_version = ">= 1.9"
29
29
 
30
- s.add_runtime_dependency 'faraday', '~> 0.17', '< 1.9.0'
30
+ s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 2.0'
31
31
  s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
32
 
33
33
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
@@ -43,8 +43,8 @@ describe 'ContentCommitsApi' do
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
46
- # @option opts [String] :fields A list of fields to include in the response.
47
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
46
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
47
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
48
48
  # @return [PaginatedostreeOstreeCommitResponseList]
49
49
  describe 'list test' do
50
50
  it 'should work' do
@@ -57,8 +57,8 @@ describe 'ContentCommitsApi' do
57
57
  # A ViewSet class for OSTree commits.
58
58
  # @param ostree_ostree_commit_href
59
59
  # @param [Hash] opts the optional parameters
60
- # @option opts [String] :fields A list of fields to include in the response.
61
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
60
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
61
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
62
62
  # @return [OstreeOstreeCommitResponse]
63
63
  describe 'read test' do
64
64
  it 'should work' do
@@ -42,8 +42,8 @@ describe 'ContentConfigsApi' do
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
45
- # @option opts [String] :fields A list of fields to include in the response.
46
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
45
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
46
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
47
47
  # @return [PaginatedostreeOstreeConfigResponseList]
48
48
  describe 'list test' do
49
49
  it 'should work' do
@@ -56,8 +56,8 @@ describe 'ContentConfigsApi' do
56
56
  # A ViewSet class for OSTree repository configurations.
57
57
  # @param ostree_ostree_config_href
58
58
  # @param [Hash] opts the optional parameters
59
- # @option opts [String] :fields A list of fields to include in the response.
60
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
59
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
60
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
61
61
  # @return [OstreeOstreeConfigResponse]
62
62
  describe 'read test' do
63
63
  it 'should work' do
@@ -0,0 +1,68 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PulpOstreeClient::ContentContentApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'ContentContentApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PulpOstreeClient::ContentContentApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ContentContentApi' do
30
+ it 'should create an instance of ContentContentApi' do
31
+ expect(@api_instance).to be_instance_of(PulpOstreeClient::ContentContentApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for list
36
+ # List ostree contents
37
+ # A ViewSet class for uncategorized content units (e.g., static deltas).
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [Integer] :limit Number of results to return per page.
40
+ # @option opts [Integer] :offset The initial index from which to return the results.
41
+ # @option opts [Array<String>] :ordering Ordering
42
+ # @option opts [String] :repository_version Repository Version referenced by HREF
43
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
44
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
45
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
46
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
47
+ # @return [PaginatedostreeOstreeContentResponseList]
48
+ describe 'list test' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
51
+ end
52
+ end
53
+
54
+ # unit tests for read
55
+ # Inspect an ostree content
56
+ # A ViewSet class for uncategorized content units (e.g., static deltas).
57
+ # @param ostree_ostree_content_href
58
+ # @param [Hash] opts the optional parameters
59
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
60
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
61
+ # @return [OstreeOstreeContentResponse]
62
+ describe 'read test' do
63
+ it 'should work' do
64
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
65
+ end
66
+ end
67
+
68
+ end
@@ -43,8 +43,8 @@ describe 'ContentObjectsApi' do
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
46
- # @option opts [String] :fields A list of fields to include in the response.
47
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
46
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
47
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
48
48
  # @return [PaginatedostreeOstreeObjectResponseList]
49
49
  describe 'list test' do
50
50
  it 'should work' do
@@ -57,8 +57,8 @@ describe 'ContentObjectsApi' do
57
57
  # A ViewSet class for OSTree objects (e.g., dirtree, dirmeta, file).
58
58
  # @param ostree_ostree_object_href
59
59
  # @param [Hash] opts the optional parameters
60
- # @option opts [String] :fields A list of fields to include in the response.
61
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
60
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
61
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
62
62
  # @return [OstreeOstreeObjectResponse]
63
63
  describe 'read test' do
64
64
  it 'should work' do
@@ -48,8 +48,8 @@ describe 'ContentRefsApi' do
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
51
- # @option opts [String] :fields A list of fields to include in the response.
52
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
51
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
52
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
53
53
  # @return [PaginatedostreeOstreeRefResponseList]
54
54
  describe 'list test' do
55
55
  it 'should work' do
@@ -62,8 +62,8 @@ describe 'ContentRefsApi' do
62
62
  # A ViewSet class for OSTree head commits.
63
63
  # @param ostree_ostree_ref_href
64
64
  # @param [Hash] opts the optional parameters
65
- # @option opts [String] :fields A list of fields to include in the response.
66
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
65
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
66
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
67
67
  # @return [OstreeOstreeRefResponse]
68
68
  describe 'read test' do
69
69
  it 'should work' do
@@ -42,8 +42,8 @@ describe 'ContentSummariesApi' do
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
45
- # @option opts [String] :fields A list of fields to include in the response.
46
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
45
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
46
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
47
47
  # @return [PaginatedostreeOstreeSummaryResponseList]
48
48
  describe 'list test' do
49
49
  it 'should work' do
@@ -56,8 +56,8 @@ describe 'ContentSummariesApi' do
56
56
  # A ViewSet class for OSTree repository summary files.
57
57
  # @param ostree_ostree_summary_href
58
58
  # @param [Hash] opts the optional parameters
59
- # @option opts [String] :fields A list of fields to include in the response.
60
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
59
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
60
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
61
61
  # @return [OstreeOstreeSummaryResponse]
62
62
  describe 'read test' do
63
63
  it 'should work' do