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 akubectl auth
can-icommand) that was involved in a finding.
Generated from protobuf messagegoogle.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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Security Command Center V1 Client - Class AccessReview (2.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.1 (latest)](/php/docs/reference/cloud-security-center/latest/V1.Kubernetes.AccessReview)\n- [2.2.0](/php/docs/reference/cloud-security-center/2.2.0/V1.Kubernetes.AccessReview)\n- [2.1.1](/php/docs/reference/cloud-security-center/2.1.1/V1.Kubernetes.AccessReview)\n- [2.0.4](/php/docs/reference/cloud-security-center/2.0.4/V1.Kubernetes.AccessReview)\n- [1.32.0](/php/docs/reference/cloud-security-center/1.32.0/V1.Kubernetes.AccessReview)\n- [1.31.0](/php/docs/reference/cloud-security-center/1.31.0/V1.Kubernetes.AccessReview)\n- [1.30.0](/php/docs/reference/cloud-security-center/1.30.0/V1.Kubernetes.AccessReview)\n- [1.29.0](/php/docs/reference/cloud-security-center/1.29.0/V1.Kubernetes.AccessReview)\n- [1.28.2](/php/docs/reference/cloud-security-center/1.28.2/V1.Kubernetes.AccessReview)\n- [1.21.0](/php/docs/reference/cloud-security-center/1.21.0/V1.Kubernetes.AccessReview)\n- [1.20.2](/php/docs/reference/cloud-security-center/1.20.2/V1.Kubernetes.AccessReview)\n- [1.19.1](/php/docs/reference/cloud-security-center/1.19.1/V1.Kubernetes.AccessReview)\n- [1.18.0](/php/docs/reference/cloud-security-center/1.18.0/V1.Kubernetes.AccessReview)\n- [1.17.0](/php/docs/reference/cloud-security-center/1.17.0/V1.Kubernetes.AccessReview)\n- [1.16.0](/php/docs/reference/cloud-security-center/1.16.0/V1.Kubernetes.AccessReview)\n- [1.15.1](/php/docs/reference/cloud-security-center/1.15.1/V1.Kubernetes.AccessReview)\n- [1.14.2](/php/docs/reference/cloud-security-center/1.14.2/V1.Kubernetes.AccessReview)\n- [1.13.1](/php/docs/reference/cloud-security-center/1.13.1/V1.Kubernetes.AccessReview) \nReference documentation and code samples for the Google Cloud Security Command Center V1 Client class AccessReview.\n\nConveys information about a Kubernetes access review (such as one returned\nby a [`kubectl auth\ncan-i`](https://kubernetes.io/docs/reference/access-authn-authz/authorization/#checking-api-access)\ncommand) that was involved in a finding.\n\nGenerated from protobuf message `google.cloud.securitycenter.v1.Kubernetes.AccessReview`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ SecurityCenter \\\\ V1 \\\\ Kubernetes\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getGroup\n\nThe API group of the resource. \"\\*\" means all.\n\n### setGroup\n\nThe API group of the resource. \"\\*\" means all.\n\n### getNs\n\nNamespace of the action being requested. Currently, there is no\ndistinction between no namespace and all namespaces. Both\nare represented by \"\" (empty).\n\n### setNs\n\nNamespace of the action being requested. Currently, there is no\ndistinction between no namespace and all namespaces. Both\nare represented by \"\" (empty).\n\n### getName\n\nThe name of the resource being requested. Empty means all.\n\n### setName\n\nThe name of the resource being requested. Empty means all.\n\n### getResource\n\nThe optional resource type requested. \"\\*\" means all.\n\n### setResource\n\nThe optional resource type requested. \"\\*\" means all.\n\n### getSubresource\n\nThe optional subresource type.\n\n### setSubresource\n\nThe optional subresource type.\n\n### getVerb\n\nA Kubernetes resource API verb, like get, list, watch, create, update,\ndelete, proxy. \"\\*\" means all.\n\n### setVerb\n\nA Kubernetes resource API verb, like get, list, watch, create, update,\ndelete, proxy. \"\\*\" means all.\n\n### getVersion\n\nThe API version of the resource. \"\\*\" means all.\n\n### setVersion\n\nThe API version of the resource. \"\\*\" means all."]]