pulpcore_client 3.84.0 → 3.85.1

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.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -4
  3. data/docs/ArtifactDistributionResponse.md +14 -14
  4. data/docs/FilesystemExportResponse.md +1 -1
  5. data/docs/GenericRemoteResponse.md +1 -1
  6. data/docs/GroupRoleResponse.md +1 -1
  7. data/docs/MultipleArtifactContentResponse.md +2 -0
  8. data/docs/NestedOpenPGPPublicSubkeyResponse.md +1 -1
  9. data/docs/NestedOpenPGPUserAttributeResponse.md +1 -1
  10. data/docs/NestedOpenPGPUserIDResponse.md +1 -1
  11. data/docs/OpenPGPPublicKeyResponse.md +5 -3
  12. data/docs/OpenPGPPublicSubkeyResponse.md +3 -1
  13. data/docs/OpenPGPSignatureResponse.md +2 -0
  14. data/docs/OpenPGPUserAttributeResponse.md +3 -1
  15. data/docs/OpenPGPUserIDResponse.md +3 -1
  16. data/docs/PaginatedVulnerabilityReportResponseList.md +24 -0
  17. data/docs/PulpExportResponse.md +1 -1
  18. data/docs/Purge.md +1 -1
  19. data/docs/RBACContentGuardResponse.md +2 -2
  20. data/docs/RepositoryVersionResponse.md +3 -1
  21. data/docs/TaskGroupResponse.md +2 -2
  22. data/docs/TaskResponse.md +4 -4
  23. data/docs/UploadDetailResponse.md +1 -1
  24. data/docs/UpstreamPulpResponse.md +1 -1
  25. data/docs/UserResponse.md +2 -2
  26. data/docs/UserRoleResponse.md +1 -1
  27. data/docs/VulnReportApi.md +241 -0
  28. data/docs/VulnerabilityReportResponse.md +30 -0
  29. data/lib/pulpcore_client/api/vuln_report_api.rb +230 -0
  30. data/lib/pulpcore_client/models/artifact_distribution_response.rb +70 -70
  31. data/lib/pulpcore_client/models/generic_remote_response.rb +0 -15
  32. data/lib/pulpcore_client/models/multiple_artifact_content_response.rb +10 -1
  33. data/lib/pulpcore_client/models/nested_open_pgp_signature.rb +0 -9
  34. data/lib/pulpcore_client/models/nested_open_pgp_signature_response.rb +0 -15
  35. data/lib/pulpcore_client/models/open_pgp_keyring.rb +0 -15
  36. data/lib/pulpcore_client/models/open_pgp_keyring_response.rb +0 -15
  37. data/lib/pulpcore_client/models/open_pgp_public_key_response.rb +10 -1
  38. data/lib/pulpcore_client/models/open_pgp_public_subkey_response.rb +10 -1
  39. data/lib/pulpcore_client/models/open_pgp_signature_response.rb +10 -16
  40. data/lib/pulpcore_client/models/open_pgp_user_attribute_response.rb +10 -1
  41. data/lib/pulpcore_client/models/open_pgp_user_id_response.rb +10 -1
  42. data/lib/pulpcore_client/models/orphans_cleanup.rb +0 -24
  43. data/lib/pulpcore_client/models/paginated_access_policy_response_list.rb +0 -2
  44. data/lib/pulpcore_client/models/paginated_artifact_distribution_response_list.rb +0 -2
  45. data/lib/pulpcore_client/models/paginated_artifact_response_list.rb +0 -2
  46. data/lib/pulpcore_client/models/paginated_composite_content_guard_response_list.rb +0 -2
  47. data/lib/pulpcore_client/models/paginated_content_guard_response_list.rb +0 -2
  48. data/lib/pulpcore_client/models/paginated_content_redirect_content_guard_response_list.rb +0 -2
  49. data/lib/pulpcore_client/models/paginated_distribution_response_list.rb +0 -2
  50. data/lib/pulpcore_client/models/paginated_domain_response_list.rb +0 -2
  51. data/lib/pulpcore_client/models/paginated_filesystem_export_response_list.rb +0 -2
  52. data/lib/pulpcore_client/models/paginated_filesystem_exporter_response_list.rb +0 -2
  53. data/lib/pulpcore_client/models/paginated_generic_remote_response_list.rb +0 -2
  54. data/lib/pulpcore_client/models/paginated_group_response_list.rb +0 -2
  55. data/lib/pulpcore_client/models/paginated_group_role_response_list.rb +0 -2
  56. data/lib/pulpcore_client/models/paginated_group_user_response_list.rb +0 -2
  57. data/lib/pulpcore_client/models/paginated_header_content_guard_response_list.rb +0 -2
  58. data/lib/pulpcore_client/models/paginated_import_response_list.rb +0 -2
  59. data/lib/pulpcore_client/models/paginated_multiple_artifact_content_response_list.rb +0 -2
  60. data/lib/pulpcore_client/models/paginated_open_pgp_distribution_response_list.rb +0 -2
  61. data/lib/pulpcore_client/models/paginated_open_pgp_keyring_response_list.rb +0 -2
  62. data/lib/pulpcore_client/models/paginated_open_pgp_public_key_response_list.rb +0 -2
  63. data/lib/pulpcore_client/models/paginated_open_pgp_public_subkey_response_list.rb +0 -2
  64. data/lib/pulpcore_client/models/paginated_open_pgp_signature_response_list.rb +0 -2
  65. data/lib/pulpcore_client/models/paginated_open_pgp_user_attribute_response_list.rb +0 -2
  66. data/lib/pulpcore_client/models/paginated_open_pgp_user_id_response_list.rb +0 -2
  67. data/lib/pulpcore_client/models/paginated_publication_response_list.rb +0 -2
  68. data/lib/pulpcore_client/models/paginated_pulp_export_response_list.rb +0 -2
  69. data/lib/pulpcore_client/models/paginated_pulp_exporter_response_list.rb +0 -2
  70. data/lib/pulpcore_client/models/paginated_pulp_importer_response_list.rb +0 -2
  71. data/lib/pulpcore_client/models/paginated_rbac_content_guard_response_list.rb +0 -2
  72. data/lib/pulpcore_client/models/paginated_repository_response_list.rb +0 -2
  73. data/lib/pulpcore_client/models/paginated_repository_version_response_list.rb +0 -2
  74. data/lib/pulpcore_client/models/paginated_role_response_list.rb +0 -2
  75. data/lib/pulpcore_client/models/paginated_signing_service_response_list.rb +0 -2
  76. data/lib/pulpcore_client/models/paginated_task_group_response_list.rb +0 -2
  77. data/lib/pulpcore_client/models/paginated_task_response_list.rb +0 -2
  78. data/lib/pulpcore_client/models/paginated_task_schedule_response_list.rb +0 -2
  79. data/lib/pulpcore_client/models/paginated_upload_response_list.rb +0 -2
  80. data/lib/pulpcore_client/models/paginated_upstream_pulp_response_list.rb +0 -2
  81. data/lib/pulpcore_client/models/paginated_user_response_list.rb +0 -2
  82. data/lib/pulpcore_client/models/paginated_user_role_response_list.rb +0 -2
  83. data/lib/pulpcore_client/models/paginated_vulnerability_report_response_list.rb +257 -0
  84. data/lib/pulpcore_client/models/paginated_worker_response_list.rb +0 -2
  85. data/lib/pulpcore_client/models/patched_open_pgp_keyring.rb +0 -15
  86. data/lib/pulpcore_client/models/purge.rb +2 -0
  87. data/lib/pulpcore_client/models/repository_response.rb +0 -15
  88. data/lib/pulpcore_client/models/repository_version_response.rb +13 -4
  89. data/lib/pulpcore_client/models/storage_response.rb +0 -45
  90. data/lib/pulpcore_client/models/vulnerability_report_response.rb +277 -0
  91. data/lib/pulpcore_client/version.rb +1 -1
  92. data/lib/pulpcore_client.rb +3 -0
  93. data/spec/api/vuln_report_api_spec.rb +79 -0
  94. data/spec/models/artifact_distribution_response_spec.rb +10 -10
  95. data/spec/models/multiple_artifact_content_response_spec.rb +6 -0
  96. data/spec/models/open_pgp_public_key_response_spec.rb +6 -0
  97. data/spec/models/open_pgp_public_subkey_response_spec.rb +6 -0
  98. data/spec/models/open_pgp_signature_response_spec.rb +6 -0
  99. data/spec/models/open_pgp_user_attribute_response_spec.rb +6 -0
  100. data/spec/models/open_pgp_user_id_response_spec.rb +6 -0
  101. data/spec/models/paginated_vulnerability_report_response_list_spec.rb +54 -0
  102. data/spec/models/repository_version_response_spec.rb +6 -0
  103. data/spec/models/vulnerability_report_response_spec.rb +72 -0
  104. metadata +199 -187
@@ -16,51 +16,51 @@ require 'time'
16
16
  module PulpcoreClient
17
17
  # A serializer for ArtifactDistribution.
18
18
  class ArtifactDistributionResponse
19
+ attr_accessor :pulp_labels
20
+
19
21
  attr_accessor :pulp_href
20
22
 
21
- # A unique name. Ex, `rawhide` and `stable`.
22
- attr_accessor :name
23
+ # An optional content-guard.
24
+ attr_accessor :content_guard
25
+
26
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
27
+ attr_accessor :base_path
23
28
 
24
29
  # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
25
30
  attr_accessor :pulp_last_updated
26
31
 
27
- # Timestamp of creation.
28
- attr_accessor :pulp_created
29
-
30
- attr_accessor :pulp_labels
31
-
32
- # An optional content-guard.
33
- attr_accessor :content_guard
32
+ # Whether this distribution should be shown in the content app.
33
+ attr_accessor :hidden
34
34
 
35
- # The URL for accessing the publication as defined by this distribution.
36
- attr_accessor :base_url
35
+ # A unique name. Ex, `rawhide` and `stable`.
36
+ attr_accessor :name
37
37
 
38
38
  # 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
39
  attr_accessor :no_content_change_since
40
40
 
41
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
42
- attr_accessor :base_path
43
-
44
41
  # The Pulp Resource Name (PRN).
45
42
  attr_accessor :prn
46
43
 
47
- # Whether this distribution should be shown in the content app.
48
- attr_accessor :hidden
44
+ # Timestamp of creation.
45
+ attr_accessor :pulp_created
46
+
47
+ # The URL for accessing the publication as defined by this distribution.
48
+ attr_accessor :base_url
49
49
 
50
50
  # Attribute mapping from ruby-style variable name to JSON key.
51
51
  def self.attribute_map
52
52
  {
53
- :'pulp_href' => :'pulp_href',
54
- :'name' => :'name',
55
- :'pulp_last_updated' => :'pulp_last_updated',
56
- :'pulp_created' => :'pulp_created',
57
53
  :'pulp_labels' => :'pulp_labels',
54
+ :'pulp_href' => :'pulp_href',
58
55
  :'content_guard' => :'content_guard',
59
- :'base_url' => :'base_url',
60
- :'no_content_change_since' => :'no_content_change_since',
61
56
  :'base_path' => :'base_path',
57
+ :'pulp_last_updated' => :'pulp_last_updated',
58
+ :'hidden' => :'hidden',
59
+ :'name' => :'name',
60
+ :'no_content_change_since' => :'no_content_change_since',
62
61
  :'prn' => :'prn',
63
- :'hidden' => :'hidden'
62
+ :'pulp_created' => :'pulp_created',
63
+ :'base_url' => :'base_url'
64
64
  }
65
65
  end
66
66
 
@@ -72,17 +72,17 @@ module PulpcoreClient
72
72
  # Attribute type mapping.
73
73
  def self.openapi_types
74
74
  {
75
- :'pulp_href' => :'String',
76
- :'name' => :'String',
77
- :'pulp_last_updated' => :'Time',
78
- :'pulp_created' => :'Time',
79
75
  :'pulp_labels' => :'Hash<String, String>',
76
+ :'pulp_href' => :'String',
80
77
  :'content_guard' => :'String',
81
- :'base_url' => :'String',
82
- :'no_content_change_since' => :'String',
83
78
  :'base_path' => :'String',
79
+ :'pulp_last_updated' => :'Time',
80
+ :'hidden' => :'Boolean',
81
+ :'name' => :'String',
82
+ :'no_content_change_since' => :'String',
84
83
  :'prn' => :'String',
85
- :'hidden' => :'Boolean'
84
+ :'pulp_created' => :'Time',
85
+ :'base_url' => :'String'
86
86
  }
87
87
  end
88
88
 
@@ -108,56 +108,56 @@ module PulpcoreClient
108
108
  h[k.to_sym] = v
109
109
  }
110
110
 
111
+ if attributes.key?(:'pulp_labels')
112
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
113
+ self.pulp_labels = value
114
+ end
115
+ end
116
+
111
117
  if attributes.key?(:'pulp_href')
112
118
  self.pulp_href = attributes[:'pulp_href']
113
119
  end
114
120
 
115
- if attributes.key?(:'name')
116
- self.name = attributes[:'name']
121
+ if attributes.key?(:'content_guard')
122
+ self.content_guard = attributes[:'content_guard']
123
+ end
124
+
125
+ if attributes.key?(:'base_path')
126
+ self.base_path = attributes[:'base_path']
117
127
  else
118
- self.name = nil
128
+ self.base_path = nil
119
129
  end
120
130
 
121
131
  if attributes.key?(:'pulp_last_updated')
122
132
  self.pulp_last_updated = attributes[:'pulp_last_updated']
123
133
  end
124
134
 
125
- if attributes.key?(:'pulp_created')
126
- self.pulp_created = attributes[:'pulp_created']
127
- end
128
-
129
- if attributes.key?(:'pulp_labels')
130
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
131
- self.pulp_labels = value
132
- end
133
- end
134
-
135
- if attributes.key?(:'content_guard')
136
- self.content_guard = attributes[:'content_guard']
135
+ if attributes.key?(:'hidden')
136
+ self.hidden = attributes[:'hidden']
137
+ else
138
+ self.hidden = false
137
139
  end
138
140
 
139
- if attributes.key?(:'base_url')
140
- self.base_url = attributes[:'base_url']
141
+ if attributes.key?(:'name')
142
+ self.name = attributes[:'name']
143
+ else
144
+ self.name = nil
141
145
  end
142
146
 
143
147
  if attributes.key?(:'no_content_change_since')
144
148
  self.no_content_change_since = attributes[:'no_content_change_since']
145
149
  end
146
150
 
147
- if attributes.key?(:'base_path')
148
- self.base_path = attributes[:'base_path']
149
- else
150
- self.base_path = nil
151
- end
152
-
153
151
  if attributes.key?(:'prn')
154
152
  self.prn = attributes[:'prn']
155
153
  end
156
154
 
157
- if attributes.key?(:'hidden')
158
- self.hidden = attributes[:'hidden']
159
- else
160
- self.hidden = false
155
+ if attributes.key?(:'pulp_created')
156
+ self.pulp_created = attributes[:'pulp_created']
157
+ end
158
+
159
+ if attributes.key?(:'base_url')
160
+ self.base_url = attributes[:'base_url']
161
161
  end
162
162
  end
163
163
 
@@ -166,14 +166,14 @@ module PulpcoreClient
166
166
  def list_invalid_properties
167
167
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
168
168
  invalid_properties = Array.new
169
- if @name.nil?
170
- invalid_properties.push('invalid value for "name", name cannot be nil.')
171
- end
172
-
173
169
  if @base_path.nil?
174
170
  invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
175
171
  end
176
172
 
173
+ if @name.nil?
174
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
175
+ end
176
+
177
177
  invalid_properties
178
178
  end
179
179
 
@@ -181,8 +181,8 @@ module PulpcoreClient
181
181
  # @return true if the model is valid
182
182
  def valid?
183
183
  warn '[DEPRECATED] the `valid?` method is obsolete'
184
- return false if @name.nil?
185
184
  return false if @base_path.nil?
185
+ return false if @name.nil?
186
186
  true
187
187
  end
188
188
 
@@ -191,17 +191,17 @@ module PulpcoreClient
191
191
  def ==(o)
192
192
  return true if self.equal?(o)
193
193
  self.class == o.class &&
194
- pulp_href == o.pulp_href &&
195
- name == o.name &&
196
- pulp_last_updated == o.pulp_last_updated &&
197
- pulp_created == o.pulp_created &&
198
194
  pulp_labels == o.pulp_labels &&
195
+ pulp_href == o.pulp_href &&
199
196
  content_guard == o.content_guard &&
200
- base_url == o.base_url &&
201
- no_content_change_since == o.no_content_change_since &&
202
197
  base_path == o.base_path &&
198
+ pulp_last_updated == o.pulp_last_updated &&
199
+ hidden == o.hidden &&
200
+ name == o.name &&
201
+ no_content_change_since == o.no_content_change_since &&
203
202
  prn == o.prn &&
204
- hidden == o.hidden
203
+ pulp_created == o.pulp_created &&
204
+ base_url == o.base_url
205
205
  end
206
206
 
207
207
  # @see the `==` method
@@ -213,7 +213,7 @@ module PulpcoreClient
213
213
  # Calculates hash code according to all attributes.
214
214
  # @return [Integer] Hash code
215
215
  def hash
216
- [pulp_href, name, pulp_last_updated, pulp_created, pulp_labels, content_guard, base_url, no_content_change_since, base_path, prn, hidden].hash
216
+ [pulp_labels, pulp_href, content_guard, base_path, pulp_last_updated, hidden, name, no_content_change_since, prn, pulp_created, base_url].hash
217
217
  end
218
218
 
219
219
  # Builds the object from hash
@@ -297,10 +297,6 @@ module PulpcoreClient
297
297
  invalid_properties.push('invalid value for "url", url cannot be nil.')
298
298
  end
299
299
 
300
- if !@download_concurrency.nil? && @download_concurrency < 1
301
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
302
- end
303
-
304
300
  if !@total_timeout.nil? && @total_timeout < 0.0
305
301
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
306
302
  end
@@ -326,7 +322,6 @@ module PulpcoreClient
326
322
  warn '[DEPRECATED] the `valid?` method is obsolete'
327
323
  return false if @name.nil?
328
324
  return false if @url.nil?
329
- return false if !@download_concurrency.nil? && @download_concurrency < 1
330
325
  return false if !@total_timeout.nil? && @total_timeout < 0.0
331
326
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
332
327
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
@@ -334,16 +329,6 @@ module PulpcoreClient
334
329
  true
335
330
  end
336
331
 
337
- # Custom attribute writer method with validation
338
- # @param [Object] download_concurrency Value to be assigned
339
- def download_concurrency=(download_concurrency)
340
- if !download_concurrency.nil? && download_concurrency < 1
341
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
342
- end
343
-
344
- @download_concurrency = download_concurrency
345
- end
346
-
347
332
  # Custom attribute writer method with validation
348
333
  # @param [Object] total_timeout Value to be assigned
349
334
  def total_timeout=(total_timeout)
@@ -30,6 +30,8 @@ module PulpcoreClient
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
  # A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/'
34
36
  attr_accessor :artifacts
35
37
 
@@ -41,6 +43,7 @@ module PulpcoreClient
41
43
  :'pulp_created' => :'pulp_created',
42
44
  :'pulp_last_updated' => :'pulp_last_updated',
43
45
  :'pulp_labels' => :'pulp_labels',
46
+ :'vuln_report' => :'vuln_report',
44
47
  :'artifacts' => :'artifacts'
45
48
  }
46
49
  end
@@ -58,6 +61,7 @@ module PulpcoreClient
58
61
  :'pulp_created' => :'Time',
59
62
  :'pulp_last_updated' => :'Time',
60
63
  :'pulp_labels' => :'Hash<String, String>',
64
+ :'vuln_report' => :'String',
61
65
  :'artifacts' => :'Object'
62
66
  }
63
67
  end
@@ -105,6 +109,10 @@ module PulpcoreClient
105
109
  end
106
110
  end
107
111
 
112
+ if attributes.key?(:'vuln_report')
113
+ self.vuln_report = attributes[:'vuln_report']
114
+ end
115
+
108
116
  if attributes.key?(:'artifacts')
109
117
  self.artifacts = attributes[:'artifacts']
110
118
  else
@@ -142,6 +150,7 @@ module PulpcoreClient
142
150
  pulp_created == o.pulp_created &&
143
151
  pulp_last_updated == o.pulp_last_updated &&
144
152
  pulp_labels == o.pulp_labels &&
153
+ vuln_report == o.vuln_report &&
145
154
  artifacts == o.artifacts
146
155
  end
147
156
 
@@ -154,7 +163,7 @@ module PulpcoreClient
154
163
  # Calculates hash code according to all attributes.
155
164
  # @return [Integer] Hash code
156
165
  def hash
157
- [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, artifacts].hash
166
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, artifacts].hash
158
167
  end
159
168
 
160
169
  # Builds the object from hash
@@ -116,10 +116,6 @@ module PulpcoreClient
116
116
  def list_invalid_properties
117
117
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
118
118
  invalid_properties = Array.new
119
- if !@issuer.nil? && @issuer.to_s.length > 16
120
- invalid_properties.push('invalid value for "issuer", the character length must be smaller than or equal to 16.')
121
- end
122
-
123
119
  if !@issuer.nil? && @issuer.to_s.length < 1
124
120
  invalid_properties.push('invalid value for "issuer", the character length must be great than or equal to 1.')
125
121
  end
@@ -143,7 +139,6 @@ module PulpcoreClient
143
139
  # @return true if the model is valid
144
140
  def valid?
145
141
  warn '[DEPRECATED] the `valid?` method is obsolete'
146
- return false if !@issuer.nil? && @issuer.to_s.length > 16
147
142
  return false if !@issuer.nil? && @issuer.to_s.length < 1
148
143
  return false if @created.nil?
149
144
  return false if !@signers_user_id.nil? && @signers_user_id.to_s.length < 1
@@ -154,10 +149,6 @@ module PulpcoreClient
154
149
  # Custom attribute writer method with validation
155
150
  # @param [Object] issuer Value to be assigned
156
151
  def issuer=(issuer)
157
- if !issuer.nil? && issuer.to_s.length > 16
158
- fail ArgumentError, 'invalid value for "issuer", the character length must be smaller than or equal to 16.'
159
- end
160
-
161
152
  if !issuer.nil? && issuer.to_s.length < 1
162
153
  fail ArgumentError, 'invalid value for "issuer", the character length must be great than or equal to 1.'
163
154
  end
@@ -124,10 +124,6 @@ module PulpcoreClient
124
124
  def list_invalid_properties
125
125
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
126
126
  invalid_properties = Array.new
127
- if !@issuer.nil? && @issuer.to_s.length > 16
128
- invalid_properties.push('invalid value for "issuer", the character length must be smaller than or equal to 16.')
129
- end
130
-
131
127
  if @created.nil?
132
128
  invalid_properties.push('invalid value for "created", created cannot be nil.')
133
129
  end
@@ -143,22 +139,11 @@ module PulpcoreClient
143
139
  # @return true if the model is valid
144
140
  def valid?
145
141
  warn '[DEPRECATED] the `valid?` method is obsolete'
146
- return false if !@issuer.nil? && @issuer.to_s.length > 16
147
142
  return false if @created.nil?
148
143
  return false if @expired.nil?
149
144
  true
150
145
  end
151
146
 
152
- # Custom attribute writer method with validation
153
- # @param [Object] issuer Value to be assigned
154
- def issuer=(issuer)
155
- if !issuer.nil? && issuer.to_s.length > 16
156
- fail ArgumentError, 'invalid value for "issuer", the character length must be smaller than or equal to 16.'
157
- end
158
-
159
- @issuer = issuer
160
- end
161
-
162
147
  # Checks equality by comparing each attribute.
163
148
  # @param [Object] Object to be compared
164
149
  def ==(o)
@@ -123,10 +123,6 @@ module PulpcoreClient
123
123
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
124
124
  end
125
125
 
126
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
127
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
128
- end
129
-
130
126
  invalid_properties
131
127
  end
132
128
 
@@ -137,7 +133,6 @@ module PulpcoreClient
137
133
  return false if @name.nil?
138
134
  return false if @name.to_s.length < 1
139
135
  return false if !@description.nil? && @description.to_s.length < 1
140
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
141
136
  true
142
137
  end
143
138
 
@@ -165,16 +160,6 @@ module PulpcoreClient
165
160
  @description = description
166
161
  end
167
162
 
168
- # Custom attribute writer method with validation
169
- # @param [Object] retain_repo_versions Value to be assigned
170
- def retain_repo_versions=(retain_repo_versions)
171
- if !retain_repo_versions.nil? && retain_repo_versions < 1
172
- fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
173
- end
174
-
175
- @retain_repo_versions = retain_repo_versions
176
- end
177
-
178
163
  # Checks equality by comparing each attribute.
179
164
  # @param [Object] Object to be compared
180
165
  def ==(o)
@@ -166,10 +166,6 @@ module PulpcoreClient
166
166
  invalid_properties.push('invalid value for "name", name cannot be nil.')
167
167
  end
168
168
 
169
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
170
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
171
- end
172
-
173
169
  invalid_properties
174
170
  end
175
171
 
@@ -178,20 +174,9 @@ module PulpcoreClient
178
174
  def valid?
179
175
  warn '[DEPRECATED] the `valid?` method is obsolete'
180
176
  return false if @name.nil?
181
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
182
177
  true
183
178
  end
184
179
 
185
- # Custom attribute writer method with validation
186
- # @param [Object] retain_repo_versions Value to be assigned
187
- def retain_repo_versions=(retain_repo_versions)
188
- if !retain_repo_versions.nil? && retain_repo_versions < 1
189
- fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
190
- end
191
-
192
- @retain_repo_versions = retain_repo_versions
193
- end
194
-
195
180
  # Checks equality by comparing each attribute.
196
181
  # @param [Object] Object to be compared
197
182
  def ==(o)
@@ -30,6 +30,8 @@ module PulpcoreClient
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
  attr_accessor :fingerprint
34
36
 
35
37
  attr_accessor :created
@@ -48,6 +50,7 @@ module PulpcoreClient
48
50
  :'pulp_created' => :'pulp_created',
49
51
  :'pulp_last_updated' => :'pulp_last_updated',
50
52
  :'pulp_labels' => :'pulp_labels',
53
+ :'vuln_report' => :'vuln_report',
51
54
  :'fingerprint' => :'fingerprint',
52
55
  :'created' => :'created',
53
56
  :'user_ids' => :'user_ids',
@@ -69,6 +72,7 @@ module PulpcoreClient
69
72
  :'pulp_created' => :'Time',
70
73
  :'pulp_last_updated' => :'Time',
71
74
  :'pulp_labels' => :'Hash<String, String>',
75
+ :'vuln_report' => :'String',
72
76
  :'fingerprint' => :'String',
73
77
  :'created' => :'Time',
74
78
  :'user_ids' => :'Array<NestedOpenPGPUserIDResponse>',
@@ -120,6 +124,10 @@ module PulpcoreClient
120
124
  end
121
125
  end
122
126
 
127
+ if attributes.key?(:'vuln_report')
128
+ self.vuln_report = attributes[:'vuln_report']
129
+ end
130
+
123
131
  if attributes.key?(:'fingerprint')
124
132
  self.fingerprint = attributes[:'fingerprint']
125
133
  end
@@ -191,6 +199,7 @@ module PulpcoreClient
191
199
  pulp_created == o.pulp_created &&
192
200
  pulp_last_updated == o.pulp_last_updated &&
193
201
  pulp_labels == o.pulp_labels &&
202
+ vuln_report == o.vuln_report &&
194
203
  fingerprint == o.fingerprint &&
195
204
  created == o.created &&
196
205
  user_ids == o.user_ids &&
@@ -207,7 +216,7 @@ module PulpcoreClient
207
216
  # Calculates hash code according to all attributes.
208
217
  # @return [Integer] Hash code
209
218
  def hash
210
- [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, fingerprint, created, user_ids, user_attributes, public_subkeys].hash
219
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, fingerprint, created, user_ids, user_attributes, public_subkeys].hash
211
220
  end
212
221
 
213
222
  # Builds the object from hash
@@ -30,6 +30,8 @@ module PulpcoreClient
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
  attr_accessor :fingerprint
34
36
 
35
37
  attr_accessor :created
@@ -46,6 +48,7 @@ module PulpcoreClient
46
48
  :'pulp_created' => :'pulp_created',
47
49
  :'pulp_last_updated' => :'pulp_last_updated',
48
50
  :'pulp_labels' => :'pulp_labels',
51
+ :'vuln_report' => :'vuln_report',
49
52
  :'fingerprint' => :'fingerprint',
50
53
  :'created' => :'created',
51
54
  :'signatures' => :'signatures',
@@ -66,6 +69,7 @@ module PulpcoreClient
66
69
  :'pulp_created' => :'Time',
67
70
  :'pulp_last_updated' => :'Time',
68
71
  :'pulp_labels' => :'Hash<String, String>',
72
+ :'vuln_report' => :'String',
69
73
  :'fingerprint' => :'String',
70
74
  :'created' => :'Time',
71
75
  :'signatures' => :'Array<NestedOpenPGPSignatureResponse>',
@@ -116,6 +120,10 @@ module PulpcoreClient
116
120
  end
117
121
  end
118
122
 
123
+ if attributes.key?(:'vuln_report')
124
+ self.vuln_report = attributes[:'vuln_report']
125
+ end
126
+
119
127
  if attributes.key?(:'fingerprint')
120
128
  self.fingerprint = attributes[:'fingerprint']
121
129
  else
@@ -193,6 +201,7 @@ module PulpcoreClient
193
201
  pulp_created == o.pulp_created &&
194
202
  pulp_last_updated == o.pulp_last_updated &&
195
203
  pulp_labels == o.pulp_labels &&
204
+ vuln_report == o.vuln_report &&
196
205
  fingerprint == o.fingerprint &&
197
206
  created == o.created &&
198
207
  signatures == o.signatures &&
@@ -208,7 +217,7 @@ module PulpcoreClient
208
217
  # Calculates hash code according to all attributes.
209
218
  # @return [Integer] Hash code
210
219
  def hash
211
- [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, fingerprint, created, signatures, public_key].hash
220
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, fingerprint, created, signatures, public_key].hash
212
221
  end
213
222
 
214
223
  # Builds the object from hash
@@ -30,6 +30,8 @@ module PulpcoreClient
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
  attr_accessor :issuer
34
36
 
35
37
  attr_accessor :created
@@ -54,6 +56,7 @@ module PulpcoreClient
54
56
  :'pulp_created' => :'pulp_created',
55
57
  :'pulp_last_updated' => :'pulp_last_updated',
56
58
  :'pulp_labels' => :'pulp_labels',
59
+ :'vuln_report' => :'vuln_report',
57
60
  :'issuer' => :'issuer',
58
61
  :'created' => :'created',
59
62
  :'expiration_time' => :'expiration_time',
@@ -78,6 +81,7 @@ module PulpcoreClient
78
81
  :'pulp_created' => :'Time',
79
82
  :'pulp_last_updated' => :'Time',
80
83
  :'pulp_labels' => :'Hash<String, String>',
84
+ :'vuln_report' => :'String',
81
85
  :'issuer' => :'String',
82
86
  :'created' => :'Time',
83
87
  :'expiration_time' => :'String',
@@ -136,6 +140,10 @@ module PulpcoreClient
136
140
  end
137
141
  end
138
142
 
143
+ if attributes.key?(:'vuln_report')
144
+ self.vuln_report = attributes[:'vuln_report']
145
+ end
146
+
139
147
  if attributes.key?(:'issuer')
140
148
  self.issuer = attributes[:'issuer']
141
149
  end
@@ -178,10 +186,6 @@ module PulpcoreClient
178
186
  def list_invalid_properties
179
187
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
180
188
  invalid_properties = Array.new
181
- if !@issuer.nil? && @issuer.to_s.length > 16
182
- invalid_properties.push('invalid value for "issuer", the character length must be smaller than or equal to 16.')
183
- end
184
-
185
189
  if @created.nil?
186
190
  invalid_properties.push('invalid value for "created", created cannot be nil.')
187
191
  end
@@ -197,22 +201,11 @@ module PulpcoreClient
197
201
  # @return true if the model is valid
198
202
  def valid?
199
203
  warn '[DEPRECATED] the `valid?` method is obsolete'
200
- return false if !@issuer.nil? && @issuer.to_s.length > 16
201
204
  return false if @created.nil?
202
205
  return false if @expired.nil?
203
206
  true
204
207
  end
205
208
 
206
- # Custom attribute writer method with validation
207
- # @param [Object] issuer Value to be assigned
208
- def issuer=(issuer)
209
- if !issuer.nil? && issuer.to_s.length > 16
210
- fail ArgumentError, 'invalid value for "issuer", the character length must be smaller than or equal to 16.'
211
- end
212
-
213
- @issuer = issuer
214
- end
215
-
216
209
  # Checks equality by comparing each attribute.
217
210
  # @param [Object] Object to be compared
218
211
  def ==(o)
@@ -223,6 +216,7 @@ module PulpcoreClient
223
216
  pulp_created == o.pulp_created &&
224
217
  pulp_last_updated == o.pulp_last_updated &&
225
218
  pulp_labels == o.pulp_labels &&
219
+ vuln_report == o.vuln_report &&
226
220
  issuer == o.issuer &&
227
221
  created == o.created &&
228
222
  expiration_time == o.expiration_time &&
@@ -242,7 +236,7 @@ module PulpcoreClient
242
236
  # Calculates hash code according to all attributes.
243
237
  # @return [Integer] Hash code
244
238
  def hash
245
- [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, issuer, created, expiration_time, signers_user_id, key_expiration_time, expired, key_expired, signed_content].hash
239
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, issuer, created, expiration_time, signers_user_id, key_expiration_time, expired, key_expired, signed_content].hash
246
240
  end
247
241
 
248
242
  # Builds the object from hash