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

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 \ Kubernetes

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ ns string

Namespace for the binding.

↳ name string

Name for the binding.

↳ role Role

The Role or ClusterRole referenced by the binding.

↳ subjects array<Subject>

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

getNs

Namespace for the binding.

Returns
Type Description
string

setNs

Namespace for the binding.

Parameter
Name Description
var string
Returns
Type Description
$this

getName

Name for the binding.

Returns
Type Description
string

setName

Name for the binding.

Parameter
Name Description
var string
Returns
Type Description
$this

getRole

The Role or ClusterRole referenced by the binding.

Returns
Type Description
Role|null

hasRole

clearRole

setRole

The Role or ClusterRole referenced by the binding.

Parameter
Name Description
var Role
Returns
Type Description
$this

getSubjects

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

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setSubjects

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

Parameter
Name Description
var array<Subject>
Returns
Type Description
$this