Google Cloud Privileged Access Manager V1 Client - Class RoleBinding (0.1.3)

Reference documentation and code samples for the Google Cloud Privileged Access Manager V1 Client class RoleBinding.

IAM role bindings that are created after a successful grant.

Generated from protobuf message google.cloud.privilegedaccessmanager.v1.PrivilegedAccess.GcpIamAccess.RoleBinding

Namespace

Google \ Cloud \ PrivilegedAccessManager \ V1 \ PrivilegedAccess \ GcpIamAccess

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ role string

Required. IAM role to be granted. https://cloud.google.com/iam/docs/roles-overview.

↳ condition_expression string

Optional. The expression field of the IAM condition to be associated with the role. If specified, a user with an active grant for this entitlement is able to access the resource only if this condition evaluates to true for their request. This field uses the same CEL format as IAM and supports all attributes that IAM supports, except tags. https://cloud.google.com/iam/docs/conditions-overview#attributes.

getRole

Required. IAM role to be granted.

https://cloud.google.com/iam/docs/roles-overview.

Returns
Type Description
string

setRole

Required. IAM role to be granted.

https://cloud.google.com/iam/docs/roles-overview.

Parameter
Name Description
var string
Returns
Type Description
$this

getConditionExpression

Optional. The expression field of the IAM condition to be associated with the role. If specified, a user with an active grant for this entitlement is able to access the resource only if this condition evaluates to true for their request.

This field uses the same CEL format as IAM and supports all attributes that IAM supports, except tags. https://cloud.google.com/iam/docs/conditions-overview#attributes.

Returns
Type Description
string

setConditionExpression

Optional. The expression field of the IAM condition to be associated with the role. If specified, a user with an active grant for this entitlement is able to access the resource only if this condition evaluates to true for their request.

This field uses the same CEL format as IAM and supports all attributes that IAM supports, except tags. https://cloud.google.com/iam/docs/conditions-overview#attributes.

Parameter
Name Description
var string
Returns
Type Description
$this