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.



11995
11996
11997
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 11995

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

Instance Attribute Details

#descriptionString

Corresponds to the JSON property description

Returns:

  • (String)


11983
11984
11985
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 11983

def description
  @description
end

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


11988
11989
11990
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 11988

def display_name
  @display_name
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


11993
11994
11995
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 11993

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12000
12001
12002
12003
12004
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 12000

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