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.
Generated from protobuf field string ns = 1;
string
setNs
Namespace for binding.
Generated from protobuf field string ns = 1;
var
string
$this
getName
Name for binding.
Generated from protobuf field string name = 2;
string
setName
Name for binding.
Generated from protobuf field string name = 2;
var
string
$this
getRole
The Role or ClusterRole referenced by the binding.
Generated from protobuf field .google.cloud.securitycenter.v1.Kubernetes.Role role = 3;
hasRole
clearRole
setRole
The Role or ClusterRole referenced by the binding.
Generated from protobuf field .google.cloud.securitycenter.v1.Kubernetes.Role role = 3;
$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;
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;
$this

