#[non_exhaustive]pub struct ResourceInfo {
pub name: String,
pub type: String,
pub permission: String,
pub container: String,
pub location: String,
/* private fields */
}Expand description
Describes a resource referenced in the request.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe name of the resource referenced in the request.
type: StringThe resource type in the format of “{service}/{kind}”.
permission: StringThe resource permission needed for this request. The format must be “{service}/{plural}.{verb}”.
container: StringOptional. The identifier of the container of this resource. For Google Cloud APIs, the resource container must be one of the following formats:
-
projects/<project-id or project-number> -
folders/<folder-number> -
organizations/<organization-number>
Required for the policy enforcement on the container level (e.g. VPCSC, Location Policy check, Org Policy check).
location: StringOptional. The location of the resource, it must be a valid zone, region or multiregion, for example: “europe-west4”, “northamerica-northeast1-a”. Required for location policy check.
Implementations§
Trait Implementations§
Source§impl Clone for ResourceInfo
impl Clone for ResourceInfo
Source§fn clone(&self) -> ResourceInfo
fn clone(&self) -> ResourceInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more