Struct googapis::google::cloud::asset::v1::Asset [−][src]
pub struct Asset {
pub update_time: Option<Timestamp>,
pub name: String,
pub asset_type: String,
pub resource: Option<Resource>,
pub iam_policy: Option<Policy>,
pub org_policy: Vec<Policy>,
pub os_inventory: Option<Inventory>,
pub related_assets: Option<RelatedAssets>,
pub ancestors: Vec<String>,
pub access_context_policy: Option<AccessContextPolicy>,
}
Expand description
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.
Fields
update_time: Option<Timestamp>
The last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.
name: String
The full name of the asset. Example:
//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
See Resource names for more information.
asset_type: String
The type of the asset. Example: compute.googleapis.com/Disk
See Supported asset types for more information.
resource: Option<Resource>
A representation of the resource.
iam_policy: Option<Policy>
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.
org_policy: Vec<Policy>
A representation of an organization policy. There can be more than one organization policy with different constraints set on a given resource.
os_inventory: Option<Inventory>
A representation of runtime OS Inventory information. See this topic for more information.
The related assets of the asset of one relationship type. One asset only represents one type of relationship.
ancestors: Vec<String>
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"]
access_context_policy: Option<AccessContextPolicy>
A representation of an access policy.
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
Auto Trait Implementations
impl RefUnwindSafe for Asset
impl UnwindSafe for Asset
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more