#[non_exhaustive]pub struct Interconnect {Show 36 fields
pub aai_enabled: Option<bool>,
pub admin_enabled: Option<bool>,
pub application_aware_interconnect: Option<InterconnectApplicationAwareInterconnect>,
pub available_features: Vec<AvailableFeatures>,
pub circuit_infos: Vec<InterconnectCircuitInfo>,
pub creation_timestamp: Option<String>,
pub customer_name: Option<String>,
pub description: Option<String>,
pub expected_outages: Vec<InterconnectOutageNotification>,
pub google_ip_address: Option<String>,
pub google_reference_id: Option<String>,
pub id: Option<u64>,
pub interconnect_attachments: Vec<String>,
pub interconnect_groups: Vec<String>,
pub interconnect_type: Option<InterconnectType>,
pub kind: Option<String>,
pub label_fingerprint: Option<Bytes>,
pub labels: HashMap<String, String>,
pub link_type: Option<LinkType>,
pub location: Option<String>,
pub macsec: Option<InterconnectMacsec>,
pub macsec_enabled: Option<bool>,
pub name: Option<String>,
pub noc_contact_email: Option<String>,
pub operational_status: Option<OperationalStatus>,
pub params: Option<InterconnectParams>,
pub peer_ip_address: Option<String>,
pub provisioned_link_count: Option<i32>,
pub remote_location: Option<String>,
pub requested_features: Vec<RequestedFeatures>,
pub requested_link_count: Option<i32>,
pub satisfies_pzs: Option<bool>,
pub self_link: Option<String>,
pub state: Option<State>,
pub subzone: Option<Subzone>,
pub wire_groups: Vec<String>,
/* private fields */
}interconnects only.Expand description
Represents an Interconnect resource.
An Interconnect resource is a dedicated connection between the Google Cloud network and your on-premises network. For more information, read the Dedicated Interconnect Overview.
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.aai_enabled: Option<bool>Enable or disable the application awareness feature on this Cloud Interconnect.
admin_enabled: Option<bool>Administrative status of the interconnect. When this is set to true, the Interconnect is functional and can carry traffic. When set to false, no packets can be carried over the interconnect and no BGP routes are exchanged over it. By default, the status is set to true.
application_aware_interconnect: Option<InterconnectApplicationAwareInterconnect>Configuration information for application awareness on this Cloud Interconnect.
available_features: Vec<AvailableFeatures>[Output only] List of features available for this Interconnect connection, which can take one of the following values:
- IF_MACSEC: If present, then the Interconnect connection is provisioned on MACsec capable hardware ports. If not present, then the Interconnect connection is provisioned on non-MACsec capable ports. Any attempt to enable MACsec will fail.
- IF_CROSS_SITE_NETWORK: If present, then the Interconnect connection is provisioned exclusively for Cross-Site Networking. Any attempt to configure VLAN attachments will fail. If not present, then the Interconnect connection is not provisioned for Cross-Site Networking. Any attempt to use it for Cross-Site Networking will fail.
circuit_infos: Vec<InterconnectCircuitInfo>Output only. [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG.
creation_timestamp: Option<String>Output only. [Output Only] Creation timestamp inRFC3339 text format.
customer_name: Option<String>Customer name, to put in the Letter of Authorization as the party authorized to request a crossconnect.
description: Option<String>An optional description of this resource. Provide this property when you create the resource.
expected_outages: Vec<InterconnectOutageNotification>Output only. [Output Only] A list of outages expected for this Interconnect.
google_ip_address: Option<String>Output only. [Output Only] IP address configured on the Google side of the Interconnect link. This can be used only for ping tests.
google_reference_id: Option<String>Output only. [Output Only] Google reference ID to be used when raising support tickets with Google or otherwise to debug backend connectivity issues.
id: Option<u64>Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
interconnect_attachments: Vec<String>Output only. [Output Only] A list of the URLs of all InterconnectAttachments configured to use this Interconnect.
interconnect_groups: Vec<String>Output only. [Output Only] URLs of InterconnectGroups that include this Interconnect. Order is arbitrary and items are unique.
interconnect_type: Option<InterconnectType>Type of interconnect, which can take one of the following values:
- PARTNER: A partner-managed interconnection shared between customers though a partner.
- DEDICATED: A dedicated physical interconnection with the customer.
Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED.
kind: Option<String>Output only. [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects.
label_fingerprint: Option<Bytes>A fingerprint for the labels being applied to this Interconnect, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error412 conditionNotMet.
To see the latest fingerprint, make a get() request to retrieve an Interconnect.
labels: HashMap<String, String>Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035. Label values may be empty.
link_type: Option<LinkType>Type of link requested, which can take one of the following values:
- LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics
- LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics.
- LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 optics.
Note that this field indicates the speed of each of the links in the bundle, not the speed of the entire bundle.
location: Option<String>URL of the InterconnectLocation object that represents where this connection is to be provisioned.
macsec: Option<InterconnectMacsec>Configuration that enables Media Access Control security (MACsec) on the Cloud Interconnect connection between Google and your on-premises router.
macsec_enabled: Option<bool>Enable or disable MACsec on this Interconnect connection. MACsec enablement fails if the MACsec object is not specified.
name: Option<String>Name of the resource. Provided by the client when the resource is created.
The name must be 1-63 characters long, and comply withRFC1035.
Specifically, the name must be 1-63 characters long and match the regular
expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first
character must be a lowercase letter, and all following characters must be
a dash, lowercase letter, or digit, except the last character, which cannot
be a dash.
noc_contact_email: Option<String>Email address to contact the customer NOC for operations and maintenance notifications regarding this Interconnect. If specified, this will be used for notifications in addition to all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This field is required for users who sign up for Cloud Interconnect using workforce identity federation.
operational_status: Option<OperationalStatus>Output only. [Output Only] The current status of this Interconnect’s functionality, which can take one of the following values:
-
OS_ACTIVE: A valid Interconnect, which is turned up and is ready to use. Attachments may be provisioned on this Interconnect.
-
OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be provisioned on this Interconnect.
-
OS_UNDER_MAINTENANCE: An Interconnect that is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect.
params: Option<InterconnectParams>Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload.
peer_ip_address: Option<String>Output only. [Output Only] IP address configured on the customer side of the Interconnect link. The customer should configure this IP address during turnup when prompted by Google NOC. This can be used only for ping tests.
provisioned_link_count: Option<i32>Output only. [Output Only] Number of links actually provisioned in this interconnect.
remote_location: Option<String>Indicates that this is a Cross-Cloud Interconnect. This field specifies the location outside of Google’s network that the interconnect is connected to.
requested_features: Vec<RequestedFeatures>Optional. This parameter can be provided only with Interconnect INSERT. It isn’t valid for Interconnect PATCH. List of features requested for this Interconnect connection, which can take one of the following values:
- IF_MACSEC: If specified, then the connection is created on MACsec capable hardware ports. If not specified, non-MACsec capable ports will also be considered.
- IF_CROSS_SITE_NETWORK: If specified, then the connection is created exclusively for Cross-Site Networking. The connection can not be used for Cross-Site Networking unless this feature is specified.
requested_link_count: Option<i32>Target number of physical links in the link bundle, as requested by the customer.
satisfies_pzs: Option<bool>Output only. [Output Only] Reserved for future use.
self_link: Option<String>Output only. [Output Only] Server-defined URL for the resource.
state: Option<State>Output only. [Output Only] The current state of Interconnect functionality, which can take one of the following values:
- ACTIVE: The Interconnect is valid, turned up and ready to use. Attachments may be provisioned on this Interconnect.
- UNPROVISIONED: The Interconnect has not completed turnup. No attachments may be provisioned on this Interconnect.
- UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect.
subzone: Option<Subzone>Specific subzone in the InterconnectLocation that represents where this connection is to be provisioned.
wire_groups: Vec<String>Output only. [Output Only] A list of the URLs of all CrossSiteNetwork WireGroups configured to use this Interconnect. The Interconnect cannot be deleted if this list is non-empty.
Implementations§
Source§impl Interconnect
impl Interconnect
pub fn new() -> Self
Sourcepub fn set_aai_enabled<T>(self, v: T) -> Self
pub fn set_aai_enabled<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_aai_enabled<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_aai_enabled<T>(self, v: Option<T>) -> Self
Sets or clears the value of aai_enabled.
§Example
let x = Interconnect::new().set_or_clear_aai_enabled(Some(false));
let x = Interconnect::new().set_or_clear_aai_enabled(None::<bool>);Sourcepub fn set_admin_enabled<T>(self, v: T) -> Self
pub fn set_admin_enabled<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_admin_enabled<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_admin_enabled<T>(self, v: Option<T>) -> Self
Sets or clears the value of admin_enabled.
§Example
let x = Interconnect::new().set_or_clear_admin_enabled(Some(false));
let x = Interconnect::new().set_or_clear_admin_enabled(None::<bool>);Sourcepub fn set_application_aware_interconnect<T>(self, v: T) -> Selfwhere
T: Into<InterconnectApplicationAwareInterconnect>,
pub fn set_application_aware_interconnect<T>(self, v: T) -> Selfwhere
T: Into<InterconnectApplicationAwareInterconnect>,
Sets the value of application_aware_interconnect.
§Example
use google_cloud_compute_v1::model::InterconnectApplicationAwareInterconnect;
let x = Interconnect::new().set_application_aware_interconnect(InterconnectApplicationAwareInterconnect::default()/* use setters */);Sourcepub fn set_or_clear_application_aware_interconnect<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<InterconnectApplicationAwareInterconnect>,
pub fn set_or_clear_application_aware_interconnect<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<InterconnectApplicationAwareInterconnect>,
Sets or clears the value of application_aware_interconnect.
§Example
use google_cloud_compute_v1::model::InterconnectApplicationAwareInterconnect;
let x = Interconnect::new().set_or_clear_application_aware_interconnect(Some(InterconnectApplicationAwareInterconnect::default()/* use setters */));
let x = Interconnect::new().set_or_clear_application_aware_interconnect(None::<InterconnectApplicationAwareInterconnect>);Sourcepub fn set_available_features<T, V>(self, v: T) -> Self
pub fn set_available_features<T, V>(self, v: T) -> Self
Sets the value of available_features.
§Example
use google_cloud_compute_v1::model::interconnect::AvailableFeatures;
let x = Interconnect::new().set_available_features([
AvailableFeatures::IfL2Forwarding,
AvailableFeatures::IfMacsec,
]);Sourcepub fn set_circuit_infos<T, V>(self, v: T) -> Self
pub fn set_circuit_infos<T, V>(self, v: T) -> Self
Sets the value of circuit_infos.
§Example
use google_cloud_compute_v1::model::InterconnectCircuitInfo;
let x = Interconnect::new()
.set_circuit_infos([
InterconnectCircuitInfo::default()/* use setters */,
InterconnectCircuitInfo::default()/* use (different) setters */,
]);Sourcepub fn set_creation_timestamp<T>(self, v: T) -> Self
pub fn set_creation_timestamp<T>(self, v: T) -> Self
Sets the value of creation_timestamp.
§Example
let x = Interconnect::new().set_creation_timestamp("example");Sourcepub fn set_or_clear_creation_timestamp<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_creation_timestamp<T>(self, v: Option<T>) -> Self
Sets or clears the value of creation_timestamp.
§Example
let x = Interconnect::new().set_or_clear_creation_timestamp(Some("example"));
let x = Interconnect::new().set_or_clear_creation_timestamp(None::<String>);Sourcepub fn set_customer_name<T>(self, v: T) -> Self
pub fn set_customer_name<T>(self, v: T) -> Self
Sets the value of customer_name.
§Example
let x = Interconnect::new().set_customer_name("example");Sourcepub fn set_or_clear_customer_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_customer_name<T>(self, v: Option<T>) -> Self
Sets or clears the value of customer_name.
§Example
let x = Interconnect::new().set_or_clear_customer_name(Some("example"));
let x = Interconnect::new().set_or_clear_customer_name(None::<String>);Sourcepub fn set_description<T>(self, v: T) -> Self
pub fn set_description<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_description<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_description<T>(self, v: Option<T>) -> Self
Sets or clears the value of description.
§Example
let x = Interconnect::new().set_or_clear_description(Some("example"));
let x = Interconnect::new().set_or_clear_description(None::<String>);Sourcepub fn set_expected_outages<T, V>(self, v: T) -> Self
pub fn set_expected_outages<T, V>(self, v: T) -> Self
Sets the value of expected_outages.
§Example
use google_cloud_compute_v1::model::InterconnectOutageNotification;
let x = Interconnect::new()
.set_expected_outages([
InterconnectOutageNotification::default()/* use setters */,
InterconnectOutageNotification::default()/* use (different) setters */,
]);Sourcepub fn set_google_ip_address<T>(self, v: T) -> Self
pub fn set_google_ip_address<T>(self, v: T) -> Self
Sets the value of google_ip_address.
§Example
let x = Interconnect::new().set_google_ip_address("example");Sourcepub fn set_or_clear_google_ip_address<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_google_ip_address<T>(self, v: Option<T>) -> Self
Sets or clears the value of google_ip_address.
§Example
let x = Interconnect::new().set_or_clear_google_ip_address(Some("example"));
let x = Interconnect::new().set_or_clear_google_ip_address(None::<String>);Sourcepub fn set_google_reference_id<T>(self, v: T) -> Self
pub fn set_google_reference_id<T>(self, v: T) -> Self
Sets the value of google_reference_id.
§Example
let x = Interconnect::new().set_google_reference_id("example");Sourcepub fn set_or_clear_google_reference_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_google_reference_id<T>(self, v: Option<T>) -> Self
Sets or clears the value of google_reference_id.
§Example
let x = Interconnect::new().set_or_clear_google_reference_id(Some("example"));
let x = Interconnect::new().set_or_clear_google_reference_id(None::<String>);Sourcepub fn set_or_clear_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_id<T>(self, v: Option<T>) -> Self
Sourcepub fn set_interconnect_attachments<T, V>(self, v: T) -> Self
pub fn set_interconnect_attachments<T, V>(self, v: T) -> Self
Sets the value of interconnect_attachments.
§Example
let x = Interconnect::new().set_interconnect_attachments(["a", "b", "c"]);Sourcepub fn set_interconnect_groups<T, V>(self, v: T) -> Self
pub fn set_interconnect_groups<T, V>(self, v: T) -> Self
Sets the value of interconnect_groups.
§Example
let x = Interconnect::new().set_interconnect_groups(["a", "b", "c"]);Sourcepub fn set_interconnect_type<T>(self, v: T) -> Selfwhere
T: Into<InterconnectType>,
pub fn set_interconnect_type<T>(self, v: T) -> Selfwhere
T: Into<InterconnectType>,
Sets the value of interconnect_type.
§Example
use google_cloud_compute_v1::model::interconnect::InterconnectType;
let x0 = Interconnect::new().set_interconnect_type(InterconnectType::ItPrivate);
let x1 = Interconnect::new().set_interconnect_type(InterconnectType::Partner);Sourcepub fn set_or_clear_interconnect_type<T>(self, v: Option<T>) -> Selfwhere
T: Into<InterconnectType>,
pub fn set_or_clear_interconnect_type<T>(self, v: Option<T>) -> Selfwhere
T: Into<InterconnectType>,
Sets or clears the value of interconnect_type.
§Example
use google_cloud_compute_v1::model::interconnect::InterconnectType;
let x0 = Interconnect::new().set_or_clear_interconnect_type(Some(InterconnectType::ItPrivate));
let x1 = Interconnect::new().set_or_clear_interconnect_type(Some(InterconnectType::Partner));
let x_none = Interconnect::new().set_or_clear_interconnect_type(None::<InterconnectType>);Sourcepub fn set_or_clear_kind<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_kind<T>(self, v: Option<T>) -> Self
Sourcepub fn set_label_fingerprint<T>(self, v: T) -> Self
pub fn set_label_fingerprint<T>(self, v: T) -> Self
Sets the value of label_fingerprint.
§Example
let x = Interconnect::new().set_label_fingerprint(bytes::Bytes::from_static(b"example"));Sourcepub fn set_or_clear_label_fingerprint<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_label_fingerprint<T>(self, v: Option<T>) -> Self
Sets or clears the value of label_fingerprint.
§Example
let x = Interconnect::new().set_or_clear_label_fingerprint(Some(bytes::Bytes::from_static(b"example")));
let x = Interconnect::new().set_or_clear_label_fingerprint(None::<bytes::Bytes>);Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sourcepub fn set_link_type<T>(self, v: T) -> Self
pub fn set_link_type<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_link_type<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_link_type<T>(self, v: Option<T>) -> Self
Sets or clears the value of link_type.
§Example
use google_cloud_compute_v1::model::interconnect::LinkType;
let x0 = Interconnect::new().set_or_clear_link_type(Some(LinkType::Ethernet10GLr));
let x1 = Interconnect::new().set_or_clear_link_type(Some(LinkType::Ethernet400GLr4));
let x_none = Interconnect::new().set_or_clear_link_type(None::<LinkType>);Sourcepub fn set_location<T>(self, v: T) -> Self
pub fn set_location<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_location<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_location<T>(self, v: Option<T>) -> Self
Sourcepub fn set_macsec<T>(self, v: T) -> Selfwhere
T: Into<InterconnectMacsec>,
pub fn set_macsec<T>(self, v: T) -> Selfwhere
T: Into<InterconnectMacsec>,
Sourcepub fn set_or_clear_macsec<T>(self, v: Option<T>) -> Selfwhere
T: Into<InterconnectMacsec>,
pub fn set_or_clear_macsec<T>(self, v: Option<T>) -> Selfwhere
T: Into<InterconnectMacsec>,
Sourcepub fn set_macsec_enabled<T>(self, v: T) -> Self
pub fn set_macsec_enabled<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_macsec_enabled<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_macsec_enabled<T>(self, v: Option<T>) -> Self
Sets or clears the value of macsec_enabled.
§Example
let x = Interconnect::new().set_or_clear_macsec_enabled(Some(false));
let x = Interconnect::new().set_or_clear_macsec_enabled(None::<bool>);Sourcepub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
Sourcepub fn set_noc_contact_email<T>(self, v: T) -> Self
pub fn set_noc_contact_email<T>(self, v: T) -> Self
Sets the value of noc_contact_email.
§Example
let x = Interconnect::new().set_noc_contact_email("example");Sourcepub fn set_or_clear_noc_contact_email<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_noc_contact_email<T>(self, v: Option<T>) -> Self
Sets or clears the value of noc_contact_email.
§Example
let x = Interconnect::new().set_or_clear_noc_contact_email(Some("example"));
let x = Interconnect::new().set_or_clear_noc_contact_email(None::<String>);Sourcepub fn set_operational_status<T>(self, v: T) -> Selfwhere
T: Into<OperationalStatus>,
pub fn set_operational_status<T>(self, v: T) -> Selfwhere
T: Into<OperationalStatus>,
Sets the value of operational_status.
§Example
use google_cloud_compute_v1::model::interconnect::OperationalStatus;
let x0 = Interconnect::new().set_operational_status(OperationalStatus::OsUnprovisioned);Sourcepub fn set_or_clear_operational_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<OperationalStatus>,
pub fn set_or_clear_operational_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<OperationalStatus>,
Sets or clears the value of operational_status.
§Example
use google_cloud_compute_v1::model::interconnect::OperationalStatus;
let x0 = Interconnect::new().set_or_clear_operational_status(Some(OperationalStatus::OsUnprovisioned));
let x_none = Interconnect::new().set_or_clear_operational_status(None::<OperationalStatus>);Sourcepub fn set_params<T>(self, v: T) -> Selfwhere
T: Into<InterconnectParams>,
pub fn set_params<T>(self, v: T) -> Selfwhere
T: Into<InterconnectParams>,
Sourcepub fn set_or_clear_params<T>(self, v: Option<T>) -> Selfwhere
T: Into<InterconnectParams>,
pub fn set_or_clear_params<T>(self, v: Option<T>) -> Selfwhere
T: Into<InterconnectParams>,
Sourcepub fn set_peer_ip_address<T>(self, v: T) -> Self
pub fn set_peer_ip_address<T>(self, v: T) -> Self
Sets the value of peer_ip_address.
§Example
let x = Interconnect::new().set_peer_ip_address("example");Sourcepub fn set_or_clear_peer_ip_address<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_peer_ip_address<T>(self, v: Option<T>) -> Self
Sets or clears the value of peer_ip_address.
§Example
let x = Interconnect::new().set_or_clear_peer_ip_address(Some("example"));
let x = Interconnect::new().set_or_clear_peer_ip_address(None::<String>);Sourcepub fn set_provisioned_link_count<T>(self, v: T) -> Self
pub fn set_provisioned_link_count<T>(self, v: T) -> Self
Sets the value of provisioned_link_count.
§Example
let x = Interconnect::new().set_provisioned_link_count(42);Sourcepub fn set_or_clear_provisioned_link_count<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_provisioned_link_count<T>(self, v: Option<T>) -> Self
Sets or clears the value of provisioned_link_count.
§Example
let x = Interconnect::new().set_or_clear_provisioned_link_count(Some(42));
let x = Interconnect::new().set_or_clear_provisioned_link_count(None::<i32>);Sourcepub fn set_remote_location<T>(self, v: T) -> Self
pub fn set_remote_location<T>(self, v: T) -> Self
Sets the value of remote_location.
§Example
let x = Interconnect::new().set_remote_location("example");Sourcepub fn set_or_clear_remote_location<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_remote_location<T>(self, v: Option<T>) -> Self
Sets or clears the value of remote_location.
§Example
let x = Interconnect::new().set_or_clear_remote_location(Some("example"));
let x = Interconnect::new().set_or_clear_remote_location(None::<String>);Sourcepub fn set_requested_features<T, V>(self, v: T) -> Self
pub fn set_requested_features<T, V>(self, v: T) -> Self
Sets the value of requested_features.
§Example
use google_cloud_compute_v1::model::interconnect::RequestedFeatures;
let x = Interconnect::new().set_requested_features([
RequestedFeatures::IfL2Forwarding,
RequestedFeatures::IfMacsec,
]);Sourcepub fn set_requested_link_count<T>(self, v: T) -> Self
pub fn set_requested_link_count<T>(self, v: T) -> Self
Sets the value of requested_link_count.
§Example
let x = Interconnect::new().set_requested_link_count(42);Sourcepub fn set_or_clear_requested_link_count<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_requested_link_count<T>(self, v: Option<T>) -> Self
Sets or clears the value of requested_link_count.
§Example
let x = Interconnect::new().set_or_clear_requested_link_count(Some(42));
let x = Interconnect::new().set_or_clear_requested_link_count(None::<i32>);Sourcepub fn set_satisfies_pzs<T>(self, v: T) -> Self
pub fn set_satisfies_pzs<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_satisfies_pzs<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_satisfies_pzs<T>(self, v: Option<T>) -> Self
Sets or clears the value of satisfies_pzs.
§Example
let x = Interconnect::new().set_or_clear_satisfies_pzs(Some(false));
let x = Interconnect::new().set_or_clear_satisfies_pzs(None::<bool>);Sourcepub fn set_self_link<T>(self, v: T) -> Self
pub fn set_self_link<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_self_link<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_self_link<T>(self, v: Option<T>) -> Self
Sourcepub fn set_or_clear_state<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_state<T>(self, v: Option<T>) -> Self
Sourcepub fn set_subzone<T>(self, v: T) -> Self
pub fn set_subzone<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_subzone<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_subzone<T>(self, v: Option<T>) -> Self
Sourcepub fn set_wire_groups<T, V>(self, v: T) -> Self
pub fn set_wire_groups<T, V>(self, v: T) -> Self
Sets the value of wire_groups.
§Example
let x = Interconnect::new().set_wire_groups(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for Interconnect
impl Clone for Interconnect
Source§fn clone(&self) -> Interconnect
fn clone(&self) -> Interconnect
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more