Google Cloud Security Command Center V1 Client - Class AccessReview (1.18.0)

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

Conveys information about a Kubernetes access review (such as one returned by a kubectl auth can-i command) that was involved in a finding.

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

Namespace

Google \ Cloud \ SecurityCenter \ V1 \ Kubernetes

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ group string

The API group of the resource. "*" means all.

↳ ns string

Namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces. Both are represented by "" (empty).

↳ name string

The name of the resource being requested. Empty means all.

↳ resource string

The optional resource type requested. "*" means all.

↳ subresource string

The optional subresource type.

↳ verb string

A Kubernetes resource API verb, like get, list, watch, create, update, delete, proxy. "*" means all.

↳ version string

The API version of the resource. "*" means all.

getGroup

The API group of the resource. "*" means all.

Returns
TypeDescription
string

setGroup

The API group of the resource. "*" means all.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNs

Namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces. Both are represented by "" (empty).

Returns
TypeDescription
string

setNs

Namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces. Both are represented by "" (empty).

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getName

The name of the resource being requested. Empty means all.

Returns
TypeDescription
string

setName

The name of the resource being requested. Empty means all.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getResource

The optional resource type requested. "*" means all.

Returns
TypeDescription
string

setResource

The optional resource type requested. "*" means all.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSubresource

The optional subresource type.

Returns
TypeDescription
string

setSubresource

The optional subresource type.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getVerb

A Kubernetes resource API verb, like get, list, watch, create, update, delete, proxy. "*" means all.

Returns
TypeDescription
string

setVerb

A Kubernetes resource API verb, like get, list, watch, create, update, delete, proxy. "*" means all.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getVersion

The API version of the resource. "*" means all.

Returns
TypeDescription
string

setVersion

The API version of the resource. "*" means all.

Parameter
NameDescription
var string
Returns
TypeDescription
$this