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 | |
|---|---|
| Name | Description |
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.
Generated from protobuf field string group = 1;
| Returns | |
|---|---|
| Type | Description |
string |
|
setGroup
Group is the API Group of the Resource. "*" means all.
Generated from protobuf field string group = 1;
| 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).
Generated from protobuf field string ns = 2;
| 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).
Generated from protobuf field string ns = 2;
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getName
Name is the name of the resource being requested. Empty means all.
Generated from protobuf field string name = 3;
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Name is the name of the resource being requested. Empty means all.
Generated from protobuf field string name = 3;
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getResource
Resource is the optional resource type requested. "*" means all.
Generated from protobuf field string resource = 4;
| Returns | |
|---|---|
| Type | Description |
string |
|
setResource
Resource is the optional resource type requested. "*" means all.
Generated from protobuf field string resource = 4;
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSubresource
Subresource is the optional subresource type.
Generated from protobuf field string subresource = 5;
| Returns | |
|---|---|
| Type | Description |
string |
|
setSubresource
Subresource is the optional subresource type.
Generated from protobuf field string subresource = 5;
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getVerb
Verb is a Kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all.
Generated from protobuf field string verb = 6;
| Returns | |
|---|---|
| Type | Description |
string |
|
setVerb
Verb is a Kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all.
Generated from protobuf field string verb = 6;
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getVersion
Version is the API Version of the Resource. "*" means all.
Generated from protobuf field string version = 7;
| Returns | |
|---|---|
| Type | Description |
string |
|
setVersion
Version is the API Version of the Resource. "*" means all.
Generated from protobuf field string version = 7;
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|