blob: 0320fd8f52325471a04defaf5e085e33d7bcb9e9 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<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.interconnectAttachments.html">interconnectAttachments</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#aggregatedList">aggregatedList(project, orderBy=None, maxResults=None, pageToken=None, filter=None, includeAllScopes=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Retrieves an aggregated list of interconnect attachments.</p>
80<p class="toc_element">
81 <code><a href="#aggregatedList_next">aggregatedList_next(previous_request, previous_response)</a></code></p>
82<p class="firstline">Retrieves the next page of results.</p>
83<p class="toc_element">
84 <code><a href="#delete">delete(project, region, interconnectAttachment, requestId=None)</a></code></p>
85<p class="firstline">Deletes the specified interconnect attachment.</p>
86<p class="toc_element">
87 <code><a href="#get">get(project, region, interconnectAttachment)</a></code></p>
88<p class="firstline">Returns the specified interconnect attachment.</p>
89<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#insert">insert(project, region, body=None, requestId=None, validateOnly=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">Creates an InterconnectAttachment in the specified project using the data included in the request.</p>
92<p class="toc_element">
93 <code><a href="#list">list(project, region, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p>
94<p class="firstline">Retrieves the list of interconnect attachments contained within the specified region.</p>
95<p class="toc_element">
96 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
97<p class="firstline">Retrieves the next page of results.</p>
98<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#patch">patch(project, region, interconnectAttachment, body=None, requestId=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100<p class="firstline">Updates the specified interconnect attachment with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.</p>
101<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#setLabels">setLabels(project, region, resource, body=None, requestId=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103<p class="firstline">Sets the labels on an InterconnectAttachment. To learn more about labels, read the Labeling Resources documentation.</p>
104<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code><a href="#testIamPermissions">testIamPermissions(project, region, resource, body=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106<p class="firstline">Returns permissions that a caller has on the specified resource.</p>
107<h3>Method Details</h3>
108<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700109 <code class="details" id="aggregatedList">aggregatedList(project, orderBy=None, maxResults=None, pageToken=None, filter=None, includeAllScopes=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110 <pre>Retrieves an aggregated list of interconnect attachments.
111
112Args:
113 project: string, Project ID for this request. (required)
114 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
115
Dan O'Mearadd494642020-05-01 07:42:23 -0700116You 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700117
Dan O'Mearadd494642020-05-01 07:42:23 -0700118Currently, only sorting by `name` or `creationTimestamp desc` is supported.
119 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`)
120 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.
121 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 `=`, `!=`, `&gt;`, or `&lt;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700122
Dan O'Mearadd494642020-05-01 07:42:23 -0700123For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700124
Dan O'Mearadd494642020-05-01 07:42:23 -0700125You 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700126
Dan O'Mearadd494642020-05-01 07:42:23 -0700127To 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) ```
128 includeAllScopes: boolean, Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700129
130Returns:
131 An object of the form:
132
133 {
134 "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.
135 "kind": "compute#interconnectAttachmentAggregatedList", # [Output Only] Type of resource. Always compute#interconnectAttachmentAggregatedList for aggregated lists of interconnect attachments.
136 "items": { # A list of InterconnectAttachmentsScopedList resources.
137 "a_key": { # Name of the scope containing this set of interconnect attachments.
138 "interconnectAttachments": [ # A list of interconnect attachments contained in this scope.
139 { # Represents an Interconnect Attachment (VLAN) resource.
140 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700141 # You can use Interconnect attachments (VLANS) to connect your Virtual Private Cloud networks to your on-premises networks through an Interconnect. For more information, read Creating VLAN Attachments. (== resource_for {$api_version}.interconnectAttachments ==)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700142 "customerRouterIpAddress": "A String", # [Output Only] IPv4 address + prefix length to be configured on the customer router subinterface for this interconnect attachment.
Dan O'Mearadd494642020-05-01 07:42:23 -0700143 "labels": { # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700144 "a_key": "A String",
145 },
146 "bandwidth": "A String", # Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values:
147 # - BPS_50M: 50 Mbit/s
148 # - BPS_100M: 100 Mbit/s
149 # - BPS_200M: 200 Mbit/s
150 # - BPS_300M: 300 Mbit/s
151 # - BPS_400M: 400 Mbit/s
152 # - BPS_500M: 500 Mbit/s
153 # - BPS_1G: 1 Gbit/s
154 # - BPS_2G: 2 Gbit/s
155 # - BPS_5G: 5 Gbit/s
156 # - BPS_10G: 10 Gbit/s
Dan O'Mearadd494642020-05-01 07:42:23 -0700157 # - BPS_20G: 20 Gbit/s
158 # - BPS_50G: 50 Gbit/s
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700159 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
160 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
161 "vlanTag8021q": 42, # The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4094. Only specified at creation time.
162 "interconnect": "A String", # URL of the underlying Interconnect object that this attachment's traffic will traverse through.
163 "privateInterconnectInfo": { # Information for an interconnect attachment when this belongs to an interconnect of type DEDICATED. # [Output Only] Information specific to an InterconnectAttachment. This property is populated if the interconnect that this is attached to is of type DEDICATED.
164 "tag8021q": 42, # [Output Only] 802.1q encapsulation tag to be used for traffic between Google and the customer, going to and from this network and region.
165 },
166 "pairingKey": "A String", # [Output only for type PARTNER. Input only for PARTNER_PROVIDER. Not present for DEDICATED]. The opaque identifier of an PARTNER attachment used to initiate provisioning with a selected partner. Of the form "XXXXX/region/domain"
167 "state": "A String", # [Output Only] The current state of this attachment's functionality. Enum values ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE, PARTNER, and PARTNER_PROVIDER interconnect attachments, while enum values PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and PENDING_CUSTOMER are used for only PARTNER and PARTNER_PROVIDER interconnect attachments. This state can take one of the following values:
168 # - ACTIVE: The attachment has been turned up and is ready to use.
169 # - UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete.
170 # - PENDING_PARTNER: A newly-created PARTNER attachment that has not yet been configured on the Partner side.
171 # - PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in the process of provisioning after a PARTNER_PROVIDER attachment was created that references it.
172 # - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is waiting for a customer to activate it.
173 # - DEFUNCT: The attachment was deleted externally and is no longer functional. This could be because the associated Interconnect was removed, or because the other side of a Partner attachment was deleted.
174 "partnerMetadata": { # Informational metadata about Partner attachments from Partners to display to customers. These fields are propagated from PARTNER_PROVIDER attachments to their corresponding PARTNER attachments. # Informational metadata about Partner attachments from Partners to display to customers. Output only for for PARTNER type, mutable for PARTNER_PROVIDER, not available for DEDICATED.
175 "partnerName": "A String", # Plain text name of the Partner providing this attachment. This value may be validated to match approved Partner values.
Dan O'Mearadd494642020-05-01 07:42:23 -0700176 "interconnectName": "A String", # Plain text name of the Interconnect this attachment is connected to, as displayed in the Partner's portal. For instance "Chicago 1". This value may be validated to match approved Partner values.
177 "portalUrl": "A String", # URL of the Partner's portal for this Attachment. Partners may customise this to be a deep link to the specific resource on the Partner portal. This value may be validated to match approved Partner values.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700178 },
179 "type": "A String", # The type of interconnect attachment this is, which can take one of the following values:
180 # - DEDICATED: an attachment to a Dedicated Interconnect.
181 # - PARTNER: an attachment to a Partner Interconnect, created by the customer.
182 # - PARTNER_PROVIDER: an attachment to a Partner Interconnect, created by the partner.
183 "partnerAsn": "A String", # Optional BGP ASN for the router supplied by a Layer 3 Partner if they configured BGP on behalf of the customer. Output only for PARTNER type, input only for PARTNER_PROVIDER, not available for DEDICATED.
184 "description": "A String", # An optional description of this resource.
185 "adminEnabled": True or False, # Determines whether this Attachment will carry packets. Not present for PARTNER_PROVIDER.
186 "labelFingerprint": "A String", # A fingerprint for the labels being applied to this InterconnectAttachment, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet.
187 #
188 # To see the latest fingerprint, make a get() request to retrieve an InterconnectAttachment.
189 "operationalStatus": "A String", # [Output Only] The current status of whether or not this interconnect attachment is functional, which can take one of the following values:
190 # - OS_ACTIVE: The attachment has been turned up and is ready to use.
191 # - OS_UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete.
192 "cloudRouterIpAddress": "A String", # [Output Only] IPv4 address + prefix length to be configured on Cloud Router Interface for this interconnect attachment.
193 "kind": "compute#interconnectAttachment", # [Output Only] Type of the resource. Always compute#interconnectAttachment for interconnect attachments.
194 "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.
195 "googleReferenceId": "A String", # [Output Only] Google reference ID, to be used when raising support tickets with Google or otherwise to debug backend connectivity issues. [Deprecated] This field is not used.
Dan O'Mearadd494642020-05-01 07:42:23 -0700196 "candidateSubnets": [ # Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700197 "A String",
198 ],
199 "edgeAvailabilityDomain": "A String", # Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values:
200 # - AVAILABILITY_DOMAIN_ANY
201 # - AVAILABILITY_DOMAIN_1
202 # - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
Dan O'Mearadd494642020-05-01 07:42:23 -0700203 "router": "A String", # URL of the Cloud Router to be used for dynamic routing. This router must be in the same region as this InterconnectAttachment. The InterconnectAttachment will automatically connect the Interconnect to the network &amp; region within which the Cloud Router is configured.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700204 "region": "A String", # [Output Only] URL of the region where the regional interconnect attachment resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
205 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
206 },
207 ],
208 "warning": { # Informational warning which replaces the list of addresses when the list is empty.
209 "message": "A String", # [Output Only] A human-readable description of the warning code.
210 "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.
211 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
212 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
213 {
214 "value": "A String", # [Output Only] A warning data value corresponding to the key.
215 "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).
216 },
217 ],
218 },
219 },
220 },
221 "warning": { # [Output Only] Informational warning message.
222 "message": "A String", # [Output Only] A human-readable description of the warning code.
223 "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.
224 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
225 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
226 {
227 "value": "A String", # [Output Only] A warning data value corresponding to the key.
228 "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).
229 },
230 ],
231 },
232 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
233 "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
234 }</pre>
235</div>
236
237<div class="method">
238 <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code>
239 <pre>Retrieves the next page of results.
240
241Args:
242 previous_request: The request for the previous page. (required)
243 previous_response: The response from the request for the previous page. (required)
244
245Returns:
246 A request object that you can call 'execute()' on to request the next
247 page. Returns None if there are no more items in the collection.
248 </pre>
249</div>
250
251<div class="method">
252 <code class="details" id="delete">delete(project, region, interconnectAttachment, requestId=None)</code>
253 <pre>Deletes the specified interconnect attachment.
254
255Args:
256 project: string, Project ID for this request. (required)
257 region: string, Name of the region for this request. (required)
258 interconnectAttachment: string, Name of the interconnect attachment to delete. (required)
259 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.
260
261For 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.
262
263The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
264
265Returns:
266 An object of the form:
267
268 { # Represents an Operation resource.
269 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700270 # Google Compute Engine has three Operation resources:
271 #
272 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
273 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700274 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
275 #
276 # Operations can be global, regional or zonal.
Dan O'Mearadd494642020-05-01 07:42:23 -0700277 # - For global operations, use the `globalOperations` resource.
278 # - For regional operations, use the `regionOperations` resource.
279 # - For zonal operations, use the `zonalOperations` resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700280 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700281 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700282 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
283 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
284 "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
Dan O'Mearadd494642020-05-01 07:42:23 -0700285 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700286 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
287 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
Dan O'Mearadd494642020-05-01 07:42:23 -0700288 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
289 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700290 "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.
Dan O'Mearadd494642020-05-01 07:42:23 -0700291 "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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700292 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Dan O'Mearadd494642020-05-01 07:42:23 -0700293 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700294 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
295 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
296 {
297 "message": "A String", # [Output Only] A human-readable description of the warning code.
298 "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.
299 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
300 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
301 {
302 "value": "A String", # [Output Only] A warning data value corresponding to the key.
303 "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).
304 },
305 ],
306 },
307 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700308 "user": "A String", # [Output Only] User who requested the operation, for example: `user@example.com`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700309 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
Dan O'Mearadd494642020-05-01 07:42:23 -0700310 "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
311 "name": "A String", # [Output Only] Name of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700312 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
313 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
314 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
315 {
316 "message": "A String", # [Output Only] An optional, human-readable error message.
317 "code": "A String", # [Output Only] The error type identifier for this error.
318 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
319 },
320 ],
321 },
322 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
323 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
324 "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.
325 }</pre>
326</div>
327
328<div class="method">
329 <code class="details" id="get">get(project, region, interconnectAttachment)</code>
330 <pre>Returns the specified interconnect attachment.
331
332Args:
333 project: string, Project ID for this request. (required)
334 region: string, Name of the region for this request. (required)
335 interconnectAttachment: string, Name of the interconnect attachment to return. (required)
336
337Returns:
338 An object of the form:
339
340 { # Represents an Interconnect Attachment (VLAN) resource.
341 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700342 # You can use Interconnect attachments (VLANS) to connect your Virtual Private Cloud networks to your on-premises networks through an Interconnect. For more information, read Creating VLAN Attachments. (== resource_for {$api_version}.interconnectAttachments ==)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700343 "customerRouterIpAddress": "A String", # [Output Only] IPv4 address + prefix length to be configured on the customer router subinterface for this interconnect attachment.
Dan O'Mearadd494642020-05-01 07:42:23 -0700344 "labels": { # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700345 "a_key": "A String",
346 },
347 "bandwidth": "A String", # Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values:
348 # - BPS_50M: 50 Mbit/s
349 # - BPS_100M: 100 Mbit/s
350 # - BPS_200M: 200 Mbit/s
351 # - BPS_300M: 300 Mbit/s
352 # - BPS_400M: 400 Mbit/s
353 # - BPS_500M: 500 Mbit/s
354 # - BPS_1G: 1 Gbit/s
355 # - BPS_2G: 2 Gbit/s
356 # - BPS_5G: 5 Gbit/s
357 # - BPS_10G: 10 Gbit/s
Dan O'Mearadd494642020-05-01 07:42:23 -0700358 # - BPS_20G: 20 Gbit/s
359 # - BPS_50G: 50 Gbit/s
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700360 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
361 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
362 "vlanTag8021q": 42, # The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4094. Only specified at creation time.
363 "interconnect": "A String", # URL of the underlying Interconnect object that this attachment's traffic will traverse through.
364 "privateInterconnectInfo": { # Information for an interconnect attachment when this belongs to an interconnect of type DEDICATED. # [Output Only] Information specific to an InterconnectAttachment. This property is populated if the interconnect that this is attached to is of type DEDICATED.
365 "tag8021q": 42, # [Output Only] 802.1q encapsulation tag to be used for traffic between Google and the customer, going to and from this network and region.
366 },
367 "pairingKey": "A String", # [Output only for type PARTNER. Input only for PARTNER_PROVIDER. Not present for DEDICATED]. The opaque identifier of an PARTNER attachment used to initiate provisioning with a selected partner. Of the form "XXXXX/region/domain"
368 "state": "A String", # [Output Only] The current state of this attachment's functionality. Enum values ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE, PARTNER, and PARTNER_PROVIDER interconnect attachments, while enum values PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and PENDING_CUSTOMER are used for only PARTNER and PARTNER_PROVIDER interconnect attachments. This state can take one of the following values:
369 # - ACTIVE: The attachment has been turned up and is ready to use.
370 # - UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete.
371 # - PENDING_PARTNER: A newly-created PARTNER attachment that has not yet been configured on the Partner side.
372 # - PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in the process of provisioning after a PARTNER_PROVIDER attachment was created that references it.
373 # - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is waiting for a customer to activate it.
374 # - DEFUNCT: The attachment was deleted externally and is no longer functional. This could be because the associated Interconnect was removed, or because the other side of a Partner attachment was deleted.
375 "partnerMetadata": { # Informational metadata about Partner attachments from Partners to display to customers. These fields are propagated from PARTNER_PROVIDER attachments to their corresponding PARTNER attachments. # Informational metadata about Partner attachments from Partners to display to customers. Output only for for PARTNER type, mutable for PARTNER_PROVIDER, not available for DEDICATED.
376 "partnerName": "A String", # Plain text name of the Partner providing this attachment. This value may be validated to match approved Partner values.
Dan O'Mearadd494642020-05-01 07:42:23 -0700377 "interconnectName": "A String", # Plain text name of the Interconnect this attachment is connected to, as displayed in the Partner's portal. For instance "Chicago 1". This value may be validated to match approved Partner values.
378 "portalUrl": "A String", # URL of the Partner's portal for this Attachment. Partners may customise this to be a deep link to the specific resource on the Partner portal. This value may be validated to match approved Partner values.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700379 },
380 "type": "A String", # The type of interconnect attachment this is, which can take one of the following values:
381 # - DEDICATED: an attachment to a Dedicated Interconnect.
382 # - PARTNER: an attachment to a Partner Interconnect, created by the customer.
383 # - PARTNER_PROVIDER: an attachment to a Partner Interconnect, created by the partner.
384 "partnerAsn": "A String", # Optional BGP ASN for the router supplied by a Layer 3 Partner if they configured BGP on behalf of the customer. Output only for PARTNER type, input only for PARTNER_PROVIDER, not available for DEDICATED.
385 "description": "A String", # An optional description of this resource.
386 "adminEnabled": True or False, # Determines whether this Attachment will carry packets. Not present for PARTNER_PROVIDER.
387 "labelFingerprint": "A String", # A fingerprint for the labels being applied to this InterconnectAttachment, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet.
388 #
389 # To see the latest fingerprint, make a get() request to retrieve an InterconnectAttachment.
390 "operationalStatus": "A String", # [Output Only] The current status of whether or not this interconnect attachment is functional, which can take one of the following values:
391 # - OS_ACTIVE: The attachment has been turned up and is ready to use.
392 # - OS_UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete.
393 "cloudRouterIpAddress": "A String", # [Output Only] IPv4 address + prefix length to be configured on Cloud Router Interface for this interconnect attachment.
394 "kind": "compute#interconnectAttachment", # [Output Only] Type of the resource. Always compute#interconnectAttachment for interconnect attachments.
395 "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.
396 "googleReferenceId": "A String", # [Output Only] Google reference ID, to be used when raising support tickets with Google or otherwise to debug backend connectivity issues. [Deprecated] This field is not used.
Dan O'Mearadd494642020-05-01 07:42:23 -0700397 "candidateSubnets": [ # Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700398 "A String",
399 ],
400 "edgeAvailabilityDomain": "A String", # Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values:
401 # - AVAILABILITY_DOMAIN_ANY
402 # - AVAILABILITY_DOMAIN_1
403 # - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
Dan O'Mearadd494642020-05-01 07:42:23 -0700404 "router": "A String", # URL of the Cloud Router to be used for dynamic routing. This router must be in the same region as this InterconnectAttachment. The InterconnectAttachment will automatically connect the Interconnect to the network &amp; region within which the Cloud Router is configured.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700405 "region": "A String", # [Output Only] URL of the region where the regional interconnect attachment resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
406 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
407 }</pre>
408</div>
409
410<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700411 <code class="details" id="insert">insert(project, region, body=None, requestId=None, validateOnly=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700412 <pre>Creates an InterconnectAttachment in the specified project using the data included in the request.
413
414Args:
415 project: string, Project ID for this request. (required)
416 region: string, Name of the region for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700417 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700418 The object takes the form of:
419
420{ # Represents an Interconnect Attachment (VLAN) resource.
421 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700422 # You can use Interconnect attachments (VLANS) to connect your Virtual Private Cloud networks to your on-premises networks through an Interconnect. For more information, read Creating VLAN Attachments. (== resource_for {$api_version}.interconnectAttachments ==)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700423 "customerRouterIpAddress": "A String", # [Output Only] IPv4 address + prefix length to be configured on the customer router subinterface for this interconnect attachment.
Dan O'Mearadd494642020-05-01 07:42:23 -0700424 "labels": { # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700425 "a_key": "A String",
426 },
427 "bandwidth": "A String", # Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values:
428 # - BPS_50M: 50 Mbit/s
429 # - BPS_100M: 100 Mbit/s
430 # - BPS_200M: 200 Mbit/s
431 # - BPS_300M: 300 Mbit/s
432 # - BPS_400M: 400 Mbit/s
433 # - BPS_500M: 500 Mbit/s
434 # - BPS_1G: 1 Gbit/s
435 # - BPS_2G: 2 Gbit/s
436 # - BPS_5G: 5 Gbit/s
437 # - BPS_10G: 10 Gbit/s
Dan O'Mearadd494642020-05-01 07:42:23 -0700438 # - BPS_20G: 20 Gbit/s
439 # - BPS_50G: 50 Gbit/s
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700440 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
441 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
442 "vlanTag8021q": 42, # The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4094. Only specified at creation time.
443 "interconnect": "A String", # URL of the underlying Interconnect object that this attachment's traffic will traverse through.
444 "privateInterconnectInfo": { # Information for an interconnect attachment when this belongs to an interconnect of type DEDICATED. # [Output Only] Information specific to an InterconnectAttachment. This property is populated if the interconnect that this is attached to is of type DEDICATED.
445 "tag8021q": 42, # [Output Only] 802.1q encapsulation tag to be used for traffic between Google and the customer, going to and from this network and region.
446 },
447 "pairingKey": "A String", # [Output only for type PARTNER. Input only for PARTNER_PROVIDER. Not present for DEDICATED]. The opaque identifier of an PARTNER attachment used to initiate provisioning with a selected partner. Of the form "XXXXX/region/domain"
448 "state": "A String", # [Output Only] The current state of this attachment's functionality. Enum values ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE, PARTNER, and PARTNER_PROVIDER interconnect attachments, while enum values PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and PENDING_CUSTOMER are used for only PARTNER and PARTNER_PROVIDER interconnect attachments. This state can take one of the following values:
449 # - ACTIVE: The attachment has been turned up and is ready to use.
450 # - UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete.
451 # - PENDING_PARTNER: A newly-created PARTNER attachment that has not yet been configured on the Partner side.
452 # - PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in the process of provisioning after a PARTNER_PROVIDER attachment was created that references it.
453 # - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is waiting for a customer to activate it.
454 # - DEFUNCT: The attachment was deleted externally and is no longer functional. This could be because the associated Interconnect was removed, or because the other side of a Partner attachment was deleted.
455 "partnerMetadata": { # Informational metadata about Partner attachments from Partners to display to customers. These fields are propagated from PARTNER_PROVIDER attachments to their corresponding PARTNER attachments. # Informational metadata about Partner attachments from Partners to display to customers. Output only for for PARTNER type, mutable for PARTNER_PROVIDER, not available for DEDICATED.
456 "partnerName": "A String", # Plain text name of the Partner providing this attachment. This value may be validated to match approved Partner values.
Dan O'Mearadd494642020-05-01 07:42:23 -0700457 "interconnectName": "A String", # Plain text name of the Interconnect this attachment is connected to, as displayed in the Partner's portal. For instance "Chicago 1". This value may be validated to match approved Partner values.
458 "portalUrl": "A String", # URL of the Partner's portal for this Attachment. Partners may customise this to be a deep link to the specific resource on the Partner portal. This value may be validated to match approved Partner values.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700459 },
460 "type": "A String", # The type of interconnect attachment this is, which can take one of the following values:
461 # - DEDICATED: an attachment to a Dedicated Interconnect.
462 # - PARTNER: an attachment to a Partner Interconnect, created by the customer.
463 # - PARTNER_PROVIDER: an attachment to a Partner Interconnect, created by the partner.
464 "partnerAsn": "A String", # Optional BGP ASN for the router supplied by a Layer 3 Partner if they configured BGP on behalf of the customer. Output only for PARTNER type, input only for PARTNER_PROVIDER, not available for DEDICATED.
465 "description": "A String", # An optional description of this resource.
466 "adminEnabled": True or False, # Determines whether this Attachment will carry packets. Not present for PARTNER_PROVIDER.
467 "labelFingerprint": "A String", # A fingerprint for the labels being applied to this InterconnectAttachment, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet.
468 #
469 # To see the latest fingerprint, make a get() request to retrieve an InterconnectAttachment.
470 "operationalStatus": "A String", # [Output Only] The current status of whether or not this interconnect attachment is functional, which can take one of the following values:
471 # - OS_ACTIVE: The attachment has been turned up and is ready to use.
472 # - OS_UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete.
473 "cloudRouterIpAddress": "A String", # [Output Only] IPv4 address + prefix length to be configured on Cloud Router Interface for this interconnect attachment.
474 "kind": "compute#interconnectAttachment", # [Output Only] Type of the resource. Always compute#interconnectAttachment for interconnect attachments.
475 "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.
476 "googleReferenceId": "A String", # [Output Only] Google reference ID, to be used when raising support tickets with Google or otherwise to debug backend connectivity issues. [Deprecated] This field is not used.
Dan O'Mearadd494642020-05-01 07:42:23 -0700477 "candidateSubnets": [ # Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700478 "A String",
479 ],
480 "edgeAvailabilityDomain": "A String", # Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values:
481 # - AVAILABILITY_DOMAIN_ANY
482 # - AVAILABILITY_DOMAIN_1
483 # - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
Dan O'Mearadd494642020-05-01 07:42:23 -0700484 "router": "A String", # URL of the Cloud Router to be used for dynamic routing. This router must be in the same region as this InterconnectAttachment. The InterconnectAttachment will automatically connect the Interconnect to the network &amp; region within which the Cloud Router is configured.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700485 "region": "A String", # [Output Only] URL of the region where the regional interconnect attachment resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
486 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
487 }
488
489 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.
490
491For 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.
492
493The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
Dan O'Mearadd494642020-05-01 07:42:23 -0700494 validateOnly: boolean, If true, the request will not be committed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700495
496Returns:
497 An object of the form:
498
499 { # Represents an Operation resource.
500 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700501 # Google Compute Engine has three Operation resources:
502 #
503 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
504 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700505 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
506 #
507 # Operations can be global, regional or zonal.
Dan O'Mearadd494642020-05-01 07:42:23 -0700508 # - For global operations, use the `globalOperations` resource.
509 # - For regional operations, use the `regionOperations` resource.
510 # - For zonal operations, use the `zonalOperations` resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700511 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700512 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700513 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
514 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
515 "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
Dan O'Mearadd494642020-05-01 07:42:23 -0700516 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700517 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
518 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
Dan O'Mearadd494642020-05-01 07:42:23 -0700519 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
520 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700521 "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.
Dan O'Mearadd494642020-05-01 07:42:23 -0700522 "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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700523 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Dan O'Mearadd494642020-05-01 07:42:23 -0700524 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700525 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
526 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
527 {
528 "message": "A String", # [Output Only] A human-readable description of the warning code.
529 "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.
530 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
531 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
532 {
533 "value": "A String", # [Output Only] A warning data value corresponding to the key.
534 "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).
535 },
536 ],
537 },
538 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700539 "user": "A String", # [Output Only] User who requested the operation, for example: `user@example.com`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700540 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
Dan O'Mearadd494642020-05-01 07:42:23 -0700541 "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
542 "name": "A String", # [Output Only] Name of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700543 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
544 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
545 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
546 {
547 "message": "A String", # [Output Only] An optional, human-readable error message.
548 "code": "A String", # [Output Only] The error type identifier for this error.
549 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
550 },
551 ],
552 },
553 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
554 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
555 "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.
556 }</pre>
557</div>
558
559<div class="method">
560 <code class="details" id="list">list(project, region, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
561 <pre>Retrieves the list of interconnect attachments contained within the specified region.
562
563Args:
564 project: string, Project ID for this request. (required)
565 region: string, Name of the region for this request. (required)
566 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
567
Dan O'Mearadd494642020-05-01 07:42:23 -0700568You 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700569
Dan O'Mearadd494642020-05-01 07:42:23 -0700570Currently, only sorting by `name` or `creationTimestamp desc` is supported.
571 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`)
572 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.
573 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 `=`, `!=`, `&gt;`, or `&lt;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700574
Dan O'Mearadd494642020-05-01 07:42:23 -0700575For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700576
Dan O'Mearadd494642020-05-01 07:42:23 -0700577You 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700578
Dan O'Mearadd494642020-05-01 07:42:23 -0700579To 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) ```
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700580
581Returns:
582 An object of the form:
583
584 { # Response to the list request, and contains a list of interconnect attachments.
585 "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.
586 "kind": "compute#interconnectAttachmentList", # [Output Only] Type of resource. Always compute#interconnectAttachmentList for lists of interconnect attachments.
587 "items": [ # A list of InterconnectAttachment resources.
588 { # Represents an Interconnect Attachment (VLAN) resource.
589 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700590 # You can use Interconnect attachments (VLANS) to connect your Virtual Private Cloud networks to your on-premises networks through an Interconnect. For more information, read Creating VLAN Attachments. (== resource_for {$api_version}.interconnectAttachments ==)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700591 "customerRouterIpAddress": "A String", # [Output Only] IPv4 address + prefix length to be configured on the customer router subinterface for this interconnect attachment.
Dan O'Mearadd494642020-05-01 07:42:23 -0700592 "labels": { # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700593 "a_key": "A String",
594 },
595 "bandwidth": "A String", # Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values:
596 # - BPS_50M: 50 Mbit/s
597 # - BPS_100M: 100 Mbit/s
598 # - BPS_200M: 200 Mbit/s
599 # - BPS_300M: 300 Mbit/s
600 # - BPS_400M: 400 Mbit/s
601 # - BPS_500M: 500 Mbit/s
602 # - BPS_1G: 1 Gbit/s
603 # - BPS_2G: 2 Gbit/s
604 # - BPS_5G: 5 Gbit/s
605 # - BPS_10G: 10 Gbit/s
Dan O'Mearadd494642020-05-01 07:42:23 -0700606 # - BPS_20G: 20 Gbit/s
607 # - BPS_50G: 50 Gbit/s
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700608 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
609 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
610 "vlanTag8021q": 42, # The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4094. Only specified at creation time.
611 "interconnect": "A String", # URL of the underlying Interconnect object that this attachment's traffic will traverse through.
612 "privateInterconnectInfo": { # Information for an interconnect attachment when this belongs to an interconnect of type DEDICATED. # [Output Only] Information specific to an InterconnectAttachment. This property is populated if the interconnect that this is attached to is of type DEDICATED.
613 "tag8021q": 42, # [Output Only] 802.1q encapsulation tag to be used for traffic between Google and the customer, going to and from this network and region.
614 },
615 "pairingKey": "A String", # [Output only for type PARTNER. Input only for PARTNER_PROVIDER. Not present for DEDICATED]. The opaque identifier of an PARTNER attachment used to initiate provisioning with a selected partner. Of the form "XXXXX/region/domain"
616 "state": "A String", # [Output Only] The current state of this attachment's functionality. Enum values ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE, PARTNER, and PARTNER_PROVIDER interconnect attachments, while enum values PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and PENDING_CUSTOMER are used for only PARTNER and PARTNER_PROVIDER interconnect attachments. This state can take one of the following values:
617 # - ACTIVE: The attachment has been turned up and is ready to use.
618 # - UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete.
619 # - PENDING_PARTNER: A newly-created PARTNER attachment that has not yet been configured on the Partner side.
620 # - PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in the process of provisioning after a PARTNER_PROVIDER attachment was created that references it.
621 # - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is waiting for a customer to activate it.
622 # - DEFUNCT: The attachment was deleted externally and is no longer functional. This could be because the associated Interconnect was removed, or because the other side of a Partner attachment was deleted.
623 "partnerMetadata": { # Informational metadata about Partner attachments from Partners to display to customers. These fields are propagated from PARTNER_PROVIDER attachments to their corresponding PARTNER attachments. # Informational metadata about Partner attachments from Partners to display to customers. Output only for for PARTNER type, mutable for PARTNER_PROVIDER, not available for DEDICATED.
624 "partnerName": "A String", # Plain text name of the Partner providing this attachment. This value may be validated to match approved Partner values.
Dan O'Mearadd494642020-05-01 07:42:23 -0700625 "interconnectName": "A String", # Plain text name of the Interconnect this attachment is connected to, as displayed in the Partner's portal. For instance "Chicago 1". This value may be validated to match approved Partner values.
626 "portalUrl": "A String", # URL of the Partner's portal for this Attachment. Partners may customise this to be a deep link to the specific resource on the Partner portal. This value may be validated to match approved Partner values.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700627 },
628 "type": "A String", # The type of interconnect attachment this is, which can take one of the following values:
629 # - DEDICATED: an attachment to a Dedicated Interconnect.
630 # - PARTNER: an attachment to a Partner Interconnect, created by the customer.
631 # - PARTNER_PROVIDER: an attachment to a Partner Interconnect, created by the partner.
632 "partnerAsn": "A String", # Optional BGP ASN for the router supplied by a Layer 3 Partner if they configured BGP on behalf of the customer. Output only for PARTNER type, input only for PARTNER_PROVIDER, not available for DEDICATED.
633 "description": "A String", # An optional description of this resource.
634 "adminEnabled": True or False, # Determines whether this Attachment will carry packets. Not present for PARTNER_PROVIDER.
635 "labelFingerprint": "A String", # A fingerprint for the labels being applied to this InterconnectAttachment, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet.
636 #
637 # To see the latest fingerprint, make a get() request to retrieve an InterconnectAttachment.
638 "operationalStatus": "A String", # [Output Only] The current status of whether or not this interconnect attachment is functional, which can take one of the following values:
639 # - OS_ACTIVE: The attachment has been turned up and is ready to use.
640 # - OS_UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete.
641 "cloudRouterIpAddress": "A String", # [Output Only] IPv4 address + prefix length to be configured on Cloud Router Interface for this interconnect attachment.
642 "kind": "compute#interconnectAttachment", # [Output Only] Type of the resource. Always compute#interconnectAttachment for interconnect attachments.
643 "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.
644 "googleReferenceId": "A String", # [Output Only] Google reference ID, to be used when raising support tickets with Google or otherwise to debug backend connectivity issues. [Deprecated] This field is not used.
Dan O'Mearadd494642020-05-01 07:42:23 -0700645 "candidateSubnets": [ # Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700646 "A String",
647 ],
648 "edgeAvailabilityDomain": "A String", # Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values:
649 # - AVAILABILITY_DOMAIN_ANY
650 # - AVAILABILITY_DOMAIN_1
651 # - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
Dan O'Mearadd494642020-05-01 07:42:23 -0700652 "router": "A String", # URL of the Cloud Router to be used for dynamic routing. This router must be in the same region as this InterconnectAttachment. The InterconnectAttachment will automatically connect the Interconnect to the network &amp; region within which the Cloud Router is configured.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700653 "region": "A String", # [Output Only] URL of the region where the regional interconnect attachment resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
654 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
655 },
656 ],
657 "warning": { # [Output Only] Informational warning message.
658 "message": "A String", # [Output Only] A human-readable description of the warning code.
659 "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.
660 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
661 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
662 {
663 "value": "A String", # [Output Only] A warning data value corresponding to the key.
664 "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).
665 },
666 ],
667 },
668 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
669 "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
670 }</pre>
671</div>
672
673<div class="method">
674 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
675 <pre>Retrieves the next page of results.
676
677Args:
678 previous_request: The request for the previous page. (required)
679 previous_response: The response from the request for the previous page. (required)
680
681Returns:
682 A request object that you can call 'execute()' on to request the next
683 page. Returns None if there are no more items in the collection.
684 </pre>
685</div>
686
687<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700688 <code class="details" id="patch">patch(project, region, interconnectAttachment, body=None, requestId=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700689 <pre>Updates the specified interconnect attachment with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
690
691Args:
692 project: string, Project ID for this request. (required)
693 region: string, Name of the region scoping this request. (required)
694 interconnectAttachment: string, Name of the interconnect attachment to patch. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700695 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700696 The object takes the form of:
697
698{ # Represents an Interconnect Attachment (VLAN) resource.
699 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700700 # You can use Interconnect attachments (VLANS) to connect your Virtual Private Cloud networks to your on-premises networks through an Interconnect. For more information, read Creating VLAN Attachments. (== resource_for {$api_version}.interconnectAttachments ==)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700701 "customerRouterIpAddress": "A String", # [Output Only] IPv4 address + prefix length to be configured on the customer router subinterface for this interconnect attachment.
Dan O'Mearadd494642020-05-01 07:42:23 -0700702 "labels": { # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700703 "a_key": "A String",
704 },
705 "bandwidth": "A String", # Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values:
706 # - BPS_50M: 50 Mbit/s
707 # - BPS_100M: 100 Mbit/s
708 # - BPS_200M: 200 Mbit/s
709 # - BPS_300M: 300 Mbit/s
710 # - BPS_400M: 400 Mbit/s
711 # - BPS_500M: 500 Mbit/s
712 # - BPS_1G: 1 Gbit/s
713 # - BPS_2G: 2 Gbit/s
714 # - BPS_5G: 5 Gbit/s
715 # - BPS_10G: 10 Gbit/s
Dan O'Mearadd494642020-05-01 07:42:23 -0700716 # - BPS_20G: 20 Gbit/s
717 # - BPS_50G: 50 Gbit/s
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700718 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
719 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
720 "vlanTag8021q": 42, # The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4094. Only specified at creation time.
721 "interconnect": "A String", # URL of the underlying Interconnect object that this attachment's traffic will traverse through.
722 "privateInterconnectInfo": { # Information for an interconnect attachment when this belongs to an interconnect of type DEDICATED. # [Output Only] Information specific to an InterconnectAttachment. This property is populated if the interconnect that this is attached to is of type DEDICATED.
723 "tag8021q": 42, # [Output Only] 802.1q encapsulation tag to be used for traffic between Google and the customer, going to and from this network and region.
724 },
725 "pairingKey": "A String", # [Output only for type PARTNER. Input only for PARTNER_PROVIDER. Not present for DEDICATED]. The opaque identifier of an PARTNER attachment used to initiate provisioning with a selected partner. Of the form "XXXXX/region/domain"
726 "state": "A String", # [Output Only] The current state of this attachment's functionality. Enum values ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE, PARTNER, and PARTNER_PROVIDER interconnect attachments, while enum values PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and PENDING_CUSTOMER are used for only PARTNER and PARTNER_PROVIDER interconnect attachments. This state can take one of the following values:
727 # - ACTIVE: The attachment has been turned up and is ready to use.
728 # - UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete.
729 # - PENDING_PARTNER: A newly-created PARTNER attachment that has not yet been configured on the Partner side.
730 # - PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in the process of provisioning after a PARTNER_PROVIDER attachment was created that references it.
731 # - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is waiting for a customer to activate it.
732 # - DEFUNCT: The attachment was deleted externally and is no longer functional. This could be because the associated Interconnect was removed, or because the other side of a Partner attachment was deleted.
733 "partnerMetadata": { # Informational metadata about Partner attachments from Partners to display to customers. These fields are propagated from PARTNER_PROVIDER attachments to their corresponding PARTNER attachments. # Informational metadata about Partner attachments from Partners to display to customers. Output only for for PARTNER type, mutable for PARTNER_PROVIDER, not available for DEDICATED.
734 "partnerName": "A String", # Plain text name of the Partner providing this attachment. This value may be validated to match approved Partner values.
Dan O'Mearadd494642020-05-01 07:42:23 -0700735 "interconnectName": "A String", # Plain text name of the Interconnect this attachment is connected to, as displayed in the Partner's portal. For instance "Chicago 1". This value may be validated to match approved Partner values.
736 "portalUrl": "A String", # URL of the Partner's portal for this Attachment. Partners may customise this to be a deep link to the specific resource on the Partner portal. This value may be validated to match approved Partner values.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700737 },
738 "type": "A String", # The type of interconnect attachment this is, which can take one of the following values:
739 # - DEDICATED: an attachment to a Dedicated Interconnect.
740 # - PARTNER: an attachment to a Partner Interconnect, created by the customer.
741 # - PARTNER_PROVIDER: an attachment to a Partner Interconnect, created by the partner.
742 "partnerAsn": "A String", # Optional BGP ASN for the router supplied by a Layer 3 Partner if they configured BGP on behalf of the customer. Output only for PARTNER type, input only for PARTNER_PROVIDER, not available for DEDICATED.
743 "description": "A String", # An optional description of this resource.
744 "adminEnabled": True or False, # Determines whether this Attachment will carry packets. Not present for PARTNER_PROVIDER.
745 "labelFingerprint": "A String", # A fingerprint for the labels being applied to this InterconnectAttachment, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet.
746 #
747 # To see the latest fingerprint, make a get() request to retrieve an InterconnectAttachment.
748 "operationalStatus": "A String", # [Output Only] The current status of whether or not this interconnect attachment is functional, which can take one of the following values:
749 # - OS_ACTIVE: The attachment has been turned up and is ready to use.
750 # - OS_UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete.
751 "cloudRouterIpAddress": "A String", # [Output Only] IPv4 address + prefix length to be configured on Cloud Router Interface for this interconnect attachment.
752 "kind": "compute#interconnectAttachment", # [Output Only] Type of the resource. Always compute#interconnectAttachment for interconnect attachments.
753 "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.
754 "googleReferenceId": "A String", # [Output Only] Google reference ID, to be used when raising support tickets with Google or otherwise to debug backend connectivity issues. [Deprecated] This field is not used.
Dan O'Mearadd494642020-05-01 07:42:23 -0700755 "candidateSubnets": [ # Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700756 "A String",
757 ],
758 "edgeAvailabilityDomain": "A String", # Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values:
759 # - AVAILABILITY_DOMAIN_ANY
760 # - AVAILABILITY_DOMAIN_1
761 # - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
Dan O'Mearadd494642020-05-01 07:42:23 -0700762 "router": "A String", # URL of the Cloud Router to be used for dynamic routing. This router must be in the same region as this InterconnectAttachment. The InterconnectAttachment will automatically connect the Interconnect to the network &amp; region within which the Cloud Router is configured.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700763 "region": "A String", # [Output Only] URL of the region where the regional interconnect attachment resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
764 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
765 }
766
767 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.
768
769For 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.
770
771The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
772
773Returns:
774 An object of the form:
775
776 { # Represents an Operation resource.
777 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700778 # Google Compute Engine has three Operation resources:
779 #
780 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
781 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700782 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
783 #
784 # Operations can be global, regional or zonal.
Dan O'Mearadd494642020-05-01 07:42:23 -0700785 # - For global operations, use the `globalOperations` resource.
786 # - For regional operations, use the `regionOperations` resource.
787 # - For zonal operations, use the `zonalOperations` resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700788 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700789 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700790 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
791 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
792 "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
Dan O'Mearadd494642020-05-01 07:42:23 -0700793 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700794 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
795 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
Dan O'Mearadd494642020-05-01 07:42:23 -0700796 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
797 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700798 "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.
Dan O'Mearadd494642020-05-01 07:42:23 -0700799 "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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700800 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Dan O'Mearadd494642020-05-01 07:42:23 -0700801 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700802 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
803 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
804 {
805 "message": "A String", # [Output Only] A human-readable description of the warning code.
806 "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.
807 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
808 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
809 {
810 "value": "A String", # [Output Only] A warning data value corresponding to the key.
811 "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).
812 },
813 ],
814 },
815 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700816 "user": "A String", # [Output Only] User who requested the operation, for example: `user@example.com`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700817 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
Dan O'Mearadd494642020-05-01 07:42:23 -0700818 "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
819 "name": "A String", # [Output Only] Name of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700820 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
821 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
822 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
823 {
824 "message": "A String", # [Output Only] An optional, human-readable error message.
825 "code": "A String", # [Output Only] The error type identifier for this error.
826 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
827 },
828 ],
829 },
830 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
831 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
832 "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.
833 }</pre>
834</div>
835
836<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700837 <code class="details" id="setLabels">setLabels(project, region, resource, body=None, requestId=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700838 <pre>Sets the labels on an InterconnectAttachment. To learn more about labels, read the Labeling Resources documentation.
839
840Args:
841 project: string, Project ID for this request. (required)
842 region: string, The region for this request. (required)
843 resource: string, Name or id of the resource for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700844 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700845 The object takes the form of:
846
847{
848 "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 in order to update or change labels. Make a get() request to the resource to get the latest fingerprint.
849 "labels": { # The labels to set for this resource.
850 "a_key": "A String",
851 },
852 }
853
854 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.
855
856For 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.
857
858The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
859
860Returns:
861 An object of the form:
862
863 { # Represents an Operation resource.
864 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700865 # Google Compute Engine has three Operation resources:
866 #
867 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
868 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700869 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
870 #
871 # Operations can be global, regional or zonal.
Dan O'Mearadd494642020-05-01 07:42:23 -0700872 # - For global operations, use the `globalOperations` resource.
873 # - For regional operations, use the `regionOperations` resource.
874 # - For zonal operations, use the `zonalOperations` resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700875 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700876 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700877 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
878 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
879 "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
Dan O'Mearadd494642020-05-01 07:42:23 -0700880 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700881 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
882 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
Dan O'Mearadd494642020-05-01 07:42:23 -0700883 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
884 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700885 "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.
Dan O'Mearadd494642020-05-01 07:42:23 -0700886 "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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700887 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Dan O'Mearadd494642020-05-01 07:42:23 -0700888 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700889 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
890 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
891 {
892 "message": "A String", # [Output Only] A human-readable description of the warning code.
893 "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.
894 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
895 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
896 {
897 "value": "A String", # [Output Only] A warning data value corresponding to the key.
898 "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).
899 },
900 ],
901 },
902 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700903 "user": "A String", # [Output Only] User who requested the operation, for example: `user@example.com`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700904 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
Dan O'Mearadd494642020-05-01 07:42:23 -0700905 "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
906 "name": "A String", # [Output Only] Name of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700907 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
908 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
909 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
910 {
911 "message": "A String", # [Output Only] An optional, human-readable error message.
912 "code": "A String", # [Output Only] The error type identifier for this error.
913 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
914 },
915 ],
916 },
917 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
918 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
919 "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.
920 }</pre>
921</div>
922
923<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700924 <code class="details" id="testIamPermissions">testIamPermissions(project, region, resource, body=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700925 <pre>Returns permissions that a caller has on the specified resource.
926
927Args:
928 project: string, Project ID for this request. (required)
929 region: string, The name of the region for this request. (required)
930 resource: string, Name or id of the resource for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700931 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700932 The object takes the form of:
933
934{
935 "permissions": [ # The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed.
936 "A String",
937 ],
938 }
939
940
941Returns:
942 An object of the form:
943
944 {
945 "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
946 "A String",
947 ],
948 }</pre>
949</div>
950
951</body></html>