pub struct ServiceProjectAttachment {
pub name: String,
pub service_project: String,
pub create_time: Option<Timestamp>,
pub uid: String,
pub state: i32,
}
Expand description
ServiceProjectAttachment represents an attachment from a service project to a host project. Service projects contain the underlying cloud infrastructure resources, and expose these resources to the host project through a ServiceProjectAttachment. With the attachments, the host project can provide an aggregated view of resources across all service projects.
Fields§
§name: String
Identifier. The resource name of a ServiceProjectAttachment. Format: “projects/{host-project-id}/locations/global/serviceProjectAttachments/{service-project-id}.”
service_project: String
Required. Immutable. Service project name in the format: “projects/abc” or “projects/123”. As input, project name with either project id or number are accepted. As output, this field will contain project number.
create_time: Option<Timestamp>
Output only. Create time.
uid: String
Output only. A globally unique identifier (in UUID4 format) for the
ServiceProjectAttachment
.
state: i32
Output only. ServiceProjectAttachment state.
Implementations§
Trait Implementations§
Source§impl Clone for ServiceProjectAttachment
impl Clone for ServiceProjectAttachment
Source§fn clone(&self) -> ServiceProjectAttachment
fn clone(&self) -> ServiceProjectAttachment
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ServiceProjectAttachment
impl Debug for ServiceProjectAttachment
Source§impl Default for ServiceProjectAttachment
impl Default for ServiceProjectAttachment
Source§impl Message for ServiceProjectAttachment
impl Message for ServiceProjectAttachment
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 ServiceProjectAttachment
impl PartialEq for ServiceProjectAttachment
impl StructuralPartialEq for ServiceProjectAttachment
Auto Trait Implementations§
impl Freeze for ServiceProjectAttachment
impl RefUnwindSafe for ServiceProjectAttachment
impl Send for ServiceProjectAttachment
impl Sync for ServiceProjectAttachment
impl Unpin for ServiceProjectAttachment
impl UnwindSafe for ServiceProjectAttachment
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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