Skip to main content

NetworkProfileNetworkFeatures

Struct NetworkProfileNetworkFeatures 

Source
#[non_exhaustive]
pub struct NetworkProfileNetworkFeatures {
Show 38 fields pub address_purposes: Vec<AddressPurposes>, pub allow_address_creation: Option<AllowAddressCreation>, pub allow_alias_ip_ranges: Option<AllowAliasIpRanges>, pub allow_auto_mode_subnet: Option<AllowAutoModeSubnet>, pub allow_class_d_firewalls: Option<AllowClassDfirewalls>, pub allow_cloud_nat: Option<AllowCloudNat>, pub allow_cloud_router: Option<AllowCloudRouter>, pub allow_default_nic_attachment: Option<AllowDefaultNicAttachment>, pub allow_external_ip_access: Option<AllowExternalIpAccess>, pub allow_firewall_policy: Option<AllowFirewallPolicy>, pub allow_interconnect: Option<AllowInterconnect>, pub allow_ip_forwarding: Option<AllowIpForwarding>, pub allow_load_balancing: Option<AllowLoadBalancing>, pub allow_multi_nic_in_same_network: Option<AllowMultiNicInSameNetwork>, pub allow_multi_nic_in_same_subnetwork: Option<AllowMultiNicInSameSubnetwork>, pub allow_multicast: Option<AllowMulticast>, pub allow_ncc: Option<AllowNcc>, pub allow_network_migration: Option<AllowNetworkMigration>, pub allow_packet_mirroring: Option<AllowPacketMirroring>, pub allow_private_google_access: Option<AllowPrivateGoogleAccess>, pub allow_psc: Option<AllowPsc>, pub allow_same_network_unicast: Option<AllowSameNetworkUnicast>, pub allow_static_routes: Option<AllowStaticRoutes>, pub allow_sub_interfaces: Option<AllowSubInterfaces>, pub allow_subnetwork_creation: Option<AllowSubnetworkCreation>, pub allow_vpc_firewall_rules: Option<AllowVpcFirewallRules>, pub allow_vpc_peering: Option<AllowVpcPeering>, pub allow_vpn: Option<AllowVpn>, pub firewall_policy_types: Vec<FirewallPolicyTypes>, pub interface_types: Vec<InterfaceTypes>, pub multicast: Option<Multicast>, pub predefined_network_internal_ipv_6_range: Option<String>, pub predefined_subnetwork_ranges: Vec<NetworkProfileNetworkFeaturesPredefinedSubnetworkRange>, pub subnet_purposes: Vec<SubnetPurposes>, pub subnet_stack_types: Vec<SubnetStackTypes>, pub subnetwork_purposes: Vec<SubnetworkPurposes>, pub subnetwork_stack_types: Vec<SubnetworkStackTypes>, pub unicast: Option<Unicast>, /* private fields */
}
Available on crate feature network-profiles only.

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.
§address_purposes: Vec<AddressPurposes>

Specifies what address purposes are supported. If empty, all address purposes are supported.

§allow_address_creation: Option<AllowAddressCreation>

Specifies whether address creation is allowed.

§allow_alias_ip_ranges: Option<AllowAliasIpRanges>

Specifies whether alias IP ranges (and secondary address ranges) are allowed.

§allow_auto_mode_subnet: Option<AllowAutoModeSubnet>

Specifies whether auto mode subnet creation is allowed.

§allow_class_d_firewalls: Option<AllowClassDfirewalls>

Specifies whether firewalls for Class D address ranges are supported.

§allow_cloud_nat: Option<AllowCloudNat>

Specifies whether cloud NAT creation is allowed.

§allow_cloud_router: Option<AllowCloudRouter>

Specifies whether cloud router creation is allowed.

§allow_default_nic_attachment: Option<AllowDefaultNicAttachment>

Specifies whether default NIC attachment is allowed.

§allow_external_ip_access: Option<AllowExternalIpAccess>

Specifies whether VMs are allowed to have external IP access on network interfaces connected to this VPC.

§allow_firewall_policy: Option<AllowFirewallPolicy>

Specifies whether firewall policy can be attached to the network.

§allow_interconnect: Option<AllowInterconnect>

Specifies whether Cloud Interconnect creation is allowed.

§allow_ip_forwarding: Option<AllowIpForwarding>

Specifies whether IP forwarding is allowed.

§allow_load_balancing: Option<AllowLoadBalancing>

Specifies whether cloud load balancing is allowed.

§allow_multi_nic_in_same_network: Option<AllowMultiNicInSameNetwork>

Specifies whether multi-nic in the same network is allowed.

§allow_multi_nic_in_same_subnetwork: Option<AllowMultiNicInSameSubnetwork>

Specifies whether multi-nic in the same subnetwork is allowed.

§allow_multicast: Option<AllowMulticast>

Specifies whether multicast is allowed.

§allow_ncc: Option<AllowNcc>

Specifies whether NCC is allowed.

§allow_network_migration: Option<AllowNetworkMigration>

Specifies whether VM network migration is allowed.

§allow_packet_mirroring: Option<AllowPacketMirroring>

Specifies whether Packet Mirroring 1.0 is supported.

§allow_private_google_access: Option<AllowPrivateGoogleAccess>

Specifies whether private Google access is allowed.

§allow_psc: Option<AllowPsc>

Specifies whether PSC creation is allowed.

§allow_same_network_unicast: Option<AllowSameNetworkUnicast>

Specifies whether unicast within the same network is allowed.

§allow_static_routes: Option<AllowStaticRoutes>

Specifies whether static route creation is allowed.

§allow_sub_interfaces: Option<AllowSubInterfaces>

Specifies whether sub interfaces are allowed.

§allow_subnetwork_creation: Option<AllowSubnetworkCreation>

Specifies whether subnetwork creation is allowed.

§allow_vpc_firewall_rules: Option<AllowVpcFirewallRules>

Specifies whether VPC firewall rules can be created under the network.

§allow_vpc_peering: Option<AllowVpcPeering>

Specifies whether VPC peering is allowed.

§allow_vpn: Option<AllowVpn>

Specifies whether VPN creation is allowed.

§firewall_policy_types: Vec<FirewallPolicyTypes>§interface_types: Vec<InterfaceTypes>

If set, limits the interface types that the network supports. If empty, all interface types are supported.

§multicast: Option<Multicast>

Specifies which type of multicast is supported.

§predefined_network_internal_ipv_6_range: Option<String>

Specifies a predefined internal IPv6 range for the network.

§predefined_subnetwork_ranges: Vec<NetworkProfileNetworkFeaturesPredefinedSubnetworkRange>

Predefined subnetwork ranges for the network.

§subnet_purposes: Vec<SubnetPurposes>

Specifies which subnetwork purposes are supported.

§subnet_stack_types: Vec<SubnetStackTypes>

Specifies which subnetwork stack types are supported.

§subnetwork_purposes: Vec<SubnetworkPurposes>

Output only. Specifies which subnetwork purposes are supported.

§subnetwork_stack_types: Vec<SubnetworkStackTypes>

Output only. Specifies which subnetwork stack types are supported.

§unicast: Option<Unicast>

Specifies which type of unicast is supported.

Implementations§

Source§

impl NetworkProfileNetworkFeatures

Source

pub fn new() -> Self

Source

pub fn set_address_purposes<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<AddressPurposes>,

Sets the value of address_purposes.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AddressPurposes;
let x = NetworkProfileNetworkFeatures::new().set_address_purposes([
    AddressPurposes::GceEndpoint,
    AddressPurposes::IpsecInterconnect,
    AddressPurposes::NatAuto,
]);
Source

pub fn set_allow_address_creation<T>(self, v: T) -> Self

Sets the value of allow_address_creation.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowAddressCreation;
let x0 = NetworkProfileNetworkFeatures::new().set_allow_address_creation(AllowAddressCreation::AddressCreationBlocked);
Source

pub fn set_or_clear_allow_address_creation<T>(self, v: Option<T>) -> Self

Sets or clears the value of allow_address_creation.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowAddressCreation;
let x0 = NetworkProfileNetworkFeatures::new().set_or_clear_allow_address_creation(Some(AllowAddressCreation::AddressCreationBlocked));
let x_none = NetworkProfileNetworkFeatures::new().set_or_clear_allow_address_creation(None::<AllowAddressCreation>);
Source

pub fn set_allow_alias_ip_ranges<T>(self, v: T) -> Self

Sets the value of allow_alias_ip_ranges.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowAliasIpRanges;
let x0 = NetworkProfileNetworkFeatures::new().set_allow_alias_ip_ranges(AllowAliasIpRanges::AliasIpRangesBlocked);
Source

pub fn set_or_clear_allow_alias_ip_ranges<T>(self, v: Option<T>) -> Self

Sets or clears the value of allow_alias_ip_ranges.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowAliasIpRanges;
let x0 = NetworkProfileNetworkFeatures::new().set_or_clear_allow_alias_ip_ranges(Some(AllowAliasIpRanges::AliasIpRangesBlocked));
let x_none = NetworkProfileNetworkFeatures::new().set_or_clear_allow_alias_ip_ranges(None::<AllowAliasIpRanges>);
Source

pub fn set_allow_auto_mode_subnet<T>(self, v: T) -> Self

Sets the value of allow_auto_mode_subnet.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowAutoModeSubnet;
let x0 = NetworkProfileNetworkFeatures::new().set_allow_auto_mode_subnet(AllowAutoModeSubnet::AutoModeSubnetBlocked);
Source

pub fn set_or_clear_allow_auto_mode_subnet<T>(self, v: Option<T>) -> Self

Sets or clears the value of allow_auto_mode_subnet.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowAutoModeSubnet;
let x0 = NetworkProfileNetworkFeatures::new().set_or_clear_allow_auto_mode_subnet(Some(AllowAutoModeSubnet::AutoModeSubnetBlocked));
let x_none = NetworkProfileNetworkFeatures::new().set_or_clear_allow_auto_mode_subnet(None::<AllowAutoModeSubnet>);
Source

pub fn set_allow_class_d_firewalls<T>(self, v: T) -> Self

Sets the value of allow_class_d_firewalls.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowClassDfirewalls;
let x0 = NetworkProfileNetworkFeatures::new().set_allow_class_d_firewalls(AllowClassDfirewalls::ClassDFirewallsBlocked);
Source

pub fn set_or_clear_allow_class_d_firewalls<T>(self, v: Option<T>) -> Self

Sets or clears the value of allow_class_d_firewalls.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowClassDfirewalls;
let x0 = NetworkProfileNetworkFeatures::new().set_or_clear_allow_class_d_firewalls(Some(AllowClassDfirewalls::ClassDFirewallsBlocked));
let x_none = NetworkProfileNetworkFeatures::new().set_or_clear_allow_class_d_firewalls(None::<AllowClassDfirewalls>);
Source

pub fn set_allow_cloud_nat<T>(self, v: T) -> Self
where T: Into<AllowCloudNat>,

Sets the value of allow_cloud_nat.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowCloudNat;
let x0 = NetworkProfileNetworkFeatures::new().set_allow_cloud_nat(AllowCloudNat::CloudNatBlocked);
Source

pub fn set_or_clear_allow_cloud_nat<T>(self, v: Option<T>) -> Self
where T: Into<AllowCloudNat>,

Sets or clears the value of allow_cloud_nat.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowCloudNat;
let x0 = NetworkProfileNetworkFeatures::new().set_or_clear_allow_cloud_nat(Some(AllowCloudNat::CloudNatBlocked));
let x_none = NetworkProfileNetworkFeatures::new().set_or_clear_allow_cloud_nat(None::<AllowCloudNat>);
Source

pub fn set_allow_cloud_router<T>(self, v: T) -> Self

Sets the value of allow_cloud_router.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowCloudRouter;
let x0 = NetworkProfileNetworkFeatures::new().set_allow_cloud_router(AllowCloudRouter::CloudRouterBlocked);
Source

pub fn set_or_clear_allow_cloud_router<T>(self, v: Option<T>) -> Self

Sets or clears the value of allow_cloud_router.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowCloudRouter;
let x0 = NetworkProfileNetworkFeatures::new().set_or_clear_allow_cloud_router(Some(AllowCloudRouter::CloudRouterBlocked));
let x_none = NetworkProfileNetworkFeatures::new().set_or_clear_allow_cloud_router(None::<AllowCloudRouter>);
Source

pub fn set_allow_default_nic_attachment<T>(self, v: T) -> Self

Sets the value of allow_default_nic_attachment.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowDefaultNicAttachment;
let x0 = NetworkProfileNetworkFeatures::new().set_allow_default_nic_attachment(AllowDefaultNicAttachment::DefaultNicAttachmentBlocked);
Source

pub fn set_or_clear_allow_default_nic_attachment<T>(self, v: Option<T>) -> Self

Sets or clears the value of allow_default_nic_attachment.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowDefaultNicAttachment;
let x0 = NetworkProfileNetworkFeatures::new().set_or_clear_allow_default_nic_attachment(Some(AllowDefaultNicAttachment::DefaultNicAttachmentBlocked));
let x_none = NetworkProfileNetworkFeatures::new().set_or_clear_allow_default_nic_attachment(None::<AllowDefaultNicAttachment>);
Source

pub fn set_allow_external_ip_access<T>(self, v: T) -> Self

Sets the value of allow_external_ip_access.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowExternalIpAccess;
let x0 = NetworkProfileNetworkFeatures::new().set_allow_external_ip_access(AllowExternalIpAccess::ExternalIpAccessBlocked);
Source

pub fn set_or_clear_allow_external_ip_access<T>(self, v: Option<T>) -> Self

Sets or clears the value of allow_external_ip_access.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowExternalIpAccess;
let x0 = NetworkProfileNetworkFeatures::new().set_or_clear_allow_external_ip_access(Some(AllowExternalIpAccess::ExternalIpAccessBlocked));
let x_none = NetworkProfileNetworkFeatures::new().set_or_clear_allow_external_ip_access(None::<AllowExternalIpAccess>);
Source

pub fn set_allow_firewall_policy<T>(self, v: T) -> Self

Sets the value of allow_firewall_policy.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowFirewallPolicy;
let x0 = NetworkProfileNetworkFeatures::new().set_allow_firewall_policy(AllowFirewallPolicy::FirewallPolicyBlocked);
Source

pub fn set_or_clear_allow_firewall_policy<T>(self, v: Option<T>) -> Self

Sets or clears the value of allow_firewall_policy.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowFirewallPolicy;
let x0 = NetworkProfileNetworkFeatures::new().set_or_clear_allow_firewall_policy(Some(AllowFirewallPolicy::FirewallPolicyBlocked));
let x_none = NetworkProfileNetworkFeatures::new().set_or_clear_allow_firewall_policy(None::<AllowFirewallPolicy>);
Source

pub fn set_allow_interconnect<T>(self, v: T) -> Self

Sets the value of allow_interconnect.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowInterconnect;
let x0 = NetworkProfileNetworkFeatures::new().set_allow_interconnect(AllowInterconnect::InterconnectBlocked);
Source

pub fn set_or_clear_allow_interconnect<T>(self, v: Option<T>) -> Self

Sets or clears the value of allow_interconnect.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowInterconnect;
let x0 = NetworkProfileNetworkFeatures::new().set_or_clear_allow_interconnect(Some(AllowInterconnect::InterconnectBlocked));
let x_none = NetworkProfileNetworkFeatures::new().set_or_clear_allow_interconnect(None::<AllowInterconnect>);
Source

pub fn set_allow_ip_forwarding<T>(self, v: T) -> Self

Sets the value of allow_ip_forwarding.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowIpForwarding;
let x0 = NetworkProfileNetworkFeatures::new().set_allow_ip_forwarding(AllowIpForwarding::IpForwardingBlocked);
Source

pub fn set_or_clear_allow_ip_forwarding<T>(self, v: Option<T>) -> Self

Sets or clears the value of allow_ip_forwarding.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowIpForwarding;
let x0 = NetworkProfileNetworkFeatures::new().set_or_clear_allow_ip_forwarding(Some(AllowIpForwarding::IpForwardingBlocked));
let x_none = NetworkProfileNetworkFeatures::new().set_or_clear_allow_ip_forwarding(None::<AllowIpForwarding>);
Source

pub fn set_allow_load_balancing<T>(self, v: T) -> Self

Sets the value of allow_load_balancing.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowLoadBalancing;
let x0 = NetworkProfileNetworkFeatures::new().set_allow_load_balancing(AllowLoadBalancing::LoadBalancingBlocked);
Source

pub fn set_or_clear_allow_load_balancing<T>(self, v: Option<T>) -> Self

Sets or clears the value of allow_load_balancing.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowLoadBalancing;
let x0 = NetworkProfileNetworkFeatures::new().set_or_clear_allow_load_balancing(Some(AllowLoadBalancing::LoadBalancingBlocked));
let x_none = NetworkProfileNetworkFeatures::new().set_or_clear_allow_load_balancing(None::<AllowLoadBalancing>);
Source

pub fn set_allow_multi_nic_in_same_network<T>(self, v: T) -> Self

Sets the value of allow_multi_nic_in_same_network.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowMultiNicInSameNetwork;
let x0 = NetworkProfileNetworkFeatures::new().set_allow_multi_nic_in_same_network(AllowMultiNicInSameNetwork::MultiNicInSameNetworkBlocked);
Source

pub fn set_or_clear_allow_multi_nic_in_same_network<T>( self, v: Option<T>, ) -> Self

Sets or clears the value of allow_multi_nic_in_same_network.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowMultiNicInSameNetwork;
let x0 = NetworkProfileNetworkFeatures::new().set_or_clear_allow_multi_nic_in_same_network(Some(AllowMultiNicInSameNetwork::MultiNicInSameNetworkBlocked));
let x_none = NetworkProfileNetworkFeatures::new().set_or_clear_allow_multi_nic_in_same_network(None::<AllowMultiNicInSameNetwork>);
Source

pub fn set_allow_multi_nic_in_same_subnetwork<T>(self, v: T) -> Self

Sets the value of allow_multi_nic_in_same_subnetwork.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowMultiNicInSameSubnetwork;
let x0 = NetworkProfileNetworkFeatures::new().set_allow_multi_nic_in_same_subnetwork(AllowMultiNicInSameSubnetwork::MultiNicInSameSubnetworkBlocked);
Source

pub fn set_or_clear_allow_multi_nic_in_same_subnetwork<T>( self, v: Option<T>, ) -> Self

Sets or clears the value of allow_multi_nic_in_same_subnetwork.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowMultiNicInSameSubnetwork;
let x0 = NetworkProfileNetworkFeatures::new().set_or_clear_allow_multi_nic_in_same_subnetwork(Some(AllowMultiNicInSameSubnetwork::MultiNicInSameSubnetworkBlocked));
let x_none = NetworkProfileNetworkFeatures::new().set_or_clear_allow_multi_nic_in_same_subnetwork(None::<AllowMultiNicInSameSubnetwork>);
Source

pub fn set_allow_multicast<T>(self, v: T) -> Self
where T: Into<AllowMulticast>,

Sets the value of allow_multicast.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowMulticast;
let x0 = NetworkProfileNetworkFeatures::new().set_allow_multicast(AllowMulticast::MulticastBlocked);
Source

pub fn set_or_clear_allow_multicast<T>(self, v: Option<T>) -> Self
where T: Into<AllowMulticast>,

Sets or clears the value of allow_multicast.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowMulticast;
let x0 = NetworkProfileNetworkFeatures::new().set_or_clear_allow_multicast(Some(AllowMulticast::MulticastBlocked));
let x_none = NetworkProfileNetworkFeatures::new().set_or_clear_allow_multicast(None::<AllowMulticast>);
Source

pub fn set_allow_ncc<T>(self, v: T) -> Self
where T: Into<AllowNcc>,

Sets the value of allow_ncc.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowNcc;
let x0 = NetworkProfileNetworkFeatures::new().set_allow_ncc(AllowNcc::NccBlocked);
Source

pub fn set_or_clear_allow_ncc<T>(self, v: Option<T>) -> Self
where T: Into<AllowNcc>,

Sets or clears the value of allow_ncc.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowNcc;
let x0 = NetworkProfileNetworkFeatures::new().set_or_clear_allow_ncc(Some(AllowNcc::NccBlocked));
let x_none = NetworkProfileNetworkFeatures::new().set_or_clear_allow_ncc(None::<AllowNcc>);
Source

pub fn set_allow_network_migration<T>(self, v: T) -> Self

Sets the value of allow_network_migration.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowNetworkMigration;
let x0 = NetworkProfileNetworkFeatures::new().set_allow_network_migration(AllowNetworkMigration::NetworkMigrationBlocked);
Source

pub fn set_or_clear_allow_network_migration<T>(self, v: Option<T>) -> Self

Sets or clears the value of allow_network_migration.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowNetworkMigration;
let x0 = NetworkProfileNetworkFeatures::new().set_or_clear_allow_network_migration(Some(AllowNetworkMigration::NetworkMigrationBlocked));
let x_none = NetworkProfileNetworkFeatures::new().set_or_clear_allow_network_migration(None::<AllowNetworkMigration>);
Source

pub fn set_allow_packet_mirroring<T>(self, v: T) -> Self

Sets the value of allow_packet_mirroring.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowPacketMirroring;
let x0 = NetworkProfileNetworkFeatures::new().set_allow_packet_mirroring(AllowPacketMirroring::PacketMirroringBlocked);
Source

pub fn set_or_clear_allow_packet_mirroring<T>(self, v: Option<T>) -> Self

Sets or clears the value of allow_packet_mirroring.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowPacketMirroring;
let x0 = NetworkProfileNetworkFeatures::new().set_or_clear_allow_packet_mirroring(Some(AllowPacketMirroring::PacketMirroringBlocked));
let x_none = NetworkProfileNetworkFeatures::new().set_or_clear_allow_packet_mirroring(None::<AllowPacketMirroring>);
Source

pub fn set_allow_private_google_access<T>(self, v: T) -> Self

Sets the value of allow_private_google_access.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowPrivateGoogleAccess;
let x0 = NetworkProfileNetworkFeatures::new().set_allow_private_google_access(AllowPrivateGoogleAccess::PrivateGoogleAccessBlocked);
Source

pub fn set_or_clear_allow_private_google_access<T>(self, v: Option<T>) -> Self

Sets or clears the value of allow_private_google_access.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowPrivateGoogleAccess;
let x0 = NetworkProfileNetworkFeatures::new().set_or_clear_allow_private_google_access(Some(AllowPrivateGoogleAccess::PrivateGoogleAccessBlocked));
let x_none = NetworkProfileNetworkFeatures::new().set_or_clear_allow_private_google_access(None::<AllowPrivateGoogleAccess>);
Source

pub fn set_allow_psc<T>(self, v: T) -> Self
where T: Into<AllowPsc>,

Sets the value of allow_psc.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowPsc;
let x0 = NetworkProfileNetworkFeatures::new().set_allow_psc(AllowPsc::PscBlocked);
Source

pub fn set_or_clear_allow_psc<T>(self, v: Option<T>) -> Self
where T: Into<AllowPsc>,

Sets or clears the value of allow_psc.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowPsc;
let x0 = NetworkProfileNetworkFeatures::new().set_or_clear_allow_psc(Some(AllowPsc::PscBlocked));
let x_none = NetworkProfileNetworkFeatures::new().set_or_clear_allow_psc(None::<AllowPsc>);
Source

pub fn set_allow_same_network_unicast<T>(self, v: T) -> Self

Sets the value of allow_same_network_unicast.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowSameNetworkUnicast;
let x0 = NetworkProfileNetworkFeatures::new().set_allow_same_network_unicast(AllowSameNetworkUnicast::SameNetworkUnicastBlocked);
Source

pub fn set_or_clear_allow_same_network_unicast<T>(self, v: Option<T>) -> Self

Sets or clears the value of allow_same_network_unicast.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowSameNetworkUnicast;
let x0 = NetworkProfileNetworkFeatures::new().set_or_clear_allow_same_network_unicast(Some(AllowSameNetworkUnicast::SameNetworkUnicastBlocked));
let x_none = NetworkProfileNetworkFeatures::new().set_or_clear_allow_same_network_unicast(None::<AllowSameNetworkUnicast>);
Source

pub fn set_allow_static_routes<T>(self, v: T) -> Self

Sets the value of allow_static_routes.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowStaticRoutes;
let x0 = NetworkProfileNetworkFeatures::new().set_allow_static_routes(AllowStaticRoutes::StaticRoutesBlocked);
Source

pub fn set_or_clear_allow_static_routes<T>(self, v: Option<T>) -> Self

Sets or clears the value of allow_static_routes.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowStaticRoutes;
let x0 = NetworkProfileNetworkFeatures::new().set_or_clear_allow_static_routes(Some(AllowStaticRoutes::StaticRoutesBlocked));
let x_none = NetworkProfileNetworkFeatures::new().set_or_clear_allow_static_routes(None::<AllowStaticRoutes>);
Source

pub fn set_allow_sub_interfaces<T>(self, v: T) -> Self

Sets the value of allow_sub_interfaces.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowSubInterfaces;
let x0 = NetworkProfileNetworkFeatures::new().set_allow_sub_interfaces(AllowSubInterfaces::SubinterfacesBlocked);
Source

pub fn set_or_clear_allow_sub_interfaces<T>(self, v: Option<T>) -> Self

Sets or clears the value of allow_sub_interfaces.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowSubInterfaces;
let x0 = NetworkProfileNetworkFeatures::new().set_or_clear_allow_sub_interfaces(Some(AllowSubInterfaces::SubinterfacesBlocked));
let x_none = NetworkProfileNetworkFeatures::new().set_or_clear_allow_sub_interfaces(None::<AllowSubInterfaces>);
Source

pub fn set_allow_subnetwork_creation<T>(self, v: T) -> Self

Sets the value of allow_subnetwork_creation.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowSubnetworkCreation;
let x0 = NetworkProfileNetworkFeatures::new().set_allow_subnetwork_creation(AllowSubnetworkCreation::SubnetworkCreationBlocked);
Source

pub fn set_or_clear_allow_subnetwork_creation<T>(self, v: Option<T>) -> Self

Sets or clears the value of allow_subnetwork_creation.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowSubnetworkCreation;
let x0 = NetworkProfileNetworkFeatures::new().set_or_clear_allow_subnetwork_creation(Some(AllowSubnetworkCreation::SubnetworkCreationBlocked));
let x_none = NetworkProfileNetworkFeatures::new().set_or_clear_allow_subnetwork_creation(None::<AllowSubnetworkCreation>);
Source

pub fn set_allow_vpc_firewall_rules<T>(self, v: T) -> Self

Sets the value of allow_vpc_firewall_rules.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowVpcFirewallRules;
let x0 = NetworkProfileNetworkFeatures::new().set_allow_vpc_firewall_rules(AllowVpcFirewallRules::VpcFirewallRulesBlocked);
Source

pub fn set_or_clear_allow_vpc_firewall_rules<T>(self, v: Option<T>) -> Self

Sets or clears the value of allow_vpc_firewall_rules.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowVpcFirewallRules;
let x0 = NetworkProfileNetworkFeatures::new().set_or_clear_allow_vpc_firewall_rules(Some(AllowVpcFirewallRules::VpcFirewallRulesBlocked));
let x_none = NetworkProfileNetworkFeatures::new().set_or_clear_allow_vpc_firewall_rules(None::<AllowVpcFirewallRules>);
Source

pub fn set_allow_vpc_peering<T>(self, v: T) -> Self

Sets the value of allow_vpc_peering.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowVpcPeering;
let x0 = NetworkProfileNetworkFeatures::new().set_allow_vpc_peering(AllowVpcPeering::VpcPeeringBlocked);
Source

pub fn set_or_clear_allow_vpc_peering<T>(self, v: Option<T>) -> Self

Sets or clears the value of allow_vpc_peering.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowVpcPeering;
let x0 = NetworkProfileNetworkFeatures::new().set_or_clear_allow_vpc_peering(Some(AllowVpcPeering::VpcPeeringBlocked));
let x_none = NetworkProfileNetworkFeatures::new().set_or_clear_allow_vpc_peering(None::<AllowVpcPeering>);
Source

pub fn set_allow_vpn<T>(self, v: T) -> Self
where T: Into<AllowVpn>,

Sets the value of allow_vpn.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowVpn;
let x0 = NetworkProfileNetworkFeatures::new().set_allow_vpn(AllowVpn::VpnBlocked);
Source

pub fn set_or_clear_allow_vpn<T>(self, v: Option<T>) -> Self
where T: Into<AllowVpn>,

Sets or clears the value of allow_vpn.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::AllowVpn;
let x0 = NetworkProfileNetworkFeatures::new().set_or_clear_allow_vpn(Some(AllowVpn::VpnBlocked));
let x_none = NetworkProfileNetworkFeatures::new().set_or_clear_allow_vpn(None::<AllowVpn>);
Source

pub fn set_firewall_policy_types<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<FirewallPolicyTypes>,

Sets the value of firewall_policy_types.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::FirewallPolicyTypes;
let x = NetworkProfileNetworkFeatures::new().set_firewall_policy_types([
    FirewallPolicyTypes::VpcPolicy,
]);
Source

pub fn set_interface_types<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<InterfaceTypes>,

Sets the value of interface_types.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::InterfaceTypes;
let x = NetworkProfileNetworkFeatures::new().set_interface_types([
    InterfaceTypes::Idpf,
    InterfaceTypes::Irdma,
    InterfaceTypes::Mrdma,
]);
Source

pub fn set_multicast<T>(self, v: T) -> Self
where T: Into<Multicast>,

Sets the value of multicast.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::Multicast;
let x0 = NetworkProfileNetworkFeatures::new().set_multicast(Multicast::Ull);
Source

pub fn set_or_clear_multicast<T>(self, v: Option<T>) -> Self
where T: Into<Multicast>,

Sets or clears the value of multicast.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::Multicast;
let x0 = NetworkProfileNetworkFeatures::new().set_or_clear_multicast(Some(Multicast::Ull));
let x_none = NetworkProfileNetworkFeatures::new().set_or_clear_multicast(None::<Multicast>);
Source

pub fn set_predefined_network_internal_ipv_6_range<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of predefined_network_internal_ipv_6_range.

§Example
let x = NetworkProfileNetworkFeatures::new().set_predefined_network_internal_ipv_6_range("example");
Source

pub fn set_or_clear_predefined_network_internal_ipv_6_range<T>( self, v: Option<T>, ) -> Self
where T: Into<String>,

Sets or clears the value of predefined_network_internal_ipv_6_range.

§Example
let x = NetworkProfileNetworkFeatures::new().set_or_clear_predefined_network_internal_ipv_6_range(Some("example"));
let x = NetworkProfileNetworkFeatures::new().set_or_clear_predefined_network_internal_ipv_6_range(None::<String>);
Source

pub fn set_predefined_subnetwork_ranges<T, V>(self, v: T) -> Self

Sets the value of predefined_subnetwork_ranges.

§Example
use google_cloud_compute_v1::model::NetworkProfileNetworkFeaturesPredefinedSubnetworkRange;
let x = NetworkProfileNetworkFeatures::new()
    .set_predefined_subnetwork_ranges([
        NetworkProfileNetworkFeaturesPredefinedSubnetworkRange::default()/* use setters */,
        NetworkProfileNetworkFeaturesPredefinedSubnetworkRange::default()/* use (different) setters */,
    ]);
Source

pub fn set_subnet_purposes<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<SubnetPurposes>,

Sets the value of subnet_purposes.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::SubnetPurposes;
let x = NetworkProfileNetworkFeatures::new().set_subnet_purposes([
    SubnetPurposes::SubnetPurposePrivate,
]);
Source

pub fn set_subnet_stack_types<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<SubnetStackTypes>,

Sets the value of subnet_stack_types.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::SubnetStackTypes;
let x = NetworkProfileNetworkFeatures::new().set_subnet_stack_types([
    SubnetStackTypes::SubnetStackTypeIpv4Only,
    SubnetStackTypes::SubnetStackTypeIpv6Only,
]);
Source

pub fn set_subnetwork_purposes<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<SubnetworkPurposes>,

Sets the value of subnetwork_purposes.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::SubnetworkPurposes;
let x = NetworkProfileNetworkFeatures::new().set_subnetwork_purposes([
    SubnetworkPurposes::InternalHttpsLoadBalancer,
    SubnetworkPurposes::PeerMigration,
    SubnetworkPurposes::Private,
]);
Source

pub fn set_subnetwork_stack_types<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<SubnetworkStackTypes>,

Sets the value of subnetwork_stack_types.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::SubnetworkStackTypes;
let x = NetworkProfileNetworkFeatures::new().set_subnetwork_stack_types([
    SubnetworkStackTypes::Ipv4Only,
    SubnetworkStackTypes::Ipv6Only,
]);
Source

pub fn set_unicast<T>(self, v: T) -> Self
where T: Into<Unicast>,

Sets the value of unicast.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::Unicast;
let x0 = NetworkProfileNetworkFeatures::new().set_unicast(Unicast::Ull);
Source

pub fn set_or_clear_unicast<T>(self, v: Option<T>) -> Self
where T: Into<Unicast>,

Sets or clears the value of unicast.

§Example
use google_cloud_compute_v1::model::network_profile_network_features::Unicast;
let x0 = NetworkProfileNetworkFeatures::new().set_or_clear_unicast(Some(Unicast::Ull));
let x_none = NetworkProfileNetworkFeatures::new().set_or_clear_unicast(None::<Unicast>);

Trait Implementations§

Source§

impl Clone for NetworkProfileNetworkFeatures

Source§

fn clone(&self) -> NetworkProfileNetworkFeatures

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for NetworkProfileNetworkFeatures

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for NetworkProfileNetworkFeatures

Source§

fn default() -> NetworkProfileNetworkFeatures

Returns the “default value” for a type. Read more
Source§

impl Message for NetworkProfileNetworkFeatures

Source§

fn typename() -> &'static str

The typename of this message.
Source§

impl PartialEq for NetworkProfileNetworkFeatures

Source§

fn eq(&self, other: &NetworkProfileNetworkFeatures) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for NetworkProfileNetworkFeatures

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,