Skip to main content

Interconnect

Struct Interconnect 

Source
#[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 */
}
Available on crate feature 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
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.
§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

Source

pub fn new() -> Self

Source

pub fn set_aai_enabled<T>(self, v: T) -> Self
where T: Into<bool>,

Sets the value of aai_enabled.

§Example
let x = Interconnect::new().set_aai_enabled(true);
Source

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

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>);
Source

pub fn set_admin_enabled<T>(self, v: T) -> Self
where T: Into<bool>,

Sets the value of admin_enabled.

§Example
let x = Interconnect::new().set_admin_enabled(true);
Source

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

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>);
Source

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

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 */);
Source

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

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>);
Source

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

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,
]);
Source

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

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 */,
    ]);
Source

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

Sets the value of creation_timestamp.

§Example
let x = Interconnect::new().set_creation_timestamp("example");
Source

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

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>);
Source

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

Sets the value of customer_name.

§Example
let x = Interconnect::new().set_customer_name("example");
Source

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

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>);
Source

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

Sets the value of description.

§Example
let x = Interconnect::new().set_description("example");
Source

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

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>);
Source

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 */,
    ]);
Source

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

Sets the value of google_ip_address.

§Example
let x = Interconnect::new().set_google_ip_address("example");
Source

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

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>);
Source

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

Sets the value of google_reference_id.

§Example
let x = Interconnect::new().set_google_reference_id("example");
Source

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

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>);
Source

pub fn set_id<T>(self, v: T) -> Self
where T: Into<u64>,

Sets the value of id.

§Example
let x = Interconnect::new().set_id(42_u32);
Source

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

Sets or clears the value of id.

§Example
let x = Interconnect::new().set_or_clear_id(Some(42_u32));
let x = Interconnect::new().set_or_clear_id(None::<u32>);
Source

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

Sets the value of interconnect_attachments.

§Example
let x = Interconnect::new().set_interconnect_attachments(["a", "b", "c"]);
Source

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

Sets the value of interconnect_groups.

§Example
let x = Interconnect::new().set_interconnect_groups(["a", "b", "c"]);
Source

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

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);
Source

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

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>);
Source

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

Sets the value of kind.

§Example
let x = Interconnect::new().set_kind("example");
Source

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

Sets or clears the value of kind.

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

pub fn set_label_fingerprint<T>(self, v: T) -> Self
where T: Into<Bytes>,

Sets the value of label_fingerprint.

§Example
let x = Interconnect::new().set_label_fingerprint(bytes::Bytes::from_static(b"example"));
Source

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

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>);
Source

pub fn set_labels<T, K, V>(self, v: T) -> Self
where T: IntoIterator<Item = (K, V)>, K: Into<String>, V: Into<String>,

Sets the value of labels.

§Example
let x = Interconnect::new().set_labels([
    ("key0", "abc"),
    ("key1", "xyz"),
]);

Sets the value of link_type.

§Example
use google_cloud_compute_v1::model::interconnect::LinkType;
let x0 = Interconnect::new().set_link_type(LinkType::Ethernet10GLr);
let x1 = Interconnect::new().set_link_type(LinkType::Ethernet400GLr4);

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>);
Source

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

Sets the value of location.

§Example
let x = Interconnect::new().set_location("example");
Source

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

Sets or clears the value of location.

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

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

Sets the value of macsec.

§Example
use google_cloud_compute_v1::model::InterconnectMacsec;
let x = Interconnect::new().set_macsec(InterconnectMacsec::default()/* use setters */);
Source

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

Sets or clears the value of macsec.

§Example
use google_cloud_compute_v1::model::InterconnectMacsec;
let x = Interconnect::new().set_or_clear_macsec(Some(InterconnectMacsec::default()/* use setters */));
let x = Interconnect::new().set_or_clear_macsec(None::<InterconnectMacsec>);
Source

pub fn set_macsec_enabled<T>(self, v: T) -> Self
where T: Into<bool>,

Sets the value of macsec_enabled.

§Example
let x = Interconnect::new().set_macsec_enabled(true);
Source

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

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>);
Source

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

Sets the value of name.

§Example
let x = Interconnect::new().set_name("example");
Source

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

Sets or clears the value of name.

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

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

Sets the value of noc_contact_email.

§Example
let x = Interconnect::new().set_noc_contact_email("example");
Source

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

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>);
Source

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

Sets the value of operational_status.

§Example
use google_cloud_compute_v1::model::interconnect::OperationalStatus;
let x0 = Interconnect::new().set_operational_status(OperationalStatus::OsUnprovisioned);
Source

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

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>);
Source

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

Sets the value of params.

§Example
use google_cloud_compute_v1::model::InterconnectParams;
let x = Interconnect::new().set_params(InterconnectParams::default()/* use setters */);
Source

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

Sets or clears the value of params.

§Example
use google_cloud_compute_v1::model::InterconnectParams;
let x = Interconnect::new().set_or_clear_params(Some(InterconnectParams::default()/* use setters */));
let x = Interconnect::new().set_or_clear_params(None::<InterconnectParams>);
Source

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

Sets the value of peer_ip_address.

§Example
let x = Interconnect::new().set_peer_ip_address("example");
Source

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

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>);

Sets the value of provisioned_link_count.

§Example
let x = Interconnect::new().set_provisioned_link_count(42);

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>);
Source

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

Sets the value of remote_location.

§Example
let x = Interconnect::new().set_remote_location("example");
Source

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

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>);
Source

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

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,
]);

Sets the value of requested_link_count.

§Example
let x = Interconnect::new().set_requested_link_count(42);

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>);
Source

pub fn set_satisfies_pzs<T>(self, v: T) -> Self
where T: Into<bool>,

Sets the value of satisfies_pzs.

§Example
let x = Interconnect::new().set_satisfies_pzs(true);
Source

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

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>);

Sets the value of self_link.

§Example
let x = Interconnect::new().set_self_link("example");

Sets or clears the value of self_link.

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

pub fn set_state<T>(self, v: T) -> Self
where T: Into<State>,

Sets the value of state.

§Example
use google_cloud_compute_v1::model::interconnect::State;
let x0 = Interconnect::new().set_state(State::Unprovisioned);
Source

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

Sets or clears the value of state.

§Example
use google_cloud_compute_v1::model::interconnect::State;
let x0 = Interconnect::new().set_or_clear_state(Some(State::Unprovisioned));
let x_none = Interconnect::new().set_or_clear_state(None::<State>);
Source

pub fn set_subzone<T>(self, v: T) -> Self
where T: Into<Subzone>,

Sets the value of subzone.

§Example
use google_cloud_compute_v1::model::interconnect::Subzone;
let x0 = Interconnect::new().set_subzone(Subzone::B);
Source

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

Sets or clears the value of subzone.

§Example
use google_cloud_compute_v1::model::interconnect::Subzone;
let x0 = Interconnect::new().set_or_clear_subzone(Some(Subzone::B));
let x_none = Interconnect::new().set_or_clear_subzone(None::<Subzone>);
Source

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

Sets the value of wire_groups.

§Example
let x = Interconnect::new().set_wire_groups(["a", "b", "c"]);

Trait Implementations§

Source§

impl Clone for Interconnect

Source§

fn clone(&self) -> Interconnect

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 Interconnect

Source§

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

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

impl Default for Interconnect

Source§

fn default() -> Interconnect

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

impl Message for Interconnect

Source§

fn typename() -> &'static str

The typename of this message.
Source§

impl PartialEq for Interconnect

Source§

fn eq(&self, other: &Interconnect) -> 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 Interconnect

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>,