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 Release.
|
|
16
17
|
class DebRelease
|
|
17
|
-
attr_accessor :pulp_href
|
|
18
|
-
|
|
19
|
-
# Timestamp of creation.
|
|
20
|
-
attr_accessor :pulp_created
|
|
21
|
-
|
|
22
18
|
attr_accessor :codename
|
|
23
19
|
|
|
24
20
|
attr_accessor :suite
|
|
@@ -28,8 +24,6 @@ module PulpDebClient
|
|
|
28
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
25
|
def self.attribute_map
|
|
30
26
|
{
|
|
31
|
-
:'pulp_href' => :'pulp_href',
|
|
32
|
-
:'pulp_created' => :'pulp_created',
|
|
33
27
|
:'codename' => :'codename',
|
|
34
28
|
:'suite' => :'suite',
|
|
35
29
|
:'distribution' => :'distribution'
|
|
@@ -39,8 +33,6 @@ module PulpDebClient
|
|
|
39
33
|
# Attribute type mapping.
|
|
40
34
|
def self.openapi_types
|
|
41
35
|
{
|
|
42
|
-
:'pulp_href' => :'String',
|
|
43
|
-
:'pulp_created' => :'DateTime',
|
|
44
36
|
:'codename' => :'String',
|
|
45
37
|
:'suite' => :'String',
|
|
46
38
|
:'distribution' => :'String'
|
|
@@ -68,14 +60,6 @@ module PulpDebClient
|
|
|
68
60
|
h[k.to_sym] = v
|
|
69
61
|
}
|
|
70
62
|
|
|
71
|
-
if attributes.key?(:'pulp_href')
|
|
72
|
-
self.pulp_href = attributes[:'pulp_href']
|
|
73
|
-
end
|
|
74
|
-
|
|
75
|
-
if attributes.key?(:'pulp_created')
|
|
76
|
-
self.pulp_created = attributes[:'pulp_created']
|
|
77
|
-
end
|
|
78
|
-
|
|
79
63
|
if attributes.key?(:'codename')
|
|
80
64
|
self.codename = attributes[:'codename']
|
|
81
65
|
end
|
|
@@ -97,26 +81,14 @@ module PulpDebClient
|
|
|
97
81
|
invalid_properties.push('invalid value for "codename", codename cannot be nil.')
|
|
98
82
|
end
|
|
99
83
|
|
|
100
|
-
if @codename.to_s.length < 1
|
|
101
|
-
invalid_properties.push('invalid value for "codename", the character length must be great than or equal to 1.')
|
|
102
|
-
end
|
|
103
|
-
|
|
104
84
|
if @suite.nil?
|
|
105
85
|
invalid_properties.push('invalid value for "suite", suite cannot be nil.')
|
|
106
86
|
end
|
|
107
87
|
|
|
108
|
-
if @suite.to_s.length < 1
|
|
109
|
-
invalid_properties.push('invalid value for "suite", the character length must be great than or equal to 1.')
|
|
110
|
-
end
|
|
111
|
-
|
|
112
88
|
if @distribution.nil?
|
|
113
89
|
invalid_properties.push('invalid value for "distribution", distribution cannot be nil.')
|
|
114
90
|
end
|
|
115
91
|
|
|
116
|
-
if @distribution.to_s.length < 1
|
|
117
|
-
invalid_properties.push('invalid value for "distribution", the character length must be great than or equal to 1.')
|
|
118
|
-
end
|
|
119
|
-
|
|
120
92
|
invalid_properties
|
|
121
93
|
end
|
|
122
94
|
|
|
@@ -124,63 +96,16 @@ module PulpDebClient
|
|
|
124
96
|
# @return true if the model is valid
|
|
125
97
|
def valid?
|
|
126
98
|
return false if @codename.nil?
|
|
127
|
-
return false if @codename.to_s.length < 1
|
|
128
99
|
return false if @suite.nil?
|
|
129
|
-
return false if @suite.to_s.length < 1
|
|
130
100
|
return false if @distribution.nil?
|
|
131
|
-
return false if @distribution.to_s.length < 1
|
|
132
101
|
true
|
|
133
102
|
end
|
|
134
103
|
|
|
135
|
-
# Custom attribute writer method with validation
|
|
136
|
-
# @param [Object] codename Value to be assigned
|
|
137
|
-
def codename=(codename)
|
|
138
|
-
if codename.nil?
|
|
139
|
-
fail ArgumentError, 'codename cannot be nil'
|
|
140
|
-
end
|
|
141
|
-
|
|
142
|
-
if codename.to_s.length < 1
|
|
143
|
-
fail ArgumentError, 'invalid value for "codename", the character length must be great than or equal to 1.'
|
|
144
|
-
end
|
|
145
|
-
|
|
146
|
-
@codename = codename
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
# Custom attribute writer method with validation
|
|
150
|
-
# @param [Object] suite Value to be assigned
|
|
151
|
-
def suite=(suite)
|
|
152
|
-
if suite.nil?
|
|
153
|
-
fail ArgumentError, 'suite cannot be nil'
|
|
154
|
-
end
|
|
155
|
-
|
|
156
|
-
if suite.to_s.length < 1
|
|
157
|
-
fail ArgumentError, 'invalid value for "suite", the character length must be great than or equal to 1.'
|
|
158
|
-
end
|
|
159
|
-
|
|
160
|
-
@suite = suite
|
|
161
|
-
end
|
|
162
|
-
|
|
163
|
-
# Custom attribute writer method with validation
|
|
164
|
-
# @param [Object] distribution Value to be assigned
|
|
165
|
-
def distribution=(distribution)
|
|
166
|
-
if distribution.nil?
|
|
167
|
-
fail ArgumentError, 'distribution cannot be nil'
|
|
168
|
-
end
|
|
169
|
-
|
|
170
|
-
if distribution.to_s.length < 1
|
|
171
|
-
fail ArgumentError, 'invalid value for "distribution", the character length must be great than or equal to 1.'
|
|
172
|
-
end
|
|
173
|
-
|
|
174
|
-
@distribution = distribution
|
|
175
|
-
end
|
|
176
|
-
|
|
177
104
|
# Checks equality by comparing each attribute.
|
|
178
105
|
# @param [Object] Object to be compared
|
|
179
106
|
def ==(o)
|
|
180
107
|
return true if self.equal?(o)
|
|
181
108
|
self.class == o.class &&
|
|
182
|
-
pulp_href == o.pulp_href &&
|
|
183
|
-
pulp_created == o.pulp_created &&
|
|
184
109
|
codename == o.codename &&
|
|
185
110
|
suite == o.suite &&
|
|
186
111
|
distribution == o.distribution
|
|
@@ -195,7 +120,7 @@ module PulpDebClient
|
|
|
195
120
|
# Calculates hash code according to all attributes.
|
|
196
121
|
# @return [Integer] Hash code
|
|
197
122
|
def hash
|
|
198
|
-
[
|
|
123
|
+
[codename, suite, distribution].hash
|
|
199
124
|
end
|
|
200
125
|
|
|
201
126
|
# Builds the object from hash
|
|
@@ -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 ReleaseArchitecture.
|
|
16
17
|
class DebReleaseArchitecture
|
|
17
|
-
attr_accessor :pulp_href
|
|
18
|
-
|
|
19
|
-
# Timestamp of creation.
|
|
20
|
-
attr_accessor :pulp_created
|
|
21
|
-
|
|
22
18
|
# Name of the architecture.
|
|
23
19
|
attr_accessor :architecture
|
|
24
20
|
|
|
@@ -28,8 +24,6 @@ module PulpDebClient
|
|
|
28
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
25
|
def self.attribute_map
|
|
30
26
|
{
|
|
31
|
-
:'pulp_href' => :'pulp_href',
|
|
32
|
-
:'pulp_created' => :'pulp_created',
|
|
33
27
|
:'architecture' => :'architecture',
|
|
34
28
|
:'release' => :'release'
|
|
35
29
|
}
|
|
@@ -38,8 +32,6 @@ module PulpDebClient
|
|
|
38
32
|
# Attribute type mapping.
|
|
39
33
|
def self.openapi_types
|
|
40
34
|
{
|
|
41
|
-
:'pulp_href' => :'String',
|
|
42
|
-
:'pulp_created' => :'DateTime',
|
|
43
35
|
:'architecture' => :'String',
|
|
44
36
|
:'release' => :'String'
|
|
45
37
|
}
|
|
@@ -66,14 +58,6 @@ module PulpDebClient
|
|
|
66
58
|
h[k.to_sym] = v
|
|
67
59
|
}
|
|
68
60
|
|
|
69
|
-
if attributes.key?(:'pulp_href')
|
|
70
|
-
self.pulp_href = attributes[:'pulp_href']
|
|
71
|
-
end
|
|
72
|
-
|
|
73
|
-
if attributes.key?(:'pulp_created')
|
|
74
|
-
self.pulp_created = attributes[:'pulp_created']
|
|
75
|
-
end
|
|
76
|
-
|
|
77
61
|
if attributes.key?(:'architecture')
|
|
78
62
|
self.architecture = attributes[:'architecture']
|
|
79
63
|
end
|
|
@@ -91,10 +75,6 @@ module PulpDebClient
|
|
|
91
75
|
invalid_properties.push('invalid value for "architecture", architecture cannot be nil.')
|
|
92
76
|
end
|
|
93
77
|
|
|
94
|
-
if @architecture.to_s.length < 1
|
|
95
|
-
invalid_properties.push('invalid value for "architecture", the character length must be great than or equal to 1.')
|
|
96
|
-
end
|
|
97
|
-
|
|
98
78
|
if @release.nil?
|
|
99
79
|
invalid_properties.push('invalid value for "release", release cannot be nil.')
|
|
100
80
|
end
|
|
@@ -106,32 +86,15 @@ module PulpDebClient
|
|
|
106
86
|
# @return true if the model is valid
|
|
107
87
|
def valid?
|
|
108
88
|
return false if @architecture.nil?
|
|
109
|
-
return false if @architecture.to_s.length < 1
|
|
110
89
|
return false if @release.nil?
|
|
111
90
|
true
|
|
112
91
|
end
|
|
113
92
|
|
|
114
|
-
# Custom attribute writer method with validation
|
|
115
|
-
# @param [Object] architecture Value to be assigned
|
|
116
|
-
def architecture=(architecture)
|
|
117
|
-
if architecture.nil?
|
|
118
|
-
fail ArgumentError, 'architecture cannot be nil'
|
|
119
|
-
end
|
|
120
|
-
|
|
121
|
-
if architecture.to_s.length < 1
|
|
122
|
-
fail ArgumentError, 'invalid value for "architecture", the character length must be great than or equal to 1.'
|
|
123
|
-
end
|
|
124
|
-
|
|
125
|
-
@architecture = architecture
|
|
126
|
-
end
|
|
127
|
-
|
|
128
93
|
# Checks equality by comparing each attribute.
|
|
129
94
|
# @param [Object] Object to be compared
|
|
130
95
|
def ==(o)
|
|
131
96
|
return true if self.equal?(o)
|
|
132
97
|
self.class == o.class &&
|
|
133
|
-
pulp_href == o.pulp_href &&
|
|
134
|
-
pulp_created == o.pulp_created &&
|
|
135
98
|
architecture == o.architecture &&
|
|
136
99
|
release == o.release
|
|
137
100
|
end
|
|
@@ -145,7 +108,7 @@ module PulpDebClient
|
|
|
145
108
|
# Calculates hash code according to all attributes.
|
|
146
109
|
# @return [Integer] Hash code
|
|
147
110
|
def hash
|
|
148
|
-
[
|
|
111
|
+
[architecture, release].hash
|
|
149
112
|
end
|
|
150
113
|
|
|
151
114
|
# Builds the object from hash
|
|
@@ -0,0 +1,247 @@
|
|
|
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 ReleaseArchitecture.
|
|
17
|
+
class DebReleaseArchitectureResponse
|
|
18
|
+
attr_accessor :pulp_href
|
|
19
|
+
|
|
20
|
+
# Timestamp of creation.
|
|
21
|
+
attr_accessor :pulp_created
|
|
22
|
+
|
|
23
|
+
# Name of the architecture.
|
|
24
|
+
attr_accessor :architecture
|
|
25
|
+
|
|
26
|
+
# Release this architecture is contained in.
|
|
27
|
+
attr_accessor :release
|
|
28
|
+
|
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
|
+
def self.attribute_map
|
|
31
|
+
{
|
|
32
|
+
:'pulp_href' => :'pulp_href',
|
|
33
|
+
:'pulp_created' => :'pulp_created',
|
|
34
|
+
:'architecture' => :'architecture',
|
|
35
|
+
:'release' => :'release'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Attribute type mapping.
|
|
40
|
+
def self.openapi_types
|
|
41
|
+
{
|
|
42
|
+
:'pulp_href' => :'String',
|
|
43
|
+
:'pulp_created' => :'DateTime',
|
|
44
|
+
:'architecture' => :'String',
|
|
45
|
+
:'release' => :'String'
|
|
46
|
+
}
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# List of attributes with nullable: true
|
|
50
|
+
def self.openapi_nullable
|
|
51
|
+
Set.new([
|
|
52
|
+
])
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Initializes the object
|
|
56
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
57
|
+
def initialize(attributes = {})
|
|
58
|
+
if (!attributes.is_a?(Hash))
|
|
59
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::DebReleaseArchitectureResponse` initialize method"
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
63
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
64
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::DebReleaseArchitectureResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
66
|
+
end
|
|
67
|
+
h[k.to_sym] = v
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if attributes.key?(:'pulp_href')
|
|
71
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
if attributes.key?(:'pulp_created')
|
|
75
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'architecture')
|
|
79
|
+
self.architecture = attributes[:'architecture']
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'release')
|
|
83
|
+
self.release = attributes[:'release']
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
88
|
+
# @return Array for valid properties with the reasons
|
|
89
|
+
def list_invalid_properties
|
|
90
|
+
invalid_properties = Array.new
|
|
91
|
+
if @architecture.nil?
|
|
92
|
+
invalid_properties.push('invalid value for "architecture", architecture cannot be nil.')
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if @release.nil?
|
|
96
|
+
invalid_properties.push('invalid value for "release", release cannot be nil.')
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
invalid_properties
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Check to see if the all the properties in the model are valid
|
|
103
|
+
# @return true if the model is valid
|
|
104
|
+
def valid?
|
|
105
|
+
return false if @architecture.nil?
|
|
106
|
+
return false if @release.nil?
|
|
107
|
+
true
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Checks equality by comparing each attribute.
|
|
111
|
+
# @param [Object] Object to be compared
|
|
112
|
+
def ==(o)
|
|
113
|
+
return true if self.equal?(o)
|
|
114
|
+
self.class == o.class &&
|
|
115
|
+
pulp_href == o.pulp_href &&
|
|
116
|
+
pulp_created == o.pulp_created &&
|
|
117
|
+
architecture == o.architecture &&
|
|
118
|
+
release == o.release
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# @see the `==` method
|
|
122
|
+
# @param [Object] Object to be compared
|
|
123
|
+
def eql?(o)
|
|
124
|
+
self == o
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Calculates hash code according to all attributes.
|
|
128
|
+
# @return [Integer] Hash code
|
|
129
|
+
def hash
|
|
130
|
+
[pulp_href, pulp_created, architecture, release].hash
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Builds the object from hash
|
|
134
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
135
|
+
# @return [Object] Returns the model itself
|
|
136
|
+
def self.build_from_hash(attributes)
|
|
137
|
+
new.build_from_hash(attributes)
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Builds the object from hash
|
|
141
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
142
|
+
# @return [Object] Returns the model itself
|
|
143
|
+
def build_from_hash(attributes)
|
|
144
|
+
return nil unless attributes.is_a?(Hash)
|
|
145
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
146
|
+
if type =~ /\AArray<(.*)>/i
|
|
147
|
+
# check to ensure the input is an array given that the attribute
|
|
148
|
+
# is documented as an array but the input is not
|
|
149
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
150
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
151
|
+
end
|
|
152
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
153
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
154
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
self
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Deserializes the data based on type
|
|
161
|
+
# @param string type Data type
|
|
162
|
+
# @param string value Value to be deserialized
|
|
163
|
+
# @return [Object] Deserialized data
|
|
164
|
+
def _deserialize(type, value)
|
|
165
|
+
case type.to_sym
|
|
166
|
+
when :DateTime
|
|
167
|
+
DateTime.parse(value)
|
|
168
|
+
when :Date
|
|
169
|
+
Date.parse(value)
|
|
170
|
+
when :String
|
|
171
|
+
value.to_s
|
|
172
|
+
when :Integer
|
|
173
|
+
value.to_i
|
|
174
|
+
when :Float
|
|
175
|
+
value.to_f
|
|
176
|
+
when :Boolean
|
|
177
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
178
|
+
true
|
|
179
|
+
else
|
|
180
|
+
false
|
|
181
|
+
end
|
|
182
|
+
when :Object
|
|
183
|
+
# generic object (usually a Hash), return directly
|
|
184
|
+
value
|
|
185
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
186
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
187
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
188
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
189
|
+
k_type = Regexp.last_match[:k_type]
|
|
190
|
+
v_type = Regexp.last_match[:v_type]
|
|
191
|
+
{}.tap do |hash|
|
|
192
|
+
value.each do |k, v|
|
|
193
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
else # model
|
|
197
|
+
PulpDebClient.const_get(type).build_from_hash(value)
|
|
198
|
+
end
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# Returns the string representation of the object
|
|
202
|
+
# @return [String] String presentation of the object
|
|
203
|
+
def to_s
|
|
204
|
+
to_hash.to_s
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
208
|
+
# @return [Hash] Returns the object in the form of hash
|
|
209
|
+
def to_body
|
|
210
|
+
to_hash
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
# Returns the object in the form of hash
|
|
214
|
+
# @return [Hash] Returns the object in the form of hash
|
|
215
|
+
def to_hash
|
|
216
|
+
hash = {}
|
|
217
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
218
|
+
value = self.send(attr)
|
|
219
|
+
if value.nil?
|
|
220
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
221
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
hash[param] = _to_hash(value)
|
|
225
|
+
end
|
|
226
|
+
hash
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
# Outputs non-array value in the form of hash
|
|
230
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
231
|
+
# @param [Object] value Any valid value
|
|
232
|
+
# @return [Hash] Returns the value in the form of hash
|
|
233
|
+
def _to_hash(value)
|
|
234
|
+
if value.is_a?(Array)
|
|
235
|
+
value.compact.map { |v| _to_hash(v) }
|
|
236
|
+
elsif value.is_a?(Hash)
|
|
237
|
+
{}.tap do |hash|
|
|
238
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
239
|
+
end
|
|
240
|
+
elsif value.respond_to? :to_hash
|
|
241
|
+
value.to_hash
|
|
242
|
+
else
|
|
243
|
+
value
|
|
244
|
+
end
|
|
245
|
+
end
|
|
246
|
+
end
|
|
247
|
+
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 ReleaseComponent.
|
|
16
17
|
class DebReleaseComponent
|
|
17
|
-
attr_accessor :pulp_href
|
|
18
|
-
|
|
19
|
-
# Timestamp of creation.
|
|
20
|
-
attr_accessor :pulp_created
|
|
21
|
-
|
|
22
18
|
# Name of the component.
|
|
23
19
|
attr_accessor :component
|
|
24
20
|
|
|
@@ -28,8 +24,6 @@ module PulpDebClient
|
|
|
28
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
25
|
def self.attribute_map
|
|
30
26
|
{
|
|
31
|
-
:'pulp_href' => :'pulp_href',
|
|
32
|
-
:'pulp_created' => :'pulp_created',
|
|
33
27
|
:'component' => :'component',
|
|
34
28
|
:'release' => :'release'
|
|
35
29
|
}
|
|
@@ -38,8 +32,6 @@ module PulpDebClient
|
|
|
38
32
|
# Attribute type mapping.
|
|
39
33
|
def self.openapi_types
|
|
40
34
|
{
|
|
41
|
-
:'pulp_href' => :'String',
|
|
42
|
-
:'pulp_created' => :'DateTime',
|
|
43
35
|
:'component' => :'String',
|
|
44
36
|
:'release' => :'String'
|
|
45
37
|
}
|
|
@@ -66,14 +58,6 @@ module PulpDebClient
|
|
|
66
58
|
h[k.to_sym] = v
|
|
67
59
|
}
|
|
68
60
|
|
|
69
|
-
if attributes.key?(:'pulp_href')
|
|
70
|
-
self.pulp_href = attributes[:'pulp_href']
|
|
71
|
-
end
|
|
72
|
-
|
|
73
|
-
if attributes.key?(:'pulp_created')
|
|
74
|
-
self.pulp_created = attributes[:'pulp_created']
|
|
75
|
-
end
|
|
76
|
-
|
|
77
61
|
if attributes.key?(:'component')
|
|
78
62
|
self.component = attributes[:'component']
|
|
79
63
|
end
|
|
@@ -91,10 +75,6 @@ module PulpDebClient
|
|
|
91
75
|
invalid_properties.push('invalid value for "component", component cannot be nil.')
|
|
92
76
|
end
|
|
93
77
|
|
|
94
|
-
if @component.to_s.length < 1
|
|
95
|
-
invalid_properties.push('invalid value for "component", the character length must be great than or equal to 1.')
|
|
96
|
-
end
|
|
97
|
-
|
|
98
78
|
if @release.nil?
|
|
99
79
|
invalid_properties.push('invalid value for "release", release cannot be nil.')
|
|
100
80
|
end
|
|
@@ -106,32 +86,15 @@ module PulpDebClient
|
|
|
106
86
|
# @return true if the model is valid
|
|
107
87
|
def valid?
|
|
108
88
|
return false if @component.nil?
|
|
109
|
-
return false if @component.to_s.length < 1
|
|
110
89
|
return false if @release.nil?
|
|
111
90
|
true
|
|
112
91
|
end
|
|
113
92
|
|
|
114
|
-
# Custom attribute writer method with validation
|
|
115
|
-
# @param [Object] component Value to be assigned
|
|
116
|
-
def component=(component)
|
|
117
|
-
if component.nil?
|
|
118
|
-
fail ArgumentError, 'component cannot be nil'
|
|
119
|
-
end
|
|
120
|
-
|
|
121
|
-
if component.to_s.length < 1
|
|
122
|
-
fail ArgumentError, 'invalid value for "component", the character length must be great than or equal to 1.'
|
|
123
|
-
end
|
|
124
|
-
|
|
125
|
-
@component = component
|
|
126
|
-
end
|
|
127
|
-
|
|
128
93
|
# Checks equality by comparing each attribute.
|
|
129
94
|
# @param [Object] Object to be compared
|
|
130
95
|
def ==(o)
|
|
131
96
|
return true if self.equal?(o)
|
|
132
97
|
self.class == o.class &&
|
|
133
|
-
pulp_href == o.pulp_href &&
|
|
134
|
-
pulp_created == o.pulp_created &&
|
|
135
98
|
component == o.component &&
|
|
136
99
|
release == o.release
|
|
137
100
|
end
|
|
@@ -145,7 +108,7 @@ module PulpDebClient
|
|
|
145
108
|
# Calculates hash code according to all attributes.
|
|
146
109
|
# @return [Integer] Hash code
|
|
147
110
|
def hash
|
|
148
|
-
[
|
|
111
|
+
[component, release].hash
|
|
149
112
|
end
|
|
150
113
|
|
|
151
114
|
# Builds the object from hash
|