Struct google_api_proto::google::appengine::v1beta::EndpointsApiService
source · pub struct EndpointsApiService {
pub name: String,
pub config_id: String,
pub rollout_strategy: i32,
pub disable_trace_sampling: bool,
}
Expand description
Cloud Endpoints configuration. The Endpoints API Service provides tooling for serving Open API and gRPC endpoints via an NGINX proxy. Only valid for App Engine Flexible environment deployments.
The fields here refer to the name and configuration ID of a “service” resource in the Service Management API.
Fields§
§name: String
Endpoints service name which is the name of the “service” resource in the Service Management API. For example “myapi.endpoints.myproject.cloud.goog”
config_id: String
Endpoints service configuration ID as specified by the Service Management API. For example “2016-09-19r1”.
By default, the rollout strategy for Endpoints is RolloutStrategy.FIXED
.
This means that Endpoints starts up with a particular configuration ID.
When a new configuration is rolled out, Endpoints must be given the new
configuration ID. The config_id
field is used to give the configuration
ID and is required in this case.
Endpoints also has a rollout strategy called RolloutStrategy.MANAGED
.
When using this, Endpoints fetches the latest configuration and does not
need the configuration ID. In this case, config_id
must be omitted.
rollout_strategy: i32
Endpoints rollout strategy. If FIXED
, config_id
must be specified. If
MANAGED
, config_id
must be omitted.
disable_trace_sampling: bool
Enable or disable trace sampling. By default, this is set to false for enabled.
Implementations§
source§impl EndpointsApiService
impl EndpointsApiService
sourcepub fn rollout_strategy(&self) -> RolloutStrategy
pub fn rollout_strategy(&self) -> RolloutStrategy
Returns the enum value of rollout_strategy
, or the default if the field is set to an invalid enum value.
sourcepub fn set_rollout_strategy(&mut self, value: RolloutStrategy)
pub fn set_rollout_strategy(&mut self, value: RolloutStrategy)
Sets rollout_strategy
to the provided enum value.
Trait Implementations§
source§impl Clone for EndpointsApiService
impl Clone for EndpointsApiService
source§fn clone(&self) -> EndpointsApiService
fn clone(&self) -> EndpointsApiService
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EndpointsApiService
impl Debug for EndpointsApiService
source§impl Default for EndpointsApiService
impl Default for EndpointsApiService
source§impl Message for EndpointsApiService
impl Message for EndpointsApiService
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 EndpointsApiService
impl PartialEq for EndpointsApiService
source§fn eq(&self, other: &EndpointsApiService) -> bool
fn eq(&self, other: &EndpointsApiService) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EndpointsApiService
Auto Trait Implementations§
impl Freeze for EndpointsApiService
impl RefUnwindSafe for EndpointsApiService
impl Send for EndpointsApiService
impl Sync for EndpointsApiService
impl Unpin for EndpointsApiService
impl UnwindSafe for EndpointsApiService
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