source: vendor/google/apiclient-services/src/ContainerAnalysis/VulnerabilityOccurrence.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 5.0 KB
Line 
1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\ContainerAnalysis;
19
20class VulnerabilityOccurrence extends \Google\Collection
21{
22 protected $collection_key = 'relatedUrls';
23 /**
24 * @var float
25 */
26 public $cvssScore;
27 protected $cvssV2Type = CVSS::class;
28 protected $cvssV2DataType = '';
29 /**
30 * @var string
31 */
32 public $cvssVersion;
33 protected $cvssv3Type = CVSS::class;
34 protected $cvssv3DataType = '';
35 /**
36 * @var string
37 */
38 public $effectiveSeverity;
39 /**
40 * @var string
41 */
42 public $extraDetails;
43 /**
44 * @var bool
45 */
46 public $fixAvailable;
47 /**
48 * @var string
49 */
50 public $longDescription;
51 protected $packageIssueType = PackageIssue::class;
52 protected $packageIssueDataType = 'array';
53 protected $relatedUrlsType = RelatedUrl::class;
54 protected $relatedUrlsDataType = 'array';
55 /**
56 * @var string
57 */
58 public $severity;
59 /**
60 * @var string
61 */
62 public $shortDescription;
63 /**
64 * @var string
65 */
66 public $type;
67 protected $vexAssessmentType = VexAssessment::class;
68 protected $vexAssessmentDataType = '';
69
70 /**
71 * @param float
72 */
73 public function setCvssScore($cvssScore)
74 {
75 $this->cvssScore = $cvssScore;
76 }
77 /**
78 * @return float
79 */
80 public function getCvssScore()
81 {
82 return $this->cvssScore;
83 }
84 /**
85 * @param CVSS
86 */
87 public function setCvssV2(CVSS $cvssV2)
88 {
89 $this->cvssV2 = $cvssV2;
90 }
91 /**
92 * @return CVSS
93 */
94 public function getCvssV2()
95 {
96 return $this->cvssV2;
97 }
98 /**
99 * @param string
100 */
101 public function setCvssVersion($cvssVersion)
102 {
103 $this->cvssVersion = $cvssVersion;
104 }
105 /**
106 * @return string
107 */
108 public function getCvssVersion()
109 {
110 return $this->cvssVersion;
111 }
112 /**
113 * @param CVSS
114 */
115 public function setCvssv3(CVSS $cvssv3)
116 {
117 $this->cvssv3 = $cvssv3;
118 }
119 /**
120 * @return CVSS
121 */
122 public function getCvssv3()
123 {
124 return $this->cvssv3;
125 }
126 /**
127 * @param string
128 */
129 public function setEffectiveSeverity($effectiveSeverity)
130 {
131 $this->effectiveSeverity = $effectiveSeverity;
132 }
133 /**
134 * @return string
135 */
136 public function getEffectiveSeverity()
137 {
138 return $this->effectiveSeverity;
139 }
140 /**
141 * @param string
142 */
143 public function setExtraDetails($extraDetails)
144 {
145 $this->extraDetails = $extraDetails;
146 }
147 /**
148 * @return string
149 */
150 public function getExtraDetails()
151 {
152 return $this->extraDetails;
153 }
154 /**
155 * @param bool
156 */
157 public function setFixAvailable($fixAvailable)
158 {
159 $this->fixAvailable = $fixAvailable;
160 }
161 /**
162 * @return bool
163 */
164 public function getFixAvailable()
165 {
166 return $this->fixAvailable;
167 }
168 /**
169 * @param string
170 */
171 public function setLongDescription($longDescription)
172 {
173 $this->longDescription = $longDescription;
174 }
175 /**
176 * @return string
177 */
178 public function getLongDescription()
179 {
180 return $this->longDescription;
181 }
182 /**
183 * @param PackageIssue[]
184 */
185 public function setPackageIssue($packageIssue)
186 {
187 $this->packageIssue = $packageIssue;
188 }
189 /**
190 * @return PackageIssue[]
191 */
192 public function getPackageIssue()
193 {
194 return $this->packageIssue;
195 }
196 /**
197 * @param RelatedUrl[]
198 */
199 public function setRelatedUrls($relatedUrls)
200 {
201 $this->relatedUrls = $relatedUrls;
202 }
203 /**
204 * @return RelatedUrl[]
205 */
206 public function getRelatedUrls()
207 {
208 return $this->relatedUrls;
209 }
210 /**
211 * @param string
212 */
213 public function setSeverity($severity)
214 {
215 $this->severity = $severity;
216 }
217 /**
218 * @return string
219 */
220 public function getSeverity()
221 {
222 return $this->severity;
223 }
224 /**
225 * @param string
226 */
227 public function setShortDescription($shortDescription)
228 {
229 $this->shortDescription = $shortDescription;
230 }
231 /**
232 * @return string
233 */
234 public function getShortDescription()
235 {
236 return $this->shortDescription;
237 }
238 /**
239 * @param string
240 */
241 public function setType($type)
242 {
243 $this->type = $type;
244 }
245 /**
246 * @return string
247 */
248 public function getType()
249 {
250 return $this->type;
251 }
252 /**
253 * @param VexAssessment
254 */
255 public function setVexAssessment(VexAssessment $vexAssessment)
256 {
257 $this->vexAssessment = $vexAssessment;
258 }
259 /**
260 * @return VexAssessment
261 */
262 public function getVexAssessment()
263 {
264 return $this->vexAssessment;
265 }
266}
267
268// Adding a class alias for backwards compatibility with the previous class name.
269class_alias(VulnerabilityOccurrence::class, 'Google_Service_ContainerAnalysis_VulnerabilityOccurrence');
Note: See TracBrowser for help on using the repository browser.