Struct google_cloudresourcemanager1::Project
source · pub struct Project {
pub name: Option<String>,
pub parent: Option<ResourceId>,
pub project_id: Option<String>,
pub labels: Option<HashMap<String, String>>,
pub create_time: Option<String>,
pub project_number: Option<String>,
pub lifecycle_state: Option<String>,
}Expand description
A Project is a high-level Google Cloud Platform entity. It is a container for ACLs, APIs, App Engine Apps, VMs, and other Google Cloud Platform resources.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- test iam permissions projects (none)
- undelete projects (none)
- list org policies projects (none)
- get effective org policy projects (none)
- get projects (response)
- get ancestry projects (none)
- update projects (request|response)
- get iam policy projects (none)
- delete projects (none)
- list projects (none)
- create projects (request)
- set iam policy projects (none)
- get org policy projects (none)
- set org policy projects (none)
- list available org policy constraints projects (none)
- clear org policy projects (none)
Fields§
§name: Option<String>The user-assigned display name of the Project. It must be 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point.
Example: My Project
Read-write.
parent: Option<ResourceId>An optional reference to a parent Resource.
The only supported parent type is “organization”. Once set, the parent
cannot be modified. The parent can be set on creation or using the
UpdateProject method; the end user must have the
resourcemanager.projects.create permission on the parent.
Read-write.
project_id: Option<String>The unique, user-assigned ID of the Project. It must be 6 to 30 lowercase letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited.
Example: tokyo-rain-123
Read-only after creation.
labels: Option<HashMap<String, String>>The labels associated with this Project.
Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])?.
Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?.
No more than 256 labels can be associated with a given resource.
Clients should store labels in a representation such as JSON that does not depend on specific characters being disallowed.
Example: “environment” : “dev”
Read-write.
create_time: Option<String>Creation time.
Read-only.
project_number: Option<String>The number uniquely identifying the project.
Example: 415104041262
Read-only.
lifecycle_state: Option<String>The Project lifecycle state.
Read-only.
Trait Implementations§
source§impl Deserialize for Project
impl Deserialize for Project
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer,
impl RequestValue for Project
impl Resource for Project
impl ResponseResult for Project
Auto Trait Implementations§
impl Freeze for Project
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnwindSafe for Project
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more