Class: Google::Apis::SecuritycenterV1beta1::Asset
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta1::Asset
- 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
-
#create_time ⇒ String
Corresponds to the JSON property
createTime. -
#name ⇒ String
Corresponds to the JSON property
name. -
#resource_properties ⇒ Hash<String,Object>
Corresponds to the JSON property
resourceProperties. -
#security_center_properties ⇒ Google::Apis::SecuritycenterV1beta1::SecurityCenterProperties
Corresponds to the JSON property
securityCenterProperties. -
#security_marks ⇒ Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1beta1SecurityMarks
Corresponds to the JSON property
securityMarks. -
#update_time ⇒ String
Corresponds to the JSON property
updateTime.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Asset
constructor
A new instance of Asset.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Asset
Returns a new instance of Asset.
567 568 569 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 567 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Corresponds to the JSON property createTime
540 541 542 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 540 def create_time @create_time end |
#name ⇒ String
Corresponds to the JSON property name
545 546 547 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 545 def name @name end |
#resource_properties ⇒ Hash<String,Object>
Corresponds to the JSON property resourceProperties
550 551 552 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 550 def resource_properties @resource_properties end |
#security_center_properties ⇒ Google::Apis::SecuritycenterV1beta1::SecurityCenterProperties
Corresponds to the JSON property securityCenterProperties
555 556 557 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 555 def security_center_properties @security_center_properties end |
#security_marks ⇒ Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1beta1SecurityMarks
Corresponds to the JSON property securityMarks
560 561 562 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 560 def security_marks @security_marks end |
#update_time ⇒ String
Corresponds to the JSON property updateTime
565 566 567 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 565 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
572 573 574 575 576 577 578 579 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 572 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @name = args[:name] if args.key?(:name) @resource_properties = args[:resource_properties] if args.key?(:resource_properties) @security_center_properties = args[:security_center_properties] if args.key?(:security_center_properties) @security_marks = args[:security_marks] if args.key?(:security_marks) @update_time = args[:update_time] if args.key?(:update_time) end |