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.
13144 13145 13146 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13144 def initialize(**args) update!(**args) end |
Instance Attribute Details
#canonical_name ⇒ String
Corresponds to the JSON property canonicalName
13127 13128 13129 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13127 def canonical_name @canonical_name end |
#description ⇒ String
Corresponds to the JSON property description
13132 13133 13134 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13132 def description @description end |
#display_name ⇒ String
Corresponds to the JSON property displayName
13137 13138 13139 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13137 def display_name @display_name end |
#name ⇒ String
Corresponds to the JSON property name
13142 13143 13144 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13142 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13149 13150 13151 13152 13153 13154 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13149 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 |