Class: Google::Apis::SecuritycenterV1beta1::Expr

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Expr

Returns a new instance of Expr.



2279
2280
2281
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 2279

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

Instance Attribute Details

#descriptionString

Corresponds to the JSON property description

Returns:

  • (String)


2262
2263
2264
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 2262

def description
  @description
end

#expressionString

Corresponds to the JSON property expression

Returns:

  • (String)


2267
2268
2269
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 2267

def expression
  @expression
end

#locationString

Corresponds to the JSON property location

Returns:

  • (String)


2272
2273
2274
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 2272

def location
  @location
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


2277
2278
2279
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 2277

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2284
2285
2286
2287
2288
2289
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 2284

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