#[non_exhaustive]pub struct CreatePrivateConnectionRequest {
pub parent: String,
pub private_connection_id: String,
pub private_connection: Option<PrivateConnection>,
pub request_id: String,
pub skip_validation: bool,
/* private fields */
}Expand description
Request message to create a new private connection in the specified project and region.
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 parent that owns the collection of PrivateConnections.
private_connection_id: StringRequired. The private connection identifier.
private_connection: Option<PrivateConnection>Required. The private connection resource to create.
request_id: StringOptional. A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored.
It is recommended to always set this value to a UUID.
The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
skip_validation: boolOptional. If set to true, will skip validations.
Implementations§
Source§impl CreatePrivateConnectionRequest
impl CreatePrivateConnectionRequest
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_private_connection_id<T: Into<String>>(self, v: T) -> Self
pub fn set_private_connection_id<T: Into<String>>(self, v: T) -> Self
Sets the value of private_connection_id.
Sourcepub fn set_private_connection<T>(self, v: T) -> Selfwhere
T: Into<PrivateConnection>,
pub fn set_private_connection<T>(self, v: T) -> Selfwhere
T: Into<PrivateConnection>,
Sets the value of private_connection.
Sourcepub fn set_or_clear_private_connection<T>(self, v: Option<T>) -> Selfwhere
T: Into<PrivateConnection>,
pub fn set_or_clear_private_connection<T>(self, v: Option<T>) -> Selfwhere
T: Into<PrivateConnection>,
Sets or clears the value of private_connection.
Sourcepub fn set_request_id<T: Into<String>>(self, v: T) -> Self
pub fn set_request_id<T: Into<String>>(self, v: T) -> Self
Sets the value of request_id.
Sourcepub fn set_skip_validation<T: Into<bool>>(self, v: T) -> Self
pub fn set_skip_validation<T: Into<bool>>(self, v: T) -> Self
Sets the value of skip_validation.
Trait Implementations§
Source§impl Clone for CreatePrivateConnectionRequest
impl Clone for CreatePrivateConnectionRequest
Source§fn clone(&self) -> CreatePrivateConnectionRequest
fn clone(&self) -> CreatePrivateConnectionRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for CreatePrivateConnectionRequest
impl Default for CreatePrivateConnectionRequest
Source§fn default() -> CreatePrivateConnectionRequest
fn default() -> CreatePrivateConnectionRequest
Source§impl PartialEq for CreatePrivateConnectionRequest
impl PartialEq for CreatePrivateConnectionRequest
Source§fn eq(&self, other: &CreatePrivateConnectionRequest) -> bool
fn eq(&self, other: &CreatePrivateConnectionRequest) -> bool
self and other values to be equal, and is used by ==.