pub struct Version {Show 15 fields
pub name: String,
pub display_name: String,
pub description: String,
pub documentation: Option<Documentation>,
pub specs: Vec<String>,
pub api_operations: Vec<String>,
pub definitions: Vec<String>,
pub deployments: Vec<String>,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub lifecycle: Option<AttributeValues>,
pub compliance: Option<AttributeValues>,
pub accreditation: Option<AttributeValues>,
pub attributes: HashMap<String, AttributeValues>,
pub selected_deployment: String,
}
Expand description
Represents a version of the API resource in API hub. This is also referred to as the API version.
Fields§
§name: String
Identifier. The name of the version.
Format:
projects/{project}/locations/{location}/apis/{api}/versions/{version}
display_name: String
Required. The display name of the version.
description: String
Optional. The description of the version.
documentation: Option<Documentation>
Optional. The documentation of the version.
specs: Vec<String>
Output only. The specs associated with this version.
Note that an API version can be associated with multiple specs.
Format is
projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}
api_operations: Vec<String>
Output only. The operations contained in the API version.
These operations will be added to the version when a new spec is
added or when an existing spec is updated. Format is
projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}
definitions: Vec<String>
Output only. The definitions contained in the API version.
These definitions will be added to the version when a new spec is
added or when an existing spec is updated. Format is
projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}
deployments: Vec<String>
Optional. The deployments linked to this API version.
Note: A particular API version could be deployed to multiple deployments
(for dev deployment, UAT deployment, etc)
Format is
projects/{project}/locations/{location}/deployments/{deployment}
create_time: Option<Timestamp>
Output only. The time at which the version was created.
update_time: Option<Timestamp>
Output only. The time at which the version was last updated.
lifecycle: Option<AttributeValues>
Optional. The lifecycle of the API version.
This maps to the following system defined attribute:
projects/{project}/locations/{location}/attributes/system-lifecycle
attribute.
The number of values for this attribute will be based on the
cardinality of the attribute. The same can be retrieved via GetAttribute
API. All values should be from the list of allowed values defined for the
attribute.
compliance: Option<AttributeValues>
Optional. The compliance associated with the API version.
This maps to the following system defined attribute:
projects/{project}/locations/{location}/attributes/system-compliance
attribute.
The number of values for this attribute will be based on the
cardinality of the attribute. The same can be retrieved via GetAttribute
API. All values should be from the list of allowed values defined for the
attribute.
accreditation: Option<AttributeValues>
Optional. The accreditations associated with the API version.
This maps to the following system defined attribute:
projects/{project}/locations/{location}/attributes/system-accreditation
attribute.
The number of values for this attribute will be based on the
cardinality of the attribute. The same can be retrieved via GetAttribute
API. All values should be from the list of allowed values defined for the
attribute.
attributes: HashMap<String, AttributeValues>
Optional. The list of user defined attributes associated with the Version
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.
selected_deployment: String
Optional. The selected deployment for a Version resource.
This can be used when special handling is needed on client side for a
particular deployment linked to the version.
Format is
projects/{project}/locations/{location}/deployments/{deployment}
Trait Implementations§
Source§impl Message for Version
impl Message for Version
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
.impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
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