Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions src/SecurityCommandCenter/Agent.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

namespace Google\Service\SecurityCommandCenter;

class Agent extends \Google\Model
{
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $id;

/**
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->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');
68 changes: 68 additions & 0 deletions src/SecurityCommandCenter/AgentAnomaly.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

namespace Google\Service\SecurityCommandCenter;

class AgentAnomaly extends \Google\Collection
{
protected $collection_key = 'invocationReferences';
public $confidenceScore;
protected $detectorReferencesType = DetectorReference::class;
protected $detectorReferencesDataType = 'array';
protected $invocationReferencesType = InvocationReference::class;
protected $invocationReferencesDataType = 'array';

public function setConfidenceScore($confidenceScore)
{
$this->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');
44 changes: 44 additions & 0 deletions src/SecurityCommandCenter/AgentSession.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

namespace Google\Service\SecurityCommandCenter;

class AgentSession extends \Google\Model
{
/**
* @var string
*/
public $sessionId;

/**
* @param string $sessionId
*/
public function setSessionId($sessionId)
{
$this->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');
121 changes: 121 additions & 0 deletions src/SecurityCommandCenter/DetectorReference.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

namespace Google\Service\SecurityCommandCenter;

class DetectorReference extends \Google\Model
{
public const SEVERITY_SEVERITY_UNSPECIFIED = 'SEVERITY_UNSPECIFIED';
public const SEVERITY_CRITICAL = 'CRITICAL';
public const SEVERITY_HIGH = 'HIGH';
public const SEVERITY_MEDIUM = 'MEDIUM';
public const SEVERITY_LOW = 'LOW';
/**
* @var string
*/
public $detectorId;
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $explanation;
/**
* @var string
*/
public $recommendation;
/**
* @var string
*/
public $severity;

/**
* @param string $detectorId
*/
public function setDetectorId($detectorId)
{
$this->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');
48 changes: 48 additions & 0 deletions src/SecurityCommandCenter/Finding.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
*/
Expand All @@ -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
*/
Expand Down
Loading
Loading