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
Overview
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.
Instance Attribute Summary collapse
-
#canonical_name ⇒ String
The canonical name of the resource.
-
#create_time ⇒ String
The time at which the asset was created in Security Command Center.
-
#iam_policy ⇒ Google::Apis::SecuritycenterV1::IamPolicy
Cloud IAM Policy information associated with the Google Cloud resource described by the Security Command Center asset.
-
#name ⇒ String
The relative resource name of this asset.
-
#resource_properties ⇒ Hash<String,Object>
Resource managed properties.
-
#security_center_properties ⇒ Google::Apis::SecuritycenterV1::SecurityCenterProperties
Security Command Center managed properties.
-
#security_marks ⇒ Google::Apis::SecuritycenterV1::SecurityMarks
User specified security marks that are attached to the parent Security Command Center resource.
-
#update_time ⇒ String
The time at which the asset was last updated or added in Cloud SCC.
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.
241 242 243 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 241 def initialize(**args) update!(**args) end |
Instance Attribute Details
#canonical_name ⇒ String
The canonical name of the resource. It's either "organizations/
organization_id/assets/asset_id", "folders/folder_id/assets/asset_id"
or "projects/project_number/assets/asset_id", depending on the closest CRM
ancestor of the resource.
Corresponds to the JSON property canonicalName
195 196 197 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 195 def canonical_name @canonical_name end |
#create_time ⇒ String
The time at which the asset was created in Security Command Center.
Corresponds to the JSON property createTime
200 201 202 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 200 def create_time @create_time end |
#iam_policy ⇒ Google::Apis::SecuritycenterV1::IamPolicy
Cloud IAM Policy information associated with the Google Cloud resource
described by the Security Command Center asset. This information is managed
and defined by the Google Cloud resource and cannot be modified by the user.
Corresponds to the JSON property iamPolicy
207 208 209 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 207 def iam_policy @iam_policy end |
#name ⇒ String
The relative resource name of this asset. See: https://cloud.google.com/apis/
design/resource_names#relative_resource_name Example: "organizations/
organization_id/assets/asset_id".
Corresponds to the JSON property name
214 215 216 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 214 def name @name end |
#resource_properties ⇒ Hash<String,Object>
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
220 221 222 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 220 def resource_properties @resource_properties end |
#security_center_properties ⇒ Google::Apis::SecuritycenterV1::SecurityCenterProperties
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
226 227 228 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 226 def security_center_properties @security_center_properties end |
#security_marks ⇒ Google::Apis::SecuritycenterV1::SecurityMarks
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
234 235 236 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 234 def security_marks @security_marks end |
#update_time ⇒ String
The time at which the asset was last updated or added in Cloud SCC.
Corresponds to the JSON property updateTime
239 240 241 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 239 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
246 247 248 249 250 251 252 253 254 255 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 246 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 |