#[non_exhaustive]pub struct Config {
pub cmek_key_name: String,
pub disable_search: bool,
pub vertex_location: String,
pub encryption_type: EncryptionType,
/* private fields */
}Expand description
Available configurations to provision an ApiHub Instance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.cmek_key_name: StringOptional. The Customer Managed Encryption Key (CMEK) used for data
encryption. The CMEK name should follow the format of
projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+),
where the location must match the instance location.
If the CMEK is not provided, a GMEK will be created for the instance.
disable_search: boolOptional. If true, the search will be disabled for the instance. The default value is false.
vertex_location: StringOptional. The name of the Vertex AI location where the data store is stored.
encryption_type: EncryptionTypeOptional. Encryption type for the region. If the encryption type is CMEK, the cmek_key_name must be provided. If no encryption type is provided, GMEK will be used.
Implementations§
Source§impl Config
impl Config
pub fn new() -> Self
Sourcepub fn set_cmek_key_name<T: Into<String>>(self, v: T) -> Self
pub fn set_cmek_key_name<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_disable_search<T: Into<bool>>(self, v: T) -> Self
pub fn set_disable_search<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_vertex_location<T: Into<String>>(self, v: T) -> Self
pub fn set_vertex_location<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_encryption_type<T: Into<EncryptionType>>(self, v: T) -> Self
pub fn set_encryption_type<T: Into<EncryptionType>>(self, v: T) -> Self
Sets the value of encryption_type.
§Example
ⓘ
use google_cloud_apihub_v1::model::api_hub_instance::config::EncryptionType;
let x0 = Config::new().set_encryption_type(EncryptionType::Gmek);
let x1 = Config::new().set_encryption_type(EncryptionType::Cmek);Trait Implementations§
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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
Mutably borrows from an owned value. Read more