google.iam.v1.AuditConfig
*/
class AuditConfig extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
{
/**
* Specifies a service that will be enabled for audit logging.
* For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
* `allServices` is a special value that covers all services.
*
* Generated from protobuf field string service = 1;
*/
protected $service = '';
/**
* The configuration for logging of each type of permission.
*
* Generated from protobuf field repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3;
*/
private $audit_log_configs;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $service
* Specifies a service that will be enabled for audit logging.
* For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
* `allServices` is a special value that covers all services.
* @type array<\Google\Cloud\Iam\V1\AuditLogConfig>|\Google\Protobuf\Internal\RepeatedField $audit_log_configs
* The configuration for logging of each type of permission.
* }
*/
public function __construct($data = NULL)
{
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Iam\V1\Policy::initOnce();
parent::__construct($data);
}
/**
* Specifies a service that will be enabled for audit logging.
* For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
* `allServices` is a special value that covers all services.
*
* Generated from protobuf field string service = 1;
* @return string
*/
public function getService()
{
return $this->service;
}
/**
* Specifies a service that will be enabled for audit logging.
* For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
* `allServices` is a special value that covers all services.
*
* Generated from protobuf field string service = 1;
* @param string $var
* @return $this
*/
public function setService($var)
{
GPBUtil::checkString($var, True);
$this->service = $var;
return $this;
}
/**
* The configuration for logging of each type of permission.
*
* Generated from protobuf field repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getAuditLogConfigs()
{
return $this->audit_log_configs;
}
/**
* The configuration for logging of each type of permission.
*
* Generated from protobuf field repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3;
* @param array<\Google\Cloud\Iam\V1\AuditLogConfig>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setAuditLogConfigs($var)
{
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Cloud\Iam\V1\AuditLogConfig::class);
$this->audit_log_configs = $arr;
return $this;
}
}