pulp_file_client 0.1.0b3 → 0.1.0b4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContentFilesApi.md +6 -2
  4. data/docs/DistributionsFileApi.md +6 -2
  5. data/docs/FileContent.md +11 -13
  6. data/docs/FileDistribution.md +5 -5
  7. data/docs/FilePublication.md +5 -7
  8. data/docs/FileRemote.md +6 -8
  9. data/docs/PublicationsFileApi.md +6 -2
  10. data/docs/RemotesFileApi.md +18 -14
  11. data/lib/pulp_file_client.rb +1 -1
  12. data/lib/pulp_file_client/api/content_files_api.rb +7 -1
  13. data/lib/pulp_file_client/api/distributions_file_api.rb +7 -1
  14. data/lib/pulp_file_client/api/publications_file_api.rb +7 -1
  15. data/lib/pulp_file_client/api/remotes_file_api.rb +25 -19
  16. data/lib/pulp_file_client/api_client.rb +1 -1
  17. data/lib/pulp_file_client/api_error.rb +1 -1
  18. data/lib/pulp_file_client/configuration.rb +1 -1
  19. data/lib/pulp_file_client/models/async_operation_response.rb +1 -1
  20. data/lib/pulp_file_client/models/file_content.rb +14 -38
  21. data/lib/pulp_file_client/models/file_distribution.rb +14 -14
  22. data/lib/pulp_file_client/models/file_publication.rb +14 -38
  23. data/lib/pulp_file_client/models/file_remote.rb +20 -44
  24. data/lib/pulp_file_client/models/inline_response200.rb +1 -1
  25. data/lib/pulp_file_client/models/inline_response2001.rb +1 -1
  26. data/lib/pulp_file_client/models/inline_response2002.rb +1 -1
  27. data/lib/pulp_file_client/models/inline_response2003.rb +1 -1
  28. data/lib/pulp_file_client/models/repository_sync_url.rb +1 -1
  29. data/lib/pulp_file_client/version.rb +2 -2
  30. data/pulp_file_client.gemspec +1 -1
  31. data/spec/api/content_files_api_spec.rb +3 -1
  32. data/spec/api/distributions_file_api_spec.rb +3 -1
  33. data/spec/api/publications_file_api_spec.rb +3 -1
  34. data/spec/api/remotes_file_api_spec.rb +9 -7
  35. data/spec/api_client_spec.rb +2 -2
  36. data/spec/configuration_spec.rb +1 -1
  37. data/spec/models/async_operation_response_spec.rb +1 -1
  38. data/spec/models/file_content_spec.rb +3 -9
  39. data/spec/models/file_distribution_spec.rb +3 -3
  40. data/spec/models/file_publication_spec.rb +3 -9
  41. data/spec/models/file_remote_spec.rb +4 -10
  42. data/spec/models/inline_response2001_spec.rb +1 -1
  43. data/spec/models/inline_response2002_spec.rb +1 -1
  44. data/spec/models/inline_response2003_spec.rb +1 -1
  45. data/spec/models/inline_response200_spec.rb +1 -1
  46. data/spec/models/repository_sync_url_spec.rb +1 -1
  47. data/spec/spec_helper.rb +1 -1
  48. metadata +2 -2
@@ -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.1.3-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -150,6 +150,7 @@ module PulpFileClient
150
150
  # @option opts [Integer] :limit Number of results to return per page.
151
151
  # @option opts [Integer] :offset The initial index from which to return the results.
152
152
  # @option opts [String] :fields A list of fields to include in the response.
153
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
153
154
  # @return [InlineResponse2002]
154
155
  def list(opts = {})
155
156
  data, _status_code, _headers = list_with_http_info(opts)
@@ -163,6 +164,7 @@ module PulpFileClient
163
164
  # @option opts [Integer] :limit Number of results to return per page.
164
165
  # @option opts [Integer] :offset The initial index from which to return the results.
165
166
  # @option opts [String] :fields A list of fields to include in the response.
167
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
166
168
  # @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
167
169
  def list_with_http_info(opts = {})
168
170
  if @api_client.config.debugging
@@ -177,6 +179,7 @@ module PulpFileClient
177
179
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
178
180
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
179
181
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
182
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
180
183
 
181
184
  # header parameters
182
185
  header_params = opts[:header_params] || {}
@@ -216,6 +219,7 @@ module PulpFileClient
216
219
  # @param file_publication_href [String] URI of File Publication. e.g.: /pulp/api/v3/publications/file/file/1/
217
220
  # @param [Hash] opts the optional parameters
218
221
  # @option opts [String] :fields A list of fields to include in the response.
222
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
219
223
  # @return [FilePublication]
220
224
  def read(file_publication_href, opts = {})
221
225
  data, _status_code, _headers = read_with_http_info(file_publication_href, opts)
@@ -227,6 +231,7 @@ module PulpFileClient
227
231
  # @param file_publication_href [String] URI of File Publication. e.g.: /pulp/api/v3/publications/file/file/1/
228
232
  # @param [Hash] opts the optional parameters
229
233
  # @option opts [String] :fields A list of fields to include in the response.
234
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
230
235
  # @return [Array<(FilePublication, Integer, Hash)>] FilePublication data, response status code and response headers
231
236
  def read_with_http_info(file_publication_href, opts = {})
232
237
  if @api_client.config.debugging
@@ -242,6 +247,7 @@ module PulpFileClient
242
247
  # query parameters
243
248
  query_params = opts[:query_params] || {}
244
249
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
250
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
245
251
 
246
252
  # header parameters
247
253
  header_params = opts[:header_params] || {}
@@ -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.1.3-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -150,15 +150,16 @@ module PulpFileClient
150
150
  # @param [Hash] opts the optional parameters
151
151
  # @option opts [String] :name
152
152
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
153
- # @option opts [String] :_last_updated__lt Filter results where _last_updated is less than value
154
- # @option opts [String] :_last_updated__lte Filter results where _last_updated is less than or equal to value
155
- # @option opts [String] :_last_updated__gt Filter results where _last_updated is greater than value
156
- # @option opts [String] :_last_updated__gte Filter results where _last_updated is greater than or equal to value
157
- # @option opts [String] :_last_updated__range Filter results where _last_updated is between two comma separated values
158
- # @option opts [String] :_last_updated ISO 8601 formatted dates are supported
153
+ # @option opts [String] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
154
+ # @option opts [String] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
155
+ # @option opts [String] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
156
+ # @option opts [String] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
157
+ # @option opts [String] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
158
+ # @option opts [String] :pulp_last_updated ISO 8601 formatted dates are supported
159
159
  # @option opts [Integer] :limit Number of results to return per page.
160
160
  # @option opts [Integer] :offset The initial index from which to return the results.
161
161
  # @option opts [String] :fields A list of fields to include in the response.
162
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
162
163
  # @return [InlineResponse2003]
163
164
  def list(opts = {})
164
165
  data, _status_code, _headers = list_with_http_info(opts)
@@ -170,15 +171,16 @@ module PulpFileClient
170
171
  # @param [Hash] opts the optional parameters
171
172
  # @option opts [String] :name
172
173
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
173
- # @option opts [String] :_last_updated__lt Filter results where _last_updated is less than value
174
- # @option opts [String] :_last_updated__lte Filter results where _last_updated is less than or equal to value
175
- # @option opts [String] :_last_updated__gt Filter results where _last_updated is greater than value
176
- # @option opts [String] :_last_updated__gte Filter results where _last_updated is greater than or equal to value
177
- # @option opts [String] :_last_updated__range Filter results where _last_updated is between two comma separated values
178
- # @option opts [String] :_last_updated ISO 8601 formatted dates are supported
174
+ # @option opts [String] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
175
+ # @option opts [String] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
176
+ # @option opts [String] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
177
+ # @option opts [String] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
178
+ # @option opts [String] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
179
+ # @option opts [String] :pulp_last_updated ISO 8601 formatted dates are supported
179
180
  # @option opts [Integer] :limit Number of results to return per page.
180
181
  # @option opts [Integer] :offset The initial index from which to return the results.
181
182
  # @option opts [String] :fields A list of fields to include in the response.
183
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
182
184
  # @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
183
185
  def list_with_http_info(opts = {})
184
186
  if @api_client.config.debugging
@@ -191,15 +193,16 @@ module PulpFileClient
191
193
  query_params = opts[:query_params] || {}
192
194
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
193
195
  query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
194
- query_params[:'_last_updated__lt'] = opts[:'_last_updated__lt'] if !opts[:'_last_updated__lt'].nil?
195
- query_params[:'_last_updated__lte'] = opts[:'_last_updated__lte'] if !opts[:'_last_updated__lte'].nil?
196
- query_params[:'_last_updated__gt'] = opts[:'_last_updated__gt'] if !opts[:'_last_updated__gt'].nil?
197
- query_params[:'_last_updated__gte'] = opts[:'_last_updated__gte'] if !opts[:'_last_updated__gte'].nil?
198
- query_params[:'_last_updated__range'] = opts[:'_last_updated__range'] if !opts[:'_last_updated__range'].nil?
199
- query_params[:'_last_updated'] = opts[:'_last_updated'] if !opts[:'_last_updated'].nil?
196
+ query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
197
+ query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
198
+ query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
199
+ query_params[:'pulp_last_updated__gte'] = opts[:'pulp_last_updated__gte'] if !opts[:'pulp_last_updated__gte'].nil?
200
+ query_params[:'pulp_last_updated__range'] = opts[:'pulp_last_updated__range'] if !opts[:'pulp_last_updated__range'].nil?
201
+ query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
200
202
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
201
203
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
202
204
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
205
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
203
206
 
204
207
  # header parameters
205
208
  header_params = opts[:header_params] || {}
@@ -309,6 +312,7 @@ module PulpFileClient
309
312
  # @param file_remote_href [String] URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/
310
313
  # @param [Hash] opts the optional parameters
311
314
  # @option opts [String] :fields A list of fields to include in the response.
315
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
312
316
  # @return [FileRemote]
313
317
  def read(file_remote_href, opts = {})
314
318
  data, _status_code, _headers = read_with_http_info(file_remote_href, opts)
@@ -320,6 +324,7 @@ module PulpFileClient
320
324
  # @param file_remote_href [String] URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/
321
325
  # @param [Hash] opts the optional parameters
322
326
  # @option opts [String] :fields A list of fields to include in the response.
327
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
323
328
  # @return [Array<(FileRemote, Integer, Hash)>] FileRemote data, response status code and response headers
324
329
  def read_with_http_info(file_remote_href, opts = {})
325
330
  if @api_client.config.debugging
@@ -335,6 +340,7 @@ module PulpFileClient
335
340
  # query parameters
336
341
  query_params = opts[:query_params] || {}
337
342
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
343
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
338
344
 
339
345
  # header parameters
340
346
  header_params = opts[:header_params] || {}
@@ -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.1.3-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -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.1.3-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -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.1.3-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -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.1.3-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -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.1.3-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -14,12 +14,10 @@ require 'date'
14
14
 
15
15
  module PulpFileClient
16
16
  class FileContent
17
- attr_accessor :_href
17
+ attr_accessor :pulp_href
18
18
 
19
19
  # Timestamp of creation.
20
- attr_accessor :_created
21
-
22
- attr_accessor :_type
20
+ attr_accessor :pulp_created
23
21
 
24
22
  # Artifact file representing the physical content
25
23
  attr_accessor :artifact
@@ -54,9 +52,8 @@ module PulpFileClient
54
52
  # Attribute mapping from ruby-style variable name to JSON key.
55
53
  def self.attribute_map
56
54
  {
57
- :'_href' => :'_href',
58
- :'_created' => :'_created',
59
- :'_type' => :'_type',
55
+ :'pulp_href' => :'pulp_href',
56
+ :'pulp_created' => :'pulp_created',
60
57
  :'artifact' => :'artifact',
61
58
  :'relative_path' => :'relative_path',
62
59
  :'file' => :'file',
@@ -73,9 +70,8 @@ module PulpFileClient
73
70
  # Attribute type mapping.
74
71
  def self.openapi_types
75
72
  {
76
- :'_href' => :'String',
77
- :'_created' => :'DateTime',
78
- :'_type' => :'String',
73
+ :'pulp_href' => :'String',
74
+ :'pulp_created' => :'DateTime',
79
75
  :'artifact' => :'String',
80
76
  :'relative_path' => :'String',
81
77
  :'file' => :'String',
@@ -104,16 +100,12 @@ module PulpFileClient
104
100
  h[k.to_sym] = v
105
101
  }
106
102
 
107
- if attributes.key?(:'_href')
108
- self._href = attributes[:'_href']
109
- end
110
-
111
- if attributes.key?(:'_created')
112
- self._created = attributes[:'_created']
103
+ if attributes.key?(:'pulp_href')
104
+ self.pulp_href = attributes[:'pulp_href']
113
105
  end
114
106
 
115
- if attributes.key?(:'_type')
116
- self._type = attributes[:'_type']
107
+ if attributes.key?(:'pulp_created')
108
+ self.pulp_created = attributes[:'pulp_created']
117
109
  end
118
110
 
119
111
  if attributes.key?(:'artifact')
@@ -161,10 +153,6 @@ module PulpFileClient
161
153
  # @return Array for valid properties with the reasons
162
154
  def list_invalid_properties
163
155
  invalid_properties = Array.new
164
- if !@_type.nil? && @_type.to_s.length < 1
165
- invalid_properties.push('invalid value for "_type", the character length must be great than or equal to 1.')
166
- end
167
-
168
156
  if @relative_path.nil?
169
157
  invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
170
158
  end
@@ -203,7 +191,6 @@ module PulpFileClient
203
191
  # Check to see if the all the properties in the model are valid
204
192
  # @return true if the model is valid
205
193
  def valid?
206
- return false if !@_type.nil? && @_type.to_s.length < 1
207
194
  return false if @relative_path.nil?
208
195
  return false if @relative_path.to_s.length < 1
209
196
  return false if !@md5.nil? && @md5.to_s.length < 1
@@ -215,16 +202,6 @@ module PulpFileClient
215
202
  true
216
203
  end
217
204
 
218
- # Custom attribute writer method with validation
219
- # @param [Object] _type Value to be assigned
220
- def _type=(_type)
221
- if !_type.nil? && _type.to_s.length < 1
222
- fail ArgumentError, 'invalid value for "_type", the character length must be great than or equal to 1.'
223
- end
224
-
225
- @_type = _type
226
- end
227
-
228
205
  # Custom attribute writer method with validation
229
206
  # @param [Object] relative_path Value to be assigned
230
207
  def relative_path=(relative_path)
@@ -304,9 +281,8 @@ module PulpFileClient
304
281
  def ==(o)
305
282
  return true if self.equal?(o)
306
283
  self.class == o.class &&
307
- _href == o._href &&
308
- _created == o._created &&
309
- _type == o._type &&
284
+ pulp_href == o.pulp_href &&
285
+ pulp_created == o.pulp_created &&
310
286
  artifact == o.artifact &&
311
287
  relative_path == o.relative_path &&
312
288
  file == o.file &&
@@ -328,7 +304,7 @@ module PulpFileClient
328
304
  # Calculates hash code according to all attributes.
329
305
  # @return [Integer] Hash code
330
306
  def hash
331
- [_href, _created, _type, artifact, relative_path, file, repository, md5, sha1, sha224, sha256, sha384, sha512].hash
307
+ [pulp_href, pulp_created, artifact, relative_path, file, repository, md5, sha1, sha224, sha256, sha384, sha512].hash
332
308
  end
333
309
 
334
310
  # 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.1.3-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -14,10 +14,10 @@ require 'date'
14
14
 
15
15
  module PulpFileClient
16
16
  class FileDistribution
17
- attr_accessor :_href
17
+ attr_accessor :pulp_href
18
18
 
19
19
  # Timestamp of creation.
20
- attr_accessor :_created
20
+ attr_accessor :pulp_created
21
21
 
22
22
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
23
23
  attr_accessor :base_path
@@ -37,8 +37,8 @@ module PulpFileClient
37
37
  # Attribute mapping from ruby-style variable name to JSON key.
38
38
  def self.attribute_map
39
39
  {
40
- :'_href' => :'_href',
41
- :'_created' => :'_created',
40
+ :'pulp_href' => :'pulp_href',
41
+ :'pulp_created' => :'pulp_created',
42
42
  :'base_path' => :'base_path',
43
43
  :'base_url' => :'base_url',
44
44
  :'content_guard' => :'content_guard',
@@ -50,8 +50,8 @@ module PulpFileClient
50
50
  # Attribute type mapping.
51
51
  def self.openapi_types
52
52
  {
53
- :'_href' => :'String',
54
- :'_created' => :'DateTime',
53
+ :'pulp_href' => :'String',
54
+ :'pulp_created' => :'DateTime',
55
55
  :'base_path' => :'String',
56
56
  :'base_url' => :'String',
57
57
  :'content_guard' => :'String',
@@ -75,12 +75,12 @@ module PulpFileClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
- if attributes.key?(:'_href')
79
- self._href = attributes[:'_href']
78
+ if attributes.key?(:'pulp_href')
79
+ self.pulp_href = attributes[:'pulp_href']
80
80
  end
81
81
 
82
- if attributes.key?(:'_created')
83
- self._created = attributes[:'_created']
82
+ if attributes.key?(:'pulp_created')
83
+ self.pulp_created = attributes[:'pulp_created']
84
84
  end
85
85
 
86
86
  if attributes.key?(:'base_path')
@@ -203,8 +203,8 @@ module PulpFileClient
203
203
  def ==(o)
204
204
  return true if self.equal?(o)
205
205
  self.class == o.class &&
206
- _href == o._href &&
207
- _created == o._created &&
206
+ pulp_href == o.pulp_href &&
207
+ pulp_created == o.pulp_created &&
208
208
  base_path == o.base_path &&
209
209
  base_url == o.base_url &&
210
210
  content_guard == o.content_guard &&
@@ -221,7 +221,7 @@ module PulpFileClient
221
221
  # Calculates hash code according to all attributes.
222
222
  # @return [Integer] Hash code
223
223
  def hash
224
- [_href, _created, base_path, base_url, content_guard, name, publication].hash
224
+ [pulp_href, pulp_created, base_path, base_url, content_guard, name, publication].hash
225
225
  end
226
226
 
227
227
  # 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.1.3-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -14,12 +14,10 @@ require 'date'
14
14
 
15
15
  module PulpFileClient
16
16
  class FilePublication
17
- attr_accessor :_href
17
+ attr_accessor :pulp_href
18
18
 
19
19
  # Timestamp of creation.
20
- attr_accessor :_created
21
-
22
- attr_accessor :_type
20
+ attr_accessor :pulp_created
23
21
 
24
22
  attr_accessor :publisher
25
23
 
@@ -37,9 +35,8 @@ module PulpFileClient
37
35
  # Attribute mapping from ruby-style variable name to JSON key.
38
36
  def self.attribute_map
39
37
  {
40
- :'_href' => :'_href',
41
- :'_created' => :'_created',
42
- :'_type' => :'_type',
38
+ :'pulp_href' => :'pulp_href',
39
+ :'pulp_created' => :'pulp_created',
43
40
  :'publisher' => :'publisher',
44
41
  :'repository_version' => :'repository_version',
45
42
  :'repository' => :'repository',
@@ -51,9 +48,8 @@ module PulpFileClient
51
48
  # Attribute type mapping.
52
49
  def self.openapi_types
53
50
  {
54
- :'_href' => :'String',
55
- :'_created' => :'DateTime',
56
- :'_type' => :'String',
51
+ :'pulp_href' => :'String',
52
+ :'pulp_created' => :'DateTime',
57
53
  :'publisher' => :'String',
58
54
  :'repository_version' => :'String',
59
55
  :'repository' => :'String',
@@ -77,16 +73,12 @@ module PulpFileClient
77
73
  h[k.to_sym] = v
78
74
  }
79
75
 
80
- if attributes.key?(:'_href')
81
- self._href = attributes[:'_href']
82
- end
83
-
84
- if attributes.key?(:'_created')
85
- self._created = attributes[:'_created']
76
+ if attributes.key?(:'pulp_href')
77
+ self.pulp_href = attributes[:'pulp_href']
86
78
  end
87
79
 
88
- if attributes.key?(:'_type')
89
- self._type = attributes[:'_type']
80
+ if attributes.key?(:'pulp_created')
81
+ self.pulp_created = attributes[:'pulp_created']
90
82
  end
91
83
 
92
84
  if attributes.key?(:'publisher')
@@ -118,10 +110,6 @@ module PulpFileClient
118
110
  # @return Array for valid properties with the reasons
119
111
  def list_invalid_properties
120
112
  invalid_properties = Array.new
121
- if !@_type.nil? && @_type.to_s.length < 1
122
- invalid_properties.push('invalid value for "_type", the character length must be great than or equal to 1.')
123
- end
124
-
125
113
  if !@manifest.nil? && @manifest.to_s.length < 1
126
114
  invalid_properties.push('invalid value for "manifest", the character length must be great than or equal to 1.')
127
115
  end
@@ -132,21 +120,10 @@ module PulpFileClient
132
120
  # Check to see if the all the properties in the model are valid
133
121
  # @return true if the model is valid
134
122
  def valid?
135
- return false if !@_type.nil? && @_type.to_s.length < 1
136
123
  return false if !@manifest.nil? && @manifest.to_s.length < 1
137
124
  true
138
125
  end
139
126
 
140
- # Custom attribute writer method with validation
141
- # @param [Object] _type Value to be assigned
142
- def _type=(_type)
143
- if !_type.nil? && _type.to_s.length < 1
144
- fail ArgumentError, 'invalid value for "_type", the character length must be great than or equal to 1.'
145
- end
146
-
147
- @_type = _type
148
- end
149
-
150
127
  # Custom attribute writer method with validation
151
128
  # @param [Object] manifest Value to be assigned
152
129
  def manifest=(manifest)
@@ -162,9 +139,8 @@ module PulpFileClient
162
139
  def ==(o)
163
140
  return true if self.equal?(o)
164
141
  self.class == o.class &&
165
- _href == o._href &&
166
- _created == o._created &&
167
- _type == o._type &&
142
+ pulp_href == o.pulp_href &&
143
+ pulp_created == o.pulp_created &&
168
144
  publisher == o.publisher &&
169
145
  repository_version == o.repository_version &&
170
146
  repository == o.repository &&
@@ -181,7 +157,7 @@ module PulpFileClient
181
157
  # Calculates hash code according to all attributes.
182
158
  # @return [Integer] Hash code
183
159
  def hash
184
- [_href, _created, _type, publisher, repository_version, repository, distributions, manifest].hash
160
+ [pulp_href, pulp_created, publisher, repository_version, repository, distributions, manifest].hash
185
161
  end
186
162
 
187
163
  # Builds the object from hash