Google Cloud Security Command Center V1 Client - Class Binding (1.15.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 one or more subjects that are bound to the role. Not always available for PATCH requests.

getNs

Namespace for binding.

Returns
TypeDescription
string

setNs

Namespace for binding.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getName

Name for binding.

Returns
TypeDescription
string

setName

Name for binding.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRole

The Role or ClusterRole referenced by the binding.

Returns
TypeDescription
Google\Cloud\SecurityCenter\V1\Kubernetes\Role|null

hasRole

clearRole

setRole

The Role or ClusterRole referenced by the binding.

Parameter
NameDescription
var Google\Cloud\SecurityCenter\V1\Kubernetes\Role
Returns
TypeDescription
$this

getSubjects

Represents one or more subjects that are bound to the role. Not always available for PATCH requests.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSubjects

Represents one or more subjects that are bound to the role. Not always available for PATCH requests.

Parameter
NameDescription
var array<Google\Cloud\SecurityCenter\V1\Kubernetes\Subject>
Returns
TypeDescription
$this