Compute V1 Client - Class Interconnect (1.11.1)

Reference documentation and code samples for the Compute V1 Client class Interconnect.

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.

Generated from protobuf message google.cloud.compute.v1.Interconnect

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ admin_enabled 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.

↳ circuit_infos array<Google\Cloud\Compute\V1\InterconnectCircuitInfo>

[Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG.

↳ creation_timestamp string

[Output Only] Creation timestamp in RFC3339 text format.

↳ customer_name string

Customer name, to put in the Letter of Authorization as the party authorized to request a crossconnect.

↳ description string

An optional description of this resource. Provide this property when you create the resource.

↳ expected_outages array<Google\Cloud\Compute\V1\InterconnectOutageNotification>

[Output Only] A list of outages expected for this Interconnect.

↳ google_ip_address string

[Output Only] IP address configured on the Google side of the Interconnect link. This can be used only for ping tests.

↳ google_reference_id string

[Output Only] Google reference ID to be used when raising support tickets with Google or otherwise to debug backend connectivity issues.

↳ id int|string

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

↳ interconnect_attachments array

[Output Only] A list of the URLs of all InterconnectAttachments configured to use this Interconnect.

↳ interconnect_type string

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. Check the InterconnectType enum for the list of possible values.

↳ kind string

[Output Only] Type of the resource. Always compute#interconnect for interconnects.

↳ label_fingerprint string

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 error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an Interconnect.

↳ labels array|Google\Protobuf\Internal\MapField

Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.

↳ link_type string

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. Note that this field indicates the speed of each of the links in the bundle, not the speed of the entire bundle. Check the LinkType enum for the list of possible values.

↳ location string

URL of the InterconnectLocation object that represents where this connection is to be provisioned.

↳ name string

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. 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 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 string

[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. Check the OperationalStatus enum for the list of possible values.

↳ peer_ip_address string

[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 int

[Output Only] Number of links actually provisioned in this interconnect.

↳ remote_location 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_link_count int

Target number of physical links in the link bundle, as requested by the customer.

↳ satisfies_pzs bool

[Output Only] Reserved for future use.

↳ self_link string

[Output Only] Server-defined URL for the resource.

↳ state string

[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. Check the State enum for the list of possible values.

getAdminEnabled

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.

Returns
TypeDescription
bool

hasAdminEnabled

clearAdminEnabled

setAdminEnabled

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.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getCircuitInfos

[Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setCircuitInfos

[Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG.

Parameter
NameDescription
var array<Google\Cloud\Compute\V1\InterconnectCircuitInfo>
Returns
TypeDescription
$this

getCreationTimestamp

[Output Only] Creation timestamp in RFC3339 text format.

Returns
TypeDescription
string

hasCreationTimestamp

clearCreationTimestamp

setCreationTimestamp

[Output Only] Creation timestamp in RFC3339 text format.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCustomerName

Customer name, to put in the Letter of Authorization as the party authorized to request a crossconnect.

Returns
TypeDescription
string

hasCustomerName

clearCustomerName

setCustomerName

Customer name, to put in the Letter of Authorization as the party authorized to request a crossconnect.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

An optional description of this resource. Provide this property when you create the resource.

Returns
TypeDescription
string

hasDescription

clearDescription

setDescription

An optional description of this resource. Provide this property when you create the resource.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getExpectedOutages

[Output Only] A list of outages expected for this Interconnect.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setExpectedOutages

[Output Only] A list of outages expected for this Interconnect.

Parameter
NameDescription
var array<Google\Cloud\Compute\V1\InterconnectOutageNotification>
Returns
TypeDescription
$this

getGoogleIpAddress

[Output Only] IP address configured on the Google side of the Interconnect link. This can be used only for ping tests.

Returns
TypeDescription
string

hasGoogleIpAddress

clearGoogleIpAddress

setGoogleIpAddress

[Output Only] IP address configured on the Google side of the Interconnect link. This can be used only for ping tests.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getGoogleReferenceId

[Output Only] Google reference ID to be used when raising support tickets with Google or otherwise to debug backend connectivity issues.

Returns
TypeDescription
string

hasGoogleReferenceId

clearGoogleReferenceId

setGoogleReferenceId

[Output Only] Google reference ID to be used when raising support tickets with Google or otherwise to debug backend connectivity issues.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getId

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

Returns
TypeDescription
int|string

hasId

clearId

setId

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getInterconnectAttachments

[Output Only] A list of the URLs of all InterconnectAttachments configured to use this Interconnect.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setInterconnectAttachments

[Output Only] A list of the URLs of all InterconnectAttachments configured to use this Interconnect.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getInterconnectType

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.

Check the InterconnectType enum for the list of possible values.

Returns
TypeDescription
string

hasInterconnectType

clearInterconnectType

setInterconnectType

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.

Check the InterconnectType enum for the list of possible values.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getKind

[Output Only] Type of the resource. Always compute#interconnect for interconnects.

Returns
TypeDescription
string

hasKind

clearKind

setKind

[Output Only] Type of the resource. Always compute#interconnect for interconnects.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLabelFingerprint

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 error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an Interconnect.

Returns
TypeDescription
string

hasLabelFingerprint

clearLabelFingerprint

setLabelFingerprint

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 error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an Interconnect.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLabels

Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getLinkType

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. Note that this field indicates the speed of each of the links in the bundle, not the speed of the entire bundle.

Check the LinkType enum for the list of possible values.

Returns
TypeDescription
string

hasLinkType

clearLinkType

setLinkType

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. Note that this field indicates the speed of each of the links in the bundle, not the speed of the entire bundle.

Check the LinkType enum for the list of possible values.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLocation

URL of the InterconnectLocation object that represents where this connection is to be provisioned.

Returns
TypeDescription
string

hasLocation

clearLocation

setLocation

URL of the InterconnectLocation object that represents where this connection is to be provisioned.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getName

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. 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.

Returns
TypeDescription
string

hasName

clearName

setName

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. 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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNocContactEmail

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.

Returns
TypeDescription
string

hasNocContactEmail

clearNocContactEmail

setNocContactEmail

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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getOperationalStatus

[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.

Check the OperationalStatus enum for the list of possible values.

Returns
TypeDescription
string

hasOperationalStatus

clearOperationalStatus

setOperationalStatus

[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.

Check the OperationalStatus enum for the list of possible values.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPeerIpAddress

[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.

Returns
TypeDescription
string

hasPeerIpAddress

clearPeerIpAddress

setPeerIpAddress

[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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProvisionedLinkCount

[Output Only] Number of links actually provisioned in this interconnect.

Returns
TypeDescription
int

hasProvisionedLinkCount

clearProvisionedLinkCount

setProvisionedLinkCount

[Output Only] Number of links actually provisioned in this interconnect.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getRemoteLocation

Indicates that this is a Cross-Cloud Interconnect. This field specifies the location outside of Google's network that the interconnect is connected to.

Returns
TypeDescription
string

hasRemoteLocation

clearRemoteLocation

setRemoteLocation

Indicates that this is a Cross-Cloud Interconnect. This field specifies the location outside of Google's network that the interconnect is connected to.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRequestedLinkCount

Target number of physical links in the link bundle, as requested by the customer.

Returns
TypeDescription
int

hasRequestedLinkCount

clearRequestedLinkCount

setRequestedLinkCount

Target number of physical links in the link bundle, as requested by the customer.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getSatisfiesPzs

[Output Only] Reserved for future use.

Returns
TypeDescription
bool

hasSatisfiesPzs

clearSatisfiesPzs

setSatisfiesPzs

[Output Only] Reserved for future use.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

[Output Only] Server-defined URL for the resource.

Returns
TypeDescription
string

[Output Only] Server-defined URL for the resource.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getState

[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.

Check the State enum for the list of possible values.

Returns
TypeDescription
string

hasState

clearState

setState

[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.

Check the State enum for the list of possible values.

Parameter
NameDescription
var string
Returns
TypeDescription
$this