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

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
Name Description
data array

Optional. Data for populating the Message object.

↳ pods array<Kubernetes\Pod>

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

↳ nodes array<Kubernetes\Node>

Provides Kubernetes node information.

↳ node_pools array<Kubernetes\NodePool>

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

↳ roles array<Kubernetes\Role>

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

↳ bindings array<Kubernetes\Binding>

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

↳ access_reviews array<Kubernetes\AccessReview>

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

↳ objects array<Kubernetes\Object>

Kubernetes objects related 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
Type Description
Google\Protobuf\RepeatedField<Kubernetes\Pod>

setPods

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

Parameter
Name Description
var array<Kubernetes\Pod>
Returns
Type Description
$this

getNodes

Provides Kubernetes node information.

Returns
Type Description
Google\Protobuf\RepeatedField<Kubernetes\Node>

setNodes

Provides Kubernetes node information.

Parameter
Name Description
var array<Kubernetes\Node>
Returns
Type Description
$this

getNodePools

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

Returns
Type Description
Google\Protobuf\RepeatedField<Kubernetes\NodePool>

setNodePools

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

Parameter
Name Description
var array<Kubernetes\NodePool>
Returns
Type Description
$this

getRoles

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

Returns
Type Description
Google\Protobuf\RepeatedField<Kubernetes\Role>

setRoles

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

Parameter
Name Description
var array<Kubernetes\Role>
Returns
Type Description
$this

getBindings

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

Returns
Type Description
Google\Protobuf\RepeatedField<Kubernetes\Binding>

setBindings

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

Parameter
Name Description
var array<Kubernetes\Binding>
Returns
Type Description
$this

getAccessReviews

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

Returns
Type Description
Google\Protobuf\RepeatedField<Kubernetes\AccessReview>

setAccessReviews

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

Parameter
Name Description
var array<Kubernetes\AccessReview>
Returns
Type Description
$this

getObjects

Kubernetes objects related to the finding.

Returns
Type Description
Google\Protobuf\RepeatedField<Kubernetes\Object>

setObjects

Kubernetes objects related to the finding.

Parameter
Name Description
var array<Kubernetes\Object>
Returns
Type Description
$this