Reference documentation and code samples for the Google Cloud Chronicle Client class Attribute.
Attribute is a container for generic entity attributes including common attributes across core entities (such as, user or asset). For example, Cloud is a generic entity attribute since it can apply to an asset (for example, a VM) or a user (for example, an identity service account).
Generated from protobuf message google.backstory.Attribute
Namespace
Google \ BackstoryMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ cloud |
Cloud
Cloud metadata attributes such as project ID, account ID, or organizational hierarchy. |
↳ labels |
array<Label>
Set of labels for the entity. Should only be used for product labels (for example, Google Cloud resource labels or Azure AD sensitivity labels. Should not be used for arbitrary key-value mappings. |
↳ permissions |
array<Permission>
System permissions for IAM entity (human principal, service account, group). |
↳ roles |
array<Role>
System IAM roles to be assumed by resources to use the role's permissions for access control. |
↳ creation_time |
Google\Protobuf\Timestamp
Time the resource or entity was created or provisioned. |
↳ last_update_time |
Google\Protobuf\Timestamp
Time the resource or entity was last updated. |
getCloud
Cloud metadata attributes such as project ID, account ID, or organizational hierarchy.
| Returns | |
|---|---|
| Type | Description |
Cloud|null |
|
hasCloud
clearCloud
setCloud
Cloud metadata attributes such as project ID, account ID, or organizational hierarchy.
| Parameter | |
|---|---|
| Name | Description |
var |
Cloud
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLabels
Set of labels for the entity. Should only be used for product labels (for example, Google Cloud resource labels or Azure AD sensitivity labels.
Should not be used for arbitrary key-value mappings.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<Label> |
|
setLabels
Set of labels for the entity. Should only be used for product labels (for example, Google Cloud resource labels or Azure AD sensitivity labels.
Should not be used for arbitrary key-value mappings.
| Parameter | |
|---|---|
| Name | Description |
var |
array<Label>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPermissions
System permissions for IAM entity (human principal, service account, group).
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<Permission> |
|
setPermissions
System permissions for IAM entity (human principal, service account, group).
| Parameter | |
|---|---|
| Name | Description |
var |
array<Permission>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRoles
System IAM roles to be assumed by resources to use the role's permissions for access control.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<Role> |
|
setRoles
System IAM roles to be assumed by resources to use the role's permissions for access control.
| Parameter | |
|---|---|
| Name | Description |
var |
array<Role>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCreationTime
Time the resource or entity was created or provisioned.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasCreationTime
clearCreationTime
setCreationTime
Time the resource or entity was created or provisioned.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLastUpdateTime
Time the resource or entity was last updated.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasLastUpdateTime
clearLastUpdateTime
setLastUpdateTime
Time the resource or entity was last updated.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|