Google Cloud Security Command Center V1 Client - Class Binding (1.13.1)

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
NameDescription
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
TypeDescription
string

setNs

Namespace for binding.

Generated from protobuf field string ns = 1;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getName

Name for binding.

Generated from protobuf field string name = 2;

Returns
TypeDescription
string

setName

Name for binding.

Generated from protobuf field string name = 2;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRole

The Role or ClusterRole referenced by the binding.

Generated from protobuf field .google.cloud.securitycenter.v1.Kubernetes.Role role = 3;

Returns
TypeDescription
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
NameDescription
var Google\Cloud\SecurityCenter\V1\Kubernetes\Role
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var array<Google\Cloud\SecurityCenter\V1\Kubernetes\Subject>
Returns
TypeDescription
$this