1<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5  margin: 0;
6  padding: 0;
7  border: 0;
8  font-weight: inherit;
9  font-style: inherit;
10  font-size: 100%;
11  font-family: inherit;
12  vertical-align: baseline;
13}
14
15body {
16  font-size: 13px;
17  padding: 1em;
18}
19
20h1 {
21  font-size: 26px;
22  margin-bottom: 1em;
23}
24
25h2 {
26  font-size: 24px;
27  margin-bottom: 1em;
28}
29
30h3 {
31  font-size: 20px;
32  margin-bottom: 1em;
33  margin-top: 1em;
34}
35
36pre, code {
37  line-height: 1.5;
38  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42  margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46  font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50  border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54  margin-top: 0.5em;
55}
56
57.firstline {
58  margin-left: 2 em;
59}
60
61.method  {
62  margin-top: 1em;
63  border: solid 1px #CCC;
64  padding: 1em;
65  background: #EEE;
66}
67
68.details {
69  font-weight: bold;
70  font-size: 14px;
71}
72
73</style>
74
75<h1><a href="compute_beta.html">Compute Engine API</a> . <a href="compute_beta.networks.html">networks</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#addPeering">addPeering(project, network, body, requestId=None)</a></code></p>
79<p class="firstline">Adds a peering to the specified network.</p>
80<p class="toc_element">
81  <code><a href="#delete">delete(project, network, requestId=None)</a></code></p>
82<p class="firstline">Deletes the specified network.</p>
83<p class="toc_element">
84  <code><a href="#get">get(project, network)</a></code></p>
85<p class="firstline">Returns the specified network. Gets a list of available networks by making a list() request.</p>
86<p class="toc_element">
87  <code><a href="#insert">insert(project, body, requestId=None)</a></code></p>
88<p class="firstline">Creates a network in the specified project using the data included in the request.</p>
89<p class="toc_element">
90  <code><a href="#list">list(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p>
91<p class="firstline">Retrieves the list of networks available to the specified project.</p>
92<p class="toc_element">
93  <code><a href="#listPeeringRoutes">listPeeringRoutes(project, network, orderBy=None, direction=None, region=None, maxResults=None, pageToken=None, filter=None, peeringName=None)</a></code></p>
94<p class="firstline">Lists the peering routes exchanged over peering connection.</p>
95<p class="toc_element">
96  <code><a href="#listPeeringRoutes_next">listPeeringRoutes_next(previous_request, previous_response)</a></code></p>
97<p class="firstline">Retrieves the next page of results.</p>
98<p class="toc_element">
99  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
100<p class="firstline">Retrieves the next page of results.</p>
101<p class="toc_element">
102  <code><a href="#patch">patch(project, network, body, requestId=None)</a></code></p>
103<p class="firstline">Patches the specified network with the data included in the request. Only the following fields can be modified: routingConfig.routingMode.</p>
104<p class="toc_element">
105  <code><a href="#removePeering">removePeering(project, network, body, requestId=None)</a></code></p>
106<p class="firstline">Removes a peering from the specified network.</p>
107<p class="toc_element">
108  <code><a href="#switchToCustomMode">switchToCustomMode(project, network, requestId=None)</a></code></p>
109<p class="firstline">Switches the network mode from auto subnet mode to custom subnet mode.</p>
110<p class="toc_element">
111  <code><a href="#testIamPermissions">testIamPermissions(project, resource, body)</a></code></p>
112<p class="firstline">Returns permissions that a caller has on the specified resource.</p>
113<p class="toc_element">
114  <code><a href="#updatePeering">updatePeering(project, network, body, requestId=None)</a></code></p>
115<p class="firstline">Updates the specified network peering with the data included in the request Only the following fields can be modified: NetworkPeering.export_custom_routes, and NetworkPeering.import_custom_routes</p>
116<h3>Method Details</h3>
117<div class="method">
118    <code class="details" id="addPeering">addPeering(project, network, body, requestId=None)</code>
119  <pre>Adds a peering to the specified network.
120
121Args:
122  project: string, Project ID for this request. (required)
123  network: string, Name of the network resource to add peering to. (required)
124  body: object, The request body. (required)
125    The object takes the form of:
126
127{
128    "networkPeering": { # A network peering attached to a network resource. The message includes the peering name, peer network, peering state, and a flag indicating whether Google Compute Engine should automatically create routes for the peering. # Network peering parameters. In order to specify route policies for peering using import and export custom routes, you must specify all peering related parameters (name, peer network, exchange_subnet_routes) in the network_peering field. The corresponding fields in NetworksAddPeeringRequest will be deprecated soon.
129      "network": "A String", # The URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that the peer network is in the same project as the current network.
130      "autoCreateRoutes": True or False, # This field will be deprecated soon. Use the exchange_subnet_routes field instead. Indicates whether full mesh connectivity is created and managed automatically. When it is set to true, Google Compute Engine will automatically create and manage the routes between two networks when the state is ACTIVE. Otherwise, user needs to create routes manually to route packets to peer network.
131      "stateDetails": "A String", # [Output Only] Details about the current state of the peering.
132      "state": "A String", # [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` when there's a matching configuration in the peer network.
133      "exportCustomRoutes": True or False, # Whether to export the custom routes to peer network.
134      "exchangeSubnetRoutes": True or False, # Whether full mesh connectivity is created and managed automatically. When it is set to true, Google Compute Engine will automatically create and manage the routes between two networks when the peering state is ACTIVE. Otherwise, user needs to create routes manually to route packets to peer network.
135      "importCustomRoutes": True or False, # Whether to import the custom routes from peer network.
136      "name": "A String", # Name of this peering. Provided by the client when the peering is created. The name must comply with RFC1035. Specifically, the name must be 1-63 characters long and match regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all the following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
137    },
138    "peerNetwork": "A String", # URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that the peer network is in the same project as the current network.
139    "name": "A String", # Name of the peering, which should conform to RFC1035.
140    "autoCreateRoutes": True or False, # This field will be deprecated soon. Use exchange_subnet_routes in network_peering instead. Whether Google Compute Engine manages the routes automatically.
141  }
142
143  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.
144
145For 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.
146
147The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
148
149Returns:
150  An object of the form:
151
152    { # Represents an Operation resource.
153      #
154      # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
155      #
156      # Operations can be global, regional or zonal.
157      # - For global operations, use the globalOperations resource.
158      # - For regional operations, use the regionOperations resource.
159      # - For zonal operations, use the zonalOperations resource.
160      #
161      # For more information, read  Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
162    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
163    "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
164    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
165    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
166    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
167    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
168    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
169    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
170    "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.
171    "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.
172    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
173    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
174    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
175    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
176      {
177        "message": "A String", # [Output Only] A human-readable description of the warning code.
178        "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.
179        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
180            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
181          {
182            "value": "A String", # [Output Only] A warning data value corresponding to the key.
183            "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).
184          },
185        ],
186      },
187    ],
188    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
189    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
190    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
191    "name": "A String", # [Output Only] Name of the resource.
192    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
193    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
194      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
195        {
196          "message": "A String", # [Output Only] An optional, human-readable error message.
197          "code": "A String", # [Output Only] The error type identifier for this error.
198          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
199        },
200      ],
201    },
202    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
203    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
204    "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.
205  }</pre>
206</div>
207
208<div class="method">
209    <code class="details" id="delete">delete(project, network, requestId=None)</code>
210  <pre>Deletes the specified network.
211
212Args:
213  project: string, Project ID for this request. (required)
214  network: string, Name of the network to delete. (required)
215  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.
216
217For 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.
218
219The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
220
221Returns:
222  An object of the form:
223
224    { # Represents an Operation resource.
225      #
226      # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
227      #
228      # Operations can be global, regional or zonal.
229      # - For global operations, use the globalOperations resource.
230      # - For regional operations, use the regionOperations resource.
231      # - For zonal operations, use the zonalOperations resource.
232      #
233      # For more information, read  Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
234    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
235    "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
236    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
237    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
238    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
239    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
240    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
241    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
242    "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.
243    "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.
244    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
245    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
246    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
247    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
248      {
249        "message": "A String", # [Output Only] A human-readable description of the warning code.
250        "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.
251        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
252            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
253          {
254            "value": "A String", # [Output Only] A warning data value corresponding to the key.
255            "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).
256          },
257        ],
258      },
259    ],
260    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
261    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
262    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
263    "name": "A String", # [Output Only] Name of the resource.
264    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
265    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
266      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
267        {
268          "message": "A String", # [Output Only] An optional, human-readable error message.
269          "code": "A String", # [Output Only] The error type identifier for this error.
270          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
271        },
272      ],
273    },
274    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
275    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
276    "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.
277  }</pre>
278</div>
279
280<div class="method">
281    <code class="details" id="get">get(project, network)</code>
282  <pre>Returns the specified network. Gets a list of available networks by making a list() request.
283
284Args:
285  project: string, Project ID for this request. (required)
286  network: string, Name of the network to return. (required)
287
288Returns:
289  An object of the form:
290
291    { # Represents a VPC Network resource.
292        #
293        # Networks connect resources to each other and to the internet. For more information, read Virtual Private Cloud (VPC) Network. (== resource_for v1.networks ==) (== resource_for beta.networks ==)
294      "kind": "compute#network", # [Output Only] Type of the resource. Always compute#network for networks.
295      "description": "A String", # An optional description of this resource. Provide this field when you create the resource.
296      "subnetworks": [ # [Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.
297        "A String",
298      ],
299      "autoCreateSubnetworks": True or False, # When set to true, the VPC network is created in "auto" mode. When set to false, the VPC network is created in "custom" mode.
300          #
301          # An auto mode VPC network starts with one subnet per region. Each subnet has a predetermined range as described in Auto mode VPC network IP ranges.
302      "IPv4Range": "A String", # Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.
303      "gatewayIPv4": "A String", # [Output Only] The gateway address for default routing out of the network, selected by GCP.
304      "routingConfig": { # A routing configuration attached to a network resource. The message includes the list of routers associated with the network, and a flag indicating the type of routing behavior to enforce network-wide. # The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce.
305        "routingMode": "A String", # The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions.
306      },
307      "peerings": [ # [Output Only] A list of network peerings for the resource.
308        { # A network peering attached to a network resource. The message includes the peering name, peer network, peering state, and a flag indicating whether Google Compute Engine should automatically create routes for the peering.
309          "network": "A String", # The URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that the peer network is in the same project as the current network.
310          "autoCreateRoutes": True or False, # This field will be deprecated soon. Use the exchange_subnet_routes field instead. Indicates whether full mesh connectivity is created and managed automatically. When it is set to true, Google Compute Engine will automatically create and manage the routes between two networks when the state is ACTIVE. Otherwise, user needs to create routes manually to route packets to peer network.
311          "stateDetails": "A String", # [Output Only] Details about the current state of the peering.
312          "state": "A String", # [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` when there's a matching configuration in the peer network.
313          "exportCustomRoutes": True or False, # Whether to export the custom routes to peer network.
314          "exchangeSubnetRoutes": True or False, # Whether full mesh connectivity is created and managed automatically. When it is set to true, Google Compute Engine will automatically create and manage the routes between two networks when the peering state is ACTIVE. Otherwise, user needs to create routes manually to route packets to peer network.
315          "importCustomRoutes": True or False, # Whether to import the custom routes from peer network.
316          "name": "A String", # Name of this peering. Provided by the client when the peering is created. The name must comply with RFC1035. Specifically, the name must be 1-63 characters long and match regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all the following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
317        },
318      ],
319      "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
320      "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
321      "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
322      "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])?. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
323    }</pre>
324</div>
325
326<div class="method">
327    <code class="details" id="insert">insert(project, body, requestId=None)</code>
328  <pre>Creates a network in the specified project using the data included in the request.
329
330Args:
331  project: string, Project ID for this request. (required)
332  body: object, The request body. (required)
333    The object takes the form of:
334
335{ # Represents a VPC Network resource.
336      #
337      # Networks connect resources to each other and to the internet. For more information, read Virtual Private Cloud (VPC) Network. (== resource_for v1.networks ==) (== resource_for beta.networks ==)
338    "kind": "compute#network", # [Output Only] Type of the resource. Always compute#network for networks.
339    "description": "A String", # An optional description of this resource. Provide this field when you create the resource.
340    "subnetworks": [ # [Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.
341      "A String",
342    ],
343    "autoCreateSubnetworks": True or False, # When set to true, the VPC network is created in "auto" mode. When set to false, the VPC network is created in "custom" mode.
344        #
345        # An auto mode VPC network starts with one subnet per region. Each subnet has a predetermined range as described in Auto mode VPC network IP ranges.
346    "IPv4Range": "A String", # Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.
347    "gatewayIPv4": "A String", # [Output Only] The gateway address for default routing out of the network, selected by GCP.
348    "routingConfig": { # A routing configuration attached to a network resource. The message includes the list of routers associated with the network, and a flag indicating the type of routing behavior to enforce network-wide. # The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce.
349      "routingMode": "A String", # The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions.
350    },
351    "peerings": [ # [Output Only] A list of network peerings for the resource.
352      { # A network peering attached to a network resource. The message includes the peering name, peer network, peering state, and a flag indicating whether Google Compute Engine should automatically create routes for the peering.
353        "network": "A String", # The URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that the peer network is in the same project as the current network.
354        "autoCreateRoutes": True or False, # This field will be deprecated soon. Use the exchange_subnet_routes field instead. Indicates whether full mesh connectivity is created and managed automatically. When it is set to true, Google Compute Engine will automatically create and manage the routes between two networks when the state is ACTIVE. Otherwise, user needs to create routes manually to route packets to peer network.
355        "stateDetails": "A String", # [Output Only] Details about the current state of the peering.
356        "state": "A String", # [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` when there's a matching configuration in the peer network.
357        "exportCustomRoutes": True or False, # Whether to export the custom routes to peer network.
358        "exchangeSubnetRoutes": True or False, # Whether full mesh connectivity is created and managed automatically. When it is set to true, Google Compute Engine will automatically create and manage the routes between two networks when the peering state is ACTIVE. Otherwise, user needs to create routes manually to route packets to peer network.
359        "importCustomRoutes": True or False, # Whether to import the custom routes from peer network.
360        "name": "A String", # Name of this peering. Provided by the client when the peering is created. The name must comply with RFC1035. Specifically, the name must be 1-63 characters long and match regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all the following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
361      },
362    ],
363    "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
364    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
365    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
366    "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])?. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
367  }
368
369  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.
370
371For 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.
372
373The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
374
375Returns:
376  An object of the form:
377
378    { # Represents an Operation resource.
379      #
380      # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
381      #
382      # Operations can be global, regional or zonal.
383      # - For global operations, use the globalOperations resource.
384      # - For regional operations, use the regionOperations resource.
385      # - For zonal operations, use the zonalOperations resource.
386      #
387      # For more information, read  Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
388    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
389    "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
390    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
391    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
392    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
393    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
394    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
395    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
396    "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.
397    "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.
398    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
399    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
400    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
401    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
402      {
403        "message": "A String", # [Output Only] A human-readable description of the warning code.
404        "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.
405        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
406            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
407          {
408            "value": "A String", # [Output Only] A warning data value corresponding to the key.
409            "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).
410          },
411        ],
412      },
413    ],
414    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
415    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
416    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
417    "name": "A String", # [Output Only] Name of the resource.
418    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
419    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
420      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
421        {
422          "message": "A String", # [Output Only] An optional, human-readable error message.
423          "code": "A String", # [Output Only] The error type identifier for this error.
424          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
425        },
426      ],
427    },
428    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
429    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
430    "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.
431  }</pre>
432</div>
433
434<div class="method">
435    <code class="details" id="list">list(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
436  <pre>Retrieves the list of networks available to the specified project.
437
438Args:
439  project: string, Project ID for this request. (required)
440  orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
441
442You 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.
443
444Currently, only sorting by name or creationTimestamp desc is supported.
445  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)
446  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.
447  filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <.
448
449For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance.
450
451You 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.
452
453To 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).
454
455Returns:
456  An object of the form:
457
458    { # Contains a list of networks.
459    "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.
460    "kind": "compute#networkList", # [Output Only] Type of resource. Always compute#networkList for lists of networks.
461    "items": [ # A list of Network resources.
462      { # Represents a VPC Network resource.
463            #
464            # Networks connect resources to each other and to the internet. For more information, read Virtual Private Cloud (VPC) Network. (== resource_for v1.networks ==) (== resource_for beta.networks ==)
465          "kind": "compute#network", # [Output Only] Type of the resource. Always compute#network for networks.
466          "description": "A String", # An optional description of this resource. Provide this field when you create the resource.
467          "subnetworks": [ # [Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.
468            "A String",
469          ],
470          "autoCreateSubnetworks": True or False, # When set to true, the VPC network is created in "auto" mode. When set to false, the VPC network is created in "custom" mode.
471              #
472              # An auto mode VPC network starts with one subnet per region. Each subnet has a predetermined range as described in Auto mode VPC network IP ranges.
473          "IPv4Range": "A String", # Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.
474          "gatewayIPv4": "A String", # [Output Only] The gateway address for default routing out of the network, selected by GCP.
475          "routingConfig": { # A routing configuration attached to a network resource. The message includes the list of routers associated with the network, and a flag indicating the type of routing behavior to enforce network-wide. # The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce.
476            "routingMode": "A String", # The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions.
477          },
478          "peerings": [ # [Output Only] A list of network peerings for the resource.
479            { # A network peering attached to a network resource. The message includes the peering name, peer network, peering state, and a flag indicating whether Google Compute Engine should automatically create routes for the peering.
480              "network": "A String", # The URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that the peer network is in the same project as the current network.
481              "autoCreateRoutes": True or False, # This field will be deprecated soon. Use the exchange_subnet_routes field instead. Indicates whether full mesh connectivity is created and managed automatically. When it is set to true, Google Compute Engine will automatically create and manage the routes between two networks when the state is ACTIVE. Otherwise, user needs to create routes manually to route packets to peer network.
482              "stateDetails": "A String", # [Output Only] Details about the current state of the peering.
483              "state": "A String", # [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` when there's a matching configuration in the peer network.
484              "exportCustomRoutes": True or False, # Whether to export the custom routes to peer network.
485              "exchangeSubnetRoutes": True or False, # Whether full mesh connectivity is created and managed automatically. When it is set to true, Google Compute Engine will automatically create and manage the routes between two networks when the peering state is ACTIVE. Otherwise, user needs to create routes manually to route packets to peer network.
486              "importCustomRoutes": True or False, # Whether to import the custom routes from peer network.
487              "name": "A String", # Name of this peering. Provided by the client when the peering is created. The name must comply with RFC1035. Specifically, the name must be 1-63 characters long and match regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all the following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
488            },
489          ],
490          "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
491          "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
492          "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
493          "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])?. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
494        },
495    ],
496    "warning": { # [Output Only] Informational warning message.
497      "message": "A String", # [Output Only] A human-readable description of the warning code.
498      "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.
499      "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
500          # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
501        {
502          "value": "A String", # [Output Only] A warning data value corresponding to the key.
503          "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).
504        },
505      ],
506    },
507    "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
508    "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
509  }</pre>
510</div>
511
512<div class="method">
513    <code class="details" id="listPeeringRoutes">listPeeringRoutes(project, network, orderBy=None, direction=None, region=None, maxResults=None, pageToken=None, filter=None, peeringName=None)</code>
514  <pre>Lists the peering routes exchanged over peering connection.
515
516Args:
517  project: string, Project ID for this request. (required)
518  network: string, Name of the network for this request. (required)
519  orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
520
521You 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.
522
523Currently, only sorting by name or creationTimestamp desc is supported.
524  direction: string, The direction of the exchanged routes.
525    Allowed values
526      INCOMING -
527      OUTGOING -
528  region: string, The region of the request. The response will include all subnet routes, static routes and dynamic routes in the region.
529  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)
530  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.
531  filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <.
532
533For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance.
534
535You 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.
536
537To 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).
538  peeringName: string, The response will show routes exchanged over the given peering connection.
539
540Returns:
541  An object of the form:
542
543    {
544    "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.
545    "kind": "compute#exchangedPeeringRoutesList", # [Output Only] Type of resource. Always compute#exchangedPeeringRoutesList for exchanged peering routes lists.
546    "items": [ # A list of ExchangedPeeringRoute resources.
547      {
548        "priority": 42, # The priority of the peering route.
549        "type": "A String", # The type of the peering route.
550        "destRange": "A String", # The destination range of the route.
551        "imported": True or False, # True if the peering route has been imported from a peer. The actual import happens if the field networkPeering.importCustomRoutes is true for this network, and networkPeering.exportCustomRoutes is true for the peer network, and the import does not result in a route conflict.
552        "nextHopRegion": "A String", # The region of peering route next hop, only applies to dynamic routes.
553      },
554    ],
555    "warning": { # [Output Only] Informational warning message.
556      "message": "A String", # [Output Only] A human-readable description of the warning code.
557      "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.
558      "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
559          # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
560        {
561          "value": "A String", # [Output Only] A warning data value corresponding to the key.
562          "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).
563        },
564      ],
565    },
566    "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
567    "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
568  }</pre>
569</div>
570
571<div class="method">
572    <code class="details" id="listPeeringRoutes_next">listPeeringRoutes_next(previous_request, previous_response)</code>
573  <pre>Retrieves the next page of results.
574
575Args:
576  previous_request: The request for the previous page. (required)
577  previous_response: The response from the request for the previous page. (required)
578
579Returns:
580  A request object that you can call 'execute()' on to request the next
581  page. Returns None if there are no more items in the collection.
582    </pre>
583</div>
584
585<div class="method">
586    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
587  <pre>Retrieves the next page of results.
588
589Args:
590  previous_request: The request for the previous page. (required)
591  previous_response: The response from the request for the previous page. (required)
592
593Returns:
594  A request object that you can call 'execute()' on to request the next
595  page. Returns None if there are no more items in the collection.
596    </pre>
597</div>
598
599<div class="method">
600    <code class="details" id="patch">patch(project, network, body, requestId=None)</code>
601  <pre>Patches the specified network with the data included in the request. Only the following fields can be modified: routingConfig.routingMode.
602
603Args:
604  project: string, Project ID for this request. (required)
605  network: string, Name of the network to update. (required)
606  body: object, The request body. (required)
607    The object takes the form of:
608
609{ # Represents a VPC Network resource.
610      #
611      # Networks connect resources to each other and to the internet. For more information, read Virtual Private Cloud (VPC) Network. (== resource_for v1.networks ==) (== resource_for beta.networks ==)
612    "kind": "compute#network", # [Output Only] Type of the resource. Always compute#network for networks.
613    "description": "A String", # An optional description of this resource. Provide this field when you create the resource.
614    "subnetworks": [ # [Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.
615      "A String",
616    ],
617    "autoCreateSubnetworks": True or False, # When set to true, the VPC network is created in "auto" mode. When set to false, the VPC network is created in "custom" mode.
618        #
619        # An auto mode VPC network starts with one subnet per region. Each subnet has a predetermined range as described in Auto mode VPC network IP ranges.
620    "IPv4Range": "A String", # Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.
621    "gatewayIPv4": "A String", # [Output Only] The gateway address for default routing out of the network, selected by GCP.
622    "routingConfig": { # A routing configuration attached to a network resource. The message includes the list of routers associated with the network, and a flag indicating the type of routing behavior to enforce network-wide. # The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce.
623      "routingMode": "A String", # The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions.
624    },
625    "peerings": [ # [Output Only] A list of network peerings for the resource.
626      { # A network peering attached to a network resource. The message includes the peering name, peer network, peering state, and a flag indicating whether Google Compute Engine should automatically create routes for the peering.
627        "network": "A String", # The URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that the peer network is in the same project as the current network.
628        "autoCreateRoutes": True or False, # This field will be deprecated soon. Use the exchange_subnet_routes field instead. Indicates whether full mesh connectivity is created and managed automatically. When it is set to true, Google Compute Engine will automatically create and manage the routes between two networks when the state is ACTIVE. Otherwise, user needs to create routes manually to route packets to peer network.
629        "stateDetails": "A String", # [Output Only] Details about the current state of the peering.
630        "state": "A String", # [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` when there's a matching configuration in the peer network.
631        "exportCustomRoutes": True or False, # Whether to export the custom routes to peer network.
632        "exchangeSubnetRoutes": True or False, # Whether full mesh connectivity is created and managed automatically. When it is set to true, Google Compute Engine will automatically create and manage the routes between two networks when the peering state is ACTIVE. Otherwise, user needs to create routes manually to route packets to peer network.
633        "importCustomRoutes": True or False, # Whether to import the custom routes from peer network.
634        "name": "A String", # Name of this peering. Provided by the client when the peering is created. The name must comply with RFC1035. Specifically, the name must be 1-63 characters long and match regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all the following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
635      },
636    ],
637    "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
638    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
639    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
640    "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])?. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
641  }
642
643  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.
644
645For 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.
646
647The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
648
649Returns:
650  An object of the form:
651
652    { # Represents an Operation resource.
653      #
654      # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
655      #
656      # Operations can be global, regional or zonal.
657      # - For global operations, use the globalOperations resource.
658      # - For regional operations, use the regionOperations resource.
659      # - For zonal operations, use the zonalOperations resource.
660      #
661      # For more information, read  Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
662    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
663    "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
664    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
665    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
666    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
667    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
668    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
669    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
670    "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.
671    "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.
672    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
673    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
674    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
675    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
676      {
677        "message": "A String", # [Output Only] A human-readable description of the warning code.
678        "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.
679        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
680            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
681          {
682            "value": "A String", # [Output Only] A warning data value corresponding to the key.
683            "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).
684          },
685        ],
686      },
687    ],
688    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
689    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
690    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
691    "name": "A String", # [Output Only] Name of the resource.
692    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
693    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
694      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
695        {
696          "message": "A String", # [Output Only] An optional, human-readable error message.
697          "code": "A String", # [Output Only] The error type identifier for this error.
698          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
699        },
700      ],
701    },
702    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
703    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
704    "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.
705  }</pre>
706</div>
707
708<div class="method">
709    <code class="details" id="removePeering">removePeering(project, network, body, requestId=None)</code>
710  <pre>Removes a peering from the specified network.
711
712Args:
713  project: string, Project ID for this request. (required)
714  network: string, Name of the network resource to remove peering from. (required)
715  body: object, The request body. (required)
716    The object takes the form of:
717
718{
719    "name": "A String", # Name of the peering, which should conform to RFC1035.
720  }
721
722  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.
723
724For 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.
725
726The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
727
728Returns:
729  An object of the form:
730
731    { # Represents an Operation resource.
732      #
733      # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
734      #
735      # Operations can be global, regional or zonal.
736      # - For global operations, use the globalOperations resource.
737      # - For regional operations, use the regionOperations resource.
738      # - For zonal operations, use the zonalOperations resource.
739      #
740      # For more information, read  Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
741    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
742    "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
743    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
744    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
745    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
746    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
747    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
748    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
749    "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.
750    "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.
751    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
752    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
753    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
754    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
755      {
756        "message": "A String", # [Output Only] A human-readable description of the warning code.
757        "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.
758        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
759            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
760          {
761            "value": "A String", # [Output Only] A warning data value corresponding to the key.
762            "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).
763          },
764        ],
765      },
766    ],
767    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
768    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
769    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
770    "name": "A String", # [Output Only] Name of the resource.
771    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
772    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
773      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
774        {
775          "message": "A String", # [Output Only] An optional, human-readable error message.
776          "code": "A String", # [Output Only] The error type identifier for this error.
777          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
778        },
779      ],
780    },
781    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
782    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
783    "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.
784  }</pre>
785</div>
786
787<div class="method">
788    <code class="details" id="switchToCustomMode">switchToCustomMode(project, network, requestId=None)</code>
789  <pre>Switches the network mode from auto subnet mode to custom subnet mode.
790
791Args:
792  project: string, Project ID for this request. (required)
793  network: string, Name of the network to be updated. (required)
794  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.
795
796For 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.
797
798The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
799
800Returns:
801  An object of the form:
802
803    { # Represents an Operation resource.
804      #
805      # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
806      #
807      # Operations can be global, regional or zonal.
808      # - For global operations, use the globalOperations resource.
809      # - For regional operations, use the regionOperations resource.
810      # - For zonal operations, use the zonalOperations resource.
811      #
812      # For more information, read  Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
813    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
814    "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
815    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
816    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
817    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
818    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
819    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
820    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
821    "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.
822    "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.
823    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
824    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
825    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
826    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
827      {
828        "message": "A String", # [Output Only] A human-readable description of the warning code.
829        "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.
830        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
831            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
832          {
833            "value": "A String", # [Output Only] A warning data value corresponding to the key.
834            "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).
835          },
836        ],
837      },
838    ],
839    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
840    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
841    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
842    "name": "A String", # [Output Only] Name of the resource.
843    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
844    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
845      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
846        {
847          "message": "A String", # [Output Only] An optional, human-readable error message.
848          "code": "A String", # [Output Only] The error type identifier for this error.
849          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
850        },
851      ],
852    },
853    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
854    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
855    "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.
856  }</pre>
857</div>
858
859<div class="method">
860    <code class="details" id="testIamPermissions">testIamPermissions(project, resource, body)</code>
861  <pre>Returns permissions that a caller has on the specified resource.
862
863Args:
864  project: string, Project ID for this request. (required)
865  resource: string, Name or id of the resource for this request. (required)
866  body: object, The request body. (required)
867    The object takes the form of:
868
869{
870    "permissions": [ # The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed.
871      "A String",
872    ],
873  }
874
875
876Returns:
877  An object of the form:
878
879    {
880    "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
881      "A String",
882    ],
883  }</pre>
884</div>
885
886<div class="method">
887    <code class="details" id="updatePeering">updatePeering(project, network, body, requestId=None)</code>
888  <pre>Updates the specified network peering with the data included in the request Only the following fields can be modified: NetworkPeering.export_custom_routes, and NetworkPeering.import_custom_routes
889
890Args:
891  project: string, Project ID for this request. (required)
892  network: string, Name of the network resource which the updated peering is belonging to. (required)
893  body: object, The request body. (required)
894    The object takes the form of:
895
896{
897    "networkPeering": { # A network peering attached to a network resource. The message includes the peering name, peer network, peering state, and a flag indicating whether Google Compute Engine should automatically create routes for the peering.
898      "network": "A String", # The URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that the peer network is in the same project as the current network.
899      "autoCreateRoutes": True or False, # This field will be deprecated soon. Use the exchange_subnet_routes field instead. Indicates whether full mesh connectivity is created and managed automatically. When it is set to true, Google Compute Engine will automatically create and manage the routes between two networks when the state is ACTIVE. Otherwise, user needs to create routes manually to route packets to peer network.
900      "stateDetails": "A String", # [Output Only] Details about the current state of the peering.
901      "state": "A String", # [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` when there's a matching configuration in the peer network.
902      "exportCustomRoutes": True or False, # Whether to export the custom routes to peer network.
903      "exchangeSubnetRoutes": True or False, # Whether full mesh connectivity is created and managed automatically. When it is set to true, Google Compute Engine will automatically create and manage the routes between two networks when the peering state is ACTIVE. Otherwise, user needs to create routes manually to route packets to peer network.
904      "importCustomRoutes": True or False, # Whether to import the custom routes from peer network.
905      "name": "A String", # Name of this peering. Provided by the client when the peering is created. The name must comply with RFC1035. Specifically, the name must be 1-63 characters long and match regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all the following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
906    },
907  }
908
909  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.
910
911For 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.
912
913The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
914
915Returns:
916  An object of the form:
917
918    { # Represents an Operation resource.
919      #
920      # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
921      #
922      # Operations can be global, regional or zonal.
923      # - For global operations, use the globalOperations resource.
924      # - For regional operations, use the regionOperations resource.
925      # - For zonal operations, use the zonalOperations resource.
926      #
927      # For more information, read  Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
928    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
929    "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
930    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
931    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
932    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
933    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
934    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
935    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
936    "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.
937    "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.
938    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
939    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
940    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
941    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
942      {
943        "message": "A String", # [Output Only] A human-readable description of the warning code.
944        "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.
945        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
946            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
947          {
948            "value": "A String", # [Output Only] A warning data value corresponding to the key.
949            "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).
950          },
951        ],
952      },
953    ],
954    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
955    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
956    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
957    "name": "A String", # [Output Only] Name of the resource.
958    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
959    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
960      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
961        {
962          "message": "A String", # [Output Only] An optional, human-readable error message.
963          "code": "A String", # [Output Only] The error type identifier for this error.
964          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
965        },
966      ],
967    },
968    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
969    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
970    "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.
971  }</pre>
972</div>
973
974</body></html>