google.iam.v1.AuditConfigDelta
*/
class AuditConfigDelta extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
{
/**
* The action that was performed on an audit configuration in a policy.
* Required
*
* Generated from protobuf field .google.iam.v1.AuditConfigDelta.Action action = 1;
*/
protected $action = 0;
/**
* Specifies a service that was configured for Cloud Audit Logging.
* For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
* `allServices` is a special value that covers all services.
* Required
*
* Generated from protobuf field string service = 2;
*/
protected $service = '';
/**
* A single identity that is exempted from "data access" audit
* logging for the `service` specified above.
* Follows the same format of Binding.members.
*
* Generated from protobuf field string exempted_member = 3;
*/
protected $exempted_member = '';
/**
* Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
* enabled, and cannot be configured.
* Required
*
* Generated from protobuf field string log_type = 4;
*/
protected $log_type = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $action
* The action that was performed on an audit configuration in a policy.
* Required
* @type string $service
* Specifies a service that was configured for Cloud Audit Logging.
* For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
* `allServices` is a special value that covers all services.
* Required
* @type string $exempted_member
* A single identity that is exempted from "data access" audit
* logging for the `service` specified above.
* Follows the same format of Binding.members.
* @type string $log_type
* Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
* enabled, and cannot be configured.
* Required
* }
*/
public function __construct($data = NULL)
{
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Iam\V1\Policy::initOnce();
parent::__construct($data);
}
/**
* The action that was performed on an audit configuration in a policy.
* Required
*
* Generated from protobuf field .google.iam.v1.AuditConfigDelta.Action action = 1;
* @return int
*/
public function getAction()
{
return $this->action;
}
/**
* The action that was performed on an audit configuration in a policy.
* Required
*
* Generated from protobuf field .google.iam.v1.AuditConfigDelta.Action action = 1;
* @param int $var
* @return $this
*/
public function setAction($var)
{
GPBUtil::checkEnum($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Cloud\Iam\V1\AuditConfigDelta\Action::class);
$this->action = $var;
return $this;
}
/**
* Specifies a service that was configured for Cloud Audit Logging.
* For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
* `allServices` is a special value that covers all services.
* Required
*
* Generated from protobuf field string service = 2;
* @return string
*/
public function getService()
{
return $this->service;
}
/**
* Specifies a service that was configured for Cloud Audit Logging.
* For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
* `allServices` is a special value that covers all services.
* Required
*
* Generated from protobuf field string service = 2;
* @param string $var
* @return $this
*/
public function setService($var)
{
GPBUtil::checkString($var, True);
$this->service = $var;
return $this;
}
/**
* A single identity that is exempted from "data access" audit
* logging for the `service` specified above.
* Follows the same format of Binding.members.
*
* Generated from protobuf field string exempted_member = 3;
* @return string
*/
public function getExemptedMember()
{
return $this->exempted_member;
}
/**
* A single identity that is exempted from "data access" audit
* logging for the `service` specified above.
* Follows the same format of Binding.members.
*
* Generated from protobuf field string exempted_member = 3;
* @param string $var
* @return $this
*/
public function setExemptedMember($var)
{
GPBUtil::checkString($var, True);
$this->exempted_member = $var;
return $this;
}
/**
* Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
* enabled, and cannot be configured.
* Required
*
* Generated from protobuf field string log_type = 4;
* @return string
*/
public function getLogType()
{
return $this->log_type;
}
/**
* Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
* enabled, and cannot be configured.
* Required
*
* Generated from protobuf field string log_type = 4;
* @param string $var
* @return $this
*/
public function setLogType($var)
{
GPBUtil::checkString($var, True);
$this->log_type = $var;
return $this;
}
}