pulp_python_client 3.27.0 → 3.28.0
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 +4 -4
- data/docs/ContentPackagesApi.md +8 -8
- data/docs/PatchedpythonPythonDistribution.md +2 -2
- data/docs/PatchedpythonPythonRepository.md +5 -1
- data/docs/PythonPythonDistribution.md +2 -2
- data/docs/PythonPythonDistributionResponse.md +4 -2
- data/docs/PythonPythonRepository.md +5 -1
- data/docs/PythonPythonRepositoryResponse.md +5 -1
- data/docs/RepositoriesPythonApi.md +18 -2
- data/lib/pulp_python_client/api/content_packages_api.rb +9 -9
- data/lib/pulp_python_client/api/repositories_python_api.rb +27 -3
- data/lib/pulp_python_client/models/patchedpython_python_distribution.rb +12 -12
- data/lib/pulp_python_client/models/patchedpython_python_repository.rb +42 -4
- data/lib/pulp_python_client/models/python_python_distribution.rb +12 -12
- data/lib/pulp_python_client/models/python_python_distribution_response.rb +22 -12
- data/lib/pulp_python_client/models/python_python_repository.rb +42 -4
- data/lib/pulp_python_client/models/python_python_repository_response.rb +42 -4
- data/lib/pulp_python_client/version.rb +1 -1
- data/spec/api/content_packages_api_spec.rb +4 -4
- data/spec/api/repositories_python_api_spec.rb +9 -1
- data/spec/models/patchedpython_python_distribution_spec.rb +2 -2
- data/spec/models/patchedpython_python_repository_spec.rb +12 -0
- data/spec/models/python_python_distribution_response_spec.rb +8 -2
- data/spec/models/python_python_distribution_spec.rb +2 -2
- data/spec/models/python_python_repository_response_spec.rb +12 -0
- data/spec/models/python_python_repository_spec.rb +12 -0
- metadata +44 -44
|
@@ -27,12 +27,18 @@ module PulpPythonClient
|
|
|
27
27
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
28
28
|
attr_accessor :retain_repo_versions
|
|
29
29
|
|
|
30
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
31
|
+
attr_accessor :retain_checkpoints
|
|
32
|
+
|
|
30
33
|
# An optional remote to use by default when syncing.
|
|
31
34
|
attr_accessor :remote
|
|
32
35
|
|
|
33
36
|
# Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. [Deprecated]
|
|
34
37
|
attr_accessor :autopublish
|
|
35
38
|
|
|
39
|
+
# Whether to allow package substitution (replacing existing packages with packages that have the same filename but a different checksum). When False, any new repository version that would cause such a substitution will be rejected. This applies to all repository version creation paths including uploads, modify, and sync. When True (the default), package substitution is allowed.
|
|
40
|
+
attr_accessor :allow_package_substitution
|
|
41
|
+
|
|
36
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
43
|
def self.attribute_map
|
|
38
44
|
{
|
|
@@ -40,8 +46,10 @@ module PulpPythonClient
|
|
|
40
46
|
:'name' => :'name',
|
|
41
47
|
:'description' => :'description',
|
|
42
48
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
49
|
+
:'retain_checkpoints' => :'retain_checkpoints',
|
|
43
50
|
:'remote' => :'remote',
|
|
44
|
-
:'autopublish' => :'autopublish'
|
|
51
|
+
:'autopublish' => :'autopublish',
|
|
52
|
+
:'allow_package_substitution' => :'allow_package_substitution'
|
|
45
53
|
}
|
|
46
54
|
end
|
|
47
55
|
|
|
@@ -57,8 +65,10 @@ module PulpPythonClient
|
|
|
57
65
|
:'name' => :'String',
|
|
58
66
|
:'description' => :'String',
|
|
59
67
|
:'retain_repo_versions' => :'Integer',
|
|
68
|
+
:'retain_checkpoints' => :'Integer',
|
|
60
69
|
:'remote' => :'String',
|
|
61
|
-
:'autopublish' => :'Boolean'
|
|
70
|
+
:'autopublish' => :'Boolean',
|
|
71
|
+
:'allow_package_substitution' => :'Boolean'
|
|
62
72
|
}
|
|
63
73
|
end
|
|
64
74
|
|
|
@@ -67,6 +77,7 @@ module PulpPythonClient
|
|
|
67
77
|
Set.new([
|
|
68
78
|
:'description',
|
|
69
79
|
:'retain_repo_versions',
|
|
80
|
+
:'retain_checkpoints',
|
|
70
81
|
:'remote',
|
|
71
82
|
])
|
|
72
83
|
end
|
|
@@ -104,6 +115,10 @@ module PulpPythonClient
|
|
|
104
115
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
105
116
|
end
|
|
106
117
|
|
|
118
|
+
if attributes.key?(:'retain_checkpoints')
|
|
119
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
120
|
+
end
|
|
121
|
+
|
|
107
122
|
if attributes.key?(:'remote')
|
|
108
123
|
self.remote = attributes[:'remote']
|
|
109
124
|
end
|
|
@@ -113,6 +128,12 @@ module PulpPythonClient
|
|
|
113
128
|
else
|
|
114
129
|
self.autopublish = false
|
|
115
130
|
end
|
|
131
|
+
|
|
132
|
+
if attributes.key?(:'allow_package_substitution')
|
|
133
|
+
self.allow_package_substitution = attributes[:'allow_package_substitution']
|
|
134
|
+
else
|
|
135
|
+
self.allow_package_substitution = true
|
|
136
|
+
end
|
|
116
137
|
end
|
|
117
138
|
|
|
118
139
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -132,6 +153,10 @@ module PulpPythonClient
|
|
|
132
153
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
133
154
|
end
|
|
134
155
|
|
|
156
|
+
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
157
|
+
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
158
|
+
end
|
|
159
|
+
|
|
135
160
|
invalid_properties
|
|
136
161
|
end
|
|
137
162
|
|
|
@@ -142,6 +167,7 @@ module PulpPythonClient
|
|
|
142
167
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
143
168
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
144
169
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
170
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
145
171
|
true
|
|
146
172
|
end
|
|
147
173
|
|
|
@@ -179,6 +205,16 @@ module PulpPythonClient
|
|
|
179
205
|
@retain_repo_versions = retain_repo_versions
|
|
180
206
|
end
|
|
181
207
|
|
|
208
|
+
# Custom attribute writer method with validation
|
|
209
|
+
# @param [Object] retain_checkpoints Value to be assigned
|
|
210
|
+
def retain_checkpoints=(retain_checkpoints)
|
|
211
|
+
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
212
|
+
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
@retain_checkpoints = retain_checkpoints
|
|
216
|
+
end
|
|
217
|
+
|
|
182
218
|
# Checks equality by comparing each attribute.
|
|
183
219
|
# @param [Object] Object to be compared
|
|
184
220
|
def ==(o)
|
|
@@ -188,8 +224,10 @@ module PulpPythonClient
|
|
|
188
224
|
name == o.name &&
|
|
189
225
|
description == o.description &&
|
|
190
226
|
retain_repo_versions == o.retain_repo_versions &&
|
|
227
|
+
retain_checkpoints == o.retain_checkpoints &&
|
|
191
228
|
remote == o.remote &&
|
|
192
|
-
autopublish == o.autopublish
|
|
229
|
+
autopublish == o.autopublish &&
|
|
230
|
+
allow_package_substitution == o.allow_package_substitution
|
|
193
231
|
end
|
|
194
232
|
|
|
195
233
|
# @see the `==` method
|
|
@@ -201,7 +239,7 @@ module PulpPythonClient
|
|
|
201
239
|
# Calculates hash code according to all attributes.
|
|
202
240
|
# @return [Integer] Hash code
|
|
203
241
|
def hash
|
|
204
|
-
[pulp_labels, name, description, retain_repo_versions, remote, autopublish].hash
|
|
242
|
+
[pulp_labels, name, description, retain_repo_versions, retain_checkpoints, remote, autopublish, allow_package_substitution].hash
|
|
205
243
|
end
|
|
206
244
|
|
|
207
245
|
# Builds the object from hash
|
|
@@ -33,12 +33,12 @@ module PulpPythonClient
|
|
|
33
33
|
# The latest RepositoryVersion for this Repository will be served.
|
|
34
34
|
attr_accessor :repository
|
|
35
35
|
|
|
36
|
-
# Publication to be served. [Deprecated]
|
|
37
|
-
attr_accessor :publication
|
|
38
|
-
|
|
39
36
|
# RepositoryVersion to be served.
|
|
40
37
|
attr_accessor :repository_version
|
|
41
38
|
|
|
39
|
+
# Publication to be served. [Deprecated]
|
|
40
|
+
attr_accessor :publication
|
|
41
|
+
|
|
42
42
|
# Allow packages to be uploaded to this index.
|
|
43
43
|
attr_accessor :allow_uploads
|
|
44
44
|
|
|
@@ -54,8 +54,8 @@ module PulpPythonClient
|
|
|
54
54
|
:'pulp_labels' => :'pulp_labels',
|
|
55
55
|
:'name' => :'name',
|
|
56
56
|
:'repository' => :'repository',
|
|
57
|
-
:'publication' => :'publication',
|
|
58
57
|
:'repository_version' => :'repository_version',
|
|
58
|
+
:'publication' => :'publication',
|
|
59
59
|
:'allow_uploads' => :'allow_uploads',
|
|
60
60
|
:'remote' => :'remote'
|
|
61
61
|
}
|
|
@@ -75,8 +75,8 @@ module PulpPythonClient
|
|
|
75
75
|
:'pulp_labels' => :'Hash<String, String>',
|
|
76
76
|
:'name' => :'String',
|
|
77
77
|
:'repository' => :'String',
|
|
78
|
-
:'publication' => :'String',
|
|
79
78
|
:'repository_version' => :'String',
|
|
79
|
+
:'publication' => :'String',
|
|
80
80
|
:'allow_uploads' => :'Boolean',
|
|
81
81
|
:'remote' => :'String'
|
|
82
82
|
}
|
|
@@ -87,8 +87,8 @@ module PulpPythonClient
|
|
|
87
87
|
Set.new([
|
|
88
88
|
:'content_guard',
|
|
89
89
|
:'repository',
|
|
90
|
-
:'publication',
|
|
91
90
|
:'repository_version',
|
|
91
|
+
:'publication',
|
|
92
92
|
:'remote'
|
|
93
93
|
])
|
|
94
94
|
end
|
|
@@ -140,14 +140,14 @@ module PulpPythonClient
|
|
|
140
140
|
self.repository = attributes[:'repository']
|
|
141
141
|
end
|
|
142
142
|
|
|
143
|
-
if attributes.key?(:'publication')
|
|
144
|
-
self.publication = attributes[:'publication']
|
|
145
|
-
end
|
|
146
|
-
|
|
147
143
|
if attributes.key?(:'repository_version')
|
|
148
144
|
self.repository_version = attributes[:'repository_version']
|
|
149
145
|
end
|
|
150
146
|
|
|
147
|
+
if attributes.key?(:'publication')
|
|
148
|
+
self.publication = attributes[:'publication']
|
|
149
|
+
end
|
|
150
|
+
|
|
151
151
|
if attributes.key?(:'allow_uploads')
|
|
152
152
|
self.allow_uploads = attributes[:'allow_uploads']
|
|
153
153
|
else
|
|
@@ -233,8 +233,8 @@ module PulpPythonClient
|
|
|
233
233
|
pulp_labels == o.pulp_labels &&
|
|
234
234
|
name == o.name &&
|
|
235
235
|
repository == o.repository &&
|
|
236
|
-
publication == o.publication &&
|
|
237
236
|
repository_version == o.repository_version &&
|
|
237
|
+
publication == o.publication &&
|
|
238
238
|
allow_uploads == o.allow_uploads &&
|
|
239
239
|
remote == o.remote
|
|
240
240
|
end
|
|
@@ -248,7 +248,7 @@ module PulpPythonClient
|
|
|
248
248
|
# Calculates hash code according to all attributes.
|
|
249
249
|
# @return [Integer] Hash code
|
|
250
250
|
def hash
|
|
251
|
-
[base_path, content_guard, hidden, pulp_labels, name, repository,
|
|
251
|
+
[base_path, content_guard, hidden, pulp_labels, name, repository, repository_version, publication, allow_uploads, remote].hash
|
|
252
252
|
end
|
|
253
253
|
|
|
254
254
|
# Builds the object from hash
|
|
@@ -35,6 +35,9 @@ module PulpPythonClient
|
|
|
35
35
|
# An optional content-guard.
|
|
36
36
|
attr_accessor :content_guard
|
|
37
37
|
|
|
38
|
+
# The Pulp Resource Name (PRN) of the associated optional content guard.
|
|
39
|
+
attr_accessor :content_guard_prn
|
|
40
|
+
|
|
38
41
|
# Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
|
|
39
42
|
attr_accessor :no_content_change_since
|
|
40
43
|
|
|
@@ -49,12 +52,12 @@ module PulpPythonClient
|
|
|
49
52
|
# The latest RepositoryVersion for this Repository will be served.
|
|
50
53
|
attr_accessor :repository
|
|
51
54
|
|
|
52
|
-
# Publication to be served. [Deprecated]
|
|
53
|
-
attr_accessor :publication
|
|
54
|
-
|
|
55
55
|
# RepositoryVersion to be served.
|
|
56
56
|
attr_accessor :repository_version
|
|
57
57
|
|
|
58
|
+
# Publication to be served. [Deprecated]
|
|
59
|
+
attr_accessor :publication
|
|
60
|
+
|
|
58
61
|
# Allow packages to be uploaded to this index.
|
|
59
62
|
attr_accessor :allow_uploads
|
|
60
63
|
|
|
@@ -71,13 +74,14 @@ module PulpPythonClient
|
|
|
71
74
|
:'base_path' => :'base_path',
|
|
72
75
|
:'base_url' => :'base_url',
|
|
73
76
|
:'content_guard' => :'content_guard',
|
|
77
|
+
:'content_guard_prn' => :'content_guard_prn',
|
|
74
78
|
:'no_content_change_since' => :'no_content_change_since',
|
|
75
79
|
:'hidden' => :'hidden',
|
|
76
80
|
:'pulp_labels' => :'pulp_labels',
|
|
77
81
|
:'name' => :'name',
|
|
78
82
|
:'repository' => :'repository',
|
|
79
|
-
:'publication' => :'publication',
|
|
80
83
|
:'repository_version' => :'repository_version',
|
|
84
|
+
:'publication' => :'publication',
|
|
81
85
|
:'allow_uploads' => :'allow_uploads',
|
|
82
86
|
:'remote' => :'remote'
|
|
83
87
|
}
|
|
@@ -98,13 +102,14 @@ module PulpPythonClient
|
|
|
98
102
|
:'base_path' => :'String',
|
|
99
103
|
:'base_url' => :'String',
|
|
100
104
|
:'content_guard' => :'String',
|
|
105
|
+
:'content_guard_prn' => :'String',
|
|
101
106
|
:'no_content_change_since' => :'String',
|
|
102
107
|
:'hidden' => :'Boolean',
|
|
103
108
|
:'pulp_labels' => :'Hash<String, String>',
|
|
104
109
|
:'name' => :'String',
|
|
105
110
|
:'repository' => :'String',
|
|
106
|
-
:'publication' => :'String',
|
|
107
111
|
:'repository_version' => :'String',
|
|
112
|
+
:'publication' => :'String',
|
|
108
113
|
:'allow_uploads' => :'Boolean',
|
|
109
114
|
:'remote' => :'String'
|
|
110
115
|
}
|
|
@@ -115,8 +120,8 @@ module PulpPythonClient
|
|
|
115
120
|
Set.new([
|
|
116
121
|
:'content_guard',
|
|
117
122
|
:'repository',
|
|
118
|
-
:'publication',
|
|
119
123
|
:'repository_version',
|
|
124
|
+
:'publication',
|
|
120
125
|
:'remote'
|
|
121
126
|
])
|
|
122
127
|
end
|
|
@@ -166,6 +171,10 @@ module PulpPythonClient
|
|
|
166
171
|
self.content_guard = attributes[:'content_guard']
|
|
167
172
|
end
|
|
168
173
|
|
|
174
|
+
if attributes.key?(:'content_guard_prn')
|
|
175
|
+
self.content_guard_prn = attributes[:'content_guard_prn']
|
|
176
|
+
end
|
|
177
|
+
|
|
169
178
|
if attributes.key?(:'no_content_change_since')
|
|
170
179
|
self.no_content_change_since = attributes[:'no_content_change_since']
|
|
171
180
|
end
|
|
@@ -192,14 +201,14 @@ module PulpPythonClient
|
|
|
192
201
|
self.repository = attributes[:'repository']
|
|
193
202
|
end
|
|
194
203
|
|
|
195
|
-
if attributes.key?(:'publication')
|
|
196
|
-
self.publication = attributes[:'publication']
|
|
197
|
-
end
|
|
198
|
-
|
|
199
204
|
if attributes.key?(:'repository_version')
|
|
200
205
|
self.repository_version = attributes[:'repository_version']
|
|
201
206
|
end
|
|
202
207
|
|
|
208
|
+
if attributes.key?(:'publication')
|
|
209
|
+
self.publication = attributes[:'publication']
|
|
210
|
+
end
|
|
211
|
+
|
|
203
212
|
if attributes.key?(:'allow_uploads')
|
|
204
213
|
self.allow_uploads = attributes[:'allow_uploads']
|
|
205
214
|
else
|
|
@@ -248,13 +257,14 @@ module PulpPythonClient
|
|
|
248
257
|
base_path == o.base_path &&
|
|
249
258
|
base_url == o.base_url &&
|
|
250
259
|
content_guard == o.content_guard &&
|
|
260
|
+
content_guard_prn == o.content_guard_prn &&
|
|
251
261
|
no_content_change_since == o.no_content_change_since &&
|
|
252
262
|
hidden == o.hidden &&
|
|
253
263
|
pulp_labels == o.pulp_labels &&
|
|
254
264
|
name == o.name &&
|
|
255
265
|
repository == o.repository &&
|
|
256
|
-
publication == o.publication &&
|
|
257
266
|
repository_version == o.repository_version &&
|
|
267
|
+
publication == o.publication &&
|
|
258
268
|
allow_uploads == o.allow_uploads &&
|
|
259
269
|
remote == o.remote
|
|
260
270
|
end
|
|
@@ -268,7 +278,7 @@ module PulpPythonClient
|
|
|
268
278
|
# Calculates hash code according to all attributes.
|
|
269
279
|
# @return [Integer] Hash code
|
|
270
280
|
def hash
|
|
271
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, base_path, base_url, content_guard, no_content_change_since, hidden, pulp_labels, name, repository,
|
|
281
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, base_path, base_url, content_guard, content_guard_prn, no_content_change_since, hidden, pulp_labels, name, repository, repository_version, publication, allow_uploads, remote].hash
|
|
272
282
|
end
|
|
273
283
|
|
|
274
284
|
# Builds the object from hash
|
|
@@ -27,12 +27,18 @@ module PulpPythonClient
|
|
|
27
27
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
28
28
|
attr_accessor :retain_repo_versions
|
|
29
29
|
|
|
30
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
31
|
+
attr_accessor :retain_checkpoints
|
|
32
|
+
|
|
30
33
|
# An optional remote to use by default when syncing.
|
|
31
34
|
attr_accessor :remote
|
|
32
35
|
|
|
33
36
|
# Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. [Deprecated]
|
|
34
37
|
attr_accessor :autopublish
|
|
35
38
|
|
|
39
|
+
# Whether to allow package substitution (replacing existing packages with packages that have the same filename but a different checksum). When False, any new repository version that would cause such a substitution will be rejected. This applies to all repository version creation paths including uploads, modify, and sync. When True (the default), package substitution is allowed.
|
|
40
|
+
attr_accessor :allow_package_substitution
|
|
41
|
+
|
|
36
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
43
|
def self.attribute_map
|
|
38
44
|
{
|
|
@@ -40,8 +46,10 @@ module PulpPythonClient
|
|
|
40
46
|
:'name' => :'name',
|
|
41
47
|
:'description' => :'description',
|
|
42
48
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
49
|
+
:'retain_checkpoints' => :'retain_checkpoints',
|
|
43
50
|
:'remote' => :'remote',
|
|
44
|
-
:'autopublish' => :'autopublish'
|
|
51
|
+
:'autopublish' => :'autopublish',
|
|
52
|
+
:'allow_package_substitution' => :'allow_package_substitution'
|
|
45
53
|
}
|
|
46
54
|
end
|
|
47
55
|
|
|
@@ -57,8 +65,10 @@ module PulpPythonClient
|
|
|
57
65
|
:'name' => :'String',
|
|
58
66
|
:'description' => :'String',
|
|
59
67
|
:'retain_repo_versions' => :'Integer',
|
|
68
|
+
:'retain_checkpoints' => :'Integer',
|
|
60
69
|
:'remote' => :'String',
|
|
61
|
-
:'autopublish' => :'Boolean'
|
|
70
|
+
:'autopublish' => :'Boolean',
|
|
71
|
+
:'allow_package_substitution' => :'Boolean'
|
|
62
72
|
}
|
|
63
73
|
end
|
|
64
74
|
|
|
@@ -67,6 +77,7 @@ module PulpPythonClient
|
|
|
67
77
|
Set.new([
|
|
68
78
|
:'description',
|
|
69
79
|
:'retain_repo_versions',
|
|
80
|
+
:'retain_checkpoints',
|
|
70
81
|
:'remote',
|
|
71
82
|
])
|
|
72
83
|
end
|
|
@@ -106,6 +117,10 @@ module PulpPythonClient
|
|
|
106
117
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
107
118
|
end
|
|
108
119
|
|
|
120
|
+
if attributes.key?(:'retain_checkpoints')
|
|
121
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
122
|
+
end
|
|
123
|
+
|
|
109
124
|
if attributes.key?(:'remote')
|
|
110
125
|
self.remote = attributes[:'remote']
|
|
111
126
|
end
|
|
@@ -115,6 +130,12 @@ module PulpPythonClient
|
|
|
115
130
|
else
|
|
116
131
|
self.autopublish = false
|
|
117
132
|
end
|
|
133
|
+
|
|
134
|
+
if attributes.key?(:'allow_package_substitution')
|
|
135
|
+
self.allow_package_substitution = attributes[:'allow_package_substitution']
|
|
136
|
+
else
|
|
137
|
+
self.allow_package_substitution = true
|
|
138
|
+
end
|
|
118
139
|
end
|
|
119
140
|
|
|
120
141
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -138,6 +159,10 @@ module PulpPythonClient
|
|
|
138
159
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
139
160
|
end
|
|
140
161
|
|
|
162
|
+
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
163
|
+
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
164
|
+
end
|
|
165
|
+
|
|
141
166
|
invalid_properties
|
|
142
167
|
end
|
|
143
168
|
|
|
@@ -149,6 +174,7 @@ module PulpPythonClient
|
|
|
149
174
|
return false if @name.to_s.length < 1
|
|
150
175
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
151
176
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
177
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
152
178
|
true
|
|
153
179
|
end
|
|
154
180
|
|
|
@@ -186,6 +212,16 @@ module PulpPythonClient
|
|
|
186
212
|
@retain_repo_versions = retain_repo_versions
|
|
187
213
|
end
|
|
188
214
|
|
|
215
|
+
# Custom attribute writer method with validation
|
|
216
|
+
# @param [Object] retain_checkpoints Value to be assigned
|
|
217
|
+
def retain_checkpoints=(retain_checkpoints)
|
|
218
|
+
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
219
|
+
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
@retain_checkpoints = retain_checkpoints
|
|
223
|
+
end
|
|
224
|
+
|
|
189
225
|
# Checks equality by comparing each attribute.
|
|
190
226
|
# @param [Object] Object to be compared
|
|
191
227
|
def ==(o)
|
|
@@ -195,8 +231,10 @@ module PulpPythonClient
|
|
|
195
231
|
name == o.name &&
|
|
196
232
|
description == o.description &&
|
|
197
233
|
retain_repo_versions == o.retain_repo_versions &&
|
|
234
|
+
retain_checkpoints == o.retain_checkpoints &&
|
|
198
235
|
remote == o.remote &&
|
|
199
|
-
autopublish == o.autopublish
|
|
236
|
+
autopublish == o.autopublish &&
|
|
237
|
+
allow_package_substitution == o.allow_package_substitution
|
|
200
238
|
end
|
|
201
239
|
|
|
202
240
|
# @see the `==` method
|
|
@@ -208,7 +246,7 @@ module PulpPythonClient
|
|
|
208
246
|
# Calculates hash code according to all attributes.
|
|
209
247
|
# @return [Integer] Hash code
|
|
210
248
|
def hash
|
|
211
|
-
[pulp_labels, name, description, retain_repo_versions, remote, autopublish].hash
|
|
249
|
+
[pulp_labels, name, description, retain_repo_versions, retain_checkpoints, remote, autopublish, allow_package_substitution].hash
|
|
212
250
|
end
|
|
213
251
|
|
|
214
252
|
# Builds the object from hash
|
|
@@ -42,12 +42,18 @@ module PulpPythonClient
|
|
|
42
42
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
43
43
|
attr_accessor :retain_repo_versions
|
|
44
44
|
|
|
45
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
46
|
+
attr_accessor :retain_checkpoints
|
|
47
|
+
|
|
45
48
|
# An optional remote to use by default when syncing.
|
|
46
49
|
attr_accessor :remote
|
|
47
50
|
|
|
48
51
|
# Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. [Deprecated]
|
|
49
52
|
attr_accessor :autopublish
|
|
50
53
|
|
|
54
|
+
# Whether to allow package substitution (replacing existing packages with packages that have the same filename but a different checksum). When False, any new repository version that would cause such a substitution will be rejected. This applies to all repository version creation paths including uploads, modify, and sync. When True (the default), package substitution is allowed.
|
|
55
|
+
attr_accessor :allow_package_substitution
|
|
56
|
+
|
|
51
57
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
52
58
|
def self.attribute_map
|
|
53
59
|
{
|
|
@@ -61,8 +67,10 @@ module PulpPythonClient
|
|
|
61
67
|
:'name' => :'name',
|
|
62
68
|
:'description' => :'description',
|
|
63
69
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
70
|
+
:'retain_checkpoints' => :'retain_checkpoints',
|
|
64
71
|
:'remote' => :'remote',
|
|
65
|
-
:'autopublish' => :'autopublish'
|
|
72
|
+
:'autopublish' => :'autopublish',
|
|
73
|
+
:'allow_package_substitution' => :'allow_package_substitution'
|
|
66
74
|
}
|
|
67
75
|
end
|
|
68
76
|
|
|
@@ -84,8 +92,10 @@ module PulpPythonClient
|
|
|
84
92
|
:'name' => :'String',
|
|
85
93
|
:'description' => :'String',
|
|
86
94
|
:'retain_repo_versions' => :'Integer',
|
|
95
|
+
:'retain_checkpoints' => :'Integer',
|
|
87
96
|
:'remote' => :'String',
|
|
88
|
-
:'autopublish' => :'Boolean'
|
|
97
|
+
:'autopublish' => :'Boolean',
|
|
98
|
+
:'allow_package_substitution' => :'Boolean'
|
|
89
99
|
}
|
|
90
100
|
end
|
|
91
101
|
|
|
@@ -94,6 +104,7 @@ module PulpPythonClient
|
|
|
94
104
|
Set.new([
|
|
95
105
|
:'description',
|
|
96
106
|
:'retain_repo_versions',
|
|
107
|
+
:'retain_checkpoints',
|
|
97
108
|
:'remote',
|
|
98
109
|
])
|
|
99
110
|
end
|
|
@@ -157,6 +168,10 @@ module PulpPythonClient
|
|
|
157
168
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
158
169
|
end
|
|
159
170
|
|
|
171
|
+
if attributes.key?(:'retain_checkpoints')
|
|
172
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
173
|
+
end
|
|
174
|
+
|
|
160
175
|
if attributes.key?(:'remote')
|
|
161
176
|
self.remote = attributes[:'remote']
|
|
162
177
|
end
|
|
@@ -166,6 +181,12 @@ module PulpPythonClient
|
|
|
166
181
|
else
|
|
167
182
|
self.autopublish = false
|
|
168
183
|
end
|
|
184
|
+
|
|
185
|
+
if attributes.key?(:'allow_package_substitution')
|
|
186
|
+
self.allow_package_substitution = attributes[:'allow_package_substitution']
|
|
187
|
+
else
|
|
188
|
+
self.allow_package_substitution = true
|
|
189
|
+
end
|
|
169
190
|
end
|
|
170
191
|
|
|
171
192
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -181,6 +202,10 @@ module PulpPythonClient
|
|
|
181
202
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
182
203
|
end
|
|
183
204
|
|
|
205
|
+
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
206
|
+
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
207
|
+
end
|
|
208
|
+
|
|
184
209
|
invalid_properties
|
|
185
210
|
end
|
|
186
211
|
|
|
@@ -190,6 +215,7 @@ module PulpPythonClient
|
|
|
190
215
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
191
216
|
return false if @name.nil?
|
|
192
217
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
218
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
193
219
|
true
|
|
194
220
|
end
|
|
195
221
|
|
|
@@ -203,6 +229,16 @@ module PulpPythonClient
|
|
|
203
229
|
@retain_repo_versions = retain_repo_versions
|
|
204
230
|
end
|
|
205
231
|
|
|
232
|
+
# Custom attribute writer method with validation
|
|
233
|
+
# @param [Object] retain_checkpoints Value to be assigned
|
|
234
|
+
def retain_checkpoints=(retain_checkpoints)
|
|
235
|
+
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
236
|
+
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
@retain_checkpoints = retain_checkpoints
|
|
240
|
+
end
|
|
241
|
+
|
|
206
242
|
# Checks equality by comparing each attribute.
|
|
207
243
|
# @param [Object] Object to be compared
|
|
208
244
|
def ==(o)
|
|
@@ -218,8 +254,10 @@ module PulpPythonClient
|
|
|
218
254
|
name == o.name &&
|
|
219
255
|
description == o.description &&
|
|
220
256
|
retain_repo_versions == o.retain_repo_versions &&
|
|
257
|
+
retain_checkpoints == o.retain_checkpoints &&
|
|
221
258
|
remote == o.remote &&
|
|
222
|
-
autopublish == o.autopublish
|
|
259
|
+
autopublish == o.autopublish &&
|
|
260
|
+
allow_package_substitution == o.allow_package_substitution
|
|
223
261
|
end
|
|
224
262
|
|
|
225
263
|
# @see the `==` method
|
|
@@ -231,7 +269,7 @@ module PulpPythonClient
|
|
|
231
269
|
# Calculates hash code according to all attributes.
|
|
232
270
|
# @return [Integer] Hash code
|
|
233
271
|
def hash
|
|
234
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, autopublish].hash
|
|
272
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, retain_checkpoints, remote, autopublish, allow_package_substitution].hash
|
|
235
273
|
end
|
|
236
274
|
|
|
237
275
|
# Builds the object from hash
|
|
@@ -94,11 +94,11 @@ describe 'ContentPackagesApi' do
|
|
|
94
94
|
# @option opts [String] :keywords__contains Filter results where keywords contains value
|
|
95
95
|
# @option opts [Array<String>] :keywords__in Filter results where keywords is in a comma-separated list of values
|
|
96
96
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
97
|
-
# @option opts [String] :name
|
|
98
|
-
# @option opts [String] :name__contains
|
|
99
|
-
# @option opts [Array<String>] :name__in
|
|
97
|
+
# @option opts [String] :name
|
|
98
|
+
# @option opts [String] :name__contains
|
|
99
|
+
# @option opts [Array<String>] :name__in Multiple values may be separated by commas.
|
|
100
100
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
101
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `author` - Author * `-author` - Author (descending) * `author_email` - Author email * `-author_email` - Author email (descending) * `description` - Description * `-description` - Description (descending) * `home_page` - Home page * `-home_page` - Home page (descending) * `keywords` - Keywords * `-keywords` - Keywords (descending) * `license` - License * `-license` - License (descending) * `metadata_version` - Metadata version * `-metadata_version` - Metadata version (descending) * `name` - Name * `-name` - Name (descending) * `platform` - Platform * `-platform` - Platform (descending) * `summary` - Summary * `-summary` - Summary (descending) * `version` - Version * `-version` - Version (descending) * `classifiers` - Classifiers * `-classifiers` - Classifiers (descending) * `download_url` - Download url * `-download_url` - Download url (descending) * `supported_platform` - Supported platform * `-supported_platform` - Supported platform (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `maintainer_email` - Maintainer email * `-maintainer_email` - Maintainer email (descending) * `obsoletes_dist` - Obsoletes dist * `-obsoletes_dist` - Obsoletes dist (descending) * `project_url` - Project url * `-project_url` - Project url (descending) * `project_urls` - Project urls * `-project_urls` - Project urls (descending) * `provides_dist` - Provides dist * `-provides_dist` - Provides dist (descending) * `requires_external` - Requires external * `-requires_external` - Requires external (descending) * `requires_dist` - Requires dist * `-requires_dist` - Requires dist (descending) * `requires_python` - Requires python * `-requires_python` - Requires python (descending) * `description_content_type` - Description content type * `-description_content_type` - Description content type (descending) * `provides_extras` - Provides extras * `-provides_extras` - Provides extras (descending) * `dynamic` - Dynamic * `-dynamic` - Dynamic (descending) * `license_expression` - License expression * `-license_expression` - License expression (descending) * `license_file` - License file * `-license_file` - License file (descending) * `filename` - Filename * `-filename` - Filename (descending) * `packagetype` - Packagetype * `-packagetype` - Packagetype (descending) * `python_version` - Python version * `-python_version` - Python version (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `metadata_sha256` - Metadata sha256 * `-metadata_sha256` - Metadata sha256 (descending) * `size` - Size * `-size` - Size (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
101
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `author` - Author * `-author` - Author (descending) * `author_email` - Author email * `-author_email` - Author email (descending) * `description` - Description * `-description` - Description (descending) * `home_page` - Home page * `-home_page` - Home page (descending) * `keywords` - Keywords * `-keywords` - Keywords (descending) * `license` - License * `-license` - License (descending) * `metadata_version` - Metadata version * `-metadata_version` - Metadata version (descending) * `name` - Name * `-name` - Name (descending) * `platform` - Platform * `-platform` - Platform (descending) * `summary` - Summary * `-summary` - Summary (descending) * `version` - Version * `-version` - Version (descending) * `classifiers` - Classifiers * `-classifiers` - Classifiers (descending) * `download_url` - Download url * `-download_url` - Download url (descending) * `supported_platform` - Supported platform * `-supported_platform` - Supported platform (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `maintainer_email` - Maintainer email * `-maintainer_email` - Maintainer email (descending) * `obsoletes_dist` - Obsoletes dist * `-obsoletes_dist` - Obsoletes dist (descending) * `project_url` - Project url * `-project_url` - Project url (descending) * `project_urls` - Project urls * `-project_urls` - Project urls (descending) * `provides_dist` - Provides dist * `-provides_dist` - Provides dist (descending) * `requires_external` - Requires external * `-requires_external` - Requires external (descending) * `requires_dist` - Requires dist * `-requires_dist` - Requires dist (descending) * `requires_python` - Requires python * `-requires_python` - Requires python (descending) * `description_content_type` - Description content type * `-description_content_type` - Description content type (descending) * `provides_extras` - Provides extras * `-provides_extras` - Provides extras (descending) * `dynamic` - Dynamic * `-dynamic` - Dynamic (descending) * `license_expression` - License expression * `-license_expression` - License expression (descending) * `license_file` - License file * `-license_file` - License file (descending) * `name_normalized` - Name normalized * `-name_normalized` - Name normalized (descending) * `filename` - Filename * `-filename` - Filename (descending) * `packagetype` - Packagetype * `-packagetype` - Packagetype (descending) * `python_version` - Python version * `-python_version` - Python version (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `metadata_sha256` - Metadata sha256 * `-metadata_sha256` - Metadata sha256 (descending) * `size` - Size * `-size` - Size (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
102
102
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
|
103
103
|
# @option opts [String] :packagetype Filter results where packagetype matches value * `bdist_dmg` - bdist_dmg * `bdist_dumb` - bdist_dumb * `bdist_egg` - bdist_egg * `bdist_msi` - bdist_msi * `bdist_rpm` - bdist_rpm * `bdist_wheel` - bdist_wheel * `bdist_wininst` - bdist_wininst * `sdist` - sdist
|
|
104
104
|
# @option opts [Array<String>] :packagetype__in Filter results where packagetype is in a comma-separated list of values
|
|
@@ -89,13 +89,21 @@ describe 'RepositoriesPythonApi' do
|
|
|
89
89
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
|
90
90
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
91
91
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
92
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
92
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `retain_checkpoints` - Retain checkpoints * `-retain_checkpoints` - Retain checkpoints (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
93
93
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
94
94
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
95
95
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
96
96
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
97
97
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
98
98
|
# @option opts [String] :remote
|
|
99
|
+
# @option opts [Integer] :retain_checkpoints Filter results where retain_checkpoints matches value
|
|
100
|
+
# @option opts [Integer] :retain_checkpoints__gt Filter results where retain_checkpoints is greater than value
|
|
101
|
+
# @option opts [Integer] :retain_checkpoints__gte Filter results where retain_checkpoints is greater than or equal to value
|
|
102
|
+
# @option opts [Boolean] :retain_checkpoints__isnull Filter results where retain_checkpoints has a null value
|
|
103
|
+
# @option opts [Integer] :retain_checkpoints__lt Filter results where retain_checkpoints is less than value
|
|
104
|
+
# @option opts [Integer] :retain_checkpoints__lte Filter results where retain_checkpoints is less than or equal to value
|
|
105
|
+
# @option opts [Integer] :retain_checkpoints__ne Filter results where retain_checkpoints not equal to value
|
|
106
|
+
# @option opts [Array<Integer>] :retain_checkpoints__range Filter results where retain_checkpoints is between two comma separated values
|
|
99
107
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
|
100
108
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
|
101
109
|
# @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
|