pulpcore_client 3.20.0 → 3.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -84
- data/docs/ContentApi.md +1 -115
- data/docs/ContentguardsApi.md +1 -280
- data/docs/DistributionsApi.md +3 -281
- data/docs/PublicationsApi.md +0 -113
- data/docs/PulpImport.md +3 -1
- data/docs/RemotesApi.md +0 -280
- data/docs/RepositoriesApi.md +3 -281
- data/docs/UploadsApi.md +228 -0
- data/lib/pulpcore_client/api/content_api.rb +2 -134
- data/lib/pulpcore_client/api/contentguards_api.rb +2 -334
- data/lib/pulpcore_client/api/distributions_api.rb +5 -336
- data/lib/pulpcore_client/api/publications_api.rb +0 -128
- data/lib/pulpcore_client/api/remotes_api.rb +0 -334
- data/lib/pulpcore_client/api/repositories_api.rb +5 -336
- data/lib/pulpcore_client/api/repository_versions_api.rb +1 -1
- data/lib/pulpcore_client/api/uploads_api.rb +268 -0
- data/lib/pulpcore_client/api_client.rb +1 -1
- data/lib/pulpcore_client/models/pulp_import.rb +16 -4
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +0 -31
- data/pulpcore_client.gemspec +3 -3
- data/spec/api/content_api_spec.rb +1 -27
- data/spec/api/contentguards_api_spec.rb +1 -65
- data/spec/api/distributions_api_spec.rb +2 -65
- data/spec/api/publications_api_spec.rb +0 -26
- data/spec/api/remotes_api_spec.rb +0 -64
- data/spec/api/repositories_api_spec.rb +2 -65
- data/spec/api/uploads_api_spec.rb +50 -0
- data/spec/models/pulp_import_spec.rb +6 -0
- metadata +136 -261
- data/docs/AcsApi.md +0 -417
- data/docs/AlternateContentSource.md +0 -23
- data/docs/AlternateContentSourceResponse.md +0 -27
- data/docs/ContentGuard.md +0 -19
- data/docs/Distribution.md +0 -25
- data/docs/Export.md +0 -17
- data/docs/ExportResponse.md +0 -25
- data/docs/Exporter.md +0 -17
- data/docs/ExporterResponse.md +0 -21
- data/docs/ExportersApi.md +0 -362
- data/docs/ExportersExportsApi.md +0 -241
- data/docs/Import.md +0 -19
- data/docs/Importer.md +0 -17
- data/docs/ImporterResponse.md +0 -21
- data/docs/ImportersApi.md +0 -361
- data/docs/ImportersImportsApi.md +0 -241
- data/docs/MultipleArtifactContent.md +0 -17
- data/docs/PaginatedAlternateContentSourceResponseList.md +0 -23
- data/docs/PaginatedExportResponseList.md +0 -23
- data/docs/PaginatedExporterResponseList.md +0 -23
- data/docs/PaginatedImporterResponseList.md +0 -23
- data/docs/PatchedAlternateContentSource.md +0 -23
- data/docs/PatchedContentGuard.md +0 -19
- data/docs/PatchedDistribution.md +0 -25
- data/docs/PatchedExporter.md +0 -17
- data/docs/PatchedImporter.md +0 -17
- data/docs/PatchedRemote.md +0 -57
- data/docs/PatchedRepository.md +0 -25
- data/docs/Remote.md +0 -57
- data/docs/RepositoriesVersionsApi.md +0 -271
- data/docs/Repository.md +0 -25
- data/git_push.sh +0 -58
- data/lib/pulpcore_client/api/acs_api.rb +0 -514
- data/lib/pulpcore_client/api/exporters_api.rb +0 -446
- data/lib/pulpcore_client/api/exporters_exports_api.rb +0 -294
- data/lib/pulpcore_client/api/importers_api.rb +0 -444
- data/lib/pulpcore_client/api/importers_imports_api.rb +0 -294
- data/lib/pulpcore_client/api/repositories_versions_api.rb +0 -343
- data/lib/pulpcore_client/models/alternate_content_source.rb +0 -270
- data/lib/pulpcore_client/models/alternate_content_source_response.rb +0 -270
- data/lib/pulpcore_client/models/content_guard.rb +0 -258
- data/lib/pulpcore_client/models/distribution.rb +0 -297
- data/lib/pulpcore_client/models/export.rb +0 -209
- data/lib/pulpcore_client/models/export_response.rb +0 -250
- data/lib/pulpcore_client/models/exporter.rb +0 -232
- data/lib/pulpcore_client/models/exporter_response.rb +0 -232
- data/lib/pulpcore_client/models/import.rb +0 -228
- data/lib/pulpcore_client/models/importer.rb +0 -232
- data/lib/pulpcore_client/models/importer_response.rb +0 -232
- data/lib/pulpcore_client/models/multiple_artifact_content.rb +0 -213
- data/lib/pulpcore_client/models/paginated_alternate_content_source_response_list.rb +0 -237
- data/lib/pulpcore_client/models/paginated_export_response_list.rb +0 -237
- data/lib/pulpcore_client/models/paginated_exporter_response_list.rb +0 -237
- data/lib/pulpcore_client/models/paginated_importer_response_list.rb +0 -237
- data/lib/pulpcore_client/models/patched_alternate_content_source.rb +0 -256
- data/lib/pulpcore_client/models/patched_content_guard.rb +0 -249
- data/lib/pulpcore_client/models/patched_distribution.rb +0 -279
- data/lib/pulpcore_client/models/patched_exporter.rb +0 -223
- data/lib/pulpcore_client/models/patched_importer.rb +0 -223
- data/lib/pulpcore_client/models/patched_remote.rb +0 -649
- data/lib/pulpcore_client/models/patched_repository.rb +0 -295
- data/lib/pulpcore_client/models/remote.rb +0 -667
- data/lib/pulpcore_client/models/repository.rb +0 -304
- data/spec/api/acs_api_spec.rb +0 -132
- data/spec/api/exporters_api_spec.rb +0 -120
- data/spec/api/exporters_exports_api_spec.rb +0 -90
- data/spec/api/importers_api_spec.rb +0 -120
- data/spec/api/importers_imports_api_spec.rb +0 -90
- data/spec/api/repositories_versions_api_spec.rb +0 -104
- data/spec/models/alternate_content_source_response_spec.rb +0 -71
- data/spec/models/alternate_content_source_spec.rb +0 -59
- data/spec/models/content_guard_spec.rb +0 -47
- data/spec/models/distribution_spec.rb +0 -65
- data/spec/models/export_response_spec.rb +0 -65
- data/spec/models/export_spec.rb +0 -41
- data/spec/models/exporter_response_spec.rb +0 -53
- data/spec/models/exporter_spec.rb +0 -41
- data/spec/models/import_spec.rb +0 -47
- data/spec/models/importer_response_spec.rb +0 -53
- data/spec/models/importer_spec.rb +0 -41
- data/spec/models/multiple_artifact_content_spec.rb +0 -41
- data/spec/models/paginated_alternate_content_source_response_list_spec.rb +0 -59
- data/spec/models/paginated_export_response_list_spec.rb +0 -59
- data/spec/models/paginated_exporter_response_list_spec.rb +0 -59
- data/spec/models/paginated_importer_response_list_spec.rb +0 -59
- data/spec/models/patched_alternate_content_source_spec.rb +0 -59
- data/spec/models/patched_content_guard_spec.rb +0 -47
- data/spec/models/patched_distribution_spec.rb +0 -65
- data/spec/models/patched_exporter_spec.rb +0 -41
- data/spec/models/patched_importer_spec.rb +0 -41
- data/spec/models/patched_remote_spec.rb +0 -161
- data/spec/models/patched_repository_spec.rb +0 -65
- data/spec/models/remote_spec.rb +0 -161
- data/spec/models/repository_spec.rb +0 -65
@@ -1,304 +0,0 @@
|
|
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 PulpcoreClient
|
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 Repository
|
18
|
-
attr_accessor :pulp_labels
|
19
|
-
|
20
|
-
# A unique name for this repository.
|
21
|
-
attr_accessor :name
|
22
|
-
|
23
|
-
# An optional description.
|
24
|
-
attr_accessor :description
|
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.
|
27
|
-
attr_accessor :retain_repo_versions
|
28
|
-
|
29
|
-
# An optional remote to use by default when syncing.
|
30
|
-
attr_accessor :remote
|
31
|
-
|
32
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
33
|
-
def self.attribute_map
|
34
|
-
{
|
35
|
-
:'pulp_labels' => :'pulp_labels',
|
36
|
-
:'name' => :'name',
|
37
|
-
:'description' => :'description',
|
38
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
39
|
-
:'remote' => :'remote'
|
40
|
-
}
|
41
|
-
end
|
42
|
-
|
43
|
-
# Attribute type mapping.
|
44
|
-
def self.openapi_types
|
45
|
-
{
|
46
|
-
:'pulp_labels' => :'Object',
|
47
|
-
:'name' => :'String',
|
48
|
-
:'description' => :'String',
|
49
|
-
:'retain_repo_versions' => :'Integer',
|
50
|
-
:'remote' => :'String'
|
51
|
-
}
|
52
|
-
end
|
53
|
-
|
54
|
-
# List of attributes with nullable: true
|
55
|
-
def self.openapi_nullable
|
56
|
-
Set.new([
|
57
|
-
:'description',
|
58
|
-
:'retain_repo_versions',
|
59
|
-
:'remote'
|
60
|
-
])
|
61
|
-
end
|
62
|
-
|
63
|
-
# Initializes the object
|
64
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
65
|
-
def initialize(attributes = {})
|
66
|
-
if (!attributes.is_a?(Hash))
|
67
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::Repository` initialize method"
|
68
|
-
end
|
69
|
-
|
70
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
71
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
72
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
73
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::Repository`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
74
|
-
end
|
75
|
-
h[k.to_sym] = v
|
76
|
-
}
|
77
|
-
|
78
|
-
if attributes.key?(:'pulp_labels')
|
79
|
-
self.pulp_labels = attributes[:'pulp_labels']
|
80
|
-
end
|
81
|
-
|
82
|
-
if attributes.key?(:'name')
|
83
|
-
self.name = attributes[:'name']
|
84
|
-
end
|
85
|
-
|
86
|
-
if attributes.key?(:'description')
|
87
|
-
self.description = attributes[:'description']
|
88
|
-
end
|
89
|
-
|
90
|
-
if attributes.key?(:'retain_repo_versions')
|
91
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
92
|
-
end
|
93
|
-
|
94
|
-
if attributes.key?(:'remote')
|
95
|
-
self.remote = attributes[:'remote']
|
96
|
-
end
|
97
|
-
end
|
98
|
-
|
99
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
100
|
-
# @return Array for valid properties with the reasons
|
101
|
-
def list_invalid_properties
|
102
|
-
invalid_properties = Array.new
|
103
|
-
if @name.nil?
|
104
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
105
|
-
end
|
106
|
-
|
107
|
-
if @name.to_s.length < 1
|
108
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
109
|
-
end
|
110
|
-
|
111
|
-
if !@description.nil? && @description.to_s.length < 1
|
112
|
-
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
113
|
-
end
|
114
|
-
|
115
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
116
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
117
|
-
end
|
118
|
-
|
119
|
-
invalid_properties
|
120
|
-
end
|
121
|
-
|
122
|
-
# Check to see if the all the properties in the model are valid
|
123
|
-
# @return true if the model is valid
|
124
|
-
def valid?
|
125
|
-
return false if @name.nil?
|
126
|
-
return false if @name.to_s.length < 1
|
127
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
128
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
129
|
-
true
|
130
|
-
end
|
131
|
-
|
132
|
-
# Custom attribute writer method with validation
|
133
|
-
# @param [Object] name Value to be assigned
|
134
|
-
def name=(name)
|
135
|
-
if name.nil?
|
136
|
-
fail ArgumentError, 'name cannot be nil'
|
137
|
-
end
|
138
|
-
|
139
|
-
if name.to_s.length < 1
|
140
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
141
|
-
end
|
142
|
-
|
143
|
-
@name = name
|
144
|
-
end
|
145
|
-
|
146
|
-
# Custom attribute writer method with validation
|
147
|
-
# @param [Object] description Value to be assigned
|
148
|
-
def description=(description)
|
149
|
-
if !description.nil? && description.to_s.length < 1
|
150
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
151
|
-
end
|
152
|
-
|
153
|
-
@description = description
|
154
|
-
end
|
155
|
-
|
156
|
-
# Custom attribute writer method with validation
|
157
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
158
|
-
def retain_repo_versions=(retain_repo_versions)
|
159
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
160
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
161
|
-
end
|
162
|
-
|
163
|
-
@retain_repo_versions = retain_repo_versions
|
164
|
-
end
|
165
|
-
|
166
|
-
# Checks equality by comparing each attribute.
|
167
|
-
# @param [Object] Object to be compared
|
168
|
-
def ==(o)
|
169
|
-
return true if self.equal?(o)
|
170
|
-
self.class == o.class &&
|
171
|
-
pulp_labels == o.pulp_labels &&
|
172
|
-
name == o.name &&
|
173
|
-
description == o.description &&
|
174
|
-
retain_repo_versions == o.retain_repo_versions &&
|
175
|
-
remote == o.remote
|
176
|
-
end
|
177
|
-
|
178
|
-
# @see the `==` method
|
179
|
-
# @param [Object] Object to be compared
|
180
|
-
def eql?(o)
|
181
|
-
self == o
|
182
|
-
end
|
183
|
-
|
184
|
-
# Calculates hash code according to all attributes.
|
185
|
-
# @return [Integer] Hash code
|
186
|
-
def hash
|
187
|
-
[pulp_labels, name, description, retain_repo_versions, remote].hash
|
188
|
-
end
|
189
|
-
|
190
|
-
# Builds the object from hash
|
191
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
192
|
-
# @return [Object] Returns the model itself
|
193
|
-
def self.build_from_hash(attributes)
|
194
|
-
new.build_from_hash(attributes)
|
195
|
-
end
|
196
|
-
|
197
|
-
# Builds the object from hash
|
198
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
199
|
-
# @return [Object] Returns the model itself
|
200
|
-
def build_from_hash(attributes)
|
201
|
-
return nil unless attributes.is_a?(Hash)
|
202
|
-
self.class.openapi_types.each_pair do |key, type|
|
203
|
-
if type =~ /\AArray<(.*)>/i
|
204
|
-
# check to ensure the input is an array given that the attribute
|
205
|
-
# is documented as an array but the input is not
|
206
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
207
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
208
|
-
end
|
209
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
210
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
211
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
212
|
-
end
|
213
|
-
|
214
|
-
self
|
215
|
-
end
|
216
|
-
|
217
|
-
# Deserializes the data based on type
|
218
|
-
# @param string type Data type
|
219
|
-
# @param string value Value to be deserialized
|
220
|
-
# @return [Object] Deserialized data
|
221
|
-
def _deserialize(type, value)
|
222
|
-
case type.to_sym
|
223
|
-
when :DateTime
|
224
|
-
DateTime.parse(value)
|
225
|
-
when :Date
|
226
|
-
Date.parse(value)
|
227
|
-
when :String
|
228
|
-
value.to_s
|
229
|
-
when :Integer
|
230
|
-
value.to_i
|
231
|
-
when :Float
|
232
|
-
value.to_f
|
233
|
-
when :Boolean
|
234
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
235
|
-
true
|
236
|
-
else
|
237
|
-
false
|
238
|
-
end
|
239
|
-
when :Object
|
240
|
-
# generic object (usually a Hash), return directly
|
241
|
-
value
|
242
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
243
|
-
inner_type = Regexp.last_match[:inner_type]
|
244
|
-
value.map { |v| _deserialize(inner_type, v) }
|
245
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
246
|
-
k_type = Regexp.last_match[:k_type]
|
247
|
-
v_type = Regexp.last_match[:v_type]
|
248
|
-
{}.tap do |hash|
|
249
|
-
value.each do |k, v|
|
250
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
251
|
-
end
|
252
|
-
end
|
253
|
-
else # model
|
254
|
-
PulpcoreClient.const_get(type).build_from_hash(value)
|
255
|
-
end
|
256
|
-
end
|
257
|
-
|
258
|
-
# Returns the string representation of the object
|
259
|
-
# @return [String] String presentation of the object
|
260
|
-
def to_s
|
261
|
-
to_hash.to_s
|
262
|
-
end
|
263
|
-
|
264
|
-
# to_body is an alias to to_hash (backward compatibility)
|
265
|
-
# @return [Hash] Returns the object in the form of hash
|
266
|
-
def to_body
|
267
|
-
to_hash
|
268
|
-
end
|
269
|
-
|
270
|
-
# Returns the object in the form of hash
|
271
|
-
# @return [Hash] Returns the object in the form of hash
|
272
|
-
def to_hash
|
273
|
-
hash = {}
|
274
|
-
self.class.attribute_map.each_pair do |attr, param|
|
275
|
-
value = self.send(attr)
|
276
|
-
if value.nil?
|
277
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
278
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
279
|
-
end
|
280
|
-
|
281
|
-
hash[param] = _to_hash(value)
|
282
|
-
end
|
283
|
-
hash
|
284
|
-
end
|
285
|
-
|
286
|
-
# Outputs non-array value in the form of hash
|
287
|
-
# For object, use to_hash. Otherwise, just return the value
|
288
|
-
# @param [Object] value Any valid value
|
289
|
-
# @return [Hash] Returns the value in the form of hash
|
290
|
-
def _to_hash(value)
|
291
|
-
if value.is_a?(Array)
|
292
|
-
value.compact.map { |v| _to_hash(v) }
|
293
|
-
elsif value.is_a?(Hash)
|
294
|
-
{}.tap do |hash|
|
295
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
296
|
-
end
|
297
|
-
elsif value.respond_to? :to_hash
|
298
|
-
value.to_hash
|
299
|
-
else
|
300
|
-
value
|
301
|
-
end
|
302
|
-
end
|
303
|
-
end
|
304
|
-
end
|
data/spec/api/acs_api_spec.rb
DELETED
@@ -1,132 +0,0 @@
|
|
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 PulpcoreClient::AcsApi
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
-
# Please update as you see appropriate
|
19
|
-
describe 'AcsApi' do
|
20
|
-
before do
|
21
|
-
# run before each test
|
22
|
-
@api_instance = PulpcoreClient::AcsApi.new
|
23
|
-
end
|
24
|
-
|
25
|
-
after do
|
26
|
-
# run after each test
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test an instance of AcsApi' do
|
30
|
-
it 'should create an instance of AcsApi' do
|
31
|
-
expect(@api_instance).to be_instance_of(PulpcoreClient::AcsApi)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# unit tests for create
|
36
|
-
# Create an alternate content source
|
37
|
-
# A class for ACS viewset.
|
38
|
-
# @param alternate_content_source
|
39
|
-
# @param [Hash] opts the optional parameters
|
40
|
-
# @return [AlternateContentSourceResponse]
|
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
|
-
|
47
|
-
# unit tests for delete
|
48
|
-
# Delete an alternate content source
|
49
|
-
# Trigger an asynchronous delete ACS task
|
50
|
-
# @param alternate_content_source_href
|
51
|
-
# @param [Hash] opts the optional parameters
|
52
|
-
# @return [AsyncOperationResponse]
|
53
|
-
describe 'delete test' do
|
54
|
-
it 'should work' do
|
55
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
# unit tests for list
|
60
|
-
# List acs
|
61
|
-
# A class for ACS viewset.
|
62
|
-
# @param [Hash] opts the optional parameters
|
63
|
-
# @option opts [Integer] :limit Number of results to return per page.
|
64
|
-
# @option opts [String] :name
|
65
|
-
# @option opts [String] :name__contains Filter results where name contains value
|
66
|
-
# @option opts [String] :name__icontains Filter results where name contains value
|
67
|
-
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
68
|
-
# @option opts [String] :name__startswith Filter results where name starts with value
|
69
|
-
# @option opts [Integer] :offset The initial index from which to return the results.
|
70
|
-
# @option opts [Array<String>] :ordering Ordering
|
71
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
72
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
73
|
-
# @return [PaginatedAlternateContentSourceResponseList]
|
74
|
-
describe 'list test' do
|
75
|
-
it 'should work' do
|
76
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
77
|
-
end
|
78
|
-
end
|
79
|
-
|
80
|
-
# unit tests for partial_update
|
81
|
-
# Update an alternate content source
|
82
|
-
# Trigger an asynchronous partial update task
|
83
|
-
# @param alternate_content_source_href
|
84
|
-
# @param patched_alternate_content_source
|
85
|
-
# @param [Hash] opts the optional parameters
|
86
|
-
# @return [AsyncOperationResponse]
|
87
|
-
describe 'partial_update test' do
|
88
|
-
it 'should work' do
|
89
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
90
|
-
end
|
91
|
-
end
|
92
|
-
|
93
|
-
# unit tests for read
|
94
|
-
# Inspect an alternate content source
|
95
|
-
# A class for ACS viewset.
|
96
|
-
# @param alternate_content_source_href
|
97
|
-
# @param [Hash] opts the optional parameters
|
98
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
99
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
100
|
-
# @return [AlternateContentSourceResponse]
|
101
|
-
describe 'read test' do
|
102
|
-
it 'should work' do
|
103
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
104
|
-
end
|
105
|
-
end
|
106
|
-
|
107
|
-
# unit tests for refresh
|
108
|
-
# A class for ACS viewset.
|
109
|
-
# @param alternate_content_source_href
|
110
|
-
# @param alternate_content_source
|
111
|
-
# @param [Hash] opts the optional parameters
|
112
|
-
# @return [AlternateContentSourceResponse]
|
113
|
-
describe 'refresh test' do
|
114
|
-
it 'should work' do
|
115
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
116
|
-
end
|
117
|
-
end
|
118
|
-
|
119
|
-
# unit tests for update
|
120
|
-
# Update an alternate content source
|
121
|
-
# Trigger an asynchronous update task
|
122
|
-
# @param alternate_content_source_href
|
123
|
-
# @param alternate_content_source
|
124
|
-
# @param [Hash] opts the optional parameters
|
125
|
-
# @return [AsyncOperationResponse]
|
126
|
-
describe 'update test' do
|
127
|
-
it 'should work' do
|
128
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
129
|
-
end
|
130
|
-
end
|
131
|
-
|
132
|
-
end
|
@@ -1,120 +0,0 @@
|
|
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 PulpcoreClient::ExportersApi
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
-
# Please update as you see appropriate
|
19
|
-
describe 'ExportersApi' do
|
20
|
-
before do
|
21
|
-
# run before each test
|
22
|
-
@api_instance = PulpcoreClient::ExportersApi.new
|
23
|
-
end
|
24
|
-
|
25
|
-
after do
|
26
|
-
# run after each test
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test an instance of ExportersApi' do
|
30
|
-
it 'should create an instance of ExportersApi' do
|
31
|
-
expect(@api_instance).to be_instance_of(PulpcoreClient::ExportersApi)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# unit tests for create
|
36
|
-
# Create an exporter
|
37
|
-
# ViewSet for viewing exporters.
|
38
|
-
# @param exporter
|
39
|
-
# @param [Hash] opts the optional parameters
|
40
|
-
# @return [ExporterResponse]
|
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
|
-
|
47
|
-
# unit tests for delete
|
48
|
-
# Delete an exporter
|
49
|
-
# Trigger an asynchronous delete task
|
50
|
-
# @param exporter_href
|
51
|
-
# @param [Hash] opts the optional parameters
|
52
|
-
# @return [AsyncOperationResponse]
|
53
|
-
describe 'delete test' do
|
54
|
-
it 'should work' do
|
55
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
# unit tests for list
|
60
|
-
# List exporters
|
61
|
-
# ViewSet for viewing exporters.
|
62
|
-
# @param [Hash] opts the optional parameters
|
63
|
-
# @option opts [Integer] :limit Number of results to return per page.
|
64
|
-
# @option opts [String] :name
|
65
|
-
# @option opts [String] :name__contains Filter results where name contains value
|
66
|
-
# @option opts [String] :name__icontains Filter results where name contains value
|
67
|
-
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
68
|
-
# @option opts [String] :name__startswith Filter results where name starts with value
|
69
|
-
# @option opts [Integer] :offset The initial index from which to return the results.
|
70
|
-
# @option opts [Array<String>] :ordering Ordering
|
71
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
72
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
73
|
-
# @return [PaginatedExporterResponseList]
|
74
|
-
describe 'list test' do
|
75
|
-
it 'should work' do
|
76
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
77
|
-
end
|
78
|
-
end
|
79
|
-
|
80
|
-
# unit tests for partial_update
|
81
|
-
# Update an exporter
|
82
|
-
# Trigger an asynchronous partial update task
|
83
|
-
# @param exporter_href
|
84
|
-
# @param patched_exporter
|
85
|
-
# @param [Hash] opts the optional parameters
|
86
|
-
# @return [AsyncOperationResponse]
|
87
|
-
describe 'partial_update test' do
|
88
|
-
it 'should work' do
|
89
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
90
|
-
end
|
91
|
-
end
|
92
|
-
|
93
|
-
# unit tests for read
|
94
|
-
# Inspect an exporter
|
95
|
-
# ViewSet for viewing exporters.
|
96
|
-
# @param exporter_href
|
97
|
-
# @param [Hash] opts the optional parameters
|
98
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
99
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
100
|
-
# @return [ExporterResponse]
|
101
|
-
describe 'read test' do
|
102
|
-
it 'should work' do
|
103
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
104
|
-
end
|
105
|
-
end
|
106
|
-
|
107
|
-
# unit tests for update
|
108
|
-
# Update an exporter
|
109
|
-
# Trigger an asynchronous update task
|
110
|
-
# @param exporter_href
|
111
|
-
# @param exporter
|
112
|
-
# @param [Hash] opts the optional parameters
|
113
|
-
# @return [AsyncOperationResponse]
|
114
|
-
describe 'update test' do
|
115
|
-
it 'should work' do
|
116
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
117
|
-
end
|
118
|
-
end
|
119
|
-
|
120
|
-
end
|
@@ -1,90 +0,0 @@
|
|
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 PulpcoreClient::ExportersExportsApi
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
-
# Please update as you see appropriate
|
19
|
-
describe 'ExportersExportsApi' do
|
20
|
-
before do
|
21
|
-
# run before each test
|
22
|
-
@api_instance = PulpcoreClient::ExportersExportsApi.new
|
23
|
-
end
|
24
|
-
|
25
|
-
after do
|
26
|
-
# run after each test
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test an instance of ExportersExportsApi' do
|
30
|
-
it 'should create an instance of ExportersExportsApi' do
|
31
|
-
expect(@api_instance).to be_instance_of(PulpcoreClient::ExportersExportsApi)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# unit tests for create
|
36
|
-
# Create an export
|
37
|
-
# ViewSet for viewing exports from an Exporter.
|
38
|
-
# @param exporter_href
|
39
|
-
# @param export
|
40
|
-
# @param [Hash] opts the optional parameters
|
41
|
-
# @return [ExportResponse]
|
42
|
-
describe 'create 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
|
-
|
48
|
-
# unit tests for delete
|
49
|
-
# Delete an export
|
50
|
-
# ViewSet for viewing exports from an Exporter.
|
51
|
-
# @param exporters_export_href
|
52
|
-
# @param [Hash] opts the optional parameters
|
53
|
-
# @return [nil]
|
54
|
-
describe 'delete test' do
|
55
|
-
it 'should work' do
|
56
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
|
-
# unit tests for list
|
61
|
-
# List exports
|
62
|
-
# ViewSet for viewing exports from an Exporter.
|
63
|
-
# @param exporter_href
|
64
|
-
# @param [Hash] opts the optional parameters
|
65
|
-
# @option opts [Integer] :limit Number of results to return per page.
|
66
|
-
# @option opts [Integer] :offset The initial index from which to return the results.
|
67
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
68
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
69
|
-
# @return [PaginatedExportResponseList]
|
70
|
-
describe 'list test' do
|
71
|
-
it 'should work' do
|
72
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
73
|
-
end
|
74
|
-
end
|
75
|
-
|
76
|
-
# unit tests for read
|
77
|
-
# Inspect an export
|
78
|
-
# ViewSet for viewing exports from an Exporter.
|
79
|
-
# @param exporters_export_href
|
80
|
-
# @param [Hash] opts the optional parameters
|
81
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
82
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
83
|
-
# @return [ExportResponse]
|
84
|
-
describe 'read test' do
|
85
|
-
it 'should work' do
|
86
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
87
|
-
end
|
88
|
-
end
|
89
|
-
|
90
|
-
end
|