#[non_exhaustive]pub struct GenerateTcpProxyScriptRequest {
pub migration_job: String,
pub vm_name: String,
pub vm_machine_type: String,
pub vm_zone: String,
pub vm_subnet: String,
/* private fields */
}Expand description
Request message for ‘GenerateTcpProxyScript’ request.
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.migration_job: StringName of the migration job resource to generate the TCP Proxy script.
vm_name: StringRequired. The name of the Compute instance that will host the proxy.
vm_machine_type: StringRequired. The type of the Compute instance that will host the proxy.
vm_zone: StringOptional. The Google Cloud Platform zone to create the VM in. The fully qualified name of the zone must be specified, including the region name, for example “us-central1-b”. If not specified, uses the “-b” zone of the destination Connection Profile’s region.
vm_subnet: StringRequired. The name of the subnet the Compute instance will use for private connectivity. Must be supplied in the form of projects/{project}/regions/{region}/subnetworks/{subnetwork}. Note: the region for the subnet must match the Compute instance region.
Implementations§
Source§impl GenerateTcpProxyScriptRequest
impl GenerateTcpProxyScriptRequest
pub fn new() -> Self
Sourcepub fn set_migration_job<T: Into<String>>(self, v: T) -> Self
pub fn set_migration_job<T: Into<String>>(self, v: T) -> Self
Sets the value of migration_job.
Sourcepub fn set_vm_name<T: Into<String>>(self, v: T) -> Self
pub fn set_vm_name<T: Into<String>>(self, v: T) -> Self
Sets the value of vm_name.
Sourcepub fn set_vm_machine_type<T: Into<String>>(self, v: T) -> Self
pub fn set_vm_machine_type<T: Into<String>>(self, v: T) -> Self
Sets the value of vm_machine_type.
Sourcepub fn set_vm_zone<T: Into<String>>(self, v: T) -> Self
pub fn set_vm_zone<T: Into<String>>(self, v: T) -> Self
Sets the value of vm_zone.
Sourcepub fn set_vm_subnet<T: Into<String>>(self, v: T) -> Self
pub fn set_vm_subnet<T: Into<String>>(self, v: T) -> Self
Sets the value of vm_subnet.
Trait Implementations§
Source§impl Clone for GenerateTcpProxyScriptRequest
impl Clone for GenerateTcpProxyScriptRequest
Source§fn clone(&self) -> GenerateTcpProxyScriptRequest
fn clone(&self) -> GenerateTcpProxyScriptRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for GenerateTcpProxyScriptRequest
impl Default for GenerateTcpProxyScriptRequest
Source§fn default() -> GenerateTcpProxyScriptRequest
fn default() -> GenerateTcpProxyScriptRequest
Source§impl PartialEq for GenerateTcpProxyScriptRequest
impl PartialEq for GenerateTcpProxyScriptRequest
Source§fn eq(&self, other: &GenerateTcpProxyScriptRequest) -> bool
fn eq(&self, other: &GenerateTcpProxyScriptRequest) -> bool
self and other values to be equal, and is used by ==.