Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class Role.
Kubernetes Role or ClusterRole.
Generated from protobuf message google.cloud.securitycenter.v1.Kubernetes.Role
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ kind |
int
Role type. |
↳ ns |
string
Role namespace. |
↳ name |
string
Role name. |
getKind
Role type.
Generated from protobuf field .google.cloud.securitycenter.v1.Kubernetes.Role.Kind kind = 1;
Returns | |
---|---|
Type | Description |
int |
setKind
Role type.
Generated from protobuf field .google.cloud.securitycenter.v1.Kubernetes.Role.Kind kind = 1;
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getNs
Role namespace.
Generated from protobuf field string ns = 2;
Returns | |
---|---|
Type | Description |
string |
setNs
Role namespace.
Generated from protobuf field string ns = 2;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getName
Role name.
Generated from protobuf field string name = 3;
Returns | |
---|---|
Type | Description |
string |
setName
Role name.
Generated from protobuf field string name = 3;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |