class

GoogleCloudStorage::Expr

Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

Represents an expression text. Example: title: "User account presence" description: "Determines whether the request has a user account" expression: "size(request.user) > 0"

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, description : String | Nil = nil, expression : String | Nil = nil, location : String | Nil = nil, title : String | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

description

An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.

Source
description=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] description Object to be assigned

Source
expression

Textual representation of an expression in Common Expression Language syntax. The application context of the containing message determines which well-known feature set of CEL is supported.

Source
expression=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] expression Object to be assigned

Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
location

An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.

Source
location=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] location Object to be assigned

Source
title

An 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.

Source
title=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] title Object to be assigned

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source