Class: Google::Apis::SecuritycenterV1::Expr

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Expr

Returns a new instance of Expr.



2592
2593
2594
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2592

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

Instance Attribute Details

#descriptionString

Corresponds to the JSON property description

Returns:

  • (String)


2575
2576
2577
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2575

def description
  @description
end

#expressionString

Corresponds to the JSON property expression

Returns:

  • (String)


2580
2581
2582
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2580

def expression
  @expression
end

#locationString

Corresponds to the JSON property location

Returns:

  • (String)


2585
2586
2587
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2585

def location
  @location
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


2590
2591
2592
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2590

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2597
2598
2599
2600
2601
2602
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2597

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