Class: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Asset
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Asset
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/securitycenter_v1p1beta1/classes.rb,
generated/google/apis/securitycenter_v1p1beta1/representations.rb,
generated/google/apis/securitycenter_v1p1beta1/representations.rb
Overview
Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud Platform (GCP) resource. The Asset is a Cloud SCC resource that captures information about a single GCP resource. All modifications to an Asset are only within the context of Cloud SCC and don't affect the referenced GCP resource.
Instance Attribute Summary collapse
-
#create_time ⇒ String
The time at which the asset was created in Cloud SCC.
-
#iam_policy ⇒ Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1IamPolicy
IAM Policy information associated with the GCP resource described by the Cloud SCC asset.
-
#name ⇒ String
The relative resource name of this asset.
-
#resource_properties ⇒ Hash<String,Object>
Resource managed properties.
-
#security_center_properties ⇒ Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
Cloud SCC managed properties.
-
#security_marks ⇒ Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks
User specified security marks that are attached to the parent Cloud Security Command Center (Cloud SCC) resource.
-
#update_time ⇒ String
The time at which the asset was last updated, added, or deleted in Cloud SCC.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudSecuritycenterV1p1beta1Asset
constructor
A new instance of GoogleCloudSecuritycenterV1p1beta1Asset.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudSecuritycenterV1p1beta1Asset
Returns a new instance of GoogleCloudSecuritycenterV1p1beta1Asset.
478 479 480 |
# File 'generated/google/apis/securitycenter_v1p1beta1/classes.rb', line 478 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
The time at which the asset was created in Cloud SCC.
Corresponds to the JSON property createTime
435 436 437 |
# File 'generated/google/apis/securitycenter_v1p1beta1/classes.rb', line 435 def create_time @create_time end |
#iam_policy ⇒ Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1IamPolicy
IAM Policy information associated with the GCP resource described by the
Cloud SCC asset. This information is managed and defined by the GCP
resource and cannot be modified by the user.
Corresponds to the JSON property iamPolicy
442 443 444 |
# File 'generated/google/apis/securitycenter_v1p1beta1/classes.rb', line 442 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
450 451 452 |
# File 'generated/google/apis/securitycenter_v1p1beta1/classes.rb', line 450 def name @name end |
#resource_properties ⇒ Hash<String,Object>
Resource managed properties. These properties are managed and defined by
the GCP resource and cannot be modified by the user.
Corresponds to the JSON property resourceProperties
456 457 458 |
# File 'generated/google/apis/securitycenter_v1p1beta1/classes.rb', line 456 def resource_properties @resource_properties end |
#security_center_properties ⇒ Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
Cloud SCC managed properties. These properties are managed by Cloud SCC and
cannot be modified by the user.
Corresponds to the JSON property securityCenterProperties
462 463 464 |
# File 'generated/google/apis/securitycenter_v1p1beta1/classes.rb', line 462 def security_center_properties @security_center_properties end |
#security_marks ⇒ Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks
User specified security marks that are attached to the parent Cloud Security
Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud
SCC organization -- they can be modified and viewed by all users who have
proper permissions on the organization.
Corresponds to the JSON property securityMarks
470 471 472 |
# File 'generated/google/apis/securitycenter_v1p1beta1/classes.rb', line 470 def security_marks @security_marks end |
#update_time ⇒ String
The time at which the asset was last updated, added, or deleted in Cloud
SCC.
Corresponds to the JSON property updateTime
476 477 478 |
# File 'generated/google/apis/securitycenter_v1p1beta1/classes.rb', line 476 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
483 484 485 486 487 488 489 490 491 |
# File 'generated/google/apis/securitycenter_v1p1beta1/classes.rb', line 483 def update!(**args) @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 |