Struct google_api_proto::google::cloud::resourcemanager::v2::Folder
source · 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>,
}
Expand description
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§
source§impl Folder
impl Folder
sourcepub fn lifecycle_state(&self) -> LifecycleState
pub fn lifecycle_state(&self) -> LifecycleState
Returns the enum value of lifecycle_state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_lifecycle_state(&mut self, value: LifecycleState)
pub fn set_lifecycle_state(&mut self, value: LifecycleState)
Sets lifecycle_state
to the provided enum value.
Trait Implementations§
source§impl Message for Folder
impl Message for Folder
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Folder
impl PartialEq for Folder
impl StructuralPartialEq for Folder
Auto Trait Implementations§
impl Freeze for Folder
impl RefUnwindSafe for Folder
impl Send for Folder
impl Sync for Folder
impl Unpin for Folder
impl UnwindSafe for Folder
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request