Class: Google::Apis::SecuritycenterV1beta1::Source

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

Returns a new instance of Source.



12305
12306
12307
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 12305

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

Instance Attribute Details

#descriptionString

Corresponds to the JSON property description

Returns:

  • (String)


12293
12294
12295
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 12293

def description
  @description
end

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


12298
12299
12300
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 12298

def display_name
  @display_name
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


12303
12304
12305
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 12303

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12310
12311
12312
12313
12314
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 12310

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