Debian Codegraph @

docs/dyn/baremetalsolution_v2.projects.locations.networks.html

raw
1 <html><body>
2 <style>
3
4 body, 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
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, 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="baremetalsolution_v2.html">Bare Metal Solution API</a> . <a href="baremetalsolution_v2.projects.html">projects</a> . <a href="baremetalsolution_v2.projects.locations.html">locations</a> . <a href="baremetalsolution_v2.projects.locations.networks.html">networks</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
82 <p class="firstline">Get details of a single network.</p>
83 <p class="toc_element">
84 <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">List network in a given project and location.</p>
86 <p class="toc_element">
87 <code><a href="#listNetworkUsage">listNetworkUsage(location, x__xgafv=None)</a></code></p>
88 <p class="firstline">List all Networks (and used IPs for each Network) in the vendor account associated with the specified project.</p>
89 <p class="toc_element">
90 <code><a href="#list_next">list_next()</a></code></p>
91 <p class="firstline">Retrieves the next page of results.</p>
92 <p class="toc_element">
93 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Update details of a single network.</p>
95 <p class="toc_element">
96 <code><a href="#rename">rename(name, body=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">RenameNetwork sets a new name for a network. Use with caution, previous names become immediately invalidated.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102 </div>
103
104 <div class="method">
105 <code class="details" id="get">get(name, x__xgafv=None)</code>
106 <pre>Get details of a single network.
107
108 Args:
109 name: string, Required. Name of the resource. (required)
110 x__xgafv: string, V1 error format.
111 Allowed values
112 1 - v1 error format
113 2 - v2 error format
114
115 Returns:
116 An object of the form:
117
118 { # A Network.
119 &quot;cidr&quot;: &quot;A String&quot;, # The cidr of the Network.
120 &quot;gatewayIp&quot;: &quot;A String&quot;, # Output only. Gateway ip address.
121 &quot;id&quot;: &quot;A String&quot;, # An identifier for the `Network`, generated by the backend.
122 &quot;ipAddress&quot;: &quot;A String&quot;, # IP address configured.
123 &quot;jumboFramesEnabled&quot;: True or False, # Whether network uses standard frames or jumbo ones.
124 &quot;labels&quot;: { # Labels as key value pairs.
125 &quot;a_key&quot;: &quot;A String&quot;,
126 },
127 &quot;macAddress&quot;: [ # List of physical interfaces.
128 &quot;A String&quot;,
129 ],
130 &quot;mountPoints&quot;: [ # Input only. List of mount points to attach the network to.
131 { # Mount point for a network.
132 &quot;defaultGateway&quot;: True or False, # Network should be a default gateway.
133 &quot;instance&quot;: &quot;A String&quot;, # Instance to attach network to.
134 &quot;ipAddress&quot;: &quot;A String&quot;, # Ip address of the server.
135 &quot;logicalInterface&quot;: &quot;A String&quot;, # Logical interface to detach from.
136 },
137 ],
138 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of this `Network`. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: `projects/{project}/locations/{location}/networks/{network}`
139 &quot;pod&quot;: &quot;A String&quot;, # Immutable. Pod name. Pod is an independent part of infrastructure. Network can only be connected to the assets (instances, nfsshares) allocated in the same pod.
140 &quot;reservations&quot;: [ # List of IP address reservations in this network. When updating this field, an error will be generated if a reservation conflicts with an IP address already allocated to a physical server.
141 { # A reservation of one or more addresses in a network.
142 &quot;endAddress&quot;: &quot;A String&quot;, # The last address of this reservation block, inclusive. I.e., for cases when reservations are only single addresses, end_address and start_address will be the same. Must be specified as a single IPv4 address, e.g. 10.1.2.2.
143 &quot;note&quot;: &quot;A String&quot;, # A note about this reservation, intended for human consumption.
144 &quot;startAddress&quot;: &quot;A String&quot;, # The first address of this reservation block. Must be specified as a single IPv4 address, e.g. 10.1.2.2.
145 },
146 ],
147 &quot;servicesCidr&quot;: &quot;A String&quot;, # IP range for reserved for services (e.g. NFS).
148 &quot;state&quot;: &quot;A String&quot;, # The Network state.
149 &quot;type&quot;: &quot;A String&quot;, # The type of this network.
150 &quot;vlanId&quot;: &quot;A String&quot;, # The vlan id of the Network.
151 &quot;vrf&quot;: { # A network VRF. # The Vrf for the Network. Use this only if a new Vrf needs to be created.
152 &quot;name&quot;: &quot;A String&quot;, # The name of the VRF.
153 &quot;qosPolicy&quot;: { # QOS policy parameters. # The QOS policy applied to this VRF. The value is only meaningful when all the vlan attachments have the same QoS. This field should not be used for new integrations, use vlan attachment level qos instead. The field is left for backward-compatibility.
154 &quot;bandwidthGbps&quot;: 3.14, # The bandwidth permitted by the QOS policy, in gbps.
155 },
156 &quot;state&quot;: &quot;A String&quot;, # The possible state of VRF.
157 &quot;vlanAttachments&quot;: [ # The list of VLAN attachments for the VRF.
158 { # VLAN attachment details.
159 &quot;id&quot;: &quot;A String&quot;, # Immutable. The identifier of the attachment within vrf.
160 &quot;interconnectAttachment&quot;: &quot;A String&quot;, # Optional. The name of the vlan attachment within vrf. This is of the form projects/{project_number}/regions/{region}/interconnectAttachments/{interconnect_attachment}
161 &quot;pairingKey&quot;: &quot;A String&quot;, # Input only. Pairing key.
162 &quot;peerIp&quot;: &quot;A String&quot;, # The peer IP of the attachment.
163 &quot;peerVlanId&quot;: &quot;A String&quot;, # The peer vlan ID of the attachment.
164 &quot;qosPolicy&quot;: { # QOS policy parameters. # The QOS policy applied to this VLAN attachment. This value should be preferred to using qos at vrf level.
165 &quot;bandwidthGbps&quot;: 3.14, # The bandwidth permitted by the QOS policy, in gbps.
166 },
167 &quot;routerIp&quot;: &quot;A String&quot;, # The router IP of the attachment.
168 },
169 ],
170 },
171 &quot;vrfAttachment&quot;: &quot;A String&quot;, # Optional. The name of a pre-existing Vrf that the network should be attached to. Format is `vrfs/{vrf}`.
172 }</pre>
173 </div>
174
175 <div class="method">
176 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
177 <pre>List network in a given project and location.
178
179 Args:
180 parent: string, Required. Parent value for ListNetworksRequest. (required)
181 filter: string, List filter.
182 pageSize: integer, Requested page size. The server might return fewer items than requested. If unspecified, server will pick an appropriate default.
183 pageToken: string, A token identifying a page of results from the server.
184 x__xgafv: string, V1 error format.
185 Allowed values
186 1 - v1 error format
187 2 - v2 error format
188
189 Returns:
190 An object of the form:
191
192 { # Response message containing the list of networks.
193 &quot;networks&quot;: [ # The list of networks.
194 { # A Network.
195 &quot;cidr&quot;: &quot;A String&quot;, # The cidr of the Network.
196 &quot;gatewayIp&quot;: &quot;A String&quot;, # Output only. Gateway ip address.
197 &quot;id&quot;: &quot;A String&quot;, # An identifier for the `Network`, generated by the backend.
198 &quot;ipAddress&quot;: &quot;A String&quot;, # IP address configured.
199 &quot;jumboFramesEnabled&quot;: True or False, # Whether network uses standard frames or jumbo ones.
200 &quot;labels&quot;: { # Labels as key value pairs.
201 &quot;a_key&quot;: &quot;A String&quot;,
202 },
203 &quot;macAddress&quot;: [ # List of physical interfaces.
204 &quot;A String&quot;,
205 ],
206 &quot;mountPoints&quot;: [ # Input only. List of mount points to attach the network to.
207 { # Mount point for a network.
208 &quot;defaultGateway&quot;: True or False, # Network should be a default gateway.
209 &quot;instance&quot;: &quot;A String&quot;, # Instance to attach network to.
210 &quot;ipAddress&quot;: &quot;A String&quot;, # Ip address of the server.
211 &quot;logicalInterface&quot;: &quot;A String&quot;, # Logical interface to detach from.
212 },
213 ],
214 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of this `Network`. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: `projects/{project}/locations/{location}/networks/{network}`
215 &quot;pod&quot;: &quot;A String&quot;, # Immutable. Pod name. Pod is an independent part of infrastructure. Network can only be connected to the assets (instances, nfsshares) allocated in the same pod.
216 &quot;reservations&quot;: [ # List of IP address reservations in this network. When updating this field, an error will be generated if a reservation conflicts with an IP address already allocated to a physical server.
217 { # A reservation of one or more addresses in a network.
218 &quot;endAddress&quot;: &quot;A String&quot;, # The last address of this reservation block, inclusive. I.e., for cases when reservations are only single addresses, end_address and start_address will be the same. Must be specified as a single IPv4 address, e.g. 10.1.2.2.
219 &quot;note&quot;: &quot;A String&quot;, # A note about this reservation, intended for human consumption.
220 &quot;startAddress&quot;: &quot;A String&quot;, # The first address of this reservation block. Must be specified as a single IPv4 address, e.g. 10.1.2.2.
221 },
222 ],
223 &quot;servicesCidr&quot;: &quot;A String&quot;, # IP range for reserved for services (e.g. NFS).
224 &quot;state&quot;: &quot;A String&quot;, # The Network state.
225 &quot;type&quot;: &quot;A String&quot;, # The type of this network.
226 &quot;vlanId&quot;: &quot;A String&quot;, # The vlan id of the Network.
227 &quot;vrf&quot;: { # A network VRF. # The Vrf for the Network. Use this only if a new Vrf needs to be created.
228 &quot;name&quot;: &quot;A String&quot;, # The name of the VRF.
229 &quot;qosPolicy&quot;: { # QOS policy parameters. # The QOS policy applied to this VRF. The value is only meaningful when all the vlan attachments have the same QoS. This field should not be used for new integrations, use vlan attachment level qos instead. The field is left for backward-compatibility.
230 &quot;bandwidthGbps&quot;: 3.14, # The bandwidth permitted by the QOS policy, in gbps.
231 },
232 &quot;state&quot;: &quot;A String&quot;, # The possible state of VRF.
233 &quot;vlanAttachments&quot;: [ # The list of VLAN attachments for the VRF.
234 { # VLAN attachment details.
235 &quot;id&quot;: &quot;A String&quot;, # Immutable. The identifier of the attachment within vrf.
236 &quot;interconnectAttachment&quot;: &quot;A String&quot;, # Optional. The name of the vlan attachment within vrf. This is of the form projects/{project_number}/regions/{region}/interconnectAttachments/{interconnect_attachment}
237 &quot;pairingKey&quot;: &quot;A String&quot;, # Input only. Pairing key.
238 &quot;peerIp&quot;: &quot;A String&quot;, # The peer IP of the attachment.
239 &quot;peerVlanId&quot;: &quot;A String&quot;, # The peer vlan ID of the attachment.
240 &quot;qosPolicy&quot;: { # QOS policy parameters. # The QOS policy applied to this VLAN attachment. This value should be preferred to using qos at vrf level.
241 &quot;bandwidthGbps&quot;: 3.14, # The bandwidth permitted by the QOS policy, in gbps.
242 },
243 &quot;routerIp&quot;: &quot;A String&quot;, # The router IP of the attachment.
244 },
245 ],
246 },
247 &quot;vrfAttachment&quot;: &quot;A String&quot;, # Optional. The name of a pre-existing Vrf that the network should be attached to. Format is `vrfs/{vrf}`.
248 },
249 ],
250 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token identifying a page of results from the server.
251 &quot;unreachable&quot;: [ # Locations that could not be reached.
252 &quot;A String&quot;,
253 ],
254 }</pre>
255 </div>
256
257 <div class="method">
258 <code class="details" id="listNetworkUsage">listNetworkUsage(location, x__xgafv=None)</code>
259 <pre>List all Networks (and used IPs for each Network) in the vendor account associated with the specified project.
260
261 Args:
262 location: string, Required. Parent value (project and location). (required)
263 x__xgafv: string, V1 error format.
264 Allowed values
265 1 - v1 error format
266 2 - v2 error format
267
268 Returns:
269 An object of the form:
270
271 { # Response with Networks with IPs
272 &quot;networks&quot;: [ # Networks with IPs.
273 { # Network with all used IP addresses.
274 &quot;network&quot;: { # A Network. # Network.
275 &quot;cidr&quot;: &quot;A String&quot;, # The cidr of the Network.
276 &quot;gatewayIp&quot;: &quot;A String&quot;, # Output only. Gateway ip address.
277 &quot;id&quot;: &quot;A String&quot;, # An identifier for the `Network`, generated by the backend.
278 &quot;ipAddress&quot;: &quot;A String&quot;, # IP address configured.
279 &quot;jumboFramesEnabled&quot;: True or False, # Whether network uses standard frames or jumbo ones.
280 &quot;labels&quot;: { # Labels as key value pairs.
281 &quot;a_key&quot;: &quot;A String&quot;,
282 },
283 &quot;macAddress&quot;: [ # List of physical interfaces.
284 &quot;A String&quot;,
285 ],
286 &quot;mountPoints&quot;: [ # Input only. List of mount points to attach the network to.
287 { # Mount point for a network.
288 &quot;defaultGateway&quot;: True or False, # Network should be a default gateway.
289 &quot;instance&quot;: &quot;A String&quot;, # Instance to attach network to.
290 &quot;ipAddress&quot;: &quot;A String&quot;, # Ip address of the server.
291 &quot;logicalInterface&quot;: &quot;A String&quot;, # Logical interface to detach from.
292 },
293 ],
294 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of this `Network`. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: `projects/{project}/locations/{location}/networks/{network}`
295 &quot;pod&quot;: &quot;A String&quot;, # Immutable. Pod name. Pod is an independent part of infrastructure. Network can only be connected to the assets (instances, nfsshares) allocated in the same pod.
296 &quot;reservations&quot;: [ # List of IP address reservations in this network. When updating this field, an error will be generated if a reservation conflicts with an IP address already allocated to a physical server.
297 { # A reservation of one or more addresses in a network.
298 &quot;endAddress&quot;: &quot;A String&quot;, # The last address of this reservation block, inclusive. I.e., for cases when reservations are only single addresses, end_address and start_address will be the same. Must be specified as a single IPv4 address, e.g. 10.1.2.2.
299 &quot;note&quot;: &quot;A String&quot;, # A note about this reservation, intended for human consumption.
300 &quot;startAddress&quot;: &quot;A String&quot;, # The first address of this reservation block. Must be specified as a single IPv4 address, e.g. 10.1.2.2.
301 },
302 ],
303 &quot;servicesCidr&quot;: &quot;A String&quot;, # IP range for reserved for services (e.g. NFS).
304 &quot;state&quot;: &quot;A String&quot;, # The Network state.
305 &quot;type&quot;: &quot;A String&quot;, # The type of this network.
306 &quot;vlanId&quot;: &quot;A String&quot;, # The vlan id of the Network.
307 &quot;vrf&quot;: { # A network VRF. # The Vrf for the Network. Use this only if a new Vrf needs to be created.
308 &quot;name&quot;: &quot;A String&quot;, # The name of the VRF.
309 &quot;qosPolicy&quot;: { # QOS policy parameters. # The QOS policy applied to this VRF. The value is only meaningful when all the vlan attachments have the same QoS. This field should not be used for new integrations, use vlan attachment level qos instead. The field is left for backward-compatibility.
310 &quot;bandwidthGbps&quot;: 3.14, # The bandwidth permitted by the QOS policy, in gbps.
311 },
312 &quot;state&quot;: &quot;A String&quot;, # The possible state of VRF.
313 &quot;vlanAttachments&quot;: [ # The list of VLAN attachments for the VRF.
314 { # VLAN attachment details.
315 &quot;id&quot;: &quot;A String&quot;, # Immutable. The identifier of the attachment within vrf.
316 &quot;interconnectAttachment&quot;: &quot;A String&quot;, # Optional. The name of the vlan attachment within vrf. This is of the form projects/{project_number}/regions/{region}/interconnectAttachments/{interconnect_attachment}
317 &quot;pairingKey&quot;: &quot;A String&quot;, # Input only. Pairing key.
318 &quot;peerIp&quot;: &quot;A String&quot;, # The peer IP of the attachment.
319 &quot;peerVlanId&quot;: &quot;A String&quot;, # The peer vlan ID of the attachment.
320 &quot;qosPolicy&quot;: { # QOS policy parameters. # The QOS policy applied to this VLAN attachment. This value should be preferred to using qos at vrf level.
321 &quot;bandwidthGbps&quot;: 3.14, # The bandwidth permitted by the QOS policy, in gbps.
322 },
323 &quot;routerIp&quot;: &quot;A String&quot;, # The router IP of the attachment.
324 },
325 ],
326 },
327 &quot;vrfAttachment&quot;: &quot;A String&quot;, # Optional. The name of a pre-existing Vrf that the network should be attached to. Format is `vrfs/{vrf}`.
328 },
329 &quot;usedIps&quot;: [ # All used IP addresses in this network.
330 &quot;A String&quot;,
331 ],
332 },
333 ],
334 }</pre>
335 </div>
336
337 <div class="method">
338 <code class="details" id="list_next">list_next()</code>
339 <pre>Retrieves the next page of results.
340
341 Args:
342 previous_request: The request for the previous page. (required)
343 previous_response: The response from the request for the previous page. (required)
344
345 Returns:
346 A request object that you can call &#x27;execute()&#x27; on to request the next
347 page. Returns None if there are no more items in the collection.
348 </pre>
349 </div>
350
351 <div class="method">
352 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
353 <pre>Update details of a single network.
354
355 Args:
356 name: string, Output only. The resource name of this `Network`. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: `projects/{project}/locations/{location}/networks/{network}` (required)
357 body: object, The request body.
358 The object takes the form of:
359
360 { # A Network.
361 &quot;cidr&quot;: &quot;A String&quot;, # The cidr of the Network.
362 &quot;gatewayIp&quot;: &quot;A String&quot;, # Output only. Gateway ip address.
363 &quot;id&quot;: &quot;A String&quot;, # An identifier for the `Network`, generated by the backend.
364 &quot;ipAddress&quot;: &quot;A String&quot;, # IP address configured.
365 &quot;jumboFramesEnabled&quot;: True or False, # Whether network uses standard frames or jumbo ones.
366 &quot;labels&quot;: { # Labels as key value pairs.
367 &quot;a_key&quot;: &quot;A String&quot;,
368 },
369 &quot;macAddress&quot;: [ # List of physical interfaces.
370 &quot;A String&quot;,
371 ],
372 &quot;mountPoints&quot;: [ # Input only. List of mount points to attach the network to.
373 { # Mount point for a network.
374 &quot;defaultGateway&quot;: True or False, # Network should be a default gateway.
375 &quot;instance&quot;: &quot;A String&quot;, # Instance to attach network to.
376 &quot;ipAddress&quot;: &quot;A String&quot;, # Ip address of the server.
377 &quot;logicalInterface&quot;: &quot;A String&quot;, # Logical interface to detach from.
378 },
379 ],
380 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of this `Network`. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: `projects/{project}/locations/{location}/networks/{network}`
381 &quot;pod&quot;: &quot;A String&quot;, # Immutable. Pod name. Pod is an independent part of infrastructure. Network can only be connected to the assets (instances, nfsshares) allocated in the same pod.
382 &quot;reservations&quot;: [ # List of IP address reservations in this network. When updating this field, an error will be generated if a reservation conflicts with an IP address already allocated to a physical server.
383 { # A reservation of one or more addresses in a network.
384 &quot;endAddress&quot;: &quot;A String&quot;, # The last address of this reservation block, inclusive. I.e., for cases when reservations are only single addresses, end_address and start_address will be the same. Must be specified as a single IPv4 address, e.g. 10.1.2.2.
385 &quot;note&quot;: &quot;A String&quot;, # A note about this reservation, intended for human consumption.
386 &quot;startAddress&quot;: &quot;A String&quot;, # The first address of this reservation block. Must be specified as a single IPv4 address, e.g. 10.1.2.2.
387 },
388 ],
389 &quot;servicesCidr&quot;: &quot;A String&quot;, # IP range for reserved for services (e.g. NFS).
390 &quot;state&quot;: &quot;A String&quot;, # The Network state.
391 &quot;type&quot;: &quot;A String&quot;, # The type of this network.
392 &quot;vlanId&quot;: &quot;A String&quot;, # The vlan id of the Network.
393 &quot;vrf&quot;: { # A network VRF. # The Vrf for the Network. Use this only if a new Vrf needs to be created.
394 &quot;name&quot;: &quot;A String&quot;, # The name of the VRF.
395 &quot;qosPolicy&quot;: { # QOS policy parameters. # The QOS policy applied to this VRF. The value is only meaningful when all the vlan attachments have the same QoS. This field should not be used for new integrations, use vlan attachment level qos instead. The field is left for backward-compatibility.
396 &quot;bandwidthGbps&quot;: 3.14, # The bandwidth permitted by the QOS policy, in gbps.
397 },
398 &quot;state&quot;: &quot;A String&quot;, # The possible state of VRF.
399 &quot;vlanAttachments&quot;: [ # The list of VLAN attachments for the VRF.
400 { # VLAN attachment details.
401 &quot;id&quot;: &quot;A String&quot;, # Immutable. The identifier of the attachment within vrf.
402 &quot;interconnectAttachment&quot;: &quot;A String&quot;, # Optional. The name of the vlan attachment within vrf. This is of the form projects/{project_number}/regions/{region}/interconnectAttachments/{interconnect_attachment}
403 &quot;pairingKey&quot;: &quot;A String&quot;, # Input only. Pairing key.
404 &quot;peerIp&quot;: &quot;A String&quot;, # The peer IP of the attachment.
405 &quot;peerVlanId&quot;: &quot;A String&quot;, # The peer vlan ID of the attachment.
406 &quot;qosPolicy&quot;: { # QOS policy parameters. # The QOS policy applied to this VLAN attachment. This value should be preferred to using qos at vrf level.
407 &quot;bandwidthGbps&quot;: 3.14, # The bandwidth permitted by the QOS policy, in gbps.
408 },
409 &quot;routerIp&quot;: &quot;A String&quot;, # The router IP of the attachment.
410 },
411 ],
412 },
413 &quot;vrfAttachment&quot;: &quot;A String&quot;, # Optional. The name of a pre-existing Vrf that the network should be attached to. Format is `vrfs/{vrf}`.
414 }
415
416 updateMask: string, The list of fields to update. The only currently supported fields are: `labels`, `reservations`, `vrf.vlan_attachments`
417 x__xgafv: string, V1 error format.
418 Allowed values
419 1 - v1 error format
420 2 - v2 error format
421
422 Returns:
423 An object of the form:
424
425 { # This resource represents a long-running operation that is the result of a network API call.
426 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
427 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
428 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
429 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
430 {
431 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
432 },
433 ],
434 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
435 },
436 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
437 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
438 },
439 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
440 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
441 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
442 },
443 }</pre>
444 </div>
445
446 <div class="method">
447 <code class="details" id="rename">rename(name, body=None, x__xgafv=None)</code>
448 <pre>RenameNetwork sets a new name for a network. Use with caution, previous names become immediately invalidated.
449
450 Args:
451 name: string, Required. The `name` field is used to identify the network. Format: projects/{project}/locations/{location}/networks/{network} (required)
452 body: object, The request body.
453 The object takes the form of:
454
455 { # Message requesting rename of a server.
456 &quot;newNetworkId&quot;: &quot;A String&quot;, # Required. The new `id` of the network.
457 }
458
459 x__xgafv: string, V1 error format.
460 Allowed values
461 1 - v1 error format
462 2 - v2 error format
463
464 Returns:
465 An object of the form:
466
467 { # A Network.
468 &quot;cidr&quot;: &quot;A String&quot;, # The cidr of the Network.
469 &quot;gatewayIp&quot;: &quot;A String&quot;, # Output only. Gateway ip address.
470 &quot;id&quot;: &quot;A String&quot;, # An identifier for the `Network`, generated by the backend.
471 &quot;ipAddress&quot;: &quot;A String&quot;, # IP address configured.
472 &quot;jumboFramesEnabled&quot;: True or False, # Whether network uses standard frames or jumbo ones.
473 &quot;labels&quot;: { # Labels as key value pairs.
474 &quot;a_key&quot;: &quot;A String&quot;,
475 },
476 &quot;macAddress&quot;: [ # List of physical interfaces.
477 &quot;A String&quot;,
478 ],
479 &quot;mountPoints&quot;: [ # Input only. List of mount points to attach the network to.
480 { # Mount point for a network.
481 &quot;defaultGateway&quot;: True or False, # Network should be a default gateway.
482 &quot;instance&quot;: &quot;A String&quot;, # Instance to attach network to.
483 &quot;ipAddress&quot;: &quot;A String&quot;, # Ip address of the server.
484 &quot;logicalInterface&quot;: &quot;A String&quot;, # Logical interface to detach from.
485 },
486 ],
487 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of this `Network`. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: `projects/{project}/locations/{location}/networks/{network}`
488 &quot;pod&quot;: &quot;A String&quot;, # Immutable. Pod name. Pod is an independent part of infrastructure. Network can only be connected to the assets (instances, nfsshares) allocated in the same pod.
489 &quot;reservations&quot;: [ # List of IP address reservations in this network. When updating this field, an error will be generated if a reservation conflicts with an IP address already allocated to a physical server.
490 { # A reservation of one or more addresses in a network.
491 &quot;endAddress&quot;: &quot;A String&quot;, # The last address of this reservation block, inclusive. I.e., for cases when reservations are only single addresses, end_address and start_address will be the same. Must be specified as a single IPv4 address, e.g. 10.1.2.2.
492 &quot;note&quot;: &quot;A String&quot;, # A note about this reservation, intended for human consumption.
493 &quot;startAddress&quot;: &quot;A String&quot;, # The first address of this reservation block. Must be specified as a single IPv4 address, e.g. 10.1.2.2.
494 },
495 ],
496 &quot;servicesCidr&quot;: &quot;A String&quot;, # IP range for reserved for services (e.g. NFS).
497 &quot;state&quot;: &quot;A String&quot;, # The Network state.
498 &quot;type&quot;: &quot;A String&quot;, # The type of this network.
499 &quot;vlanId&quot;: &quot;A String&quot;, # The vlan id of the Network.
500 &quot;vrf&quot;: { # A network VRF. # The Vrf for the Network. Use this only if a new Vrf needs to be created.
501 &quot;name&quot;: &quot;A String&quot;, # The name of the VRF.
502 &quot;qosPolicy&quot;: { # QOS policy parameters. # The QOS policy applied to this VRF. The value is only meaningful when all the vlan attachments have the same QoS. This field should not be used for new integrations, use vlan attachment level qos instead. The field is left for backward-compatibility.
503 &quot;bandwidthGbps&quot;: 3.14, # The bandwidth permitted by the QOS policy, in gbps.
504 },
505 &quot;state&quot;: &quot;A String&quot;, # The possible state of VRF.
506 &quot;vlanAttachments&quot;: [ # The list of VLAN attachments for the VRF.
507 { # VLAN attachment details.
508 &quot;id&quot;: &quot;A String&quot;, # Immutable. The identifier of the attachment within vrf.
509 &quot;interconnectAttachment&quot;: &quot;A String&quot;, # Optional. The name of the vlan attachment within vrf. This is of the form projects/{project_number}/regions/{region}/interconnectAttachments/{interconnect_attachment}
510 &quot;pairingKey&quot;: &quot;A String&quot;, # Input only. Pairing key.
511 &quot;peerIp&quot;: &quot;A String&quot;, # The peer IP of the attachment.
512 &quot;peerVlanId&quot;: &quot;A String&quot;, # The peer vlan ID of the attachment.
513 &quot;qosPolicy&quot;: { # QOS policy parameters. # The QOS policy applied to this VLAN attachment. This value should be preferred to using qos at vrf level.
514 &quot;bandwidthGbps&quot;: 3.14, # The bandwidth permitted by the QOS policy, in gbps.
515 },
516 &quot;routerIp&quot;: &quot;A String&quot;, # The router IP of the attachment.
517 },
518 ],
519 },
520 &quot;vrfAttachment&quot;: &quot;A String&quot;, # Optional. The name of a pre-existing Vrf that the network should be attached to. Format is `vrfs/{vrf}`.
521 }</pre>
522 </div>
523
524 </body></html>