pulp_deb_client 2.9.1 → 2.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/ContentGenericContentsApi.md +10 -10
- data/docs/ContentInstallerFileIndicesApi.md +14 -14
- data/docs/ContentInstallerPackagesApi.md +40 -40
- data/docs/ContentPackageIndicesApi.md +14 -14
- data/docs/ContentPackageReleaseComponentsApi.md +10 -10
- data/docs/ContentPackagesApi.md +42 -42
- data/docs/ContentReleaseArchitecturesApi.md +10 -10
- data/docs/ContentReleaseComponentsApi.md +10 -10
- data/docs/ContentReleaseFilesApi.md +14 -14
- data/docs/ContentReleasesApi.md +12 -12
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +3 -3
- data/docs/DebAptDistribution.md +4 -0
- data/docs/DebAptDistributionResponse.md +4 -0
- data/docs/DebAptRemote.md +11 -1
- data/docs/DebAptRemoteResponse.md +7 -7
- data/docs/DebAptRepository.md +5 -1
- data/docs/DebAptRepositoryResponse.md +4 -0
- data/docs/DistributionsAptApi.md +20 -12
- data/docs/PatcheddebAptDistribution.md +4 -0
- data/docs/PatcheddebAptRemote.md +11 -1
- data/docs/PatcheddebAptRepository.md +5 -1
- data/docs/PublicationsAptApi.md +18 -14
- data/docs/PublicationsVerbatimApi.md +18 -14
- data/docs/RemotesAptApi.md +24 -16
- data/docs/RepositoriesAptApi.md +12 -4
- data/docs/RepositoriesDebVersionsApi.md +28 -28
- data/docs/RepositoryVersionResponse.md +2 -0
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +10 -10
- data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +14 -14
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +43 -43
- data/lib/pulp_deb_client/api/content_package_indices_api.rb +14 -14
- data/lib/pulp_deb_client/api/content_package_release_components_api.rb +10 -10
- data/lib/pulp_deb_client/api/content_packages_api.rb +45 -45
- data/lib/pulp_deb_client/api/content_release_architectures_api.rb +10 -10
- data/lib/pulp_deb_client/api/content_release_components_api.rb +10 -10
- data/lib/pulp_deb_client/api/content_release_files_api.rb +14 -14
- data/lib/pulp_deb_client/api/content_releases_api.rb +12 -12
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +26 -14
- data/lib/pulp_deb_client/api/publications_apt_api.rb +21 -15
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +21 -15
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +30 -18
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +17 -5
- data/lib/pulp_deb_client/api/repositories_deb_versions_api.rb +30 -30
- data/lib/pulp_deb_client/models/content_summary.rb +12 -6
- data/lib/pulp_deb_client/models/content_summary_response.rb +12 -6
- data/lib/pulp_deb_client/models/deb_apt_distribution.rb +21 -1
- data/lib/pulp_deb_client/models/deb_apt_distribution_response.rb +21 -1
- data/lib/pulp_deb_client/models/deb_apt_remote.rb +56 -2
- data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +31 -32
- data/lib/pulp_deb_client/models/deb_apt_repository.rb +36 -1
- data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +36 -1
- data/lib/pulp_deb_client/models/patcheddeb_apt_distribution.rb +21 -1
- data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +56 -2
- data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +36 -1
- data/lib/pulp_deb_client/models/repository_version_response.rb +10 -1
- data/lib/pulp_deb_client/version.rb +1 -1
- data/spec/api/content_generic_contents_api_spec.rb +5 -5
- data/spec/api/content_installer_file_indices_api_spec.rb +7 -7
- data/spec/api/content_installer_packages_api_spec.rb +20 -20
- data/spec/api/content_package_indices_api_spec.rb +7 -7
- data/spec/api/content_package_release_components_api_spec.rb +5 -5
- data/spec/api/content_packages_api_spec.rb +21 -21
- data/spec/api/content_release_architectures_api_spec.rb +5 -5
- data/spec/api/content_release_components_api_spec.rb +5 -5
- data/spec/api/content_release_files_api_spec.rb +7 -7
- data/spec/api/content_releases_api_spec.rb +6 -6
- data/spec/api/distributions_apt_api_spec.rb +10 -6
- data/spec/api/publications_apt_api_spec.rb +9 -7
- data/spec/api/publications_verbatim_api_spec.rb +9 -7
- data/spec/api/remotes_apt_api_spec.rb +12 -8
- data/spec/api/repositories_apt_api_spec.rb +6 -2
- data/spec/api/repositories_deb_versions_api_spec.rb +14 -14
- data/spec/models/deb_apt_distribution_response_spec.rb +12 -0
- data/spec/models/deb_apt_distribution_spec.rb +12 -0
- data/spec/models/deb_apt_remote_response_spec.rb +12 -12
- data/spec/models/deb_apt_remote_spec.rb +30 -0
- data/spec/models/deb_apt_repository_response_spec.rb +12 -0
- data/spec/models/deb_apt_repository_spec.rb +12 -0
- data/spec/models/patcheddeb_apt_distribution_spec.rb +12 -0
- data/spec/models/patcheddeb_apt_remote_spec.rb +30 -0
- data/spec/models/patcheddeb_apt_repository_spec.rb +12 -0
- data/spec/models/repository_version_response_spec.rb +6 -0
- metadata +56 -56
@@ -22,6 +22,8 @@ module PulpDebClient
|
|
22
22
|
|
23
23
|
attr_accessor :versions_href
|
24
24
|
|
25
|
+
attr_accessor :pulp_labels
|
26
|
+
|
25
27
|
attr_accessor :latest_version_href
|
26
28
|
|
27
29
|
# A unique name for this repository.
|
@@ -30,6 +32,9 @@ module PulpDebClient
|
|
30
32
|
# An optional description.
|
31
33
|
attr_accessor :description
|
32
34
|
|
35
|
+
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
36
|
+
attr_accessor :retained_versions
|
37
|
+
|
33
38
|
attr_accessor :remote
|
34
39
|
|
35
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -38,9 +43,11 @@ module PulpDebClient
|
|
38
43
|
:'pulp_href' => :'pulp_href',
|
39
44
|
:'pulp_created' => :'pulp_created',
|
40
45
|
:'versions_href' => :'versions_href',
|
46
|
+
:'pulp_labels' => :'pulp_labels',
|
41
47
|
:'latest_version_href' => :'latest_version_href',
|
42
48
|
:'name' => :'name',
|
43
49
|
:'description' => :'description',
|
50
|
+
:'retained_versions' => :'retained_versions',
|
44
51
|
:'remote' => :'remote'
|
45
52
|
}
|
46
53
|
end
|
@@ -51,9 +58,11 @@ module PulpDebClient
|
|
51
58
|
:'pulp_href' => :'String',
|
52
59
|
:'pulp_created' => :'DateTime',
|
53
60
|
:'versions_href' => :'String',
|
61
|
+
:'pulp_labels' => :'Object',
|
54
62
|
:'latest_version_href' => :'String',
|
55
63
|
:'name' => :'String',
|
56
64
|
:'description' => :'String',
|
65
|
+
:'retained_versions' => :'Integer',
|
57
66
|
:'remote' => :'String'
|
58
67
|
}
|
59
68
|
end
|
@@ -62,6 +71,7 @@ module PulpDebClient
|
|
62
71
|
def self.openapi_nullable
|
63
72
|
Set.new([
|
64
73
|
:'description',
|
74
|
+
:'retained_versions',
|
65
75
|
:'remote'
|
66
76
|
])
|
67
77
|
end
|
@@ -93,6 +103,10 @@ module PulpDebClient
|
|
93
103
|
self.versions_href = attributes[:'versions_href']
|
94
104
|
end
|
95
105
|
|
106
|
+
if attributes.key?(:'pulp_labels')
|
107
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
108
|
+
end
|
109
|
+
|
96
110
|
if attributes.key?(:'latest_version_href')
|
97
111
|
self.latest_version_href = attributes[:'latest_version_href']
|
98
112
|
end
|
@@ -105,6 +119,10 @@ module PulpDebClient
|
|
105
119
|
self.description = attributes[:'description']
|
106
120
|
end
|
107
121
|
|
122
|
+
if attributes.key?(:'retained_versions')
|
123
|
+
self.retained_versions = attributes[:'retained_versions']
|
124
|
+
end
|
125
|
+
|
108
126
|
if attributes.key?(:'remote')
|
109
127
|
self.remote = attributes[:'remote']
|
110
128
|
end
|
@@ -118,6 +136,10 @@ module PulpDebClient
|
|
118
136
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
119
137
|
end
|
120
138
|
|
139
|
+
if !@retained_versions.nil? && @retained_versions < 1
|
140
|
+
invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
|
141
|
+
end
|
142
|
+
|
121
143
|
invalid_properties
|
122
144
|
end
|
123
145
|
|
@@ -125,9 +147,20 @@ module PulpDebClient
|
|
125
147
|
# @return true if the model is valid
|
126
148
|
def valid?
|
127
149
|
return false if @name.nil?
|
150
|
+
return false if !@retained_versions.nil? && @retained_versions < 1
|
128
151
|
true
|
129
152
|
end
|
130
153
|
|
154
|
+
# Custom attribute writer method with validation
|
155
|
+
# @param [Object] retained_versions Value to be assigned
|
156
|
+
def retained_versions=(retained_versions)
|
157
|
+
if !retained_versions.nil? && retained_versions < 1
|
158
|
+
fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
|
159
|
+
end
|
160
|
+
|
161
|
+
@retained_versions = retained_versions
|
162
|
+
end
|
163
|
+
|
131
164
|
# Checks equality by comparing each attribute.
|
132
165
|
# @param [Object] Object to be compared
|
133
166
|
def ==(o)
|
@@ -136,9 +169,11 @@ module PulpDebClient
|
|
136
169
|
pulp_href == o.pulp_href &&
|
137
170
|
pulp_created == o.pulp_created &&
|
138
171
|
versions_href == o.versions_href &&
|
172
|
+
pulp_labels == o.pulp_labels &&
|
139
173
|
latest_version_href == o.latest_version_href &&
|
140
174
|
name == o.name &&
|
141
175
|
description == o.description &&
|
176
|
+
retained_versions == o.retained_versions &&
|
142
177
|
remote == o.remote
|
143
178
|
end
|
144
179
|
|
@@ -151,7 +186,7 @@ module PulpDebClient
|
|
151
186
|
# Calculates hash code according to all attributes.
|
152
187
|
# @return [Integer] Hash code
|
153
188
|
def hash
|
154
|
-
[pulp_href, pulp_created, versions_href, latest_version_href, name, description, remote].hash
|
189
|
+
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retained_versions, remote].hash
|
155
190
|
end
|
156
191
|
|
157
192
|
# Builds the object from hash
|
@@ -21,9 +21,14 @@ module PulpDebClient
|
|
21
21
|
# An optional content-guard.
|
22
22
|
attr_accessor :content_guard
|
23
23
|
|
24
|
+
attr_accessor :pulp_labels
|
25
|
+
|
24
26
|
# A unique name. Ex, `rawhide` and `stable`.
|
25
27
|
attr_accessor :name
|
26
28
|
|
29
|
+
# The latest RepositoryVersion for this Repository will be served.
|
30
|
+
attr_accessor :repository
|
31
|
+
|
27
32
|
# Publication to be served
|
28
33
|
attr_accessor :publication
|
29
34
|
|
@@ -32,7 +37,9 @@ module PulpDebClient
|
|
32
37
|
{
|
33
38
|
:'base_path' => :'base_path',
|
34
39
|
:'content_guard' => :'content_guard',
|
40
|
+
:'pulp_labels' => :'pulp_labels',
|
35
41
|
:'name' => :'name',
|
42
|
+
:'repository' => :'repository',
|
36
43
|
:'publication' => :'publication'
|
37
44
|
}
|
38
45
|
end
|
@@ -42,7 +49,9 @@ module PulpDebClient
|
|
42
49
|
{
|
43
50
|
:'base_path' => :'String',
|
44
51
|
:'content_guard' => :'String',
|
52
|
+
:'pulp_labels' => :'Object',
|
45
53
|
:'name' => :'String',
|
54
|
+
:'repository' => :'String',
|
46
55
|
:'publication' => :'String'
|
47
56
|
}
|
48
57
|
end
|
@@ -51,6 +60,7 @@ module PulpDebClient
|
|
51
60
|
def self.openapi_nullable
|
52
61
|
Set.new([
|
53
62
|
:'content_guard',
|
63
|
+
:'repository',
|
54
64
|
:'publication'
|
55
65
|
])
|
56
66
|
end
|
@@ -78,10 +88,18 @@ module PulpDebClient
|
|
78
88
|
self.content_guard = attributes[:'content_guard']
|
79
89
|
end
|
80
90
|
|
91
|
+
if attributes.key?(:'pulp_labels')
|
92
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
93
|
+
end
|
94
|
+
|
81
95
|
if attributes.key?(:'name')
|
82
96
|
self.name = attributes[:'name']
|
83
97
|
end
|
84
98
|
|
99
|
+
if attributes.key?(:'repository')
|
100
|
+
self.repository = attributes[:'repository']
|
101
|
+
end
|
102
|
+
|
85
103
|
if attributes.key?(:'publication')
|
86
104
|
self.publication = attributes[:'publication']
|
87
105
|
end
|
@@ -107,7 +125,9 @@ module PulpDebClient
|
|
107
125
|
self.class == o.class &&
|
108
126
|
base_path == o.base_path &&
|
109
127
|
content_guard == o.content_guard &&
|
128
|
+
pulp_labels == o.pulp_labels &&
|
110
129
|
name == o.name &&
|
130
|
+
repository == o.repository &&
|
111
131
|
publication == o.publication
|
112
132
|
end
|
113
133
|
|
@@ -120,7 +140,7 @@ module PulpDebClient
|
|
120
140
|
# Calculates hash code according to all attributes.
|
121
141
|
# @return [Integer] Hash code
|
122
142
|
def hash
|
123
|
-
[base_path, content_guard, name, publication].hash
|
143
|
+
[base_path, content_guard, pulp_labels, name, repository, publication].hash
|
124
144
|
end
|
125
145
|
|
126
146
|
# Builds the object from hash
|
@@ -33,15 +33,23 @@ module PulpDebClient
|
|
33
33
|
# If True, TLS peer validation must be performed.
|
34
34
|
attr_accessor :tls_validation
|
35
35
|
|
36
|
-
# The proxy URL. Format: scheme://
|
36
|
+
# The proxy URL. Format: scheme://host:port
|
37
37
|
attr_accessor :proxy_url
|
38
38
|
|
39
|
+
# The username to authenticte to the proxy.
|
40
|
+
attr_accessor :proxy_username
|
41
|
+
|
42
|
+
# The password to authenticte to the proxy.
|
43
|
+
attr_accessor :proxy_password
|
44
|
+
|
39
45
|
# The username to be used for authentication when syncing.
|
40
46
|
attr_accessor :username
|
41
47
|
|
42
48
|
# The password to be used for authentication when syncing.
|
43
49
|
attr_accessor :password
|
44
50
|
|
51
|
+
attr_accessor :pulp_labels
|
52
|
+
|
45
53
|
# Total number of simultaneous connections.
|
46
54
|
attr_accessor :download_concurrency
|
47
55
|
|
@@ -60,6 +68,12 @@ module PulpDebClient
|
|
60
68
|
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
61
69
|
attr_accessor :sock_read_timeout
|
62
70
|
|
71
|
+
# Headers for aiohttp.Clientsession
|
72
|
+
attr_accessor :headers
|
73
|
+
|
74
|
+
# Limits total download rate in requests per second
|
75
|
+
attr_accessor :rate_limit
|
76
|
+
|
63
77
|
# Whitespace separated list of distributions to sync. The distribution is the path from the repository root to the \"Release\" file you want to access. This is often, but not always, equal to either the codename or the suite of the release you want to sync. If the repository you are trying to sync uses \"flat repository format\", the distribution must end with a \"/\". Based on \"/etc/apt/sources.list\" syntax.
|
64
78
|
attr_accessor :distributions
|
65
79
|
|
@@ -94,14 +108,19 @@ module PulpDebClient
|
|
94
108
|
:'client_key' => :'client_key',
|
95
109
|
:'tls_validation' => :'tls_validation',
|
96
110
|
:'proxy_url' => :'proxy_url',
|
111
|
+
:'proxy_username' => :'proxy_username',
|
112
|
+
:'proxy_password' => :'proxy_password',
|
97
113
|
:'username' => :'username',
|
98
114
|
:'password' => :'password',
|
115
|
+
:'pulp_labels' => :'pulp_labels',
|
99
116
|
:'download_concurrency' => :'download_concurrency',
|
100
117
|
:'policy' => :'policy',
|
101
118
|
:'total_timeout' => :'total_timeout',
|
102
119
|
:'connect_timeout' => :'connect_timeout',
|
103
120
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
104
121
|
:'sock_read_timeout' => :'sock_read_timeout',
|
122
|
+
:'headers' => :'headers',
|
123
|
+
:'rate_limit' => :'rate_limit',
|
105
124
|
:'distributions' => :'distributions',
|
106
125
|
:'components' => :'components',
|
107
126
|
:'architectures' => :'architectures',
|
@@ -123,14 +142,19 @@ module PulpDebClient
|
|
123
142
|
:'client_key' => :'String',
|
124
143
|
:'tls_validation' => :'Boolean',
|
125
144
|
:'proxy_url' => :'String',
|
145
|
+
:'proxy_username' => :'String',
|
146
|
+
:'proxy_password' => :'String',
|
126
147
|
:'username' => :'String',
|
127
148
|
:'password' => :'String',
|
149
|
+
:'pulp_labels' => :'Object',
|
128
150
|
:'download_concurrency' => :'Integer',
|
129
151
|
:'policy' => :'PolicyEnum',
|
130
152
|
:'total_timeout' => :'Float',
|
131
153
|
:'connect_timeout' => :'Float',
|
132
154
|
:'sock_connect_timeout' => :'Float',
|
133
155
|
:'sock_read_timeout' => :'Float',
|
156
|
+
:'headers' => :'Array<Object>',
|
157
|
+
:'rate_limit' => :'Integer',
|
134
158
|
:'distributions' => :'String',
|
135
159
|
:'components' => :'String',
|
136
160
|
:'architectures' => :'String',
|
@@ -149,12 +173,15 @@ module PulpDebClient
|
|
149
173
|
:'client_cert',
|
150
174
|
:'client_key',
|
151
175
|
:'proxy_url',
|
176
|
+
:'proxy_username',
|
177
|
+
:'proxy_password',
|
152
178
|
:'username',
|
153
179
|
:'password',
|
154
180
|
:'total_timeout',
|
155
181
|
:'connect_timeout',
|
156
182
|
:'sock_connect_timeout',
|
157
183
|
:'sock_read_timeout',
|
184
|
+
:'rate_limit',
|
158
185
|
:'components',
|
159
186
|
:'architectures',
|
160
187
|
:'gpgkey',
|
@@ -204,6 +231,14 @@ module PulpDebClient
|
|
204
231
|
self.proxy_url = attributes[:'proxy_url']
|
205
232
|
end
|
206
233
|
|
234
|
+
if attributes.key?(:'proxy_username')
|
235
|
+
self.proxy_username = attributes[:'proxy_username']
|
236
|
+
end
|
237
|
+
|
238
|
+
if attributes.key?(:'proxy_password')
|
239
|
+
self.proxy_password = attributes[:'proxy_password']
|
240
|
+
end
|
241
|
+
|
207
242
|
if attributes.key?(:'username')
|
208
243
|
self.username = attributes[:'username']
|
209
244
|
end
|
@@ -212,6 +247,10 @@ module PulpDebClient
|
|
212
247
|
self.password = attributes[:'password']
|
213
248
|
end
|
214
249
|
|
250
|
+
if attributes.key?(:'pulp_labels')
|
251
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
252
|
+
end
|
253
|
+
|
215
254
|
if attributes.key?(:'download_concurrency')
|
216
255
|
self.download_concurrency = attributes[:'download_concurrency']
|
217
256
|
end
|
@@ -236,6 +275,16 @@ module PulpDebClient
|
|
236
275
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
237
276
|
end
|
238
277
|
|
278
|
+
if attributes.key?(:'headers')
|
279
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
280
|
+
self.headers = value
|
281
|
+
end
|
282
|
+
end
|
283
|
+
|
284
|
+
if attributes.key?(:'rate_limit')
|
285
|
+
self.rate_limit = attributes[:'rate_limit']
|
286
|
+
end
|
287
|
+
|
239
288
|
if attributes.key?(:'distributions')
|
240
289
|
self.distributions = attributes[:'distributions']
|
241
290
|
end
|
@@ -369,14 +418,19 @@ module PulpDebClient
|
|
369
418
|
client_key == o.client_key &&
|
370
419
|
tls_validation == o.tls_validation &&
|
371
420
|
proxy_url == o.proxy_url &&
|
421
|
+
proxy_username == o.proxy_username &&
|
422
|
+
proxy_password == o.proxy_password &&
|
372
423
|
username == o.username &&
|
373
424
|
password == o.password &&
|
425
|
+
pulp_labels == o.pulp_labels &&
|
374
426
|
download_concurrency == o.download_concurrency &&
|
375
427
|
policy == o.policy &&
|
376
428
|
total_timeout == o.total_timeout &&
|
377
429
|
connect_timeout == o.connect_timeout &&
|
378
430
|
sock_connect_timeout == o.sock_connect_timeout &&
|
379
431
|
sock_read_timeout == o.sock_read_timeout &&
|
432
|
+
headers == o.headers &&
|
433
|
+
rate_limit == o.rate_limit &&
|
380
434
|
distributions == o.distributions &&
|
381
435
|
components == o.components &&
|
382
436
|
architectures == o.architectures &&
|
@@ -396,7 +450,7 @@ module PulpDebClient
|
|
396
450
|
# Calculates hash code according to all attributes.
|
397
451
|
# @return [Integer] Hash code
|
398
452
|
def hash
|
399
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey, ignore_missing_package_indices].hash
|
453
|
+
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey, ignore_missing_package_indices].hash
|
400
454
|
end
|
401
455
|
|
402
456
|
# Builds the object from hash
|
@@ -15,19 +15,26 @@ require 'date'
|
|
15
15
|
module PulpDebClient
|
16
16
|
# A Serializer for AptRepository.
|
17
17
|
class PatcheddebAptRepository
|
18
|
+
attr_accessor :pulp_labels
|
19
|
+
|
18
20
|
# A unique name for this repository.
|
19
21
|
attr_accessor :name
|
20
22
|
|
21
23
|
# An optional description.
|
22
24
|
attr_accessor :description
|
23
25
|
|
26
|
+
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
27
|
+
attr_accessor :retained_versions
|
28
|
+
|
24
29
|
attr_accessor :remote
|
25
30
|
|
26
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
32
|
def self.attribute_map
|
28
33
|
{
|
34
|
+
:'pulp_labels' => :'pulp_labels',
|
29
35
|
:'name' => :'name',
|
30
36
|
:'description' => :'description',
|
37
|
+
:'retained_versions' => :'retained_versions',
|
31
38
|
:'remote' => :'remote'
|
32
39
|
}
|
33
40
|
end
|
@@ -35,8 +42,10 @@ module PulpDebClient
|
|
35
42
|
# Attribute type mapping.
|
36
43
|
def self.openapi_types
|
37
44
|
{
|
45
|
+
:'pulp_labels' => :'Object',
|
38
46
|
:'name' => :'String',
|
39
47
|
:'description' => :'String',
|
48
|
+
:'retained_versions' => :'Integer',
|
40
49
|
:'remote' => :'String'
|
41
50
|
}
|
42
51
|
end
|
@@ -45,6 +54,7 @@ module PulpDebClient
|
|
45
54
|
def self.openapi_nullable
|
46
55
|
Set.new([
|
47
56
|
:'description',
|
57
|
+
:'retained_versions',
|
48
58
|
:'remote'
|
49
59
|
])
|
50
60
|
end
|
@@ -64,6 +74,10 @@ module PulpDebClient
|
|
64
74
|
h[k.to_sym] = v
|
65
75
|
}
|
66
76
|
|
77
|
+
if attributes.key?(:'pulp_labels')
|
78
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
79
|
+
end
|
80
|
+
|
67
81
|
if attributes.key?(:'name')
|
68
82
|
self.name = attributes[:'name']
|
69
83
|
end
|
@@ -72,6 +86,10 @@ module PulpDebClient
|
|
72
86
|
self.description = attributes[:'description']
|
73
87
|
end
|
74
88
|
|
89
|
+
if attributes.key?(:'retained_versions')
|
90
|
+
self.retained_versions = attributes[:'retained_versions']
|
91
|
+
end
|
92
|
+
|
75
93
|
if attributes.key?(:'remote')
|
76
94
|
self.remote = attributes[:'remote']
|
77
95
|
end
|
@@ -81,22 +99,39 @@ module PulpDebClient
|
|
81
99
|
# @return Array for valid properties with the reasons
|
82
100
|
def list_invalid_properties
|
83
101
|
invalid_properties = Array.new
|
102
|
+
if !@retained_versions.nil? && @retained_versions < 1
|
103
|
+
invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
|
104
|
+
end
|
105
|
+
|
84
106
|
invalid_properties
|
85
107
|
end
|
86
108
|
|
87
109
|
# Check to see if the all the properties in the model are valid
|
88
110
|
# @return true if the model is valid
|
89
111
|
def valid?
|
112
|
+
return false if !@retained_versions.nil? && @retained_versions < 1
|
90
113
|
true
|
91
114
|
end
|
92
115
|
|
116
|
+
# Custom attribute writer method with validation
|
117
|
+
# @param [Object] retained_versions Value to be assigned
|
118
|
+
def retained_versions=(retained_versions)
|
119
|
+
if !retained_versions.nil? && retained_versions < 1
|
120
|
+
fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
|
121
|
+
end
|
122
|
+
|
123
|
+
@retained_versions = retained_versions
|
124
|
+
end
|
125
|
+
|
93
126
|
# Checks equality by comparing each attribute.
|
94
127
|
# @param [Object] Object to be compared
|
95
128
|
def ==(o)
|
96
129
|
return true if self.equal?(o)
|
97
130
|
self.class == o.class &&
|
131
|
+
pulp_labels == o.pulp_labels &&
|
98
132
|
name == o.name &&
|
99
133
|
description == o.description &&
|
134
|
+
retained_versions == o.retained_versions &&
|
100
135
|
remote == o.remote
|
101
136
|
end
|
102
137
|
|
@@ -109,7 +144,7 @@ module PulpDebClient
|
|
109
144
|
# Calculates hash code according to all attributes.
|
110
145
|
# @return [Integer] Hash code
|
111
146
|
def hash
|
112
|
-
[name, description, remote].hash
|
147
|
+
[pulp_labels, name, description, retained_versions, remote].hash
|
113
148
|
end
|
114
149
|
|
115
150
|
# Builds the object from hash
|