#[non_exhaustive]pub struct CreateInstanceConfigRequest {
pub parent: String,
pub instance_config_id: String,
pub instance_config: Option<InstanceConfig>,
pub validate_only: bool,
/* private fields */
}
Expand description
The request for CreateInstanceConfig.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.parent: String
Required. The name of the project in which to create the instance
configuration. Values are of the form projects/<project>
.
instance_config_id: String
Required. The ID of the instance configuration to create. Valid identifiers
are of the form custom-[-a-z0-9]*[a-z0-9]
and must be between 2 and 64
characters in length. The custom-
prefix is required to avoid name
conflicts with Google-managed configurations.
instance_config: Option<InstanceConfig>
Required. The InstanceConfig
proto of the configuration to create.
instance_config.name
must be
<parent>/instanceConfigs/<instance_config_id>
.
instance_config.base_config
must be a Google-managed configuration name,
e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3.
validate_only: bool
An option to validate, but not actually execute, a request, and provide the same response.
Implementations§
Source§impl CreateInstanceConfigRequest
impl CreateInstanceConfigRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_instance_config_id<T: Into<String>>(self, v: T) -> Self
pub fn set_instance_config_id<T: Into<String>>(self, v: T) -> Self
Sets the value of instance_config_id.
Sourcepub fn set_instance_config<T>(self, v: T) -> Selfwhere
T: Into<InstanceConfig>,
pub fn set_instance_config<T>(self, v: T) -> Selfwhere
T: Into<InstanceConfig>,
Sets the value of instance_config.
Sourcepub fn set_or_clear_instance_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceConfig>,
pub fn set_or_clear_instance_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceConfig>,
Sets or clears the value of instance_config.
Sourcepub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
pub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
Sets the value of validate_only.
Trait Implementations§
Source§impl Clone for CreateInstanceConfigRequest
impl Clone for CreateInstanceConfigRequest
Source§fn clone(&self) -> CreateInstanceConfigRequest
fn clone(&self) -> CreateInstanceConfigRequest
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more