📄 Source: GoogleCloudApigeeV1SecurityMonitoringCondition.php
<?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\Apigee;
class GoogleCloudApigeeV1SecurityMonitoringCondition extends \Google\Model
{
/**
* Risk assessment type is not specified.
*/
public const RISK_ASSESSMENT_TYPE_RISK_ASSESSMENT_TYPE_UNSPECIFIED = 'RISK_ASSESSMENT_TYPE_UNSPECIFIED';
/**
* Risk assessment type is Apigee.
*/
public const RISK_ASSESSMENT_TYPE_APIGEE = 'APIGEE';
/**
* Risk assessment type is API Hub.
*/
public const RISK_ASSESSMENT_TYPE_API_HUB = 'API_HUB';
/**
* Optional. The API Hub gateway monitored by the security monitoring
* condition. This should only be set if risk_assessment_type is API_HUB.
* Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances
* /{instance}`
*
* @var string
*/
public $apiHubGateway;
/**
* Output only. The time of the security monitoring condition creation.
*
* @var string
*/
public $createTime;
protected $includeType = GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestResourceArray::class;
protected $includeDataType = '';
protected $includeAllResourcesType = GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestIncludeAll::class;
protected $includeAllResourcesDataType = '';
/**
* Identifier. Name of the security monitoring condition resource. Format: org
* anizations/{org}/securityMonitoringConditions/{security_monitoring_conditio
* n}
*
* @var string
*/
public $name;
/**
* Required. ID of security profile of the security monitoring condition.
*
* @var string
*/
public $profile;
/**
* Optional. The risk assessment type of the security monitoring condition.
* Defaults to ADVANCED_API_SECURITY.
*
* @var string
*/
public $riskAssessmentType;
/**
* Optional. Scope of the security monitoring condition. When
* RiskAssessmentType is APIGEE, the scope should be set to the environment of
* the resources. When RiskAssessmentType is API_HUB, the scope should not be
* set.
*
* @var string
*/
public $scope;
/**
* Output only. Total number of deployed resources within scope.
*
* @var int
*/
public $totalDeployedResources;
/**
* Output only. Total number of monitored resources within this condition.
*
* @var int
*/
public $totalMonitoredResources;
/**
* Output only. The time of the security monitoring condition update.
*
* @var string
*/
public $updateTime;
/**
* Optional. The API Hub gateway monitored by the security monitoring
* condition. This should only be set if risk_assessment_type is API_HUB.
* Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances
* /{instance}`
*
* @param string $apiHubGateway
*/
public function setApiHubGateway($apiHubGateway)
{
$this->apiHubGateway = $apiHubGateway;
}
/**
* @return string
*/
public function getApiHubGateway()
{
return $this->apiHubGateway;
}
/**
* Output only. The time of the security monitoring condition creation.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Include only these resources.
*
* @param GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestResourceArray $include
*/
public function setInclude(GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestResourceArray $include)
{
$this->include = $include;
}
/**
* @return GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestResourceArray
*/
public function getInclude()
{
return $this->include;
}
/**
* Include all resources under the scope.
*
* @param GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestIncludeAll $includeAllResources
*/
public function setIncludeAllResources(GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestIncludeAll $includeAllResources)
{
$this->includeAllResources = $includeAllResources;
}
/**
* @return GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestIncludeAll
*/
public function getIncludeAllResources()
{
return $this->includeAllResources;
}
/**
* Identifier. Name of the security monitoring condition resource. Format: org
* anizations/{org}/securityMonitoringConditions/{security_monitoring_conditio
* n}
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. ID of security profile of the security monitoring condition.
*
* @param string $profile
*/
public function setProfile($profile)
{
$this->profile = $profile;
}
/**
* @return string
*/
public function getProfile()
{
return $this->profile;
}
/**
* Optional. The risk assessment type of the security monitoring condition.
* Defaults to ADVANCED_API_SECURITY.
*
* Accepted values: RISK_ASSESSMENT_TYPE_UNSPECIFIED, APIGEE, API_HUB
*
* @param self::RISK_ASSESSMENT_TYPE_* $riskAssessmentType
*/
public function setRiskAssessmentType($riskAssessmentType)
{
$this->riskAssessmentType = $riskAssessmentType;
}
/**
* @return self::RISK_ASSESSMENT_TYPE_*
*/
public function getRiskAssessmentType()
{
return $this->riskAssessmentType;
}
/**
* Optional. Scope of the security monitoring condition. When
* RiskAssessmentType is APIGEE, the scope should be set to the environment of
* the resources. When RiskAssessmentType is API_HUB, the scope should not be
* set.
*
* @param string $scope
*/
public function setScope($scope)
{
$this->scope = $scope;
}
/**
* @return string
*/
public function getScope()
{
return $this->scope;
}
/**
* Output only. Total number of deployed resources within scope.
*
* @param int $totalDeployedResources
*/
public function setTotalDeployedResources($totalDeployedResources)
{
$this->totalDeployedResources = $totalDeployedResources;
}
/**
* @return int
*/
public function getTotalDeployedResources()
{
return $this->totalDeployedResources;
}
/**
* Output only. Total number of monitored resources within this condition.
*
* @param int $totalMonitoredResources
*/
public function setTotalMonitoredResources($totalMonitoredResources)
{
$this->totalMonitoredResources = $totalMonitoredResources;
}
/**
* @return int
*/
public function getTotalMonitoredResources()
{
return $this->totalMonitoredResources;
}
/**
* Output only. The time of the security monitoring condition update.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudApigeeV1SecurityMonitoringCondition::class, 'Google_Service_Apigee_GoogleCloudApigeeV1SecurityMonitoringCondition');
← Back