Class Resource
Information about a resource such as a task, Cloud Storage bucket, database, disk, logical policy, or something similar.
Namespace: Google.Backstory
Assembly: Google.Backstory.dll
Syntax
public sealed class Resource : IMessage<Resource>, IEquatable<Resource>, IDeepCloneable<Resource>, IBufferMessage, IMessage
Constructors
Resource()
Declaration
public Resource()
Resource(Resource)
Declaration
public Resource(Resource other)
Parameters
| Type | Name | Description |
|---|---|---|
| Resource | other |
Properties
Attribute
Generic entity metadata attributes of the resource.
Declaration
public Attribute Attribute { get; set; }
Property Value
| Type | Description |
|---|---|
| Attribute |
Id
Deprecated: Use resource.name or resource.product_object_id.
Declaration
[Obsolete]
public string Id { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Name
The full name of the resource. For example, Google Cloud: //cloudresourcemanager.googleapis.com/projects/wombat-123, and AWS: arn:aws:iam::123456789012:user/johndoe.
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Parent
The parent of the resource. For a database table, the parent is the database. For a storage object, the bucket name. Deprecated: use resource_ancestors.name.
Declaration
[Obsolete]
public string Parent { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ProductObjectId
A vendor-specific identifier to uniquely identify the entity (a GUID, OID, or similar) This field can be used as an entity indicator for a Resource entity.
Declaration
public string ProductObjectId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ResourceSubtype
Resource sub-type (e.g. "BigQuery", "Bigtable").
Declaration
public string ResourceSubtype { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ResourceType
Resource type.
Declaration
public Resource.Types.ResourceType ResourceType { get; set; }
Property Value
| Type | Description |
|---|---|
| Resource.Types.ResourceType |
ScheduledAnacronTask
Information about a scheduled anacron task associated with the resource.
Declaration
public ScheduledAnacronTask ScheduledAnacronTask { get; set; }
Property Value
| Type | Description |
|---|---|
| ScheduledAnacronTask |
ScheduledCronTask
Information about a scheduled cron task associated with the resource.
Declaration
public ScheduledCronTask ScheduledCronTask { get; set; }
Property Value
| Type | Description |
|---|---|
| ScheduledCronTask |
ScheduledTask
DEPRECATED: use windows_scheduled_task for Windows scheduled tasks or scheduled_cron_task for cron jobs. Information about a scheduled task associated with the resource.
Declaration
[Obsolete]
public ScheduledTask ScheduledTask { get; set; }
Property Value
| Type | Description |
|---|---|
| ScheduledTask |
Service
Information about a Windows service associated with the resource.
Declaration
public Service Service { get; set; }
Property Value
| Type | Description |
|---|---|
| Service |
Type
Deprecated: use resource_type instead.
Declaration
[Obsolete]
public string Type { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Volume
Information about a storage volume associated with the resource.
Declaration
public Volume Volume { get; set; }
Property Value
| Type | Description |
|---|---|
| Volume |
WindowsScheduledTask
Information about a Windows scheduled task associated with the resource.
Declaration
public WindowsScheduledTask WindowsScheduledTask { get; set; }
Property Value
| Type | Description |
|---|---|
| WindowsScheduledTask |