pulp_deb_client 2.5.0b1 → 2.6.0b1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +60 -39
- data/docs/ContentGenericContentsApi.md +26 -26
- data/docs/ContentInstallerFileIndicesApi.md +37 -37
- data/docs/ContentInstallerPackagesApi.md +56 -56
- data/docs/ContentPackageIndicesApi.md +37 -37
- data/docs/ContentPackageReleaseComponentsApi.md +33 -33
- data/docs/ContentPackagesApi.md +58 -58
- data/docs/ContentReleaseArchitecturesApi.md +33 -33
- data/docs/ContentReleaseComponentsApi.md +33 -33
- data/docs/ContentReleaseFilesApi.md +37 -37
- data/docs/ContentReleasesApi.md +35 -35
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +21 -0
- data/docs/DebAptDistribution.md +1 -7
- data/docs/DebAptDistributionResponse.md +29 -0
- data/docs/DebAptPublication.md +1 -5
- data/docs/DebAptPublicationResponse.md +29 -0
- data/docs/DebAptRemote.md +4 -10
- data/docs/DebAptRemoteResponse.md +57 -0
- data/docs/DebAptRepository.md +4 -10
- data/docs/DebAptRepositoryResponse.md +29 -0
- data/docs/DebBasePackage.md +5 -75
- data/docs/DebBasePackageResponse.md +93 -0
- data/docs/DebGenericContent.md +5 -17
- data/docs/DebGenericContentResponse.md +35 -0
- data/docs/DebInstallerFileIndex.md +2 -6
- data/docs/DebInstallerFileIndexResponse.md +29 -0
- data/docs/DebPackageIndex.md +2 -6
- data/docs/DebPackageIndexResponse.md +29 -0
- data/docs/DebPackageReleaseComponent.md +1 -5
- data/docs/DebPackageReleaseComponentResponse.md +23 -0
- data/docs/DebRelease.md +1 -5
- data/docs/DebReleaseArchitecture.md +1 -5
- data/docs/DebReleaseArchitectureResponse.md +23 -0
- data/docs/DebReleaseComponent.md +1 -5
- data/docs/DebReleaseComponentResponse.md +23 -0
- data/docs/DebReleaseFile.md +2 -6
- data/docs/DebReleaseFileResponse.md +29 -0
- data/docs/DebReleaseResponse.md +25 -0
- data/docs/DebVerbatimPublication.md +1 -5
- data/docs/DebVerbatimPublicationResponse.md +23 -0
- data/docs/DistributionsAptApi.md +110 -62
- 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/PatcheddebAptDistribution.md +23 -0
- data/docs/PatcheddebAptRemote.md +51 -0
- data/docs/PatcheddebAptRepository.md +21 -0
- data/docs/PolicyEnum.md +16 -0
- data/docs/PublicationsAptApi.md +43 -43
- data/docs/PublicationsVerbatimApi.md +43 -43
- data/docs/RemotesAptApi.md +128 -68
- data/docs/RepositoriesAptApi.md +100 -76
- data/docs/RepositoriesDebVersionsApi.md +96 -64
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/docs/RepositorySyncURL.md +1 -1
- data/docs/RepositoryVersion.md +1 -9
- data/docs/RepositoryVersionResponse.md +25 -0
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +36 -40
- data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +57 -57
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +90 -82
- data/lib/pulp_deb_client/api/content_package_indices_api.rb +57 -57
- data/lib/pulp_deb_client/api/content_package_release_components_api.rb +50 -50
- data/lib/pulp_deb_client/api/content_packages_api.rb +92 -84
- data/lib/pulp_deb_client/api/content_release_architectures_api.rb +51 -51
- data/lib/pulp_deb_client/api/content_release_components_api.rb +51 -51
- data/lib/pulp_deb_client/api/content_release_files_api.rb +57 -57
- data/lib/pulp_deb_client/api/content_releases_api.rb +54 -54
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +157 -94
- data/lib/pulp_deb_client/api/publications_apt_api.rb +65 -65
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +65 -65
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +187 -106
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +151 -124
- data/lib/pulp_deb_client/api/repositories_deb_versions_api.rb +141 -96
- data/lib/pulp_deb_client/api_client.rb +2 -2
- data/lib/pulp_deb_client/api_error.rb +2 -2
- data/lib/pulp_deb_client/configuration.rb +3 -3
- data/lib/pulp_deb_client/models/async_operation_response.rb +3 -2
- data/lib/pulp_deb_client/models/content_summary.rb +9 -15
- data/lib/pulp_deb_client/models/content_summary_response.rb +240 -0
- data/lib/pulp_deb_client/models/deb_apt_distribution.rb +4 -85
- data/lib/pulp_deb_client/models/deb_apt_distribution_response.rb +279 -0
- data/lib/pulp_deb_client/models/deb_apt_publication.rb +4 -22
- data/lib/pulp_deb_client/models/deb_apt_publication_response.rb +270 -0
- data/lib/pulp_deb_client/models/deb_apt_remote.rb +7 -263
- data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +446 -0
- data/lib/pulp_deb_client/models/deb_apt_repository.rb +18 -78
- data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +271 -0
- data/lib/pulp_deb_client/models/deb_base_package.rb +18 -847
- data/lib/pulp_deb_client/models/deb_base_package_response.rb +558 -0
- data/lib/pulp_deb_client/models/deb_generic_content.rb +18 -185
- data/lib/pulp_deb_client/models/deb_generic_content_response.rb +302 -0
- data/lib/pulp_deb_client/models/deb_installer_file_index.rb +6 -79
- data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +287 -0
- data/lib/pulp_deb_client/models/deb_package_index.rb +6 -79
- data/lib/pulp_deb_client/models/deb_package_index_response.rb +287 -0
- data/lib/pulp_deb_client/models/deb_package_release_component.rb +4 -22
- data/lib/pulp_deb_client/models/deb_package_release_component_response.rb +247 -0
- data/lib/pulp_deb_client/models/deb_release.rb +4 -79
- data/lib/pulp_deb_client/models/deb_release_architecture.rb +4 -41
- data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +247 -0
- data/lib/pulp_deb_client/models/deb_release_component.rb +4 -41
- data/lib/pulp_deb_client/models/deb_release_component_response.rb +247 -0
- data/lib/pulp_deb_client/models/deb_release_file.rb +6 -90
- data/lib/pulp_deb_client/models/deb_release_file_response.rb +277 -0
- data/lib/pulp_deb_client/models/deb_release_response.rb +259 -0
- data/lib/pulp_deb_client/models/deb_verbatim_publication.rb +4 -22
- data/lib/pulp_deb_client/models/deb_verbatim_publication_response.rb +236 -0
- data/lib/pulp_deb_client/models/inline_response200.rb +3 -13
- data/lib/pulp_deb_client/models/inline_response2001.rb +3 -13
- data/lib/pulp_deb_client/models/inline_response20010.rb +3 -13
- data/lib/pulp_deb_client/models/inline_response20011.rb +3 -13
- data/lib/pulp_deb_client/models/inline_response20012.rb +3 -13
- data/lib/pulp_deb_client/models/inline_response20013.rb +3 -13
- data/lib/pulp_deb_client/models/inline_response20014.rb +3 -13
- data/lib/pulp_deb_client/models/inline_response2002.rb +3 -13
- data/lib/pulp_deb_client/models/inline_response2003.rb +3 -13
- data/lib/pulp_deb_client/models/inline_response2004.rb +3 -13
- data/lib/pulp_deb_client/models/inline_response2005.rb +3 -13
- data/lib/pulp_deb_client/models/inline_response2006.rb +3 -13
- data/lib/pulp_deb_client/models/inline_response2007.rb +3 -13
- data/lib/pulp_deb_client/models/inline_response2008.rb +3 -13
- data/lib/pulp_deb_client/models/inline_response2009.rb +3 -13
- data/lib/pulp_deb_client/models/patcheddeb_apt_distribution.rb +240 -0
- data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +402 -0
- data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +229 -0
- data/lib/pulp_deb_client/models/policy_enum.rb +37 -0
- data/lib/pulp_deb_client/models/repository_add_remove_content.rb +5 -4
- data/lib/pulp_deb_client/models/repository_sync_url.rb +3 -8
- data/lib/pulp_deb_client/models/repository_version.rb +7 -43
- data/lib/pulp_deb_client/models/repository_version_response.rb +246 -0
- data/lib/pulp_deb_client/version.rb +3 -3
- data/lib/pulp_deb_client.rb +22 -2
- data/pulp_deb_client.gemspec +4 -4
- data/spec/api/content_generic_contents_api_spec.rb +12 -12
- data/spec/api/content_installer_file_indices_api_spec.rb +17 -17
- data/spec/api/content_installer_packages_api_spec.rb +27 -27
- data/spec/api/content_package_indices_api_spec.rb +17 -17
- data/spec/api/content_package_release_components_api_spec.rb +15 -15
- data/spec/api/content_packages_api_spec.rb +28 -28
- data/spec/api/content_release_architectures_api_spec.rb +15 -15
- data/spec/api/content_release_components_api_spec.rb +15 -15
- data/spec/api/content_release_files_api_spec.rb +17 -17
- data/spec/api/content_releases_api_spec.rb +16 -16
- data/spec/api/distributions_apt_api_spec.rb +41 -20
- data/spec/api/publications_apt_api_spec.rb +17 -17
- data/spec/api/publications_verbatim_api_spec.rb +17 -17
- data/spec/api/remotes_apt_api_spec.rb +51 -24
- data/spec/api/repositories_apt_api_spec.rb +31 -22
- data/spec/api/repositories_deb_versions_api_spec.rb +40 -25
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/async_operation_response_spec.rb +2 -2
- data/spec/models/content_summary_response_spec.rb +53 -0
- data/spec/models/content_summary_spec.rb +2 -2
- data/spec/models/deb_apt_distribution_response_spec.rb +77 -0
- data/spec/models/deb_apt_distribution_spec.rb +2 -20
- data/spec/models/deb_apt_publication_response_spec.rb +77 -0
- data/spec/models/deb_apt_publication_spec.rb +2 -14
- data/spec/models/deb_apt_remote_response_spec.rb +161 -0
- data/spec/models/deb_apt_remote_spec.rb +2 -24
- data/spec/models/deb_apt_repository_response_spec.rb +77 -0
- data/spec/models/deb_apt_repository_spec.rb +5 -23
- data/spec/models/deb_base_package_response_spec.rb +269 -0
- data/spec/models/deb_base_package_spec.rb +4 -214
- data/spec/models/deb_generic_content_response_spec.rb +95 -0
- data/spec/models/deb_generic_content_spec.rb +4 -40
- data/spec/models/deb_installer_file_index_response_spec.rb +77 -0
- data/spec/models/deb_installer_file_index_spec.rb +2 -14
- data/spec/models/deb_package_index_response_spec.rb +77 -0
- data/spec/models/deb_package_index_spec.rb +2 -14
- data/spec/models/deb_package_release_component_response_spec.rb +59 -0
- data/spec/models/deb_package_release_component_spec.rb +2 -14
- data/spec/models/deb_release_architecture_response_spec.rb +59 -0
- data/spec/models/deb_release_architecture_spec.rb +2 -14
- data/spec/models/deb_release_component_response_spec.rb +59 -0
- data/spec/models/deb_release_component_spec.rb +2 -14
- data/spec/models/deb_release_file_response_spec.rb +77 -0
- data/spec/models/deb_release_file_spec.rb +2 -14
- data/spec/models/deb_release_response_spec.rb +65 -0
- data/spec/models/deb_release_spec.rb +2 -14
- data/spec/models/deb_verbatim_publication_response_spec.rb +59 -0
- data/spec/models/deb_verbatim_publication_spec.rb +2 -14
- 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/patcheddeb_apt_distribution_spec.rb +59 -0
- data/spec/models/patcheddeb_apt_remote_spec.rb +143 -0
- data/spec/models/patcheddeb_apt_repository_spec.rb +53 -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_sync_url_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/spec_helper.rb +2 -2
- metadata +120 -40
|
@@ -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,12 +13,8 @@ OpenAPI Generator version: 4.2.3
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module PulpDebClient
|
|
16
|
+
# A serializer for InstallerFileIndex.
|
|
16
17
|
class DebInstallerFileIndex
|
|
17
|
-
attr_accessor :pulp_href
|
|
18
|
-
|
|
19
|
-
# Timestamp of creation.
|
|
20
|
-
attr_accessor :pulp_created
|
|
21
|
-
|
|
22
18
|
# A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/'
|
|
23
19
|
attr_accessor :artifacts
|
|
24
20
|
|
|
@@ -37,8 +33,6 @@ module PulpDebClient
|
|
|
37
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
38
34
|
def self.attribute_map
|
|
39
35
|
{
|
|
40
|
-
:'pulp_href' => :'pulp_href',
|
|
41
|
-
:'pulp_created' => :'pulp_created',
|
|
42
36
|
:'artifacts' => :'artifacts',
|
|
43
37
|
:'release' => :'release',
|
|
44
38
|
:'component' => :'component',
|
|
@@ -50,9 +44,7 @@ module PulpDebClient
|
|
|
50
44
|
# Attribute type mapping.
|
|
51
45
|
def self.openapi_types
|
|
52
46
|
{
|
|
53
|
-
:'
|
|
54
|
-
:'pulp_created' => :'DateTime',
|
|
55
|
-
:'artifacts' => :'Hash<String, String>',
|
|
47
|
+
:'artifacts' => :'Object',
|
|
56
48
|
:'release' => :'String',
|
|
57
49
|
:'component' => :'String',
|
|
58
50
|
:'architecture' => :'String',
|
|
@@ -81,18 +73,8 @@ module PulpDebClient
|
|
|
81
73
|
h[k.to_sym] = v
|
|
82
74
|
}
|
|
83
75
|
|
|
84
|
-
if attributes.key?(:'pulp_href')
|
|
85
|
-
self.pulp_href = attributes[:'pulp_href']
|
|
86
|
-
end
|
|
87
|
-
|
|
88
|
-
if attributes.key?(:'pulp_created')
|
|
89
|
-
self.pulp_created = attributes[:'pulp_created']
|
|
90
|
-
end
|
|
91
|
-
|
|
92
76
|
if attributes.key?(:'artifacts')
|
|
93
|
-
|
|
94
|
-
self.artifacts = value
|
|
95
|
-
end
|
|
77
|
+
self.artifacts = attributes[:'artifacts']
|
|
96
78
|
end
|
|
97
79
|
|
|
98
80
|
if attributes.key?(:'release')
|
|
@@ -128,22 +110,10 @@ module PulpDebClient
|
|
|
128
110
|
invalid_properties.push('invalid value for "component", component cannot be nil.')
|
|
129
111
|
end
|
|
130
112
|
|
|
131
|
-
if @component.to_s.length < 1
|
|
132
|
-
invalid_properties.push('invalid value for "component", the character length must be great than or equal to 1.')
|
|
133
|
-
end
|
|
134
|
-
|
|
135
113
|
if @architecture.nil?
|
|
136
114
|
invalid_properties.push('invalid value for "architecture", architecture cannot be nil.')
|
|
137
115
|
end
|
|
138
116
|
|
|
139
|
-
if @architecture.to_s.length < 1
|
|
140
|
-
invalid_properties.push('invalid value for "architecture", the character length must be great than or equal to 1.')
|
|
141
|
-
end
|
|
142
|
-
|
|
143
|
-
if !@relative_path.nil? && @relative_path.to_s.length < 1
|
|
144
|
-
invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
|
|
145
|
-
end
|
|
146
|
-
|
|
147
117
|
invalid_properties
|
|
148
118
|
end
|
|
149
119
|
|
|
@@ -153,58 +123,15 @@ module PulpDebClient
|
|
|
153
123
|
return false if @artifacts.nil?
|
|
154
124
|
return false if @release.nil?
|
|
155
125
|
return false if @component.nil?
|
|
156
|
-
return false if @component.to_s.length < 1
|
|
157
126
|
return false if @architecture.nil?
|
|
158
|
-
return false if @architecture.to_s.length < 1
|
|
159
|
-
return false if !@relative_path.nil? && @relative_path.to_s.length < 1
|
|
160
127
|
true
|
|
161
128
|
end
|
|
162
129
|
|
|
163
|
-
# Custom attribute writer method with validation
|
|
164
|
-
# @param [Object] component Value to be assigned
|
|
165
|
-
def component=(component)
|
|
166
|
-
if component.nil?
|
|
167
|
-
fail ArgumentError, 'component cannot be nil'
|
|
168
|
-
end
|
|
169
|
-
|
|
170
|
-
if component.to_s.length < 1
|
|
171
|
-
fail ArgumentError, 'invalid value for "component", the character length must be great than or equal to 1.'
|
|
172
|
-
end
|
|
173
|
-
|
|
174
|
-
@component = component
|
|
175
|
-
end
|
|
176
|
-
|
|
177
|
-
# Custom attribute writer method with validation
|
|
178
|
-
# @param [Object] architecture Value to be assigned
|
|
179
|
-
def architecture=(architecture)
|
|
180
|
-
if architecture.nil?
|
|
181
|
-
fail ArgumentError, 'architecture cannot be nil'
|
|
182
|
-
end
|
|
183
|
-
|
|
184
|
-
if architecture.to_s.length < 1
|
|
185
|
-
fail ArgumentError, 'invalid value for "architecture", the character length must be great than or equal to 1.'
|
|
186
|
-
end
|
|
187
|
-
|
|
188
|
-
@architecture = architecture
|
|
189
|
-
end
|
|
190
|
-
|
|
191
|
-
# Custom attribute writer method with validation
|
|
192
|
-
# @param [Object] relative_path Value to be assigned
|
|
193
|
-
def relative_path=(relative_path)
|
|
194
|
-
if !relative_path.nil? && relative_path.to_s.length < 1
|
|
195
|
-
fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
|
|
196
|
-
end
|
|
197
|
-
|
|
198
|
-
@relative_path = relative_path
|
|
199
|
-
end
|
|
200
|
-
|
|
201
130
|
# Checks equality by comparing each attribute.
|
|
202
131
|
# @param [Object] Object to be compared
|
|
203
132
|
def ==(o)
|
|
204
133
|
return true if self.equal?(o)
|
|
205
134
|
self.class == o.class &&
|
|
206
|
-
pulp_href == o.pulp_href &&
|
|
207
|
-
pulp_created == o.pulp_created &&
|
|
208
135
|
artifacts == o.artifacts &&
|
|
209
136
|
release == o.release &&
|
|
210
137
|
component == o.component &&
|
|
@@ -221,7 +148,7 @@ module PulpDebClient
|
|
|
221
148
|
# Calculates hash code according to all attributes.
|
|
222
149
|
# @return [Integer] Hash code
|
|
223
150
|
def hash
|
|
224
|
-
[
|
|
151
|
+
[artifacts, release, component, architecture, relative_path].hash
|
|
225
152
|
end
|
|
226
153
|
|
|
227
154
|
# Builds the object from hash
|
|
@@ -0,0 +1,287 @@
|
|
|
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 PulpDebClient
|
|
16
|
+
# A serializer for InstallerFileIndex.
|
|
17
|
+
class DebInstallerFileIndexResponse
|
|
18
|
+
attr_accessor :pulp_href
|
|
19
|
+
|
|
20
|
+
# Timestamp of creation.
|
|
21
|
+
attr_accessor :pulp_created
|
|
22
|
+
|
|
23
|
+
# A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/'
|
|
24
|
+
attr_accessor :artifacts
|
|
25
|
+
|
|
26
|
+
# Release this index file belongs to.
|
|
27
|
+
attr_accessor :release
|
|
28
|
+
|
|
29
|
+
# Component of the component - architecture combination.
|
|
30
|
+
attr_accessor :component
|
|
31
|
+
|
|
32
|
+
# Architecture of the component - architecture combination.
|
|
33
|
+
attr_accessor :architecture
|
|
34
|
+
|
|
35
|
+
# Path of directory containing MD5SUMS and SHA256SUMS relative to url.
|
|
36
|
+
attr_accessor :relative_path
|
|
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
|
+
:'artifacts' => :'artifacts',
|
|
44
|
+
:'release' => :'release',
|
|
45
|
+
:'component' => :'component',
|
|
46
|
+
:'architecture' => :'architecture',
|
|
47
|
+
:'relative_path' => :'relative_path'
|
|
48
|
+
}
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Attribute type mapping.
|
|
52
|
+
def self.openapi_types
|
|
53
|
+
{
|
|
54
|
+
:'pulp_href' => :'String',
|
|
55
|
+
:'pulp_created' => :'DateTime',
|
|
56
|
+
:'artifacts' => :'Object',
|
|
57
|
+
:'release' => :'String',
|
|
58
|
+
:'component' => :'String',
|
|
59
|
+
:'architecture' => :'String',
|
|
60
|
+
:'relative_path' => :'String'
|
|
61
|
+
}
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# List of attributes with nullable: true
|
|
65
|
+
def self.openapi_nullable
|
|
66
|
+
Set.new([
|
|
67
|
+
])
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Initializes the object
|
|
71
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
72
|
+
def initialize(attributes = {})
|
|
73
|
+
if (!attributes.is_a?(Hash))
|
|
74
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::DebInstallerFileIndexResponse` initialize method"
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
78
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
79
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
80
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::DebInstallerFileIndexResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
81
|
+
end
|
|
82
|
+
h[k.to_sym] = v
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
if attributes.key?(:'pulp_href')
|
|
86
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
if attributes.key?(:'pulp_created')
|
|
90
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
if attributes.key?(:'artifacts')
|
|
94
|
+
self.artifacts = attributes[:'artifacts']
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
if attributes.key?(:'release')
|
|
98
|
+
self.release = attributes[:'release']
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
if attributes.key?(:'component')
|
|
102
|
+
self.component = attributes[:'component']
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
if attributes.key?(:'architecture')
|
|
106
|
+
self.architecture = attributes[:'architecture']
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
if attributes.key?(:'relative_path')
|
|
110
|
+
self.relative_path = attributes[:'relative_path']
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
115
|
+
# @return Array for valid properties with the reasons
|
|
116
|
+
def list_invalid_properties
|
|
117
|
+
invalid_properties = Array.new
|
|
118
|
+
if @artifacts.nil?
|
|
119
|
+
invalid_properties.push('invalid value for "artifacts", artifacts cannot be nil.')
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if @release.nil?
|
|
123
|
+
invalid_properties.push('invalid value for "release", release cannot be nil.')
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if @component.nil?
|
|
127
|
+
invalid_properties.push('invalid value for "component", component cannot be nil.')
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if @architecture.nil?
|
|
131
|
+
invalid_properties.push('invalid value for "architecture", architecture cannot be nil.')
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
invalid_properties
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Check to see if the all the properties in the model are valid
|
|
138
|
+
# @return true if the model is valid
|
|
139
|
+
def valid?
|
|
140
|
+
return false if @artifacts.nil?
|
|
141
|
+
return false if @release.nil?
|
|
142
|
+
return false if @component.nil?
|
|
143
|
+
return false if @architecture.nil?
|
|
144
|
+
true
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Checks equality by comparing each attribute.
|
|
148
|
+
# @param [Object] Object to be compared
|
|
149
|
+
def ==(o)
|
|
150
|
+
return true if self.equal?(o)
|
|
151
|
+
self.class == o.class &&
|
|
152
|
+
pulp_href == o.pulp_href &&
|
|
153
|
+
pulp_created == o.pulp_created &&
|
|
154
|
+
artifacts == o.artifacts &&
|
|
155
|
+
release == o.release &&
|
|
156
|
+
component == o.component &&
|
|
157
|
+
architecture == o.architecture &&
|
|
158
|
+
relative_path == o.relative_path
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# @see the `==` method
|
|
162
|
+
# @param [Object] Object to be compared
|
|
163
|
+
def eql?(o)
|
|
164
|
+
self == o
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
# Calculates hash code according to all attributes.
|
|
168
|
+
# @return [Integer] Hash code
|
|
169
|
+
def hash
|
|
170
|
+
[pulp_href, pulp_created, artifacts, release, component, architecture, relative_path].hash
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# Builds the object from hash
|
|
174
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
175
|
+
# @return [Object] Returns the model itself
|
|
176
|
+
def self.build_from_hash(attributes)
|
|
177
|
+
new.build_from_hash(attributes)
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
# Builds the object from hash
|
|
181
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
182
|
+
# @return [Object] Returns the model itself
|
|
183
|
+
def build_from_hash(attributes)
|
|
184
|
+
return nil unless attributes.is_a?(Hash)
|
|
185
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
186
|
+
if type =~ /\AArray<(.*)>/i
|
|
187
|
+
# check to ensure the input is an array given that the attribute
|
|
188
|
+
# is documented as an array but the input is not
|
|
189
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
190
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
191
|
+
end
|
|
192
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
193
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
194
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
self
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# Deserializes the data based on type
|
|
201
|
+
# @param string type Data type
|
|
202
|
+
# @param string value Value to be deserialized
|
|
203
|
+
# @return [Object] Deserialized data
|
|
204
|
+
def _deserialize(type, value)
|
|
205
|
+
case type.to_sym
|
|
206
|
+
when :DateTime
|
|
207
|
+
DateTime.parse(value)
|
|
208
|
+
when :Date
|
|
209
|
+
Date.parse(value)
|
|
210
|
+
when :String
|
|
211
|
+
value.to_s
|
|
212
|
+
when :Integer
|
|
213
|
+
value.to_i
|
|
214
|
+
when :Float
|
|
215
|
+
value.to_f
|
|
216
|
+
when :Boolean
|
|
217
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
218
|
+
true
|
|
219
|
+
else
|
|
220
|
+
false
|
|
221
|
+
end
|
|
222
|
+
when :Object
|
|
223
|
+
# generic object (usually a Hash), return directly
|
|
224
|
+
value
|
|
225
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
226
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
227
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
228
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
229
|
+
k_type = Regexp.last_match[:k_type]
|
|
230
|
+
v_type = Regexp.last_match[:v_type]
|
|
231
|
+
{}.tap do |hash|
|
|
232
|
+
value.each do |k, v|
|
|
233
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
234
|
+
end
|
|
235
|
+
end
|
|
236
|
+
else # model
|
|
237
|
+
PulpDebClient.const_get(type).build_from_hash(value)
|
|
238
|
+
end
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
# Returns the string representation of the object
|
|
242
|
+
# @return [String] String presentation of the object
|
|
243
|
+
def to_s
|
|
244
|
+
to_hash.to_s
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
248
|
+
# @return [Hash] Returns the object in the form of hash
|
|
249
|
+
def to_body
|
|
250
|
+
to_hash
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
# Returns the object in the form of hash
|
|
254
|
+
# @return [Hash] Returns the object in the form of hash
|
|
255
|
+
def to_hash
|
|
256
|
+
hash = {}
|
|
257
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
258
|
+
value = self.send(attr)
|
|
259
|
+
if value.nil?
|
|
260
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
261
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
hash[param] = _to_hash(value)
|
|
265
|
+
end
|
|
266
|
+
hash
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
# Outputs non-array value in the form of hash
|
|
270
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
271
|
+
# @param [Object] value Any valid value
|
|
272
|
+
# @return [Hash] Returns the value in the form of hash
|
|
273
|
+
def _to_hash(value)
|
|
274
|
+
if value.is_a?(Array)
|
|
275
|
+
value.compact.map { |v| _to_hash(v) }
|
|
276
|
+
elsif value.is_a?(Hash)
|
|
277
|
+
{}.tap do |hash|
|
|
278
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
279
|
+
end
|
|
280
|
+
elsif value.respond_to? :to_hash
|
|
281
|
+
value.to_hash
|
|
282
|
+
else
|
|
283
|
+
value
|
|
284
|
+
end
|
|
285
|
+
end
|
|
286
|
+
end
|
|
287
|
+
end
|
|
@@ -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,12 +13,8 @@ OpenAPI Generator version: 4.2.3
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module PulpDebClient
|
|
16
|
+
# A serializer for PackageIndex.
|
|
16
17
|
class DebPackageIndex
|
|
17
|
-
attr_accessor :pulp_href
|
|
18
|
-
|
|
19
|
-
# Timestamp of creation.
|
|
20
|
-
attr_accessor :pulp_created
|
|
21
|
-
|
|
22
18
|
# A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/'
|
|
23
19
|
attr_accessor :artifacts
|
|
24
20
|
|
|
@@ -37,8 +33,6 @@ module PulpDebClient
|
|
|
37
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
38
34
|
def self.attribute_map
|
|
39
35
|
{
|
|
40
|
-
:'pulp_href' => :'pulp_href',
|
|
41
|
-
:'pulp_created' => :'pulp_created',
|
|
42
36
|
:'artifacts' => :'artifacts',
|
|
43
37
|
:'release' => :'release',
|
|
44
38
|
:'component' => :'component',
|
|
@@ -50,9 +44,7 @@ module PulpDebClient
|
|
|
50
44
|
# Attribute type mapping.
|
|
51
45
|
def self.openapi_types
|
|
52
46
|
{
|
|
53
|
-
:'
|
|
54
|
-
:'pulp_created' => :'DateTime',
|
|
55
|
-
:'artifacts' => :'Hash<String, String>',
|
|
47
|
+
:'artifacts' => :'Object',
|
|
56
48
|
:'release' => :'String',
|
|
57
49
|
:'component' => :'String',
|
|
58
50
|
:'architecture' => :'String',
|
|
@@ -81,18 +73,8 @@ module PulpDebClient
|
|
|
81
73
|
h[k.to_sym] = v
|
|
82
74
|
}
|
|
83
75
|
|
|
84
|
-
if attributes.key?(:'pulp_href')
|
|
85
|
-
self.pulp_href = attributes[:'pulp_href']
|
|
86
|
-
end
|
|
87
|
-
|
|
88
|
-
if attributes.key?(:'pulp_created')
|
|
89
|
-
self.pulp_created = attributes[:'pulp_created']
|
|
90
|
-
end
|
|
91
|
-
|
|
92
76
|
if attributes.key?(:'artifacts')
|
|
93
|
-
|
|
94
|
-
self.artifacts = value
|
|
95
|
-
end
|
|
77
|
+
self.artifacts = attributes[:'artifacts']
|
|
96
78
|
end
|
|
97
79
|
|
|
98
80
|
if attributes.key?(:'release')
|
|
@@ -128,22 +110,10 @@ module PulpDebClient
|
|
|
128
110
|
invalid_properties.push('invalid value for "component", component cannot be nil.')
|
|
129
111
|
end
|
|
130
112
|
|
|
131
|
-
if @component.to_s.length < 1
|
|
132
|
-
invalid_properties.push('invalid value for "component", the character length must be great than or equal to 1.')
|
|
133
|
-
end
|
|
134
|
-
|
|
135
113
|
if @architecture.nil?
|
|
136
114
|
invalid_properties.push('invalid value for "architecture", architecture cannot be nil.')
|
|
137
115
|
end
|
|
138
116
|
|
|
139
|
-
if @architecture.to_s.length < 1
|
|
140
|
-
invalid_properties.push('invalid value for "architecture", the character length must be great than or equal to 1.')
|
|
141
|
-
end
|
|
142
|
-
|
|
143
|
-
if !@relative_path.nil? && @relative_path.to_s.length < 1
|
|
144
|
-
invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
|
|
145
|
-
end
|
|
146
|
-
|
|
147
117
|
invalid_properties
|
|
148
118
|
end
|
|
149
119
|
|
|
@@ -153,58 +123,15 @@ module PulpDebClient
|
|
|
153
123
|
return false if @artifacts.nil?
|
|
154
124
|
return false if @release.nil?
|
|
155
125
|
return false if @component.nil?
|
|
156
|
-
return false if @component.to_s.length < 1
|
|
157
126
|
return false if @architecture.nil?
|
|
158
|
-
return false if @architecture.to_s.length < 1
|
|
159
|
-
return false if !@relative_path.nil? && @relative_path.to_s.length < 1
|
|
160
127
|
true
|
|
161
128
|
end
|
|
162
129
|
|
|
163
|
-
# Custom attribute writer method with validation
|
|
164
|
-
# @param [Object] component Value to be assigned
|
|
165
|
-
def component=(component)
|
|
166
|
-
if component.nil?
|
|
167
|
-
fail ArgumentError, 'component cannot be nil'
|
|
168
|
-
end
|
|
169
|
-
|
|
170
|
-
if component.to_s.length < 1
|
|
171
|
-
fail ArgumentError, 'invalid value for "component", the character length must be great than or equal to 1.'
|
|
172
|
-
end
|
|
173
|
-
|
|
174
|
-
@component = component
|
|
175
|
-
end
|
|
176
|
-
|
|
177
|
-
# Custom attribute writer method with validation
|
|
178
|
-
# @param [Object] architecture Value to be assigned
|
|
179
|
-
def architecture=(architecture)
|
|
180
|
-
if architecture.nil?
|
|
181
|
-
fail ArgumentError, 'architecture cannot be nil'
|
|
182
|
-
end
|
|
183
|
-
|
|
184
|
-
if architecture.to_s.length < 1
|
|
185
|
-
fail ArgumentError, 'invalid value for "architecture", the character length must be great than or equal to 1.'
|
|
186
|
-
end
|
|
187
|
-
|
|
188
|
-
@architecture = architecture
|
|
189
|
-
end
|
|
190
|
-
|
|
191
|
-
# Custom attribute writer method with validation
|
|
192
|
-
# @param [Object] relative_path Value to be assigned
|
|
193
|
-
def relative_path=(relative_path)
|
|
194
|
-
if !relative_path.nil? && relative_path.to_s.length < 1
|
|
195
|
-
fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
|
|
196
|
-
end
|
|
197
|
-
|
|
198
|
-
@relative_path = relative_path
|
|
199
|
-
end
|
|
200
|
-
|
|
201
130
|
# Checks equality by comparing each attribute.
|
|
202
131
|
# @param [Object] Object to be compared
|
|
203
132
|
def ==(o)
|
|
204
133
|
return true if self.equal?(o)
|
|
205
134
|
self.class == o.class &&
|
|
206
|
-
pulp_href == o.pulp_href &&
|
|
207
|
-
pulp_created == o.pulp_created &&
|
|
208
135
|
artifacts == o.artifacts &&
|
|
209
136
|
release == o.release &&
|
|
210
137
|
component == o.component &&
|
|
@@ -221,7 +148,7 @@ module PulpDebClient
|
|
|
221
148
|
# Calculates hash code according to all attributes.
|
|
222
149
|
# @return [Integer] Hash code
|
|
223
150
|
def hash
|
|
224
|
-
[
|
|
151
|
+
[artifacts, release, component, architecture, relative_path].hash
|
|
225
152
|
end
|
|
226
153
|
|
|
227
154
|
# Builds the object from hash
|