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