blob: d171fdf059a5f15c305eb20ffd8ee7fbcd918633 [file] [log] [blame]
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001<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_alpha.html">Compute Engine API</a> . <a href="compute_alpha.interconnectLocations.html">interconnectLocations</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#get">get(project, interconnectLocation)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Returns the details for the specified interconnect location. Gets a list of available interconnect locations by making a list() request.</p>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040080<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#list">list(project, orderBy=None, maxResults=None, pageToken=None, returnPartialSuccess=None, filter=None)</a></code></p>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040082<p class="firstline">Retrieves the list of interconnect locations available to the specified project.</p>
83<p class="toc_element">
84 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
85<p class="firstline">Retrieves the next page of results.</p>
86<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070087 <code><a href="#testIamPermissions">testIamPermissions(project, resource, body=None)</a></code></p>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040088<p class="firstline">Returns permissions that a caller has on the specified resource.</p>
89<h3>Method Details</h3>
90<div class="method">
91 <code class="details" id="get">get(project, interconnectLocation)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092 <pre>Returns the details for the specified interconnect location. Gets a list of available interconnect locations by making a list() request.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040093
94Args:
95 project: string, Project ID for this request. (required)
96 interconnectLocation: string, Name of the interconnect location to return. (required)
97
98Returns:
99 An object of the form:
100
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700101 { # Represents an Interconnect Attachment (VLAN) Location resource.
102 #
103 # You can use this resource to find location details about an Interconnect attachment (VLAN). For more information about interconnect attachments, read Creating VLAN Attachments.
104 "status": "A String", # [Output Only] The status of this InterconnectLocation, which can take one of the following values:
105 # - CLOSED: The InterconnectLocation is closed and is unavailable for provisioning new Interconnects.
106 # - AVAILABLE: The InterconnectLocation is available for provisioning new Interconnects.
107 "city": "A String", # [Output Only] Metropolitan area designator that indicates which city an interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands".
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400108 "kind": "compute#interconnectLocation", # [Output Only] Type of the resource. Always compute#interconnectLocation for interconnect locations.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700109 "availabilityZone": "A String", # [Output Only] Availability zone for this InterconnectLocation. Within a metropolitan area (metro), maintenance will not be simultaneously scheduled in more than one availability zone. Example: "zone1" or "zone2".
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400110 "description": "A String", # [Output Only] An optional description of the resource.
111 "peeringdbFacilityId": "A String", # [Output Only] The peeringdb identifier for this facility (corresponding with a netfac type in peeringdb).
112 "facilityProvider": "A String", # [Output Only] The name of the provider for this facility (e.g., EQUINIX).
113 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
114 "regionInfos": [ # [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions.
115 { # Information about any potential InterconnectAttachments between an Interconnect at a specific InterconnectLocation, and a specific Cloud Region.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400116 "locationPresence": "A String", # Identifies the network presence of this location.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700117 "region": "A String", # URL for the region of this location.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400118 "expectedRttMs": "A String", # Expected round-trip time in milliseconds, from this InterconnectLocation to a VM in this region.
119 },
120 ],
121 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
122 "address": "A String", # [Output Only] The postal address of the Point of Presence, each line in the address is separated by a newline character.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700123 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400124 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700125 "continent": "A String", # [Output Only] Continent for this location, which can take one of the following values:
126 # - AFRICA
127 # - ASIA_PAC
128 # - EUROPE
129 # - NORTH_AMERICA
130 # - SOUTH_AMERICA
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400131 "facilityProviderFacilityId": "A String", # [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1).
132 "name": "A String", # [Output Only] Name of the resource.
133 }</pre>
134</div>
135
136<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700137 <code class="details" id="list">list(project, orderBy=None, maxResults=None, pageToken=None, returnPartialSuccess=None, filter=None)</code>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400138 <pre>Retrieves the list of interconnect locations available to the specified project.
139
140Args:
141 project: string, Project ID for this request. (required)
142 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
143
Dan O'Mearadd494642020-05-01 07:42:23 -0700144You 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.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400145
Dan O'Mearadd494642020-05-01 07:42:23 -0700146Currently, only sorting by `name` or `creationTimestamp desc` is supported.
147 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`)
148 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.
149 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.
150 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;`.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400151
Dan O'Mearadd494642020-05-01 07:42:23 -0700152For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400153
Dan O'Mearadd494642020-05-01 07:42:23 -0700154You 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.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400155
Dan O'Mearadd494642020-05-01 07:42:23 -0700156To 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) ```
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400157
158Returns:
159 An object of the form:
160
161 { # Response to the list request, and contains a list of interconnect locations.
162 "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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700163 "kind": "compute#interconnectLocationList", # [Output Only] Type of resource. Always compute#interconnectLocationList for lists of interconnect locations.
164 "items": [ # A list of InterconnectLocation resources.
165 { # Represents an Interconnect Attachment (VLAN) Location resource.
166 #
167 # You can use this resource to find location details about an Interconnect attachment (VLAN). For more information about interconnect attachments, read Creating VLAN Attachments.
168 "status": "A String", # [Output Only] The status of this InterconnectLocation, which can take one of the following values:
169 # - CLOSED: The InterconnectLocation is closed and is unavailable for provisioning new Interconnects.
170 # - AVAILABLE: The InterconnectLocation is available for provisioning new Interconnects.
171 "city": "A String", # [Output Only] Metropolitan area designator that indicates which city an interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands".
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400172 "kind": "compute#interconnectLocation", # [Output Only] Type of the resource. Always compute#interconnectLocation for interconnect locations.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700173 "availabilityZone": "A String", # [Output Only] Availability zone for this InterconnectLocation. Within a metropolitan area (metro), maintenance will not be simultaneously scheduled in more than one availability zone. Example: "zone1" or "zone2".
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400174 "description": "A String", # [Output Only] An optional description of the resource.
175 "peeringdbFacilityId": "A String", # [Output Only] The peeringdb identifier for this facility (corresponding with a netfac type in peeringdb).
176 "facilityProvider": "A String", # [Output Only] The name of the provider for this facility (e.g., EQUINIX).
177 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
178 "regionInfos": [ # [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions.
179 { # Information about any potential InterconnectAttachments between an Interconnect at a specific InterconnectLocation, and a specific Cloud Region.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400180 "locationPresence": "A String", # Identifies the network presence of this location.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700181 "region": "A String", # URL for the region of this location.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400182 "expectedRttMs": "A String", # Expected round-trip time in milliseconds, from this InterconnectLocation to a VM in this region.
183 },
184 ],
185 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
186 "address": "A String", # [Output Only] The postal address of the Point of Presence, each line in the address is separated by a newline character.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700187 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400188 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700189 "continent": "A String", # [Output Only] Continent for this location, which can take one of the following values:
190 # - AFRICA
191 # - ASIA_PAC
192 # - EUROPE
193 # - NORTH_AMERICA
194 # - SOUTH_AMERICA
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400195 "facilityProviderFacilityId": "A String", # [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1).
196 "name": "A String", # [Output Only] Name of the resource.
197 },
198 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700199 "warning": { # [Output Only] Informational warning message.
200 "message": "A String", # [Output Only] A human-readable description of the warning code.
201 "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.
202 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
203 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
204 {
205 "value": "A String", # [Output Only] A warning data value corresponding to the key.
206 "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).
207 },
208 ],
209 },
210 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400211 "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
212 }</pre>
213</div>
214
215<div class="method">
216 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
217 <pre>Retrieves the next page of results.
218
219Args:
220 previous_request: The request for the previous page. (required)
221 previous_response: The response from the request for the previous page. (required)
222
223Returns:
224 A request object that you can call 'execute()' on to request the next
225 page. Returns None if there are no more items in the collection.
226 </pre>
227</div>
228
229<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700230 <code class="details" id="testIamPermissions">testIamPermissions(project, resource, body=None)</code>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400231 <pre>Returns permissions that a caller has on the specified resource.
232
233Args:
234 project: string, Project ID for this request. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700235 resource: string, Name or id of the resource for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700236 body: object, The request body.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400237 The object takes the form of:
238
239{
240 "permissions": [ # The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed.
241 "A String",
242 ],
243 }
244
245
246Returns:
247 An object of the form:
248
249 {
250 "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
251 "A String",
252 ],
253 }</pre>
254</div>
255
256</body></html>