Struct google_cloudasset1_beta1::api::Asset
source · [−]pub struct Asset {
pub access_level: Option<GoogleIdentityAccesscontextmanagerV1AccessLevel>,
pub access_policy: Option<GoogleIdentityAccesscontextmanagerV1AccessPolicy>,
pub asset_type: Option<String>,
pub iam_policy: Option<Policy>,
pub name: Option<String>,
pub org_policy: Option<Vec<GoogleCloudOrgpolicyV1Policy>>,
pub resource: Option<Resource>,
pub service_perimeter: Option<GoogleIdentityAccesscontextmanagerV1ServicePerimeter>,
}
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). See Supported asset types for more information.
This type is not used in any activity, and only used as part of another schema.
Fields
access_level: Option<GoogleIdentityAccesscontextmanagerV1AccessLevel>
Please also refer to the access level user guide.
access_policy: Option<GoogleIdentityAccesscontextmanagerV1AccessPolicy>
Please also refer to the access policy user guide.
asset_type: Option<String>
The type of the asset. Example: compute.googleapis.com/Disk
See Supported asset types for more information.
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.
name: Option<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.
org_policy: Option<Vec<GoogleCloudOrgpolicyV1Policy>>
A representation of an organization policy. There can be more than one organization policy with different constraints set on a given resource.
resource: Option<Resource>
A representation of the resource.
service_perimeter: Option<GoogleIdentityAccesscontextmanagerV1ServicePerimeter>
Please also refer to the service perimeter user guide.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Asset
impl<'de> Deserialize<'de> for Asset
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Part for Asset
Auto Trait Implementations
impl RefUnwindSafe for Asset
impl Send for Asset
impl Sync for Asset
impl Unpin for Asset
impl UnwindSafe for Asset
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more