Struct google_api_proto::google::cloud::gkeconnect::gateway::v1beta1::GenerateCredentialsRequest
source · pub struct GenerateCredentialsRequest {
pub name: String,
pub force_use_agent: bool,
pub version: String,
pub kubernetes_namespace: String,
pub operating_system: i32,
}
Expand description
A request for connection information for a particular membership.
Fields§
§name: String
Required. The Fleet membership resource.
force_use_agent: bool
Optional. Whether to force the use of Connect Agent-based transport.
This will return a configuration that uses Connect Agent as the underlying transport mechanism for cluster types that would otherwise have used a different transport. Requires that Connect Agent be installed on the cluster. Setting this field to false is equivalent to not setting it.
version: String
Optional. The Connect Gateway version to be used in the resulting configuration.
Leave this field blank to let the server choose the version (recommended).
kubernetes_namespace: String
Optional. The namespace to use in the kubeconfig context.
If this field is specified, the server will set the namespace
field in
kubeconfig context. If not specified, the namespace
field is omitted.
operating_system: i32
Optional. The operating system where the kubeconfig will be used.
Implementations§
source§impl GenerateCredentialsRequest
impl GenerateCredentialsRequest
sourcepub fn operating_system(&self) -> OperatingSystem
pub fn operating_system(&self) -> OperatingSystem
Returns the enum value of operating_system
, or the default if the field is set to an invalid enum value.
sourcepub fn set_operating_system(&mut self, value: OperatingSystem)
pub fn set_operating_system(&mut self, value: OperatingSystem)
Sets operating_system
to the provided enum value.
Trait Implementations§
source§impl Clone for GenerateCredentialsRequest
impl Clone for GenerateCredentialsRequest
source§fn clone(&self) -> GenerateCredentialsRequest
fn clone(&self) -> GenerateCredentialsRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GenerateCredentialsRequest
impl Debug for GenerateCredentialsRequest
source§impl Default for GenerateCredentialsRequest
impl Default for GenerateCredentialsRequest
source§impl Message for GenerateCredentialsRequest
impl Message for GenerateCredentialsRequest
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 GenerateCredentialsRequest
impl PartialEq for GenerateCredentialsRequest
source§fn eq(&self, other: &GenerateCredentialsRequest) -> bool
fn eq(&self, other: &GenerateCredentialsRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GenerateCredentialsRequest
Auto Trait Implementations§
impl Freeze for GenerateCredentialsRequest
impl RefUnwindSafe for GenerateCredentialsRequest
impl Send for GenerateCredentialsRequest
impl Sync for GenerateCredentialsRequest
impl Unpin for GenerateCredentialsRequest
impl UnwindSafe for GenerateCredentialsRequest
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