Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class Binding.
Represents a Kubernetes RoleBinding or ClusterRoleBinding.
Generated from protobuf message google.cloud.securitycenter.v1.Kubernetes.Binding
Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ ns |
string
Namespace for binding. |
↳ name |
string
Name for binding. |
↳ role |
Google\Cloud\SecurityCenter\V1\Kubernetes\Role
The Role or ClusterRole referenced by the binding. |
↳ subjects |
array<Google\Cloud\SecurityCenter\V1\Kubernetes\Subject>
Represents the subjects(s) bound to the role. Not always available for PATCH requests. |
getNs
Namespace for binding.
Generated from protobuf field string ns = 1;
| Returns | |
|---|---|
| Type | Description |
string |
|
setNs
Namespace for binding.
Generated from protobuf field string ns = 1;
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getName
Name for binding.
Generated from protobuf field string name = 2;
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Name for binding.
Generated from protobuf field string name = 2;
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRole
The Role or ClusterRole referenced by the binding.
Generated from protobuf field .google.cloud.securitycenter.v1.Kubernetes.Role role = 3;
| Returns | |
|---|---|
| Type | Description |
Google\Cloud\SecurityCenter\V1\Kubernetes\Role|null |
|
hasRole
clearRole
setRole
The Role or ClusterRole referenced by the binding.
Generated from protobuf field .google.cloud.securitycenter.v1.Kubernetes.Role role = 3;
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Cloud\SecurityCenter\V1\Kubernetes\Role
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSubjects
Represents the subjects(s) bound to the role. Not always available for PATCH requests.
Generated from protobuf field repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4;
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setSubjects
Represents the subjects(s) bound to the role. Not always available for PATCH requests.
Generated from protobuf field repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4;
| Parameter | |
|---|---|
| Name | Description |
var |
array<Google\Cloud\SecurityCenter\V1\Kubernetes\Subject>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|