class Google::Apis::SecuritycenterV1beta1::Asset

Security Command Center representation of a Google Cloud resource. The Asset is a Security Command Center resource that captures information about a single Google Cloud resource. All modifications to an Asset are only within the context of Security Command Center and don't affect the referenced Google Cloud resource.

Attributes

create_time[RW]

The time at which the asset was created in Security Command Center. Corresponds to the JSON property `createTime` @return [String]

name[RW]

The relative resource name of this asset. See: cloud.google.com/apis/ design/resource_names#relative_resource_name Example: “organizations/` organization_id`/assets/`asset_id`”. Corresponds to the JSON property `name` @return [String]

resource_properties[RW]

Resource managed properties. These properties are managed and defined by the Google Cloud resource and cannot be modified by the user. Corresponds to the JSON property `resourceProperties` @return [Hash<String,Object>]

security_center_properties[RW]

Security Command Center managed properties. These properties are managed by Security Command Center and cannot be modified by the user. Corresponds to the JSON property `securityCenterProperties` @return [Google::Apis::SecuritycenterV1beta1::SecurityCenterProperties]

security_marks[RW]

User specified security marks that are attached to the parent Security Command Center resource. Security marks are scoped within a Security Command Center organization – they can be modified and viewed by all users who have proper permissions on the organization. Corresponds to the JSON property `securityMarks` @return [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1beta1SecurityMarks]

update_time[RW]

The time at which the asset was last updated, added, or deleted in Security Command Center. Corresponds to the JSON property `updateTime` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/securitycenter_v1beta1/classes.rb, line 71
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/securitycenter_v1beta1/classes.rb, line 76
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