Class: Google::Apis::SecuritycenterV1::Label

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) ⇒ Label

Returns a new instance of Label.



10921
10922
10923
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10921

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

Instance Attribute Details

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


10914
10915
10916
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10914

def name
  @name
end

#valueString

Corresponds to the JSON property value

Returns:

  • (String)


10919
10920
10921
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10919

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10926
10927
10928
10929
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10926

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @value = args[:value] if args.key?(:value)
end