Google Cloud Security Command Center V1 Client - Class Kubernetes (1.13.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

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 will contain 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 will contain NodePool 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 (i.e. privilege checks) relevant to the finding.

getPods

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

Generated from protobuf field repeated .google.cloud.securitycenter.v1.Kubernetes.Pod pods = 1;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setPods

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

Generated from protobuf field repeated .google.cloud.securitycenter.v1.Kubernetes.Pod pods = 1;

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

getNodes

Provides Kubernetes Node information.

Generated from protobuf field repeated .google.cloud.securitycenter.v1.Kubernetes.Node nodes = 2;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setNodes

Provides Kubernetes Node information.

Generated from protobuf field repeated .google.cloud.securitycenter.v1.Kubernetes.Node nodes = 2;

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

getNodePools

GKE Node Pools associated with the finding. This field will contain NodePool information for each Node, when it is available.

Generated from protobuf field repeated .google.cloud.securitycenter.v1.Kubernetes.NodePool node_pools = 3;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setNodePools

GKE Node Pools associated with the finding. This field will contain NodePool information for each Node, when it is available.

Generated from protobuf field repeated .google.cloud.securitycenter.v1.Kubernetes.NodePool node_pools = 3;

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.

Generated from protobuf field repeated .google.cloud.securitycenter.v1.Kubernetes.Role roles = 4;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setRoles

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

Generated from protobuf field repeated .google.cloud.securitycenter.v1.Kubernetes.Role roles = 4;

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.

Generated from protobuf field repeated .google.cloud.securitycenter.v1.Kubernetes.Binding bindings = 5;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setBindings

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

Generated from protobuf field repeated .google.cloud.securitycenter.v1.Kubernetes.Binding bindings = 5;

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

getAccessReviews

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

Generated from protobuf field repeated .google.cloud.securitycenter.v1.Kubernetes.AccessReview access_reviews = 6;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAccessReviews

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

Generated from protobuf field repeated .google.cloud.securitycenter.v1.Kubernetes.AccessReview access_reviews = 6;

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