Class: Google::Apis::ServicebrokerV1alpha1::GoogleTypeExpr

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/servicebroker_v1alpha1/classes.rb,
generated/google/apis/servicebroker_v1alpha1/representations.rb,
generated/google/apis/servicebroker_v1alpha1/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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleTypeExpr

Returns a new instance of GoogleTypeExpr



988
989
990
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 988

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#descriptionString

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

Returns:

  • (String)


965
966
967
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 965

def description
  @description
end

#expressionString

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

Returns:

  • (String)


973
974
975
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 973

def expression
  @expression
end

#locationString

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

Returns:

  • (String)


979
980
981
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 979

def location
  @location
end

#titleString

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

Returns:

  • (String)


986
987
988
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 986

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



993
994
995
996
997
998
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 993

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