Struct google_api_proto::google::cloud::apihub::v1::Dependency
source · pub struct Dependency {
pub name: String,
pub consumer: Option<DependencyEntityReference>,
pub supplier: Option<DependencyEntityReference>,
pub state: i32,
pub description: String,
pub discovery_mode: i32,
pub error_detail: Option<DependencyErrorDetail>,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub attributes: BTreeMap<String, AttributeValues>,
}
Expand description
A dependency resource defined in the API hub describes a dependency directed from a consumer to a supplier entity. A dependency can be defined between two [Operations][google.cloud.apihub.v1.Operation] or between an [Operation][google.cloud.apihub.v1.Operation] and [External API][google.cloud.apihub.v1.ExternalApi].
Fields§
§name: String
Identifier. The name of the dependency in the API Hub.
Format: projects/{project}/locations/{location}/dependencies/{dependency}
consumer: Option<DependencyEntityReference>
Required. Immutable. The entity acting as the consumer in the dependency.
supplier: Option<DependencyEntityReference>
Required. Immutable. The entity acting as the supplier in the dependency.
state: i32
Output only. State of the dependency.
description: String
Optional. Human readable description corresponding of the dependency.
discovery_mode: i32
Output only. Discovery mode of the dependency.
error_detail: Option<DependencyErrorDetail>
Output only. Error details of a dependency if the system has detected it internally.
create_time: Option<Timestamp>
Output only. The time at which the dependency was created.
update_time: Option<Timestamp>
Output only. The time at which the dependency was last updated.
attributes: BTreeMap<String, AttributeValues>
Optional. The list of user defined attributes associated with the
dependency resource. The key is the attribute name. It will be of the
format: projects/{project}/locations/{location}/attributes/{attribute}
.
The value is the attribute values associated with the resource.
Implementations§
source§impl Dependency
impl Dependency
sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn discovery_mode(&self) -> DiscoveryMode
pub fn discovery_mode(&self) -> DiscoveryMode
Returns the enum value of discovery_mode
, or the default if the field is set to an invalid enum value.
sourcepub fn set_discovery_mode(&mut self, value: DiscoveryMode)
pub fn set_discovery_mode(&mut self, value: DiscoveryMode)
Sets discovery_mode
to the provided enum value.
Trait Implementations§
source§impl Clone for Dependency
impl Clone for Dependency
source§fn clone(&self) -> Dependency
fn clone(&self) -> Dependency
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Dependency
impl Debug for Dependency
source§impl Default for Dependency
impl Default for Dependency
source§impl Message for Dependency
impl Message for Dependency
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 Dependency
impl PartialEq for Dependency
source§fn eq(&self, other: &Dependency) -> bool
fn eq(&self, other: &Dependency) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Dependency
Auto Trait Implementations§
impl Freeze for Dependency
impl RefUnwindSafe for Dependency
impl Send for Dependency
impl Sync for Dependency
impl Unpin for Dependency
impl UnwindSafe for Dependency
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