pulp_rpm_client 3.0.0b71572533171 → 3.0.0rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (174) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +63 -22
  3. data/docs/ContentAdvisoriesApi.md +15 -7
  4. data/docs/ContentDistributionTreesApi.md +2 -2
  5. data/docs/ContentModulemdDefaultsApi.md +6 -6
  6. data/docs/{ContentModulemdApi.md → ContentModulemdsApi.md} +14 -14
  7. data/docs/ContentPackagecategoriesApi.md +189 -0
  8. data/docs/ContentPackageenvironmentsApi.md +189 -0
  9. data/docs/ContentPackagegroupsApi.md +189 -0
  10. data/docs/ContentPackagelangpacksApi.md +189 -0
  11. data/docs/ContentPackagesApi.md +4 -4
  12. data/docs/ContentRepoMetadataFilesApi.md +4 -4
  13. data/docs/ContentSummary.md +21 -0
  14. data/docs/DistributionsRpmApi.md +10 -10
  15. data/docs/InlineResponse200.md +1 -1
  16. data/docs/InlineResponse2001.md +1 -1
  17. data/docs/InlineResponse20010.md +23 -0
  18. data/docs/InlineResponse20011.md +23 -0
  19. data/docs/InlineResponse20012.md +23 -0
  20. data/docs/InlineResponse20013.md +23 -0
  21. data/docs/InlineResponse20014.md +23 -0
  22. data/docs/InlineResponse2002.md +1 -1
  23. data/docs/InlineResponse2003.md +1 -1
  24. data/docs/InlineResponse2004.md +1 -1
  25. data/docs/InlineResponse2005.md +1 -1
  26. data/docs/InlineResponse2006.md +1 -1
  27. data/docs/InlineResponse2007.md +1 -1
  28. data/docs/InlineResponse2008.md +1 -1
  29. data/docs/InlineResponse2009.md +23 -0
  30. data/docs/PublicationsRpmApi.md +6 -6
  31. data/docs/RemotesRpmApi.md +12 -68
  32. data/docs/RepositoriesRpmApi.md +465 -0
  33. data/docs/RepositoriesRpmVersionsApi.md +214 -0
  34. data/docs/RepositoryAddRemoveContent.md +21 -0
  35. data/docs/RepositorySyncURL.md +2 -2
  36. data/docs/RepositoryVersion.md +25 -0
  37. data/docs/{DistributionTree.md → RpmDistributionTree.md} +2 -2
  38. data/docs/{Modulemd.md → RpmModulemd.md} +2 -8
  39. data/docs/{ModulemdDefaults.md → RpmModulemdDefaults.md} +2 -8
  40. data/docs/{Package.md → RpmPackage.md} +2 -8
  41. data/docs/RpmPackageCategory.md +33 -0
  42. data/docs/RpmPackageEnvironment.md +37 -0
  43. data/docs/RpmPackageGroup.md +39 -0
  44. data/docs/RpmPackageLangpacks.md +19 -0
  45. data/docs/{RepoMetadataFile.md → RpmRepoMetadataFile.md} +2 -8
  46. data/docs/{RpmDistribution.md → RpmRpmDistribution.md} +2 -2
  47. data/docs/{RpmPublication.md → RpmRpmPublication.md} +2 -2
  48. data/docs/{RpmRemote.md → RpmRpmRemote.md} +10 -14
  49. data/docs/RpmRpmRepository.md +27 -0
  50. data/docs/RpmUpdateCollection.md +21 -0
  51. data/docs/{UpdateRecord.md → RpmUpdateRecord.md} +24 -20
  52. data/lib/pulp_rpm_client/api/content_advisories_api.rb +28 -14
  53. data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +4 -4
  54. data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +8 -8
  55. data/lib/pulp_rpm_client/api/{content_modulemd_api.rb → content_modulemds_api.rb} +30 -30
  56. data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +227 -0
  57. data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +227 -0
  58. data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +227 -0
  59. data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +227 -0
  60. data/lib/pulp_rpm_client/api/content_packages_api.rb +7 -7
  61. data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +7 -7
  62. data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +13 -13
  63. data/lib/pulp_rpm_client/api/publications_rpm_api.rb +9 -9
  64. data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +16 -86
  65. data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +568 -0
  66. data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +268 -0
  67. data/lib/pulp_rpm_client/api_client.rb +1 -1
  68. data/lib/pulp_rpm_client/api_error.rb +1 -1
  69. data/lib/pulp_rpm_client/configuration.rb +1 -1
  70. data/lib/pulp_rpm_client/models/addon.rb +12 -2
  71. data/lib/pulp_rpm_client/models/artifact.rb +18 -2
  72. data/lib/pulp_rpm_client/models/async_operation_response.rb +12 -2
  73. data/lib/pulp_rpm_client/models/checksum.rb +12 -2
  74. data/lib/pulp_rpm_client/models/content_summary.rb +246 -0
  75. data/lib/pulp_rpm_client/models/image.rb +12 -2
  76. data/lib/pulp_rpm_client/models/inline_response200.rb +15 -3
  77. data/lib/pulp_rpm_client/models/inline_response2001.rb +15 -3
  78. data/lib/pulp_rpm_client/models/inline_response20010.rb +247 -0
  79. data/lib/pulp_rpm_client/models/inline_response20011.rb +247 -0
  80. data/lib/pulp_rpm_client/models/inline_response20012.rb +247 -0
  81. data/lib/pulp_rpm_client/models/inline_response20013.rb +247 -0
  82. data/lib/pulp_rpm_client/models/inline_response20014.rb +247 -0
  83. data/lib/pulp_rpm_client/models/inline_response2002.rb +15 -3
  84. data/lib/pulp_rpm_client/models/inline_response2003.rb +15 -3
  85. data/lib/pulp_rpm_client/models/inline_response2004.rb +15 -3
  86. data/lib/pulp_rpm_client/models/inline_response2005.rb +15 -3
  87. data/lib/pulp_rpm_client/models/inline_response2006.rb +15 -3
  88. data/lib/pulp_rpm_client/models/inline_response2007.rb +15 -3
  89. data/lib/pulp_rpm_client/models/inline_response2008.rb +15 -3
  90. data/lib/pulp_rpm_client/models/inline_response2009.rb +247 -0
  91. data/lib/pulp_rpm_client/models/repository_add_remove_content.rb +231 -0
  92. data/lib/pulp_rpm_client/models/repository_sync_url.rb +22 -12
  93. data/lib/pulp_rpm_client/models/repository_version.rb +244 -0
  94. data/lib/pulp_rpm_client/models/{distribution_tree.rb → rpm_distribution_tree.rb} +15 -5
  95. data/lib/pulp_rpm_client/models/{modulemd.rb → rpm_modulemd.rb} +16 -60
  96. data/lib/pulp_rpm_client/models/{modulemd_defaults.rb → rpm_modulemd_defaults.rb} +16 -60
  97. data/lib/pulp_rpm_client/models/{package.rb → rpm_package.rb} +16 -60
  98. data/lib/pulp_rpm_client/models/rpm_package_category.rb +405 -0
  99. data/lib/pulp_rpm_client/models/rpm_package_environment.rb +432 -0
  100. data/lib/pulp_rpm_client/models/rpm_package_group.rb +435 -0
  101. data/lib/pulp_rpm_client/models/rpm_package_langpacks.rb +246 -0
  102. data/lib/pulp_rpm_client/models/{repo_metadata_file.rb → rpm_repo_metadata_file.rb} +16 -60
  103. data/lib/pulp_rpm_client/models/{rpm_distribution.rb → rpm_rpm_distribution.rb} +17 -23
  104. data/lib/pulp_rpm_client/models/{rpm_publication.rb → rpm_rpm_publication.rb} +16 -5
  105. data/lib/pulp_rpm_client/models/{rpm_remote.rb → rpm_rpm_remote.rb} +69 -105
  106. data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +294 -0
  107. data/lib/pulp_rpm_client/models/rpm_update_collection.rb +240 -0
  108. data/lib/pulp_rpm_client/models/{update_record.rb → rpm_update_record.rb} +49 -239
  109. data/lib/pulp_rpm_client/models/variant.rb +12 -2
  110. data/lib/pulp_rpm_client/version.rb +2 -2
  111. data/lib/pulp_rpm_client.rb +32 -12
  112. data/pulp_rpm_client.gemspec +1 -1
  113. data/spec/api/content_advisories_api_spec.rb +6 -3
  114. data/spec/api/content_distribution_trees_api_spec.rb +2 -2
  115. data/spec/api/content_modulemd_defaults_api_spec.rb +3 -3
  116. data/spec/api/{content_modulemd_api_spec.rb → content_modulemds_api_spec.rb} +9 -9
  117. data/spec/api/content_packagecategories_api_spec.rb +79 -0
  118. data/spec/api/content_packageenvironments_api_spec.rb +79 -0
  119. data/spec/api/content_packagegroups_api_spec.rb +79 -0
  120. data/spec/api/content_packagelangpacks_api_spec.rb +79 -0
  121. data/spec/api/content_packages_api_spec.rb +3 -3
  122. data/spec/api/content_repo_metadata_files_api_spec.rb +3 -3
  123. data/spec/api/distributions_rpm_api_spec.rb +3 -3
  124. data/spec/api/publications_rpm_api_spec.rb +3 -3
  125. data/spec/api/remotes_rpm_api_spec.rb +4 -17
  126. data/spec/api/repositories_rpm_api_spec.rb +141 -0
  127. data/spec/api/repositories_rpm_versions_api_spec.rb +91 -0
  128. data/spec/api_client_spec.rb +1 -1
  129. data/spec/configuration_spec.rb +1 -1
  130. data/spec/models/addon_spec.rb +1 -1
  131. data/spec/models/artifact_spec.rb +1 -1
  132. data/spec/models/async_operation_response_spec.rb +1 -1
  133. data/spec/models/checksum_spec.rb +1 -1
  134. data/spec/models/content_summary_spec.rb +53 -0
  135. data/spec/models/image_spec.rb +1 -1
  136. data/spec/models/inline_response20010_spec.rb +59 -0
  137. data/spec/models/inline_response20011_spec.rb +59 -0
  138. data/spec/models/inline_response20012_spec.rb +59 -0
  139. data/spec/models/inline_response20013_spec.rb +59 -0
  140. data/spec/models/inline_response20014_spec.rb +59 -0
  141. data/spec/models/inline_response2001_spec.rb +1 -1
  142. data/spec/models/inline_response2002_spec.rb +1 -1
  143. data/spec/models/inline_response2003_spec.rb +1 -1
  144. data/spec/models/inline_response2004_spec.rb +1 -1
  145. data/spec/models/inline_response2005_spec.rb +1 -1
  146. data/spec/models/inline_response2006_spec.rb +1 -1
  147. data/spec/models/inline_response2007_spec.rb +1 -1
  148. data/spec/models/inline_response2008_spec.rb +1 -1
  149. data/spec/models/inline_response2009_spec.rb +59 -0
  150. data/spec/models/inline_response200_spec.rb +1 -1
  151. data/spec/models/repository_add_remove_content_spec.rb +53 -0
  152. data/spec/models/repository_sync_url_spec.rb +2 -2
  153. data/spec/models/repository_version_spec.rb +65 -0
  154. data/spec/models/{distribution_tree_spec.rb → rpm_distribution_tree_spec.rb} +7 -7
  155. data/spec/models/{modulemd_defaults_spec.rb → rpm_modulemd_defaults_spec.rb} +7 -25
  156. data/spec/models/{modulemd_spec.rb → rpm_modulemd_spec.rb} +7 -25
  157. data/spec/models/{repo_metadata_file_spec.rb → rpm_package_category_spec.rb} +16 -16
  158. data/spec/models/rpm_package_environment_spec.rb +101 -0
  159. data/spec/models/rpm_package_group_spec.rb +107 -0
  160. data/spec/models/rpm_package_langpacks_spec.rb +47 -0
  161. data/spec/models/{package_spec.rb → rpm_package_spec.rb} +7 -25
  162. data/spec/models/rpm_repo_metadata_file_spec.rb +71 -0
  163. data/spec/models/{rpm_distribution_spec.rb → rpm_rpm_distribution_spec.rb} +7 -7
  164. data/spec/models/{rpm_publication_spec.rb → rpm_rpm_publication_spec.rb} +7 -7
  165. data/spec/models/{rpm_remote_spec.rb → rpm_rpm_remote_spec.rb} +11 -23
  166. data/spec/models/rpm_rpm_repository_spec.rb +71 -0
  167. data/spec/models/rpm_update_collection_spec.rb +53 -0
  168. data/spec/models/{update_record_spec.rb → rpm_update_record_spec.rb} +19 -7
  169. data/spec/models/variant_spec.rb +1 -1
  170. data/spec/spec_helper.rb +1 -1
  171. metadata +126 -46
  172. data/docs/RpmCopyApi.md +0 -70
  173. data/lib/pulp_rpm_client/api/rpm_copy_api.rb +0 -96
  174. data/spec/api/rpm_copy_api_spec.rb +0 -50
@@ -6,14 +6,14 @@
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.1-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.2-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module PulpRpmClient
16
- class RepoMetadataFile
16
+ class RpmRepoMetadataFile
17
17
  attr_accessor :pulp_href
18
18
 
19
19
  # Timestamp of creation.
@@ -22,15 +22,6 @@ module PulpRpmClient
22
22
  # Artifact file representing the physical content
23
23
  attr_accessor :artifact
24
24
 
25
- # Path where the artifact is located relative to distributions base_path
26
- attr_accessor :relative_path
27
-
28
- # An uploaded file that should be turned into the artifact of the content unit.
29
- attr_accessor :file
30
-
31
- # A URI of a repository the new content unit should be associated with.
32
- attr_accessor :repository
33
-
34
25
  # Metadata type.
35
26
  attr_accessor :data_type
36
27
 
@@ -46,9 +37,6 @@ module PulpRpmClient
46
37
  :'pulp_href' => :'pulp_href',
47
38
  :'pulp_created' => :'pulp_created',
48
39
  :'artifact' => :'artifact',
49
- :'relative_path' => :'relative_path',
50
- :'file' => :'file',
51
- :'repository' => :'repository',
52
40
  :'data_type' => :'data_type',
53
41
  :'checksum_type' => :'checksum_type',
54
42
  :'checksum' => :'checksum'
@@ -61,26 +49,29 @@ module PulpRpmClient
61
49
  :'pulp_href' => :'String',
62
50
  :'pulp_created' => :'DateTime',
63
51
  :'artifact' => :'String',
64
- :'relative_path' => :'String',
65
- :'file' => :'String',
66
- :'repository' => :'String',
67
52
  :'data_type' => :'String',
68
53
  :'checksum_type' => :'String',
69
54
  :'checksum' => :'String'
70
55
  }
71
56
  end
72
57
 
58
+ # List of attributes with nullable: true
59
+ def self.openapi_nullable
60
+ Set.new([
61
+ ])
62
+ end
63
+
73
64
  # Initializes the object
74
65
  # @param [Hash] attributes Model attributes in the form of hash
75
66
  def initialize(attributes = {})
76
67
  if (!attributes.is_a?(Hash))
77
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::RepoMetadataFile` initialize method"
68
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::RpmRepoMetadataFile` initialize method"
78
69
  end
79
70
 
80
71
  # check to see if the attribute exists and convert string to symbol for hash key
81
72
  attributes = attributes.each_with_object({}) { |(k, v), h|
82
73
  if (!self.class.attribute_map.key?(k.to_sym))
83
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::RepoMetadataFile`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
74
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::RpmRepoMetadataFile`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
84
75
  end
85
76
  h[k.to_sym] = v
86
77
  }
@@ -97,18 +88,6 @@ module PulpRpmClient
97
88
  self.artifact = attributes[:'artifact']
98
89
  end
99
90
 
100
- if attributes.key?(:'relative_path')
101
- self.relative_path = attributes[:'relative_path']
102
- end
103
-
104
- if attributes.key?(:'file')
105
- self.file = attributes[:'file']
106
- end
107
-
108
- if attributes.key?(:'repository')
109
- self.repository = attributes[:'repository']
110
- end
111
-
112
91
  if attributes.key?(:'data_type')
113
92
  self.data_type = attributes[:'data_type']
114
93
  end
@@ -126,14 +105,6 @@ module PulpRpmClient
126
105
  # @return Array for valid properties with the reasons
127
106
  def list_invalid_properties
128
107
  invalid_properties = Array.new
129
- if @relative_path.nil?
130
- invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
131
- end
132
-
133
- if @relative_path.to_s.length < 1
134
- invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
135
- end
136
-
137
108
  if @data_type.nil?
138
109
  invalid_properties.push('invalid value for "data_type", data_type cannot be nil.')
139
110
  end
@@ -164,8 +135,6 @@ module PulpRpmClient
164
135
  # Check to see if the all the properties in the model are valid
165
136
  # @return true if the model is valid
166
137
  def valid?
167
- return false if @relative_path.nil?
168
- return false if @relative_path.to_s.length < 1
169
138
  return false if @data_type.nil?
170
139
  return false if @data_type.to_s.length < 1
171
140
  return false if @checksum_type.nil?
@@ -175,20 +144,6 @@ module PulpRpmClient
175
144
  true
176
145
  end
177
146
 
178
- # Custom attribute writer method with validation
179
- # @param [Object] relative_path Value to be assigned
180
- def relative_path=(relative_path)
181
- if relative_path.nil?
182
- fail ArgumentError, 'relative_path cannot be nil'
183
- end
184
-
185
- if relative_path.to_s.length < 1
186
- fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
187
- end
188
-
189
- @relative_path = relative_path
190
- end
191
-
192
147
  # Custom attribute writer method with validation
193
148
  # @param [Object] data_type Value to be assigned
194
149
  def data_type=(data_type)
@@ -239,9 +194,6 @@ module PulpRpmClient
239
194
  pulp_href == o.pulp_href &&
240
195
  pulp_created == o.pulp_created &&
241
196
  artifact == o.artifact &&
242
- relative_path == o.relative_path &&
243
- file == o.file &&
244
- repository == o.repository &&
245
197
  data_type == o.data_type &&
246
198
  checksum_type == o.checksum_type &&
247
199
  checksum == o.checksum
@@ -256,7 +208,7 @@ module PulpRpmClient
256
208
  # Calculates hash code according to all attributes.
257
209
  # @return [Integer] Hash code
258
210
  def hash
259
- [pulp_href, pulp_created, artifact, relative_path, file, repository, data_type, checksum_type, checksum].hash
211
+ [pulp_href, pulp_created, artifact, data_type, checksum_type, checksum].hash
260
212
  end
261
213
 
262
214
  # Builds the object from hash
@@ -345,7 +297,11 @@ module PulpRpmClient
345
297
  hash = {}
346
298
  self.class.attribute_map.each_pair do |attr, param|
347
299
  value = self.send(attr)
348
- next if value.nil?
300
+ if value.nil?
301
+ is_nullable = self.class.openapi_nullable.include?(attr)
302
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
303
+ end
304
+
349
305
  hash[param] = _to_hash(value)
350
306
  end
351
307
  hash
@@ -6,14 +6,14 @@
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.1-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.2-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module PulpRpmClient
16
- class RpmDistribution
16
+ class RpmRpmDistribution
17
17
  attr_accessor :pulp_href
18
18
 
19
19
  # Timestamp of creation.
@@ -60,17 +60,25 @@ module PulpRpmClient
60
60
  }
61
61
  end
62
62
 
63
+ # List of attributes with nullable: true
64
+ def self.openapi_nullable
65
+ Set.new([
66
+ :'content_guard',
67
+ :'publication'
68
+ ])
69
+ end
70
+
63
71
  # Initializes the object
64
72
  # @param [Hash] attributes Model attributes in the form of hash
65
73
  def initialize(attributes = {})
66
74
  if (!attributes.is_a?(Hash))
67
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::RpmDistribution` initialize method"
75
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::RpmRpmDistribution` initialize method"
68
76
  end
69
77
 
70
78
  # check to see if the attribute exists and convert string to symbol for hash key
71
79
  attributes = attributes.each_with_object({}) { |(k, v), h|
72
80
  if (!self.class.attribute_map.key?(k.to_sym))
73
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::RpmDistribution`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
81
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::RpmRpmDistribution`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
74
82
  end
75
83
  h[k.to_sym] = v
76
84
  }
@@ -112,10 +120,6 @@ module PulpRpmClient
112
120
  invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
113
121
  end
114
122
 
115
- if @base_path.to_s.length > 255
116
- invalid_properties.push('invalid value for "base_path", the character length must be smaller than or equal to 255.')
117
- end
118
-
119
123
  if @base_path.to_s.length < 1
120
124
  invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
121
125
  end
@@ -128,10 +132,6 @@ module PulpRpmClient
128
132
  invalid_properties.push('invalid value for "name", name cannot be nil.')
129
133
  end
130
134
 
131
- if @name.to_s.length > 255
132
- invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 255.')
133
- end
134
-
135
135
  if @name.to_s.length < 1
136
136
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
137
137
  end
@@ -143,11 +143,9 @@ module PulpRpmClient
143
143
  # @return true if the model is valid
144
144
  def valid?
145
145
  return false if @base_path.nil?
146
- return false if @base_path.to_s.length > 255
147
146
  return false if @base_path.to_s.length < 1
148
147
  return false if !@base_url.nil? && @base_url.to_s.length < 1
149
148
  return false if @name.nil?
150
- return false if @name.to_s.length > 255
151
149
  return false if @name.to_s.length < 1
152
150
  true
153
151
  end
@@ -159,10 +157,6 @@ module PulpRpmClient
159
157
  fail ArgumentError, 'base_path cannot be nil'
160
158
  end
161
159
 
162
- if base_path.to_s.length > 255
163
- fail ArgumentError, 'invalid value for "base_path", the character length must be smaller than or equal to 255.'
164
- end
165
-
166
160
  if base_path.to_s.length < 1
167
161
  fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
168
162
  end
@@ -187,10 +181,6 @@ module PulpRpmClient
187
181
  fail ArgumentError, 'name cannot be nil'
188
182
  end
189
183
 
190
- if name.to_s.length > 255
191
- fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 255.'
192
- end
193
-
194
184
  if name.to_s.length < 1
195
185
  fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
196
186
  end
@@ -310,7 +300,11 @@ module PulpRpmClient
310
300
  hash = {}
311
301
  self.class.attribute_map.each_pair do |attr, param|
312
302
  value = self.send(attr)
313
- next if value.nil?
303
+ if value.nil?
304
+ is_nullable = self.class.openapi_nullable.include?(attr)
305
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
306
+ end
307
+
314
308
  hash[param] = _to_hash(value)
315
309
  end
316
310
  hash
@@ -6,14 +6,14 @@
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.1-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.2-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module PulpRpmClient
16
- class RpmPublication
16
+ class RpmRpmPublication
17
17
  attr_accessor :pulp_href
18
18
 
19
19
  # Timestamp of creation.
@@ -48,17 +48,24 @@ module PulpRpmClient
48
48
  }
49
49
  end
50
50
 
51
+ # List of attributes with nullable: true
52
+ def self.openapi_nullable
53
+ Set.new([
54
+ :'publisher',
55
+ ])
56
+ end
57
+
51
58
  # Initializes the object
52
59
  # @param [Hash] attributes Model attributes in the form of hash
53
60
  def initialize(attributes = {})
54
61
  if (!attributes.is_a?(Hash))
55
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::RpmPublication` initialize method"
62
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::RpmRpmPublication` initialize method"
56
63
  end
57
64
 
58
65
  # check to see if the attribute exists and convert string to symbol for hash key
59
66
  attributes = attributes.each_with_object({}) { |(k, v), h|
60
67
  if (!self.class.attribute_map.key?(k.to_sym))
61
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::RpmPublication`. 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 `PulpRpmClient::RpmRpmPublication`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
69
  end
63
70
  h[k.to_sym] = v
64
71
  }
@@ -207,7 +214,11 @@ module PulpRpmClient
207
214
  hash = {}
208
215
  self.class.attribute_map.each_pair do |attr, param|
209
216
  value = self.send(attr)
210
- 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
+
211
222
  hash[param] = _to_hash(value)
212
223
  end
213
224
  hash
@@ -6,14 +6,14 @@
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.1-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.2-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module PulpRpmClient
16
- class RpmRemote
16
+ class RpmRpmRemote
17
17
  attr_accessor :pulp_href
18
18
 
19
19
  # Timestamp of creation.
@@ -26,26 +26,20 @@ module PulpRpmClient
26
26
  attr_accessor :url
27
27
 
28
28
  # A string containing the PEM encoded CA certificate used to validate the server certificate presented by the remote server. All new line characters must be escaped. Returns SHA256 sum on GET.
29
- attr_accessor :ssl_ca_certificate
29
+ attr_accessor :ca_cert
30
30
 
31
31
  # A string containing the PEM encoded client certificate used for authentication. All new line characters must be escaped. Returns SHA256 sum on GET.
32
- attr_accessor :ssl_client_certificate
32
+ attr_accessor :client_cert
33
33
 
34
34
  # A PEM encoded private key used for authentication. Returns SHA256 sum on GET.
35
- attr_accessor :ssl_client_key
35
+ attr_accessor :client_key
36
36
 
37
- # If True, SSL peer validation must be performed.
38
- attr_accessor :ssl_validation
37
+ # If True, TLS peer validation must be performed.
38
+ attr_accessor :tls_validation
39
39
 
40
40
  # The proxy URL. Format: scheme://user:password@host:port
41
41
  attr_accessor :proxy_url
42
42
 
43
- # The username to be used for authentication when syncing.
44
- attr_accessor :username
45
-
46
- # The password to be used for authentication when syncing.
47
- attr_accessor :password
48
-
49
43
  # Timestamp of the most recent update of the remote.
50
44
  attr_accessor :pulp_last_updated
51
45
 
@@ -84,13 +78,11 @@ module PulpRpmClient
84
78
  :'pulp_created' => :'pulp_created',
85
79
  :'name' => :'name',
86
80
  :'url' => :'url',
87
- :'ssl_ca_certificate' => :'ssl_ca_certificate',
88
- :'ssl_client_certificate' => :'ssl_client_certificate',
89
- :'ssl_client_key' => :'ssl_client_key',
90
- :'ssl_validation' => :'ssl_validation',
81
+ :'ca_cert' => :'ca_cert',
82
+ :'client_cert' => :'client_cert',
83
+ :'client_key' => :'client_key',
84
+ :'tls_validation' => :'tls_validation',
91
85
  :'proxy_url' => :'proxy_url',
92
- :'username' => :'username',
93
- :'password' => :'password',
94
86
  :'pulp_last_updated' => :'pulp_last_updated',
95
87
  :'download_concurrency' => :'download_concurrency',
96
88
  :'policy' => :'policy'
@@ -104,30 +96,38 @@ module PulpRpmClient
104
96
  :'pulp_created' => :'DateTime',
105
97
  :'name' => :'String',
106
98
  :'url' => :'String',
107
- :'ssl_ca_certificate' => :'String',
108
- :'ssl_client_certificate' => :'String',
109
- :'ssl_client_key' => :'String',
110
- :'ssl_validation' => :'Boolean',
99
+ :'ca_cert' => :'String',
100
+ :'client_cert' => :'String',
101
+ :'client_key' => :'String',
102
+ :'tls_validation' => :'Boolean',
111
103
  :'proxy_url' => :'String',
112
- :'username' => :'String',
113
- :'password' => :'String',
114
104
  :'pulp_last_updated' => :'DateTime',
115
105
  :'download_concurrency' => :'Integer',
116
106
  :'policy' => :'String'
117
107
  }
118
108
  end
119
109
 
110
+ # List of attributes with nullable: true
111
+ def self.openapi_nullable
112
+ Set.new([
113
+ :'ca_cert',
114
+ :'client_cert',
115
+ :'client_key',
116
+ :'proxy_url',
117
+ ])
118
+ end
119
+
120
120
  # Initializes the object
121
121
  # @param [Hash] attributes Model attributes in the form of hash
122
122
  def initialize(attributes = {})
123
123
  if (!attributes.is_a?(Hash))
124
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::RpmRemote` initialize method"
124
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::RpmRpmRemote` initialize method"
125
125
  end
126
126
 
127
127
  # check to see if the attribute exists and convert string to symbol for hash key
128
128
  attributes = attributes.each_with_object({}) { |(k, v), h|
129
129
  if (!self.class.attribute_map.key?(k.to_sym))
130
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::RpmRemote`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
130
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::RpmRpmRemote`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
131
131
  end
132
132
  h[k.to_sym] = v
133
133
  }
@@ -148,34 +148,26 @@ module PulpRpmClient
148
148
  self.url = attributes[:'url']
149
149
  end
150
150
 
151
- if attributes.key?(:'ssl_ca_certificate')
152
- self.ssl_ca_certificate = attributes[:'ssl_ca_certificate']
151
+ if attributes.key?(:'ca_cert')
152
+ self.ca_cert = attributes[:'ca_cert']
153
153
  end
154
154
 
155
- if attributes.key?(:'ssl_client_certificate')
156
- self.ssl_client_certificate = attributes[:'ssl_client_certificate']
155
+ if attributes.key?(:'client_cert')
156
+ self.client_cert = attributes[:'client_cert']
157
157
  end
158
158
 
159
- if attributes.key?(:'ssl_client_key')
160
- self.ssl_client_key = attributes[:'ssl_client_key']
159
+ if attributes.key?(:'client_key')
160
+ self.client_key = attributes[:'client_key']
161
161
  end
162
162
 
163
- if attributes.key?(:'ssl_validation')
164
- self.ssl_validation = attributes[:'ssl_validation']
163
+ if attributes.key?(:'tls_validation')
164
+ self.tls_validation = attributes[:'tls_validation']
165
165
  end
166
166
 
167
167
  if attributes.key?(:'proxy_url')
168
168
  self.proxy_url = attributes[:'proxy_url']
169
169
  end
170
170
 
171
- if attributes.key?(:'username')
172
- self.username = attributes[:'username']
173
- end
174
-
175
- if attributes.key?(:'password')
176
- self.password = attributes[:'password']
177
- end
178
-
179
171
  if attributes.key?(:'pulp_last_updated')
180
172
  self.pulp_last_updated = attributes[:'pulp_last_updated']
181
173
  end
@@ -211,30 +203,22 @@ module PulpRpmClient
211
203
  invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
212
204
  end
213
205
 
214
- if !@ssl_ca_certificate.nil? && @ssl_ca_certificate.to_s.length < 1
215
- invalid_properties.push('invalid value for "ssl_ca_certificate", the character length must be great than or equal to 1.')
206
+ if !@ca_cert.nil? && @ca_cert.to_s.length < 1
207
+ invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
216
208
  end
217
209
 
218
- if !@ssl_client_certificate.nil? && @ssl_client_certificate.to_s.length < 1
219
- invalid_properties.push('invalid value for "ssl_client_certificate", the character length must be great than or equal to 1.')
210
+ if !@client_cert.nil? && @client_cert.to_s.length < 1
211
+ invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
220
212
  end
221
213
 
222
- if !@ssl_client_key.nil? && @ssl_client_key.to_s.length < 1
223
- invalid_properties.push('invalid value for "ssl_client_key", the character length must be great than or equal to 1.')
214
+ if !@client_key.nil? && @client_key.to_s.length < 1
215
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
224
216
  end
225
217
 
226
218
  if !@proxy_url.nil? && @proxy_url.to_s.length < 1
227
219
  invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
228
220
  end
229
221
 
230
- if !@username.nil? && @username.to_s.length < 1
231
- invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
232
- end
233
-
234
- if !@password.nil? && @password.to_s.length < 1
235
- invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
236
- end
237
-
238
222
  if !@download_concurrency.nil? && @download_concurrency < 1
239
223
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
240
224
  end
@@ -249,12 +233,10 @@ module PulpRpmClient
249
233
  return false if @name.to_s.length < 1
250
234
  return false if @url.nil?
251
235
  return false if @url.to_s.length < 1
252
- return false if !@ssl_ca_certificate.nil? && @ssl_ca_certificate.to_s.length < 1
253
- return false if !@ssl_client_certificate.nil? && @ssl_client_certificate.to_s.length < 1
254
- return false if !@ssl_client_key.nil? && @ssl_client_key.to_s.length < 1
236
+ return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
237
+ return false if !@client_cert.nil? && @client_cert.to_s.length < 1
238
+ return false if !@client_key.nil? && @client_key.to_s.length < 1
255
239
  return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
256
- return false if !@username.nil? && @username.to_s.length < 1
257
- return false if !@password.nil? && @password.to_s.length < 1
258
240
  return false if !@download_concurrency.nil? && @download_concurrency < 1
259
241
  policy_validator = EnumAttributeValidator.new('String', ["immediate", "on_demand", "streamed"])
260
242
  return false unless policy_validator.valid?(@policy)
@@ -290,33 +272,33 @@ module PulpRpmClient
290
272
  end
291
273
 
292
274
  # Custom attribute writer method with validation
293
- # @param [Object] ssl_ca_certificate Value to be assigned
294
- def ssl_ca_certificate=(ssl_ca_certificate)
295
- if !ssl_ca_certificate.nil? && ssl_ca_certificate.to_s.length < 1
296
- fail ArgumentError, 'invalid value for "ssl_ca_certificate", the character length must be great than or equal to 1.'
275
+ # @param [Object] ca_cert Value to be assigned
276
+ def ca_cert=(ca_cert)
277
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
278
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
297
279
  end
298
280
 
299
- @ssl_ca_certificate = ssl_ca_certificate
281
+ @ca_cert = ca_cert
300
282
  end
301
283
 
302
284
  # Custom attribute writer method with validation
303
- # @param [Object] ssl_client_certificate Value to be assigned
304
- def ssl_client_certificate=(ssl_client_certificate)
305
- if !ssl_client_certificate.nil? && ssl_client_certificate.to_s.length < 1
306
- fail ArgumentError, 'invalid value for "ssl_client_certificate", the character length must be great than or equal to 1.'
285
+ # @param [Object] client_cert Value to be assigned
286
+ def client_cert=(client_cert)
287
+ if !client_cert.nil? && client_cert.to_s.length < 1
288
+ fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
307
289
  end
308
290
 
309
- @ssl_client_certificate = ssl_client_certificate
291
+ @client_cert = client_cert
310
292
  end
311
293
 
312
294
  # Custom attribute writer method with validation
313
- # @param [Object] ssl_client_key Value to be assigned
314
- def ssl_client_key=(ssl_client_key)
315
- if !ssl_client_key.nil? && ssl_client_key.to_s.length < 1
316
- fail ArgumentError, 'invalid value for "ssl_client_key", the character length must be great than or equal to 1.'
295
+ # @param [Object] client_key Value to be assigned
296
+ def client_key=(client_key)
297
+ if !client_key.nil? && client_key.to_s.length < 1
298
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
317
299
  end
318
300
 
319
- @ssl_client_key = ssl_client_key
301
+ @client_key = client_key
320
302
  end
321
303
 
322
304
  # Custom attribute writer method with validation
@@ -329,26 +311,6 @@ module PulpRpmClient
329
311
  @proxy_url = proxy_url
330
312
  end
331
313
 
332
- # Custom attribute writer method with validation
333
- # @param [Object] username Value to be assigned
334
- def username=(username)
335
- if !username.nil? && username.to_s.length < 1
336
- fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
337
- end
338
-
339
- @username = username
340
- end
341
-
342
- # Custom attribute writer method with validation
343
- # @param [Object] password Value to be assigned
344
- def password=(password)
345
- if !password.nil? && password.to_s.length < 1
346
- fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
347
- end
348
-
349
- @password = password
350
- end
351
-
352
314
  # Custom attribute writer method with validation
353
315
  # @param [Object] download_concurrency Value to be assigned
354
316
  def download_concurrency=(download_concurrency)
@@ -378,13 +340,11 @@ module PulpRpmClient
378
340
  pulp_created == o.pulp_created &&
379
341
  name == o.name &&
380
342
  url == o.url &&
381
- ssl_ca_certificate == o.ssl_ca_certificate &&
382
- ssl_client_certificate == o.ssl_client_certificate &&
383
- ssl_client_key == o.ssl_client_key &&
384
- ssl_validation == o.ssl_validation &&
343
+ ca_cert == o.ca_cert &&
344
+ client_cert == o.client_cert &&
345
+ client_key == o.client_key &&
346
+ tls_validation == o.tls_validation &&
385
347
  proxy_url == o.proxy_url &&
386
- username == o.username &&
387
- password == o.password &&
388
348
  pulp_last_updated == o.pulp_last_updated &&
389
349
  download_concurrency == o.download_concurrency &&
390
350
  policy == o.policy
@@ -399,7 +359,7 @@ module PulpRpmClient
399
359
  # Calculates hash code according to all attributes.
400
360
  # @return [Integer] Hash code
401
361
  def hash
402
- [pulp_href, pulp_created, name, url, ssl_ca_certificate, ssl_client_certificate, ssl_client_key, ssl_validation, proxy_url, username, password, pulp_last_updated, download_concurrency, policy].hash
362
+ [pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, pulp_last_updated, download_concurrency, policy].hash
403
363
  end
404
364
 
405
365
  # Builds the object from hash
@@ -488,7 +448,11 @@ module PulpRpmClient
488
448
  hash = {}
489
449
  self.class.attribute_map.each_pair do |attr, param|
490
450
  value = self.send(attr)
491
- next if value.nil?
451
+ if value.nil?
452
+ is_nullable = self.class.openapi_nullable.include?(attr)
453
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
454
+ end
455
+
492
456
  hash[param] = _to_hash(value)
493
457
  end
494
458
  hash