pulp_file_client 0.2.0 → 0.3.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.
- checksums.yaml +4 -4
- data/README.md +17 -11
- data/docs/ContentFilesApi.md +2 -0
- data/docs/DistributionsFileApi.md +2 -0
- data/docs/Export.md +25 -0
- data/docs/ExportersFileExportsApi.md +243 -0
- data/docs/{FileExportersFileApi.md → ExportersFilesystemApi.md} +29 -82
- data/docs/FileFileFileSystemExporter.md +3 -3
- data/docs/InlineResponse2003.md +1 -1
- data/docs/InlineResponse2004.md +1 -1
- data/docs/InlineResponse2005.md +1 -1
- data/docs/InlineResponse2006.md +1 -1
- data/docs/InlineResponse2007.md +23 -0
- data/docs/PublicationsFileApi.md +2 -2
- data/docs/RemotesFileApi.md +4 -2
- data/docs/RepositoriesFileApi.md +4 -2
- data/docs/RepositoriesFileVersionsApi.md +57 -2
- data/lib/pulp_file_client/api/content_files_api.rb +4 -1
- data/lib/pulp_file_client/api/distributions_file_api.rb +4 -1
- data/lib/pulp_file_client/api/exporters_file_exports_api.rb +297 -0
- data/lib/pulp_file_client/api/{file_exporters_file_api.rb → exporters_filesystem_api.rb} +34 -99
- data/lib/pulp_file_client/api/publications_file_api.rb +4 -4
- data/lib/pulp_file_client/api/remotes_file_api.rb +7 -4
- data/lib/pulp_file_client/api/repositories_file_api.rb +7 -4
- data/lib/pulp_file_client/api/repositories_file_versions_api.rb +72 -4
- data/lib/pulp_file_client/api_client.rb +1 -1
- data/lib/pulp_file_client/api_error.rb +1 -1
- data/lib/pulp_file_client/configuration.rb +1 -1
- data/lib/pulp_file_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_file_client/models/content_summary.rb +1 -1
- data/lib/pulp_file_client/models/export.rb +258 -0
- data/lib/pulp_file_client/models/file_file_content.rb +1 -1
- data/lib/pulp_file_client/models/file_file_distribution.rb +1 -1
- data/lib/pulp_file_client/models/file_file_file_system_exporter.rb +39 -39
- data/lib/pulp_file_client/models/file_file_publication.rb +1 -1
- data/lib/pulp_file_client/models/file_file_remote.rb +1 -1
- data/lib/pulp_file_client/models/file_file_repository.rb +1 -1
- data/lib/pulp_file_client/models/inline_response200.rb +1 -1
- data/lib/pulp_file_client/models/inline_response2001.rb +1 -1
- data/lib/pulp_file_client/models/inline_response2002.rb +1 -1
- data/lib/pulp_file_client/models/inline_response2003.rb +2 -2
- data/lib/pulp_file_client/models/inline_response2004.rb +2 -2
- data/lib/pulp_file_client/models/inline_response2005.rb +2 -2
- data/lib/pulp_file_client/models/inline_response2006.rb +2 -2
- data/lib/pulp_file_client/models/inline_response2007.rb +247 -0
- data/lib/pulp_file_client/models/publication_export.rb +1 -1
- data/lib/pulp_file_client/models/repository_add_remove_content.rb +1 -1
- data/lib/pulp_file_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_file_client/models/repository_version.rb +1 -1
- data/lib/pulp_file_client/version.rb +2 -2
- data/lib/pulp_file_client.rb +5 -2
- data/pulp_file_client.gemspec +1 -1
- data/spec/api/content_files_api_spec.rb +2 -1
- data/spec/api/distributions_file_api_spec.rb +2 -1
- data/spec/api/exporters_file_exports_api_spec.rb +91 -0
- data/spec/api/{file_exporters_file_api_spec.rb → exporters_filesystem_api_spec.rb} +12 -23
- data/spec/api/publications_file_api_spec.rb +2 -2
- data/spec/api/remotes_file_api_spec.rb +3 -2
- data/spec/api/repositories_file_api_spec.rb +3 -2
- data/spec/api/repositories_file_versions_api_spec.rb +14 -2
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_summary_spec.rb +1 -1
- data/spec/models/export_spec.rb +65 -0
- data/spec/models/file_file_content_spec.rb +1 -1
- data/spec/models/file_file_distribution_spec.rb +1 -1
- data/spec/models/file_file_file_system_exporter_spec.rb +3 -3
- data/spec/models/file_file_publication_spec.rb +1 -1
- data/spec/models/file_file_remote_spec.rb +1 -1
- data/spec/models/file_file_repository_spec.rb +1 -1
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response2002_spec.rb +1 -1
- data/spec/models/inline_response2003_spec.rb +1 -1
- data/spec/models/inline_response2004_spec.rb +1 -1
- data/spec/models/inline_response2005_spec.rb +1 -1
- data/spec/models/inline_response2006_spec.rb +1 -1
- data/spec/models/inline_response2007_spec.rb +59 -0
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/publication_export_spec.rb +1 -1
- data/spec/models/repository_add_remove_content_spec.rb +1 -1
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/models/repository_version_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +18 -6
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pulp 3 API
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v3
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 4.2.3
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
|
|
15
|
+
module PulpFileClient
|
|
16
|
+
class Export
|
|
17
|
+
attr_accessor :pulp_href
|
|
18
|
+
|
|
19
|
+
# Timestamp of creation.
|
|
20
|
+
attr_accessor :pulp_created
|
|
21
|
+
|
|
22
|
+
# A URI of the task that ran the Export.
|
|
23
|
+
attr_accessor :task
|
|
24
|
+
|
|
25
|
+
# Resources that were exported.
|
|
26
|
+
attr_accessor :exported_resources
|
|
27
|
+
|
|
28
|
+
# Any additional parameters that were used to create the export.
|
|
29
|
+
attr_accessor :params
|
|
30
|
+
|
|
31
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
32
|
+
def self.attribute_map
|
|
33
|
+
{
|
|
34
|
+
:'pulp_href' => :'pulp_href',
|
|
35
|
+
:'pulp_created' => :'pulp_created',
|
|
36
|
+
:'task' => :'task',
|
|
37
|
+
:'exported_resources' => :'exported_resources',
|
|
38
|
+
:'params' => :'params'
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Attribute type mapping.
|
|
43
|
+
def self.openapi_types
|
|
44
|
+
{
|
|
45
|
+
:'pulp_href' => :'String',
|
|
46
|
+
:'pulp_created' => :'DateTime',
|
|
47
|
+
:'task' => :'String',
|
|
48
|
+
:'exported_resources' => :'Array<Object>',
|
|
49
|
+
:'params' => :'Object'
|
|
50
|
+
}
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# List of attributes with nullable: true
|
|
54
|
+
def self.openapi_nullable
|
|
55
|
+
Set.new([
|
|
56
|
+
])
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# Initializes the object
|
|
60
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
61
|
+
def initialize(attributes = {})
|
|
62
|
+
if (!attributes.is_a?(Hash))
|
|
63
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpFileClient::Export` initialize method"
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
67
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
68
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpFileClient::Export`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
70
|
+
end
|
|
71
|
+
h[k.to_sym] = v
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if attributes.key?(:'pulp_href')
|
|
75
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'pulp_created')
|
|
79
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'task')
|
|
83
|
+
self.task = attributes[:'task']
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'exported_resources')
|
|
87
|
+
if (value = attributes[:'exported_resources']).is_a?(Array)
|
|
88
|
+
self.exported_resources = value
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'params')
|
|
93
|
+
self.params = attributes[:'params']
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
98
|
+
# @return Array for valid properties with the reasons
|
|
99
|
+
def list_invalid_properties
|
|
100
|
+
invalid_properties = Array.new
|
|
101
|
+
if @task.nil?
|
|
102
|
+
invalid_properties.push('invalid value for "task", task cannot be nil.')
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
if @params.nil?
|
|
106
|
+
invalid_properties.push('invalid value for "params", params cannot be nil.')
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
invalid_properties
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Check to see if the all the properties in the model are valid
|
|
113
|
+
# @return true if the model is valid
|
|
114
|
+
def valid?
|
|
115
|
+
return false if @task.nil?
|
|
116
|
+
return false if @params.nil?
|
|
117
|
+
true
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Checks equality by comparing each attribute.
|
|
121
|
+
# @param [Object] Object to be compared
|
|
122
|
+
def ==(o)
|
|
123
|
+
return true if self.equal?(o)
|
|
124
|
+
self.class == o.class &&
|
|
125
|
+
pulp_href == o.pulp_href &&
|
|
126
|
+
pulp_created == o.pulp_created &&
|
|
127
|
+
task == o.task &&
|
|
128
|
+
exported_resources == o.exported_resources &&
|
|
129
|
+
params == o.params
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# @see the `==` method
|
|
133
|
+
# @param [Object] Object to be compared
|
|
134
|
+
def eql?(o)
|
|
135
|
+
self == o
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# Calculates hash code according to all attributes.
|
|
139
|
+
# @return [Integer] Hash code
|
|
140
|
+
def hash
|
|
141
|
+
[pulp_href, pulp_created, task, exported_resources, params].hash
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Builds the object from hash
|
|
145
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
146
|
+
# @return [Object] Returns the model itself
|
|
147
|
+
def self.build_from_hash(attributes)
|
|
148
|
+
new.build_from_hash(attributes)
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Builds the object from hash
|
|
152
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
153
|
+
# @return [Object] Returns the model itself
|
|
154
|
+
def build_from_hash(attributes)
|
|
155
|
+
return nil unless attributes.is_a?(Hash)
|
|
156
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
157
|
+
if type =~ /\AArray<(.*)>/i
|
|
158
|
+
# check to ensure the input is an array given that the attribute
|
|
159
|
+
# is documented as an array but the input is not
|
|
160
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
161
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
162
|
+
end
|
|
163
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
164
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
165
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
self
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# Deserializes the data based on type
|
|
172
|
+
# @param string type Data type
|
|
173
|
+
# @param string value Value to be deserialized
|
|
174
|
+
# @return [Object] Deserialized data
|
|
175
|
+
def _deserialize(type, value)
|
|
176
|
+
case type.to_sym
|
|
177
|
+
when :DateTime
|
|
178
|
+
DateTime.parse(value)
|
|
179
|
+
when :Date
|
|
180
|
+
Date.parse(value)
|
|
181
|
+
when :String
|
|
182
|
+
value.to_s
|
|
183
|
+
when :Integer
|
|
184
|
+
value.to_i
|
|
185
|
+
when :Float
|
|
186
|
+
value.to_f
|
|
187
|
+
when :Boolean
|
|
188
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
189
|
+
true
|
|
190
|
+
else
|
|
191
|
+
false
|
|
192
|
+
end
|
|
193
|
+
when :Object
|
|
194
|
+
# generic object (usually a Hash), return directly
|
|
195
|
+
value
|
|
196
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
197
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
198
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
199
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
200
|
+
k_type = Regexp.last_match[:k_type]
|
|
201
|
+
v_type = Regexp.last_match[:v_type]
|
|
202
|
+
{}.tap do |hash|
|
|
203
|
+
value.each do |k, v|
|
|
204
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
205
|
+
end
|
|
206
|
+
end
|
|
207
|
+
else # model
|
|
208
|
+
PulpFileClient.const_get(type).build_from_hash(value)
|
|
209
|
+
end
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
# Returns the string representation of the object
|
|
213
|
+
# @return [String] String presentation of the object
|
|
214
|
+
def to_s
|
|
215
|
+
to_hash.to_s
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
219
|
+
# @return [Hash] Returns the object in the form of hash
|
|
220
|
+
def to_body
|
|
221
|
+
to_hash
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# Returns the object in the form of hash
|
|
225
|
+
# @return [Hash] Returns the object in the form of hash
|
|
226
|
+
def to_hash
|
|
227
|
+
hash = {}
|
|
228
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
229
|
+
value = self.send(attr)
|
|
230
|
+
if value.nil?
|
|
231
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
232
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
hash[param] = _to_hash(value)
|
|
236
|
+
end
|
|
237
|
+
hash
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
# Outputs non-array value in the form of hash
|
|
241
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
242
|
+
# @param [Object] value Any valid value
|
|
243
|
+
# @return [Hash] Returns the value in the form of hash
|
|
244
|
+
def _to_hash(value)
|
|
245
|
+
if value.is_a?(Array)
|
|
246
|
+
value.compact.map { |v| _to_hash(v) }
|
|
247
|
+
elsif value.is_a?(Hash)
|
|
248
|
+
{}.tap do |hash|
|
|
249
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
250
|
+
end
|
|
251
|
+
elsif value.respond_to? :to_hash
|
|
252
|
+
value.to_hash
|
|
253
|
+
else
|
|
254
|
+
value
|
|
255
|
+
end
|
|
256
|
+
end
|
|
257
|
+
end
|
|
258
|
+
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.2.
|
|
9
|
+
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -19,19 +19,19 @@ module PulpFileClient
|
|
|
19
19
|
# Timestamp of creation.
|
|
20
20
|
attr_accessor :pulp_created
|
|
21
21
|
|
|
22
|
-
# File system location to export to.
|
|
23
|
-
attr_accessor :path
|
|
24
|
-
|
|
25
22
|
# Unique name of the file system exporter.
|
|
26
23
|
attr_accessor :name
|
|
27
24
|
|
|
25
|
+
# File system location to export to.
|
|
26
|
+
attr_accessor :path
|
|
27
|
+
|
|
28
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
29
|
def self.attribute_map
|
|
30
30
|
{
|
|
31
31
|
:'pulp_href' => :'pulp_href',
|
|
32
32
|
:'pulp_created' => :'pulp_created',
|
|
33
|
-
:'
|
|
34
|
-
:'
|
|
33
|
+
:'name' => :'name',
|
|
34
|
+
:'path' => :'path'
|
|
35
35
|
}
|
|
36
36
|
end
|
|
37
37
|
|
|
@@ -40,8 +40,8 @@ module PulpFileClient
|
|
|
40
40
|
{
|
|
41
41
|
:'pulp_href' => :'String',
|
|
42
42
|
:'pulp_created' => :'DateTime',
|
|
43
|
-
:'
|
|
44
|
-
:'
|
|
43
|
+
:'name' => :'String',
|
|
44
|
+
:'path' => :'String'
|
|
45
45
|
}
|
|
46
46
|
end
|
|
47
47
|
|
|
@@ -74,27 +74,19 @@ module PulpFileClient
|
|
|
74
74
|
self.pulp_created = attributes[:'pulp_created']
|
|
75
75
|
end
|
|
76
76
|
|
|
77
|
-
if attributes.key?(:'path')
|
|
78
|
-
self.path = attributes[:'path']
|
|
79
|
-
end
|
|
80
|
-
|
|
81
77
|
if attributes.key?(:'name')
|
|
82
78
|
self.name = attributes[:'name']
|
|
83
79
|
end
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'path')
|
|
82
|
+
self.path = attributes[:'path']
|
|
83
|
+
end
|
|
84
84
|
end
|
|
85
85
|
|
|
86
86
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
87
87
|
# @return Array for valid properties with the reasons
|
|
88
88
|
def list_invalid_properties
|
|
89
89
|
invalid_properties = Array.new
|
|
90
|
-
if @path.nil?
|
|
91
|
-
invalid_properties.push('invalid value for "path", path cannot be nil.')
|
|
92
|
-
end
|
|
93
|
-
|
|
94
|
-
if @path.to_s.length < 1
|
|
95
|
-
invalid_properties.push('invalid value for "path", the character length must be great than or equal to 1.')
|
|
96
|
-
end
|
|
97
|
-
|
|
98
90
|
if @name.nil?
|
|
99
91
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
100
92
|
end
|
|
@@ -103,33 +95,27 @@ module PulpFileClient
|
|
|
103
95
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
104
96
|
end
|
|
105
97
|
|
|
98
|
+
if @path.nil?
|
|
99
|
+
invalid_properties.push('invalid value for "path", path cannot be nil.')
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
if @path.to_s.length < 1
|
|
103
|
+
invalid_properties.push('invalid value for "path", the character length must be great than or equal to 1.')
|
|
104
|
+
end
|
|
105
|
+
|
|
106
106
|
invalid_properties
|
|
107
107
|
end
|
|
108
108
|
|
|
109
109
|
# Check to see if the all the properties in the model are valid
|
|
110
110
|
# @return true if the model is valid
|
|
111
111
|
def valid?
|
|
112
|
-
return false if @path.nil?
|
|
113
|
-
return false if @path.to_s.length < 1
|
|
114
112
|
return false if @name.nil?
|
|
115
113
|
return false if @name.to_s.length < 1
|
|
114
|
+
return false if @path.nil?
|
|
115
|
+
return false if @path.to_s.length < 1
|
|
116
116
|
true
|
|
117
117
|
end
|
|
118
118
|
|
|
119
|
-
# Custom attribute writer method with validation
|
|
120
|
-
# @param [Object] path Value to be assigned
|
|
121
|
-
def path=(path)
|
|
122
|
-
if path.nil?
|
|
123
|
-
fail ArgumentError, 'path cannot be nil'
|
|
124
|
-
end
|
|
125
|
-
|
|
126
|
-
if path.to_s.length < 1
|
|
127
|
-
fail ArgumentError, 'invalid value for "path", the character length must be great than or equal to 1.'
|
|
128
|
-
end
|
|
129
|
-
|
|
130
|
-
@path = path
|
|
131
|
-
end
|
|
132
|
-
|
|
133
119
|
# Custom attribute writer method with validation
|
|
134
120
|
# @param [Object] name Value to be assigned
|
|
135
121
|
def name=(name)
|
|
@@ -144,6 +130,20 @@ module PulpFileClient
|
|
|
144
130
|
@name = name
|
|
145
131
|
end
|
|
146
132
|
|
|
133
|
+
# Custom attribute writer method with validation
|
|
134
|
+
# @param [Object] path Value to be assigned
|
|
135
|
+
def path=(path)
|
|
136
|
+
if path.nil?
|
|
137
|
+
fail ArgumentError, 'path cannot be nil'
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
if path.to_s.length < 1
|
|
141
|
+
fail ArgumentError, 'invalid value for "path", the character length must be great than or equal to 1.'
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
@path = path
|
|
145
|
+
end
|
|
146
|
+
|
|
147
147
|
# Checks equality by comparing each attribute.
|
|
148
148
|
# @param [Object] Object to be compared
|
|
149
149
|
def ==(o)
|
|
@@ -151,8 +151,8 @@ module PulpFileClient
|
|
|
151
151
|
self.class == o.class &&
|
|
152
152
|
pulp_href == o.pulp_href &&
|
|
153
153
|
pulp_created == o.pulp_created &&
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
name == o.name &&
|
|
155
|
+
path == o.path
|
|
156
156
|
end
|
|
157
157
|
|
|
158
158
|
# @see the `==` method
|
|
@@ -164,7 +164,7 @@ module PulpFileClient
|
|
|
164
164
|
# Calculates hash code according to all attributes.
|
|
165
165
|
# @return [Integer] Hash code
|
|
166
166
|
def hash
|
|
167
|
-
[pulp_href, pulp_created,
|
|
167
|
+
[pulp_href, pulp_created, name, path].hash
|
|
168
168
|
end
|
|
169
169
|
|
|
170
170
|
# Builds the object from hash
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.2.
|
|
9
|
+
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -38,7 +38,7 @@ module PulpFileClient
|
|
|
38
38
|
:'count' => :'Integer',
|
|
39
39
|
:'_next' => :'String',
|
|
40
40
|
:'previous' => :'String',
|
|
41
|
-
:'results' => :'Array<
|
|
41
|
+
:'results' => :'Array<Export>'
|
|
42
42
|
}
|
|
43
43
|
end
|
|
44
44
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.2.
|
|
9
|
+
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -38,7 +38,7 @@ module PulpFileClient
|
|
|
38
38
|
:'count' => :'Integer',
|
|
39
39
|
:'_next' => :'String',
|
|
40
40
|
:'previous' => :'String',
|
|
41
|
-
:'results' => :'Array<
|
|
41
|
+
:'results' => :'Array<FileFilePublication>'
|
|
42
42
|
}
|
|
43
43
|
end
|
|
44
44
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.2.
|
|
9
|
+
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -38,7 +38,7 @@ module PulpFileClient
|
|
|
38
38
|
:'count' => :'Integer',
|
|
39
39
|
:'_next' => :'String',
|
|
40
40
|
:'previous' => :'String',
|
|
41
|
-
:'results' => :'Array<
|
|
41
|
+
:'results' => :'Array<FileFileRemote>'
|
|
42
42
|
}
|
|
43
43
|
end
|
|
44
44
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.2.
|
|
9
|
+
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -38,7 +38,7 @@ module PulpFileClient
|
|
|
38
38
|
:'count' => :'Integer',
|
|
39
39
|
:'_next' => :'String',
|
|
40
40
|
:'previous' => :'String',
|
|
41
|
-
:'results' => :'Array<
|
|
41
|
+
:'results' => :'Array<FileFileRepository>'
|
|
42
42
|
}
|
|
43
43
|
end
|
|
44
44
|
|