Class: Google::Apis::CloudiotV1beta1::Expr
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::CloudiotV1beta1::Expr
 
- Defined in:
- generated/google/apis/cloudiot_v1beta1/classes.rb,
 generated/google/apis/cloudiot_v1beta1/representations.rb,
 generated/google/apis/cloudiot_v1beta1/representations.rb
Overview
Represents an expression text. Example: title: "User account presence" description: "Determines whether the request has a user account" expression: "size(request.user) > 0"
Instance Attribute Summary collapse
- 
  
    
      #description  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    An optional description of the expression. 
- 
  
    
      #expression  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Textual representation of an expression in Common Expression Language syntax. 
- 
  
    
      #location  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    An optional string indicating the location of the expression for error reporting, e.g. 
- 
  
    
      #title  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    An optional title for the expression, i.e. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Expr 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Expr. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Expr
Returns a new instance of Expr
| 518 519 520 | # File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 518 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#description ⇒ String
An optional description of the expression. This is a longer text which
describes the expression, e.g. when hovered over it in a UI.
Corresponds to the JSON property description
| 495 496 497 | # File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 495 def description @description end | 
#expression ⇒ String
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.
Corresponds to the JSON property expression
| 503 504 505 | # File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 503 def expression @expression end | 
#location ⇒ String
An optional string indicating the location of the expression for error
reporting, e.g. a file name and a position in the file.
Corresponds to the JSON property location
| 509 510 511 | # File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 509 def location @location end | 
#title ⇒ String
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.
Corresponds to the JSON property title
| 516 517 518 | # File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 516 def title @title end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 523 524 525 526 527 528 | # File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 523 def update!(**args) @description = args[:description] if args.key?(:description) @expression = args[:expression] if args.key?(:expression) @location = args[:location] if args.key?(:location) @title = args[:title] if args.key?(:title) end |