#[non_exhaustive]pub struct CreatePrivateCloudRequest {
pub parent: String,
pub private_cloud_id: String,
pub private_cloud: Option<PrivateCloud>,
pub request_id: String,
pub validate_only: bool,
/* private fields */
}Expand description
Request message for VmwareEngine.CreatePrivateCloud
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 resource name of the location to create the new
private cloud in. Resource names are schemeless URIs that follow the
conventions in https://cloud.google.com/apis/design/resource_names.
For example:
projects/my-project/locations/us-central1-a
private_cloud_id: StringRequired. The user-provided identifier of the private cloud to be created.
This identifier must be unique among each PrivateCloud within the parent
and becomes the final token in the name URI.
The identifier must meet the following requirements:
- Only contains 1-63 alphanumeric characters and hyphens
- Begins with an alphabetical character
- Ends with a non-hyphen character
- Not formatted as a UUID
- Complies with RFC 1034 (section 3.5)
private_cloud: Option<PrivateCloud>Required. The initial description of the new private cloud.
request_id: StringOptional. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
validate_only: boolOptional. True if you want the request to be validated and not executed; false otherwise.
Implementations§
Source§impl CreatePrivateCloudRequest
impl CreatePrivateCloudRequest
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
Sourcepub fn set_private_cloud_id<T: Into<String>>(self, v: T) -> Self
pub fn set_private_cloud_id<T: Into<String>>(self, v: T) -> Self
Sets the value of private_cloud_id.
§Example
let x = CreatePrivateCloudRequest::new().set_private_cloud_id("example");Sourcepub fn set_private_cloud<T>(self, v: T) -> Selfwhere
T: Into<PrivateCloud>,
pub fn set_private_cloud<T>(self, v: T) -> Selfwhere
T: Into<PrivateCloud>,
Sets the value of private_cloud.
§Example
use google_cloud_vmwareengine_v1::model::PrivateCloud;
let x = CreatePrivateCloudRequest::new().set_private_cloud(PrivateCloud::default()/* use setters */);Sourcepub fn set_or_clear_private_cloud<T>(self, v: Option<T>) -> Selfwhere
T: Into<PrivateCloud>,
pub fn set_or_clear_private_cloud<T>(self, v: Option<T>) -> Selfwhere
T: Into<PrivateCloud>,
Sets or clears the value of private_cloud.
§Example
use google_cloud_vmwareengine_v1::model::PrivateCloud;
let x = CreatePrivateCloudRequest::new().set_or_clear_private_cloud(Some(PrivateCloud::default()/* use setters */));
let x = CreatePrivateCloudRequest::new().set_or_clear_private_cloud(None::<PrivateCloud>);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.
§Example
let x = CreatePrivateCloudRequest::new().set_request_id("example");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.
§Example
let x = CreatePrivateCloudRequest::new().set_validate_only(true);Trait Implementations§
Source§impl Clone for CreatePrivateCloudRequest
impl Clone for CreatePrivateCloudRequest
Source§fn clone(&self) -> CreatePrivateCloudRequest
fn clone(&self) -> CreatePrivateCloudRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more