Identity and Access Management (IAM) V3BETA API - Class Google::Type::Expr (v0.1.0)
Reference documentation and code samples for the Identity and Access Management (IAM) V3BETA API class Google::Type::Expr.
Represents a textual expression in the Common Expression Language (CEL)
syntax. CEL is a C-like expression language. The syntax and semantics of CEL
are documented at https://github.com/google/cel-spec.
Example (Comparison):
title: "Summary size limit"
description: "Determines if a summary is less than 100 chars"
expression: "document.summary.size() < 100"
Example (Equality):
title: "Requestor is owner"
description: "Determines if requestor is the document owner"
expression: "document.owner == request.auth.claims.email"
Example (Logic):
title: "Public documents"
description: "Determine whether the document should be publicly visible"
expression: "document.type != 'private' && document.type != 'internal'"
Example (Data Manipulation):
title: "Notification string"
description: "Create a notification string with a timestamp."
expression: "'New message received at ' + string(document.create_time)"
The exact variables and functions that may be referenced within an expression
are determined by the service that evaluates it. See the service
documentation for additional information.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#description
defdescription()->::String
Returns
(::String) — Optional. Description of the expression. This is a longer text which
describes the expression, e.g. when hovered over it in a UI.
#description=
defdescription=(value)->::String
Parameter
value (::String) — Optional. Description of the expression. This is a longer text which
describes the expression, e.g. when hovered over it in a UI.
Returns
(::String) — Optional. Description of the expression. This is a longer text which
describes the expression, e.g. when hovered over it in a UI.
#expression
defexpression()->::String
Returns
(::String) — Textual representation of an expression in Common Expression Language
syntax.
#expression=
defexpression=(value)->::String
Parameter
value (::String) — Textual representation of an expression in Common Expression Language
syntax.
Returns
(::String) — Textual representation of an expression in Common Expression Language
syntax.
#location
deflocation()->::String
Returns
(::String) — Optional. String indicating the location of the expression for error
reporting, e.g. a file name and a position in the file.
#location=
deflocation=(value)->::String
Parameter
value (::String) — Optional. String indicating the location of the expression for error
reporting, e.g. a file name and a position in the file.
Returns
(::String) — Optional. String indicating the location of the expression for error
reporting, e.g. a file name and a position in the file.
#title
deftitle()->::String
Returns
(::String) — Optional. Title for the expression, i.e. a short string describing
its purpose. This can be used e.g. in UIs which allow to enter the
expression.
#title=
deftitle=(value)->::String
Parameter
value (::String) — Optional. Title for the expression, i.e. a short string describing
its purpose. This can be used e.g. in UIs which allow to enter the
expression.
Returns
(::String) — Optional. Title for the expression, i.e. a short string describing
its purpose. This can be used e.g. in UIs which allow to enter the
expression.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Identity and Access Management (IAM) V3BETA API - Class Google::Type::Expr (v0.1.0)\n\nReference documentation and code samples for the Identity and Access Management (IAM) V3BETA API class Google::Type::Expr.\n\nRepresents a textual expression in the Common Expression Language (CEL)\nsyntax. CEL is a C-like expression language. The syntax and semantics of CEL\nare documented at \u003chttps://github.com/google/cel-spec\u003e.\n\n\nExample (Comparison): \n\n title: \"Summary size limit\"\n description: \"Determines if a summary is less than 100 chars\"\n expression: \"document.summary.size() \u003c 100\"\n\nExample (Equality): \n\n title: \"Requestor is owner\"\n description: \"Determines if requestor is the document owner\"\n expression: \"document.owner == request.auth.claims.email\"\n\nExample (Logic): \n\n title: \"Public documents\"\n description: \"Determine whether the document should be publicly visible\"\n expression: \"document.type != 'private' && document.type != 'internal'\"\n\nExample (Data Manipulation): \n\n title: \"Notification string\"\n description: \"Create a notification string with a timestamp.\"\n expression: \"'New message received at ' + string(document.create_time)\"\n\n\u003cbr /\u003e\n\nThe exact variables and functions that may be referenced within an expression\nare determined by the service that evaluates it. See the service\ndocumentation for additional information. \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### #description\n\n def description() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.\n\n### #description=\n\n def description=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. \n**Returns**\n\n- (::String) --- Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.\n\n### #expression\n\n def expression() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Textual representation of an expression in Common Expression Language syntax.\n\n### #expression=\n\n def expression=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Textual representation of an expression in Common Expression Language syntax. \n**Returns**\n\n- (::String) --- Textual representation of an expression in Common Expression Language syntax.\n\n### #location\n\n def location() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.\n\n### #location=\n\n def location=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. \n**Returns**\n\n- (::String) --- Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.\n\n### #title\n\n def title() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.\n\n### #title=\n\n def title=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. \n**Returns**\n\n- (::String) --- Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression."]]