# Security Command Center V2 API - Class Google::Cloud::SecurityCenter::V2::ValuedResource (v1.8.0)

1.8.0 (latest) 1.7.1 1.6.0 1.5.1 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.6.0 0.5.0 0.4.1 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Security Command Center V2 API class Google::Cloud::SecurityCenter::V2::ValuedResource.

A resource that is determined to have value to a user's system

## Inherits

- [Object](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-Kubernetes-Object)

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #display_name

    def display_name() -> ::String

**Returns**

- (::String) --- Human-readable name of the valued resource.

### #display_name=

    def display_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Human-readable name of the valued resource.
**Returns**

- (::String) --- Human-readable name of the valued resource.

### #exposed_score

    def exposed_score() -> ::Float

**Returns**

- (::Float) --- Exposed score for this valued resource. A value of 0 means no exposure was detected exposure.

### #exposed_score=

    def exposed_score=(value) -> ::Float

**Parameter**

- **value** (::Float) --- Exposed score for this valued resource. A value of 0 means no exposure was detected exposure.
**Returns**

- (::Float) --- Exposed score for this valued resource. A value of 0 means no exposure was detected exposure.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Valued resource name, for example, e.g.: `organizations/123/simulations/456/valuedResources/789`

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Valued resource name, for example, e.g.: `organizations/123/simulations/456/valuedResources/789`
**Returns**

- (::String) --- Valued resource name, for example, e.g.: `organizations/123/simulations/456/valuedResources/789`

### #resource

    def resource() -> ::String

**Returns**

- (::String) --- The [full resource
  name](https://cloud.google.com/apis/design/resource_names#full_resource_name) of the valued resource.

### #resource=

    def resource=(value) -> ::String

**Parameter**

- **value** (::String) --- The [full resource
  name](https://cloud.google.com/apis/design/resource_names#full_resource_name) of the valued resource.
**Returns**

- (::String) --- The [full resource
  name](https://cloud.google.com/apis/design/resource_names#full_resource_name) of the valued resource.

### #resource_type

    def resource_type() -> ::String

**Returns**

- (::String) --- The [resource
  type](https://cloud.google.com/asset-inventory/docs/supported-asset-types) of the valued resource.

### #resource_type=

    def resource_type=(value) -> ::String

**Parameter**

- **value** (::String) --- The [resource
  type](https://cloud.google.com/asset-inventory/docs/supported-asset-types) of the valued resource.
**Returns**

- (::String) --- The [resource
  type](https://cloud.google.com/asset-inventory/docs/supported-asset-types) of the valued resource.

### #resource_value

    def resource_value() -> ::Google::Cloud::SecurityCenter::V2::ValuedResource::ResourceValue

**Returns**

- ([::Google::Cloud::SecurityCenter::V2::ValuedResource::ResourceValue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-ValuedResource-ResourceValue)) --- How valuable this resource is.

### #resource_value=

    def resource_value=(value) -> ::Google::Cloud::SecurityCenter::V2::ValuedResource::ResourceValue

**Parameter**

- **value** ([::Google::Cloud::SecurityCenter::V2::ValuedResource::ResourceValue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-ValuedResource-ResourceValue)) --- How valuable this resource is.
**Returns**

- ([::Google::Cloud::SecurityCenter::V2::ValuedResource::ResourceValue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-ValuedResource-ResourceValue)) --- How valuable this resource is.

### #resource_value_configs_used

    def resource_value_configs_used() -> ::Array<::Google::Cloud::SecurityCenter::V2::ResourceValueConfigMetadata>

**Returns**

- (::Array\<[::Google::Cloud::SecurityCenter::V2::ResourceValueConfigMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-ResourceValueConfigMetadata)\>) --- List of resource value configurations' metadata used to determine the value of this resource. Maximum of 100.

### #resource_value_configs_used=

    def resource_value_configs_used=(value) -> ::Array<::Google::Cloud::SecurityCenter::V2::ResourceValueConfigMetadata>

**Parameter**

- **value** (::Array\<[::Google::Cloud::SecurityCenter::V2::ResourceValueConfigMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-ResourceValueConfigMetadata)\>) --- List of resource value configurations' metadata used to determine the value of this resource. Maximum of 100.
**Returns**

- (::Array\<[::Google::Cloud::SecurityCenter::V2::ResourceValueConfigMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-ResourceValueConfigMetadata)\>) --- List of resource value configurations' metadata used to determine the value of this resource. Maximum of 100.