pulp_rpm_client 3.5.1 → 3.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +73 -55
- data/docs/{Addon.md → AddonResponse.md} +2 -2
- data/docs/{Artifact.md → ArtifactResponse.md} +3 -3
- data/docs/{Checksum.md → ChecksumResponse.md} +2 -2
- data/docs/ContentAdvisoriesApi.md +44 -44
- data/docs/ContentDistributionTreesApi.md +25 -25
- data/docs/ContentModulemdDefaultsApi.md +32 -32
- data/docs/ContentModulemdsApi.md +34 -34
- data/docs/ContentPackagecategoriesApi.md +25 -25
- data/docs/ContentPackageenvironmentsApi.md +25 -25
- data/docs/ContentPackagegroupsApi.md +25 -25
- data/docs/ContentPackagelangpacksApi.md +25 -25
- data/docs/ContentPackagesApi.md +64 -64
- data/docs/ContentRepoMetadataFilesApi.md +25 -25
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +21 -0
- data/docs/DistributionsRpmApi.md +108 -60
- data/docs/{Image.md → ImageResponse.md} +3 -3
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse20010.md +3 -3
- data/docs/InlineResponse20011.md +3 -3
- data/docs/InlineResponse20012.md +3 -3
- data/docs/InlineResponse20013.md +3 -3
- data/docs/InlineResponse20014.md +3 -3
- data/docs/InlineResponse2002.md +3 -3
- data/docs/InlineResponse2003.md +3 -3
- data/docs/InlineResponse2004.md +3 -3
- data/docs/InlineResponse2005.md +3 -3
- data/docs/InlineResponse2006.md +3 -3
- data/docs/InlineResponse2007.md +3 -3
- data/docs/InlineResponse2008.md +3 -3
- data/docs/InlineResponse2009.md +3 -3
- data/docs/MetadataChecksumTypeEnum.md +16 -0
- data/docs/PackageChecksumTypeEnum.md +16 -0
- data/docs/PatchedrpmRpmDistribution.md +23 -0
- data/docs/PatchedrpmRpmRemote.md +39 -0
- data/docs/PatchedrpmRpmRepository.md +25 -0
- data/docs/PolicyEnum.md +16 -0
- data/docs/PublicationsRpmApi.md +40 -40
- data/docs/RemotesRpmApi.md +125 -65
- data/docs/RepositoriesRpmApi.md +97 -73
- data/docs/RepositoriesRpmVersionsApi.md +94 -62
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/docs/RepositoryVersion.md +1 -9
- data/docs/RepositoryVersionResponse.md +25 -0
- data/docs/RpmCopyApi.md +10 -10
- data/docs/{RpmDistributionTree.md → RpmDistributionTreeResponse.md} +6 -6
- data/docs/RpmModulemd.md +8 -8
- data/docs/RpmModulemdDefaults.md +8 -8
- data/docs/RpmModulemdDefaultsResponse.md +29 -0
- data/docs/RpmModulemdResponse.md +39 -0
- data/docs/RpmPackage.md +7 -79
- data/docs/{RpmPackageCategory.md → RpmPackageCategoryResponse.md} +2 -2
- data/docs/{RpmPackageEnvironment.md → RpmPackageEnvironmentResponse.md} +2 -2
- data/docs/{RpmPackageGroup.md → RpmPackageGroupResponse.md} +2 -2
- data/docs/{RpmPackageLangpacks.md → RpmPackageLangpacksResponse.md} +2 -2
- data/docs/RpmPackageResponse.md +95 -0
- data/docs/{RpmRepoMetadataFile.md → RpmRepoMetadataFileResponse.md} +2 -2
- data/docs/RpmRepositorySyncURL.md +1 -1
- data/docs/RpmRpmDistribution.md +1 -7
- data/docs/RpmRpmDistributionResponse.md +29 -0
- data/docs/RpmRpmPublication.md +3 -7
- data/docs/RpmRpmPublicationResponse.md +27 -0
- data/docs/RpmRpmRemote.md +4 -10
- data/docs/RpmRpmRemoteResponse.md +45 -0
- data/docs/RpmRpmRepository.md +3 -9
- data/docs/RpmRpmRepositoryResponse.md +33 -0
- data/docs/RpmUpdateCollection.md +1 -3
- data/docs/RpmUpdateCollectionResponse.md +23 -0
- data/docs/RpmUpdateRecord.md +4 -40
- data/docs/RpmUpdateRecordResponse.md +55 -0
- data/docs/{Variant.md → VariantResponse.md} +2 -2
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +60 -60
- data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +36 -36
- data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +42 -54
- data/lib/pulp_rpm_client/api/content_modulemds_api.rb +44 -76
- data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +36 -36
- data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +36 -36
- data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +36 -36
- data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +36 -36
- data/lib/pulp_rpm_client/api/content_packages_api.rb +92 -92
- data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +36 -36
- data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +153 -90
- data/lib/pulp_rpm_client/api/publications_rpm_api.rb +59 -59
- data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +181 -100
- data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +145 -118
- data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +137 -92
- data/lib/pulp_rpm_client/api/rpm_copy_api.rb +15 -15
- data/lib/pulp_rpm_client/api_client.rb +2 -2
- data/lib/pulp_rpm_client/api_error.rb +2 -2
- data/lib/pulp_rpm_client/configuration.rb +3 -3
- data/lib/pulp_rpm_client/models/{addon.rb → addon_response.rb} +6 -100
- data/lib/pulp_rpm_client/models/{artifact.rb → artifact_response.rb} +9 -93
- data/lib/pulp_rpm_client/models/async_operation_response.rb +3 -2
- data/lib/pulp_rpm_client/models/{checksum.rb → checksum_response.rb} +6 -43
- data/lib/pulp_rpm_client/models/content_summary.rb +9 -15
- data/lib/pulp_rpm_client/models/content_summary_response.rb +240 -0
- data/lib/pulp_rpm_client/models/copy.rb +3 -2
- data/lib/pulp_rpm_client/models/{image.rb → image_response.rb} +7 -63
- data/lib/pulp_rpm_client/models/inline_response200.rb +3 -13
- data/lib/pulp_rpm_client/models/inline_response2001.rb +3 -13
- data/lib/pulp_rpm_client/models/inline_response20010.rb +3 -13
- data/lib/pulp_rpm_client/models/inline_response20011.rb +3 -13
- data/lib/pulp_rpm_client/models/inline_response20012.rb +3 -13
- data/lib/pulp_rpm_client/models/inline_response20013.rb +3 -13
- data/lib/pulp_rpm_client/models/inline_response20014.rb +3 -13
- data/lib/pulp_rpm_client/models/inline_response2002.rb +3 -13
- data/lib/pulp_rpm_client/models/inline_response2003.rb +3 -13
- data/lib/pulp_rpm_client/models/inline_response2004.rb +3 -13
- data/lib/pulp_rpm_client/models/inline_response2005.rb +3 -13
- data/lib/pulp_rpm_client/models/inline_response2006.rb +3 -13
- data/lib/pulp_rpm_client/models/inline_response2007.rb +3 -13
- data/lib/pulp_rpm_client/models/inline_response2008.rb +3 -13
- data/lib/pulp_rpm_client/models/inline_response2009.rb +3 -13
- data/lib/pulp_rpm_client/models/metadata_checksum_type_enum.rb +41 -0
- data/lib/pulp_rpm_client/models/package_checksum_type_enum.rb +41 -0
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_distribution.rb +240 -0
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_remote.rb +340 -0
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +265 -0
- data/lib/pulp_rpm_client/models/policy_enum.rb +37 -0
- data/lib/pulp_rpm_client/models/repository_add_remove_content.rb +5 -4
- data/lib/pulp_rpm_client/models/repository_version.rb +7 -43
- data/lib/pulp_rpm_client/models/repository_version_response.rb +246 -0
- data/lib/pulp_rpm_client/models/{rpm_distribution_tree.rb → rpm_distribution_tree_response.rb} +17 -234
- data/lib/pulp_rpm_client/models/rpm_modulemd.rb +42 -153
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +40 -86
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults_response.rb +282 -0
- data/lib/pulp_rpm_client/models/rpm_modulemd_response.rb +346 -0
- data/lib/pulp_rpm_client/models/rpm_package.rb +28 -501
- data/lib/pulp_rpm_client/models/{rpm_package_category.rb → rpm_package_category_response.rb} +10 -63
- data/lib/pulp_rpm_client/models/{rpm_package_environment.rb → rpm_package_environment_response.rb} +11 -68
- data/lib/pulp_rpm_client/models/{rpm_package_group.rb → rpm_package_group_response.rb} +10 -63
- data/lib/pulp_rpm_client/models/{rpm_package_langpacks.rb → rpm_package_langpacks_response.rb} +8 -34
- data/lib/pulp_rpm_client/models/rpm_package_response.rb +597 -0
- data/lib/pulp_rpm_client/models/{rpm_repo_metadata_file.rb → rpm_repo_metadata_file_response.rb} +6 -96
- data/lib/pulp_rpm_client/models/rpm_repository_sync_url.rb +4 -30
- data/lib/pulp_rpm_client/models/rpm_rpm_distribution.rb +4 -85
- data/lib/pulp_rpm_client/models/rpm_rpm_distribution_response.rb +279 -0
- data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +6 -74
- data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +256 -0
- data/lib/pulp_rpm_client/models/rpm_rpm_remote.rb +7 -214
- data/lib/pulp_rpm_client/models/rpm_rpm_remote_response.rb +379 -0
- data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +14 -74
- data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +307 -0
- data/lib/pulp_rpm_client/models/rpm_update_collection.rb +10 -34
- data/lib/pulp_rpm_client/models/rpm_update_collection_response.rb +243 -0
- data/lib/pulp_rpm_client/models/rpm_update_record.rb +18 -245
- data/lib/pulp_rpm_client/models/rpm_update_record_response.rb +401 -0
- data/lib/pulp_rpm_client/models/{variant.rb → variant_response.rb} +6 -195
- data/lib/pulp_rpm_client/version.rb +3 -3
- data/lib/pulp_rpm_client.rb +30 -13
- data/pulp_rpm_client.gemspec +4 -4
- data/spec/api/content_advisories_api_spec.rb +21 -21
- data/spec/api/content_distribution_trees_api_spec.rb +9 -9
- data/spec/api/content_modulemd_defaults_api_spec.rb +13 -13
- data/spec/api/content_modulemds_api_spec.rb +13 -13
- data/spec/api/content_packagecategories_api_spec.rb +9 -9
- data/spec/api/content_packageenvironments_api_spec.rb +9 -9
- data/spec/api/content_packagegroups_api_spec.rb +9 -9
- data/spec/api/content_packagelangpacks_api_spec.rb +9 -9
- data/spec/api/content_packages_api_spec.rb +31 -31
- data/spec/api/content_repo_metadata_files_api_spec.rb +9 -9
- data/spec/api/distributions_rpm_api_spec.rb +39 -18
- data/spec/api/publications_rpm_api_spec.rb +14 -14
- data/spec/api/remotes_rpm_api_spec.rb +48 -21
- data/spec/api/repositories_rpm_api_spec.rb +28 -19
- data/spec/api/repositories_rpm_versions_api_spec.rb +38 -23
- data/spec/api/rpm_copy_api_spec.rb +5 -5
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/{addon_spec.rb → addon_response_spec.rb} +8 -8
- data/spec/models/{artifact_spec.rb → artifact_response_spec.rb} +8 -8
- data/spec/models/async_operation_response_spec.rb +2 -2
- data/spec/models/{checksum_spec.rb → checksum_response_spec.rb} +8 -8
- data/spec/models/content_summary_response_spec.rb +53 -0
- data/spec/models/content_summary_spec.rb +2 -2
- data/spec/models/copy_spec.rb +2 -2
- data/spec/models/{image_spec.rb → image_response_spec.rb} +8 -8
- data/spec/models/inline_response20010_spec.rb +2 -2
- data/spec/models/inline_response20011_spec.rb +2 -2
- data/spec/models/inline_response20012_spec.rb +2 -2
- data/spec/models/inline_response20013_spec.rb +2 -2
- data/spec/models/inline_response20014_spec.rb +2 -2
- data/spec/models/inline_response2001_spec.rb +2 -2
- data/spec/models/inline_response2002_spec.rb +2 -2
- data/spec/models/inline_response2003_spec.rb +2 -2
- data/spec/models/inline_response2004_spec.rb +2 -2
- data/spec/models/inline_response2005_spec.rb +2 -2
- data/spec/models/inline_response2006_spec.rb +2 -2
- data/spec/models/inline_response2007_spec.rb +2 -2
- data/spec/models/inline_response2008_spec.rb +2 -2
- data/spec/models/inline_response2009_spec.rb +2 -2
- data/spec/models/inline_response200_spec.rb +2 -2
- data/spec/models/metadata_checksum_type_enum_spec.rb +35 -0
- data/spec/models/package_checksum_type_enum_spec.rb +35 -0
- data/spec/models/patchedrpm_rpm_distribution_spec.rb +59 -0
- data/spec/models/patchedrpm_rpm_remote_spec.rb +107 -0
- data/spec/models/patchedrpm_rpm_repository_spec.rb +65 -0
- data/spec/models/policy_enum_spec.rb +35 -0
- data/spec/models/repository_add_remove_content_spec.rb +2 -2
- data/spec/models/repository_version_response_spec.rb +65 -0
- data/spec/models/repository_version_spec.rb +2 -26
- data/spec/models/{rpm_distribution_tree_spec.rb → rpm_distribution_tree_response_spec.rb} +8 -8
- data/spec/models/rpm_modulemd_defaults_response_spec.rb +77 -0
- data/spec/models/rpm_modulemd_defaults_spec.rb +9 -9
- data/spec/models/rpm_modulemd_response_spec.rb +107 -0
- data/spec/models/rpm_modulemd_spec.rb +11 -11
- data/spec/models/{rpm_package_category_spec.rb → rpm_package_category_response_spec.rb} +8 -8
- data/spec/models/{rpm_package_environment_spec.rb → rpm_package_environment_response_spec.rb} +8 -8
- data/spec/models/{rpm_package_group_spec.rb → rpm_package_group_response_spec.rb} +8 -8
- data/spec/models/{rpm_package_langpacks_spec.rb → rpm_package_langpacks_response_spec.rb} +8 -8
- data/spec/models/rpm_package_response_spec.rb +275 -0
- data/spec/models/rpm_package_spec.rb +5 -221
- data/spec/models/{rpm_repo_metadata_file_spec.rb → rpm_repo_metadata_file_response_spec.rb} +8 -8
- data/spec/models/rpm_repository_sync_url_spec.rb +2 -6
- data/spec/models/rpm_rpm_distribution_response_spec.rb +77 -0
- data/spec/models/rpm_rpm_distribution_spec.rb +2 -20
- data/spec/models/rpm_rpm_publication_response_spec.rb +71 -0
- data/spec/models/rpm_rpm_publication_spec.rb +2 -22
- data/spec/models/rpm_rpm_remote_response_spec.rb +125 -0
- data/spec/models/rpm_rpm_remote_spec.rb +2 -24
- data/spec/models/rpm_rpm_repository_response_spec.rb +89 -0
- data/spec/models/rpm_rpm_repository_spec.rb +5 -23
- data/spec/models/rpm_update_collection_response_spec.rb +59 -0
- data/spec/models/rpm_update_collection_spec.rb +2 -8
- data/spec/models/rpm_update_record_response_spec.rb +155 -0
- data/spec/models/rpm_update_record_spec.rb +4 -112
- data/spec/models/{variant_spec.rb → variant_response_spec.rb} +8 -8
- data/spec/spec_helper.rb +2 -2
- metadata +116 -48
data/lib/pulp_rpm_client/models/{rpm_repo_metadata_file.rb → rpm_repo_metadata_file_response.rb}
RENAMED
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -13,7 +13,8 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpRpmClient
|
16
|
-
|
16
|
+
# RepoMetadataFile serializer.
|
17
|
+
class RpmRepoMetadataFileResponse
|
17
18
|
attr_accessor :pulp_href
|
18
19
|
|
19
20
|
# Timestamp of creation.
|
@@ -75,13 +76,13 @@ module PulpRpmClient
|
|
75
76
|
# @param [Hash] attributes Model attributes in the form of hash
|
76
77
|
def initialize(attributes = {})
|
77
78
|
if (!attributes.is_a?(Hash))
|
78
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::
|
79
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::RpmRepoMetadataFileResponse` initialize method"
|
79
80
|
end
|
80
81
|
|
81
82
|
# check to see if the attribute exists and convert string to symbol for hash key
|
82
83
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
83
84
|
if (!self.class.attribute_map.key?(k.to_sym))
|
84
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::
|
85
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::RpmRepoMetadataFileResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
85
86
|
end
|
86
87
|
h[k.to_sym] = v
|
87
88
|
}
|
@@ -127,38 +128,18 @@ module PulpRpmClient
|
|
127
128
|
invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
|
128
129
|
end
|
129
130
|
|
130
|
-
if @relative_path.to_s.length < 1
|
131
|
-
invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
|
132
|
-
end
|
133
|
-
|
134
131
|
if @data_type.nil?
|
135
132
|
invalid_properties.push('invalid value for "data_type", data_type cannot be nil.')
|
136
133
|
end
|
137
134
|
|
138
|
-
if @data_type.to_s.length < 1
|
139
|
-
invalid_properties.push('invalid value for "data_type", the character length must be great than or equal to 1.')
|
140
|
-
end
|
141
|
-
|
142
135
|
if @checksum_type.nil?
|
143
136
|
invalid_properties.push('invalid value for "checksum_type", checksum_type cannot be nil.')
|
144
137
|
end
|
145
138
|
|
146
|
-
if @checksum_type.to_s.length < 1
|
147
|
-
invalid_properties.push('invalid value for "checksum_type", the character length must be great than or equal to 1.')
|
148
|
-
end
|
149
|
-
|
150
139
|
if @checksum.nil?
|
151
140
|
invalid_properties.push('invalid value for "checksum", checksum cannot be nil.')
|
152
141
|
end
|
153
142
|
|
154
|
-
if @checksum.to_s.length < 1
|
155
|
-
invalid_properties.push('invalid value for "checksum", the character length must be great than or equal to 1.')
|
156
|
-
end
|
157
|
-
|
158
|
-
if !@sha256.nil? && @sha256.to_s.length < 1
|
159
|
-
invalid_properties.push('invalid value for "sha256", the character length must be great than or equal to 1.')
|
160
|
-
end
|
161
|
-
|
162
143
|
invalid_properties
|
163
144
|
end
|
164
145
|
|
@@ -166,83 +147,12 @@ module PulpRpmClient
|
|
166
147
|
# @return true if the model is valid
|
167
148
|
def valid?
|
168
149
|
return false if @relative_path.nil?
|
169
|
-
return false if @relative_path.to_s.length < 1
|
170
150
|
return false if @data_type.nil?
|
171
|
-
return false if @data_type.to_s.length < 1
|
172
151
|
return false if @checksum_type.nil?
|
173
|
-
return false if @checksum_type.to_s.length < 1
|
174
152
|
return false if @checksum.nil?
|
175
|
-
return false if @checksum.to_s.length < 1
|
176
|
-
return false if !@sha256.nil? && @sha256.to_s.length < 1
|
177
153
|
true
|
178
154
|
end
|
179
155
|
|
180
|
-
# Custom attribute writer method with validation
|
181
|
-
# @param [Object] relative_path Value to be assigned
|
182
|
-
def relative_path=(relative_path)
|
183
|
-
if relative_path.nil?
|
184
|
-
fail ArgumentError, 'relative_path cannot be nil'
|
185
|
-
end
|
186
|
-
|
187
|
-
if relative_path.to_s.length < 1
|
188
|
-
fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
|
189
|
-
end
|
190
|
-
|
191
|
-
@relative_path = relative_path
|
192
|
-
end
|
193
|
-
|
194
|
-
# Custom attribute writer method with validation
|
195
|
-
# @param [Object] data_type Value to be assigned
|
196
|
-
def data_type=(data_type)
|
197
|
-
if data_type.nil?
|
198
|
-
fail ArgumentError, 'data_type cannot be nil'
|
199
|
-
end
|
200
|
-
|
201
|
-
if data_type.to_s.length < 1
|
202
|
-
fail ArgumentError, 'invalid value for "data_type", the character length must be great than or equal to 1.'
|
203
|
-
end
|
204
|
-
|
205
|
-
@data_type = data_type
|
206
|
-
end
|
207
|
-
|
208
|
-
# Custom attribute writer method with validation
|
209
|
-
# @param [Object] checksum_type Value to be assigned
|
210
|
-
def checksum_type=(checksum_type)
|
211
|
-
if checksum_type.nil?
|
212
|
-
fail ArgumentError, 'checksum_type cannot be nil'
|
213
|
-
end
|
214
|
-
|
215
|
-
if checksum_type.to_s.length < 1
|
216
|
-
fail ArgumentError, 'invalid value for "checksum_type", the character length must be great than or equal to 1.'
|
217
|
-
end
|
218
|
-
|
219
|
-
@checksum_type = checksum_type
|
220
|
-
end
|
221
|
-
|
222
|
-
# Custom attribute writer method with validation
|
223
|
-
# @param [Object] checksum Value to be assigned
|
224
|
-
def checksum=(checksum)
|
225
|
-
if checksum.nil?
|
226
|
-
fail ArgumentError, 'checksum cannot be nil'
|
227
|
-
end
|
228
|
-
|
229
|
-
if checksum.to_s.length < 1
|
230
|
-
fail ArgumentError, 'invalid value for "checksum", the character length must be great than or equal to 1.'
|
231
|
-
end
|
232
|
-
|
233
|
-
@checksum = checksum
|
234
|
-
end
|
235
|
-
|
236
|
-
# Custom attribute writer method with validation
|
237
|
-
# @param [Object] sha256 Value to be assigned
|
238
|
-
def sha256=(sha256)
|
239
|
-
if !sha256.nil? && sha256.to_s.length < 1
|
240
|
-
fail ArgumentError, 'invalid value for "sha256", the character length must be great than or equal to 1.'
|
241
|
-
end
|
242
|
-
|
243
|
-
@sha256 = sha256
|
244
|
-
end
|
245
|
-
|
246
156
|
# Checks equality by comparing each attribute.
|
247
157
|
# @param [Object] Object to be compared
|
248
158
|
def ==(o)
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -13,8 +13,9 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpRpmClient
|
16
|
+
# Serializer for RPM Sync.
|
16
17
|
class RpmRepositorySyncURL
|
17
|
-
# A
|
18
|
+
# A remote to sync from. This will override a remote set on repository.
|
18
19
|
attr_accessor :remote
|
19
20
|
|
20
21
|
# If ``True``, synchronization will remove all content that is not present in the remote repository. If ``False``, sync will be additive only.
|
@@ -26,28 +27,6 @@ module PulpRpmClient
|
|
26
27
|
# Whether or not to optimize sync.
|
27
28
|
attr_accessor :optimize
|
28
29
|
|
29
|
-
class EnumAttributeValidator
|
30
|
-
attr_reader :datatype
|
31
|
-
attr_reader :allowable_values
|
32
|
-
|
33
|
-
def initialize(datatype, allowable_values)
|
34
|
-
@allowable_values = allowable_values.map do |value|
|
35
|
-
case datatype.to_s
|
36
|
-
when /Integer/i
|
37
|
-
value.to_i
|
38
|
-
when /Float/i
|
39
|
-
value.to_f
|
40
|
-
else
|
41
|
-
value
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
def valid?(value)
|
47
|
-
!value || allowable_values.include?(value)
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
52
31
|
def self.attribute_map
|
53
32
|
{
|
@@ -116,17 +95,12 @@ module PulpRpmClient
|
|
116
95
|
# @return Array for valid properties with the reasons
|
117
96
|
def list_invalid_properties
|
118
97
|
invalid_properties = Array.new
|
119
|
-
if @remote.nil?
|
120
|
-
invalid_properties.push('invalid value for "remote", remote cannot be nil.')
|
121
|
-
end
|
122
|
-
|
123
98
|
invalid_properties
|
124
99
|
end
|
125
100
|
|
126
101
|
# Check to see if the all the properties in the model are valid
|
127
102
|
# @return true if the model is valid
|
128
103
|
def valid?
|
129
|
-
return false if @remote.nil?
|
130
104
|
true
|
131
105
|
end
|
132
106
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -13,18 +13,11 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpRpmClient
|
16
|
+
# Serializer for RPM Distributions.
|
16
17
|
class RpmRpmDistribution
|
17
|
-
attr_accessor :pulp_href
|
18
|
-
|
19
|
-
# Timestamp of creation.
|
20
|
-
attr_accessor :pulp_created
|
21
|
-
|
22
18
|
# 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
19
|
attr_accessor :base_path
|
24
20
|
|
25
|
-
# The URL for accessing the publication as defined by this distribution.
|
26
|
-
attr_accessor :base_url
|
27
|
-
|
28
21
|
# An optional content-guard.
|
29
22
|
attr_accessor :content_guard
|
30
23
|
|
@@ -37,10 +30,7 @@ module PulpRpmClient
|
|
37
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
38
31
|
def self.attribute_map
|
39
32
|
{
|
40
|
-
:'pulp_href' => :'pulp_href',
|
41
|
-
:'pulp_created' => :'pulp_created',
|
42
33
|
:'base_path' => :'base_path',
|
43
|
-
:'base_url' => :'base_url',
|
44
34
|
:'content_guard' => :'content_guard',
|
45
35
|
:'name' => :'name',
|
46
36
|
:'publication' => :'publication'
|
@@ -50,10 +40,7 @@ module PulpRpmClient
|
|
50
40
|
# Attribute type mapping.
|
51
41
|
def self.openapi_types
|
52
42
|
{
|
53
|
-
:'pulp_href' => :'String',
|
54
|
-
:'pulp_created' => :'DateTime',
|
55
43
|
:'base_path' => :'String',
|
56
|
-
:'base_url' => :'String',
|
57
44
|
:'content_guard' => :'String',
|
58
45
|
:'name' => :'String',
|
59
46
|
:'publication' => :'String'
|
@@ -83,22 +70,10 @@ module PulpRpmClient
|
|
83
70
|
h[k.to_sym] = v
|
84
71
|
}
|
85
72
|
|
86
|
-
if attributes.key?(:'pulp_href')
|
87
|
-
self.pulp_href = attributes[:'pulp_href']
|
88
|
-
end
|
89
|
-
|
90
|
-
if attributes.key?(:'pulp_created')
|
91
|
-
self.pulp_created = attributes[:'pulp_created']
|
92
|
-
end
|
93
|
-
|
94
73
|
if attributes.key?(:'base_path')
|
95
74
|
self.base_path = attributes[:'base_path']
|
96
75
|
end
|
97
76
|
|
98
|
-
if attributes.key?(:'base_url')
|
99
|
-
self.base_url = attributes[:'base_url']
|
100
|
-
end
|
101
|
-
|
102
77
|
if attributes.key?(:'content_guard')
|
103
78
|
self.content_guard = attributes[:'content_guard']
|
104
79
|
end
|
@@ -120,22 +95,10 @@ module PulpRpmClient
|
|
120
95
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
121
96
|
end
|
122
97
|
|
123
|
-
if @base_path.to_s.length < 1
|
124
|
-
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
125
|
-
end
|
126
|
-
|
127
|
-
if !@base_url.nil? && @base_url.to_s.length < 1
|
128
|
-
invalid_properties.push('invalid value for "base_url", the character length must be great than or equal to 1.')
|
129
|
-
end
|
130
|
-
|
131
98
|
if @name.nil?
|
132
99
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
133
100
|
end
|
134
101
|
|
135
|
-
if @name.to_s.length < 1
|
136
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
137
|
-
end
|
138
|
-
|
139
102
|
invalid_properties
|
140
103
|
end
|
141
104
|
|
@@ -143,60 +106,16 @@ module PulpRpmClient
|
|
143
106
|
# @return true if the model is valid
|
144
107
|
def valid?
|
145
108
|
return false if @base_path.nil?
|
146
|
-
return false if @base_path.to_s.length < 1
|
147
|
-
return false if !@base_url.nil? && @base_url.to_s.length < 1
|
148
109
|
return false if @name.nil?
|
149
|
-
return false if @name.to_s.length < 1
|
150
110
|
true
|
151
111
|
end
|
152
112
|
|
153
|
-
# Custom attribute writer method with validation
|
154
|
-
# @param [Object] base_path Value to be assigned
|
155
|
-
def base_path=(base_path)
|
156
|
-
if base_path.nil?
|
157
|
-
fail ArgumentError, 'base_path cannot be nil'
|
158
|
-
end
|
159
|
-
|
160
|
-
if base_path.to_s.length < 1
|
161
|
-
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
162
|
-
end
|
163
|
-
|
164
|
-
@base_path = base_path
|
165
|
-
end
|
166
|
-
|
167
|
-
# Custom attribute writer method with validation
|
168
|
-
# @param [Object] base_url Value to be assigned
|
169
|
-
def base_url=(base_url)
|
170
|
-
if !base_url.nil? && base_url.to_s.length < 1
|
171
|
-
fail ArgumentError, 'invalid value for "base_url", the character length must be great than or equal to 1.'
|
172
|
-
end
|
173
|
-
|
174
|
-
@base_url = base_url
|
175
|
-
end
|
176
|
-
|
177
|
-
# Custom attribute writer method with validation
|
178
|
-
# @param [Object] name Value to be assigned
|
179
|
-
def name=(name)
|
180
|
-
if name.nil?
|
181
|
-
fail ArgumentError, 'name cannot be nil'
|
182
|
-
end
|
183
|
-
|
184
|
-
if name.to_s.length < 1
|
185
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
186
|
-
end
|
187
|
-
|
188
|
-
@name = name
|
189
|
-
end
|
190
|
-
|
191
113
|
# Checks equality by comparing each attribute.
|
192
114
|
# @param [Object] Object to be compared
|
193
115
|
def ==(o)
|
194
116
|
return true if self.equal?(o)
|
195
117
|
self.class == o.class &&
|
196
|
-
pulp_href == o.pulp_href &&
|
197
|
-
pulp_created == o.pulp_created &&
|
198
118
|
base_path == o.base_path &&
|
199
|
-
base_url == o.base_url &&
|
200
119
|
content_guard == o.content_guard &&
|
201
120
|
name == o.name &&
|
202
121
|
publication == o.publication
|
@@ -211,7 +130,7 @@ module PulpRpmClient
|
|
211
130
|
# Calculates hash code according to all attributes.
|
212
131
|
# @return [Integer] Hash code
|
213
132
|
def hash
|
214
|
-
[
|
133
|
+
[base_path, content_guard, name, publication].hash
|
215
134
|
end
|
216
135
|
|
217
136
|
# Builds the object from hash
|
@@ -0,0 +1,279 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module PulpRpmClient
|
16
|
+
# Serializer for RPM Distributions.
|
17
|
+
class RpmRpmDistributionResponse
|
18
|
+
attr_accessor :pulp_href
|
19
|
+
|
20
|
+
# Timestamp of creation.
|
21
|
+
attr_accessor :pulp_created
|
22
|
+
|
23
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
24
|
+
attr_accessor :base_path
|
25
|
+
|
26
|
+
# The URL for accessing the publication as defined by this distribution.
|
27
|
+
attr_accessor :base_url
|
28
|
+
|
29
|
+
# An optional content-guard.
|
30
|
+
attr_accessor :content_guard
|
31
|
+
|
32
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
33
|
+
attr_accessor :name
|
34
|
+
|
35
|
+
# Publication to be served
|
36
|
+
attr_accessor :publication
|
37
|
+
|
38
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
39
|
+
def self.attribute_map
|
40
|
+
{
|
41
|
+
:'pulp_href' => :'pulp_href',
|
42
|
+
:'pulp_created' => :'pulp_created',
|
43
|
+
:'base_path' => :'base_path',
|
44
|
+
:'base_url' => :'base_url',
|
45
|
+
:'content_guard' => :'content_guard',
|
46
|
+
:'name' => :'name',
|
47
|
+
:'publication' => :'publication'
|
48
|
+
}
|
49
|
+
end
|
50
|
+
|
51
|
+
# Attribute type mapping.
|
52
|
+
def self.openapi_types
|
53
|
+
{
|
54
|
+
:'pulp_href' => :'String',
|
55
|
+
:'pulp_created' => :'DateTime',
|
56
|
+
:'base_path' => :'String',
|
57
|
+
:'base_url' => :'String',
|
58
|
+
:'content_guard' => :'String',
|
59
|
+
:'name' => :'String',
|
60
|
+
:'publication' => :'String'
|
61
|
+
}
|
62
|
+
end
|
63
|
+
|
64
|
+
# List of attributes with nullable: true
|
65
|
+
def self.openapi_nullable
|
66
|
+
Set.new([
|
67
|
+
:'content_guard',
|
68
|
+
:'publication'
|
69
|
+
])
|
70
|
+
end
|
71
|
+
|
72
|
+
# Initializes the object
|
73
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
74
|
+
def initialize(attributes = {})
|
75
|
+
if (!attributes.is_a?(Hash))
|
76
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::RpmRpmDistributionResponse` initialize method"
|
77
|
+
end
|
78
|
+
|
79
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
80
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
81
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
82
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::RpmRpmDistributionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
83
|
+
end
|
84
|
+
h[k.to_sym] = v
|
85
|
+
}
|
86
|
+
|
87
|
+
if attributes.key?(:'pulp_href')
|
88
|
+
self.pulp_href = attributes[:'pulp_href']
|
89
|
+
end
|
90
|
+
|
91
|
+
if attributes.key?(:'pulp_created')
|
92
|
+
self.pulp_created = attributes[:'pulp_created']
|
93
|
+
end
|
94
|
+
|
95
|
+
if attributes.key?(:'base_path')
|
96
|
+
self.base_path = attributes[:'base_path']
|
97
|
+
end
|
98
|
+
|
99
|
+
if attributes.key?(:'base_url')
|
100
|
+
self.base_url = attributes[:'base_url']
|
101
|
+
end
|
102
|
+
|
103
|
+
if attributes.key?(:'content_guard')
|
104
|
+
self.content_guard = attributes[:'content_guard']
|
105
|
+
end
|
106
|
+
|
107
|
+
if attributes.key?(:'name')
|
108
|
+
self.name = attributes[:'name']
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.key?(:'publication')
|
112
|
+
self.publication = attributes[:'publication']
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
117
|
+
# @return Array for valid properties with the reasons
|
118
|
+
def list_invalid_properties
|
119
|
+
invalid_properties = Array.new
|
120
|
+
if @base_path.nil?
|
121
|
+
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
122
|
+
end
|
123
|
+
|
124
|
+
if @name.nil?
|
125
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
126
|
+
end
|
127
|
+
|
128
|
+
invalid_properties
|
129
|
+
end
|
130
|
+
|
131
|
+
# Check to see if the all the properties in the model are valid
|
132
|
+
# @return true if the model is valid
|
133
|
+
def valid?
|
134
|
+
return false if @base_path.nil?
|
135
|
+
return false if @name.nil?
|
136
|
+
true
|
137
|
+
end
|
138
|
+
|
139
|
+
# Checks equality by comparing each attribute.
|
140
|
+
# @param [Object] Object to be compared
|
141
|
+
def ==(o)
|
142
|
+
return true if self.equal?(o)
|
143
|
+
self.class == o.class &&
|
144
|
+
pulp_href == o.pulp_href &&
|
145
|
+
pulp_created == o.pulp_created &&
|
146
|
+
base_path == o.base_path &&
|
147
|
+
base_url == o.base_url &&
|
148
|
+
content_guard == o.content_guard &&
|
149
|
+
name == o.name &&
|
150
|
+
publication == o.publication
|
151
|
+
end
|
152
|
+
|
153
|
+
# @see the `==` method
|
154
|
+
# @param [Object] Object to be compared
|
155
|
+
def eql?(o)
|
156
|
+
self == o
|
157
|
+
end
|
158
|
+
|
159
|
+
# Calculates hash code according to all attributes.
|
160
|
+
# @return [Integer] Hash code
|
161
|
+
def hash
|
162
|
+
[pulp_href, pulp_created, base_path, base_url, content_guard, name, publication].hash
|
163
|
+
end
|
164
|
+
|
165
|
+
# Builds the object from hash
|
166
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
167
|
+
# @return [Object] Returns the model itself
|
168
|
+
def self.build_from_hash(attributes)
|
169
|
+
new.build_from_hash(attributes)
|
170
|
+
end
|
171
|
+
|
172
|
+
# Builds the object from hash
|
173
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
174
|
+
# @return [Object] Returns the model itself
|
175
|
+
def build_from_hash(attributes)
|
176
|
+
return nil unless attributes.is_a?(Hash)
|
177
|
+
self.class.openapi_types.each_pair do |key, type|
|
178
|
+
if type =~ /\AArray<(.*)>/i
|
179
|
+
# check to ensure the input is an array given that the attribute
|
180
|
+
# is documented as an array but the input is not
|
181
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
182
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
183
|
+
end
|
184
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
185
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
186
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
187
|
+
end
|
188
|
+
|
189
|
+
self
|
190
|
+
end
|
191
|
+
|
192
|
+
# Deserializes the data based on type
|
193
|
+
# @param string type Data type
|
194
|
+
# @param string value Value to be deserialized
|
195
|
+
# @return [Object] Deserialized data
|
196
|
+
def _deserialize(type, value)
|
197
|
+
case type.to_sym
|
198
|
+
when :DateTime
|
199
|
+
DateTime.parse(value)
|
200
|
+
when :Date
|
201
|
+
Date.parse(value)
|
202
|
+
when :String
|
203
|
+
value.to_s
|
204
|
+
when :Integer
|
205
|
+
value.to_i
|
206
|
+
when :Float
|
207
|
+
value.to_f
|
208
|
+
when :Boolean
|
209
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
210
|
+
true
|
211
|
+
else
|
212
|
+
false
|
213
|
+
end
|
214
|
+
when :Object
|
215
|
+
# generic object (usually a Hash), return directly
|
216
|
+
value
|
217
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
218
|
+
inner_type = Regexp.last_match[:inner_type]
|
219
|
+
value.map { |v| _deserialize(inner_type, v) }
|
220
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
221
|
+
k_type = Regexp.last_match[:k_type]
|
222
|
+
v_type = Regexp.last_match[:v_type]
|
223
|
+
{}.tap do |hash|
|
224
|
+
value.each do |k, v|
|
225
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
226
|
+
end
|
227
|
+
end
|
228
|
+
else # model
|
229
|
+
PulpRpmClient.const_get(type).build_from_hash(value)
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
233
|
+
# Returns the string representation of the object
|
234
|
+
# @return [String] String presentation of the object
|
235
|
+
def to_s
|
236
|
+
to_hash.to_s
|
237
|
+
end
|
238
|
+
|
239
|
+
# to_body is an alias to to_hash (backward compatibility)
|
240
|
+
# @return [Hash] Returns the object in the form of hash
|
241
|
+
def to_body
|
242
|
+
to_hash
|
243
|
+
end
|
244
|
+
|
245
|
+
# Returns the object in the form of hash
|
246
|
+
# @return [Hash] Returns the object in the form of hash
|
247
|
+
def to_hash
|
248
|
+
hash = {}
|
249
|
+
self.class.attribute_map.each_pair do |attr, param|
|
250
|
+
value = self.send(attr)
|
251
|
+
if value.nil?
|
252
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
253
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
254
|
+
end
|
255
|
+
|
256
|
+
hash[param] = _to_hash(value)
|
257
|
+
end
|
258
|
+
hash
|
259
|
+
end
|
260
|
+
|
261
|
+
# Outputs non-array value in the form of hash
|
262
|
+
# For object, use to_hash. Otherwise, just return the value
|
263
|
+
# @param [Object] value Any valid value
|
264
|
+
# @return [Hash] Returns the value in the form of hash
|
265
|
+
def _to_hash(value)
|
266
|
+
if value.is_a?(Array)
|
267
|
+
value.compact.map { |v| _to_hash(v) }
|
268
|
+
elsif value.is_a?(Hash)
|
269
|
+
{}.tap do |hash|
|
270
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
271
|
+
end
|
272
|
+
elsif value.respond_to? :to_hash
|
273
|
+
value.to_hash
|
274
|
+
else
|
275
|
+
value
|
276
|
+
end
|
277
|
+
end
|
278
|
+
end
|
279
|
+
end
|