#[non_exhaustive]pub struct InterconnectLocation {Show 20 fields
pub address: Option<String>,
pub availability_zone: Option<String>,
pub available_features: Vec<AvailableFeatures>,
pub available_link_types: Vec<AvailableLinkTypes>,
pub city: Option<String>,
pub continent: Option<Continent>,
pub creation_timestamp: Option<String>,
pub cross_site_interconnect_infos: Vec<InterconnectLocationCrossSiteInterconnectInfo>,
pub description: Option<String>,
pub facility_provider: Option<String>,
pub facility_provider_facility_id: Option<String>,
pub id: Option<u64>,
pub kind: Option<String>,
pub name: Option<String>,
pub peeringdb_facility_id: Option<String>,
pub region_infos: Vec<InterconnectLocationRegionInfo>,
pub self_link: Option<String>,
pub single_region_production_critical_peer_locations: Vec<String>,
pub status: Option<Status>,
pub supports_pzs: Option<bool>,
/* private fields */
}interconnect-locations only.Expand description
Represents an Interconnect Attachment (VLAN) Location resource.
You can use this resource to find location details about an Interconnect attachment (VLAN). For more information about interconnect attachments, read Creating VLAN Attachments.
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.address: Option<String>Output only. [Output Only] The postal address of the Point of Presence, each line in the address is separated by a newline character.
availability_zone: Option<String>[Output Only] Availability zone for this InterconnectLocation. Within a metropolitan area (metro), maintenance will not be simultaneously scheduled in more than one availability zone. Example: “zone1” or “zone2”.
available_features: Vec<AvailableFeatures>[Output only] List of features available at this InterconnectLocation, which can take one of the following values:
- IF_MACSEC
- IF_CROSS_SITE_NETWORK
available_link_types: Vec<AvailableLinkTypes>[Output only] List of link types available at this InterconnectLocation, which can take one of the following values:
- LINK_TYPE_ETHERNET_10G_LR
- LINK_TYPE_ETHERNET_100G_LR
- LINK_TYPE_ETHERNET_400G_LR4
city: Option<String>[Output Only] Metropolitan area designator that indicates which city an interconnect is located. For example: “Chicago, IL”, “Amsterdam, Netherlands”.
continent: Option<Continent>[Output Only] Continent for this location, which can take one of the following values:
- AFRICA
- ASIA_PAC
- EUROPE
- NORTH_AMERICA
- SOUTH_AMERICA
creation_timestamp: Option<String>Output only. [Output Only] Creation timestamp inRFC3339 text format.
cross_site_interconnect_infos: Vec<InterconnectLocationCrossSiteInterconnectInfo>[Output Only] A list of InterconnectLocation.CrossSiteInterconnectInfo objects, that describe where Cross-Site Interconnect wires may connect to from this location and associated connection parameters. Cross-Site Interconnect isn’t allowed to locations which are not listed.
description: Option<String>Output only. [Output Only] An optional description of the resource.
facility_provider: Option<String>Output only. [Output Only] The name of the provider for this facility (e.g., EQUINIX).
facility_provider_facility_id: Option<String>Output only. [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1).
id: Option<u64>Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
kind: Option<String>Output only. [Output Only] Type of the resource. Alwayscompute#interconnectLocation for interconnect locations.
name: Option<String>Output only. [Output Only] Name of the resource.
peeringdb_facility_id: Option<String>Output only. [Output Only] The peeringdb identifier for this facility (corresponding with a netfac type in peeringdb).
region_infos: Vec<InterconnectLocationRegionInfo>Output only. [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions.
self_link: Option<String>Output only. [Output Only] Server-defined URL for the resource.
single_region_production_critical_peer_locations: Vec<String>Output only. [Output Only] URLs of the other locations that can pair up with this location to support Single-Region 99.99% SLA. E.g. iad-zone1-1 and iad-zone2-5467 are Single-Region 99.99% peer locations of each other.
status: Option<Status>[Output Only] The status of this InterconnectLocation, which can take one of the following values:
- CLOSED: The InterconnectLocation is closed and is unavailable for provisioning new Interconnects.
- AVAILABLE: The InterconnectLocation is available for provisioning new Interconnects.
supports_pzs: Option<bool>Output only. [Output Only] Reserved for future use.
Implementations§
Source§impl InterconnectLocation
impl InterconnectLocation
pub fn new() -> Self
Sourcepub fn set_address<T>(self, v: T) -> Self
pub fn set_address<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_address<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_address<T>(self, v: Option<T>) -> Self
Sourcepub fn set_availability_zone<T>(self, v: T) -> Self
pub fn set_availability_zone<T>(self, v: T) -> Self
Sets the value of availability_zone.
§Example
let x = InterconnectLocation::new().set_availability_zone("example");Sourcepub fn set_or_clear_availability_zone<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_availability_zone<T>(self, v: Option<T>) -> Self
Sets or clears the value of availability_zone.
§Example
let x = InterconnectLocation::new().set_or_clear_availability_zone(Some("example"));
let x = InterconnectLocation::new().set_or_clear_availability_zone(None::<String>);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_location::AvailableFeatures;
let x = InterconnectLocation::new().set_available_features([
AvailableFeatures::IfL2Forwarding,
AvailableFeatures::IfMacsec,
]);Sourcepub fn set_available_link_types<T, V>(self, v: T) -> Self
pub fn set_available_link_types<T, V>(self, v: T) -> Self
Sets the value of available_link_types.
§Example
use google_cloud_compute_v1::model::interconnect_location::AvailableLinkTypes;
let x = InterconnectLocation::new().set_available_link_types([
AvailableLinkTypes::LinkTypeEthernet10GLr,
AvailableLinkTypes::LinkTypeEthernet400GLr4,
]);Sourcepub fn set_or_clear_city<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_city<T>(self, v: Option<T>) -> Self
Sourcepub fn set_continent<T>(self, v: T) -> Self
pub fn set_continent<T>(self, v: T) -> Self
Sets the value of continent.
§Example
use google_cloud_compute_v1::model::interconnect_location::Continent;
let x0 = InterconnectLocation::new().set_continent(Continent::AsiaPac);
let x1 = InterconnectLocation::new().set_continent(Continent::CAfrica);
let x2 = InterconnectLocation::new().set_continent(Continent::CAsiaPac);Sourcepub fn set_or_clear_continent<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_continent<T>(self, v: Option<T>) -> Self
Sets or clears the value of continent.
§Example
use google_cloud_compute_v1::model::interconnect_location::Continent;
let x0 = InterconnectLocation::new().set_or_clear_continent(Some(Continent::AsiaPac));
let x1 = InterconnectLocation::new().set_or_clear_continent(Some(Continent::CAfrica));
let x2 = InterconnectLocation::new().set_or_clear_continent(Some(Continent::CAsiaPac));
let x_none = InterconnectLocation::new().set_or_clear_continent(None::<Continent>);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 = InterconnectLocation::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 = InterconnectLocation::new().set_or_clear_creation_timestamp(Some("example"));
let x = InterconnectLocation::new().set_or_clear_creation_timestamp(None::<String>);Sourcepub fn set_cross_site_interconnect_infos<T, V>(self, v: T) -> Self
pub fn set_cross_site_interconnect_infos<T, V>(self, v: T) -> Self
Sets the value of cross_site_interconnect_infos.
§Example
use google_cloud_compute_v1::model::InterconnectLocationCrossSiteInterconnectInfo;
let x = InterconnectLocation::new()
.set_cross_site_interconnect_infos([
InterconnectLocationCrossSiteInterconnectInfo::default()/* use setters */,
InterconnectLocationCrossSiteInterconnectInfo::default()/* use (different) setters */,
]);Sourcepub fn set_description<T>(self, v: T) -> Self
pub fn set_description<T>(self, v: T) -> Self
Sets the value of description.
§Example
let x = InterconnectLocation::new().set_description("example");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 = InterconnectLocation::new().set_or_clear_description(Some("example"));
let x = InterconnectLocation::new().set_or_clear_description(None::<String>);Sourcepub fn set_facility_provider<T>(self, v: T) -> Self
pub fn set_facility_provider<T>(self, v: T) -> Self
Sets the value of facility_provider.
§Example
let x = InterconnectLocation::new().set_facility_provider("example");Sourcepub fn set_or_clear_facility_provider<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_facility_provider<T>(self, v: Option<T>) -> Self
Sets or clears the value of facility_provider.
§Example
let x = InterconnectLocation::new().set_or_clear_facility_provider(Some("example"));
let x = InterconnectLocation::new().set_or_clear_facility_provider(None::<String>);Sourcepub fn set_facility_provider_facility_id<T>(self, v: T) -> Self
pub fn set_facility_provider_facility_id<T>(self, v: T) -> Self
Sets the value of facility_provider_facility_id.
§Example
let x = InterconnectLocation::new().set_facility_provider_facility_id("example");Sourcepub fn set_or_clear_facility_provider_facility_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_facility_provider_facility_id<T>(self, v: Option<T>) -> Self
Sets or clears the value of facility_provider_facility_id.
§Example
let x = InterconnectLocation::new().set_or_clear_facility_provider_facility_id(Some("example"));
let x = InterconnectLocation::new().set_or_clear_facility_provider_facility_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_or_clear_kind<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_kind<T>(self, v: Option<T>) -> Self
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_peeringdb_facility_id<T>(self, v: T) -> Self
pub fn set_peeringdb_facility_id<T>(self, v: T) -> Self
Sets the value of peeringdb_facility_id.
§Example
let x = InterconnectLocation::new().set_peeringdb_facility_id("example");Sourcepub fn set_or_clear_peeringdb_facility_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_peeringdb_facility_id<T>(self, v: Option<T>) -> Self
Sets or clears the value of peeringdb_facility_id.
§Example
let x = InterconnectLocation::new().set_or_clear_peeringdb_facility_id(Some("example"));
let x = InterconnectLocation::new().set_or_clear_peeringdb_facility_id(None::<String>);Sourcepub fn set_region_infos<T, V>(self, v: T) -> Self
pub fn set_region_infos<T, V>(self, v: T) -> Self
Sets the value of region_infos.
§Example
use google_cloud_compute_v1::model::InterconnectLocationRegionInfo;
let x = InterconnectLocation::new()
.set_region_infos([
InterconnectLocationRegionInfo::default()/* use setters */,
InterconnectLocationRegionInfo::default()/* use (different) setters */,
]);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_single_region_production_critical_peer_locations<T, V>(
self,
v: T,
) -> Self
pub fn set_single_region_production_critical_peer_locations<T, V>( self, v: T, ) -> Self
Sets the value of single_region_production_critical_peer_locations.
§Example
let x = InterconnectLocation::new().set_single_region_production_critical_peer_locations(["a", "b", "c"]);Sourcepub fn set_status<T>(self, v: T) -> Self
pub fn set_status<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
Sourcepub fn set_supports_pzs<T>(self, v: T) -> Self
pub fn set_supports_pzs<T>(self, v: T) -> Self
Sets the value of supports_pzs.
§Example
let x = InterconnectLocation::new().set_supports_pzs(true);Sourcepub fn set_or_clear_supports_pzs<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_supports_pzs<T>(self, v: Option<T>) -> Self
Sets or clears the value of supports_pzs.
§Example
let x = InterconnectLocation::new().set_or_clear_supports_pzs(Some(false));
let x = InterconnectLocation::new().set_or_clear_supports_pzs(None::<bool>);Trait Implementations§
Source§impl Clone for InterconnectLocation
impl Clone for InterconnectLocation
Source§fn clone(&self) -> InterconnectLocation
fn clone(&self) -> InterconnectLocation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more