Class Asset
An asset in Google Cloud. An asset can be any resource in the Google Cloud resource hierarchy, a resource outside the Google Cloud resource hierarchy (such as Google Kubernetes Engine clusters and objects), or a policy (e.g. IAM policy), or a relationship (e.g. an INSTANCE_TO_INSTANCEGROUP relationship). See Supported asset types for more information.
Implements
Inherited Members
Namespace: Google.Apis.CloudAsset.v1.Data
Assembly: Google.Apis.CloudAsset.v1.dll
Syntax
public class Asset : IDirectResponseSchema
Properties
AccessLevel
Also refer to the access level user guide.
Declaration
[JsonProperty("accessLevel")]
public virtual GoogleIdentityAccesscontextmanagerV1AccessLevel AccessLevel { get; set; }
Property Value
Type | Description |
---|---|
GoogleIdentityAccesscontextmanagerV1AccessLevel |
AccessPolicy
Also refer to the access policy user guide.
Declaration
[JsonProperty("accessPolicy")]
public virtual GoogleIdentityAccesscontextmanagerV1AccessPolicy AccessPolicy { get; set; }
Property Value
Type | Description |
---|---|
GoogleIdentityAccesscontextmanagerV1AccessPolicy |
Ancestors
The ancestry path of an asset in Google Cloud resource
hierarchy, represented as
a list of relative resource names. An ancestry path starts with the closest ancestor in the hierarchy and
ends at root. If the asset is a project, folder, or organization, the ancestry path starts from the asset
itself. Example: ["projects/123456789", "folders/5432", "organizations/1234"]
Declaration
[JsonProperty("ancestors")]
public virtual IList<string> Ancestors { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
AssetType
The type of the asset. Example: compute.googleapis.com/Disk
See Supported asset
types for more information.
Declaration
[JsonProperty("assetType")]
public virtual string AssetType { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
IamPolicy
A representation of the IAM policy set on a Google Cloud resource. There can be a maximum of one IAM policy set on any given resource. In addition, IAM policies inherit their granted access scope from any policies set on parent resources in the resource hierarchy. Therefore, the effectively policy is the union of both the policy set on this resource and each policy set on all of the resource's ancestry resource levels in the hierarchy. See this topic for more information.
Declaration
[JsonProperty("iamPolicy")]
public virtual Policy IamPolicy { get; set; }
Property Value
Type | Description |
---|---|
Policy |
Name
The full name of the asset. Example:
//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
See Resource
names for more information.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
OrgPolicy
A representation of an organization policy. There can be more than one organization policy with different constraints set on a given resource.
Declaration
[JsonProperty("orgPolicy")]
public virtual IList<GoogleCloudOrgpolicyV1Policy> OrgPolicy { get; set; }
Property Value
Type | Description |
---|---|
IList<GoogleCloudOrgpolicyV1Policy> |
OsInventory
A representation of runtime OS Inventory information. See this topic for more information.
Declaration
[JsonProperty("osInventory")]
public virtual Inventory OsInventory { get; set; }
Property Value
Type | Description |
---|---|
Inventory |
RelatedAsset
One related asset of the current asset.
Declaration
[JsonProperty("relatedAsset")]
public virtual RelatedAsset RelatedAsset { get; set; }
Property Value
Type | Description |
---|---|
RelatedAsset |
RelatedAssets
DEPRECATED. This field only presents for the purpose of backward-compatibility. The server will never generate responses with this field. The related assets of the asset of one relationship type. One asset only represents one type of relationship.
Declaration
[JsonProperty("relatedAssets")]
public virtual RelatedAssets RelatedAssets { get; set; }
Property Value
Type | Description |
---|---|
RelatedAssets |
Resource
A representation of the resource.
Declaration
[JsonProperty("resource")]
public virtual Resource Resource { get; set; }
Property Value
Type | Description |
---|---|
Resource |
ServicePerimeter
Also refer to the service perimeter user guide.
Declaration
[JsonProperty("servicePerimeter")]
public virtual GoogleIdentityAccesscontextmanagerV1ServicePerimeter ServicePerimeter { get; set; }
Property Value
Type | Description |
---|---|
GoogleIdentityAccesscontextmanagerV1ServicePerimeter |
UpdateTime
object representation of UpdateTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime { get; set; }
Property Value
Type | Description |
---|---|
object |
UpdateTimeDateTimeOffset
DateTimeOffset representation of UpdateTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? UpdateTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
UpdateTimeRaw
The last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.
Declaration
[JsonProperty("updateTime")]
public virtual string UpdateTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |