pulpcore_client 3.84.0 → 3.85.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.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -4
  3. data/docs/ArtifactDistributionResponse.md +13 -13
  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 +63 -63
  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
@@ -18,16 +18,20 @@ module PulpcoreClient
18
18
  class ArtifactDistributionResponse
19
19
  attr_accessor :pulp_href
20
20
 
21
- # A unique name. Ex, `rawhide` and `stable`.
22
- attr_accessor :name
21
+ # The Pulp Resource Name (PRN).
22
+ attr_accessor :prn
23
23
 
24
- # 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
- attr_accessor :pulp_last_updated
24
+ # Whether this distribution should be shown in the content app.
25
+ attr_accessor :hidden
26
26
 
27
- # Timestamp of creation.
28
- attr_accessor :pulp_created
27
+ # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
28
+ attr_accessor :no_content_change_since
29
29
 
30
- attr_accessor :pulp_labels
30
+ # A unique name. Ex, `rawhide` and `stable`.
31
+ attr_accessor :name
32
+
33
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
34
+ attr_accessor :base_path
31
35
 
32
36
  # An optional content-guard.
33
37
  attr_accessor :content_guard
@@ -35,32 +39,28 @@ module PulpcoreClient
35
39
  # The URL for accessing the publication as defined by this distribution.
36
40
  attr_accessor :base_url
37
41
 
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
- attr_accessor :no_content_change_since
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
42
+ # 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.
43
+ attr_accessor :pulp_last_updated
43
44
 
44
- # The Pulp Resource Name (PRN).
45
- attr_accessor :prn
45
+ # Timestamp of creation.
46
+ attr_accessor :pulp_created
46
47
 
47
- # Whether this distribution should be shown in the content app.
48
- attr_accessor :hidden
48
+ attr_accessor :pulp_labels
49
49
 
50
50
  # Attribute mapping from ruby-style variable name to JSON key.
51
51
  def self.attribute_map
52
52
  {
53
53
  :'pulp_href' => :'pulp_href',
54
+ :'prn' => :'prn',
55
+ :'hidden' => :'hidden',
56
+ :'no_content_change_since' => :'no_content_change_since',
54
57
  :'name' => :'name',
55
- :'pulp_last_updated' => :'pulp_last_updated',
56
- :'pulp_created' => :'pulp_created',
57
- :'pulp_labels' => :'pulp_labels',
58
+ :'base_path' => :'base_path',
58
59
  :'content_guard' => :'content_guard',
59
60
  :'base_url' => :'base_url',
60
- :'no_content_change_since' => :'no_content_change_since',
61
- :'base_path' => :'base_path',
62
- :'prn' => :'prn',
63
- :'hidden' => :'hidden'
61
+ :'pulp_last_updated' => :'pulp_last_updated',
62
+ :'pulp_created' => :'pulp_created',
63
+ :'pulp_labels' => :'pulp_labels'
64
64
  }
65
65
  end
66
66
 
@@ -73,16 +73,16 @@ module PulpcoreClient
73
73
  def self.openapi_types
74
74
  {
75
75
  :'pulp_href' => :'String',
76
+ :'prn' => :'String',
77
+ :'hidden' => :'Boolean',
78
+ :'no_content_change_since' => :'String',
76
79
  :'name' => :'String',
77
- :'pulp_last_updated' => :'Time',
78
- :'pulp_created' => :'Time',
79
- :'pulp_labels' => :'Hash<String, String>',
80
+ :'base_path' => :'String',
80
81
  :'content_guard' => :'String',
81
82
  :'base_url' => :'String',
82
- :'no_content_change_since' => :'String',
83
- :'base_path' => :'String',
84
- :'prn' => :'String',
85
- :'hidden' => :'Boolean'
83
+ :'pulp_last_updated' => :'Time',
84
+ :'pulp_created' => :'Time',
85
+ :'pulp_labels' => :'Hash<String, String>'
86
86
  }
87
87
  end
88
88
 
@@ -112,24 +112,30 @@ module PulpcoreClient
112
112
  self.pulp_href = attributes[:'pulp_href']
113
113
  end
114
114
 
115
- if attributes.key?(:'name')
116
- self.name = attributes[:'name']
115
+ if attributes.key?(:'prn')
116
+ self.prn = attributes[:'prn']
117
+ end
118
+
119
+ if attributes.key?(:'hidden')
120
+ self.hidden = attributes[:'hidden']
117
121
  else
118
- self.name = nil
122
+ self.hidden = false
119
123
  end
120
124
 
121
- if attributes.key?(:'pulp_last_updated')
122
- self.pulp_last_updated = attributes[:'pulp_last_updated']
125
+ if attributes.key?(:'no_content_change_since')
126
+ self.no_content_change_since = attributes[:'no_content_change_since']
123
127
  end
124
128
 
125
- if attributes.key?(:'pulp_created')
126
- self.pulp_created = attributes[:'pulp_created']
129
+ if attributes.key?(:'name')
130
+ self.name = attributes[:'name']
131
+ else
132
+ self.name = nil
127
133
  end
128
134
 
129
- if attributes.key?(:'pulp_labels')
130
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
131
- self.pulp_labels = value
132
- end
135
+ if attributes.key?(:'base_path')
136
+ self.base_path = attributes[:'base_path']
137
+ else
138
+ self.base_path = nil
133
139
  end
134
140
 
135
141
  if attributes.key?(:'content_guard')
@@ -140,24 +146,18 @@ module PulpcoreClient
140
146
  self.base_url = attributes[:'base_url']
141
147
  end
142
148
 
143
- if attributes.key?(:'no_content_change_since')
144
- self.no_content_change_since = attributes[:'no_content_change_since']
145
- end
146
-
147
- if attributes.key?(:'base_path')
148
- self.base_path = attributes[:'base_path']
149
- else
150
- self.base_path = nil
149
+ if attributes.key?(:'pulp_last_updated')
150
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
151
151
  end
152
152
 
153
- if attributes.key?(:'prn')
154
- self.prn = attributes[:'prn']
153
+ if attributes.key?(:'pulp_created')
154
+ self.pulp_created = attributes[:'pulp_created']
155
155
  end
156
156
 
157
- if attributes.key?(:'hidden')
158
- self.hidden = attributes[:'hidden']
159
- else
160
- self.hidden = false
157
+ if attributes.key?(:'pulp_labels')
158
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
159
+ self.pulp_labels = value
160
+ end
161
161
  end
162
162
  end
163
163
 
@@ -192,16 +192,16 @@ module PulpcoreClient
192
192
  return true if self.equal?(o)
193
193
  self.class == o.class &&
194
194
  pulp_href == o.pulp_href &&
195
+ prn == o.prn &&
196
+ hidden == o.hidden &&
197
+ no_content_change_since == o.no_content_change_since &&
195
198
  name == o.name &&
196
- pulp_last_updated == o.pulp_last_updated &&
197
- pulp_created == o.pulp_created &&
198
- pulp_labels == o.pulp_labels &&
199
+ base_path == o.base_path &&
199
200
  content_guard == o.content_guard &&
200
201
  base_url == o.base_url &&
201
- no_content_change_since == o.no_content_change_since &&
202
- base_path == o.base_path &&
203
- prn == o.prn &&
204
- hidden == o.hidden
202
+ pulp_last_updated == o.pulp_last_updated &&
203
+ pulp_created == o.pulp_created &&
204
+ pulp_labels == o.pulp_labels
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_href, prn, hidden, no_content_change_since, name, base_path, content_guard, base_url, pulp_last_updated, pulp_created, pulp_labels].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
@@ -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 :sha256
34
36
 
35
37
  attr_accessor :signatures
@@ -44,6 +46,7 @@ module PulpcoreClient
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
  :'sha256' => :'sha256',
48
51
  :'signatures' => :'signatures',
49
52
  :'public_key' => :'public_key'
@@ -63,6 +66,7 @@ module PulpcoreClient
63
66
  :'pulp_created' => :'Time',
64
67
  :'pulp_last_updated' => :'Time',
65
68
  :'pulp_labels' => :'Hash<String, String>',
69
+ :'vuln_report' => :'String',
66
70
  :'sha256' => :'String',
67
71
  :'signatures' => :'Array<NestedOpenPGPSignatureResponse>',
68
72
  :'public_key' => :'String'
@@ -112,6 +116,10 @@ module PulpcoreClient
112
116
  end
113
117
  end
114
118
 
119
+ if attributes.key?(:'vuln_report')
120
+ self.vuln_report = attributes[:'vuln_report']
121
+ end
122
+
115
123
  if attributes.key?(:'sha256')
116
124
  self.sha256 = attributes[:'sha256']
117
125
  else
@@ -178,6 +186,7 @@ module PulpcoreClient
178
186
  pulp_created == o.pulp_created &&
179
187
  pulp_last_updated == o.pulp_last_updated &&
180
188
  pulp_labels == o.pulp_labels &&
189
+ vuln_report == o.vuln_report &&
181
190
  sha256 == o.sha256 &&
182
191
  signatures == o.signatures &&
183
192
  public_key == o.public_key
@@ -192,7 +201,7 @@ module PulpcoreClient
192
201
  # Calculates hash code according to all attributes.
193
202
  # @return [Integer] Hash code
194
203
  def hash
195
- [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, sha256, signatures, public_key].hash
204
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, sha256, signatures, public_key].hash
196
205
  end
197
206
 
198
207
  # Builds the object from hash