Skip to content

Commit 65d8506

Browse files
1 parent 6d45791 commit 65d8506

4 files changed

Lines changed: 376 additions & 0 deletions

File tree

Lines changed: 170 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
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\SecurityCommandCenter;
19+
20+
class DiscoveredWorkload extends \Google\Model
21+
{
22+
/**
23+
* Unspecified confidence level.
24+
*/
25+
public const CONFIDENCE_CONFIDENCE_UNSPECIFIED = 'CONFIDENCE_UNSPECIFIED';
26+
/**
27+
* High confidence in detection of a workload.
28+
*/
29+
public const CONFIDENCE_CONFIDENCE_HIGH = 'CONFIDENCE_HIGH';
30+
/**
31+
* Unspecified workload type
32+
*/
33+
public const WORKLOAD_TYPE_WORKLOAD_TYPE_UNSPECIFIED = 'WORKLOAD_TYPE_UNSPECIFIED';
34+
/**
35+
* A workload of type MCP Server
36+
*/
37+
public const WORKLOAD_TYPE_MCP_SERVER = 'MCP_SERVER';
38+
/**
39+
* A workload of type AI Inference
40+
*/
41+
public const WORKLOAD_TYPE_AI_INFERENCE = 'AI_INFERENCE';
42+
/**
43+
* A workload of type LLM Agent
44+
*/
45+
public const WORKLOAD_TYPE_AGENT = 'AGENT';
46+
/**
47+
* The confidence in detection of this workload.
48+
*
49+
* @var string
50+
*/
51+
public $confidence;
52+
/**
53+
* A boolean flag set to true if associated hardware strongly predicts the
54+
* workload type.
55+
*
56+
* @var bool
57+
*/
58+
public $detectedRelevantHardware;
59+
/**
60+
* A boolean flag set to true if associated keywords strongly predict the
61+
* workload type.
62+
*
63+
* @var bool
64+
*/
65+
public $detectedRelevantKeywords;
66+
/**
67+
* A boolean flag set to true if installed packages strongly predict the
68+
* workload type.
69+
*
70+
* @var bool
71+
*/
72+
public $detectedRelevantPackages;
73+
/**
74+
* The type of workload.
75+
*
76+
* @var string
77+
*/
78+
public $workloadType;
79+
80+
/**
81+
* The confidence in detection of this workload.
82+
*
83+
* Accepted values: CONFIDENCE_UNSPECIFIED, CONFIDENCE_HIGH
84+
*
85+
* @param self::CONFIDENCE_* $confidence
86+
*/
87+
public function setConfidence($confidence)
88+
{
89+
$this->confidence = $confidence;
90+
}
91+
/**
92+
* @return self::CONFIDENCE_*
93+
*/
94+
public function getConfidence()
95+
{
96+
return $this->confidence;
97+
}
98+
/**
99+
* A boolean flag set to true if associated hardware strongly predicts the
100+
* workload type.
101+
*
102+
* @param bool $detectedRelevantHardware
103+
*/
104+
public function setDetectedRelevantHardware($detectedRelevantHardware)
105+
{
106+
$this->detectedRelevantHardware = $detectedRelevantHardware;
107+
}
108+
/**
109+
* @return bool
110+
*/
111+
public function getDetectedRelevantHardware()
112+
{
113+
return $this->detectedRelevantHardware;
114+
}
115+
/**
116+
* A boolean flag set to true if associated keywords strongly predict the
117+
* workload type.
118+
*
119+
* @param bool $detectedRelevantKeywords
120+
*/
121+
public function setDetectedRelevantKeywords($detectedRelevantKeywords)
122+
{
123+
$this->detectedRelevantKeywords = $detectedRelevantKeywords;
124+
}
125+
/**
126+
* @return bool
127+
*/
128+
public function getDetectedRelevantKeywords()
129+
{
130+
return $this->detectedRelevantKeywords;
131+
}
132+
/**
133+
* A boolean flag set to true if installed packages strongly predict the
134+
* workload type.
135+
*
136+
* @param bool $detectedRelevantPackages
137+
*/
138+
public function setDetectedRelevantPackages($detectedRelevantPackages)
139+
{
140+
$this->detectedRelevantPackages = $detectedRelevantPackages;
141+
}
142+
/**
143+
* @return bool
144+
*/
145+
public function getDetectedRelevantPackages()
146+
{
147+
return $this->detectedRelevantPackages;
148+
}
149+
/**
150+
* The type of workload.
151+
*
152+
* Accepted values: WORKLOAD_TYPE_UNSPECIFIED, MCP_SERVER, AI_INFERENCE, AGENT
153+
*
154+
* @param self::WORKLOAD_TYPE_* $workloadType
155+
*/
156+
public function setWorkloadType($workloadType)
157+
{
158+
$this->workloadType = $workloadType;
159+
}
160+
/**
161+
* @return self::WORKLOAD_TYPE_*
162+
*/
163+
public function getWorkloadType()
164+
{
165+
return $this->workloadType;
166+
}
167+
}
168+
169+
// Adding a class alias for backwards compatibility with the previous class name.
170+
class_alias(DiscoveredWorkload::class, 'Google_Service_SecurityCommandCenter_DiscoveredWorkload');

src/SecurityCommandCenter/Finding.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@ class Finding extends \Google\Collection
222222
* @var string
223223
*/
224224
public $description;
225+
protected $discoveredWorkloadType = DiscoveredWorkload::class;
226+
protected $discoveredWorkloadDataType = '';
225227
protected $diskType = Disk::class;
226228
protected $diskDataType = '';
227229
/**
@@ -817,6 +819,22 @@ public function getDescription()
817819
{
818820
return $this->description;
819821
}
822+
/**
823+
* DiscoveredWorkload associated with the finding.
824+
*
825+
* @param DiscoveredWorkload $discoveredWorkload
826+
*/
827+
public function setDiscoveredWorkload(DiscoveredWorkload $discoveredWorkload)
828+
{
829+
$this->discoveredWorkload = $discoveredWorkload;
830+
}
831+
/**
832+
* @return DiscoveredWorkload
833+
*/
834+
public function getDiscoveredWorkload()
835+
{
836+
return $this->discoveredWorkload;
837+
}
820838
/**
821839
* Disk associated with the finding.
822840
*
Lines changed: 170 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
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\SecurityCommandCenter;
19+
20+
class GoogleCloudSecuritycenterV2DiscoveredWorkload extends \Google\Model
21+
{
22+
/**
23+
* Unspecified confidence level.
24+
*/
25+
public const CONFIDENCE_CONFIDENCE_UNSPECIFIED = 'CONFIDENCE_UNSPECIFIED';
26+
/**
27+
* High confidence in detection of a workload.
28+
*/
29+
public const CONFIDENCE_CONFIDENCE_HIGH = 'CONFIDENCE_HIGH';
30+
/**
31+
* Unspecified workload type
32+
*/
33+
public const WORKLOAD_TYPE_WORKLOAD_TYPE_UNSPECIFIED = 'WORKLOAD_TYPE_UNSPECIFIED';
34+
/**
35+
* A workload of type MCP Server
36+
*/
37+
public const WORKLOAD_TYPE_MCP_SERVER = 'MCP_SERVER';
38+
/**
39+
* A workload of type AI Inference
40+
*/
41+
public const WORKLOAD_TYPE_AI_INFERENCE = 'AI_INFERENCE';
42+
/**
43+
* A workload of type LLM Agent
44+
*/
45+
public const WORKLOAD_TYPE_AGENT = 'AGENT';
46+
/**
47+
* The confidence in detection of this workload.
48+
*
49+
* @var string
50+
*/
51+
public $confidence;
52+
/**
53+
* A boolean flag set to true if associated hardware strongly predicts the
54+
* workload type.
55+
*
56+
* @var bool
57+
*/
58+
public $detectedRelevantHardware;
59+
/**
60+
* A boolean flag set to true if associated keywords strongly predict the
61+
* workload type.
62+
*
63+
* @var bool
64+
*/
65+
public $detectedRelevantKeywords;
66+
/**
67+
* A boolean flag set to true if installed packages strongly predict the
68+
* workload type.
69+
*
70+
* @var bool
71+
*/
72+
public $detectedRelevantPackages;
73+
/**
74+
* The type of workload.
75+
*
76+
* @var string
77+
*/
78+
public $workloadType;
79+
80+
/**
81+
* The confidence in detection of this workload.
82+
*
83+
* Accepted values: CONFIDENCE_UNSPECIFIED, CONFIDENCE_HIGH
84+
*
85+
* @param self::CONFIDENCE_* $confidence
86+
*/
87+
public function setConfidence($confidence)
88+
{
89+
$this->confidence = $confidence;
90+
}
91+
/**
92+
* @return self::CONFIDENCE_*
93+
*/
94+
public function getConfidence()
95+
{
96+
return $this->confidence;
97+
}
98+
/**
99+
* A boolean flag set to true if associated hardware strongly predicts the
100+
* workload type.
101+
*
102+
* @param bool $detectedRelevantHardware
103+
*/
104+
public function setDetectedRelevantHardware($detectedRelevantHardware)
105+
{
106+
$this->detectedRelevantHardware = $detectedRelevantHardware;
107+
}
108+
/**
109+
* @return bool
110+
*/
111+
public function getDetectedRelevantHardware()
112+
{
113+
return $this->detectedRelevantHardware;
114+
}
115+
/**
116+
* A boolean flag set to true if associated keywords strongly predict the
117+
* workload type.
118+
*
119+
* @param bool $detectedRelevantKeywords
120+
*/
121+
public function setDetectedRelevantKeywords($detectedRelevantKeywords)
122+
{
123+
$this->detectedRelevantKeywords = $detectedRelevantKeywords;
124+
}
125+
/**
126+
* @return bool
127+
*/
128+
public function getDetectedRelevantKeywords()
129+
{
130+
return $this->detectedRelevantKeywords;
131+
}
132+
/**
133+
* A boolean flag set to true if installed packages strongly predict the
134+
* workload type.
135+
*
136+
* @param bool $detectedRelevantPackages
137+
*/
138+
public function setDetectedRelevantPackages($detectedRelevantPackages)
139+
{
140+
$this->detectedRelevantPackages = $detectedRelevantPackages;
141+
}
142+
/**
143+
* @return bool
144+
*/
145+
public function getDetectedRelevantPackages()
146+
{
147+
return $this->detectedRelevantPackages;
148+
}
149+
/**
150+
* The type of workload.
151+
*
152+
* Accepted values: WORKLOAD_TYPE_UNSPECIFIED, MCP_SERVER, AI_INFERENCE, AGENT
153+
*
154+
* @param self::WORKLOAD_TYPE_* $workloadType
155+
*/
156+
public function setWorkloadType($workloadType)
157+
{
158+
$this->workloadType = $workloadType;
159+
}
160+
/**
161+
* @return self::WORKLOAD_TYPE_*
162+
*/
163+
public function getWorkloadType()
164+
{
165+
return $this->workloadType;
166+
}
167+
}
168+
169+
// Adding a class alias for backwards compatibility with the previous class name.
170+
class_alias(GoogleCloudSecuritycenterV2DiscoveredWorkload::class, 'Google_Service_SecurityCommandCenter_GoogleCloudSecuritycenterV2DiscoveredWorkload');

0 commit comments

Comments
 (0)