#[non_exhaustive]pub struct LinkedProducerVpcNetwork {
pub network: String,
pub service_consumer_vpc_spoke: String,
pub peering: String,
pub producer_network: String,
pub exclude_export_ranges: Vec<String>,
pub include_export_ranges: Vec<String>,
pub proposed_include_export_ranges: Vec<String>,
pub proposed_exclude_export_ranges: Vec<String>,
/* private fields */
}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.network: StringImmutable. The URI of the Service Consumer VPC that the Producer VPC is peered with.
service_consumer_vpc_spoke: StringOutput only. The Service Consumer Network spoke.
peering: StringImmutable. The name of the VPC peering between the Service Consumer VPC and the Producer VPC (defined in the Tenant project) which is added to the NCC hub. This peering must be in ACTIVE state.
producer_network: StringOutput only. The URI of the Producer VPC.
exclude_export_ranges: Vec<String>Optional. IP ranges encompassing the subnets to be excluded from peering.
include_export_ranges: Vec<String>Optional. IP ranges allowed to be included from peering.
proposed_include_export_ranges: Vec<String>Optional. The proposed include export IP ranges waiting for hub administration’s approval.
proposed_exclude_export_ranges: Vec<String>Output only. The proposed exclude export IP ranges waiting for hub administration’s approval.
Implementations§
Source§impl LinkedProducerVpcNetwork
impl LinkedProducerVpcNetwork
Sourcepub fn set_network<T: Into<String>>(self, v: T) -> Self
pub fn set_network<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_service_consumer_vpc_spoke<T: Into<String>>(self, v: T) -> Self
pub fn set_service_consumer_vpc_spoke<T: Into<String>>(self, v: T) -> Self
Sets the value of service_consumer_vpc_spoke.
§Example
let x = LinkedProducerVpcNetwork::new().set_service_consumer_vpc_spoke(format!("projects/{project_id}/locations/{location_id}/spokes/{spoke_id}"));Sourcepub fn set_peering<T: Into<String>>(self, v: T) -> Self
pub fn set_peering<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_producer_network<T: Into<String>>(self, v: T) -> Self
pub fn set_producer_network<T: Into<String>>(self, v: T) -> Self
Sets the value of producer_network.
§Example
let x = LinkedProducerVpcNetwork::new().set_producer_network("example");Sourcepub fn set_exclude_export_ranges<T, V>(self, v: T) -> Self
pub fn set_exclude_export_ranges<T, V>(self, v: T) -> Self
Sets the value of exclude_export_ranges.
§Example
let x = LinkedProducerVpcNetwork::new().set_exclude_export_ranges(["a", "b", "c"]);Sourcepub fn set_include_export_ranges<T, V>(self, v: T) -> Self
pub fn set_include_export_ranges<T, V>(self, v: T) -> Self
Sets the value of include_export_ranges.
§Example
let x = LinkedProducerVpcNetwork::new().set_include_export_ranges(["a", "b", "c"]);Sourcepub fn set_proposed_include_export_ranges<T, V>(self, v: T) -> Self
pub fn set_proposed_include_export_ranges<T, V>(self, v: T) -> Self
Sets the value of proposed_include_export_ranges.
§Example
let x = LinkedProducerVpcNetwork::new().set_proposed_include_export_ranges(["a", "b", "c"]);Sourcepub fn set_proposed_exclude_export_ranges<T, V>(self, v: T) -> Self
pub fn set_proposed_exclude_export_ranges<T, V>(self, v: T) -> Self
Sets the value of proposed_exclude_export_ranges.
§Example
let x = LinkedProducerVpcNetwork::new().set_proposed_exclude_export_ranges(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for LinkedProducerVpcNetwork
impl Clone for LinkedProducerVpcNetwork
Source§fn clone(&self) -> LinkedProducerVpcNetwork
fn clone(&self) -> LinkedProducerVpcNetwork
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LinkedProducerVpcNetwork
impl Debug for LinkedProducerVpcNetwork
Source§impl Default for LinkedProducerVpcNetwork
impl Default for LinkedProducerVpcNetwork
Source§fn default() -> LinkedProducerVpcNetwork
fn default() -> LinkedProducerVpcNetwork
Source§impl Message for LinkedProducerVpcNetwork
impl Message for LinkedProducerVpcNetwork
Source§impl PartialEq for LinkedProducerVpcNetwork
impl PartialEq for LinkedProducerVpcNetwork
impl StructuralPartialEq for LinkedProducerVpcNetwork
Auto Trait Implementations§
impl Freeze for LinkedProducerVpcNetwork
impl RefUnwindSafe for LinkedProducerVpcNetwork
impl Send for LinkedProducerVpcNetwork
impl Sync for LinkedProducerVpcNetwork
impl Unpin for LinkedProducerVpcNetwork
impl UnsafeUnpin for LinkedProducerVpcNetwork
impl UnwindSafe for LinkedProducerVpcNetwork
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request