Class: Google::Apis::SecuritycenterV1::Asset
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1::Asset
- 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. -
#create_time ⇒ String
Corresponds to the JSON property
createTime. -
#iam_policy ⇒ Google::Apis::SecuritycenterV1::IamPolicy
Corresponds to the JSON property
iamPolicy. -
#name ⇒ String
Corresponds to the JSON property
name. -
#resource_properties ⇒ Hash<String,Object>
Corresponds to the JSON property
resourceProperties. -
#security_center_properties ⇒ Google::Apis::SecuritycenterV1::SecurityCenterProperties
Corresponds to the JSON property
securityCenterProperties. -
#security_marks ⇒ Google::Apis::SecuritycenterV1::SecurityMarks
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.
502 503 504 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 502 def initialize(**args) update!(**args) end |
Instance Attribute Details
#canonical_name ⇒ String
Corresponds to the JSON property canonicalName
465 466 467 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 465 def canonical_name @canonical_name end |
#create_time ⇒ String
Corresponds to the JSON property createTime
470 471 472 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 470 def create_time @create_time end |
#iam_policy ⇒ Google::Apis::SecuritycenterV1::IamPolicy
Corresponds to the JSON property iamPolicy
475 476 477 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 475 def iam_policy @iam_policy end |
#name ⇒ String
Corresponds to the JSON property name
480 481 482 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 480 def name @name end |
#resource_properties ⇒ Hash<String,Object>
Corresponds to the JSON property resourceProperties
485 486 487 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 485 def resource_properties @resource_properties end |
#security_center_properties ⇒ Google::Apis::SecuritycenterV1::SecurityCenterProperties
Corresponds to the JSON property securityCenterProperties
490 491 492 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 490 def security_center_properties @security_center_properties end |
#security_marks ⇒ Google::Apis::SecuritycenterV1::SecurityMarks
Corresponds to the JSON property securityMarks
495 496 497 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 495 def security_marks @security_marks end |
#update_time ⇒ String
Corresponds to the JSON property updateTime
500 501 502 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 500 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
507 508 509 510 511 512 513 514 515 516 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 507 def update!(**args) @canonical_name = args[:canonical_name] if args.key?(:canonical_name) @create_time = args[:create_time] if args.key?(:create_time) @iam_policy = args[:iam_policy] if args.key?(:iam_policy) @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 |