#[non_exhaustive]pub enum KeyProjectResolutionMode {
Unspecified,
DedicatedKeyProject,
ResourceProject,
Disabled,
UnknownValue(UnknownValue),
}Expand description
Defines the resolution mode enum for the key project. The KeyProjectResolutionMode determines the mechanism by which AutokeyConfig identifies a key_project at its specific configuration node. This parameter also determines if Autokey can be used within this project or folder.
§Working with unknown values
This enum is defined as #[non_exhaustive] because Google Cloud may add
additional enum variants at any time. Adding new variants is not considered
a breaking change. Applications should write their code in anticipation of:
- New values appearing in future releases of the client library, and
- New values received dynamically, without application changes.
Please consult the Working with enums section in the user guide for some guidelines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unspecified
Default value. KeyProjectResolutionMode when not specified will act as
DEDICATED_KEY_PROJECT.
DedicatedKeyProject
Keys are created in a dedicated project specified by key_project.
ResourceProject
Keys are created in the same project as the resource requesting the key.
The key_project must not be set when this mode is used.
Disabled
Disables the AutokeyConfig. When this mode is set, any AutokeyConfig from higher levels in the resource hierarchy are ignored for this resource and its descendants. This setting can be overridden by a more specific configuration at a lower level. For example, if Autokey is disabled on a folder, it can be re-enabled on a sub-folder or project within that folder by setting a different mode (e.g., DEDICATED_KEY_PROJECT or RESOURCE_PROJECT).
UnknownValue(UnknownValue)
If set, the enum was initialized with an unknown value.
Applications can examine the value using KeyProjectResolutionMode::value or KeyProjectResolutionMode::name.
Implementations§
Trait Implementations§
Source§impl Clone for KeyProjectResolutionMode
impl Clone for KeyProjectResolutionMode
Source§fn clone(&self) -> KeyProjectResolutionMode
fn clone(&self) -> KeyProjectResolutionMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for KeyProjectResolutionMode
impl Debug for KeyProjectResolutionMode
Source§impl Default for KeyProjectResolutionMode
impl Default for KeyProjectResolutionMode
Source§impl<'de> Deserialize<'de> for KeyProjectResolutionMode
impl<'de> Deserialize<'de> for KeyProjectResolutionMode
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 Display for KeyProjectResolutionMode
impl Display for KeyProjectResolutionMode
Source§impl From<&str> for KeyProjectResolutionMode
impl From<&str> for KeyProjectResolutionMode
Source§impl From<i32> for KeyProjectResolutionMode
impl From<i32> for KeyProjectResolutionMode
Source§impl PartialEq for KeyProjectResolutionMode
impl PartialEq for KeyProjectResolutionMode
Source§impl Serialize for KeyProjectResolutionMode
impl Serialize for KeyProjectResolutionMode
impl StructuralPartialEq for KeyProjectResolutionMode
Auto Trait Implementations§
impl Freeze for KeyProjectResolutionMode
impl RefUnwindSafe for KeyProjectResolutionMode
impl Send for KeyProjectResolutionMode
impl Sync for KeyProjectResolutionMode
impl Unpin for KeyProjectResolutionMode
impl UnsafeUnpin for KeyProjectResolutionMode
impl UnwindSafe for KeyProjectResolutionMode
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.