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.



2161
2162
2163
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 2161

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

Instance Attribute Details

#descriptionString

Corresponds to the JSON property description

Returns:

  • (String)


2144
2145
2146
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 2144

def description
  @description
end

#expressionString

Corresponds to the JSON property expression

Returns:

  • (String)


2149
2150
2151
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 2149

def expression
  @expression
end

#locationString

Corresponds to the JSON property location

Returns:

  • (String)


2154
2155
2156
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 2154

def location
  @location
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


2159
2160
2161
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 2159

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2166
2167
2168
2169
2170
2171
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 2166

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