public sealed class Asset : IMessage<Asset>, IEquatable<Asset>, IDeepCloneable<Asset>, IBufferMessage, IMessage
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. Cloud IAM policy), or a relationship (e.g. an INSTANCE_TO_INSTANCEGROUP relationship). See Supported asset types for more information.
Namespace
Google.Cloud.Asset.V1Assembly
Google.Cloud.Asset.V1.dll
Constructors
Asset()
public Asset()
Asset(Asset)
public Asset(Asset other)
Parameter | |
---|---|
Name | Description |
other | Asset |
Properties
AccessContextPolicyCase
public Asset.AccessContextPolicyOneofCase AccessContextPolicyCase { get; }
Property Value | |
---|---|
Type | Description |
Asset.AccessContextPolicyOneofCase |
AccessLevel
public AccessLevel AccessLevel { get; set; }
Please also refer to the access level user guide.
Property Value | |
---|---|
Type | Description |
AccessLevel |
AccessPolicy
public AccessPolicy AccessPolicy { get; set; }
Please also refer to the access policy user guide.
Property Value | |
---|---|
Type | Description |
AccessPolicy |
Ancestors
public RepeatedField<string> Ancestors { get; }
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"]
Property Value | |
---|---|
Type | Description |
RepeatedField<String> |
AssetType
public string AssetType { get; set; }
The type of the asset. Example: compute.googleapis.com/Disk
See Supported asset types for more information.
Property Value | |
---|---|
Type | Description |
String |
IamPolicy
public Policy IamPolicy { get; set; }
A representation of the Cloud IAM policy set on a Google Cloud resource. There can be a maximum of one Cloud IAM policy set on any given resource. In addition, Cloud 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.
Property Value | |
---|---|
Type | Description |
Policy |
Name
public string Name { get; set; }
The full name of the asset. Example:
//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
See Resource names for more information.
Property Value | |
---|---|
Type | Description |
String |
OrgPolicy
public RepeatedField<Policy> OrgPolicy { get; }
A representation of an organization policy. There can be more than one organization policy with different constraints set on a given resource.
Property Value | |
---|---|
Type | Description |
RepeatedField<Policy> |
OsInventory
public Inventory OsInventory { get; set; }
A representation of runtime OS Inventory information. See this topic for more information.
Property Value | |
---|---|
Type | Description |
Inventory |
RelatedAsset
public RelatedAsset RelatedAsset { get; set; }
One related asset of the current asset.
Property Value | |
---|---|
Type | Description |
RelatedAsset |
RelatedAssets
[Obsolete]
public RelatedAssets RelatedAssets { get; set; }
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.
Property Value | |
---|---|
Type | Description |
RelatedAssets |
Resource
public Resource Resource { get; set; }
A representation of the resource.
Property Value | |
---|---|
Type | Description |
Resource |
ResourceName
public IResourceName ResourceName { get; set; }
IResourceName-typed view over the Name resource name property.
Property Value | |
---|---|
Type | Description |
IResourceName |
ServicePerimeter
public ServicePerimeter ServicePerimeter { get; set; }
Please also refer to the service perimeter user guide.
Property Value | |
---|---|
Type | Description |
ServicePerimeter |
UpdateTime
public Timestamp UpdateTime { get; set; }
The last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.
Property Value | |
---|---|
Type | Description |
Timestamp |