pulp_deb_client 2.0.0b2 → 2.0.0b3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +32 -18
  3. data/docs/ContentGenericContentsApi.md +12 -4
  4. data/docs/ContentInstallerFileIndexApi.md +20 -8
  5. data/docs/ContentInstallerPackagesApi.md +42 -4
  6. data/docs/ContentPackageIndexApi.md +20 -8
  7. data/docs/ContentPackagesApi.md +46 -6
  8. data/docs/{ContentReleasesApi.md → ContentReleaseFilesApi.md} +44 -32
  9. data/docs/ContentSummary.md +21 -0
  10. data/docs/{InstallerPackage.md → DebBasePackage.md} +40 -46
  11. data/docs/{DebDistribution.md → DebDebDistribution.md} +6 -6
  12. data/docs/{DebPublication.md → DebDebPublication.md} +5 -7
  13. data/docs/{DebRemote.md → DebDebRemote.md} +15 -21
  14. data/docs/DebDebRepository.md +27 -0
  15. data/docs/{GenericContent.md → DebGenericContent.md} +11 -17
  16. data/docs/{InstallerFileIndex.md → DebInstallerFileIndex.md} +5 -7
  17. data/docs/{PackageIndex.md → DebPackageIndex.md} +5 -7
  18. data/docs/{Release.md → DebReleaseFile.md} +5 -7
  19. data/docs/{VerbatimPublication.md → DebVerbatimPublication.md} +5 -7
  20. data/docs/DistributionsAptApi.md +16 -12
  21. data/docs/InlineResponse200.md +1 -1
  22. data/docs/InlineResponse2001.md +1 -1
  23. data/docs/InlineResponse20010.md +23 -0
  24. data/docs/InlineResponse2002.md +1 -1
  25. data/docs/InlineResponse2003.md +1 -1
  26. data/docs/InlineResponse2004.md +1 -1
  27. data/docs/InlineResponse2005.md +1 -1
  28. data/docs/InlineResponse2006.md +1 -1
  29. data/docs/InlineResponse2007.md +1 -1
  30. data/docs/InlineResponse2008.md +1 -1
  31. data/docs/InlineResponse2009.md +1 -1
  32. data/docs/PublicationsAptApi.md +12 -8
  33. data/docs/PublicationsVerbatimApi.md +12 -8
  34. data/docs/RemotesAptApi.md +30 -81
  35. data/docs/RepositoriesAptApi.md +465 -0
  36. data/docs/RepositoriesDebVersionsApi.md +214 -0
  37. data/docs/RepositoryAddRemoveContent.md +21 -0
  38. data/docs/RepositorySyncURL.md +2 -2
  39. data/docs/RepositoryVersion.md +25 -0
  40. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +16 -4
  41. data/lib/pulp_deb_client/api/content_installer_file_index_api.rb +27 -9
  42. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +61 -4
  43. data/lib/pulp_deb_client/api/content_package_index_api.rb +27 -9
  44. data/lib/pulp_deb_client/api/content_packages_api.rb +67 -7
  45. data/lib/pulp_deb_client/api/{content_releases_api.rb → content_release_files_api.rb} +61 -43
  46. data/lib/pulp_deb_client/api/distributions_apt_api.rb +19 -13
  47. data/lib/pulp_deb_client/api/publications_apt_api.rb +15 -9
  48. data/lib/pulp_deb_client/api/publications_verbatim_api.rb +15 -9
  49. data/lib/pulp_deb_client/api/remotes_apt_api.rb +40 -102
  50. data/lib/pulp_deb_client/api/repositories_apt_api.rb +568 -0
  51. data/lib/pulp_deb_client/api/repositories_deb_versions_api.rb +268 -0
  52. data/lib/pulp_deb_client/api_client.rb +1 -1
  53. data/lib/pulp_deb_client/api_error.rb +1 -1
  54. data/lib/pulp_deb_client/configuration.rb +1 -1
  55. data/lib/pulp_deb_client/models/async_operation_response.rb +12 -2
  56. data/lib/pulp_deb_client/models/content_summary.rb +246 -0
  57. data/lib/pulp_deb_client/models/{package.rb → deb_base_package.rb} +28 -62
  58. data/lib/pulp_deb_client/models/{deb_distribution.rb → deb_deb_distribution.rb} +30 -36
  59. data/lib/pulp_deb_client/models/{deb_publication.rb → deb_deb_publication.rb} +29 -42
  60. data/lib/pulp_deb_client/models/{deb_remote.rb → deb_deb_remote.rb} +87 -147
  61. data/lib/pulp_deb_client/models/deb_deb_repository.rb +294 -0
  62. data/lib/pulp_deb_client/models/{generic_content.rb → deb_generic_content.rb} +28 -62
  63. data/lib/pulp_deb_client/models/{installer_file_index.rb → deb_installer_file_index.rb} +28 -42
  64. data/lib/pulp_deb_client/models/{package_index.rb → deb_package_index.rb} +28 -42
  65. data/lib/pulp_deb_client/models/{release.rb → deb_release_file.rb} +28 -42
  66. data/lib/pulp_deb_client/models/{verbatim_publication.rb → deb_verbatim_publication.rb} +29 -42
  67. data/lib/pulp_deb_client/models/inline_response200.rb +15 -3
  68. data/lib/pulp_deb_client/models/inline_response2001.rb +15 -3
  69. data/lib/pulp_deb_client/models/inline_response20010.rb +247 -0
  70. data/lib/pulp_deb_client/models/inline_response2002.rb +15 -3
  71. data/lib/pulp_deb_client/models/inline_response2003.rb +15 -3
  72. data/lib/pulp_deb_client/models/inline_response2004.rb +15 -3
  73. data/lib/pulp_deb_client/models/inline_response2005.rb +15 -3
  74. data/lib/pulp_deb_client/models/inline_response2006.rb +15 -3
  75. data/lib/pulp_deb_client/models/inline_response2007.rb +15 -3
  76. data/lib/pulp_deb_client/models/inline_response2008.rb +15 -3
  77. data/lib/pulp_deb_client/models/inline_response2009.rb +15 -3
  78. data/lib/pulp_deb_client/models/repository_add_remove_content.rb +231 -0
  79. data/lib/pulp_deb_client/models/repository_sync_url.rb +22 -12
  80. data/lib/pulp_deb_client/models/repository_version.rb +244 -0
  81. data/lib/pulp_deb_client/version.rb +2 -2
  82. data/lib/pulp_deb_client.rb +18 -12
  83. data/pulp_deb_client.gemspec +1 -1
  84. data/spec/api/content_generic_contents_api_spec.rb +6 -2
  85. data/spec/api/content_installer_file_index_api_spec.rb +9 -3
  86. data/spec/api/content_installer_packages_api_spec.rb +21 -2
  87. data/spec/api/content_package_index_api_spec.rb +9 -3
  88. data/spec/api/content_packages_api_spec.rb +23 -3
  89. data/spec/api/{content_releases_api_spec.rb → content_release_files_api_spec.rb} +23 -17
  90. data/spec/api/distributions_apt_api_spec.rb +5 -3
  91. data/spec/api/publications_apt_api_spec.rb +5 -3
  92. data/spec/api/publications_verbatim_api_spec.rb +5 -3
  93. data/spec/api/remotes_apt_api_spec.rb +12 -22
  94. data/spec/api/repositories_apt_api_spec.rb +141 -0
  95. data/spec/api/repositories_deb_versions_api_spec.rb +91 -0
  96. data/spec/api_client_spec.rb +2 -2
  97. data/spec/configuration_spec.rb +1 -1
  98. data/spec/models/async_operation_response_spec.rb +1 -1
  99. data/spec/models/content_summary_spec.rb +53 -0
  100. data/spec/models/{package_spec.rb → deb_base_package_spec.rb} +9 -27
  101. data/spec/models/{deb_distribution_spec.rb → deb_deb_distribution_spec.rb} +9 -9
  102. data/spec/models/{deb_publication_spec.rb → deb_deb_publication_spec.rb} +9 -15
  103. data/spec/models/{deb_remote_spec.rb → deb_deb_remote_spec.rb} +14 -32
  104. data/spec/models/{verbatim_publication_spec.rb → deb_deb_repository_spec.rb} +13 -13
  105. data/spec/models/{generic_content_spec.rb → deb_generic_content_spec.rb} +9 -27
  106. data/spec/models/{package_index_spec.rb → deb_installer_file_index_spec.rb} +9 -15
  107. data/spec/models/{installer_file_index_spec.rb → deb_package_index_spec.rb} +9 -15
  108. data/spec/models/{release_spec.rb → deb_release_file_spec.rb} +9 -15
  109. data/spec/models/deb_verbatim_publication_spec.rb +65 -0
  110. data/spec/models/inline_response20010_spec.rb +59 -0
  111. data/spec/models/inline_response2001_spec.rb +1 -1
  112. data/spec/models/inline_response2002_spec.rb +1 -1
  113. data/spec/models/inline_response2003_spec.rb +1 -1
  114. data/spec/models/inline_response2004_spec.rb +1 -1
  115. data/spec/models/inline_response2005_spec.rb +1 -1
  116. data/spec/models/inline_response2006_spec.rb +1 -1
  117. data/spec/models/inline_response2007_spec.rb +1 -1
  118. data/spec/models/inline_response2008_spec.rb +1 -1
  119. data/spec/models/inline_response2009_spec.rb +1 -1
  120. data/spec/models/inline_response200_spec.rb +1 -1
  121. data/spec/models/repository_add_remove_content_spec.rb +53 -0
  122. data/spec/models/repository_sync_url_spec.rb +2 -2
  123. data/spec/models/repository_version_spec.rb +65 -0
  124. data/spec/spec_helper.rb +1 -1
  125. metadata +70 -46
  126. data/docs/Package.md +0 -99
  127. data/lib/pulp_deb_client/models/installer_package.rb +0 -1101
  128. data/spec/models/installer_package_spec.rb +0 -287
@@ -6,20 +6,18 @@
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.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module PulpDebClient
16
- class PackageIndex
17
- attr_accessor :_href
16
+ class DebPackageIndex
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
  # A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/'
25
23
  attr_accessor :artifacts
@@ -39,9 +37,8 @@ module PulpDebClient
39
37
  # Attribute mapping from ruby-style variable name to JSON key.
40
38
  def self.attribute_map
41
39
  {
42
- :'_href' => :'_href',
43
- :'_created' => :'_created',
44
- :'_type' => :'_type',
40
+ :'pulp_href' => :'pulp_href',
41
+ :'pulp_created' => :'pulp_created',
45
42
  :'artifacts' => :'artifacts',
46
43
  :'release' => :'release',
47
44
  :'component' => :'component',
@@ -53,9 +50,8 @@ module PulpDebClient
53
50
  # Attribute type mapping.
54
51
  def self.openapi_types
55
52
  {
56
- :'_href' => :'String',
57
- :'_created' => :'DateTime',
58
- :'_type' => :'String',
53
+ :'pulp_href' => :'String',
54
+ :'pulp_created' => :'DateTime',
59
55
  :'artifacts' => :'Hash<String, String>',
60
56
  :'release' => :'String',
61
57
  :'component' => :'String',
@@ -64,31 +60,33 @@ module PulpDebClient
64
60
  }
65
61
  end
66
62
 
63
+ # List of attributes with nullable: true
64
+ def self.openapi_nullable
65
+ Set.new([
66
+ ])
67
+ end
68
+
67
69
  # Initializes the object
68
70
  # @param [Hash] attributes Model attributes in the form of hash
69
71
  def initialize(attributes = {})
70
72
  if (!attributes.is_a?(Hash))
71
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::PackageIndex` initialize method"
73
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::DebPackageIndex` initialize method"
72
74
  end
73
75
 
74
76
  # check to see if the attribute exists and convert string to symbol for hash key
75
77
  attributes = attributes.each_with_object({}) { |(k, v), h|
76
78
  if (!self.class.attribute_map.key?(k.to_sym))
77
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::PackageIndex`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
79
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::DebPackageIndex`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
78
80
  end
79
81
  h[k.to_sym] = v
80
82
  }
81
83
 
82
- if attributes.key?(:'_href')
83
- self._href = attributes[:'_href']
84
+ if attributes.key?(:'pulp_href')
85
+ self.pulp_href = attributes[:'pulp_href']
84
86
  end
85
87
 
86
- if attributes.key?(:'_created')
87
- self._created = attributes[:'_created']
88
- end
89
-
90
- if attributes.key?(:'_type')
91
- self._type = attributes[:'_type']
88
+ if attributes.key?(:'pulp_created')
89
+ self.pulp_created = attributes[:'pulp_created']
92
90
  end
93
91
 
94
92
  if attributes.key?(:'artifacts')
@@ -118,10 +116,6 @@ module PulpDebClient
118
116
  # @return Array for valid properties with the reasons
119
117
  def list_invalid_properties
120
118
  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
119
  if @artifacts.nil?
126
120
  invalid_properties.push('invalid value for "artifacts", artifacts cannot be nil.')
127
121
  end
@@ -156,7 +150,6 @@ module PulpDebClient
156
150
  # Check to see if the all the properties in the model are valid
157
151
  # @return true if the model is valid
158
152
  def valid?
159
- return false if !@_type.nil? && @_type.to_s.length < 1
160
153
  return false if @artifacts.nil?
161
154
  return false if @release.nil?
162
155
  return false if @component.nil?
@@ -167,16 +160,6 @@ module PulpDebClient
167
160
  true
168
161
  end
169
162
 
170
- # Custom attribute writer method with validation
171
- # @param [Object] _type Value to be assigned
172
- def _type=(_type)
173
- if !_type.nil? && _type.to_s.length < 1
174
- fail ArgumentError, 'invalid value for "_type", the character length must be great than or equal to 1.'
175
- end
176
-
177
- @_type = _type
178
- end
179
-
180
163
  # Custom attribute writer method with validation
181
164
  # @param [Object] component Value to be assigned
182
165
  def component=(component)
@@ -220,9 +203,8 @@ module PulpDebClient
220
203
  def ==(o)
221
204
  return true if self.equal?(o)
222
205
  self.class == o.class &&
223
- _href == o._href &&
224
- _created == o._created &&
225
- _type == o._type &&
206
+ pulp_href == o.pulp_href &&
207
+ pulp_created == o.pulp_created &&
226
208
  artifacts == o.artifacts &&
227
209
  release == o.release &&
228
210
  component == o.component &&
@@ -239,7 +221,7 @@ module PulpDebClient
239
221
  # Calculates hash code according to all attributes.
240
222
  # @return [Integer] Hash code
241
223
  def hash
242
- [_href, _created, _type, artifacts, release, component, architecture, relative_path].hash
224
+ [pulp_href, pulp_created, artifacts, release, component, architecture, relative_path].hash
243
225
  end
244
226
 
245
227
  # Builds the object from hash
@@ -328,7 +310,11 @@ module PulpDebClient
328
310
  hash = {}
329
311
  self.class.attribute_map.each_pair do |attr, param|
330
312
  value = self.send(attr)
331
- next if value.nil?
313
+ if value.nil?
314
+ is_nullable = self.class.openapi_nullable.include?(attr)
315
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
316
+ end
317
+
332
318
  hash[param] = _to_hash(value)
333
319
  end
334
320
  hash
@@ -6,20 +6,18 @@
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.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module PulpDebClient
16
- class Release
17
- attr_accessor :_href
16
+ class DebReleaseFile
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
  # A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/'
25
23
  attr_accessor :artifacts
@@ -39,9 +37,8 @@ module PulpDebClient
39
37
  # Attribute mapping from ruby-style variable name to JSON key.
40
38
  def self.attribute_map
41
39
  {
42
- :'_href' => :'_href',
43
- :'_created' => :'_created',
44
- :'_type' => :'_type',
40
+ :'pulp_href' => :'pulp_href',
41
+ :'pulp_created' => :'pulp_created',
45
42
  :'artifacts' => :'artifacts',
46
43
  :'codename' => :'codename',
47
44
  :'suite' => :'suite',
@@ -53,9 +50,8 @@ module PulpDebClient
53
50
  # Attribute type mapping.
54
51
  def self.openapi_types
55
52
  {
56
- :'_href' => :'String',
57
- :'_created' => :'DateTime',
58
- :'_type' => :'String',
53
+ :'pulp_href' => :'String',
54
+ :'pulp_created' => :'DateTime',
59
55
  :'artifacts' => :'Hash<String, String>',
60
56
  :'codename' => :'String',
61
57
  :'suite' => :'String',
@@ -64,31 +60,33 @@ module PulpDebClient
64
60
  }
65
61
  end
66
62
 
63
+ # List of attributes with nullable: true
64
+ def self.openapi_nullable
65
+ Set.new([
66
+ ])
67
+ end
68
+
67
69
  # Initializes the object
68
70
  # @param [Hash] attributes Model attributes in the form of hash
69
71
  def initialize(attributes = {})
70
72
  if (!attributes.is_a?(Hash))
71
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::Release` initialize method"
73
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::DebReleaseFile` initialize method"
72
74
  end
73
75
 
74
76
  # check to see if the attribute exists and convert string to symbol for hash key
75
77
  attributes = attributes.each_with_object({}) { |(k, v), h|
76
78
  if (!self.class.attribute_map.key?(k.to_sym))
77
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::Release`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
79
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::DebReleaseFile`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
78
80
  end
79
81
  h[k.to_sym] = v
80
82
  }
81
83
 
82
- if attributes.key?(:'_href')
83
- self._href = attributes[:'_href']
84
+ if attributes.key?(:'pulp_href')
85
+ self.pulp_href = attributes[:'pulp_href']
84
86
  end
85
87
 
86
- if attributes.key?(:'_created')
87
- self._created = attributes[:'_created']
88
- end
89
-
90
- if attributes.key?(:'_type')
91
- self._type = attributes[:'_type']
88
+ if attributes.key?(:'pulp_created')
89
+ self.pulp_created = attributes[:'pulp_created']
92
90
  end
93
91
 
94
92
  if attributes.key?(:'artifacts')
@@ -118,10 +116,6 @@ module PulpDebClient
118
116
  # @return Array for valid properties with the reasons
119
117
  def list_invalid_properties
120
118
  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
119
  if @artifacts.nil?
126
120
  invalid_properties.push('invalid value for "artifacts", artifacts cannot be nil.')
127
121
  end
@@ -152,7 +146,6 @@ module PulpDebClient
152
146
  # Check to see if the all the properties in the model are valid
153
147
  # @return true if the model is valid
154
148
  def valid?
155
- return false if !@_type.nil? && @_type.to_s.length < 1
156
149
  return false if @artifacts.nil?
157
150
  return false if @codename.nil?
158
151
  return false if @codename.to_s.length < 1
@@ -162,16 +155,6 @@ module PulpDebClient
162
155
  true
163
156
  end
164
157
 
165
- # Custom attribute writer method with validation
166
- # @param [Object] _type Value to be assigned
167
- def _type=(_type)
168
- if !_type.nil? && _type.to_s.length < 1
169
- fail ArgumentError, 'invalid value for "_type", the character length must be great than or equal to 1.'
170
- end
171
-
172
- @_type = _type
173
- end
174
-
175
158
  # Custom attribute writer method with validation
176
159
  # @param [Object] codename Value to be assigned
177
160
  def codename=(codename)
@@ -221,9 +204,8 @@ module PulpDebClient
221
204
  def ==(o)
222
205
  return true if self.equal?(o)
223
206
  self.class == o.class &&
224
- _href == o._href &&
225
- _created == o._created &&
226
- _type == o._type &&
207
+ pulp_href == o.pulp_href &&
208
+ pulp_created == o.pulp_created &&
227
209
  artifacts == o.artifacts &&
228
210
  codename == o.codename &&
229
211
  suite == o.suite &&
@@ -240,7 +222,7 @@ module PulpDebClient
240
222
  # Calculates hash code according to all attributes.
241
223
  # @return [Integer] Hash code
242
224
  def hash
243
- [_href, _created, _type, artifacts, codename, suite, distribution, relative_path].hash
225
+ [pulp_href, pulp_created, artifacts, codename, suite, distribution, relative_path].hash
244
226
  end
245
227
 
246
228
  # Builds the object from hash
@@ -329,7 +311,11 @@ module PulpDebClient
329
311
  hash = {}
330
312
  self.class.attribute_map.each_pair do |attr, param|
331
313
  value = self.send(attr)
332
- next if value.nil?
314
+ if value.nil?
315
+ is_nullable = self.class.openapi_nullable.include?(attr)
316
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
317
+ end
318
+
333
319
  hash[param] = _to_hash(value)
334
320
  end
335
321
  hash
@@ -6,20 +6,18 @@
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.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module PulpDebClient
16
- class VerbatimPublication
17
- attr_accessor :_href
16
+ class DebVerbatimPublication
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
 
@@ -31,9 +29,8 @@ module PulpDebClient
31
29
  # Attribute mapping from ruby-style variable name to JSON key.
32
30
  def self.attribute_map
33
31
  {
34
- :'_href' => :'_href',
35
- :'_created' => :'_created',
36
- :'_type' => :'_type',
32
+ :'pulp_href' => :'pulp_href',
33
+ :'pulp_created' => :'pulp_created',
37
34
  :'publisher' => :'publisher',
38
35
  :'repository_version' => :'repository_version',
39
36
  :'repository' => :'repository'
@@ -43,40 +40,42 @@ module PulpDebClient
43
40
  # Attribute type mapping.
44
41
  def self.openapi_types
45
42
  {
46
- :'_href' => :'String',
47
- :'_created' => :'DateTime',
48
- :'_type' => :'String',
43
+ :'pulp_href' => :'String',
44
+ :'pulp_created' => :'DateTime',
49
45
  :'publisher' => :'String',
50
46
  :'repository_version' => :'String',
51
47
  :'repository' => :'String'
52
48
  }
53
49
  end
54
50
 
51
+ # List of attributes with nullable: true
52
+ def self.openapi_nullable
53
+ Set.new([
54
+ :'publisher',
55
+ ])
56
+ end
57
+
55
58
  # Initializes the object
56
59
  # @param [Hash] attributes Model attributes in the form of hash
57
60
  def initialize(attributes = {})
58
61
  if (!attributes.is_a?(Hash))
59
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::VerbatimPublication` initialize method"
62
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::DebVerbatimPublication` initialize method"
60
63
  end
61
64
 
62
65
  # check to see if the attribute exists and convert string to symbol for hash key
63
66
  attributes = attributes.each_with_object({}) { |(k, v), h|
64
67
  if (!self.class.attribute_map.key?(k.to_sym))
65
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::VerbatimPublication`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
68
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::DebVerbatimPublication`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
66
69
  end
67
70
  h[k.to_sym] = v
68
71
  }
69
72
 
70
- if attributes.key?(:'_href')
71
- self._href = attributes[:'_href']
73
+ if attributes.key?(:'pulp_href')
74
+ self.pulp_href = attributes[:'pulp_href']
72
75
  end
73
76
 
74
- if attributes.key?(:'_created')
75
- self._created = attributes[:'_created']
76
- end
77
-
78
- if attributes.key?(:'_type')
79
- self._type = attributes[:'_type']
77
+ if attributes.key?(:'pulp_created')
78
+ self.pulp_created = attributes[:'pulp_created']
80
79
  end
81
80
 
82
81
  if attributes.key?(:'publisher')
@@ -96,38 +95,22 @@ module PulpDebClient
96
95
  # @return Array for valid properties with the reasons
97
96
  def list_invalid_properties
98
97
  invalid_properties = Array.new
99
- if !@_type.nil? && @_type.to_s.length < 1
100
- invalid_properties.push('invalid value for "_type", the character length must be great than or equal to 1.')
101
- end
102
-
103
98
  invalid_properties
104
99
  end
105
100
 
106
101
  # Check to see if the all the properties in the model are valid
107
102
  # @return true if the model is valid
108
103
  def valid?
109
- return false if !@_type.nil? && @_type.to_s.length < 1
110
104
  true
111
105
  end
112
106
 
113
- # Custom attribute writer method with validation
114
- # @param [Object] _type Value to be assigned
115
- def _type=(_type)
116
- if !_type.nil? && _type.to_s.length < 1
117
- fail ArgumentError, 'invalid value for "_type", the character length must be great than or equal to 1.'
118
- end
119
-
120
- @_type = _type
121
- end
122
-
123
107
  # Checks equality by comparing each attribute.
124
108
  # @param [Object] Object to be compared
125
109
  def ==(o)
126
110
  return true if self.equal?(o)
127
111
  self.class == o.class &&
128
- _href == o._href &&
129
- _created == o._created &&
130
- _type == o._type &&
112
+ pulp_href == o.pulp_href &&
113
+ pulp_created == o.pulp_created &&
131
114
  publisher == o.publisher &&
132
115
  repository_version == o.repository_version &&
133
116
  repository == o.repository
@@ -142,7 +125,7 @@ module PulpDebClient
142
125
  # Calculates hash code according to all attributes.
143
126
  # @return [Integer] Hash code
144
127
  def hash
145
- [_href, _created, _type, publisher, repository_version, repository].hash
128
+ [pulp_href, pulp_created, publisher, repository_version, repository].hash
146
129
  end
147
130
 
148
131
  # Builds the object from hash
@@ -231,7 +214,11 @@ module PulpDebClient
231
214
  hash = {}
232
215
  self.class.attribute_map.each_pair do |attr, param|
233
216
  value = self.send(attr)
234
- next if value.nil?
217
+ if value.nil?
218
+ is_nullable = self.class.openapi_nullable.include?(attr)
219
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
220
+ end
221
+
235
222
  hash[param] = _to_hash(value)
236
223
  end
237
224
  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.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -38,10 +38,18 @@ module PulpDebClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<GenericContent>'
41
+ :'results' => :'Array<DebGenericContent>'
42
42
  }
43
43
  end
44
44
 
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ :'_next',
49
+ :'previous',
50
+ ])
51
+ end
52
+
45
53
  # Initializes the object
46
54
  # @param [Hash] attributes Model attributes in the form of hash
47
55
  def initialize(attributes = {})
@@ -208,7 +216,11 @@ module PulpDebClient
208
216
  hash = {}
209
217
  self.class.attribute_map.each_pair do |attr, param|
210
218
  value = self.send(attr)
211
- next if value.nil?
219
+ if value.nil?
220
+ is_nullable = self.class.openapi_nullable.include?(attr)
221
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
222
+ end
223
+
212
224
  hash[param] = _to_hash(value)
213
225
  end
214
226
  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.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -38,10 +38,18 @@ module PulpDebClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<InstallerFileIndex>'
41
+ :'results' => :'Array<DebInstallerFileIndex>'
42
42
  }
43
43
  end
44
44
 
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ :'_next',
49
+ :'previous',
50
+ ])
51
+ end
52
+
45
53
  # Initializes the object
46
54
  # @param [Hash] attributes Model attributes in the form of hash
47
55
  def initialize(attributes = {})
@@ -208,7 +216,11 @@ module PulpDebClient
208
216
  hash = {}
209
217
  self.class.attribute_map.each_pair do |attr, param|
210
218
  value = self.send(attr)
211
- next if value.nil?
219
+ if value.nil?
220
+ is_nullable = self.class.openapi_nullable.include?(attr)
221
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
222
+ end
223
+
212
224
  hash[param] = _to_hash(value)
213
225
  end
214
226
  hash