Skip to content

Commit 7fbaf61

Browse files
1 parent c608a97 commit 7fbaf61

3 files changed

Lines changed: 44 additions & 22 deletions

File tree

src/ContainerAnalysis/BaseImage.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ class BaseImage extends \Google\Model
3131
* @var string
3232
*/
3333
public $name;
34+
/**
35+
* The registry in which the base image is from.
36+
*
37+
* @var string
38+
*/
39+
public $registry;
3440
/**
3541
* The repository name in which the base image is from.
3642
*
@@ -70,6 +76,22 @@ public function getName()
7076
{
7177
return $this->name;
7278
}
79+
/**
80+
* The registry in which the base image is from.
81+
*
82+
* @param string $registry
83+
*/
84+
public function setRegistry($registry)
85+
{
86+
$this->registry = $registry;
87+
}
88+
/**
89+
* @return string
90+
*/
91+
public function getRegistry()
92+
{
93+
return $this->registry;
94+
}
7395
/**
7496
* The repository name in which the base image is from.
7597
*

src/ContainerAnalysis/Note.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,6 @@ class Note extends \Google\Collection
7676
*/
7777
public const KIND_SECRET = 'SECRET';
7878
protected $collection_key = 'relatedUrl';
79-
/**
80-
* The timestamp when the advisory was first published by the source feed.
81-
*
82-
* @var string
83-
*/
84-
public $advisoryPublishTime;
8579
protected $attestationType = AttestationNote::class;
8680
protected $attestationDataType = '';
8781
protected $buildType = BuildNote::class;
@@ -163,22 +157,6 @@ class Note extends \Google\Collection
163157
protected $vulnerabilityAssessmentType = VulnerabilityAssessmentNote::class;
164158
protected $vulnerabilityAssessmentDataType = '';
165159

166-
/**
167-
* The timestamp when the advisory was first published by the source feed.
168-
*
169-
* @param string $advisoryPublishTime
170-
*/
171-
public function setAdvisoryPublishTime($advisoryPublishTime)
172-
{
173-
$this->advisoryPublishTime = $advisoryPublishTime;
174-
}
175-
/**
176-
* @return string
177-
*/
178-
public function getAdvisoryPublishTime()
179-
{
180-
return $this->advisoryPublishTime;
181-
}
182160
/**
183161
* A note describing an attestation role.
184162
*

src/ContainerAnalysis/VulnerabilityNote.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ class VulnerabilityNote extends \Google\Collection
4747
*/
4848
public const SEVERITY_CRITICAL = 'CRITICAL';
4949
protected $collection_key = 'windowsDetails';
50+
/**
51+
* The time this advisory was published by the source.
52+
*
53+
* @var string
54+
*/
55+
public $advisoryPublishTime;
5056
/**
5157
* The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10
5258
* where 0 indicates low severity and 10 indicates high severity.
@@ -83,6 +89,22 @@ class VulnerabilityNote extends \Google\Collection
8389
protected $windowsDetailsType = WindowsDetail::class;
8490
protected $windowsDetailsDataType = 'array';
8591

92+
/**
93+
* The time this advisory was published by the source.
94+
*
95+
* @param string $advisoryPublishTime
96+
*/
97+
public function setAdvisoryPublishTime($advisoryPublishTime)
98+
{
99+
$this->advisoryPublishTime = $advisoryPublishTime;
100+
}
101+
/**
102+
* @return string
103+
*/
104+
public function getAdvisoryPublishTime()
105+
{
106+
return $this->advisoryPublishTime;
107+
}
86108
/**
87109
* The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10
88110
* where 0 indicates low severity and 10 indicates high severity.

0 commit comments

Comments
 (0)