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
Namespace
Google \ Cloud \ SecurityCenter \ V1 \ KubernetesMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ ns
string
Namespace for the binding.
↳ name
string
Name for the binding.
↳ role
↳ subjects
array< Google\Cloud\SecurityCenter\V1\Kubernetes\Subject
>
Represents one or more subjects that are bound to the role. Not always available for PATCH requests.
getNs
Namespace for the binding.
string
setNs
Namespace for the binding.
var
string
$this
getName
Name for the binding.
string
setName
Name for the 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 one or more subjects that are bound to the role. Not always available for PATCH requests.
setSubjects
Represents one or more subjects that are bound to the role. Not always available for PATCH requests.
$this