Reference documentation and code samples for the Privileged Access Manager V1 API class Google::Cloud::PrivilegedAccessManager::V1::PrivilegedAccess::GcpIamAccess::RoleBinding.
IAM role bindings that are created after a successful grant.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#condition_expression
defcondition_expression()->::String
Returns
(::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.
#condition_expression=
defcondition_expression=(value)->::String
Parameter
value (::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.
Returns
(::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.
#role
defrole()->::String
Returns
(::String) — Required. IAM role to be granted.
https://cloud.google.com/iam/docs/roles-overview.
#role=
defrole=(value)->::String
Parameter
value (::String) — Required. IAM role to be granted.
https://cloud.google.com/iam/docs/roles-overview.
Returns
(::String) — Required. IAM role to be granted.
https://cloud.google.com/iam/docs/roles-overview.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-03 UTC."],[],[],null,["# Privileged Access Manager V1 API - Class Google::Cloud::PrivilegedAccessManager::V1::PrivilegedAccess::GcpIamAccess::RoleBinding (v1.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.0 (latest)](/ruby/docs/reference/google-cloud-privileged_access_manager-v1/latest/Google-Cloud-PrivilegedAccessManager-V1-PrivilegedAccess-GcpIamAccess-RoleBinding)\n- [1.1.0](/ruby/docs/reference/google-cloud-privileged_access_manager-v1/1.1.0/Google-Cloud-PrivilegedAccessManager-V1-PrivilegedAccess-GcpIamAccess-RoleBinding)\n- [1.0.1](/ruby/docs/reference/google-cloud-privileged_access_manager-v1/1.0.1/Google-Cloud-PrivilegedAccessManager-V1-PrivilegedAccess-GcpIamAccess-RoleBinding)\n- [0.3.0](/ruby/docs/reference/google-cloud-privileged_access_manager-v1/0.3.0/Google-Cloud-PrivilegedAccessManager-V1-PrivilegedAccess-GcpIamAccess-RoleBinding)\n- [0.2.0](/ruby/docs/reference/google-cloud-privileged_access_manager-v1/0.2.0/Google-Cloud-PrivilegedAccessManager-V1-PrivilegedAccess-GcpIamAccess-RoleBinding)\n- [0.1.2](/ruby/docs/reference/google-cloud-privileged_access_manager-v1/0.1.2/Google-Cloud-PrivilegedAccessManager-V1-PrivilegedAccess-GcpIamAccess-RoleBinding) \nReference documentation and code samples for the Privileged Access Manager V1 API class Google::Cloud::PrivilegedAccessManager::V1::PrivilegedAccess::GcpIamAccess::RoleBinding.\n\nIAM role bindings that are created after a successful grant. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #condition_expression\n\n def condition_expression() -\u003e ::String\n\n**Returns**\n\n- (::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.\n\n This field uses the same CEL format as IAM and supports all attributes\n that IAM supports, except tags.\n https://cloud.google.com/iam/docs/conditions-overview#attributes.\n\n### #condition_expression=\n\n def condition_expression=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::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.\n\n\n This field uses the same CEL format as IAM and supports all attributes\n that IAM supports, except tags.\nhttps://cloud.google.com/iam/docs/conditions-overview#attributes. \n**Returns**\n\n- (::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.\n\n This field uses the same CEL format as IAM and supports all attributes\n that IAM supports, except tags.\n https://cloud.google.com/iam/docs/conditions-overview#attributes.\n\n### #role\n\n def role() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. IAM role to be granted. https://cloud.google.com/iam/docs/roles-overview.\n\n### #role=\n\n def role=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. IAM role to be granted. https://cloud.google.com/iam/docs/roles-overview. \n**Returns**\n\n- (::String) --- Required. IAM role to be granted. https://cloud.google.com/iam/docs/roles-overview."]]