#[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: String
The name of the resource referenced in the request.
type: String
The resource type in the format of “{service}/{kind}”.
permission: String
The resource permission needed for this request. The format must be “{service}/{plural}.{verb}”.
container: String
Optional. 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: String
Optional. 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§
Source§impl ResourceInfo
impl ResourceInfo
pub fn new() -> Self
Sourcepub fn set_permission<T: Into<String>>(self, v: T) -> Self
pub fn set_permission<T: Into<String>>(self, v: T) -> Self
Sets the value of permission.
Sourcepub fn set_container<T: Into<String>>(self, v: T) -> Self
pub fn set_container<T: Into<String>>(self, v: T) -> Self
Sets the value of container.
Sourcepub fn set_location<T: Into<String>>(self, v: T) -> Self
pub fn set_location<T: Into<String>>(self, v: T) -> Self
Sets the value of location.
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