diff --git a/src/SecurityCommandCenter/Agent.php b/src/SecurityCommandCenter/Agent.php new file mode 100644 index 0000000000..7254d1c6bc --- /dev/null +++ b/src/SecurityCommandCenter/Agent.php @@ -0,0 +1,62 @@ +displayName = $displayName; + } + /** + * @return string + */ + public function getDisplayName() + { + return $this->displayName; + } + /** + * @param string $id + */ + public function setId($id) + { + $this->id = $id; + } + /** + * @return string + */ + public function getId() + { + return $this->id; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Agent::class, 'Google_Service_SecurityCommandCenter_Agent'); diff --git a/src/SecurityCommandCenter/AgentAnomaly.php b/src/SecurityCommandCenter/AgentAnomaly.php new file mode 100644 index 0000000000..045c54a7f4 --- /dev/null +++ b/src/SecurityCommandCenter/AgentAnomaly.php @@ -0,0 +1,68 @@ +confidenceScore = $confidenceScore; + } + public function getConfidenceScore() + { + return $this->confidenceScore; + } + /** + * @param DetectorReference[] $detectorReferences + */ + public function setDetectorReferences($detectorReferences) + { + $this->detectorReferences = $detectorReferences; + } + /** + * @return DetectorReference[] + */ + public function getDetectorReferences() + { + return $this->detectorReferences; + } + /** + * @param InvocationReference[] $invocationReferences + */ + public function setInvocationReferences($invocationReferences) + { + $this->invocationReferences = $invocationReferences; + } + /** + * @return InvocationReference[] + */ + public function getInvocationReferences() + { + return $this->invocationReferences; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AgentAnomaly::class, 'Google_Service_SecurityCommandCenter_AgentAnomaly'); diff --git a/src/SecurityCommandCenter/AgentSession.php b/src/SecurityCommandCenter/AgentSession.php new file mode 100644 index 0000000000..7db516fc94 --- /dev/null +++ b/src/SecurityCommandCenter/AgentSession.php @@ -0,0 +1,44 @@ +sessionId = $sessionId; + } + /** + * @return string + */ + public function getSessionId() + { + return $this->sessionId; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AgentSession::class, 'Google_Service_SecurityCommandCenter_AgentSession'); diff --git a/src/SecurityCommandCenter/DetectorReference.php b/src/SecurityCommandCenter/DetectorReference.php new file mode 100644 index 0000000000..cff2f2c165 --- /dev/null +++ b/src/SecurityCommandCenter/DetectorReference.php @@ -0,0 +1,121 @@ +detectorId = $detectorId; + } + /** + * @return string + */ + public function getDetectorId() + { + return $this->detectorId; + } + /** + * @param string $displayName + */ + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + /** + * @return string + */ + public function getDisplayName() + { + return $this->displayName; + } + /** + * @param string $explanation + */ + public function setExplanation($explanation) + { + $this->explanation = $explanation; + } + /** + * @return string + */ + public function getExplanation() + { + return $this->explanation; + } + /** + * @param string $recommendation + */ + public function setRecommendation($recommendation) + { + $this->recommendation = $recommendation; + } + /** + * @return string + */ + public function getRecommendation() + { + return $this->recommendation; + } + /** + * @param self::SEVERITY_* $severity + */ + public function setSeverity($severity) + { + $this->severity = $severity; + } + /** + * @return self::SEVERITY_* + */ + public function getSeverity() + { + return $this->severity; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DetectorReference::class, 'Google_Service_SecurityCommandCenter_DetectorReference'); diff --git a/src/SecurityCommandCenter/Finding.php b/src/SecurityCommandCenter/Finding.php index d1a56b57e2..c6d3933ba6 100644 --- a/src/SecurityCommandCenter/Finding.php +++ b/src/SecurityCommandCenter/Finding.php @@ -48,8 +48,14 @@ class Finding extends \Google\Collection protected $accessDataType = ''; protected $affectedResourcesType = AffectedResources::class; protected $affectedResourcesDataType = ''; + protected $agentType = Agent::class; + protected $agentDataType = ''; + protected $agentAnomalyType = AgentAnomaly::class; + protected $agentAnomalyDataType = ''; protected $agentDataAccessEventsType = AgentDataAccessEvent::class; protected $agentDataAccessEventsDataType = 'array'; + protected $agentSessionsType = AgentSession::class; + protected $agentSessionsDataType = 'array'; protected $aiModelType = AiModel::class; protected $aiModelDataType = ''; protected $applicationType = Application::class; @@ -249,6 +255,34 @@ public function getAffectedResources() { return $this->affectedResources; } + /** + * @param Agent $agent + */ + public function setAgent(Agent $agent) + { + $this->agent = $agent; + } + /** + * @return Agent + */ + public function getAgent() + { + return $this->agent; + } + /** + * @param AgentAnomaly $agentAnomaly + */ + public function setAgentAnomaly(AgentAnomaly $agentAnomaly) + { + $this->agentAnomaly = $agentAnomaly; + } + /** + * @return AgentAnomaly + */ + public function getAgentAnomaly() + { + return $this->agentAnomaly; + } /** * @param AgentDataAccessEvent[] $agentDataAccessEvents */ @@ -263,6 +297,20 @@ public function getAgentDataAccessEvents() { return $this->agentDataAccessEvents; } + /** + * @param AgentSession[] $agentSessions + */ + public function setAgentSessions($agentSessions) + { + $this->agentSessions = $agentSessions; + } + /** + * @return AgentSession[] + */ + public function getAgentSessions() + { + return $this->agentSessions; + } /** * @param AiModel $aiModel */ diff --git a/src/SecurityCommandCenter/GoogleCloudSecuritycenterV2Agent.php b/src/SecurityCommandCenter/GoogleCloudSecuritycenterV2Agent.php new file mode 100644 index 0000000000..1fec6f7fbd --- /dev/null +++ b/src/SecurityCommandCenter/GoogleCloudSecuritycenterV2Agent.php @@ -0,0 +1,62 @@ +displayName = $displayName; + } + /** + * @return string + */ + public function getDisplayName() + { + return $this->displayName; + } + /** + * @param string $id + */ + public function setId($id) + { + $this->id = $id; + } + /** + * @return string + */ + public function getId() + { + return $this->id; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudSecuritycenterV2Agent::class, 'Google_Service_SecurityCommandCenter_GoogleCloudSecuritycenterV2Agent'); diff --git a/src/SecurityCommandCenter/GoogleCloudSecuritycenterV2AgentAnomaly.php b/src/SecurityCommandCenter/GoogleCloudSecuritycenterV2AgentAnomaly.php new file mode 100644 index 0000000000..48c5c89a0a --- /dev/null +++ b/src/SecurityCommandCenter/GoogleCloudSecuritycenterV2AgentAnomaly.php @@ -0,0 +1,68 @@ +confidenceScore = $confidenceScore; + } + public function getConfidenceScore() + { + return $this->confidenceScore; + } + /** + * @param GoogleCloudSecuritycenterV2DetectorReference[] $detectorReferences + */ + public function setDetectorReferences($detectorReferences) + { + $this->detectorReferences = $detectorReferences; + } + /** + * @return GoogleCloudSecuritycenterV2DetectorReference[] + */ + public function getDetectorReferences() + { + return $this->detectorReferences; + } + /** + * @param GoogleCloudSecuritycenterV2InvocationReference[] $invocationReferences + */ + public function setInvocationReferences($invocationReferences) + { + $this->invocationReferences = $invocationReferences; + } + /** + * @return GoogleCloudSecuritycenterV2InvocationReference[] + */ + public function getInvocationReferences() + { + return $this->invocationReferences; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudSecuritycenterV2AgentAnomaly::class, 'Google_Service_SecurityCommandCenter_GoogleCloudSecuritycenterV2AgentAnomaly'); diff --git a/src/SecurityCommandCenter/GoogleCloudSecuritycenterV2AgentSession.php b/src/SecurityCommandCenter/GoogleCloudSecuritycenterV2AgentSession.php new file mode 100644 index 0000000000..643c04364e --- /dev/null +++ b/src/SecurityCommandCenter/GoogleCloudSecuritycenterV2AgentSession.php @@ -0,0 +1,44 @@ +sessionId = $sessionId; + } + /** + * @return string + */ + public function getSessionId() + { + return $this->sessionId; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudSecuritycenterV2AgentSession::class, 'Google_Service_SecurityCommandCenter_GoogleCloudSecuritycenterV2AgentSession'); diff --git a/src/SecurityCommandCenter/GoogleCloudSecuritycenterV2DetectorReference.php b/src/SecurityCommandCenter/GoogleCloudSecuritycenterV2DetectorReference.php new file mode 100644 index 0000000000..283eecc290 --- /dev/null +++ b/src/SecurityCommandCenter/GoogleCloudSecuritycenterV2DetectorReference.php @@ -0,0 +1,121 @@ +detectorId = $detectorId; + } + /** + * @return string + */ + public function getDetectorId() + { + return $this->detectorId; + } + /** + * @param string $displayName + */ + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + /** + * @return string + */ + public function getDisplayName() + { + return $this->displayName; + } + /** + * @param string $explanation + */ + public function setExplanation($explanation) + { + $this->explanation = $explanation; + } + /** + * @return string + */ + public function getExplanation() + { + return $this->explanation; + } + /** + * @param string $recommendation + */ + public function setRecommendation($recommendation) + { + $this->recommendation = $recommendation; + } + /** + * @return string + */ + public function getRecommendation() + { + return $this->recommendation; + } + /** + * @param self::SEVERITY_* $severity + */ + public function setSeverity($severity) + { + $this->severity = $severity; + } + /** + * @return self::SEVERITY_* + */ + public function getSeverity() + { + return $this->severity; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudSecuritycenterV2DetectorReference::class, 'Google_Service_SecurityCommandCenter_GoogleCloudSecuritycenterV2DetectorReference'); diff --git a/src/SecurityCommandCenter/GoogleCloudSecuritycenterV2Finding.php b/src/SecurityCommandCenter/GoogleCloudSecuritycenterV2Finding.php index 8560e466cc..c121f6ae88 100644 --- a/src/SecurityCommandCenter/GoogleCloudSecuritycenterV2Finding.php +++ b/src/SecurityCommandCenter/GoogleCloudSecuritycenterV2Finding.php @@ -48,8 +48,14 @@ class GoogleCloudSecuritycenterV2Finding extends \Google\Collection protected $accessDataType = ''; protected $affectedResourcesType = GoogleCloudSecuritycenterV2AffectedResources::class; protected $affectedResourcesDataType = ''; + protected $agentType = GoogleCloudSecuritycenterV2Agent::class; + protected $agentDataType = ''; + protected $agentAnomalyType = GoogleCloudSecuritycenterV2AgentAnomaly::class; + protected $agentAnomalyDataType = ''; protected $agentDataAccessEventsType = GoogleCloudSecuritycenterV2AgentDataAccessEvent::class; protected $agentDataAccessEventsDataType = 'array'; + protected $agentSessionsType = GoogleCloudSecuritycenterV2AgentSession::class; + protected $agentSessionsDataType = 'array'; protected $aiModelType = GoogleCloudSecuritycenterV2AiModel::class; protected $aiModelDataType = ''; protected $applicationType = GoogleCloudSecuritycenterV2Application::class; @@ -253,6 +259,34 @@ public function getAffectedResources() { return $this->affectedResources; } + /** + * @param GoogleCloudSecuritycenterV2Agent $agent + */ + public function setAgent(GoogleCloudSecuritycenterV2Agent $agent) + { + $this->agent = $agent; + } + /** + * @return GoogleCloudSecuritycenterV2Agent + */ + public function getAgent() + { + return $this->agent; + } + /** + * @param GoogleCloudSecuritycenterV2AgentAnomaly $agentAnomaly + */ + public function setAgentAnomaly(GoogleCloudSecuritycenterV2AgentAnomaly $agentAnomaly) + { + $this->agentAnomaly = $agentAnomaly; + } + /** + * @return GoogleCloudSecuritycenterV2AgentAnomaly + */ + public function getAgentAnomaly() + { + return $this->agentAnomaly; + } /** * @param GoogleCloudSecuritycenterV2AgentDataAccessEvent[] $agentDataAccessEvents */ @@ -267,6 +301,20 @@ public function getAgentDataAccessEvents() { return $this->agentDataAccessEvents; } + /** + * @param GoogleCloudSecuritycenterV2AgentSession[] $agentSessions + */ + public function setAgentSessions($agentSessions) + { + $this->agentSessions = $agentSessions; + } + /** + * @return GoogleCloudSecuritycenterV2AgentSession[] + */ + public function getAgentSessions() + { + return $this->agentSessions; + } /** * @param GoogleCloudSecuritycenterV2AiModel $aiModel */ diff --git a/src/SecurityCommandCenter/GoogleCloudSecuritycenterV2InvocationReference.php b/src/SecurityCommandCenter/GoogleCloudSecuritycenterV2InvocationReference.php new file mode 100644 index 0000000000..79dc48d0ec --- /dev/null +++ b/src/SecurityCommandCenter/GoogleCloudSecuritycenterV2InvocationReference.php @@ -0,0 +1,44 @@ +invocationId = $invocationId; + } + /** + * @return string + */ + public function getInvocationId() + { + return $this->invocationId; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudSecuritycenterV2InvocationReference::class, 'Google_Service_SecurityCommandCenter_GoogleCloudSecuritycenterV2InvocationReference'); diff --git a/src/SecurityCommandCenter/InvocationReference.php b/src/SecurityCommandCenter/InvocationReference.php new file mode 100644 index 0000000000..aa13c66928 --- /dev/null +++ b/src/SecurityCommandCenter/InvocationReference.php @@ -0,0 +1,44 @@ +invocationId = $invocationId; + } + /** + * @return string + */ + public function getInvocationId() + { + return $this->invocationId; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(InvocationReference::class, 'Google_Service_SecurityCommandCenter_InvocationReference');