📄 Source: Remediation.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\CloudControlsPartnerService;
class Remediation extends \Google\Collection
{
/**
* Unspecified remediation type
*/
public const REMEDIATION_TYPE_REMEDIATION_TYPE_UNSPECIFIED = 'REMEDIATION_TYPE_UNSPECIFIED';
/**
* Remediation type for boolean org policy
*/
public const REMEDIATION_TYPE_REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION = 'REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION';
/**
* Remediation type for list org policy which have allowed values in the
* monitoring rule
*/
public const REMEDIATION_TYPE_REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION = 'REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION';
/**
* Remediation type for list org policy which have denied values in the
* monitoring rule
*/
public const REMEDIATION_TYPE_REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION = 'REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION';
/**
* Remediation type for gcp.restrictCmekCryptoKeyProjects
*/
public const REMEDIATION_TYPE_REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION = 'REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION';
/**
* Remediation type for resource violation.
*/
public const REMEDIATION_TYPE_REMEDIATION_RESOURCE_VIOLATION = 'REMEDIATION_RESOURCE_VIOLATION';
protected $collection_key = 'compliantValues';
/**
* Values that can resolve the violation For example: for list org policy
* violations, this will either be the list of allowed or denied values
*
* @var string[]
*/
public $compliantValues;
protected $instructionsType = Instructions::class;
protected $instructionsDataType = '';
/**
* Output only. Remediation type based on the type of org policy values
* violated
*
* @var string
*/
public $remediationType;
/**
* Values that can resolve the violation For example: for list org policy
* violations, this will either be the list of allowed or denied values
*
* @param string[] $compliantValues
*/
public function setCompliantValues($compliantValues)
{
$this->compliantValues = $compliantValues;
}
/**
* @return string[]
*/
public function getCompliantValues()
{
return $this->compliantValues;
}
/**
* Required. Remediation instructions to resolve violations
*
* @param Instructions $instructions
*/
public function setInstructions(Instructions $instructions)
{
$this->instructions = $instructions;
}
/**
* @return Instructions
*/
public function getInstructions()
{
return $this->instructions;
}
/**
* Output only. Remediation type based on the type of org policy values
* violated
*
* Accepted values: REMEDIATION_TYPE_UNSPECIFIED,
* REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION,
* REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION,
* REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION,
* REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION,
* REMEDIATION_RESOURCE_VIOLATION
*
* @param self::REMEDIATION_TYPE_* $remediationType
*/
public function setRemediationType($remediationType)
{
$this->remediationType = $remediationType;
}
/**
* @return self::REMEDIATION_TYPE_*
*/
public function getRemediationType()
{
return $this->remediationType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Remediation::class, 'Google_Service_CloudControlsPartnerService_Remediation');
← Back