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

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

Conveys information about a Kubernetes access review (e.g. kubectl auth can-i ...) that was involved in a finding.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ group string

Group is 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

Name is the name of the resource being requested. Empty means all.

↳ resource string

Resource is the optional resource type requested. "*" means all.

↳ subresource string

Subresource is the optional subresource type.

↳ verb string

Verb is a Kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all.

↳ version string

Version is the API Version of the Resource. "*" means all.

getGroup

Group is the API Group of the Resource. "*" means all.

Returns
TypeDescription
string

setGroup

Group is 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

Name is the name of the resource being requested. Empty means all.

Returns
TypeDescription
string

setName

Name is the name of the resource being requested. Empty means all.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getResource

Resource is the optional resource type requested. "*" means all.

Returns
TypeDescription
string

setResource

Resource is the optional resource type requested. "*" means all.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSubresource

Subresource is the optional subresource type.

Returns
TypeDescription
string

setSubresource

Subresource is the optional subresource type.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getVerb

Verb is a Kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all.

Returns
TypeDescription
string

setVerb

Verb is a Kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getVersion

Version is the API Version of the Resource. "*" means all.

Returns
TypeDescription
string

setVersion

Version is the API Version of the Resource. "*" means all.

Parameter
NameDescription
var string
Returns
TypeDescription
$this