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.
data
array
Optional. Data for populating the Message object.
↳ ns
string
Namespace for binding.
↳ name
string
Name for binding.
↳ role
↳ 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.
string
setNs
Namespace for binding.
var
string
$this
getName
Name for binding.
string
setName
Name for binding.
var
string
$this
getRole
The Role or ClusterRole referenced by the binding.
hasRole
clearRole
setRole
The Role or ClusterRole referenced by the binding.
$this
getSubjects
Represents the subjects(s) bound to the role. Not always available for PATCH requests.
setSubjects
Represents the subjects(s) bound to the role. Not always available for PATCH requests.
$this