[f9c482b] | 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 |
|
---|
| 18 | namespace Google\Service\ContainerAnalysis;
|
---|
| 19 |
|
---|
| 20 | class Occurrence extends \Google\Model
|
---|
| 21 | {
|
---|
| 22 | protected $attestationType = AttestationOccurrence::class;
|
---|
| 23 | protected $attestationDataType = '';
|
---|
| 24 | protected $buildType = BuildOccurrence::class;
|
---|
| 25 | protected $buildDataType = '';
|
---|
| 26 | protected $complianceType = ComplianceOccurrence::class;
|
---|
| 27 | protected $complianceDataType = '';
|
---|
| 28 | /**
|
---|
| 29 | * @var string
|
---|
| 30 | */
|
---|
| 31 | public $createTime;
|
---|
| 32 | protected $deploymentType = DeploymentOccurrence::class;
|
---|
| 33 | protected $deploymentDataType = '';
|
---|
| 34 | protected $discoveryType = DiscoveryOccurrence::class;
|
---|
| 35 | protected $discoveryDataType = '';
|
---|
| 36 | protected $dsseAttestationType = DSSEAttestationOccurrence::class;
|
---|
| 37 | protected $dsseAttestationDataType = '';
|
---|
| 38 | protected $envelopeType = Envelope::class;
|
---|
| 39 | protected $envelopeDataType = '';
|
---|
| 40 | protected $imageType = ImageOccurrence::class;
|
---|
| 41 | protected $imageDataType = '';
|
---|
| 42 | /**
|
---|
| 43 | * @var string
|
---|
| 44 | */
|
---|
| 45 | public $kind;
|
---|
| 46 | /**
|
---|
| 47 | * @var string
|
---|
| 48 | */
|
---|
| 49 | public $name;
|
---|
| 50 | /**
|
---|
| 51 | * @var string
|
---|
| 52 | */
|
---|
| 53 | public $noteName;
|
---|
| 54 | protected $packageType = PackageOccurrence::class;
|
---|
| 55 | protected $packageDataType = '';
|
---|
| 56 | /**
|
---|
| 57 | * @var string
|
---|
| 58 | */
|
---|
| 59 | public $remediation;
|
---|
| 60 | /**
|
---|
| 61 | * @var string
|
---|
| 62 | */
|
---|
| 63 | public $resourceUri;
|
---|
| 64 | protected $sbomReferenceType = SBOMReferenceOccurrence::class;
|
---|
| 65 | protected $sbomReferenceDataType = '';
|
---|
| 66 | /**
|
---|
| 67 | * @var string
|
---|
| 68 | */
|
---|
| 69 | public $updateTime;
|
---|
| 70 | protected $upgradeType = UpgradeOccurrence::class;
|
---|
| 71 | protected $upgradeDataType = '';
|
---|
| 72 | protected $vulnerabilityType = VulnerabilityOccurrence::class;
|
---|
| 73 | protected $vulnerabilityDataType = '';
|
---|
| 74 |
|
---|
| 75 | /**
|
---|
| 76 | * @param AttestationOccurrence
|
---|
| 77 | */
|
---|
| 78 | public function setAttestation(AttestationOccurrence $attestation)
|
---|
| 79 | {
|
---|
| 80 | $this->attestation = $attestation;
|
---|
| 81 | }
|
---|
| 82 | /**
|
---|
| 83 | * @return AttestationOccurrence
|
---|
| 84 | */
|
---|
| 85 | public function getAttestation()
|
---|
| 86 | {
|
---|
| 87 | return $this->attestation;
|
---|
| 88 | }
|
---|
| 89 | /**
|
---|
| 90 | * @param BuildOccurrence
|
---|
| 91 | */
|
---|
| 92 | public function setBuild(BuildOccurrence $build)
|
---|
| 93 | {
|
---|
| 94 | $this->build = $build;
|
---|
| 95 | }
|
---|
| 96 | /**
|
---|
| 97 | * @return BuildOccurrence
|
---|
| 98 | */
|
---|
| 99 | public function getBuild()
|
---|
| 100 | {
|
---|
| 101 | return $this->build;
|
---|
| 102 | }
|
---|
| 103 | /**
|
---|
| 104 | * @param ComplianceOccurrence
|
---|
| 105 | */
|
---|
| 106 | public function setCompliance(ComplianceOccurrence $compliance)
|
---|
| 107 | {
|
---|
| 108 | $this->compliance = $compliance;
|
---|
| 109 | }
|
---|
| 110 | /**
|
---|
| 111 | * @return ComplianceOccurrence
|
---|
| 112 | */
|
---|
| 113 | public function getCompliance()
|
---|
| 114 | {
|
---|
| 115 | return $this->compliance;
|
---|
| 116 | }
|
---|
| 117 | /**
|
---|
| 118 | * @param string
|
---|
| 119 | */
|
---|
| 120 | public function setCreateTime($createTime)
|
---|
| 121 | {
|
---|
| 122 | $this->createTime = $createTime;
|
---|
| 123 | }
|
---|
| 124 | /**
|
---|
| 125 | * @return string
|
---|
| 126 | */
|
---|
| 127 | public function getCreateTime()
|
---|
| 128 | {
|
---|
| 129 | return $this->createTime;
|
---|
| 130 | }
|
---|
| 131 | /**
|
---|
| 132 | * @param DeploymentOccurrence
|
---|
| 133 | */
|
---|
| 134 | public function setDeployment(DeploymentOccurrence $deployment)
|
---|
| 135 | {
|
---|
| 136 | $this->deployment = $deployment;
|
---|
| 137 | }
|
---|
| 138 | /**
|
---|
| 139 | * @return DeploymentOccurrence
|
---|
| 140 | */
|
---|
| 141 | public function getDeployment()
|
---|
| 142 | {
|
---|
| 143 | return $this->deployment;
|
---|
| 144 | }
|
---|
| 145 | /**
|
---|
| 146 | * @param DiscoveryOccurrence
|
---|
| 147 | */
|
---|
| 148 | public function setDiscovery(DiscoveryOccurrence $discovery)
|
---|
| 149 | {
|
---|
| 150 | $this->discovery = $discovery;
|
---|
| 151 | }
|
---|
| 152 | /**
|
---|
| 153 | * @return DiscoveryOccurrence
|
---|
| 154 | */
|
---|
| 155 | public function getDiscovery()
|
---|
| 156 | {
|
---|
| 157 | return $this->discovery;
|
---|
| 158 | }
|
---|
| 159 | /**
|
---|
| 160 | * @param DSSEAttestationOccurrence
|
---|
| 161 | */
|
---|
| 162 | public function setDsseAttestation(DSSEAttestationOccurrence $dsseAttestation)
|
---|
| 163 | {
|
---|
| 164 | $this->dsseAttestation = $dsseAttestation;
|
---|
| 165 | }
|
---|
| 166 | /**
|
---|
| 167 | * @return DSSEAttestationOccurrence
|
---|
| 168 | */
|
---|
| 169 | public function getDsseAttestation()
|
---|
| 170 | {
|
---|
| 171 | return $this->dsseAttestation;
|
---|
| 172 | }
|
---|
| 173 | /**
|
---|
| 174 | * @param Envelope
|
---|
| 175 | */
|
---|
| 176 | public function setEnvelope(Envelope $envelope)
|
---|
| 177 | {
|
---|
| 178 | $this->envelope = $envelope;
|
---|
| 179 | }
|
---|
| 180 | /**
|
---|
| 181 | * @return Envelope
|
---|
| 182 | */
|
---|
| 183 | public function getEnvelope()
|
---|
| 184 | {
|
---|
| 185 | return $this->envelope;
|
---|
| 186 | }
|
---|
| 187 | /**
|
---|
| 188 | * @param ImageOccurrence
|
---|
| 189 | */
|
---|
| 190 | public function setImage(ImageOccurrence $image)
|
---|
| 191 | {
|
---|
| 192 | $this->image = $image;
|
---|
| 193 | }
|
---|
| 194 | /**
|
---|
| 195 | * @return ImageOccurrence
|
---|
| 196 | */
|
---|
| 197 | public function getImage()
|
---|
| 198 | {
|
---|
| 199 | return $this->image;
|
---|
| 200 | }
|
---|
| 201 | /**
|
---|
| 202 | * @param string
|
---|
| 203 | */
|
---|
| 204 | public function setKind($kind)
|
---|
| 205 | {
|
---|
| 206 | $this->kind = $kind;
|
---|
| 207 | }
|
---|
| 208 | /**
|
---|
| 209 | * @return string
|
---|
| 210 | */
|
---|
| 211 | public function getKind()
|
---|
| 212 | {
|
---|
| 213 | return $this->kind;
|
---|
| 214 | }
|
---|
| 215 | /**
|
---|
| 216 | * @param string
|
---|
| 217 | */
|
---|
| 218 | public function setName($name)
|
---|
| 219 | {
|
---|
| 220 | $this->name = $name;
|
---|
| 221 | }
|
---|
| 222 | /**
|
---|
| 223 | * @return string
|
---|
| 224 | */
|
---|
| 225 | public function getName()
|
---|
| 226 | {
|
---|
| 227 | return $this->name;
|
---|
| 228 | }
|
---|
| 229 | /**
|
---|
| 230 | * @param string
|
---|
| 231 | */
|
---|
| 232 | public function setNoteName($noteName)
|
---|
| 233 | {
|
---|
| 234 | $this->noteName = $noteName;
|
---|
| 235 | }
|
---|
| 236 | /**
|
---|
| 237 | * @return string
|
---|
| 238 | */
|
---|
| 239 | public function getNoteName()
|
---|
| 240 | {
|
---|
| 241 | return $this->noteName;
|
---|
| 242 | }
|
---|
| 243 | /**
|
---|
| 244 | * @param PackageOccurrence
|
---|
| 245 | */
|
---|
| 246 | public function setPackage(PackageOccurrence $package)
|
---|
| 247 | {
|
---|
| 248 | $this->package = $package;
|
---|
| 249 | }
|
---|
| 250 | /**
|
---|
| 251 | * @return PackageOccurrence
|
---|
| 252 | */
|
---|
| 253 | public function getPackage()
|
---|
| 254 | {
|
---|
| 255 | return $this->package;
|
---|
| 256 | }
|
---|
| 257 | /**
|
---|
| 258 | * @param string
|
---|
| 259 | */
|
---|
| 260 | public function setRemediation($remediation)
|
---|
| 261 | {
|
---|
| 262 | $this->remediation = $remediation;
|
---|
| 263 | }
|
---|
| 264 | /**
|
---|
| 265 | * @return string
|
---|
| 266 | */
|
---|
| 267 | public function getRemediation()
|
---|
| 268 | {
|
---|
| 269 | return $this->remediation;
|
---|
| 270 | }
|
---|
| 271 | /**
|
---|
| 272 | * @param string
|
---|
| 273 | */
|
---|
| 274 | public function setResourceUri($resourceUri)
|
---|
| 275 | {
|
---|
| 276 | $this->resourceUri = $resourceUri;
|
---|
| 277 | }
|
---|
| 278 | /**
|
---|
| 279 | * @return string
|
---|
| 280 | */
|
---|
| 281 | public function getResourceUri()
|
---|
| 282 | {
|
---|
| 283 | return $this->resourceUri;
|
---|
| 284 | }
|
---|
| 285 | /**
|
---|
| 286 | * @param SBOMReferenceOccurrence
|
---|
| 287 | */
|
---|
| 288 | public function setSbomReference(SBOMReferenceOccurrence $sbomReference)
|
---|
| 289 | {
|
---|
| 290 | $this->sbomReference = $sbomReference;
|
---|
| 291 | }
|
---|
| 292 | /**
|
---|
| 293 | * @return SBOMReferenceOccurrence
|
---|
| 294 | */
|
---|
| 295 | public function getSbomReference()
|
---|
| 296 | {
|
---|
| 297 | return $this->sbomReference;
|
---|
| 298 | }
|
---|
| 299 | /**
|
---|
| 300 | * @param string
|
---|
| 301 | */
|
---|
| 302 | public function setUpdateTime($updateTime)
|
---|
| 303 | {
|
---|
| 304 | $this->updateTime = $updateTime;
|
---|
| 305 | }
|
---|
| 306 | /**
|
---|
| 307 | * @return string
|
---|
| 308 | */
|
---|
| 309 | public function getUpdateTime()
|
---|
| 310 | {
|
---|
| 311 | return $this->updateTime;
|
---|
| 312 | }
|
---|
| 313 | /**
|
---|
| 314 | * @param UpgradeOccurrence
|
---|
| 315 | */
|
---|
| 316 | public function setUpgrade(UpgradeOccurrence $upgrade)
|
---|
| 317 | {
|
---|
| 318 | $this->upgrade = $upgrade;
|
---|
| 319 | }
|
---|
| 320 | /**
|
---|
| 321 | * @return UpgradeOccurrence
|
---|
| 322 | */
|
---|
| 323 | public function getUpgrade()
|
---|
| 324 | {
|
---|
| 325 | return $this->upgrade;
|
---|
| 326 | }
|
---|
| 327 | /**
|
---|
| 328 | * @param VulnerabilityOccurrence
|
---|
| 329 | */
|
---|
| 330 | public function setVulnerability(VulnerabilityOccurrence $vulnerability)
|
---|
| 331 | {
|
---|
| 332 | $this->vulnerability = $vulnerability;
|
---|
| 333 | }
|
---|
| 334 | /**
|
---|
| 335 | * @return VulnerabilityOccurrence
|
---|
| 336 | */
|
---|
| 337 | public function getVulnerability()
|
---|
| 338 | {
|
---|
| 339 | return $this->vulnerability;
|
---|
| 340 | }
|
---|
| 341 | }
|
---|
| 342 |
|
---|
| 343 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 344 | class_alias(Occurrence::class, 'Google_Service_ContainerAnalysis_Occurrence');
|
---|