pulp_ostree_client 2.2.1 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +23 -4
  3. data/docs/ContentCommitsApi.md +2 -0
  4. data/docs/ContentConfigsApi.md +2 -0
  5. data/docs/ContentContentApi.md +56 -0
  6. data/docs/ContentObjectsApi.md +2 -0
  7. data/docs/ContentRefsApi.md +2 -0
  8. data/docs/ContentSummariesApi.md +2 -0
  9. data/docs/DistributionsOstreeApi.md +232 -0
  10. data/docs/MyPermissionsResponse.md +17 -0
  11. data/docs/NestedRole.md +21 -0
  12. data/docs/NestedRoleResponse.md +21 -0
  13. data/docs/ObjectRolesResponse.md +17 -0
  14. data/docs/OstreeOstreeContent.md +23 -0
  15. data/docs/RemotesOstreeApi.md +232 -0
  16. data/docs/RepositoriesOstreeApi.md +232 -0
  17. data/lib/pulp_ostree_client/api/content_commits_api.rb +3 -0
  18. data/lib/pulp_ostree_client/api/content_configs_api.rb +3 -0
  19. data/lib/pulp_ostree_client/api/content_content_api.rb +67 -0
  20. data/lib/pulp_ostree_client/api/content_objects_api.rb +3 -0
  21. data/lib/pulp_ostree_client/api/content_refs_api.rb +3 -0
  22. data/lib/pulp_ostree_client/api/content_summaries_api.rb +3 -0
  23. data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +276 -0
  24. data/lib/pulp_ostree_client/api/remotes_ostree_api.rb +276 -0
  25. data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +276 -0
  26. data/lib/pulp_ostree_client/models/my_permissions_response.rb +213 -0
  27. data/lib/pulp_ostree_client/models/nested_role.rb +253 -0
  28. data/lib/pulp_ostree_client/models/nested_role_response.rb +234 -0
  29. data/lib/pulp_ostree_client/models/object_roles_response.rb +213 -0
  30. data/lib/pulp_ostree_client/models/ostree_ostree_content.rb +289 -0
  31. data/lib/pulp_ostree_client/version.rb +1 -1
  32. data/lib/pulp_ostree_client.rb +5 -0
  33. data/spec/api/content_commits_api_spec.rb +1 -0
  34. data/spec/api/content_configs_api_spec.rb +1 -0
  35. data/spec/api/content_content_api_spec.rb +13 -0
  36. data/spec/api/content_objects_api_spec.rb +1 -0
  37. data/spec/api/content_refs_api_spec.rb +1 -0
  38. data/spec/api/content_summaries_api_spec.rb +1 -0
  39. data/spec/api/distributions_ostree_api_spec.rb +54 -0
  40. data/spec/api/remotes_ostree_api_spec.rb +54 -0
  41. data/spec/api/repositories_ostree_api_spec.rb +54 -0
  42. data/spec/models/my_permissions_response_spec.rb +41 -0
  43. data/spec/models/nested_role_response_spec.rb +53 -0
  44. data/spec/models/nested_role_spec.rb +53 -0
  45. data/spec/models/object_roles_response_spec.rb +41 -0
  46. data/spec/models/ostree_ostree_content_spec.rb +59 -0
  47. metadata +56 -36
@@ -0,0 +1,213 @@
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 ObjectRolesResponse
17
+ attr_accessor :roles
18
+
19
+ # Attribute mapping from ruby-style variable name to JSON key.
20
+ def self.attribute_map
21
+ {
22
+ :'roles' => :'roles'
23
+ }
24
+ end
25
+
26
+ # Attribute type mapping.
27
+ def self.openapi_types
28
+ {
29
+ :'roles' => :'Array<NestedRoleResponse>'
30
+ }
31
+ end
32
+
33
+ # List of attributes with nullable: true
34
+ def self.openapi_nullable
35
+ Set.new([
36
+ ])
37
+ end
38
+
39
+ # Initializes the object
40
+ # @param [Hash] attributes Model attributes in the form of hash
41
+ def initialize(attributes = {})
42
+ if (!attributes.is_a?(Hash))
43
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpOstreeClient::ObjectRolesResponse` initialize method"
44
+ end
45
+
46
+ # check to see if the attribute exists and convert string to symbol for hash key
47
+ attributes = attributes.each_with_object({}) { |(k, v), h|
48
+ if (!self.class.attribute_map.key?(k.to_sym))
49
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpOstreeClient::ObjectRolesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
50
+ end
51
+ h[k.to_sym] = v
52
+ }
53
+
54
+ if attributes.key?(:'roles')
55
+ if (value = attributes[:'roles']).is_a?(Array)
56
+ self.roles = value
57
+ end
58
+ end
59
+ end
60
+
61
+ # Show invalid properties with the reasons. Usually used together with valid?
62
+ # @return Array for valid properties with the reasons
63
+ def list_invalid_properties
64
+ invalid_properties = Array.new
65
+ if @roles.nil?
66
+ invalid_properties.push('invalid value for "roles", roles cannot be nil.')
67
+ end
68
+
69
+ invalid_properties
70
+ end
71
+
72
+ # Check to see if the all the properties in the model are valid
73
+ # @return true if the model is valid
74
+ def valid?
75
+ return false if @roles.nil?
76
+ true
77
+ end
78
+
79
+ # Checks equality by comparing each attribute.
80
+ # @param [Object] Object to be compared
81
+ def ==(o)
82
+ return true if self.equal?(o)
83
+ self.class == o.class &&
84
+ roles == o.roles
85
+ end
86
+
87
+ # @see the `==` method
88
+ # @param [Object] Object to be compared
89
+ def eql?(o)
90
+ self == o
91
+ end
92
+
93
+ # Calculates hash code according to all attributes.
94
+ # @return [Integer] Hash code
95
+ def hash
96
+ [roles].hash
97
+ end
98
+
99
+ # Builds the object from hash
100
+ # @param [Hash] attributes Model attributes in the form of hash
101
+ # @return [Object] Returns the model itself
102
+ def self.build_from_hash(attributes)
103
+ new.build_from_hash(attributes)
104
+ end
105
+
106
+ # Builds the object from hash
107
+ # @param [Hash] attributes Model attributes in the form of hash
108
+ # @return [Object] Returns the model itself
109
+ def build_from_hash(attributes)
110
+ return nil unless attributes.is_a?(Hash)
111
+ self.class.openapi_types.each_pair do |key, type|
112
+ if type =~ /\AArray<(.*)>/i
113
+ # check to ensure the input is an array given that the attribute
114
+ # is documented as an array but the input is not
115
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
116
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
117
+ end
118
+ elsif !attributes[self.class.attribute_map[key]].nil?
119
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
120
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
121
+ end
122
+
123
+ self
124
+ end
125
+
126
+ # Deserializes the data based on type
127
+ # @param string type Data type
128
+ # @param string value Value to be deserialized
129
+ # @return [Object] Deserialized data
130
+ def _deserialize(type, value)
131
+ case type.to_sym
132
+ when :DateTime
133
+ DateTime.parse(value)
134
+ when :Date
135
+ Date.parse(value)
136
+ when :String
137
+ value.to_s
138
+ when :Integer
139
+ value.to_i
140
+ when :Float
141
+ value.to_f
142
+ when :Boolean
143
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
144
+ true
145
+ else
146
+ false
147
+ end
148
+ when :Object
149
+ # generic object (usually a Hash), return directly
150
+ value
151
+ when /\AArray<(?<inner_type>.+)>\z/
152
+ inner_type = Regexp.last_match[:inner_type]
153
+ value.map { |v| _deserialize(inner_type, v) }
154
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
155
+ k_type = Regexp.last_match[:k_type]
156
+ v_type = Regexp.last_match[:v_type]
157
+ {}.tap do |hash|
158
+ value.each do |k, v|
159
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
160
+ end
161
+ end
162
+ else # model
163
+ PulpOstreeClient.const_get(type).build_from_hash(value)
164
+ end
165
+ end
166
+
167
+ # Returns the string representation of the object
168
+ # @return [String] String presentation of the object
169
+ def to_s
170
+ to_hash.to_s
171
+ end
172
+
173
+ # to_body is an alias to to_hash (backward compatibility)
174
+ # @return [Hash] Returns the object in the form of hash
175
+ def to_body
176
+ to_hash
177
+ end
178
+
179
+ # Returns the object in the form of hash
180
+ # @return [Hash] Returns the object in the form of hash
181
+ def to_hash
182
+ hash = {}
183
+ self.class.attribute_map.each_pair do |attr, param|
184
+ value = self.send(attr)
185
+ if value.nil?
186
+ is_nullable = self.class.openapi_nullable.include?(attr)
187
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
188
+ end
189
+
190
+ hash[param] = _to_hash(value)
191
+ end
192
+ hash
193
+ end
194
+
195
+ # Outputs non-array value in the form of hash
196
+ # For object, use to_hash. Otherwise, just return the value
197
+ # @param [Object] value Any valid value
198
+ # @return [Hash] Returns the value in the form of hash
199
+ def _to_hash(value)
200
+ if value.is_a?(Array)
201
+ value.compact.map { |v| _to_hash(v) }
202
+ elsif value.is_a?(Hash)
203
+ {}.tap do |hash|
204
+ value.each { |k, v| hash[k] = _to_hash(v) }
205
+ end
206
+ elsif value.respond_to? :to_hash
207
+ value.to_hash
208
+ else
209
+ value
210
+ end
211
+ end
212
+ end
213
+ end
@@ -0,0 +1,289 @@
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
+ # A Serializer class for uncategorized content units (e.g., static deltas).
17
+ class OstreeOstreeContent
18
+ # A URI of a repository the new content unit should be associated with.
19
+ attr_accessor :repository
20
+
21
+ # Artifact file representing the physical content
22
+ attr_accessor :artifact
23
+
24
+ attr_accessor :relative_path
25
+
26
+ attr_accessor :digest
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+ :'repository' => :'repository',
32
+ :'artifact' => :'artifact',
33
+ :'relative_path' => :'relative_path',
34
+ :'digest' => :'digest'
35
+ }
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.openapi_types
40
+ {
41
+ :'repository' => :'String',
42
+ :'artifact' => :'String',
43
+ :'relative_path' => :'String',
44
+ :'digest' => :'String'
45
+ }
46
+ end
47
+
48
+ # List of attributes with nullable: true
49
+ def self.openapi_nullable
50
+ Set.new([
51
+ ])
52
+ end
53
+
54
+ # Initializes the object
55
+ # @param [Hash] attributes Model attributes in the form of hash
56
+ def initialize(attributes = {})
57
+ if (!attributes.is_a?(Hash))
58
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpOstreeClient::OstreeOstreeContent` initialize method"
59
+ end
60
+
61
+ # check to see if the attribute exists and convert string to symbol for hash key
62
+ attributes = attributes.each_with_object({}) { |(k, v), h|
63
+ if (!self.class.attribute_map.key?(k.to_sym))
64
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpOstreeClient::OstreeOstreeContent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
65
+ end
66
+ h[k.to_sym] = v
67
+ }
68
+
69
+ if attributes.key?(:'repository')
70
+ self.repository = attributes[:'repository']
71
+ end
72
+
73
+ if attributes.key?(:'artifact')
74
+ self.artifact = attributes[:'artifact']
75
+ end
76
+
77
+ if attributes.key?(:'relative_path')
78
+ self.relative_path = attributes[:'relative_path']
79
+ end
80
+
81
+ if attributes.key?(:'digest')
82
+ self.digest = attributes[:'digest']
83
+ end
84
+ end
85
+
86
+ # Show invalid properties with the reasons. Usually used together with valid?
87
+ # @return Array for valid properties with the reasons
88
+ def list_invalid_properties
89
+ invalid_properties = Array.new
90
+ if @artifact.nil?
91
+ invalid_properties.push('invalid value for "artifact", artifact cannot be nil.')
92
+ end
93
+
94
+ if @relative_path.nil?
95
+ invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
96
+ end
97
+
98
+ if @relative_path.to_s.length < 1
99
+ invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
100
+ end
101
+
102
+ if @digest.nil?
103
+ invalid_properties.push('invalid value for "digest", digest cannot be nil.')
104
+ end
105
+
106
+ if @digest.to_s.length < 1
107
+ invalid_properties.push('invalid value for "digest", the character length must be great than or equal to 1.')
108
+ end
109
+
110
+ invalid_properties
111
+ end
112
+
113
+ # Check to see if the all the properties in the model are valid
114
+ # @return true if the model is valid
115
+ def valid?
116
+ return false if @artifact.nil?
117
+ return false if @relative_path.nil?
118
+ return false if @relative_path.to_s.length < 1
119
+ return false if @digest.nil?
120
+ return false if @digest.to_s.length < 1
121
+ true
122
+ end
123
+
124
+ # Custom attribute writer method with validation
125
+ # @param [Object] relative_path Value to be assigned
126
+ def relative_path=(relative_path)
127
+ if relative_path.nil?
128
+ fail ArgumentError, 'relative_path cannot be nil'
129
+ end
130
+
131
+ if relative_path.to_s.length < 1
132
+ fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
133
+ end
134
+
135
+ @relative_path = relative_path
136
+ end
137
+
138
+ # Custom attribute writer method with validation
139
+ # @param [Object] digest Value to be assigned
140
+ def digest=(digest)
141
+ if digest.nil?
142
+ fail ArgumentError, 'digest cannot be nil'
143
+ end
144
+
145
+ if digest.to_s.length < 1
146
+ fail ArgumentError, 'invalid value for "digest", the character length must be great than or equal to 1.'
147
+ end
148
+
149
+ @digest = digest
150
+ end
151
+
152
+ # Checks equality by comparing each attribute.
153
+ # @param [Object] Object to be compared
154
+ def ==(o)
155
+ return true if self.equal?(o)
156
+ self.class == o.class &&
157
+ repository == o.repository &&
158
+ artifact == o.artifact &&
159
+ relative_path == o.relative_path &&
160
+ digest == o.digest
161
+ end
162
+
163
+ # @see the `==` method
164
+ # @param [Object] Object to be compared
165
+ def eql?(o)
166
+ self == o
167
+ end
168
+
169
+ # Calculates hash code according to all attributes.
170
+ # @return [Integer] Hash code
171
+ def hash
172
+ [repository, artifact, relative_path, digest].hash
173
+ end
174
+
175
+ # Builds the object from hash
176
+ # @param [Hash] attributes Model attributes in the form of hash
177
+ # @return [Object] Returns the model itself
178
+ def self.build_from_hash(attributes)
179
+ new.build_from_hash(attributes)
180
+ end
181
+
182
+ # Builds the object from hash
183
+ # @param [Hash] attributes Model attributes in the form of hash
184
+ # @return [Object] Returns the model itself
185
+ def build_from_hash(attributes)
186
+ return nil unless attributes.is_a?(Hash)
187
+ self.class.openapi_types.each_pair do |key, type|
188
+ if type =~ /\AArray<(.*)>/i
189
+ # check to ensure the input is an array given that the attribute
190
+ # is documented as an array but the input is not
191
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
192
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
193
+ end
194
+ elsif !attributes[self.class.attribute_map[key]].nil?
195
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
196
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
197
+ end
198
+
199
+ self
200
+ end
201
+
202
+ # Deserializes the data based on type
203
+ # @param string type Data type
204
+ # @param string value Value to be deserialized
205
+ # @return [Object] Deserialized data
206
+ def _deserialize(type, value)
207
+ case type.to_sym
208
+ when :DateTime
209
+ DateTime.parse(value)
210
+ when :Date
211
+ Date.parse(value)
212
+ when :String
213
+ value.to_s
214
+ when :Integer
215
+ value.to_i
216
+ when :Float
217
+ value.to_f
218
+ when :Boolean
219
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
220
+ true
221
+ else
222
+ false
223
+ end
224
+ when :Object
225
+ # generic object (usually a Hash), return directly
226
+ value
227
+ when /\AArray<(?<inner_type>.+)>\z/
228
+ inner_type = Regexp.last_match[:inner_type]
229
+ value.map { |v| _deserialize(inner_type, v) }
230
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
231
+ k_type = Regexp.last_match[:k_type]
232
+ v_type = Regexp.last_match[:v_type]
233
+ {}.tap do |hash|
234
+ value.each do |k, v|
235
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
236
+ end
237
+ end
238
+ else # model
239
+ PulpOstreeClient.const_get(type).build_from_hash(value)
240
+ end
241
+ end
242
+
243
+ # Returns the string representation of the object
244
+ # @return [String] String presentation of the object
245
+ def to_s
246
+ to_hash.to_s
247
+ end
248
+
249
+ # to_body is an alias to to_hash (backward compatibility)
250
+ # @return [Hash] Returns the object in the form of hash
251
+ def to_body
252
+ to_hash
253
+ end
254
+
255
+ # Returns the object in the form of hash
256
+ # @return [Hash] Returns the object in the form of hash
257
+ def to_hash
258
+ hash = {}
259
+ self.class.attribute_map.each_pair do |attr, param|
260
+ value = self.send(attr)
261
+ if value.nil?
262
+ is_nullable = self.class.openapi_nullable.include?(attr)
263
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
264
+ end
265
+
266
+ hash[param] = _to_hash(value)
267
+ end
268
+ hash
269
+ end
270
+
271
+ # Outputs non-array value in the form of hash
272
+ # For object, use to_hash. Otherwise, just return the value
273
+ # @param [Object] value Any valid value
274
+ # @return [Hash] Returns the value in the form of hash
275
+ def _to_hash(value)
276
+ if value.is_a?(Array)
277
+ value.compact.map { |v| _to_hash(v) }
278
+ elsif value.is_a?(Hash)
279
+ {}.tap do |hash|
280
+ value.each { |k, v| hash[k] = _to_hash(v) }
281
+ end
282
+ elsif value.respond_to? :to_hash
283
+ value.to_hash
284
+ else
285
+ value
286
+ end
287
+ end
288
+ end
289
+ end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpOstreeClient
14
- VERSION = '2.2.1'
14
+ VERSION = '2.3.0'
15
15
  end
@@ -19,10 +19,15 @@ require 'pulp_ostree_client/configuration'
19
19
  # Models
20
20
  require 'pulp_ostree_client/models/async_operation_response'
21
21
  require 'pulp_ostree_client/models/content_summary_response'
22
+ require 'pulp_ostree_client/models/my_permissions_response'
23
+ require 'pulp_ostree_client/models/nested_role'
24
+ require 'pulp_ostree_client/models/nested_role_response'
25
+ require 'pulp_ostree_client/models/object_roles_response'
22
26
  require 'pulp_ostree_client/models/ostree_import_all'
23
27
  require 'pulp_ostree_client/models/ostree_import_commits_to_ref'
24
28
  require 'pulp_ostree_client/models/ostree_ostree_commit_response'
25
29
  require 'pulp_ostree_client/models/ostree_ostree_config_response'
30
+ require 'pulp_ostree_client/models/ostree_ostree_content'
26
31
  require 'pulp_ostree_client/models/ostree_ostree_content_response'
27
32
  require 'pulp_ostree_client/models/ostree_ostree_distribution'
28
33
  require 'pulp_ostree_client/models/ostree_ostree_distribution_response'
@@ -40,6 +40,7 @@ describe 'ContentCommitsApi' do
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
42
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;checksum&#x60; - Checksum * &#x60;-checksum&#x60; - Checksum (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
43
+ # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
43
44
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
44
45
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
45
46
  # @option opts [String] :q
@@ -39,6 +39,7 @@ describe 'ContentConfigsApi' do
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
41
  # @option opts [Array<String>] :ordering Ordering * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
42
+ # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
42
43
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
43
44
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
44
45
  # @option opts [String] :q
@@ -32,6 +32,18 @@ describe 'ContentContentApi' do
32
32
  end
33
33
  end
34
34
 
35
+ # unit tests for create
36
+ # Create an ostree content
37
+ # Trigger an asynchronous task to create content,optionally create new repository version.
38
+ # @param ostree_ostree_content
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [AsyncOperationResponse]
41
+ describe 'create test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
35
47
  # unit tests for list
36
48
  # List ostree contents
37
49
  # A ViewSet class for uncategorized content units (e.g., static deltas).
@@ -39,6 +51,7 @@ describe 'ContentContentApi' do
39
51
  # @option opts [Integer] :limit Number of results to return per page.
40
52
  # @option opts [Integer] :offset The initial index from which to return the results.
41
53
  # @option opts [Array<String>] :ordering Ordering * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
54
+ # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
42
55
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
43
56
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
44
57
  # @option opts [String] :q
@@ -40,6 +40,7 @@ describe 'ContentObjectsApi' do
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
42
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;typ&#x60; - Typ * &#x60;-typ&#x60; - Typ (descending) * &#x60;checksum&#x60; - Checksum * &#x60;-checksum&#x60; - Checksum (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
43
+ # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
43
44
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
44
45
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
45
46
  # @option opts [String] :q
@@ -49,6 +49,7 @@ describe 'ContentRefsApi' do
49
49
  # @option opts [String] :name__startswith Filter results where name starts with value
50
50
  # @option opts [Integer] :offset The initial index from which to return the results.
51
51
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
52
+ # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
52
53
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
53
54
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
54
55
  # @option opts [String] :q
@@ -39,6 +39,7 @@ describe 'ContentSummariesApi' do
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
41
  # @option opts [Array<String>] :ordering Ordering * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
42
+ # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
42
43
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
43
44
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
44
45
  # @option opts [String] :q
@@ -32,6 +32,19 @@ describe 'DistributionsOstreeApi' do
32
32
  end
33
33
  end
34
34
 
35
+ # unit tests for add_role
36
+ # Add a role
37
+ # Add a role for this object to users/groups.
38
+ # @param ostree_ostree_distribution_href
39
+ # @param nested_role
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [NestedRoleResponse]
42
+ describe 'add_role test' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
+ end
46
+ end
47
+
35
48
  # unit tests for create
36
49
  # Create an ostree distribution
37
50
  # Trigger an asynchronous create task
@@ -92,6 +105,34 @@ describe 'DistributionsOstreeApi' do
92
105
  end
93
106
  end
94
107
 
108
+ # unit tests for list_roles
109
+ # List roles
110
+ # List roles assigned to this object.
111
+ # @param ostree_ostree_distribution_href
112
+ # @param [Hash] opts the optional parameters
113
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
114
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
115
+ # @return [ObjectRolesResponse]
116
+ describe 'list_roles test' do
117
+ it 'should work' do
118
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
119
+ end
120
+ end
121
+
122
+ # unit tests for my_permissions
123
+ # List user permissions
124
+ # List permissions available to the current user on this object.
125
+ # @param ostree_ostree_distribution_href
126
+ # @param [Hash] opts the optional parameters
127
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
128
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
129
+ # @return [MyPermissionsResponse]
130
+ describe 'my_permissions test' do
131
+ it 'should work' do
132
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
133
+ end
134
+ end
135
+
95
136
  # unit tests for partial_update
96
137
  # Update an ostree distribution
97
138
  # Trigger an asynchronous partial update task
@@ -119,6 +160,19 @@ describe 'DistributionsOstreeApi' do
119
160
  end
120
161
  end
121
162
 
163
+ # unit tests for remove_role
164
+ # Remove a role
165
+ # Remove a role for this object from users/groups.
166
+ # @param ostree_ostree_distribution_href
167
+ # @param nested_role
168
+ # @param [Hash] opts the optional parameters
169
+ # @return [NestedRoleResponse]
170
+ describe 'remove_role test' do
171
+ it 'should work' do
172
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
173
+ end
174
+ end
175
+
122
176
  # unit tests for set_label
123
177
  # Set a label
124
178
  # Set a single pulp_label on the object to a specific value or null.