Struct gapi_grpc::google::cloud::resourcemanager::v3::Folder[][src]

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

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 using [MoveFolder][google.cloud.resourcemanager.v3.Folders.MoveFolder].

display_name: String

The folder’s display name. A folder’s display name must be unique amongst its siblings. For example, 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}])?.

state: i32

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

create_time: Option<Timestamp>

Output only. Timestamp when the folder was created.

update_time: Option<Timestamp>

Output only. Timestamp when the folder was last modified.

delete_time: Option<Timestamp>

Output only. Timestamp when the folder was requested to be deleted.

etag: String

Output only. A checksum computed by the server based on the current value of the folder resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

Implementations

impl Folder[src]

pub fn state(&self) -> State[src]

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

pub fn set_state(&mut self, value: State)[src]

Sets 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> 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>, 
[src]

impl<T> WithSubscriber for T[src]