pub struct AdminRotateIssuedApiKeyBody {
pub ip_restriction: Option<Box<IpRestriction>>,
pub metadata: Option<Value>,
pub name: Option<String>,
pub rate_limit_policy: Option<Box<RateLimitPolicy>>,
pub scopes: Option<Vec<String>>,
pub visibility: Option<KeyVisibility>,
}Expand description
AdminRotateIssuedApiKeyBody : RotateIssuedAPIKeyRequest is the request for AdminRotateIssuedAPIKey. Rotation is a custom method (AIP-136) that swaps an active key for a new one with a fresh secret and key_id, then revokes the old key. It is not a partial update, so it does not carry an update_mask. Mutable fields use presence-based semantics: an absent field inherits from the old key, while a present field (including an explicitly empty value) overrides.
Fields§
§ip_restriction: Option<Box<IpRestriction>>§metadata: Option<Value>metadata for the new API key. Absent (nil) inherits from the old key; present (including empty Struct) overrides.
name: Option<String>name for the new API key. Absent (HasName() == false) inherits from the old key; present (including empty string) overrides.
rate_limit_policy: Option<Box<RateLimitPolicy>>§scopes: Option<Vec<String>>scopes for the new API key. Absent (nil slice) inherits from the old key; present (including empty list) overrides.
visibility: Option<KeyVisibility>Implementations§
Source§impl AdminRotateIssuedApiKeyBody
impl AdminRotateIssuedApiKeyBody
Sourcepub fn new() -> AdminRotateIssuedApiKeyBody
pub fn new() -> AdminRotateIssuedApiKeyBody
RotateIssuedAPIKeyRequest is the request for AdminRotateIssuedAPIKey. Rotation is a custom method (AIP-136) that swaps an active key for a new one with a fresh secret and key_id, then revokes the old key. It is not a partial update, so it does not carry an update_mask. Mutable fields use presence-based semantics: an absent field inherits from the old key, while a present field (including an explicitly empty value) overrides.
Trait Implementations§
Source§impl Clone for AdminRotateIssuedApiKeyBody
impl Clone for AdminRotateIssuedApiKeyBody
Source§fn clone(&self) -> AdminRotateIssuedApiKeyBody
fn clone(&self) -> AdminRotateIssuedApiKeyBody
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AdminRotateIssuedApiKeyBody
impl Debug for AdminRotateIssuedApiKeyBody
Source§impl Default for AdminRotateIssuedApiKeyBody
impl Default for AdminRotateIssuedApiKeyBody
Source§fn default() -> AdminRotateIssuedApiKeyBody
fn default() -> AdminRotateIssuedApiKeyBody
Source§impl<'de> Deserialize<'de> for AdminRotateIssuedApiKeyBody
impl<'de> Deserialize<'de> for AdminRotateIssuedApiKeyBody
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for AdminRotateIssuedApiKeyBody
impl PartialEq for AdminRotateIssuedApiKeyBody
Source§fn eq(&self, other: &AdminRotateIssuedApiKeyBody) -> bool
fn eq(&self, other: &AdminRotateIssuedApiKeyBody) -> bool
self and other values to be equal, and is used by ==.