#[non_exhaustive]pub struct ProvisioningConfig {Show 14 fields
pub name: String,
pub instances: Vec<InstanceConfig>,
pub networks: Vec<NetworkConfig>,
pub volumes: Vec<VolumeConfig>,
pub ticket_id: String,
pub handover_service_account: String,
pub email: String,
pub state: State,
pub location: String,
pub update_time: Option<Timestamp>,
pub cloud_console_uri: String,
pub vpc_sc_enabled: bool,
pub status_message: String,
pub custom_id: String,
/* private fields */
}Expand description
A provisioning configuration.
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.name: StringOutput only. The system-generated name of the provisioning config. This follows the UUID format.
instances: Vec<InstanceConfig>Instances to be created.
networks: Vec<NetworkConfig>Networks to be created.
volumes: Vec<VolumeConfig>Volumes to be created.
ticket_id: StringA generated ticket id to track provisioning request.
handover_service_account: StringA service account to enable customers to access instance credentials upon handover.
email: StringEmail provided to send a confirmation with provisioning config to. Deprecated in favour of email field in request messages.
state: StateOutput only. State of ProvisioningConfig.
location: StringOptional. Location name of this ProvisioningConfig. It is optional only for Intake UI transition period.
update_time: Option<Timestamp>Output only. Last update timestamp.
cloud_console_uri: StringOutput only. URI to Cloud Console UI view of this provisioning config.
vpc_sc_enabled: boolIf true, VPC SC is enabled for the cluster.
status_message: StringOptional status messages associated with the FAILED state.
custom_id: StringOptional. The user-defined identifier of the provisioning config.
Implementations§
Source§impl ProvisioningConfig
impl ProvisioningConfig
Sourcepub fn set_instances<T, V>(self, v: T) -> Self
pub fn set_instances<T, V>(self, v: T) -> Self
Sourcepub fn set_networks<T, V>(self, v: T) -> Self
pub fn set_networks<T, V>(self, v: T) -> Self
Sourcepub fn set_volumes<T, V>(self, v: T) -> Self
pub fn set_volumes<T, V>(self, v: T) -> Self
Sourcepub fn set_ticket_id<T: Into<String>>(self, v: T) -> Self
pub fn set_ticket_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_handover_service_account<T: Into<String>>(self, v: T) -> Self
pub fn set_handover_service_account<T: Into<String>>(self, v: T) -> Self
Sets the value of handover_service_account.
§Example
let x = ProvisioningConfig::new().set_handover_service_account("example");Sourcepub fn set_location<T: Into<String>>(self, v: T) -> Self
pub fn set_location<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
§Example
use wkt::Timestamp;
let x = ProvisioningConfig::new().set_update_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
§Example
use wkt::Timestamp;
let x = ProvisioningConfig::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = ProvisioningConfig::new().set_or_clear_update_time(None::<Timestamp>);Sourcepub fn set_cloud_console_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_cloud_console_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of cloud_console_uri.
§Example
let x = ProvisioningConfig::new().set_cloud_console_uri("example");Sourcepub fn set_vpc_sc_enabled<T: Into<bool>>(self, v: T) -> Self
pub fn set_vpc_sc_enabled<T: Into<bool>>(self, v: T) -> Self
Sets the value of vpc_sc_enabled.
§Example
let x = ProvisioningConfig::new().set_vpc_sc_enabled(true);Sourcepub fn set_status_message<T: Into<String>>(self, v: T) -> Self
pub fn set_status_message<T: Into<String>>(self, v: T) -> Self
Sets the value of status_message.
§Example
let x = ProvisioningConfig::new().set_status_message("example");Trait Implementations§
Source§impl Clone for ProvisioningConfig
impl Clone for ProvisioningConfig
Source§fn clone(&self) -> ProvisioningConfig
fn clone(&self) -> ProvisioningConfig
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 ProvisioningConfig
impl Debug for ProvisioningConfig
Source§impl Default for ProvisioningConfig
impl Default for ProvisioningConfig
Source§fn default() -> ProvisioningConfig
fn default() -> ProvisioningConfig
Source§impl Message for ProvisioningConfig
impl Message for ProvisioningConfig
Source§impl PartialEq for ProvisioningConfig
impl PartialEq for ProvisioningConfig
impl StructuralPartialEq for ProvisioningConfig
Auto Trait Implementations§
impl Freeze for ProvisioningConfig
impl RefUnwindSafe for ProvisioningConfig
impl Send for ProvisioningConfig
impl Sync for ProvisioningConfig
impl Unpin for ProvisioningConfig
impl UnsafeUnpin for ProvisioningConfig
impl UnwindSafe for ProvisioningConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request