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