<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/container/v1/cluster_service.proto

namespace Google\Cloud\Container\V1;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * PrivilegedAdmissionConfig stores the list of authorized allowlist
 * paths for the cluster.
 *
 * Generated from protobuf message <code>google.container.v1.PrivilegedAdmissionConfig</code>
 */
class PrivilegedAdmissionConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * The customer allowlist Cloud Storage paths for the cluster. These paths are
     * used with the `--autopilot-privileged-admission` flag to authorize
     * privileged workloads in Autopilot clusters.
     * Paths can be GKE-owned, in the format
     * `gke://<partner_name>/<app_name>/<allowlist_path>`, or customer-owned, in
     * the format `gs://<bucket_name>/<allowlist_path>`.
     * Wildcards (`*`) are supported to authorize all allowlists under specific
     * paths or directories. Example: `gs://my-bucket/*` will authorize all
     * allowlists under the `my-bucket` bucket.
     *
     * Generated from protobuf field <code>repeated string allowlist_paths = 1;</code>
     */
    private $allowlist_paths;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string[] $allowlist_paths
     *           The customer allowlist Cloud Storage paths for the cluster. These paths are
     *           used with the `--autopilot-privileged-admission` flag to authorize
     *           privileged workloads in Autopilot clusters.
     *           Paths can be GKE-owned, in the format
     *           `gke://<partner_name>/<app_name>/<allowlist_path>`, or customer-owned, in
     *           the format `gs://<bucket_name>/<allowlist_path>`.
     *           Wildcards (`*`) are supported to authorize all allowlists under specific
     *           paths or directories. Example: `gs://my-bucket/*` will authorize all
     *           allowlists under the `my-bucket` bucket.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Container\V1\ClusterService::initOnce();
        parent::__construct($data);
    }

    /**
     * The customer allowlist Cloud Storage paths for the cluster. These paths are
     * used with the `--autopilot-privileged-admission` flag to authorize
     * privileged workloads in Autopilot clusters.
     * Paths can be GKE-owned, in the format
     * `gke://<partner_name>/<app_name>/<allowlist_path>`, or customer-owned, in
     * the format `gs://<bucket_name>/<allowlist_path>`.
     * Wildcards (`*`) are supported to authorize all allowlists under specific
     * paths or directories. Example: `gs://my-bucket/*` will authorize all
     * allowlists under the `my-bucket` bucket.
     *
     * Generated from protobuf field <code>repeated string allowlist_paths = 1;</code>
     * @return RepeatedField<string>
     */
    public function getAllowlistPaths()
    {
        return $this->allowlist_paths;
    }

    /**
     * The customer allowlist Cloud Storage paths for the cluster. These paths are
     * used with the `--autopilot-privileged-admission` flag to authorize
     * privileged workloads in Autopilot clusters.
     * Paths can be GKE-owned, in the format
     * `gke://<partner_name>/<app_name>/<allowlist_path>`, or customer-owned, in
     * the format `gs://<bucket_name>/<allowlist_path>`.
     * Wildcards (`*`) are supported to authorize all allowlists under specific
     * paths or directories. Example: `gs://my-bucket/*` will authorize all
     * allowlists under the `my-bucket` bucket.
     *
     * Generated from protobuf field <code>repeated string allowlist_paths = 1;</code>
     * @param string[] $var
     * @return $this
     */
    public function setAllowlistPaths($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->allowlist_paths = $arr;

        return $this;
    }

}

