Google Cloud Security Command Center V1p1beta1 Client - Class Asset (1.13.1)

Reference documentation and code samples for the Google Cloud Security Command Center V1p1beta1 Client class Asset.

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.

Generated from protobuf message google.cloud.securitycenter.v1p1beta1.Asset

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ 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}".

↳ security_center_properties 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.

↳ resource_properties array|Google\Protobuf\Internal\MapField

Resource managed properties. These properties are managed and defined by the Google Cloud resource and cannot be modified by the user.

↳ security_marks 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.

↳ create_time Google\Protobuf\Timestamp

The time at which the asset was created in Security Command Center.

↳ update_time Google\Protobuf\Timestamp

The time at which the asset was last updated or added in Cloud SCC.

↳ iam_policy 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.

↳ 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.

getName

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

Generated from protobuf field string name = 1;

Returns
TypeDescription
string

setName

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

Generated from protobuf field string name = 1;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSecurityCenterProperties

Security Command Center managed properties. These properties are managed by Security Command Center and cannot be modified by the user.

Generated from protobuf field .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2;

Returns
TypeDescription
Google\Cloud\SecurityCenter\V1p1beta1\Asset\SecurityCenterProperties|null

hasSecurityCenterProperties

clearSecurityCenterProperties

setSecurityCenterProperties

Security Command Center managed properties. These properties are managed by Security Command Center and cannot be modified by the user.

Generated from protobuf field .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2;

Parameter
NameDescription
var Google\Cloud\SecurityCenter\V1p1beta1\Asset\SecurityCenterProperties
Returns
TypeDescription
$this

getResourceProperties

Resource managed properties. These properties are managed and defined by the Google Cloud resource and cannot be modified by the user.

Generated from protobuf field map<string, .google.protobuf.Value> resource_properties = 7;

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setResourceProperties

Resource managed properties. These properties are managed and defined by the Google Cloud resource and cannot be modified by the user.

Generated from protobuf field map<string, .google.protobuf.Value> resource_properties = 7;

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getSecurityMarks

User specified security marks. These marks are entirely managed by the user and come from the SecurityMarks resource that belongs to the asset.

Generated from protobuf field .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8;

Returns
TypeDescription
Google\Cloud\SecurityCenter\V1p1beta1\SecurityMarks|null

hasSecurityMarks

clearSecurityMarks

setSecurityMarks

User specified security marks. These marks are entirely managed by the user and come from the SecurityMarks resource that belongs to the asset.

Generated from protobuf field .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8;

Parameter
NameDescription
var Google\Cloud\SecurityCenter\V1p1beta1\SecurityMarks
Returns
TypeDescription
$this

getCreateTime

The time at which the asset was created in Security Command Center.

Generated from protobuf field .google.protobuf.Timestamp create_time = 9;

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

The time at which the asset was created in Security Command Center.

Generated from protobuf field .google.protobuf.Timestamp create_time = 9;

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

The time at which the asset was last updated or added in Cloud SCC.

Generated from protobuf field .google.protobuf.Timestamp update_time = 10;

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

The time at which the asset was last updated or added in Cloud SCC.

Generated from protobuf field .google.protobuf.Timestamp update_time = 10;

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getIamPolicy

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.

Generated from protobuf field .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;

Returns
TypeDescription
Google\Cloud\SecurityCenter\V1p1beta1\Asset\IamPolicy|null

hasIamPolicy

clearIamPolicy

setIamPolicy

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.

Generated from protobuf field .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;

Parameter
NameDescription
var Google\Cloud\SecurityCenter\V1p1beta1\Asset\IamPolicy
Returns
TypeDescription
$this

getCanonicalName

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.

Generated from protobuf field string canonical_name = 13;

Returns
TypeDescription
string

setCanonicalName

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.

Generated from protobuf field string canonical_name = 13;

Parameter
NameDescription
var string
Returns
TypeDescription
$this