1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="compute_beta.html">Compute Engine API</a> . <a href="compute_beta.interconnects.html">interconnects</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#delete">delete(project, interconnect, requestId=None)</a></code></p> 79<p class="firstline">Deletes the specified interconnect.</p> 80<p class="toc_element"> 81 <code><a href="#get">get(project, interconnect)</a></code></p> 82<p class="firstline">Returns the specified interconnect. Get a list of available interconnects by making a list() request.</p> 83<p class="toc_element"> 84 <code><a href="#getDiagnostics">getDiagnostics(project, interconnect)</a></code></p> 85<p class="firstline">Returns the interconnectDiagnostics for the specified interconnect.</p> 86<p class="toc_element"> 87 <code><a href="#insert">insert(project, body, requestId=None)</a></code></p> 88<p class="firstline">Creates a Interconnect in the specified project using the data included in the request.</p> 89<p class="toc_element"> 90 <code><a href="#list">list(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p> 91<p class="firstline">Retrieves the list of interconnect available to the specified project.</p> 92<p class="toc_element"> 93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 94<p class="firstline">Retrieves the next page of results.</p> 95<p class="toc_element"> 96 <code><a href="#patch">patch(project, interconnect, body, requestId=None)</a></code></p> 97<p class="firstline">Updates the specified interconnect with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.</p> 98<p class="toc_element"> 99 <code><a href="#setLabels">setLabels(project, resource, body)</a></code></p> 100<p class="firstline">Sets the labels on an Interconnect. To learn more about labels, read the Labeling Resources documentation.</p> 101<p class="toc_element"> 102 <code><a href="#testIamPermissions">testIamPermissions(project, resource, body)</a></code></p> 103<p class="firstline">Returns permissions that a caller has on the specified resource.</p> 104<h3>Method Details</h3> 105<div class="method"> 106 <code class="details" id="delete">delete(project, interconnect, requestId=None)</code> 107 <pre>Deletes the specified interconnect. 108 109Args: 110 project: string, Project ID for this request. (required) 111 interconnect: string, Name of the interconnect to delete. (required) 112 requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. 113 114For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. 115 116The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). 117 118Returns: 119 An object of the form: 120 121 { # Represents an Operation resource. 122 # 123 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. 124 # 125 # Operations can be global, regional or zonal. 126 # - For global operations, use the globalOperations resource. 127 # - For regional operations, use the regionOperations resource. 128 # - For zonal operations, use the zonalOperations resource. 129 # 130 # For more information, read Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==) 131 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 132 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 133 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 134 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 135 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 136 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 137 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 138 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 139 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 140 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. 141 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 142 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 143 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 144 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 145 { 146 "message": "A String", # [Output Only] A human-readable description of the warning code. 147 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 148 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 149 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 150 { 151 "value": "A String", # [Output Only] A warning data value corresponding to the key. 152 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 153 }, 154 ], 155 }, 156 ], 157 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 158 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 159 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 160 "name": "A String", # [Output Only] Name of the resource. 161 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 162 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 163 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 164 { 165 "message": "A String", # [Output Only] An optional, human-readable error message. 166 "code": "A String", # [Output Only] The error type identifier for this error. 167 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 168 }, 169 ], 170 }, 171 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 172 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 173 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 174 }</pre> 175</div> 176 177<div class="method"> 178 <code class="details" id="get">get(project, interconnect)</code> 179 <pre>Returns the specified interconnect. Get a list of available interconnects by making a list() request. 180 181Args: 182 project: string, Project ID for this request. (required) 183 interconnect: string, Name of the interconnect to return. (required) 184 185Returns: 186 An object of the form: 187 188 { # Represents an Interconnect resource. 189 # 190 # An Interconnect resource is a dedicated connection between the GCP network and your on-premises network. For more information, read the Dedicated Interconnect Overview. (== resource_for v1.interconnects ==) (== resource_for beta.interconnects ==) 191 "linkType": "A String", # Type of link requested, which can take one of the following values: 192 # - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics 193 # - 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. 194 "customerName": "A String", # Customer name, to put in the Letter of Authorization as the party authorized to request a crossconnect. 195 "circuitInfos": [ # [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. 196 { # Describes a single physical circuit between the Customer and Google. CircuitInfo objects are created by Google, so all fields are output only. Next id: 4 197 "customerDemarcId": "A String", # Customer-side demarc ID for this circuit. 198 "googleDemarcId": "A String", # Google-side demarc ID for this circuit. Assigned at circuit turn-up and provided by Google to the customer in the LOA. 199 "googleCircuitId": "A String", # Google-assigned unique ID for this circuit. Assigned at circuit turn-up. 200 }, 201 ], 202 "labels": { # Labels to apply to this Interconnect resource. These can be later modified by the setLabels method. Each label key/value must comply with RFC1035. Label values may be empty. 203 "a_key": "A String", 204 }, 205 "nocContactEmail": "A 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 Stackdriver logs alerting and Cloud Notifications. 206 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 207 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 208 "interconnectAttachments": [ # [Output Only] A list of the URLs of all InterconnectAttachments configured to use this Interconnect. 209 "A String", 210 ], 211 "googleIpAddress": "A String", # [Output Only] IP address configured on the Google side of the Interconnect link. This can be used only for ping tests. 212 "expectedOutages": [ # [Output Only] A list of outages expected for this Interconnect. 213 { # Description of a planned outage on this Interconnect. Next id: 9 214 "description": "A String", # A description about the purpose of the outage. 215 "affectedCircuits": [ # If issue_type is IT_PARTIAL_OUTAGE, a list of the Google-side circuit IDs that will be affected. 216 "A String", 217 ], 218 "source": "A String", # The party that generated this notification, which can take the following value: 219 # - GOOGLE: this notification as generated by Google. Note that the value of NSRC_GOOGLE has been deprecated in favor of GOOGLE. 220 "state": "A String", # State of this notification, which can take one of the following values: 221 # - ACTIVE: This outage notification is active. The event could be in the past, present, or future. See start_time and end_time for scheduling. 222 # - CANCELLED: The outage associated with this notification was cancelled before the outage was due to start. Note that the versions of this enum prefixed with "NS_" have been deprecated in favor of the unprefixed values. 223 "startTime": "A String", # Scheduled start time for the outage (milliseconds since Unix epoch). 224 "issueType": "A String", # Form this outage is expected to take, which can take one of the following values: 225 # - OUTAGE: The Interconnect may be completely out of service for some or all of the specified window. 226 # - PARTIAL_OUTAGE: Some circuits comprising the Interconnect as a whole should remain up, but with reduced bandwidth. Note that the versions of this enum prefixed with "IT_" have been deprecated in favor of the unprefixed values. 227 "endTime": "A String", # Scheduled end time for the outage (milliseconds since Unix epoch). 228 "name": "A String", # Unique identifier for this outage notification. 229 }, 230 ], 231 "peerIpAddress": "A 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. 232 "state": "A String", # [Output Only] The current state of Interconnect functionality, which can take one of the following values: 233 # - ACTIVE: The Interconnect is valid, turned up and ready to use. Attachments may be provisioned on this Interconnect. 234 # - UNPROVISIONED: The Interconnect has not completed turnup. No attachments may be provisioned on this Interconnect. 235 # - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. 236 "location": "A String", # URL of the InterconnectLocation object that represents where this connection is to be provisioned. 237 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 238 "adminEnabled": True or False, # 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. 239 "labelFingerprint": "A 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. 240 # 241 # To see the latest fingerprint, make a get() request to retrieve an Interconnect. 242 "operationalStatus": "A String", # [Output Only] The current status of this Interconnect's functionality, which can take one of the following values: 243 # - OS_ACTIVE: A valid Interconnect, which is turned up and is ready to use. Attachments may be provisioned on this Interconnect. 244 # - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be provisioned on this Interconnect. 245 # - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. 246 "interconnectType": "A String", # Type of interconnect, which can take one of the following values: 247 # - PARTNER: A partner-managed interconnection shared between customers though a partner. 248 # - DEDICATED: A dedicated physical interconnection with the customer. Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. 249 "kind": "compute#interconnect", # [Output Only] Type of the resource. Always compute#interconnect for interconnects. 250 "provisionedLinkCount": 42, # [Output Only] Number of links actually provisioned in this interconnect. 251 "name": "A 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. 252 "googleReferenceId": "A String", # [Output Only] Google reference ID to be used when raising support tickets with Google or otherwise to debug backend connectivity issues. 253 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 254 "requestedLinkCount": 42, # Target number of physical links in the link bundle, as requested by the customer. 255 }</pre> 256</div> 257 258<div class="method"> 259 <code class="details" id="getDiagnostics">getDiagnostics(project, interconnect)</code> 260 <pre>Returns the interconnectDiagnostics for the specified interconnect. 261 262Args: 263 project: string, Project ID for this request. (required) 264 interconnect: string, Name of the interconnect resource to query. (required) 265 266Returns: 267 An object of the form: 268 269 { # Response for the InterconnectsGetDiagnosticsRequest. 270 "result": { # Diagnostics information about interconnect, contains detailed and current technical information about Google?s side of the connection. 271 "macAddress": "A String", # The MAC address of the Interconnect's bundle interface. 272 "arpCaches": [ # A list of InterconnectDiagnostics.ARPEntry objects, describing individual neighbors currently seen by the Google router in the ARP cache for the Interconnect. This will be empty when the Interconnect is not bundled. 273 { # Describing the ARP neighbor entries seen on this link 274 "macAddress": "A String", # The MAC address of this ARP neighbor. 275 "ipAddress": "A String", # The IP address of this ARP neighbor. 276 }, 277 ], 278 "links": [ # A list of InterconnectDiagnostics.LinkStatus objects, describing the status for each link on the Interconnect. 279 { 280 "arpCaches": [ # A list of InterconnectDiagnostics.ARPEntry objects, describing the ARP neighbor entries seen on this link. This will be empty if the link is bundled 281 { # Describing the ARP neighbor entries seen on this link 282 "macAddress": "A String", # The MAC address of this ARP neighbor. 283 "ipAddress": "A String", # The IP address of this ARP neighbor. 284 }, 285 ], 286 "circuitId": "A String", # The unique ID for this link assigned during turn up by Google. 287 "receivingOpticalPower": { # An InterconnectDiagnostics.LinkOpticalPower object, describing the current value and status of the received light level. 288 "state": "A String", # The status of the current value when compared to the warning and alarm levels for the receiving or transmitting transceiver. Possible states include: 289 # - OK: The value has not crossed a warning threshold. 290 # - LOW_WARNING: The value has crossed below the low warning threshold. 291 # - HIGH_WARNING: The value has crossed above the high warning threshold. 292 # - LOW_ALARM: The value has crossed below the low alarm threshold. 293 # - HIGH_ALARM: The value has crossed above the high alarm threshold. 294 "value": 3.14, # Value of the current receiving or transmitting optical power, read in dBm. Take a known good optical value, give it a 10% margin and trigger warnings relative to that value. In general, a -7dBm warning and a -11dBm alarm are good optical value estimates for most links. 295 }, 296 "googleDemarc": "A String", # The Demarc address assigned by Google and provided in the LoA. 297 "lacpStatus": { 298 "neighborSystemId": "A String", # System ID of the port on the neighbor?s side of the LACP exchange. 299 "state": "A String", # The state of a LACP link, which can take one of the following values: 300 # - ACTIVE: The link is configured and active within the bundle. 301 # - DETACHED: The link is not configured within the bundle. This means that the rest of the object should be empty. 302 "googleSystemId": "A String", # System ID of the port on Google?s side of the LACP exchange. 303 }, 304 "transmittingOpticalPower": { # An InterconnectDiagnostics.LinkOpticalPower object, describing the current value and status of the transmitted light level. 305 "state": "A String", # The status of the current value when compared to the warning and alarm levels for the receiving or transmitting transceiver. Possible states include: 306 # - OK: The value has not crossed a warning threshold. 307 # - LOW_WARNING: The value has crossed below the low warning threshold. 308 # - HIGH_WARNING: The value has crossed above the high warning threshold. 309 # - LOW_ALARM: The value has crossed below the low alarm threshold. 310 # - HIGH_ALARM: The value has crossed above the high alarm threshold. 311 "value": 3.14, # Value of the current receiving or transmitting optical power, read in dBm. Take a known good optical value, give it a 10% margin and trigger warnings relative to that value. In general, a -7dBm warning and a -11dBm alarm are good optical value estimates for most links. 312 }, 313 }, 314 ], 315 }, 316 }</pre> 317</div> 318 319<div class="method"> 320 <code class="details" id="insert">insert(project, body, requestId=None)</code> 321 <pre>Creates a Interconnect in the specified project using the data included in the request. 322 323Args: 324 project: string, Project ID for this request. (required) 325 body: object, The request body. (required) 326 The object takes the form of: 327 328{ # Represents an Interconnect resource. 329 # 330 # An Interconnect resource is a dedicated connection between the GCP network and your on-premises network. For more information, read the Dedicated Interconnect Overview. (== resource_for v1.interconnects ==) (== resource_for beta.interconnects ==) 331 "linkType": "A String", # Type of link requested, which can take one of the following values: 332 # - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics 333 # - 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. 334 "customerName": "A String", # Customer name, to put in the Letter of Authorization as the party authorized to request a crossconnect. 335 "circuitInfos": [ # [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. 336 { # Describes a single physical circuit between the Customer and Google. CircuitInfo objects are created by Google, so all fields are output only. Next id: 4 337 "customerDemarcId": "A String", # Customer-side demarc ID for this circuit. 338 "googleDemarcId": "A String", # Google-side demarc ID for this circuit. Assigned at circuit turn-up and provided by Google to the customer in the LOA. 339 "googleCircuitId": "A String", # Google-assigned unique ID for this circuit. Assigned at circuit turn-up. 340 }, 341 ], 342 "labels": { # Labels to apply to this Interconnect resource. These can be later modified by the setLabels method. Each label key/value must comply with RFC1035. Label values may be empty. 343 "a_key": "A String", 344 }, 345 "nocContactEmail": "A 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 Stackdriver logs alerting and Cloud Notifications. 346 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 347 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 348 "interconnectAttachments": [ # [Output Only] A list of the URLs of all InterconnectAttachments configured to use this Interconnect. 349 "A String", 350 ], 351 "googleIpAddress": "A String", # [Output Only] IP address configured on the Google side of the Interconnect link. This can be used only for ping tests. 352 "expectedOutages": [ # [Output Only] A list of outages expected for this Interconnect. 353 { # Description of a planned outage on this Interconnect. Next id: 9 354 "description": "A String", # A description about the purpose of the outage. 355 "affectedCircuits": [ # If issue_type is IT_PARTIAL_OUTAGE, a list of the Google-side circuit IDs that will be affected. 356 "A String", 357 ], 358 "source": "A String", # The party that generated this notification, which can take the following value: 359 # - GOOGLE: this notification as generated by Google. Note that the value of NSRC_GOOGLE has been deprecated in favor of GOOGLE. 360 "state": "A String", # State of this notification, which can take one of the following values: 361 # - ACTIVE: This outage notification is active. The event could be in the past, present, or future. See start_time and end_time for scheduling. 362 # - CANCELLED: The outage associated with this notification was cancelled before the outage was due to start. Note that the versions of this enum prefixed with "NS_" have been deprecated in favor of the unprefixed values. 363 "startTime": "A String", # Scheduled start time for the outage (milliseconds since Unix epoch). 364 "issueType": "A String", # Form this outage is expected to take, which can take one of the following values: 365 # - OUTAGE: The Interconnect may be completely out of service for some or all of the specified window. 366 # - PARTIAL_OUTAGE: Some circuits comprising the Interconnect as a whole should remain up, but with reduced bandwidth. Note that the versions of this enum prefixed with "IT_" have been deprecated in favor of the unprefixed values. 367 "endTime": "A String", # Scheduled end time for the outage (milliseconds since Unix epoch). 368 "name": "A String", # Unique identifier for this outage notification. 369 }, 370 ], 371 "peerIpAddress": "A 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. 372 "state": "A String", # [Output Only] The current state of Interconnect functionality, which can take one of the following values: 373 # - ACTIVE: The Interconnect is valid, turned up and ready to use. Attachments may be provisioned on this Interconnect. 374 # - UNPROVISIONED: The Interconnect has not completed turnup. No attachments may be provisioned on this Interconnect. 375 # - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. 376 "location": "A String", # URL of the InterconnectLocation object that represents where this connection is to be provisioned. 377 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 378 "adminEnabled": True or False, # 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. 379 "labelFingerprint": "A 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. 380 # 381 # To see the latest fingerprint, make a get() request to retrieve an Interconnect. 382 "operationalStatus": "A String", # [Output Only] The current status of this Interconnect's functionality, which can take one of the following values: 383 # - OS_ACTIVE: A valid Interconnect, which is turned up and is ready to use. Attachments may be provisioned on this Interconnect. 384 # - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be provisioned on this Interconnect. 385 # - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. 386 "interconnectType": "A String", # Type of interconnect, which can take one of the following values: 387 # - PARTNER: A partner-managed interconnection shared between customers though a partner. 388 # - DEDICATED: A dedicated physical interconnection with the customer. Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. 389 "kind": "compute#interconnect", # [Output Only] Type of the resource. Always compute#interconnect for interconnects. 390 "provisionedLinkCount": 42, # [Output Only] Number of links actually provisioned in this interconnect. 391 "name": "A 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. 392 "googleReferenceId": "A String", # [Output Only] Google reference ID to be used when raising support tickets with Google or otherwise to debug backend connectivity issues. 393 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 394 "requestedLinkCount": 42, # Target number of physical links in the link bundle, as requested by the customer. 395 } 396 397 requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. 398 399For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. 400 401The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). 402 403Returns: 404 An object of the form: 405 406 { # Represents an Operation resource. 407 # 408 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. 409 # 410 # Operations can be global, regional or zonal. 411 # - For global operations, use the globalOperations resource. 412 # - For regional operations, use the regionOperations resource. 413 # - For zonal operations, use the zonalOperations resource. 414 # 415 # For more information, read Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==) 416 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 417 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 418 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 419 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 420 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 421 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 422 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 423 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 424 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 425 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. 426 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 427 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 428 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 429 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 430 { 431 "message": "A String", # [Output Only] A human-readable description of the warning code. 432 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 433 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 434 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 435 { 436 "value": "A String", # [Output Only] A warning data value corresponding to the key. 437 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 438 }, 439 ], 440 }, 441 ], 442 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 443 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 444 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 445 "name": "A String", # [Output Only] Name of the resource. 446 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 447 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 448 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 449 { 450 "message": "A String", # [Output Only] An optional, human-readable error message. 451 "code": "A String", # [Output Only] The error type identifier for this error. 452 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 453 }, 454 ], 455 }, 456 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 457 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 458 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 459 }</pre> 460</div> 461 462<div class="method"> 463 <code class="details" id="list">list(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</code> 464 <pre>Retrieves the list of interconnect available to the specified project. 465 466Args: 467 project: string, Project ID for this request. (required) 468 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. 469 470You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. 471 472Currently, only sorting by name or creationTimestamp desc is supported. 473 maxResults: integer, The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) 474 pageToken: string, Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. 475 filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. 476 477For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. 478 479You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. 480 481To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). 482 483Returns: 484 An object of the form: 485 486 { # Response to the list request, and contains a list of interconnects. 487 "nextPageToken": "A String", # [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. 488 "kind": "compute#interconnectList", # [Output Only] Type of resource. Always compute#interconnectList for lists of interconnects. 489 "items": [ # A list of Interconnect resources. 490 { # Represents an Interconnect resource. 491 # 492 # An Interconnect resource is a dedicated connection between the GCP network and your on-premises network. For more information, read the Dedicated Interconnect Overview. (== resource_for v1.interconnects ==) (== resource_for beta.interconnects ==) 493 "linkType": "A String", # Type of link requested, which can take one of the following values: 494 # - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics 495 # - 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. 496 "customerName": "A String", # Customer name, to put in the Letter of Authorization as the party authorized to request a crossconnect. 497 "circuitInfos": [ # [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. 498 { # Describes a single physical circuit between the Customer and Google. CircuitInfo objects are created by Google, so all fields are output only. Next id: 4 499 "customerDemarcId": "A String", # Customer-side demarc ID for this circuit. 500 "googleDemarcId": "A String", # Google-side demarc ID for this circuit. Assigned at circuit turn-up and provided by Google to the customer in the LOA. 501 "googleCircuitId": "A String", # Google-assigned unique ID for this circuit. Assigned at circuit turn-up. 502 }, 503 ], 504 "labels": { # Labels to apply to this Interconnect resource. These can be later modified by the setLabels method. Each label key/value must comply with RFC1035. Label values may be empty. 505 "a_key": "A String", 506 }, 507 "nocContactEmail": "A 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 Stackdriver logs alerting and Cloud Notifications. 508 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 509 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 510 "interconnectAttachments": [ # [Output Only] A list of the URLs of all InterconnectAttachments configured to use this Interconnect. 511 "A String", 512 ], 513 "googleIpAddress": "A String", # [Output Only] IP address configured on the Google side of the Interconnect link. This can be used only for ping tests. 514 "expectedOutages": [ # [Output Only] A list of outages expected for this Interconnect. 515 { # Description of a planned outage on this Interconnect. Next id: 9 516 "description": "A String", # A description about the purpose of the outage. 517 "affectedCircuits": [ # If issue_type is IT_PARTIAL_OUTAGE, a list of the Google-side circuit IDs that will be affected. 518 "A String", 519 ], 520 "source": "A String", # The party that generated this notification, which can take the following value: 521 # - GOOGLE: this notification as generated by Google. Note that the value of NSRC_GOOGLE has been deprecated in favor of GOOGLE. 522 "state": "A String", # State of this notification, which can take one of the following values: 523 # - ACTIVE: This outage notification is active. The event could be in the past, present, or future. See start_time and end_time for scheduling. 524 # - CANCELLED: The outage associated with this notification was cancelled before the outage was due to start. Note that the versions of this enum prefixed with "NS_" have been deprecated in favor of the unprefixed values. 525 "startTime": "A String", # Scheduled start time for the outage (milliseconds since Unix epoch). 526 "issueType": "A String", # Form this outage is expected to take, which can take one of the following values: 527 # - OUTAGE: The Interconnect may be completely out of service for some or all of the specified window. 528 # - PARTIAL_OUTAGE: Some circuits comprising the Interconnect as a whole should remain up, but with reduced bandwidth. Note that the versions of this enum prefixed with "IT_" have been deprecated in favor of the unprefixed values. 529 "endTime": "A String", # Scheduled end time for the outage (milliseconds since Unix epoch). 530 "name": "A String", # Unique identifier for this outage notification. 531 }, 532 ], 533 "peerIpAddress": "A 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. 534 "state": "A String", # [Output Only] The current state of Interconnect functionality, which can take one of the following values: 535 # - ACTIVE: The Interconnect is valid, turned up and ready to use. Attachments may be provisioned on this Interconnect. 536 # - UNPROVISIONED: The Interconnect has not completed turnup. No attachments may be provisioned on this Interconnect. 537 # - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. 538 "location": "A String", # URL of the InterconnectLocation object that represents where this connection is to be provisioned. 539 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 540 "adminEnabled": True or False, # 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. 541 "labelFingerprint": "A 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. 542 # 543 # To see the latest fingerprint, make a get() request to retrieve an Interconnect. 544 "operationalStatus": "A String", # [Output Only] The current status of this Interconnect's functionality, which can take one of the following values: 545 # - OS_ACTIVE: A valid Interconnect, which is turned up and is ready to use. Attachments may be provisioned on this Interconnect. 546 # - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be provisioned on this Interconnect. 547 # - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. 548 "interconnectType": "A String", # Type of interconnect, which can take one of the following values: 549 # - PARTNER: A partner-managed interconnection shared between customers though a partner. 550 # - DEDICATED: A dedicated physical interconnection with the customer. Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. 551 "kind": "compute#interconnect", # [Output Only] Type of the resource. Always compute#interconnect for interconnects. 552 "provisionedLinkCount": 42, # [Output Only] Number of links actually provisioned in this interconnect. 553 "name": "A 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. 554 "googleReferenceId": "A String", # [Output Only] Google reference ID to be used when raising support tickets with Google or otherwise to debug backend connectivity issues. 555 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 556 "requestedLinkCount": 42, # Target number of physical links in the link bundle, as requested by the customer. 557 }, 558 ], 559 "warning": { # [Output Only] Informational warning message. 560 "message": "A String", # [Output Only] A human-readable description of the warning code. 561 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 562 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 563 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 564 { 565 "value": "A String", # [Output Only] A warning data value corresponding to the key. 566 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 567 }, 568 ], 569 }, 570 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. 571 "selfLink": "A String", # [Output Only] Server-defined URL for this resource. 572 }</pre> 573</div> 574 575<div class="method"> 576 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 577 <pre>Retrieves the next page of results. 578 579Args: 580 previous_request: The request for the previous page. (required) 581 previous_response: The response from the request for the previous page. (required) 582 583Returns: 584 A request object that you can call 'execute()' on to request the next 585 page. Returns None if there are no more items in the collection. 586 </pre> 587</div> 588 589<div class="method"> 590 <code class="details" id="patch">patch(project, interconnect, body, requestId=None)</code> 591 <pre>Updates the specified interconnect with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. 592 593Args: 594 project: string, Project ID for this request. (required) 595 interconnect: string, Name of the interconnect to update. (required) 596 body: object, The request body. (required) 597 The object takes the form of: 598 599{ # Represents an Interconnect resource. 600 # 601 # An Interconnect resource is a dedicated connection between the GCP network and your on-premises network. For more information, read the Dedicated Interconnect Overview. (== resource_for v1.interconnects ==) (== resource_for beta.interconnects ==) 602 "linkType": "A String", # Type of link requested, which can take one of the following values: 603 # - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics 604 # - 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. 605 "customerName": "A String", # Customer name, to put in the Letter of Authorization as the party authorized to request a crossconnect. 606 "circuitInfos": [ # [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. 607 { # Describes a single physical circuit between the Customer and Google. CircuitInfo objects are created by Google, so all fields are output only. Next id: 4 608 "customerDemarcId": "A String", # Customer-side demarc ID for this circuit. 609 "googleDemarcId": "A String", # Google-side demarc ID for this circuit. Assigned at circuit turn-up and provided by Google to the customer in the LOA. 610 "googleCircuitId": "A String", # Google-assigned unique ID for this circuit. Assigned at circuit turn-up. 611 }, 612 ], 613 "labels": { # Labels to apply to this Interconnect resource. These can be later modified by the setLabels method. Each label key/value must comply with RFC1035. Label values may be empty. 614 "a_key": "A String", 615 }, 616 "nocContactEmail": "A 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 Stackdriver logs alerting and Cloud Notifications. 617 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 618 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 619 "interconnectAttachments": [ # [Output Only] A list of the URLs of all InterconnectAttachments configured to use this Interconnect. 620 "A String", 621 ], 622 "googleIpAddress": "A String", # [Output Only] IP address configured on the Google side of the Interconnect link. This can be used only for ping tests. 623 "expectedOutages": [ # [Output Only] A list of outages expected for this Interconnect. 624 { # Description of a planned outage on this Interconnect. Next id: 9 625 "description": "A String", # A description about the purpose of the outage. 626 "affectedCircuits": [ # If issue_type is IT_PARTIAL_OUTAGE, a list of the Google-side circuit IDs that will be affected. 627 "A String", 628 ], 629 "source": "A String", # The party that generated this notification, which can take the following value: 630 # - GOOGLE: this notification as generated by Google. Note that the value of NSRC_GOOGLE has been deprecated in favor of GOOGLE. 631 "state": "A String", # State of this notification, which can take one of the following values: 632 # - ACTIVE: This outage notification is active. The event could be in the past, present, or future. See start_time and end_time for scheduling. 633 # - CANCELLED: The outage associated with this notification was cancelled before the outage was due to start. Note that the versions of this enum prefixed with "NS_" have been deprecated in favor of the unprefixed values. 634 "startTime": "A String", # Scheduled start time for the outage (milliseconds since Unix epoch). 635 "issueType": "A String", # Form this outage is expected to take, which can take one of the following values: 636 # - OUTAGE: The Interconnect may be completely out of service for some or all of the specified window. 637 # - PARTIAL_OUTAGE: Some circuits comprising the Interconnect as a whole should remain up, but with reduced bandwidth. Note that the versions of this enum prefixed with "IT_" have been deprecated in favor of the unprefixed values. 638 "endTime": "A String", # Scheduled end time for the outage (milliseconds since Unix epoch). 639 "name": "A String", # Unique identifier for this outage notification. 640 }, 641 ], 642 "peerIpAddress": "A 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. 643 "state": "A String", # [Output Only] The current state of Interconnect functionality, which can take one of the following values: 644 # - ACTIVE: The Interconnect is valid, turned up and ready to use. Attachments may be provisioned on this Interconnect. 645 # - UNPROVISIONED: The Interconnect has not completed turnup. No attachments may be provisioned on this Interconnect. 646 # - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. 647 "location": "A String", # URL of the InterconnectLocation object that represents where this connection is to be provisioned. 648 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 649 "adminEnabled": True or False, # 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. 650 "labelFingerprint": "A 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. 651 # 652 # To see the latest fingerprint, make a get() request to retrieve an Interconnect. 653 "operationalStatus": "A String", # [Output Only] The current status of this Interconnect's functionality, which can take one of the following values: 654 # - OS_ACTIVE: A valid Interconnect, which is turned up and is ready to use. Attachments may be provisioned on this Interconnect. 655 # - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be provisioned on this Interconnect. 656 # - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. 657 "interconnectType": "A String", # Type of interconnect, which can take one of the following values: 658 # - PARTNER: A partner-managed interconnection shared between customers though a partner. 659 # - DEDICATED: A dedicated physical interconnection with the customer. Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. 660 "kind": "compute#interconnect", # [Output Only] Type of the resource. Always compute#interconnect for interconnects. 661 "provisionedLinkCount": 42, # [Output Only] Number of links actually provisioned in this interconnect. 662 "name": "A 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. 663 "googleReferenceId": "A String", # [Output Only] Google reference ID to be used when raising support tickets with Google or otherwise to debug backend connectivity issues. 664 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 665 "requestedLinkCount": 42, # Target number of physical links in the link bundle, as requested by the customer. 666 } 667 668 requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. 669 670For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. 671 672The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). 673 674Returns: 675 An object of the form: 676 677 { # Represents an Operation resource. 678 # 679 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. 680 # 681 # Operations can be global, regional or zonal. 682 # - For global operations, use the globalOperations resource. 683 # - For regional operations, use the regionOperations resource. 684 # - For zonal operations, use the zonalOperations resource. 685 # 686 # For more information, read Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==) 687 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 688 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 689 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 690 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 691 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 692 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 693 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 694 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 695 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 696 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. 697 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 698 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 699 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 700 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 701 { 702 "message": "A String", # [Output Only] A human-readable description of the warning code. 703 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 704 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 705 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 706 { 707 "value": "A String", # [Output Only] A warning data value corresponding to the key. 708 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 709 }, 710 ], 711 }, 712 ], 713 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 714 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 715 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 716 "name": "A String", # [Output Only] Name of the resource. 717 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 718 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 719 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 720 { 721 "message": "A String", # [Output Only] An optional, human-readable error message. 722 "code": "A String", # [Output Only] The error type identifier for this error. 723 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 724 }, 725 ], 726 }, 727 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 728 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 729 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 730 }</pre> 731</div> 732 733<div class="method"> 734 <code class="details" id="setLabels">setLabels(project, resource, body)</code> 735 <pre>Sets the labels on an Interconnect. To learn more about labels, read the Labeling Resources documentation. 736 737Args: 738 project: string, Project ID for this request. (required) 739 resource: string, Name or id of the resource for this request. (required) 740 body: object, The request body. (required) 741 The object takes the form of: 742 743{ 744 "labelFingerprint": "A String", # The fingerprint of the previous set of labels for this resource, used to detect conflicts. 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 when updating or changing labels, otherwise the request will fail with error 412 conditionNotMet. Make a get() request to the resource to get the latest fingerprint. 745 "labels": { # A list of labels to apply for this resource. Each label key & value must 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. For example, "webserver-frontend": "images". A label value can also be empty (e.g. "my-label": ""). 746 "a_key": "A String", 747 }, 748 } 749 750 751Returns: 752 An object of the form: 753 754 { # Represents an Operation resource. 755 # 756 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. 757 # 758 # Operations can be global, regional or zonal. 759 # - For global operations, use the globalOperations resource. 760 # - For regional operations, use the regionOperations resource. 761 # - For zonal operations, use the zonalOperations resource. 762 # 763 # For more information, read Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==) 764 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 765 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 766 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 767 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 768 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 769 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 770 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 771 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 772 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 773 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. 774 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 775 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 776 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 777 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 778 { 779 "message": "A String", # [Output Only] A human-readable description of the warning code. 780 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 781 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 782 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 783 { 784 "value": "A String", # [Output Only] A warning data value corresponding to the key. 785 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 786 }, 787 ], 788 }, 789 ], 790 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 791 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 792 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 793 "name": "A String", # [Output Only] Name of the resource. 794 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 795 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 796 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 797 { 798 "message": "A String", # [Output Only] An optional, human-readable error message. 799 "code": "A String", # [Output Only] The error type identifier for this error. 800 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 801 }, 802 ], 803 }, 804 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 805 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 806 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 807 }</pre> 808</div> 809 810<div class="method"> 811 <code class="details" id="testIamPermissions">testIamPermissions(project, resource, body)</code> 812 <pre>Returns permissions that a caller has on the specified resource. 813 814Args: 815 project: string, Project ID for this request. (required) 816 resource: string, Name or id of the resource for this request. (required) 817 body: object, The request body. (required) 818 The object takes the form of: 819 820{ 821 "permissions": [ # The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. 822 "A String", 823 ], 824 } 825 826 827Returns: 828 An object of the form: 829 830 { 831 "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. 832 "A String", 833 ], 834 }</pre> 835</div> 836 837</body></html>