#[non_exhaustive]pub struct CreateAutonomousDatabaseRequest {
pub parent: String,
pub autonomous_database_id: String,
pub autonomous_database: Option<AutonomousDatabase>,
pub request_id: String,
/* private fields */
}
Expand description
The request for AutonomousDatabase.Create
.
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 parent in the following format: projects/{project}/locations/{location}.
autonomous_database_id: String
Required. The ID of the Autonomous Database to create. This value is restricted to (^a-z?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.
autonomous_database: Option<AutonomousDatabase>
Required. The Autonomous Database being created.
request_id: String
Optional. An optional ID to identify the request. This value is used to identify duplicate requests. If you make a request with the same request ID and the original request is still in progress or completed, the server ignores the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
Implementations§
Source§impl CreateAutonomousDatabaseRequest
impl CreateAutonomousDatabaseRequest
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_autonomous_database_id<T: Into<String>>(self, v: T) -> Self
pub fn set_autonomous_database_id<T: Into<String>>(self, v: T) -> Self
Sets the value of autonomous_database_id.
Sourcepub fn set_autonomous_database<T>(self, v: T) -> Selfwhere
T: Into<AutonomousDatabase>,
pub fn set_autonomous_database<T>(self, v: T) -> Selfwhere
T: Into<AutonomousDatabase>,
Sets the value of autonomous_database.
Sourcepub fn set_or_clear_autonomous_database<T>(self, v: Option<T>) -> Selfwhere
T: Into<AutonomousDatabase>,
pub fn set_or_clear_autonomous_database<T>(self, v: Option<T>) -> Selfwhere
T: Into<AutonomousDatabase>,
Sets or clears the value of autonomous_database.
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.
Trait Implementations§
Source§impl Clone for CreateAutonomousDatabaseRequest
impl Clone for CreateAutonomousDatabaseRequest
Source§fn clone(&self) -> CreateAutonomousDatabaseRequest
fn clone(&self) -> CreateAutonomousDatabaseRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for CreateAutonomousDatabaseRequest
impl Default for CreateAutonomousDatabaseRequest
Source§fn default() -> CreateAutonomousDatabaseRequest
fn default() -> CreateAutonomousDatabaseRequest
Source§impl PartialEq for CreateAutonomousDatabaseRequest
impl PartialEq for CreateAutonomousDatabaseRequest
Source§fn eq(&self, other: &CreateAutonomousDatabaseRequest) -> bool
fn eq(&self, other: &CreateAutonomousDatabaseRequest) -> bool
self
and other
values to be equal, and is used by ==
.