#[non_exhaustive]pub struct InterconnectAttachment {Show 47 fields
pub admin_enabled: Option<bool>,
pub attachment_group: Option<String>,
pub bandwidth: Option<Bandwidth>,
pub candidate_cloud_router_ip_address: Option<String>,
pub candidate_cloud_router_ipv_6_address: Option<String>,
pub candidate_customer_router_ip_address: Option<String>,
pub candidate_customer_router_ipv_6_address: Option<String>,
pub candidate_ipv_6_subnets: Vec<String>,
pub candidate_subnets: Vec<String>,
pub cloud_router_ip_address: Option<String>,
pub cloud_router_ipv_6_address: Option<String>,
pub cloud_router_ipv_6_interface_id: Option<String>,
pub configuration_constraints: Option<InterconnectAttachmentConfigurationConstraints>,
pub creation_timestamp: Option<String>,
pub customer_router_ip_address: Option<String>,
pub customer_router_ipv_6_address: Option<String>,
pub customer_router_ipv_6_interface_id: Option<String>,
pub dataplane_version: Option<i32>,
pub description: Option<String>,
pub edge_availability_domain: Option<EdgeAvailabilityDomain>,
pub encryption: Option<Encryption>,
pub google_reference_id: Option<String>,
pub id: Option<u64>,
pub interconnect: Option<String>,
pub ipsec_internal_addresses: Vec<String>,
pub kind: Option<String>,
pub l_2_forwarding: Option<InterconnectAttachmentL2Forwarding>,
pub label_fingerprint: Option<Bytes>,
pub labels: HashMap<String, String>,
pub mtu: Option<i32>,
pub name: Option<String>,
pub operational_status: Option<OperationalStatus>,
pub pairing_key: Option<String>,
pub params: Option<InterconnectAttachmentParams>,
pub partner_asn: Option<i64>,
pub partner_metadata: Option<InterconnectAttachmentPartnerMetadata>,
pub private_interconnect_info: Option<InterconnectAttachmentPrivateInfo>,
pub region: Option<String>,
pub remote_service: Option<String>,
pub router: Option<String>,
pub satisfies_pzs: Option<bool>,
pub self_link: Option<String>,
pub stack_type: Option<StackType>,
pub state: Option<State>,
pub subnet_length: Option<i32>,
pub type: Option<Type>,
pub vlan_tag_8021_q: Option<i32>,
/* private fields */
}interconnect-attachments only.Expand description
Represents an Interconnect Attachment (VLAN) resource.
You can use Interconnect attachments (VLANS) to connect your Virtual Private Cloud networks to your on-premises networks through an Interconnect. For more information, 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.admin_enabled: Option<bool>Determines whether this Attachment will carry packets. Not present for PARTNER_PROVIDER.
attachment_group: Option<String>Output only. [Output Only] URL of the AttachmentGroup that includes this Attachment.
bandwidth: Option<Bandwidth>Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values:
- BPS_50M: 50 Mbit/s
- BPS_100M: 100 Mbit/s
- BPS_200M: 200 Mbit/s
- BPS_300M: 300 Mbit/s
- BPS_400M: 400 Mbit/s
- BPS_500M: 500 Mbit/s
- BPS_1G: 1 Gbit/s
- BPS_2G: 2 Gbit/s
- BPS_5G: 5 Gbit/s
- BPS_10G: 10 Gbit/s
- BPS_20G: 20 Gbit/s
- BPS_50G: 50 Gbit/s
- BPS_100G: 100 Gbit/s
- BPS_400G: 400 Gbit/s
candidate_cloud_router_ip_address: Option<String>Single IPv4 address + prefix length to be configured on the cloud router interface for this interconnect attachment.
- Both candidate_cloud_router_ip_address and candidate_customer_router_ip_address fields must be set or both must be unset.
- Prefix length of both candidate_cloud_router_ip_address and candidate_customer_router_ip_address must be the same.
- Max prefix length is 31.
candidate_cloud_router_ipv_6_address: Option<String>Single IPv6 address + prefix length to be configured on the cloud router interface for this interconnect attachment.
- Both candidate_cloud_router_ipv6_address and candidate_customer_router_ipv6_address fields must be set or both must be unset.
- Prefix length of both candidate_cloud_router_ipv6_address and candidate_customer_router_ipv6_address must be the same.
- Max prefix length is 126.
candidate_customer_router_ip_address: Option<String>Single IPv4 address + prefix length to be configured on the customer router interface for this interconnect attachment.
candidate_customer_router_ipv_6_address: Option<String>Single IPv6 address + prefix length to be configured on the customer router interface for this interconnect attachment.
candidate_ipv_6_subnets: Vec<String>This field is not available.
candidate_subnets: Vec<String>Input only. Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google’s edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
cloud_router_ip_address: Option<String>Output only. [Output Only] IPv4 address + prefix length to be configured on Cloud Router Interface for this interconnect attachment.
cloud_router_ipv_6_address: Option<String>Output only. [Output Only] IPv6 address + prefix length to be configured on Cloud Router Interface for this interconnect attachment.
cloud_router_ipv_6_interface_id: Option<String>This field is not available.
configuration_constraints: Option<InterconnectAttachmentConfigurationConstraints>Output only. [Output Only] Constraints for this attachment, if any. The attachment does not work if these constraints are not met.
creation_timestamp: Option<String>Output only. [Output Only] Creation timestamp inRFC3339 text format.
customer_router_ip_address: Option<String>Output only. [Output Only] IPv4 address + prefix length to be configured on the customer router subinterface for this interconnect attachment.
customer_router_ipv_6_address: Option<String>Output only. [Output Only] IPv6 address + prefix length to be configured on the customer router subinterface for this interconnect attachment.
customer_router_ipv_6_interface_id: Option<String>This field is not available.
dataplane_version: Option<i32>Output only. [Output Only] Dataplane version for this InterconnectAttachment. This field is only present for Dataplane version 2 and higher. Absence of this field in the API output indicates that the Dataplane is version 1.
description: Option<String>An optional description of this resource.
edge_availability_domain: Option<EdgeAvailabilityDomain>Input only. Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values:
- AVAILABILITY_DOMAIN_ANY
- AVAILABILITY_DOMAIN_1
- AVAILABILITY_DOMAIN_2
For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
encryption: Option<Encryption>Indicates the user-supplied encryption option of this VLAN attachment (interconnectAttachment). Can only be specified at attachment creation for PARTNER or DEDICATED attachments. Possible values are:
- NONE - This is the default value, which means that the VLAN attachment carries unencrypted traffic. VMs are able to send traffic to, or receive traffic from, such a VLAN attachment.
- IPSEC - The VLAN attachment carries only encrypted traffic that is encrypted by an IPsec device, such as an HA VPN gateway or third-party IPsec VPN. VMs cannot directly send traffic to, or receive traffic from, such a VLAN attachment. To use HA VPN over Cloud Interconnect, the VLAN attachment must be created with this option.
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. [Deprecated] This field is not used.
id: Option<u64>Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
interconnect: Option<String>URL of the underlying Interconnect object that this attachment’s traffic will traverse through.
ipsec_internal_addresses: Vec<String>A list of URLs of addresses that have been reserved for the VLAN attachment. Used only for the VLAN attachment that has the encryption option as IPSEC. The addresses must be regional internal IP address ranges. When creating an HA VPN gateway over the VLAN attachment, if the attachment is configured to use a regional internal IP address, then the VPN gateway’s IP address is allocated from the IP address range specified here. For example, if the HA VPN gateway’s interface 0 is paired to this VLAN attachment, then a regional internal IP address for the VPN gateway interface 0 will be allocated from the IP address specified for this VLAN attachment. If this field is not specified when creating the VLAN attachment, then later on when creating an HA VPN gateway on this VLAN attachment, the HA VPN gateway’s IP address is allocated from the regional external IP address pool.
kind: Option<String>Output only. [Output Only] Type of the resource. Alwayscompute#interconnectAttachment for interconnect attachments.
l_2_forwarding: Option<InterconnectAttachmentL2Forwarding>L2 Interconnect Attachment related config. This field is required if the type is L2_DEDICATED.
The configuration specifies how VLAN tags (like dot1q, qinq, or dot1ad) within L2 packets are mapped to the destination appliances IP addresses. The packet is then encapsulated with the appliance IP address and sent to the edge appliance.
label_fingerprint: Option<Bytes>A fingerprint for the labels being applied to this InterconnectAttachment, 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 InterconnectAttachment.
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.
mtu: Option<i32>Maximum Transmission Unit (MTU), in bytes, of packets passing through this interconnect attachment. Valid values are 1440, 1460, 1500, and 8896. If not specified, the value will default to 1440.
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.
operational_status: Option<OperationalStatus>Output only. [Output Only] The current status of whether or not this interconnect attachment is functional, which can take one of the following values:
- OS_ACTIVE: The attachment has been turned up and is ready to use.
- OS_UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete.
pairing_key: Option<String>[Output only for type PARTNER. Input only for PARTNER_PROVIDER. Not present for DEDICATED]. The opaque identifier of a PARTNER attachment used to initiate provisioning with a selected partner. Of the form “XXXXX/region/domain”
params: Option<InterconnectAttachmentParams>Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload.
partner_asn: Option<i64>Optional BGP ASN for the router supplied by a Layer 3 Partner if they configured BGP on behalf of the customer. Output only for PARTNER type, input only for PARTNER_PROVIDER, not available for DEDICATED.
partner_metadata: Option<InterconnectAttachmentPartnerMetadata>Informational metadata about Partner attachments from Partners to display to customers. Output only for PARTNER type, mutable for PARTNER_PROVIDER, not available for DEDICATED.
private_interconnect_info: Option<InterconnectAttachmentPrivateInfo>Output only. [Output Only] Information specific to an InterconnectAttachment. This property is populated if the interconnect that this is attached to is of type DEDICATED.
region: Option<String>Output only. [Output Only] URL of the region where the regional interconnect attachment resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
remote_service: Option<String>Output only. [Output Only] If the attachment is on a Cross-Cloud Interconnect connection, this field contains the interconnect’s remote location service provider. Example values: “Amazon Web Services” “Microsoft Azure”.
The field is set only for attachments on Cross-Cloud Interconnect connections. Its value is copied from the InterconnectRemoteLocation remoteService field.
router: Option<String>URL of the Cloud Router to be used for dynamic routing. This router must be in the same region as this InterconnectAttachment. The InterconnectAttachment will automatically connect the Interconnect to the network & region within which the Cloud Router is configured.
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.
stack_type: Option<StackType>The stack type for this interconnect attachment to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used.
This field can be both set at interconnect attachments creation and update interconnect attachment operations.
state: Option<State>Output only. [Output Only] The current state of this attachment’s functionality. Enum values ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE, PARTNER, and PARTNER_PROVIDER interconnect attachments, while enum values PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and PENDING_CUSTOMER are used for only PARTNER and PARTNER_PROVIDER interconnect attachments. This state can take one of the following values:
- ACTIVE: The attachment has been turned up and is ready to use.
- UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete.
- PENDING_PARTNER: A newly-created PARTNER attachment that has not yet been configured on the Partner side.
- PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in the process of provisioning after a PARTNER_PROVIDER attachment was created that references it.
- PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is waiting for a customer to activate it.
- DEFUNCT: The attachment was deleted externally and is no longer functional. This could be because the associated Interconnect was removed, or because the other side of a Partner attachment was deleted.
subnet_length: Option<i32>Input only. Length of the IPv4 subnet mask. Allowed values:
- 29 (default)
- 30The default value is 29, except for Cross-Cloud Interconnect connections that use an InterconnectRemoteLocation with a constraints.subnetLengthRange.min equal to 30. For example, connections that use an Azure remote location fall into this category. In these cases, the default value is 30, and requesting 29 returns an error.
Where both 29 and 30 are allowed, 29 is preferred, because it gives Google Cloud Support more debugging visibility.
type: Option<Type>The type of interconnect attachment this is, which can take one of the following values:
-
DEDICATED: an attachment to a Dedicated Interconnect.
-
PARTNER: an attachment to a Partner Interconnect, created by the customer.
-
PARTNER_PROVIDER: an attachment to a Partner Interconnect, created by the partner.
-
L2_DEDICATED: a L2 attachment to a Dedicated Interconnect.
vlan_tag_8021_q: Option<i32>The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4093. Only specified at creation time.
Implementations§
Source§impl InterconnectAttachment
impl InterconnectAttachment
pub fn new() -> Self
Sourcepub fn set_admin_enabled<T>(self, v: T) -> Self
pub fn set_admin_enabled<T>(self, v: T) -> Self
Sets the value of admin_enabled.
§Example
let x = InterconnectAttachment::new().set_admin_enabled(true);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 = InterconnectAttachment::new().set_or_clear_admin_enabled(Some(false));
let x = InterconnectAttachment::new().set_or_clear_admin_enabled(None::<bool>);Sourcepub fn set_attachment_group<T>(self, v: T) -> Self
pub fn set_attachment_group<T>(self, v: T) -> Self
Sets the value of attachment_group.
§Example
let x = InterconnectAttachment::new().set_attachment_group("example");Sourcepub fn set_or_clear_attachment_group<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_attachment_group<T>(self, v: Option<T>) -> Self
Sets or clears the value of attachment_group.
§Example
let x = InterconnectAttachment::new().set_or_clear_attachment_group(Some("example"));
let x = InterconnectAttachment::new().set_or_clear_attachment_group(None::<String>);Sourcepub fn set_bandwidth<T>(self, v: T) -> Self
pub fn set_bandwidth<T>(self, v: T) -> Self
Sets the value of bandwidth.
§Example
use google_cloud_compute_v1::model::interconnect_attachment::Bandwidth;
let x0 = InterconnectAttachment::new().set_bandwidth(Bandwidth::Bps100M);
let x1 = InterconnectAttachment::new().set_bandwidth(Bandwidth::Bps10G);
let x2 = InterconnectAttachment::new().set_bandwidth(Bandwidth::Bps1G);Sourcepub fn set_or_clear_bandwidth<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_bandwidth<T>(self, v: Option<T>) -> Self
Sets or clears the value of bandwidth.
§Example
use google_cloud_compute_v1::model::interconnect_attachment::Bandwidth;
let x0 = InterconnectAttachment::new().set_or_clear_bandwidth(Some(Bandwidth::Bps100M));
let x1 = InterconnectAttachment::new().set_or_clear_bandwidth(Some(Bandwidth::Bps10G));
let x2 = InterconnectAttachment::new().set_or_clear_bandwidth(Some(Bandwidth::Bps1G));
let x_none = InterconnectAttachment::new().set_or_clear_bandwidth(None::<Bandwidth>);Sourcepub fn set_candidate_cloud_router_ip_address<T>(self, v: T) -> Self
pub fn set_candidate_cloud_router_ip_address<T>(self, v: T) -> Self
Sets the value of candidate_cloud_router_ip_address.
§Example
let x = InterconnectAttachment::new().set_candidate_cloud_router_ip_address("example");Sourcepub fn set_or_clear_candidate_cloud_router_ip_address<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_candidate_cloud_router_ip_address<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of candidate_cloud_router_ip_address.
§Example
let x = InterconnectAttachment::new().set_or_clear_candidate_cloud_router_ip_address(Some("example"));
let x = InterconnectAttachment::new().set_or_clear_candidate_cloud_router_ip_address(None::<String>);Sourcepub fn set_candidate_cloud_router_ipv_6_address<T>(self, v: T) -> Self
pub fn set_candidate_cloud_router_ipv_6_address<T>(self, v: T) -> Self
Sets the value of candidate_cloud_router_ipv_6_address.
§Example
let x = InterconnectAttachment::new().set_candidate_cloud_router_ipv_6_address("example");Sourcepub fn set_or_clear_candidate_cloud_router_ipv_6_address<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_candidate_cloud_router_ipv_6_address<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of candidate_cloud_router_ipv_6_address.
§Example
let x = InterconnectAttachment::new().set_or_clear_candidate_cloud_router_ipv_6_address(Some("example"));
let x = InterconnectAttachment::new().set_or_clear_candidate_cloud_router_ipv_6_address(None::<String>);Sourcepub fn set_candidate_customer_router_ip_address<T>(self, v: T) -> Self
pub fn set_candidate_customer_router_ip_address<T>(self, v: T) -> Self
Sets the value of candidate_customer_router_ip_address.
§Example
let x = InterconnectAttachment::new().set_candidate_customer_router_ip_address("example");Sourcepub fn set_or_clear_candidate_customer_router_ip_address<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_candidate_customer_router_ip_address<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of candidate_customer_router_ip_address.
§Example
let x = InterconnectAttachment::new().set_or_clear_candidate_customer_router_ip_address(Some("example"));
let x = InterconnectAttachment::new().set_or_clear_candidate_customer_router_ip_address(None::<String>);Sourcepub fn set_candidate_customer_router_ipv_6_address<T>(self, v: T) -> Self
pub fn set_candidate_customer_router_ipv_6_address<T>(self, v: T) -> Self
Sets the value of candidate_customer_router_ipv_6_address.
§Example
let x = InterconnectAttachment::new().set_candidate_customer_router_ipv_6_address("example");Sourcepub fn set_or_clear_candidate_customer_router_ipv_6_address<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_candidate_customer_router_ipv_6_address<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of candidate_customer_router_ipv_6_address.
§Example
let x = InterconnectAttachment::new().set_or_clear_candidate_customer_router_ipv_6_address(Some("example"));
let x = InterconnectAttachment::new().set_or_clear_candidate_customer_router_ipv_6_address(None::<String>);Sourcepub fn set_candidate_ipv_6_subnets<T, V>(self, v: T) -> Self
pub fn set_candidate_ipv_6_subnets<T, V>(self, v: T) -> Self
Sets the value of candidate_ipv_6_subnets.
§Example
let x = InterconnectAttachment::new().set_candidate_ipv_6_subnets(["a", "b", "c"]);Sourcepub fn set_candidate_subnets<T, V>(self, v: T) -> Self
pub fn set_candidate_subnets<T, V>(self, v: T) -> Self
Sets the value of candidate_subnets.
§Example
let x = InterconnectAttachment::new().set_candidate_subnets(["a", "b", "c"]);Sourcepub fn set_cloud_router_ip_address<T>(self, v: T) -> Self
pub fn set_cloud_router_ip_address<T>(self, v: T) -> Self
Sets the value of cloud_router_ip_address.
§Example
let x = InterconnectAttachment::new().set_cloud_router_ip_address("example");Sourcepub fn set_or_clear_cloud_router_ip_address<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_cloud_router_ip_address<T>(self, v: Option<T>) -> Self
Sets or clears the value of cloud_router_ip_address.
§Example
let x = InterconnectAttachment::new().set_or_clear_cloud_router_ip_address(Some("example"));
let x = InterconnectAttachment::new().set_or_clear_cloud_router_ip_address(None::<String>);Sourcepub fn set_cloud_router_ipv_6_address<T>(self, v: T) -> Self
pub fn set_cloud_router_ipv_6_address<T>(self, v: T) -> Self
Sets the value of cloud_router_ipv_6_address.
§Example
let x = InterconnectAttachment::new().set_cloud_router_ipv_6_address("example");Sourcepub fn set_or_clear_cloud_router_ipv_6_address<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_cloud_router_ipv_6_address<T>(self, v: Option<T>) -> Self
Sets or clears the value of cloud_router_ipv_6_address.
§Example
let x = InterconnectAttachment::new().set_or_clear_cloud_router_ipv_6_address(Some("example"));
let x = InterconnectAttachment::new().set_or_clear_cloud_router_ipv_6_address(None::<String>);Sourcepub fn set_cloud_router_ipv_6_interface_id<T>(self, v: T) -> Self
pub fn set_cloud_router_ipv_6_interface_id<T>(self, v: T) -> Self
Sets the value of cloud_router_ipv_6_interface_id.
§Example
let x = InterconnectAttachment::new().set_cloud_router_ipv_6_interface_id("example");Sourcepub fn set_or_clear_cloud_router_ipv_6_interface_id<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_cloud_router_ipv_6_interface_id<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of cloud_router_ipv_6_interface_id.
§Example
let x = InterconnectAttachment::new().set_or_clear_cloud_router_ipv_6_interface_id(Some("example"));
let x = InterconnectAttachment::new().set_or_clear_cloud_router_ipv_6_interface_id(None::<String>);Sourcepub fn set_configuration_constraints<T>(self, v: T) -> Self
pub fn set_configuration_constraints<T>(self, v: T) -> Self
Sets the value of configuration_constraints.
§Example
use google_cloud_compute_v1::model::InterconnectAttachmentConfigurationConstraints;
let x = InterconnectAttachment::new().set_configuration_constraints(InterconnectAttachmentConfigurationConstraints::default()/* use setters */);Sourcepub fn set_or_clear_configuration_constraints<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_configuration_constraints<T>(self, v: Option<T>) -> Self
Sets or clears the value of configuration_constraints.
§Example
use google_cloud_compute_v1::model::InterconnectAttachmentConfigurationConstraints;
let x = InterconnectAttachment::new().set_or_clear_configuration_constraints(Some(InterconnectAttachmentConfigurationConstraints::default()/* use setters */));
let x = InterconnectAttachment::new().set_or_clear_configuration_constraints(None::<InterconnectAttachmentConfigurationConstraints>);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 = InterconnectAttachment::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 = InterconnectAttachment::new().set_or_clear_creation_timestamp(Some("example"));
let x = InterconnectAttachment::new().set_or_clear_creation_timestamp(None::<String>);Sourcepub fn set_customer_router_ip_address<T>(self, v: T) -> Self
pub fn set_customer_router_ip_address<T>(self, v: T) -> Self
Sets the value of customer_router_ip_address.
§Example
let x = InterconnectAttachment::new().set_customer_router_ip_address("example");Sourcepub fn set_or_clear_customer_router_ip_address<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_customer_router_ip_address<T>(self, v: Option<T>) -> Self
Sets or clears the value of customer_router_ip_address.
§Example
let x = InterconnectAttachment::new().set_or_clear_customer_router_ip_address(Some("example"));
let x = InterconnectAttachment::new().set_or_clear_customer_router_ip_address(None::<String>);Sourcepub fn set_customer_router_ipv_6_address<T>(self, v: T) -> Self
pub fn set_customer_router_ipv_6_address<T>(self, v: T) -> Self
Sets the value of customer_router_ipv_6_address.
§Example
let x = InterconnectAttachment::new().set_customer_router_ipv_6_address("example");Sourcepub fn set_or_clear_customer_router_ipv_6_address<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_customer_router_ipv_6_address<T>(self, v: Option<T>) -> Self
Sets or clears the value of customer_router_ipv_6_address.
§Example
let x = InterconnectAttachment::new().set_or_clear_customer_router_ipv_6_address(Some("example"));
let x = InterconnectAttachment::new().set_or_clear_customer_router_ipv_6_address(None::<String>);Sourcepub fn set_customer_router_ipv_6_interface_id<T>(self, v: T) -> Self
pub fn set_customer_router_ipv_6_interface_id<T>(self, v: T) -> Self
Sets the value of customer_router_ipv_6_interface_id.
§Example
let x = InterconnectAttachment::new().set_customer_router_ipv_6_interface_id("example");Sourcepub fn set_or_clear_customer_router_ipv_6_interface_id<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_customer_router_ipv_6_interface_id<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of customer_router_ipv_6_interface_id.
§Example
let x = InterconnectAttachment::new().set_or_clear_customer_router_ipv_6_interface_id(Some("example"));
let x = InterconnectAttachment::new().set_or_clear_customer_router_ipv_6_interface_id(None::<String>);Sourcepub fn set_dataplane_version<T>(self, v: T) -> Self
pub fn set_dataplane_version<T>(self, v: T) -> Self
Sets the value of dataplane_version.
§Example
let x = InterconnectAttachment::new().set_dataplane_version(42);Sourcepub fn set_or_clear_dataplane_version<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_dataplane_version<T>(self, v: Option<T>) -> Self
Sets or clears the value of dataplane_version.
§Example
let x = InterconnectAttachment::new().set_or_clear_dataplane_version(Some(42));
let x = InterconnectAttachment::new().set_or_clear_dataplane_version(None::<i32>);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 = InterconnectAttachment::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 = InterconnectAttachment::new().set_or_clear_description(Some("example"));
let x = InterconnectAttachment::new().set_or_clear_description(None::<String>);Sourcepub fn set_edge_availability_domain<T>(self, v: T) -> Selfwhere
T: Into<EdgeAvailabilityDomain>,
pub fn set_edge_availability_domain<T>(self, v: T) -> Selfwhere
T: Into<EdgeAvailabilityDomain>,
Sets the value of edge_availability_domain.
§Example
use google_cloud_compute_v1::model::interconnect_attachment::EdgeAvailabilityDomain;
let x0 = InterconnectAttachment::new().set_edge_availability_domain(EdgeAvailabilityDomain::AvailabilityDomain2);
let x1 = InterconnectAttachment::new().set_edge_availability_domain(EdgeAvailabilityDomain::AvailabilityDomainAny);Sourcepub fn set_or_clear_edge_availability_domain<T>(self, v: Option<T>) -> Selfwhere
T: Into<EdgeAvailabilityDomain>,
pub fn set_or_clear_edge_availability_domain<T>(self, v: Option<T>) -> Selfwhere
T: Into<EdgeAvailabilityDomain>,
Sets or clears the value of edge_availability_domain.
§Example
use google_cloud_compute_v1::model::interconnect_attachment::EdgeAvailabilityDomain;
let x0 = InterconnectAttachment::new().set_or_clear_edge_availability_domain(Some(EdgeAvailabilityDomain::AvailabilityDomain2));
let x1 = InterconnectAttachment::new().set_or_clear_edge_availability_domain(Some(EdgeAvailabilityDomain::AvailabilityDomainAny));
let x_none = InterconnectAttachment::new().set_or_clear_edge_availability_domain(None::<EdgeAvailabilityDomain>);Sourcepub fn set_encryption<T>(self, v: T) -> Selfwhere
T: Into<Encryption>,
pub fn set_encryption<T>(self, v: T) -> Selfwhere
T: Into<Encryption>,
Sets the value of encryption.
§Example
use google_cloud_compute_v1::model::interconnect_attachment::Encryption;
let x0 = InterconnectAttachment::new().set_encryption(Encryption::None);Sourcepub fn set_or_clear_encryption<T>(self, v: Option<T>) -> Selfwhere
T: Into<Encryption>,
pub fn set_or_clear_encryption<T>(self, v: Option<T>) -> Selfwhere
T: Into<Encryption>,
Sets or clears the value of encryption.
§Example
use google_cloud_compute_v1::model::interconnect_attachment::Encryption;
let x0 = InterconnectAttachment::new().set_or_clear_encryption(Some(Encryption::None));
let x_none = InterconnectAttachment::new().set_or_clear_encryption(None::<Encryption>);Sourcepub fn set_google_reference_id<T>(self, v: T) -> Self
👎Deprecated
pub fn set_google_reference_id<T>(self, v: T) -> Self
Sets the value of google_reference_id.
§Example
let x = InterconnectAttachment::new().set_google_reference_id("example");Sourcepub fn set_or_clear_google_reference_id<T>(self, v: Option<T>) -> Self
👎Deprecated
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 = InterconnectAttachment::new().set_or_clear_google_reference_id(Some("example"));
let x = InterconnectAttachment::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<T>(self, v: T) -> Self
pub fn set_interconnect<T>(self, v: T) -> Self
Sets the value of interconnect.
§Example
let x = InterconnectAttachment::new().set_interconnect("example");Sourcepub fn set_or_clear_interconnect<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_interconnect<T>(self, v: Option<T>) -> Self
Sets or clears the value of interconnect.
§Example
let x = InterconnectAttachment::new().set_or_clear_interconnect(Some("example"));
let x = InterconnectAttachment::new().set_or_clear_interconnect(None::<String>);Sourcepub fn set_ipsec_internal_addresses<T, V>(self, v: T) -> Self
pub fn set_ipsec_internal_addresses<T, V>(self, v: T) -> Self
Sets the value of ipsec_internal_addresses.
§Example
let x = InterconnectAttachment::new().set_ipsec_internal_addresses(["a", "b", "c"]);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_l_2_forwarding<T>(self, v: T) -> Selfwhere
T: Into<InterconnectAttachmentL2Forwarding>,
pub fn set_l_2_forwarding<T>(self, v: T) -> Selfwhere
T: Into<InterconnectAttachmentL2Forwarding>,
Sets the value of l_2_forwarding.
§Example
use google_cloud_compute_v1::model::InterconnectAttachmentL2Forwarding;
let x = InterconnectAttachment::new().set_l_2_forwarding(InterconnectAttachmentL2Forwarding::default()/* use setters */);Sourcepub fn set_or_clear_l_2_forwarding<T>(self, v: Option<T>) -> Selfwhere
T: Into<InterconnectAttachmentL2Forwarding>,
pub fn set_or_clear_l_2_forwarding<T>(self, v: Option<T>) -> Selfwhere
T: Into<InterconnectAttachmentL2Forwarding>,
Sets or clears the value of l_2_forwarding.
§Example
use google_cloud_compute_v1::model::InterconnectAttachmentL2Forwarding;
let x = InterconnectAttachment::new().set_or_clear_l_2_forwarding(Some(InterconnectAttachmentL2Forwarding::default()/* use setters */));
let x = InterconnectAttachment::new().set_or_clear_l_2_forwarding(None::<InterconnectAttachmentL2Forwarding>);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 = InterconnectAttachment::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 = InterconnectAttachment::new().set_or_clear_label_fingerprint(Some(bytes::Bytes::from_static(b"example")));
let x = InterconnectAttachment::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_or_clear_mtu<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_mtu<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_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_attachment::OperationalStatus;
let x0 = InterconnectAttachment::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_attachment::OperationalStatus;
let x0 = InterconnectAttachment::new().set_or_clear_operational_status(Some(OperationalStatus::OsUnprovisioned));
let x_none = InterconnectAttachment::new().set_or_clear_operational_status(None::<OperationalStatus>);Sourcepub fn set_pairing_key<T>(self, v: T) -> Self
pub fn set_pairing_key<T>(self, v: T) -> Self
Sets the value of pairing_key.
§Example
let x = InterconnectAttachment::new().set_pairing_key("example");Sourcepub fn set_or_clear_pairing_key<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_pairing_key<T>(self, v: Option<T>) -> Self
Sets or clears the value of pairing_key.
§Example
let x = InterconnectAttachment::new().set_or_clear_pairing_key(Some("example"));
let x = InterconnectAttachment::new().set_or_clear_pairing_key(None::<String>);Sourcepub fn set_params<T>(self, v: T) -> Selfwhere
T: Into<InterconnectAttachmentParams>,
pub fn set_params<T>(self, v: T) -> Selfwhere
T: Into<InterconnectAttachmentParams>,
Sourcepub fn set_or_clear_params<T>(self, v: Option<T>) -> Selfwhere
T: Into<InterconnectAttachmentParams>,
pub fn set_or_clear_params<T>(self, v: Option<T>) -> Selfwhere
T: Into<InterconnectAttachmentParams>,
Sets or clears the value of params.
§Example
use google_cloud_compute_v1::model::InterconnectAttachmentParams;
let x = InterconnectAttachment::new().set_or_clear_params(Some(InterconnectAttachmentParams::default()/* use setters */));
let x = InterconnectAttachment::new().set_or_clear_params(None::<InterconnectAttachmentParams>);Sourcepub fn set_partner_asn<T>(self, v: T) -> Self
pub fn set_partner_asn<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_partner_asn<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_partner_asn<T>(self, v: Option<T>) -> Self
Sets or clears the value of partner_asn.
§Example
let x = InterconnectAttachment::new().set_or_clear_partner_asn(Some(42));
let x = InterconnectAttachment::new().set_or_clear_partner_asn(None::<i32>);Sourcepub fn set_partner_metadata<T>(self, v: T) -> Selfwhere
T: Into<InterconnectAttachmentPartnerMetadata>,
pub fn set_partner_metadata<T>(self, v: T) -> Selfwhere
T: Into<InterconnectAttachmentPartnerMetadata>,
Sets the value of partner_metadata.
§Example
use google_cloud_compute_v1::model::InterconnectAttachmentPartnerMetadata;
let x = InterconnectAttachment::new().set_partner_metadata(InterconnectAttachmentPartnerMetadata::default()/* use setters */);Sourcepub fn set_or_clear_partner_metadata<T>(self, v: Option<T>) -> Selfwhere
T: Into<InterconnectAttachmentPartnerMetadata>,
pub fn set_or_clear_partner_metadata<T>(self, v: Option<T>) -> Selfwhere
T: Into<InterconnectAttachmentPartnerMetadata>,
Sets or clears the value of partner_metadata.
§Example
use google_cloud_compute_v1::model::InterconnectAttachmentPartnerMetadata;
let x = InterconnectAttachment::new().set_or_clear_partner_metadata(Some(InterconnectAttachmentPartnerMetadata::default()/* use setters */));
let x = InterconnectAttachment::new().set_or_clear_partner_metadata(None::<InterconnectAttachmentPartnerMetadata>);Sourcepub fn set_private_interconnect_info<T>(self, v: T) -> Selfwhere
T: Into<InterconnectAttachmentPrivateInfo>,
pub fn set_private_interconnect_info<T>(self, v: T) -> Selfwhere
T: Into<InterconnectAttachmentPrivateInfo>,
Sets the value of private_interconnect_info.
§Example
use google_cloud_compute_v1::model::InterconnectAttachmentPrivateInfo;
let x = InterconnectAttachment::new().set_private_interconnect_info(InterconnectAttachmentPrivateInfo::default()/* use setters */);Sourcepub fn set_or_clear_private_interconnect_info<T>(self, v: Option<T>) -> Selfwhere
T: Into<InterconnectAttachmentPrivateInfo>,
pub fn set_or_clear_private_interconnect_info<T>(self, v: Option<T>) -> Selfwhere
T: Into<InterconnectAttachmentPrivateInfo>,
Sets or clears the value of private_interconnect_info.
§Example
use google_cloud_compute_v1::model::InterconnectAttachmentPrivateInfo;
let x = InterconnectAttachment::new().set_or_clear_private_interconnect_info(Some(InterconnectAttachmentPrivateInfo::default()/* use setters */));
let x = InterconnectAttachment::new().set_or_clear_private_interconnect_info(None::<InterconnectAttachmentPrivateInfo>);Sourcepub fn set_region<T>(self, v: T) -> Self
pub fn set_region<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_region<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_region<T>(self, v: Option<T>) -> Self
Sourcepub fn set_remote_service<T>(self, v: T) -> Self
pub fn set_remote_service<T>(self, v: T) -> Self
Sets the value of remote_service.
§Example
let x = InterconnectAttachment::new().set_remote_service("example");Sourcepub fn set_or_clear_remote_service<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_remote_service<T>(self, v: Option<T>) -> Self
Sets or clears the value of remote_service.
§Example
let x = InterconnectAttachment::new().set_or_clear_remote_service(Some("example"));
let x = InterconnectAttachment::new().set_or_clear_remote_service(None::<String>);Sourcepub fn set_router<T>(self, v: T) -> Self
pub fn set_router<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_router<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_router<T>(self, v: Option<T>) -> Self
Sourcepub fn set_satisfies_pzs<T>(self, v: T) -> Self
pub fn set_satisfies_pzs<T>(self, v: T) -> Self
Sets the value of satisfies_pzs.
§Example
let x = InterconnectAttachment::new().set_satisfies_pzs(true);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 = InterconnectAttachment::new().set_or_clear_satisfies_pzs(Some(false));
let x = InterconnectAttachment::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_stack_type<T>(self, v: T) -> Self
pub fn set_stack_type<T>(self, v: T) -> Self
Sets the value of stack_type.
§Example
use google_cloud_compute_v1::model::interconnect_attachment::StackType;
let x0 = InterconnectAttachment::new().set_stack_type(StackType::Ipv4Only);Sourcepub fn set_or_clear_stack_type<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_stack_type<T>(self, v: Option<T>) -> Self
Sets or clears the value of stack_type.
§Example
use google_cloud_compute_v1::model::interconnect_attachment::StackType;
let x0 = InterconnectAttachment::new().set_or_clear_stack_type(Some(StackType::Ipv4Only));
let x_none = InterconnectAttachment::new().set_or_clear_stack_type(None::<StackType>);Sourcepub fn set_state<T>(self, v: T) -> Self
pub fn set_state<T>(self, v: T) -> Self
Sets the value of state.
§Example
use google_cloud_compute_v1::model::interconnect_attachment::State;
let x0 = InterconnectAttachment::new().set_state(State::Defunct);
let x1 = InterconnectAttachment::new().set_state(State::PartnerRequestReceived);
let x2 = InterconnectAttachment::new().set_state(State::PendingCustomer);Sourcepub fn set_or_clear_state<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_state<T>(self, v: Option<T>) -> Self
Sets or clears the value of state.
§Example
use google_cloud_compute_v1::model::interconnect_attachment::State;
let x0 = InterconnectAttachment::new().set_or_clear_state(Some(State::Defunct));
let x1 = InterconnectAttachment::new().set_or_clear_state(Some(State::PartnerRequestReceived));
let x2 = InterconnectAttachment::new().set_or_clear_state(Some(State::PendingCustomer));
let x_none = InterconnectAttachment::new().set_or_clear_state(None::<State>);Sourcepub fn set_subnet_length<T>(self, v: T) -> Self
pub fn set_subnet_length<T>(self, v: T) -> Self
Sets the value of subnet_length.
§Example
let x = InterconnectAttachment::new().set_subnet_length(42);Sourcepub fn set_or_clear_subnet_length<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_subnet_length<T>(self, v: Option<T>) -> Self
Sets or clears the value of subnet_length.
§Example
let x = InterconnectAttachment::new().set_or_clear_subnet_length(Some(42));
let x = InterconnectAttachment::new().set_or_clear_subnet_length(None::<i32>);Sourcepub fn set_type<T>(self, v: T) -> Self
pub fn set_type<T>(self, v: T) -> Self
Sets the value of r#type.
§Example
use google_cloud_compute_v1::model::interconnect_attachment::Type;
let x0 = InterconnectAttachment::new().set_type(Type::L2Dedicated);
let x1 = InterconnectAttachment::new().set_type(Type::Partner);
let x2 = InterconnectAttachment::new().set_type(Type::PartnerProvider);Sourcepub fn set_or_clear_type<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_type<T>(self, v: Option<T>) -> Self
Sets or clears the value of r#type.
§Example
use google_cloud_compute_v1::model::interconnect_attachment::Type;
let x0 = InterconnectAttachment::new().set_or_clear_type(Some(Type::L2Dedicated));
let x1 = InterconnectAttachment::new().set_or_clear_type(Some(Type::Partner));
let x2 = InterconnectAttachment::new().set_or_clear_type(Some(Type::PartnerProvider));
let x_none = InterconnectAttachment::new().set_or_clear_type(None::<Type>);Sourcepub fn set_vlan_tag_8021_q<T>(self, v: T) -> Self
pub fn set_vlan_tag_8021_q<T>(self, v: T) -> Self
Sets the value of vlan_tag_8021_q.
§Example
let x = InterconnectAttachment::new().set_vlan_tag_8021_q(42);Sourcepub fn set_or_clear_vlan_tag_8021_q<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_vlan_tag_8021_q<T>(self, v: Option<T>) -> Self
Sets or clears the value of vlan_tag_8021_q.
§Example
let x = InterconnectAttachment::new().set_or_clear_vlan_tag_8021_q(Some(42));
let x = InterconnectAttachment::new().set_or_clear_vlan_tag_8021_q(None::<i32>);Trait Implementations§
Source§impl Clone for InterconnectAttachment
impl Clone for InterconnectAttachment
Source§fn clone(&self) -> InterconnectAttachment
fn clone(&self) -> InterconnectAttachment
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more