#[non_exhaustive]pub struct CreateInstanceRequest {
pub parent: String,
pub instance_id: String,
pub instance: Option<Instance>,
pub clusters: HashMap<String, Cluster>,
/* private fields */
}Expand description
Request message for BigtableInstanceAdmin.CreateInstance.
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: StringRequired. The unique name of the project in which to create the new
instance. Values are of the form projects/{project}.
instance_id: StringRequired. The ID to be used when referring to the new instance within its
project, e.g., just myinstance rather than
projects/myproject/instances/myinstance.
instance: Option<Instance>Required. The instance to create.
Fields marked OutputOnly must be left blank.
clusters: HashMap<String, Cluster>Required. The clusters to be created within the instance, mapped by desired
cluster ID, e.g., just mycluster rather than
projects/myproject/instances/myinstance/clusters/mycluster.
Fields marked OutputOnly must be left blank.
Implementations§
Source§impl CreateInstanceRequest
impl CreateInstanceRequest
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_id<T: Into<String>>(self, v: T) -> Self
pub fn set_instance_id<T: Into<String>>(self, v: T) -> Self
Sets the value of instance_id.
Sourcepub fn set_instance<T>(self, v: T) -> Self
pub fn set_instance<T>(self, v: T) -> Self
Sets the value of instance.
Sourcepub fn set_or_clear_instance<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_instance<T>(self, v: Option<T>) -> Self
Sets or clears the value of instance.
Sourcepub fn set_clusters<T, K, V>(self, v: T) -> Self
pub fn set_clusters<T, K, V>(self, v: T) -> Self
Sets the value of clusters.
Trait Implementations§
Source§impl Clone for CreateInstanceRequest
impl Clone for CreateInstanceRequest
Source§fn clone(&self) -> CreateInstanceRequest
fn clone(&self) -> CreateInstanceRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more