Class: Google::Apis::SecuritycenterV1::Source
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1::Source
- 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
-
#canonical_name ⇒ String
Corresponds to the JSON property
canonicalName. -
#description ⇒ String
Corresponds to the JSON property
description. -
#display_name ⇒ String
Corresponds to the JSON property
displayName. -
#name ⇒ String
Corresponds to the JSON property
name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Source
constructor
A new instance of Source.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Source
Returns a new instance of Source.
13454 13455 13456 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13454 def initialize(**args) update!(**args) end |
Instance Attribute Details
#canonical_name ⇒ String
Corresponds to the JSON property canonicalName
13437 13438 13439 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13437 def canonical_name @canonical_name end |
#description ⇒ String
Corresponds to the JSON property description
13442 13443 13444 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13442 def description @description end |
#display_name ⇒ String
Corresponds to the JSON property displayName
13447 13448 13449 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13447 def display_name @display_name end |
#name ⇒ String
Corresponds to the JSON property name
13452 13453 13454 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13452 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13459 13460 13461 13462 13463 13464 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13459 def update!(**args) @canonical_name = args[:canonical_name] if args.key?(:canonical_name) @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 |