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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
string |
setNs
Namespace for binding.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getName
Name for binding.
Returns | |
---|---|
Type | Description |
string |
setName
Name for binding.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getRole
The Role or ClusterRole referenced by the binding.
Returns | |
---|---|
Type | Description |
Google\Cloud\SecurityCenter\V1\Kubernetes\Role|null |
hasRole
clearRole
setRole
The Role or ClusterRole referenced by the binding.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\SecurityCenter\V1\Kubernetes\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<Google\Cloud\SecurityCenter\V1\Kubernetes\Subject>
|
Returns | |
---|---|
Type | Description |
$this |