pulp_ostree_client 2.4.8 → 2.5.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 +5 -4
- data/docs/ContentCommitsApi.md +20 -8
- data/docs/ContentConfigsApi.md +20 -8
- data/docs/ContentContentApi.md +28 -12
- data/docs/ContentObjectsApi.md +20 -8
- data/docs/ContentRefsApi.md +20 -8
- data/docs/ContentSummariesApi.md +20 -8
- data/docs/DistributionsOstreeApi.md +72 -32
- data/docs/OstreeOstreeCommitResponse.md +2 -0
- data/docs/OstreeOstreeConfigResponse.md +2 -0
- data/docs/OstreeOstreeContentResponse.md +2 -0
- data/docs/OstreeOstreeObjectResponse.md +2 -0
- data/docs/OstreeOstreeRefResponse.md +2 -0
- data/docs/OstreeOstreeRemoteResponse.md +1 -1
- data/docs/OstreeOstreeSummaryResponse.md +2 -0
- data/docs/RemotesOstreeApi.md +72 -32
- data/docs/RepositoriesOstreeApi.md +104 -48
- data/docs/RepositoriesOstreeVersionsApi.md +22 -10
- data/docs/RepositoryVersionResponse.md +3 -1
- data/lib/pulp_ostree_client/api/content_commits_api.rb +12 -0
- data/lib/pulp_ostree_client/api/content_configs_api.rb +12 -0
- data/lib/pulp_ostree_client/api/content_content_api.rb +15 -0
- data/lib/pulp_ostree_client/api/content_objects_api.rb +12 -0
- data/lib/pulp_ostree_client/api/content_refs_api.rb +12 -0
- data/lib/pulp_ostree_client/api/content_summaries_api.rb +12 -0
- data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +36 -0
- data/lib/pulp_ostree_client/api/remotes_ostree_api.rb +36 -0
- data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +48 -0
- data/lib/pulp_ostree_client/api/repositories_ostree_versions_api.rb +15 -3
- data/lib/pulp_ostree_client/models/ostree_ostree_commit_response.rb +10 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_config_response.rb +10 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_content_response.rb +10 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_object_response.rb +10 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_ref_response.rb +10 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_remote.rb +0 -15
- data/lib/pulp_ostree_client/models/ostree_ostree_remote_response.rb +0 -15
- data/lib/pulp_ostree_client/models/ostree_ostree_repository.rb +0 -15
- data/lib/pulp_ostree_client/models/ostree_ostree_repository_response.rb +0 -15
- data/lib/pulp_ostree_client/models/ostree_ostree_summary_response.rb +10 -1
- data/lib/pulp_ostree_client/models/paginated_repository_version_response_list.rb +0 -2
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_commit_response_list.rb +0 -2
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_config_response_list.rb +0 -2
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_content_response_list.rb +0 -2
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_distribution_response_list.rb +0 -2
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_object_response_list.rb +0 -2
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_ref_response_list.rb +0 -2
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_remote_response_list.rb +0 -2
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_repository_response_list.rb +0 -2
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_summary_response_list.rb +0 -2
- data/lib/pulp_ostree_client/models/patchedostree_ostree_remote.rb +0 -15
- data/lib/pulp_ostree_client/models/patchedostree_ostree_repository.rb +0 -15
- data/lib/pulp_ostree_client/models/repository_version_response.rb +13 -4
- data/lib/pulp_ostree_client/version.rb +1 -1
- data/spec/api/content_commits_api_spec.rb +4 -0
- data/spec/api/content_configs_api_spec.rb +4 -0
- data/spec/api/content_content_api_spec.rb +5 -0
- data/spec/api/content_objects_api_spec.rb +4 -0
- data/spec/api/content_refs_api_spec.rb +4 -0
- data/spec/api/content_summaries_api_spec.rb +4 -0
- data/spec/api/distributions_ostree_api_spec.rb +12 -0
- data/spec/api/remotes_ostree_api_spec.rb +12 -0
- data/spec/api/repositories_ostree_api_spec.rb +16 -0
- data/spec/api/repositories_ostree_versions_api_spec.rb +5 -1
- data/spec/models/ostree_ostree_commit_response_spec.rb +6 -0
- data/spec/models/ostree_ostree_config_response_spec.rb +6 -0
- data/spec/models/ostree_ostree_content_response_spec.rb +6 -0
- data/spec/models/ostree_ostree_object_response_spec.rb +6 -0
- data/spec/models/ostree_ostree_ref_response_spec.rb +6 -0
- data/spec/models/ostree_ostree_summary_response_spec.rb +6 -0
- data/spec/models/repository_version_response_spec.rb +6 -0
- metadata +43 -43
@@ -30,6 +30,8 @@ module PulpOstreeClient
|
|
30
30
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
31
31
|
attr_accessor :pulp_labels
|
32
32
|
|
33
|
+
attr_accessor :vuln_report
|
34
|
+
|
33
35
|
# Artifact file representing the physical content
|
34
36
|
attr_accessor :artifact
|
35
37
|
|
@@ -49,6 +51,7 @@ module PulpOstreeClient
|
|
49
51
|
:'pulp_created' => :'pulp_created',
|
50
52
|
:'pulp_last_updated' => :'pulp_last_updated',
|
51
53
|
:'pulp_labels' => :'pulp_labels',
|
54
|
+
:'vuln_report' => :'vuln_report',
|
52
55
|
:'artifact' => :'artifact',
|
53
56
|
:'relative_path' => :'relative_path',
|
54
57
|
:'checksum' => :'checksum',
|
@@ -69,6 +72,7 @@ module PulpOstreeClient
|
|
69
72
|
:'pulp_created' => :'Time',
|
70
73
|
:'pulp_last_updated' => :'Time',
|
71
74
|
:'pulp_labels' => :'Hash<String, String>',
|
75
|
+
:'vuln_report' => :'String',
|
72
76
|
:'artifact' => :'String',
|
73
77
|
:'relative_path' => :'String',
|
74
78
|
:'checksum' => :'String',
|
@@ -119,6 +123,10 @@ module PulpOstreeClient
|
|
119
123
|
end
|
120
124
|
end
|
121
125
|
|
126
|
+
if attributes.key?(:'vuln_report')
|
127
|
+
self.vuln_report = attributes[:'vuln_report']
|
128
|
+
end
|
129
|
+
|
122
130
|
if attributes.key?(:'artifact')
|
123
131
|
self.artifact = attributes[:'artifact']
|
124
132
|
else
|
@@ -189,6 +197,7 @@ module PulpOstreeClient
|
|
189
197
|
pulp_created == o.pulp_created &&
|
190
198
|
pulp_last_updated == o.pulp_last_updated &&
|
191
199
|
pulp_labels == o.pulp_labels &&
|
200
|
+
vuln_report == o.vuln_report &&
|
192
201
|
artifact == o.artifact &&
|
193
202
|
relative_path == o.relative_path &&
|
194
203
|
checksum == o.checksum &&
|
@@ -204,7 +213,7 @@ module PulpOstreeClient
|
|
204
213
|
# Calculates hash code according to all attributes.
|
205
214
|
# @return [Integer] Hash code
|
206
215
|
def hash
|
207
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, artifact, relative_path, checksum, typ].hash
|
216
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, artifact, relative_path, checksum, typ].hash
|
208
217
|
end
|
209
218
|
|
210
219
|
# Builds the object from hash
|
@@ -30,6 +30,8 @@ module PulpOstreeClient
|
|
30
30
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
31
31
|
attr_accessor :pulp_labels
|
32
32
|
|
33
|
+
attr_accessor :vuln_report
|
34
|
+
|
33
35
|
# Artifact file representing the physical content
|
34
36
|
attr_accessor :artifact
|
35
37
|
|
@@ -50,6 +52,7 @@ module PulpOstreeClient
|
|
50
52
|
:'pulp_created' => :'pulp_created',
|
51
53
|
:'pulp_last_updated' => :'pulp_last_updated',
|
52
54
|
:'pulp_labels' => :'pulp_labels',
|
55
|
+
:'vuln_report' => :'vuln_report',
|
53
56
|
:'artifact' => :'artifact',
|
54
57
|
:'relative_path' => :'relative_path',
|
55
58
|
:'commit' => :'commit',
|
@@ -71,6 +74,7 @@ module PulpOstreeClient
|
|
71
74
|
:'pulp_created' => :'Time',
|
72
75
|
:'pulp_last_updated' => :'Time',
|
73
76
|
:'pulp_labels' => :'Hash<String, String>',
|
77
|
+
:'vuln_report' => :'String',
|
74
78
|
:'artifact' => :'String',
|
75
79
|
:'relative_path' => :'String',
|
76
80
|
:'commit' => :'String',
|
@@ -122,6 +126,10 @@ module PulpOstreeClient
|
|
122
126
|
end
|
123
127
|
end
|
124
128
|
|
129
|
+
if attributes.key?(:'vuln_report')
|
130
|
+
self.vuln_report = attributes[:'vuln_report']
|
131
|
+
end
|
132
|
+
|
125
133
|
if attributes.key?(:'artifact')
|
126
134
|
self.artifact = attributes[:'artifact']
|
127
135
|
else
|
@@ -196,6 +204,7 @@ module PulpOstreeClient
|
|
196
204
|
pulp_created == o.pulp_created &&
|
197
205
|
pulp_last_updated == o.pulp_last_updated &&
|
198
206
|
pulp_labels == o.pulp_labels &&
|
207
|
+
vuln_report == o.vuln_report &&
|
199
208
|
artifact == o.artifact &&
|
200
209
|
relative_path == o.relative_path &&
|
201
210
|
commit == o.commit &&
|
@@ -212,7 +221,7 @@ module PulpOstreeClient
|
|
212
221
|
# Calculates hash code according to all attributes.
|
213
222
|
# @return [Integer] Hash code
|
214
223
|
def hash
|
215
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, artifact, relative_path, commit, checksum, name].hash
|
224
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, artifact, relative_path, commit, checksum, name].hash
|
216
225
|
end
|
217
226
|
|
218
227
|
# Builds the object from hash
|
@@ -376,10 +376,6 @@ module PulpOstreeClient
|
|
376
376
|
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
377
377
|
end
|
378
378
|
|
379
|
-
if !@download_concurrency.nil? && @download_concurrency < 1
|
380
|
-
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
381
|
-
end
|
382
|
-
|
383
379
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
384
380
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
385
381
|
end
|
@@ -419,7 +415,6 @@ module PulpOstreeClient
|
|
419
415
|
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
420
416
|
return false if !@username.nil? && @username.to_s.length < 1
|
421
417
|
return false if !@password.nil? && @password.to_s.length < 1
|
422
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
423
418
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
424
419
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
425
420
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
@@ -536,16 +531,6 @@ module PulpOstreeClient
|
|
536
531
|
@password = password
|
537
532
|
end
|
538
533
|
|
539
|
-
# Custom attribute writer method with validation
|
540
|
-
# @param [Object] download_concurrency Value to be assigned
|
541
|
-
def download_concurrency=(download_concurrency)
|
542
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
543
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
544
|
-
end
|
545
|
-
|
546
|
-
@download_concurrency = download_concurrency
|
547
|
-
end
|
548
|
-
|
549
534
|
# Custom attribute writer method with validation
|
550
535
|
# @param [Object] total_timeout Value to be assigned
|
551
536
|
def total_timeout=(total_timeout)
|
@@ -332,10 +332,6 @@ module PulpOstreeClient
|
|
332
332
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
333
333
|
end
|
334
334
|
|
335
|
-
if !@download_concurrency.nil? && @download_concurrency < 1
|
336
|
-
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
337
|
-
end
|
338
|
-
|
339
335
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
340
336
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
341
337
|
end
|
@@ -365,7 +361,6 @@ module PulpOstreeClient
|
|
365
361
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
366
362
|
return false if @name.nil?
|
367
363
|
return false if @url.nil?
|
368
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
369
364
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
370
365
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
371
366
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
@@ -374,16 +369,6 @@ module PulpOstreeClient
|
|
374
369
|
true
|
375
370
|
end
|
376
371
|
|
377
|
-
# Custom attribute writer method with validation
|
378
|
-
# @param [Object] download_concurrency Value to be assigned
|
379
|
-
def download_concurrency=(download_concurrency)
|
380
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
381
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
382
|
-
end
|
383
|
-
|
384
|
-
@download_concurrency = download_concurrency
|
385
|
-
end
|
386
|
-
|
387
372
|
# Custom attribute writer method with validation
|
388
373
|
# @param [Object] total_timeout Value to be assigned
|
389
374
|
def total_timeout=(total_timeout)
|
@@ -133,10 +133,6 @@ module PulpOstreeClient
|
|
133
133
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
134
134
|
end
|
135
135
|
|
136
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
137
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
138
|
-
end
|
139
|
-
|
140
136
|
invalid_properties
|
141
137
|
end
|
142
138
|
|
@@ -147,7 +143,6 @@ module PulpOstreeClient
|
|
147
143
|
return false if @name.nil?
|
148
144
|
return false if @name.to_s.length < 1
|
149
145
|
return false if !@description.nil? && @description.to_s.length < 1
|
150
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
151
146
|
true
|
152
147
|
end
|
153
148
|
|
@@ -175,16 +170,6 @@ module PulpOstreeClient
|
|
175
170
|
@description = description
|
176
171
|
end
|
177
172
|
|
178
|
-
# Custom attribute writer method with validation
|
179
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
180
|
-
def retain_repo_versions=(retain_repo_versions)
|
181
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
182
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
183
|
-
end
|
184
|
-
|
185
|
-
@retain_repo_versions = retain_repo_versions
|
186
|
-
end
|
187
|
-
|
188
173
|
# Checks equality by comparing each attribute.
|
189
174
|
# @param [Object] Object to be compared
|
190
175
|
def ==(o)
|
@@ -176,10 +176,6 @@ module PulpOstreeClient
|
|
176
176
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
177
177
|
end
|
178
178
|
|
179
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
180
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
181
|
-
end
|
182
|
-
|
183
179
|
invalid_properties
|
184
180
|
end
|
185
181
|
|
@@ -188,20 +184,9 @@ module PulpOstreeClient
|
|
188
184
|
def valid?
|
189
185
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
190
186
|
return false if @name.nil?
|
191
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
192
187
|
true
|
193
188
|
end
|
194
189
|
|
195
|
-
# Custom attribute writer method with validation
|
196
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
197
|
-
def retain_repo_versions=(retain_repo_versions)
|
198
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
199
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
200
|
-
end
|
201
|
-
|
202
|
-
@retain_repo_versions = retain_repo_versions
|
203
|
-
end
|
204
|
-
|
205
190
|
# Checks equality by comparing each attribute.
|
206
191
|
# @param [Object] Object to be compared
|
207
192
|
def ==(o)
|
@@ -30,6 +30,8 @@ module PulpOstreeClient
|
|
30
30
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
31
31
|
attr_accessor :pulp_labels
|
32
32
|
|
33
|
+
attr_accessor :vuln_report
|
34
|
+
|
33
35
|
# Artifact file representing the physical content
|
34
36
|
attr_accessor :artifact
|
35
37
|
|
@@ -44,6 +46,7 @@ module PulpOstreeClient
|
|
44
46
|
:'pulp_created' => :'pulp_created',
|
45
47
|
:'pulp_last_updated' => :'pulp_last_updated',
|
46
48
|
:'pulp_labels' => :'pulp_labels',
|
49
|
+
:'vuln_report' => :'vuln_report',
|
47
50
|
:'artifact' => :'artifact',
|
48
51
|
:'relative_path' => :'relative_path'
|
49
52
|
}
|
@@ -62,6 +65,7 @@ module PulpOstreeClient
|
|
62
65
|
:'pulp_created' => :'Time',
|
63
66
|
:'pulp_last_updated' => :'Time',
|
64
67
|
:'pulp_labels' => :'Hash<String, String>',
|
68
|
+
:'vuln_report' => :'String',
|
65
69
|
:'artifact' => :'String',
|
66
70
|
:'relative_path' => :'String'
|
67
71
|
}
|
@@ -110,6 +114,10 @@ module PulpOstreeClient
|
|
110
114
|
end
|
111
115
|
end
|
112
116
|
|
117
|
+
if attributes.key?(:'vuln_report')
|
118
|
+
self.vuln_report = attributes[:'vuln_report']
|
119
|
+
end
|
120
|
+
|
113
121
|
if attributes.key?(:'artifact')
|
114
122
|
self.artifact = attributes[:'artifact']
|
115
123
|
else
|
@@ -158,6 +166,7 @@ module PulpOstreeClient
|
|
158
166
|
pulp_created == o.pulp_created &&
|
159
167
|
pulp_last_updated == o.pulp_last_updated &&
|
160
168
|
pulp_labels == o.pulp_labels &&
|
169
|
+
vuln_report == o.vuln_report &&
|
161
170
|
artifact == o.artifact &&
|
162
171
|
relative_path == o.relative_path
|
163
172
|
end
|
@@ -171,7 +180,7 @@ module PulpOstreeClient
|
|
171
180
|
# Calculates hash code according to all attributes.
|
172
181
|
# @return [Integer] Hash code
|
173
182
|
def hash
|
174
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, artifact, relative_path].hash
|
183
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, artifact, relative_path].hash
|
175
184
|
end
|
176
185
|
|
177
186
|
# Builds the object from hash
|
@@ -364,10 +364,6 @@ module PulpOstreeClient
|
|
364
364
|
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
365
365
|
end
|
366
366
|
|
367
|
-
if !@download_concurrency.nil? && @download_concurrency < 1
|
368
|
-
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
369
|
-
end
|
370
|
-
|
371
367
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
372
368
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
373
369
|
end
|
@@ -405,7 +401,6 @@ module PulpOstreeClient
|
|
405
401
|
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
406
402
|
return false if !@username.nil? && @username.to_s.length < 1
|
407
403
|
return false if !@password.nil? && @password.to_s.length < 1
|
408
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
409
404
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
410
405
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
411
406
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
@@ -522,16 +517,6 @@ module PulpOstreeClient
|
|
522
517
|
@password = password
|
523
518
|
end
|
524
519
|
|
525
|
-
# Custom attribute writer method with validation
|
526
|
-
# @param [Object] download_concurrency Value to be assigned
|
527
|
-
def download_concurrency=(download_concurrency)
|
528
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
529
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
530
|
-
end
|
531
|
-
|
532
|
-
@download_concurrency = download_concurrency
|
533
|
-
end
|
534
|
-
|
535
520
|
# Custom attribute writer method with validation
|
536
521
|
# @param [Object] total_timeout Value to be assigned
|
537
522
|
def total_timeout=(total_timeout)
|
@@ -127,10 +127,6 @@ module PulpOstreeClient
|
|
127
127
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
128
128
|
end
|
129
129
|
|
130
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
131
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
132
|
-
end
|
133
|
-
|
134
130
|
invalid_properties
|
135
131
|
end
|
136
132
|
|
@@ -140,7 +136,6 @@ module PulpOstreeClient
|
|
140
136
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
141
137
|
return false if !@name.nil? && @name.to_s.length < 1
|
142
138
|
return false if !@description.nil? && @description.to_s.length < 1
|
143
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
144
139
|
true
|
145
140
|
end
|
146
141
|
|
@@ -168,16 +163,6 @@ module PulpOstreeClient
|
|
168
163
|
@description = description
|
169
164
|
end
|
170
165
|
|
171
|
-
# Custom attribute writer method with validation
|
172
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
173
|
-
def retain_repo_versions=(retain_repo_versions)
|
174
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
175
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
176
|
-
end
|
177
|
-
|
178
|
-
@retain_repo_versions = retain_repo_versions
|
179
|
-
end
|
180
|
-
|
181
166
|
# Checks equality by comparing each attribute.
|
182
167
|
# @param [Object] Object to be compared
|
183
168
|
def ==(o)
|
@@ -37,6 +37,8 @@ module PulpOstreeClient
|
|
37
37
|
# Various count summaries of the content in the version and the HREF to view them.
|
38
38
|
attr_accessor :content_summary
|
39
39
|
|
40
|
+
attr_accessor :vuln_report
|
41
|
+
|
40
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
43
|
def self.attribute_map
|
42
44
|
{
|
@@ -47,7 +49,8 @@ module PulpOstreeClient
|
|
47
49
|
:'number' => :'number',
|
48
50
|
:'repository' => :'repository',
|
49
51
|
:'base_version' => :'base_version',
|
50
|
-
:'content_summary' => :'content_summary'
|
52
|
+
:'content_summary' => :'content_summary',
|
53
|
+
:'vuln_report' => :'vuln_report'
|
51
54
|
}
|
52
55
|
end
|
53
56
|
|
@@ -66,7 +69,8 @@ module PulpOstreeClient
|
|
66
69
|
:'number' => :'Integer',
|
67
70
|
:'repository' => :'String',
|
68
71
|
:'base_version' => :'String',
|
69
|
-
:'content_summary' => :'ContentSummaryResponse'
|
72
|
+
:'content_summary' => :'ContentSummaryResponse',
|
73
|
+
:'vuln_report' => :'String'
|
70
74
|
}
|
71
75
|
end
|
72
76
|
|
@@ -122,6 +126,10 @@ module PulpOstreeClient
|
|
122
126
|
if attributes.key?(:'content_summary')
|
123
127
|
self.content_summary = attributes[:'content_summary']
|
124
128
|
end
|
129
|
+
|
130
|
+
if attributes.key?(:'vuln_report')
|
131
|
+
self.vuln_report = attributes[:'vuln_report']
|
132
|
+
end
|
125
133
|
end
|
126
134
|
|
127
135
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -151,7 +159,8 @@ module PulpOstreeClient
|
|
151
159
|
number == o.number &&
|
152
160
|
repository == o.repository &&
|
153
161
|
base_version == o.base_version &&
|
154
|
-
content_summary == o.content_summary
|
162
|
+
content_summary == o.content_summary &&
|
163
|
+
vuln_report == o.vuln_report
|
155
164
|
end
|
156
165
|
|
157
166
|
# @see the `==` method
|
@@ -163,7 +172,7 @@ module PulpOstreeClient
|
|
163
172
|
# Calculates hash code according to all attributes.
|
164
173
|
# @return [Integer] Hash code
|
165
174
|
def hash
|
166
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, number, repository, base_version, content_summary].hash
|
175
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, number, repository, base_version, content_summary, vuln_report].hash
|
167
176
|
end
|
168
177
|
|
169
178
|
# Builds the object from hash
|
@@ -36,6 +36,7 @@ describe 'ContentCommitsApi' do
|
|
36
36
|
# List ostree commits
|
37
37
|
# A ViewSet class for OSTree commits.
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
39
40
|
# @option opts [String] :checksum Filter results where checksum matches value
|
40
41
|
# @option opts [Integer] :limit Number of results to return per page.
|
41
42
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
@@ -63,6 +64,7 @@ describe 'ContentCommitsApi' do
|
|
63
64
|
# A ViewSet class for OSTree commits.
|
64
65
|
# @param ostree_ostree_commit_href
|
65
66
|
# @param [Hash] opts the optional parameters
|
67
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
66
68
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
67
69
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
68
70
|
# @return [OstreeOstreeCommitResponse]
|
@@ -78,6 +80,7 @@ describe 'ContentCommitsApi' do
|
|
78
80
|
# @param ostree_ostree_commit_href
|
79
81
|
# @param set_label
|
80
82
|
# @param [Hash] opts the optional parameters
|
83
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
81
84
|
# @return [SetLabelResponse]
|
82
85
|
describe 'set_label test' do
|
83
86
|
it 'should work' do
|
@@ -91,6 +94,7 @@ describe 'ContentCommitsApi' do
|
|
91
94
|
# @param ostree_ostree_commit_href
|
92
95
|
# @param unset_label
|
93
96
|
# @param [Hash] opts the optional parameters
|
97
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
94
98
|
# @return [UnsetLabelResponse]
|
95
99
|
describe 'unset_label test' do
|
96
100
|
it 'should work' do
|
@@ -36,6 +36,7 @@ describe 'ContentConfigsApi' do
|
|
36
36
|
# List ostree configs
|
37
37
|
# A ViewSet class for OSTree repository configurations.
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
39
40
|
# @option opts [Integer] :limit Number of results to return per page.
|
40
41
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
41
42
|
# @option opts [Array<String>] :ordering Ordering * `pk` - Pk * `-pk` - Pk (descending)
|
@@ -62,6 +63,7 @@ describe 'ContentConfigsApi' do
|
|
62
63
|
# A ViewSet class for OSTree repository configurations.
|
63
64
|
# @param ostree_ostree_config_href
|
64
65
|
# @param [Hash] opts the optional parameters
|
66
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
65
67
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
66
68
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
67
69
|
# @return [OstreeOstreeConfigResponse]
|
@@ -77,6 +79,7 @@ describe 'ContentConfigsApi' do
|
|
77
79
|
# @param ostree_ostree_config_href
|
78
80
|
# @param set_label
|
79
81
|
# @param [Hash] opts the optional parameters
|
82
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
80
83
|
# @return [SetLabelResponse]
|
81
84
|
describe 'set_label test' do
|
82
85
|
it 'should work' do
|
@@ -90,6 +93,7 @@ describe 'ContentConfigsApi' do
|
|
90
93
|
# @param ostree_ostree_config_href
|
91
94
|
# @param unset_label
|
92
95
|
# @param [Hash] opts the optional parameters
|
96
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
93
97
|
# @return [UnsetLabelResponse]
|
94
98
|
describe 'unset_label test' do
|
95
99
|
it 'should work' do
|
@@ -37,6 +37,7 @@ describe 'ContentContentApi' do
|
|
37
37
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
38
38
|
# @param ostree_ostree_content
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
40
41
|
# @return [AsyncOperationResponse]
|
41
42
|
describe 'create test' do
|
42
43
|
it 'should work' do
|
@@ -48,6 +49,7 @@ describe 'ContentContentApi' do
|
|
48
49
|
# List ostree contents
|
49
50
|
# A ViewSet class for uncategorized content units (e.g., static deltas).
|
50
51
|
# @param [Hash] opts the optional parameters
|
52
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
51
53
|
# @option opts [Integer] :limit Number of results to return per page.
|
52
54
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
53
55
|
# @option opts [Array<String>] :ordering Ordering * `pk` - Pk * `-pk` - Pk (descending)
|
@@ -74,6 +76,7 @@ describe 'ContentContentApi' do
|
|
74
76
|
# A ViewSet class for uncategorized content units (e.g., static deltas).
|
75
77
|
# @param ostree_ostree_content_href
|
76
78
|
# @param [Hash] opts the optional parameters
|
79
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
77
80
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
78
81
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
79
82
|
# @return [OstreeOstreeContentResponse]
|
@@ -89,6 +92,7 @@ describe 'ContentContentApi' do
|
|
89
92
|
# @param ostree_ostree_content_href
|
90
93
|
# @param set_label
|
91
94
|
# @param [Hash] opts the optional parameters
|
95
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
92
96
|
# @return [SetLabelResponse]
|
93
97
|
describe 'set_label test' do
|
94
98
|
it 'should work' do
|
@@ -102,6 +106,7 @@ describe 'ContentContentApi' do
|
|
102
106
|
# @param ostree_ostree_content_href
|
103
107
|
# @param unset_label
|
104
108
|
# @param [Hash] opts the optional parameters
|
109
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
105
110
|
# @return [UnsetLabelResponse]
|
106
111
|
describe 'unset_label test' do
|
107
112
|
it 'should work' do
|