[][src]Struct gcp_client::google::cloud::resourcemanager::v2::Folder

pub struct Folder {
    pub name: String,
    pub parent: String,
    pub display_name: String,
    pub lifecycle_state: i32,
    pub create_time: Option<Timestamp>,
    pub update_time: Option<Timestamp>,
}

A Folder in an Organization's resource hierarchy, used to organize that Organization's resources.

Fields

name: String

Output only. The resource name of the Folder. Its format is folders/{folder_id}, for example: "folders/1234".

parent: String

Required. The Folder’s parent's resource name. Updates to the folder's parent must be performed via [MoveFolder][google.cloud.resourcemanager.v2.Folders.MoveFolder].

display_name: String

The folder’s display name. A folder’s display name must be unique amongst its siblings, e.g. no two folders with the same parent can share the same display name. The display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens and underscores and can be no longer than 30 characters. This is captured by the regular expression: [\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?.

lifecycle_state: i32

Output only. The lifecycle state of the folder. Updates to the lifecycle_state must be performed via [DeleteFolder][google.cloud.resourcemanager.v2.Folders.DeleteFolder] and [UndeleteFolder][google.cloud.resourcemanager.v2.Folders.UndeleteFolder].

create_time: Option<Timestamp>

Output only. Timestamp when the Folder was created. Assigned by the server.

update_time: Option<Timestamp>

Output only. Timestamp when the Folder was last modified.

Implementations

impl Folder[src]

pub fn lifecycle_state(&self) -> LifecycleState[src]

Returns the enum value of lifecycle_state, or the default if the field is set to an invalid enum value.

pub fn set_lifecycle_state(&mut self, value: LifecycleState)[src]

Sets lifecycle_state to the provided enum value.

Trait Implementations

impl Clone for Folder[src]

impl Debug for Folder[src]

impl Default for Folder[src]

impl Message for Folder[src]

impl PartialEq<Folder> for Folder[src]

impl StructuralPartialEq for Folder[src]

Auto Trait Implementations

impl RefUnwindSafe for Folder

impl Send for Folder

impl Sync for Folder

impl Unpin for Folder

impl UnwindSafe for Folder

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]