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.
13044 13045 13046 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13044 def initialize(**args) update!(**args) end |
Instance Attribute Details
#canonical_name ⇒ String
Corresponds to the JSON property canonicalName
13027 13028 13029 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13027 def canonical_name @canonical_name end |
#description ⇒ String
Corresponds to the JSON property description
13032 13033 13034 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13032 def description @description end |
#display_name ⇒ String
Corresponds to the JSON property displayName
13037 13038 13039 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13037 def display_name @display_name end |
#name ⇒ String
Corresponds to the JSON property name
13042 13043 13044 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13042 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13049 13050 13051 13052 13053 13054 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13049 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 |