Google Cloud Security Command Center V1 Client - Class Kubernetes (1.19.1)

Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class Kubernetes.

Kubernetes-related attributes.

Generated from protobuf message google.cloud.securitycenter.v1.Kubernetes

Namespace

Google \ Cloud \ SecurityCenter \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ pods array<Google\Cloud\SecurityCenter\V1\Kubernetes\Pod>

Kubernetes Pods associated with the finding. This field contains Pod records for each container that is owned by a Pod.

↳ nodes array<Google\Cloud\SecurityCenter\V1\Kubernetes\Node>

Provides Kubernetes node information.

↳ node_pools array<Google\Cloud\SecurityCenter\V1\Kubernetes\NodePool>

GKE node pools associated with the finding. This field contains node pool information for each node, when it is available.

↳ roles array<Google\Cloud\SecurityCenter\V1\Kubernetes\Role>

Provides Kubernetes role information for findings that involve Roles or ClusterRoles.

↳ bindings array<Google\Cloud\SecurityCenter\V1\Kubernetes\Binding>

Provides Kubernetes role binding information for findings that involve RoleBindings or ClusterRoleBindings.

↳ access_reviews array<Google\Cloud\SecurityCenter\V1\Kubernetes\AccessReview>

Provides information on any Kubernetes access reviews (privilege checks) relevant to the finding.

getPods

Kubernetes Pods associated with the finding. This field contains Pod records for each container that is owned by a Pod.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setPods

Kubernetes Pods associated with the finding. This field contains Pod records for each container that is owned by a Pod.

Parameter
NameDescription
var array<Google\Cloud\SecurityCenter\V1\Kubernetes\Pod>
Returns
TypeDescription
$this

getNodes

Provides Kubernetes node information.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setNodes

Provides Kubernetes node information.

Parameter
NameDescription
var array<Google\Cloud\SecurityCenter\V1\Kubernetes\Node>
Returns
TypeDescription
$this

getNodePools

GKE node pools associated with the finding. This field contains node pool information for each node, when it is available.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setNodePools

GKE node pools associated with the finding. This field contains node pool information for each node, when it is available.

Parameter
NameDescription
var array<Google\Cloud\SecurityCenter\V1\Kubernetes\NodePool>
Returns
TypeDescription
$this

getRoles

Provides Kubernetes role information for findings that involve Roles or ClusterRoles.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setRoles

Provides Kubernetes role information for findings that involve Roles or ClusterRoles.

Parameter
NameDescription
var array<Google\Cloud\SecurityCenter\V1\Kubernetes\Role>
Returns
TypeDescription
$this

getBindings

Provides Kubernetes role binding information for findings that involve RoleBindings or ClusterRoleBindings.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setBindings

Provides Kubernetes role binding information for findings that involve RoleBindings or ClusterRoleBindings.

Parameter
NameDescription
var array<Google\Cloud\SecurityCenter\V1\Kubernetes\Binding>
Returns
TypeDescription
$this

getAccessReviews

Provides information on any Kubernetes access reviews (privilege checks) relevant to the finding.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAccessReviews

Provides information on any Kubernetes access reviews (privilege checks) relevant to the finding.

Parameter
NameDescription
var array<Google\Cloud\SecurityCenter\V1\Kubernetes\AccessReview>
Returns
TypeDescription
$this