Class: Google::Apis::SecuritycenterV1beta2::Expr

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/securitycenter_v1beta2/classes.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Expr

Returns a new instance of Expr.



2116
2117
2118
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2116

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

Instance Attribute Details

#descriptionString

Corresponds to the JSON property description

Returns:

  • (String)


2099
2100
2101
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2099

def description
  @description
end

#expressionString

Corresponds to the JSON property expression

Returns:

  • (String)


2104
2105
2106
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2104

def expression
  @expression
end

#locationString

Corresponds to the JSON property location

Returns:

  • (String)


2109
2110
2111
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2109

def location
  @location
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


2114
2115
2116
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2114

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2121
2122
2123
2124
2125
2126
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2121

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