# Cloud Security Command Center V1p1beta1 API - Class Google::Cloud::SecurityCenter::V1p1beta1::Asset (v0.22.0)

0.22.0 (latest) 0.21.1 0.20.0 0.19.1 0.18.0 0.17.0 0.16.1 0.15.0 0.14.2 0.13.2 0.12.0 0.11.2 0.10.0 0.9.0 0.8.0 0.7.5 Reference documentation and code samples for the Cloud Security Command Center V1p1beta1 API class Google::Cloud::SecurityCenter::V1p1beta1::Asset.

Security Command Center representation of a Google Cloud
resource.


<br />

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.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #canonical_name

    def canonical_name() -> ::String

**Returns**

- (::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.

### #canonical_name=

    def canonical_name=(value) -> ::String

**Parameter**

- **value** (::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.
**Returns**

- (::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.

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v1p1beta1/latest/Google-Protobuf-Timestamp)) --- The time at which the asset was created in Security Command Center.

### #create_time=

    def create_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v1p1beta1/latest/Google-Protobuf-Timestamp)) --- The time at which the asset was created in Security Command Center.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v1p1beta1/latest/Google-Protobuf-Timestamp)) --- The time at which the asset was created in Security Command Center.

### #iam_policy

    def iam_policy() -> ::Google::Cloud::SecurityCenter::V1p1beta1::Asset::IamPolicy

**Returns**

- ([::Google::Cloud::SecurityCenter::V1p1beta1::Asset::IamPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v1p1beta1/latest/Google-Cloud-SecurityCenter-V1p1beta1-Asset-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.

### #iam_policy=

    def iam_policy=(value) -> ::Google::Cloud::SecurityCenter::V1p1beta1::Asset::IamPolicy

**Parameter**

- **value** ([::Google::Cloud::SecurityCenter::V1p1beta1::Asset::IamPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v1p1beta1/latest/Google-Cloud-SecurityCenter-V1p1beta1-Asset-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.
**Returns**

- ([::Google::Cloud::SecurityCenter::V1p1beta1::Asset::IamPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v1p1beta1/latest/Google-Cloud-SecurityCenter-V1p1beta1-Asset-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.

### #name

    def name() -> ::String

**Returns**

- (::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}".

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::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}".
**Returns**

- (::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}".

### #resource_properties

    def resource_properties() -> ::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::Google::Protobuf::Value}) --- Resource managed properties. These properties are managed and defined by the Google Cloud resource and cannot be modified by the user.

### #resource_properties=

    def resource_properties=(value) -> ::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::Google::Protobuf::Value}) --- Resource managed properties. These properties are managed and defined by the Google Cloud resource and cannot be modified by the user.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::Google::Protobuf::Value}) --- Resource managed properties. These properties are managed and defined by the Google Cloud resource and cannot be modified by the user.

### #security_center_properties

    def security_center_properties() -> ::Google::Cloud::SecurityCenter::V1p1beta1::Asset::SecurityCenterProperties

**Returns**

- ([::Google::Cloud::SecurityCenter::V1p1beta1::Asset::SecurityCenterProperties](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v1p1beta1/latest/Google-Cloud-SecurityCenter-V1p1beta1-Asset-SecurityCenterProperties)) --- Security Command Center managed properties. These properties are managed by Security Command Center and cannot be modified by the user.

### #security_center_properties=

    def security_center_properties=(value) -> ::Google::Cloud::SecurityCenter::V1p1beta1::Asset::SecurityCenterProperties

**Parameter**

- **value** ([::Google::Cloud::SecurityCenter::V1p1beta1::Asset::SecurityCenterProperties](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v1p1beta1/latest/Google-Cloud-SecurityCenter-V1p1beta1-Asset-SecurityCenterProperties)) --- Security Command Center managed properties. These properties are managed by Security Command Center and cannot be modified by the user.
**Returns**

- ([::Google::Cloud::SecurityCenter::V1p1beta1::Asset::SecurityCenterProperties](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v1p1beta1/latest/Google-Cloud-SecurityCenter-V1p1beta1-Asset-SecurityCenterProperties)) --- Security Command Center managed properties. These properties are managed by Security Command Center and cannot be modified by the user.

### #security_marks

    def security_marks() -> ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityMarks

**Returns**

- ([::Google::Cloud::SecurityCenter::V1p1beta1::SecurityMarks](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v1p1beta1/latest/Google-Cloud-SecurityCenter-V1p1beta1-SecurityMarks)) --- User specified security marks. These marks are entirely managed by the user and come from the SecurityMarks resource that belongs to the asset.

### #security_marks=

    def security_marks=(value) -> ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityMarks

**Parameter**

- **value** ([::Google::Cloud::SecurityCenter::V1p1beta1::SecurityMarks](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v1p1beta1/latest/Google-Cloud-SecurityCenter-V1p1beta1-SecurityMarks)) --- User specified security marks. These marks are entirely managed by the user and come from the SecurityMarks resource that belongs to the asset.
**Returns**

- ([::Google::Cloud::SecurityCenter::V1p1beta1::SecurityMarks](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v1p1beta1/latest/Google-Cloud-SecurityCenter-V1p1beta1-SecurityMarks)) --- User specified security marks. These marks are entirely managed by the user and come from the SecurityMarks resource that belongs to the asset.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v1p1beta1/latest/Google-Protobuf-Timestamp)) --- The time at which the asset was last updated or added in Cloud SCC.

### #update_time=

    def update_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v1p1beta1/latest/Google-Protobuf-Timestamp)) --- The time at which the asset was last updated or added in Cloud SCC.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v1p1beta1/latest/Google-Protobuf-Timestamp)) --- The time at which the asset was last updated or added in Cloud SCC.