#[non_exhaustive]pub struct CreateLakeRequest {
pub parent: String,
pub lake_id: String,
pub lake: Option<Lake>,
pub validate_only: bool,
/* private fields */
}Expand description
Create lake request.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. The resource name of the lake location, of the form:
projects/{project_number}/locations/{location_id}
where location_id refers to a Google Cloud region.
lake_id: StringRequired. Lake identifier. This ID will be used to generate names such as database and dataset names when publishing metadata to Hive Metastore and BigQuery.
- Must contain only lowercase letters, numbers and hyphens.
- Must start with a letter.
- Must end with a number or a letter.
- Must be between 1-63 characters.
- Must be unique within the customer project / location.
lake: Option<Lake>Required. Lake resource
validate_only: boolOptional. Only validate the request, but do not perform mutations. The default is false.
Implementations§
Source§impl CreateLakeRequest
impl CreateLakeRequest
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_lake_id<T: Into<String>>(self, v: T) -> Self
pub fn set_lake_id<T: Into<String>>(self, v: T) -> Self
Sets the value of lake_id.
Sourcepub fn set_or_clear_lake<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_lake<T>(self, v: Option<T>) -> Self
Sets or clears the value of lake.
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 CreateLakeRequest
impl Clone for CreateLakeRequest
Source§fn clone(&self) -> CreateLakeRequest
fn clone(&self) -> CreateLakeRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateLakeRequest
impl Debug for CreateLakeRequest
Source§impl Default for CreateLakeRequest
impl Default for CreateLakeRequest
Source§fn default() -> CreateLakeRequest
fn default() -> CreateLakeRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateLakeRequest
impl Message for CreateLakeRequest
Source§impl PartialEq for CreateLakeRequest
impl PartialEq for CreateLakeRequest
impl StructuralPartialEq for CreateLakeRequest
Auto Trait Implementations§
impl Freeze for CreateLakeRequest
impl RefUnwindSafe for CreateLakeRequest
impl Send for CreateLakeRequest
impl Sync for CreateLakeRequest
impl Unpin for CreateLakeRequest
impl UnwindSafe for CreateLakeRequest
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
Mutably borrows from an owned value. Read more