Struct google_api_proto::google::cloud::apihub::v1::ApiOperation
source · pub struct ApiOperation {
pub name: String,
pub spec: String,
pub details: Option<OperationDetails>,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub attributes: BTreeMap<String, AttributeValues>,
}
Expand description
Represents an operation contained in an API version in the API Hub. An operation is added/updated/deleted in an API version when a new spec is added or an existing spec is updated/deleted in a version. Currently, an operation will be created only corresponding to OpenAPI spec as parsing is supported for OpenAPI spec.
Fields§
§name: String
Identifier. The name of the operation.
Format:
projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}
spec: String
Output only. The name of the spec from where the operation was parsed.
Format is
projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}
details: Option<OperationDetails>
Output only. Operation details.
create_time: Option<Timestamp>
Output only. The time at which the operation was created.
update_time: Option<Timestamp>
Output only. The time at which the operation was last updated.
attributes: BTreeMap<String, AttributeValues>
Optional. The list of user defined attributes associated with the API
operation 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.
Trait Implementations§
source§impl Clone for ApiOperation
impl Clone for ApiOperation
source§fn clone(&self) -> ApiOperation
fn clone(&self) -> ApiOperation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ApiOperation
impl Debug for ApiOperation
source§impl Default for ApiOperation
impl Default for ApiOperation
source§impl Message for ApiOperation
impl Message for ApiOperation
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 ApiOperation
impl PartialEq for ApiOperation
source§fn eq(&self, other: &ApiOperation) -> bool
fn eq(&self, other: &ApiOperation) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ApiOperation
Auto Trait Implementations§
impl Freeze for ApiOperation
impl RefUnwindSafe for ApiOperation
impl Send for ApiOperation
impl Sync for ApiOperation
impl Unpin for ApiOperation
impl UnwindSafe for ApiOperation
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