#[non_exhaustive]pub struct PscInterfaceConfig {
pub network_attachment: String,
pub dns_peering_configs: Vec<DnsPeeringConfig>,
/* private fields */
}Available on crate features
job-service or persistent-resource-service or pipeline-service or reasoning-engine-service or schedule-service only.Expand description
Configuration for PSC-I.
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.network_attachment: StringOptional. The name of the Compute Engine network attachment to attach to the resource within the region and user project. To specify this field, you must have already [created a network attachment] (https://cloud.google.com/vpc/docs/create-manage-network-attachments#create-network-attachments). This field is only used for resources using PSC-I.
dns_peering_configs: Vec<DnsPeeringConfig>Optional. DNS peering configurations. When specified, Vertex AI will attempt to configure DNS peering zones in the tenant project VPC to resolve the specified domains using the target network’s Cloud DNS. The user must grant the dns.peer role to the Vertex AI Service Agent on the target project.
Implementations§
Source§impl PscInterfaceConfig
impl PscInterfaceConfig
pub fn new() -> Self
Sourcepub fn set_network_attachment<T: Into<String>>(self, v: T) -> Self
pub fn set_network_attachment<T: Into<String>>(self, v: T) -> Self
Sets the value of network_attachment.
§Example
ⓘ
let x = PscInterfaceConfig::new().set_network_attachment("example");Sourcepub fn set_dns_peering_configs<T, V>(self, v: T) -> Self
pub fn set_dns_peering_configs<T, V>(self, v: T) -> Self
Sets the value of dns_peering_configs.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::DnsPeeringConfig;
let x = PscInterfaceConfig::new()
.set_dns_peering_configs([
DnsPeeringConfig::default()/* use setters */,
DnsPeeringConfig::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for PscInterfaceConfig
impl Clone for PscInterfaceConfig
Source§fn clone(&self) -> PscInterfaceConfig
fn clone(&self) -> PscInterfaceConfig
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 PscInterfaceConfig
impl Debug for PscInterfaceConfig
Source§impl Default for PscInterfaceConfig
impl Default for PscInterfaceConfig
Source§fn default() -> PscInterfaceConfig
fn default() -> PscInterfaceConfig
Returns the “default value” for a type. Read more
Source§impl Message for PscInterfaceConfig
impl Message for PscInterfaceConfig
Source§impl PartialEq for PscInterfaceConfig
impl PartialEq for PscInterfaceConfig
impl StructuralPartialEq for PscInterfaceConfig
Auto Trait Implementations§
impl Freeze for PscInterfaceConfig
impl RefUnwindSafe for PscInterfaceConfig
impl Send for PscInterfaceConfig
impl Sync for PscInterfaceConfig
impl Unpin for PscInterfaceConfig
impl UnwindSafe for PscInterfaceConfig
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