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.



11883
11884
11885
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 11883

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

Instance Attribute Details

#descriptionString

Corresponds to the JSON property description

Returns:

  • (String)


11871
11872
11873
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 11871

def description
  @description
end

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


11876
11877
11878
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 11876

def display_name
  @display_name
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


11881
11882
11883
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 11881

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11888
11889
11890
11891
11892
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 11888

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