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

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
Name Description
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
Type Description
string

setGroup

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

Parameter
Name Description
var string
Returns
Type Description
$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
Type Description
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
Name Description
var string
Returns
Type Description
$this

getName

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

Returns
Type Description
string

setName

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

Parameter
Name Description
var string
Returns
Type Description
$this

getResource

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

Returns
Type Description
string

setResource

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

Parameter
Name Description
var string
Returns
Type Description
$this

getSubresource

The optional subresource type.

Returns
Type Description
string

setSubresource

The optional subresource type.

Parameter
Name Description
var string
Returns
Type Description
$this

getVerb

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

Returns
Type Description
string

setVerb

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

Parameter
Name Description
var string
Returns
Type Description
$this

getVersion

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

Returns
Type Description
string

setVersion

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

Parameter
Name Description
var string
Returns
Type Description
$this