Google Cloud Security Command Center V1 Client - Class ValuedResource (2.0.1)

Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class ValuedResource.

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

Generated from protobuf message google.cloud.securitycenter.v1.ValuedResource

Namespace

Google \ Cloud \ SecurityCenter \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Valued resource name, for example, e.g.: organizations/123/simulations/456/valuedResources/789

↳ resource string

The full resource name of the valued resource.

↳ resource_type string

The resource type of the valued resource.

↳ display_name string

Human-readable name of the valued resource.

↳ resource_value int

How valuable this resource is.

↳ exposed_score float

Exposed score for this valued resource. A value of 0 means no exposure was detected exposure.

↳ resource_value_configs_used array<Google\Cloud\SecurityCenter\V1\ResourceValueConfigMetadata>

List of resource value configurations' metadata used to determine the value of this resource. Maximum of 100.

getName

Valued resource name, for example, e.g.: organizations/123/simulations/456/valuedResources/789

Returns
Type Description
string

setName

Valued resource name, for example, e.g.: organizations/123/simulations/456/valuedResources/789

Parameter
Name Description
var string
Returns
Type Description
$this

getResource

The full resource name of the valued resource.

Returns
Type Description
string

setResource

The full resource name of the valued resource.

Parameter
Name Description
var string
Returns
Type Description
$this

getResourceType

The resource type of the valued resource.

Returns
Type Description
string

setResourceType

The resource type of the valued resource.

Parameter
Name Description
var string
Returns
Type Description
$this

getDisplayName

Human-readable name of the valued resource.

Returns
Type Description
string

setDisplayName

Human-readable name of the valued resource.

Parameter
Name Description
var string
Returns
Type Description
$this

getResourceValue

How valuable this resource is.

Returns
Type Description
int

setResourceValue

How valuable this resource is.

Parameter
Name Description
var int
Returns
Type Description
$this

getExposedScore

Exposed score for this valued resource. A value of 0 means no exposure was detected exposure.

Returns
Type Description
float

setExposedScore

Exposed score for this valued resource. A value of 0 means no exposure was detected exposure.

Parameter
Name Description
var float
Returns
Type Description
$this

getResourceValueConfigsUsed

List of resource value configurations' metadata used to determine the value of this resource. Maximum of 100.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setResourceValueConfigsUsed

List of resource value configurations' metadata used to determine the value of this resource. Maximum of 100.

Parameter
Name Description
var array<Google\Cloud\SecurityCenter\V1\ResourceValueConfigMetadata>
Returns
Type Description
$this