Skip to content

Commit 5bf1558

Browse files
1 parent e8785e8 commit 5bf1558

6 files changed

Lines changed: 568 additions & 0 deletions
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
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 AgentDataAccessEvent extends \Google\Model
21+
{
22+
/**
23+
* The operation is unspecified.
24+
*/
25+
public const OPERATION_OPERATION_UNSPECIFIED = 'OPERATION_UNSPECIFIED';
26+
/**
27+
* Represents a read operation.
28+
*/
29+
public const OPERATION_READ = 'READ';
30+
/**
31+
* Represents a move operation.
32+
*/
33+
public const OPERATION_MOVE = 'MOVE';
34+
/**
35+
* Represents a copy operation.
36+
*/
37+
public const OPERATION_COPY = 'COPY';
38+
/**
39+
* Unique identifier for data access event.
40+
*
41+
* @var string
42+
*/
43+
public $eventId;
44+
/**
45+
* Timestamp of data access event.
46+
*
47+
* @var string
48+
*/
49+
public $eventTime;
50+
/**
51+
* The operation performed by the principal to access the data.
52+
*
53+
* @var string
54+
*/
55+
public $operation;
56+
/**
57+
* The agent principal that accessed the data.
58+
*
59+
* @var string
60+
*/
61+
public $principalSubject;
62+
63+
/**
64+
* Unique identifier for data access event.
65+
*
66+
* @param string $eventId
67+
*/
68+
public function setEventId($eventId)
69+
{
70+
$this->eventId = $eventId;
71+
}
72+
/**
73+
* @return string
74+
*/
75+
public function getEventId()
76+
{
77+
return $this->eventId;
78+
}
79+
/**
80+
* Timestamp of data access event.
81+
*
82+
* @param string $eventTime
83+
*/
84+
public function setEventTime($eventTime)
85+
{
86+
$this->eventTime = $eventTime;
87+
}
88+
/**
89+
* @return string
90+
*/
91+
public function getEventTime()
92+
{
93+
return $this->eventTime;
94+
}
95+
/**
96+
* The operation performed by the principal to access the data.
97+
*
98+
* Accepted values: OPERATION_UNSPECIFIED, READ, MOVE, COPY
99+
*
100+
* @param self::OPERATION_* $operation
101+
*/
102+
public function setOperation($operation)
103+
{
104+
$this->operation = $operation;
105+
}
106+
/**
107+
* @return self::OPERATION_*
108+
*/
109+
public function getOperation()
110+
{
111+
return $this->operation;
112+
}
113+
/**
114+
* The agent principal that accessed the data.
115+
*
116+
* @param string $principalSubject
117+
*/
118+
public function setPrincipalSubject($principalSubject)
119+
{
120+
$this->principalSubject = $principalSubject;
121+
}
122+
/**
123+
* @return string
124+
*/
125+
public function getPrincipalSubject()
126+
{
127+
return $this->principalSubject;
128+
}
129+
}
130+
131+
// Adding a class alias for backwards compatibility with the previous class name.
132+
class_alias(AgentDataAccessEvent::class, 'Google_Service_SecurityCommandCenter_AgentDataAccessEvent');

src/SecurityCommandCenter/Finding.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ class Finding extends \Google\Collection
154154
protected $accessDataType = '';
155155
protected $affectedResourcesType = AffectedResources::class;
156156
protected $affectedResourcesDataType = '';
157+
protected $agentDataAccessEventsType = AgentDataAccessEvent::class;
158+
protected $agentDataAccessEventsDataType = 'array';
157159
protected $aiModelType = AiModel::class;
158160
protected $aiModelDataType = '';
159161
protected $applicationType = Application::class;
@@ -346,6 +348,8 @@ class Finding extends \Google\Collection
346348
* @var string
347349
*/
348350
public $parentDisplayName;
351+
protected $policyViolationSummaryType = PolicyViolationSummary::class;
352+
protected $policyViolationSummaryDataType = '';
349353
protected $processesType = Process::class;
350354
protected $processesDataType = 'array';
351355
/**
@@ -427,6 +431,22 @@ public function getAffectedResources()
427431
{
428432
return $this->affectedResources;
429433
}
434+
/**
435+
* Agent data access events associated with the finding.
436+
*
437+
* @param AgentDataAccessEvent[] $agentDataAccessEvents
438+
*/
439+
public function setAgentDataAccessEvents($agentDataAccessEvents)
440+
{
441+
$this->agentDataAccessEvents = $agentDataAccessEvents;
442+
}
443+
/**
444+
* @return AgentDataAccessEvent[]
445+
*/
446+
public function getAgentDataAccessEvents()
447+
{
448+
return $this->agentDataAccessEvents;
449+
}
430450
/**
431451
* The AI model associated with the finding.
432452
*
@@ -1313,6 +1333,22 @@ public function getParentDisplayName()
13131333
{
13141334
return $this->parentDisplayName;
13151335
}
1336+
/**
1337+
* PolicyViolationSummary associated with the finding.
1338+
*
1339+
* @param PolicyViolationSummary $policyViolationSummary
1340+
*/
1341+
public function setPolicyViolationSummary(PolicyViolationSummary $policyViolationSummary)
1342+
{
1343+
$this->policyViolationSummary = $policyViolationSummary;
1344+
}
1345+
/**
1346+
* @return PolicyViolationSummary
1347+
*/
1348+
public function getPolicyViolationSummary()
1349+
{
1350+
return $this->policyViolationSummary;
1351+
}
13161352
/**
13171353
* Represents operating system processes associated with the Finding.
13181354
*
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
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 GoogleCloudSecuritycenterV2AgentDataAccessEvent extends \Google\Model
21+
{
22+
/**
23+
* The operation is unspecified.
24+
*/
25+
public const OPERATION_OPERATION_UNSPECIFIED = 'OPERATION_UNSPECIFIED';
26+
/**
27+
* Represents a read operation.
28+
*/
29+
public const OPERATION_READ = 'READ';
30+
/**
31+
* Represents a move operation.
32+
*/
33+
public const OPERATION_MOVE = 'MOVE';
34+
/**
35+
* Represents a copy operation.
36+
*/
37+
public const OPERATION_COPY = 'COPY';
38+
/**
39+
* Unique identifier for data access event.
40+
*
41+
* @var string
42+
*/
43+
public $eventId;
44+
/**
45+
* Timestamp of data access event.
46+
*
47+
* @var string
48+
*/
49+
public $eventTime;
50+
/**
51+
* The operation performed by the principal to access the data.
52+
*
53+
* @var string
54+
*/
55+
public $operation;
56+
/**
57+
* The agent principal that accessed the data.
58+
*
59+
* @var string
60+
*/
61+
public $principalSubject;
62+
63+
/**
64+
* Unique identifier for data access event.
65+
*
66+
* @param string $eventId
67+
*/
68+
public function setEventId($eventId)
69+
{
70+
$this->eventId = $eventId;
71+
}
72+
/**
73+
* @return string
74+
*/
75+
public function getEventId()
76+
{
77+
return $this->eventId;
78+
}
79+
/**
80+
* Timestamp of data access event.
81+
*
82+
* @param string $eventTime
83+
*/
84+
public function setEventTime($eventTime)
85+
{
86+
$this->eventTime = $eventTime;
87+
}
88+
/**
89+
* @return string
90+
*/
91+
public function getEventTime()
92+
{
93+
return $this->eventTime;
94+
}
95+
/**
96+
* The operation performed by the principal to access the data.
97+
*
98+
* Accepted values: OPERATION_UNSPECIFIED, READ, MOVE, COPY
99+
*
100+
* @param self::OPERATION_* $operation
101+
*/
102+
public function setOperation($operation)
103+
{
104+
$this->operation = $operation;
105+
}
106+
/**
107+
* @return self::OPERATION_*
108+
*/
109+
public function getOperation()
110+
{
111+
return $this->operation;
112+
}
113+
/**
114+
* The agent principal that accessed the data.
115+
*
116+
* @param string $principalSubject
117+
*/
118+
public function setPrincipalSubject($principalSubject)
119+
{
120+
$this->principalSubject = $principalSubject;
121+
}
122+
/**
123+
* @return string
124+
*/
125+
public function getPrincipalSubject()
126+
{
127+
return $this->principalSubject;
128+
}
129+
}
130+
131+
// Adding a class alias for backwards compatibility with the previous class name.
132+
class_alias(GoogleCloudSecuritycenterV2AgentDataAccessEvent::class, 'Google_Service_SecurityCommandCenter_GoogleCloudSecuritycenterV2AgentDataAccessEvent');

src/SecurityCommandCenter/GoogleCloudSecuritycenterV2Finding.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ class GoogleCloudSecuritycenterV2Finding extends \Google\Collection
153153
protected $accessDataType = '';
154154
protected $affectedResourcesType = GoogleCloudSecuritycenterV2AffectedResources::class;
155155
protected $affectedResourcesDataType = '';
156+
protected $agentDataAccessEventsType = GoogleCloudSecuritycenterV2AgentDataAccessEvent::class;
157+
protected $agentDataAccessEventsDataType = 'array';
156158
protected $aiModelType = GoogleCloudSecuritycenterV2AiModel::class;
157159
protected $aiModelDataType = '';
158160
protected $applicationType = GoogleCloudSecuritycenterV2Application::class;
@@ -367,6 +369,8 @@ class GoogleCloudSecuritycenterV2Finding extends \Google\Collection
367369
* @var string
368370
*/
369371
public $parentDisplayName;
372+
protected $policyViolationSummaryType = GoogleCloudSecuritycenterV2PolicyViolationSummary::class;
373+
protected $policyViolationSummaryDataType = '';
370374
protected $processesType = GoogleCloudSecuritycenterV2Process::class;
371375
protected $processesDataType = 'array';
372376
/**
@@ -447,6 +451,22 @@ public function getAffectedResources()
447451
{
448452
return $this->affectedResources;
449453
}
454+
/**
455+
* Agent data access events associated with the finding.
456+
*
457+
* @param GoogleCloudSecuritycenterV2AgentDataAccessEvent[] $agentDataAccessEvents
458+
*/
459+
public function setAgentDataAccessEvents($agentDataAccessEvents)
460+
{
461+
$this->agentDataAccessEvents = $agentDataAccessEvents;
462+
}
463+
/**
464+
* @return GoogleCloudSecuritycenterV2AgentDataAccessEvent[]
465+
*/
466+
public function getAgentDataAccessEvents()
467+
{
468+
return $this->agentDataAccessEvents;
469+
}
450470
/**
451471
* The AI model associated with the finding.
452472
*
@@ -1365,6 +1385,22 @@ public function getParentDisplayName()
13651385
{
13661386
return $this->parentDisplayName;
13671387
}
1388+
/**
1389+
* PolicyViolationSummary associated with the finding.
1390+
*
1391+
* @param GoogleCloudSecuritycenterV2PolicyViolationSummary $policyViolationSummary
1392+
*/
1393+
public function setPolicyViolationSummary(GoogleCloudSecuritycenterV2PolicyViolationSummary $policyViolationSummary)
1394+
{
1395+
$this->policyViolationSummary = $policyViolationSummary;
1396+
}
1397+
/**
1398+
* @return GoogleCloudSecuritycenterV2PolicyViolationSummary
1399+
*/
1400+
public function getPolicyViolationSummary()
1401+
{
1402+
return $this->policyViolationSummary;
1403+
}
13681404
/**
13691405
* Represents operating system processes associated with the Finding.
13701406
*

0 commit comments

Comments
 (0)