• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_alpha.html">Compute Engine API</a> . <a href="compute_alpha.subnetworks.html">subnetworks</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#aggregatedList">aggregatedList(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p>
79<p class="firstline">Retrieves an aggregated list of subnetworks.</p>
80<p class="toc_element">
81  <code><a href="#aggregatedList_next">aggregatedList_next(previous_request, previous_response)</a></code></p>
82<p class="firstline">Retrieves the next page of results.</p>
83<p class="toc_element">
84  <code><a href="#delete">delete(project, region, subnetwork, requestId=None)</a></code></p>
85<p class="firstline">Deletes the specified subnetwork.</p>
86<p class="toc_element">
87  <code><a href="#expandIpCidrRange">expandIpCidrRange(project, region, subnetwork, body, requestId=None)</a></code></p>
88<p class="firstline">Expands the IP CIDR range of the subnetwork to a specified value.</p>
89<p class="toc_element">
90  <code><a href="#get">get(project, region, subnetwork)</a></code></p>
91<p class="firstline">Returns the specified subnetwork. Gets a list of available subnetworks list() request.</p>
92<p class="toc_element">
93  <code><a href="#getIamPolicy">getIamPolicy(project, region, resource)</a></code></p>
94<p class="firstline">Gets the access control policy for a resource. May be empty if no such policy or resource exists.</p>
95<p class="toc_element">
96  <code><a href="#insert">insert(project, region, body, requestId=None)</a></code></p>
97<p class="firstline">Creates a subnetwork in the specified project using the data included in the request.</p>
98<p class="toc_element">
99  <code><a href="#list">list(project, region, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p>
100<p class="firstline">Retrieves a list of subnetworks available to the specified project.</p>
101<p class="toc_element">
102  <code><a href="#listUsable">listUsable(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p>
103<p class="firstline">Retrieves an aggregated list of usable subnetworks.</p>
104<p class="toc_element">
105  <code><a href="#listUsable_next">listUsable_next(previous_request, previous_response)</a></code></p>
106<p class="firstline">Retrieves the next page of results.</p>
107<p class="toc_element">
108  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
109<p class="firstline">Retrieves the next page of results.</p>
110<p class="toc_element">
111  <code><a href="#patch">patch(project, region, subnetwork, body, drainTimeoutSeconds=None, requestId=None)</a></code></p>
112<p class="firstline">Patches the specified subnetwork with the data included in the request. Only certain fields can up updated with a patch request as indicated in the field descriptions. You must specify the current fingeprint of the subnetwork resource being patched.</p>
113<p class="toc_element">
114  <code><a href="#setIamPolicy">setIamPolicy(project, region, resource, body)</a></code></p>
115<p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy.</p>
116<p class="toc_element">
117  <code><a href="#setPrivateIpGoogleAccess">setPrivateIpGoogleAccess(project, region, subnetwork, body, requestId=None)</a></code></p>
118<p class="firstline">Set whether VMs in this subnet can access Google services without assigning external IP addresses through Private Google Access.</p>
119<p class="toc_element">
120  <code><a href="#testIamPermissions">testIamPermissions(project, region, resource, body)</a></code></p>
121<p class="firstline">Returns permissions that a caller has on the specified resource.</p>
122<h3>Method Details</h3>
123<div class="method">
124    <code class="details" id="aggregatedList">aggregatedList(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
125  <pre>Retrieves an aggregated list of subnetworks.
126
127Args:
128  project: string, Project ID for this request. (required)
129  orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
130
131You 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.
132
133Currently, only sorting by name or creationTimestamp desc is supported.
134  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)
135  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.
136  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 <.
137
138For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance.
139
140You 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.
141
142To 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).
143
144Returns:
145  An object of the form:
146
147    {
148    "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.
149    "kind": "compute#subnetworkAggregatedList", # [Output Only] Type of resource. Always compute#subnetworkAggregatedList for aggregated lists of subnetworks.
150    "items": { # A list of SubnetworksScopedList resources.
151      "a_key": { # Name of the scope containing this set of Subnetworks.
152        "subnetworks": [ # A list of subnetworks contained in this scope.
153          { # Represents a Subnetwork resource.
154                #
155                # A subnetwork (also known as a subnet) is a logical partition of a Virtual Private Cloud network with one primary IP range and zero or more secondary IP ranges. For more information, read  Virtual Private Cloud (VPC) Network. (== resource_for beta.subnetworks ==) (== resource_for v1.subnetworks ==)
156              "rangeType": "A String", # The type of IP CIDR range to associate with this subnetwork. The default is RFC_1918. When creating a subnetwork in non-RFC 1918 range, this field must be set to NON_RFC_1918.
157              "privateIpv6GoogleAccess": "A String", # The private IPv6 google access type for the VMs in this subnet. This is an expanded field of enablePrivateV6Access. If both fields are set, privateIpv6GoogleAccess will take priority.
158                  #
159                  # This field can be both set at resource creation time and updated using patch.
160              "enableFlowLogs": True or False, # Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is to disable flow logging.
161              "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
162              "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
163              "flowSampling": 3.14, # Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5, which means half of all collected logs are reported.
164              "ipv6CidrRange": "A String", # [Output Only] The range of internal IPv6 addresses that are owned by this subnetwork.
165              "state": "A String", # [Output Only] The state of the subnetwork, which can be one of READY or DRAINING. A subnetwork that is READY is ready to be used. The state of DRAINING is only applicable to subnetworks that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load balancer are being drained. A subnetwork that is draining cannot be used or modified until it reaches a status of READY.
166              "privateIpv6GoogleAccessServiceAccounts": [ # The service accounts can be used to selectively turn on Private IPv6 Google Access only on the VMs primary service account matching the value. This value only takes effect when PrivateIpv6GoogleAccess is ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE_FOR_SERVICE_ACCOUNTS or ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE_FOR_SERVICE_ACCOUNTS.
167                "A String",
168              ],
169              "role": "A String", # The role of subnetwork. Currenly, this field is only used when purpose = INTERNAL_HTTPS_LOAD_BALANCER. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Internal HTTP(S) Load Balancing. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request.
170              "ipCidrRange": "A String", # The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 192.168.0.0/16. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported. This field can be set only at resource creation time.
171              "aggregationInterval": "A String", # Can only be specified if VPC flow logging for this subnetwork is enabled. Sets the aggregation interval for collecting flow logs. Increasing the interval time reduces the amount of generated flow logs for long-lasting connections. Default is an interval of 5 seconds per connection. Valid values: INTERVAL_5_SEC, INTERVAL_30_SEC, INTERVAL_1_MIN, INTERVAL_5_MIN, INTERVAL_10_MIN, INTERVAL_15_MIN.
172              "metadata": "A String", # Can only be specified if VPC flow logging for this subnetwork is enabled. Configures whether metadata fields should be added to the reported VPC flow logs. Default is INCLUDE_ALL_METADATA.
173              "description": "A String", # An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time.
174              "secondaryIpRanges": [ # An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
175                { # Represents a secondary IP range of a subnetwork.
176                  "ipCidrRange": "A String", # The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported.
177                  "rangeType": "A String", # The type of IP CIDR range to associate with this subnetwork secondary range. The default is RFC_1918. When creating a subnetwork in non-RFC 1918 range, this field must be set to NON_RFC_1918.
178                  "rangeName": "A String", # The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.
179                },
180              ],
181              "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id.
182              "purpose": "A String", # The purpose of the resource. This field can be either PRIVATE_RFC_1918 or INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a user-created subnetwork that is reserved for Internal HTTP(S) Load Balancing. If unspecified, the purpose defaults to PRIVATE_RFC_1918.
183              "fingerprint": "A String", # Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail with error 412 conditionNotMet.
184                  #
185                  # To see the latest fingerprint, make a get() request to retrieve a Subnetwork.
186              "privateIpGoogleAccess": True or False, # Whether the VMs in this subnet can access Google services without assigned external IP addresses. This field can be both set at resource creation time and updated using setPrivateIpGoogleAccess.
187              "logConfig": { # The available logging options for this subnetwork. # This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, logs are exported to Stackdriver.
188                "enable": True or False, # Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is to disable flow logging.
189                "flowSampling": 3.14, # Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5, which means half of all collected logs are reported.
190                "aggregationInterval": "A String", # Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.
191                "metadata": "A String", # Can only be specified if VPC flow logging for this subnetwork is enabled. Configures whether metadata fields should be added to the reported VPC flow logs. Default is INCLUDE_ALL_METADATA.
192              },
193              "network": "A String", # The URL of the network to which this subnetwork belongs, provided by the client when initially creating the subnetwork. Only networks that are in the distributed mode can have subnetworks. This field can be set only at resource creation time.
194              "kind": "compute#subnetwork", # [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources.
195              "name": "A String", # The name of the resource, provided by the client when initially creating the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
196              "enablePrivateV6Access": True or False, # Deprecated in favor of enable in PrivateIpv6GoogleAccess. Whether the VMs in this subnet can directly access Google services via internal IPv6 addresses. This field can be both set at resource creation time and updated using patch.
197              "region": "A String", # URL of the region where the Subnetwork resides. This field can be set only at resource creation time.
198              "allowSubnetCidrRoutesOverlap": True or False, # Whether this subnetwork can conflict with static routes. Setting this to true allows this subnetwork's primary and secondary ranges to conflict with routes that have already been configured on the corresponding network. Static routes will take precedence over the subnetwork route if the route prefix length is at least as large as the subnetwork prefix length.
199                  #
200                  # Also, packets destined to IPs within subnetwork may contain private/sensitive data and are prevented from leaving the virtual network. Setting this field to true will disable this feature.
201                  #
202                  # The default value is false and applies to all existing subnetworks and automatically created subnetworks.
203                  #
204                  # This field cannot be set to true at resource creation time.
205              "gatewayAddress": "A String", # [Output Only] The gateway address for default routes to reach destination addresses outside this subnetwork.
206              "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
207            },
208        ],
209        "warning": { # An informational warning that appears when the list of addresses is empty.
210          "message": "A String", # [Output Only] A human-readable description of the warning code.
211          "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.
212          "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
213              # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
214            {
215              "value": "A String", # [Output Only] A warning data value corresponding to the key.
216              "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).
217            },
218          ],
219        },
220      },
221    },
222    "warning": { # [Output Only] Informational warning message.
223      "message": "A String", # [Output Only] A human-readable description of the warning code.
224      "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.
225      "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
226          # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
227        {
228          "value": "A String", # [Output Only] A warning data value corresponding to the key.
229          "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).
230        },
231      ],
232    },
233    "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
234    "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
235  }</pre>
236</div>
237
238<div class="method">
239    <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code>
240  <pre>Retrieves the next page of results.
241
242Args:
243  previous_request: The request for the previous page. (required)
244  previous_response: The response from the request for the previous page. (required)
245
246Returns:
247  A request object that you can call 'execute()' on to request the next
248  page. Returns None if there are no more items in the collection.
249    </pre>
250</div>
251
252<div class="method">
253    <code class="details" id="delete">delete(project, region, subnetwork, requestId=None)</code>
254  <pre>Deletes the specified subnetwork.
255
256Args:
257  project: string, Project ID for this request. (required)
258  region: string, Name of the region scoping this request. (required)
259  subnetwork: string, Name of the Subnetwork resource to delete. (required)
260  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.
261
262For 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.
263
264The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
265
266Returns:
267  An object of the form:
268
269    { # Represents an Operation resource.
270      #
271      # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
272      #
273      # Operations can be global, regional or zonal.
274      # - For global operations, use the globalOperations resource.
275      # - For regional operations, use the regionOperations resource.
276      # - For zonal operations, use the zonalOperations resource.
277      #
278      # 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 ==)
279    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
280    "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
281    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
282    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
283    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
284    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
285    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
286    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
287    "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.
288    "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.
289    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
290    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
291    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
292    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
293      {
294        "message": "A String", # [Output Only] A human-readable description of the warning code.
295        "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.
296        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
297            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
298          {
299            "value": "A String", # [Output Only] A warning data value corresponding to the key.
300            "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).
301          },
302        ],
303      },
304    ],
305    "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id.
306    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
307    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
308    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
309    "name": "A String", # [Output Only] Name of the resource.
310    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
311    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
312      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
313        {
314          "message": "A String", # [Output Only] An optional, human-readable error message.
315          "code": "A String", # [Output Only] The error type identifier for this error.
316          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
317        },
318      ],
319    },
320    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
321    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
322    "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.
323  }</pre>
324</div>
325
326<div class="method">
327    <code class="details" id="expandIpCidrRange">expandIpCidrRange(project, region, subnetwork, body, requestId=None)</code>
328  <pre>Expands the IP CIDR range of the subnetwork to a specified value.
329
330Args:
331  project: string, Project ID for this request. (required)
332  region: string, Name of the region scoping this request. (required)
333  subnetwork: string, Name of the Subnetwork resource to update. (required)
334  body: object, The request body. (required)
335    The object takes the form of:
336
337{
338    "ipCidrRange": "A String", # The IP (in CIDR format or netmask) of internal addresses that are legal on this Subnetwork. This range should be disjoint from other subnetworks within this network. This range can only be larger than (i.e. a superset of) the range previously defined before the update.
339    "rangeType": "A String", # The type of IP CIDR range to associate with this subnetwork. The default is RFC_1918. When expanding to a non-RFC 1918 range, this field must be be set to NON_RFC_1918.
340  }
341
342  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.
343
344For 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.
345
346The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
347
348Returns:
349  An object of the form:
350
351    { # Represents an Operation resource.
352      #
353      # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
354      #
355      # Operations can be global, regional or zonal.
356      # - For global operations, use the globalOperations resource.
357      # - For regional operations, use the regionOperations resource.
358      # - For zonal operations, use the zonalOperations resource.
359      #
360      # 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 ==)
361    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
362    "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
363    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
364    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
365    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
366    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
367    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
368    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
369    "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.
370    "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.
371    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
372    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
373    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
374    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
375      {
376        "message": "A String", # [Output Only] A human-readable description of the warning code.
377        "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.
378        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
379            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
380          {
381            "value": "A String", # [Output Only] A warning data value corresponding to the key.
382            "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).
383          },
384        ],
385      },
386    ],
387    "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id.
388    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
389    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
390    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
391    "name": "A String", # [Output Only] Name of the resource.
392    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
393    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
394      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
395        {
396          "message": "A String", # [Output Only] An optional, human-readable error message.
397          "code": "A String", # [Output Only] The error type identifier for this error.
398          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
399        },
400      ],
401    },
402    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
403    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
404    "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.
405  }</pre>
406</div>
407
408<div class="method">
409    <code class="details" id="get">get(project, region, subnetwork)</code>
410  <pre>Returns the specified subnetwork. Gets a list of available subnetworks list() request.
411
412Args:
413  project: string, Project ID for this request. (required)
414  region: string, Name of the region scoping this request. (required)
415  subnetwork: string, Name of the Subnetwork resource to return. (required)
416
417Returns:
418  An object of the form:
419
420    { # Represents a Subnetwork resource.
421        #
422        # A subnetwork (also known as a subnet) is a logical partition of a Virtual Private Cloud network with one primary IP range and zero or more secondary IP ranges. For more information, read  Virtual Private Cloud (VPC) Network. (== resource_for beta.subnetworks ==) (== resource_for v1.subnetworks ==)
423      "rangeType": "A String", # The type of IP CIDR range to associate with this subnetwork. The default is RFC_1918. When creating a subnetwork in non-RFC 1918 range, this field must be set to NON_RFC_1918.
424      "privateIpv6GoogleAccess": "A String", # The private IPv6 google access type for the VMs in this subnet. This is an expanded field of enablePrivateV6Access. If both fields are set, privateIpv6GoogleAccess will take priority.
425          #
426          # This field can be both set at resource creation time and updated using patch.
427      "enableFlowLogs": True or False, # Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is to disable flow logging.
428      "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
429      "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
430      "flowSampling": 3.14, # Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5, which means half of all collected logs are reported.
431      "ipv6CidrRange": "A String", # [Output Only] The range of internal IPv6 addresses that are owned by this subnetwork.
432      "state": "A String", # [Output Only] The state of the subnetwork, which can be one of READY or DRAINING. A subnetwork that is READY is ready to be used. The state of DRAINING is only applicable to subnetworks that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load balancer are being drained. A subnetwork that is draining cannot be used or modified until it reaches a status of READY.
433      "privateIpv6GoogleAccessServiceAccounts": [ # The service accounts can be used to selectively turn on Private IPv6 Google Access only on the VMs primary service account matching the value. This value only takes effect when PrivateIpv6GoogleAccess is ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE_FOR_SERVICE_ACCOUNTS or ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE_FOR_SERVICE_ACCOUNTS.
434        "A String",
435      ],
436      "role": "A String", # The role of subnetwork. Currenly, this field is only used when purpose = INTERNAL_HTTPS_LOAD_BALANCER. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Internal HTTP(S) Load Balancing. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request.
437      "ipCidrRange": "A String", # The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 192.168.0.0/16. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported. This field can be set only at resource creation time.
438      "aggregationInterval": "A String", # Can only be specified if VPC flow logging for this subnetwork is enabled. Sets the aggregation interval for collecting flow logs. Increasing the interval time reduces the amount of generated flow logs for long-lasting connections. Default is an interval of 5 seconds per connection. Valid values: INTERVAL_5_SEC, INTERVAL_30_SEC, INTERVAL_1_MIN, INTERVAL_5_MIN, INTERVAL_10_MIN, INTERVAL_15_MIN.
439      "metadata": "A String", # Can only be specified if VPC flow logging for this subnetwork is enabled. Configures whether metadata fields should be added to the reported VPC flow logs. Default is INCLUDE_ALL_METADATA.
440      "description": "A String", # An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time.
441      "secondaryIpRanges": [ # An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
442        { # Represents a secondary IP range of a subnetwork.
443          "ipCidrRange": "A String", # The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported.
444          "rangeType": "A String", # The type of IP CIDR range to associate with this subnetwork secondary range. The default is RFC_1918. When creating a subnetwork in non-RFC 1918 range, this field must be set to NON_RFC_1918.
445          "rangeName": "A String", # The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.
446        },
447      ],
448      "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id.
449      "purpose": "A String", # The purpose of the resource. This field can be either PRIVATE_RFC_1918 or INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a user-created subnetwork that is reserved for Internal HTTP(S) Load Balancing. If unspecified, the purpose defaults to PRIVATE_RFC_1918.
450      "fingerprint": "A String", # Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail with error 412 conditionNotMet.
451          #
452          # To see the latest fingerprint, make a get() request to retrieve a Subnetwork.
453      "privateIpGoogleAccess": True or False, # Whether the VMs in this subnet can access Google services without assigned external IP addresses. This field can be both set at resource creation time and updated using setPrivateIpGoogleAccess.
454      "logConfig": { # The available logging options for this subnetwork. # This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, logs are exported to Stackdriver.
455        "enable": True or False, # Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is to disable flow logging.
456        "flowSampling": 3.14, # Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5, which means half of all collected logs are reported.
457        "aggregationInterval": "A String", # Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.
458        "metadata": "A String", # Can only be specified if VPC flow logging for this subnetwork is enabled. Configures whether metadata fields should be added to the reported VPC flow logs. Default is INCLUDE_ALL_METADATA.
459      },
460      "network": "A String", # The URL of the network to which this subnetwork belongs, provided by the client when initially creating the subnetwork. Only networks that are in the distributed mode can have subnetworks. This field can be set only at resource creation time.
461      "kind": "compute#subnetwork", # [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources.
462      "name": "A String", # The name of the resource, provided by the client when initially creating the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
463      "enablePrivateV6Access": True or False, # Deprecated in favor of enable in PrivateIpv6GoogleAccess. Whether the VMs in this subnet can directly access Google services via internal IPv6 addresses. This field can be both set at resource creation time and updated using patch.
464      "region": "A String", # URL of the region where the Subnetwork resides. This field can be set only at resource creation time.
465      "allowSubnetCidrRoutesOverlap": True or False, # Whether this subnetwork can conflict with static routes. Setting this to true allows this subnetwork's primary and secondary ranges to conflict with routes that have already been configured on the corresponding network. Static routes will take precedence over the subnetwork route if the route prefix length is at least as large as the subnetwork prefix length.
466          #
467          # Also, packets destined to IPs within subnetwork may contain private/sensitive data and are prevented from leaving the virtual network. Setting this field to true will disable this feature.
468          #
469          # The default value is false and applies to all existing subnetworks and automatically created subnetworks.
470          #
471          # This field cannot be set to true at resource creation time.
472      "gatewayAddress": "A String", # [Output Only] The gateway address for default routes to reach destination addresses outside this subnetwork.
473      "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
474    }</pre>
475</div>
476
477<div class="method">
478    <code class="details" id="getIamPolicy">getIamPolicy(project, region, resource)</code>
479  <pre>Gets the access control policy for a resource. May be empty if no such policy or resource exists.
480
481Args:
482  project: string, Project ID for this request. (required)
483  region: string, The name of the region for this request. (required)
484  resource: string, Name or id of the resource for this request. (required)
485
486Returns:
487  An object of the form:
488
489    { # Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.
490      #
491      #
492      #
493      # A `Policy` consists of a list of `bindings`. A `binding` binds a list of `members` to a `role`, where the members can be user accounts, Google groups, Google domains, and service accounts. A `role` is a named list of permissions defined by IAM.
494      #
495      # **JSON Example**
496      #
497      # { "bindings": [ { "role": "roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@appspot.gserviceaccount.com" ] }, { "role": "roles/viewer", "members": ["user:sean@example.com"] } ] }
498      #
499      # **YAML Example**
500      #
501      # bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com role: roles/owner - members: - user:sean@example.com role: roles/viewer
502      #
503      #
504      #
505      # For a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam/docs).
506    "auditConfigs": [ # Specifies cloud audit logging configuration for this policy.
507      { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs.
508          #
509          # If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted.
510          #
511          # Example Policy with multiple AuditConfigs:
512          #
513          # { "audit_configs": [ { "service": "allServices" "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", }, { "log_type": "ADMIN_READ", } ] }, { "service": "fooservice.googleapis.com" "audit_log_configs": [ { "log_type": "DATA_READ", }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:bar@gmail.com" ] } ] } ] }
514          #
515          # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts foo@gmail.com from DATA_READ logging, and bar@gmail.com from DATA_WRITE logging.
516        "exemptedMembers": [
517          "A String",
518        ],
519        "auditLogConfigs": [ # The configuration for logging of each type of permission.
520          { # Provides the configuration for logging a type of permissions. Example:
521              #
522              # { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", } ] }
523              #
524              # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting foo@gmail.com from DATA_READ logging.
525            "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][].
526              "A String",
527            ],
528            "logType": "A String", # The log type that this config enables.
529          },
530        ],
531        "service": "A String", # Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
532      },
533    ],
534    "rules": [ # If more than one rule is specified, the rules are applied in the following manner: - All matching LOG rules are always applied. - If any DENY/DENY_WITH_LOG rule matches, permission is denied. Logging will be applied if one or more matching rule requires logging. - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is granted. Logging will be applied if one or more matching rule requires logging. - Otherwise, if no rule applies, permission is denied.
535      { # A rule to be applied in a Policy.
536        "logConfigs": [ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action.
537          { # Specifies what kind of log the caller must write
538            "counter": { # Increment a streamz counter with the specified metric and field names. # Counter options.
539                #
540                # Metric names should start with a '/', generally be lowercase-only, and end in "_count". Field names should not contain an initial slash. The actual exported metric names will have "/iam/policy" prepended.
541                #
542                # Field names correspond to IAM request parameters and field values are their respective values.
543                #
544                # Supported field names: - "authority", which is "[token]" if IAMContext.token is present, otherwise the value of IAMContext.authority_selector if present, and otherwise a representation of IAMContext.principal; or - "iam_principal", a representation of IAMContext.principal even if a token or authority selector is present; or - "" (empty string), resulting in a counter with no fields.
545                #
546                # Examples: counter { metric: "/debug_access_count" field: "iam_principal" } ==> increment counter /iam/policy/backend_debug_access_count {iam_principal=[value of IAMContext.principal]}
547                #
548                # At this time we do not support multiple field names (though this may be supported in the future).
549              "field": "A String", # The field value to attribute.
550              "metric": "A String", # The metric to update.
551            },
552            "dataAccess": { # Write a Data Access (Gin) log # Data access options.
553              "logMode": "A String", # Whether Gin logging should happen in a fail-closed manner at the caller. This is relevant only in the LocalIAM implementation, for now.
554            },
555            "cloudAudit": { # Write a Cloud Audit log # Cloud audit options.
556              "logName": "A String", # The log_name to populate in the Cloud Audit Record.
557              "authorizationLoggingOptions": { # Authorization-related information used by Cloud Audit Logging. # Information used by the Cloud Audit Logging pipeline.
558                "permissionType": "A String", # The type of the permission that was checked.
559              },
560            },
561          },
562        ],
563        "notIns": [ # If one or more 'not_in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
564          "A String",
565        ],
566        "ins": [ # If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
567          "A String",
568        ],
569        "action": "A String", # Required
570        "permissions": [ # A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
571          "A String",
572        ],
573        "conditions": [ # Additional restrictions that must be met. All conditions must pass for the rule to match.
574          { # A condition to be met.
575            "iam": "A String", # Trusted attributes supplied by the IAM system.
576            "sys": "A String", # Trusted attributes supplied by any service that owns resources and uses the IAM system for access control.
577            "values": [ # The objects of the condition.
578              "A String",
579            ],
580            "svc": "A String", # Trusted attributes discharged by the service.
581            "op": "A String", # An operator to apply the subject with.
582          },
583        ],
584        "description": "A String", # Human-readable description of the rule.
585      },
586    ],
587    "version": 42, # Deprecated.
588    "etag": "A String", # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy.
589        #
590        # If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten blindly.
591    "bindings": [ # Associates a list of `members` to a `role`. `bindings` with no members will result in an error.
592      { # Associates `members` with a `role`.
593        "role": "A String", # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
594        "members": [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:
595            #
596            # * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.
597            #
598            # * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.
599            #
600            # * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@gmail.com` .
601            #
602            #
603            #
604            # * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.
605            #
606            # * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.
607            #
608            #
609            #
610            # * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
611          "A String",
612        ],
613        "condition": { # Represents an expression text. Example: # The condition that is associated with this binding. NOTE: An unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
614            #
615            # title: "User account presence" description: "Determines whether the request has a user account" expression: "size(request.user) > 0"
616          "title": "A String", # An optional title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
617          "expression": "A String", # Textual representation of an expression in Common Expression Language syntax.
618              #
619              # The application context of the containing message determines which well-known feature set of CEL is supported.
620          "description": "A String", # An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
621          "location": "A String", # An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
622        },
623      },
624    ],
625    "iamOwned": True or False,
626  }</pre>
627</div>
628
629<div class="method">
630    <code class="details" id="insert">insert(project, region, body, requestId=None)</code>
631  <pre>Creates a subnetwork in the specified project using the data included in the request.
632
633Args:
634  project: string, Project ID for this request. (required)
635  region: string, Name of the region scoping this request. (required)
636  body: object, The request body. (required)
637    The object takes the form of:
638
639{ # Represents a Subnetwork resource.
640      #
641      # A subnetwork (also known as a subnet) is a logical partition of a Virtual Private Cloud network with one primary IP range and zero or more secondary IP ranges. For more information, read  Virtual Private Cloud (VPC) Network. (== resource_for beta.subnetworks ==) (== resource_for v1.subnetworks ==)
642    "rangeType": "A String", # The type of IP CIDR range to associate with this subnetwork. The default is RFC_1918. When creating a subnetwork in non-RFC 1918 range, this field must be set to NON_RFC_1918.
643    "privateIpv6GoogleAccess": "A String", # The private IPv6 google access type for the VMs in this subnet. This is an expanded field of enablePrivateV6Access. If both fields are set, privateIpv6GoogleAccess will take priority.
644        #
645        # This field can be both set at resource creation time and updated using patch.
646    "enableFlowLogs": True or False, # Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is to disable flow logging.
647    "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
648    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
649    "flowSampling": 3.14, # Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5, which means half of all collected logs are reported.
650    "ipv6CidrRange": "A String", # [Output Only] The range of internal IPv6 addresses that are owned by this subnetwork.
651    "state": "A String", # [Output Only] The state of the subnetwork, which can be one of READY or DRAINING. A subnetwork that is READY is ready to be used. The state of DRAINING is only applicable to subnetworks that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load balancer are being drained. A subnetwork that is draining cannot be used or modified until it reaches a status of READY.
652    "privateIpv6GoogleAccessServiceAccounts": [ # The service accounts can be used to selectively turn on Private IPv6 Google Access only on the VMs primary service account matching the value. This value only takes effect when PrivateIpv6GoogleAccess is ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE_FOR_SERVICE_ACCOUNTS or ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE_FOR_SERVICE_ACCOUNTS.
653      "A String",
654    ],
655    "role": "A String", # The role of subnetwork. Currenly, this field is only used when purpose = INTERNAL_HTTPS_LOAD_BALANCER. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Internal HTTP(S) Load Balancing. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request.
656    "ipCidrRange": "A String", # The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 192.168.0.0/16. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported. This field can be set only at resource creation time.
657    "aggregationInterval": "A String", # Can only be specified if VPC flow logging for this subnetwork is enabled. Sets the aggregation interval for collecting flow logs. Increasing the interval time reduces the amount of generated flow logs for long-lasting connections. Default is an interval of 5 seconds per connection. Valid values: INTERVAL_5_SEC, INTERVAL_30_SEC, INTERVAL_1_MIN, INTERVAL_5_MIN, INTERVAL_10_MIN, INTERVAL_15_MIN.
658    "metadata": "A String", # Can only be specified if VPC flow logging for this subnetwork is enabled. Configures whether metadata fields should be added to the reported VPC flow logs. Default is INCLUDE_ALL_METADATA.
659    "description": "A String", # An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time.
660    "secondaryIpRanges": [ # An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
661      { # Represents a secondary IP range of a subnetwork.
662        "ipCidrRange": "A String", # The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported.
663        "rangeType": "A String", # The type of IP CIDR range to associate with this subnetwork secondary range. The default is RFC_1918. When creating a subnetwork in non-RFC 1918 range, this field must be set to NON_RFC_1918.
664        "rangeName": "A String", # The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.
665      },
666    ],
667    "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id.
668    "purpose": "A String", # The purpose of the resource. This field can be either PRIVATE_RFC_1918 or INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a user-created subnetwork that is reserved for Internal HTTP(S) Load Balancing. If unspecified, the purpose defaults to PRIVATE_RFC_1918.
669    "fingerprint": "A String", # Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail with error 412 conditionNotMet.
670        #
671        # To see the latest fingerprint, make a get() request to retrieve a Subnetwork.
672    "privateIpGoogleAccess": True or False, # Whether the VMs in this subnet can access Google services without assigned external IP addresses. This field can be both set at resource creation time and updated using setPrivateIpGoogleAccess.
673    "logConfig": { # The available logging options for this subnetwork. # This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, logs are exported to Stackdriver.
674      "enable": True or False, # Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is to disable flow logging.
675      "flowSampling": 3.14, # Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5, which means half of all collected logs are reported.
676      "aggregationInterval": "A String", # Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.
677      "metadata": "A String", # Can only be specified if VPC flow logging for this subnetwork is enabled. Configures whether metadata fields should be added to the reported VPC flow logs. Default is INCLUDE_ALL_METADATA.
678    },
679    "network": "A String", # The URL of the network to which this subnetwork belongs, provided by the client when initially creating the subnetwork. Only networks that are in the distributed mode can have subnetworks. This field can be set only at resource creation time.
680    "kind": "compute#subnetwork", # [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources.
681    "name": "A String", # The name of the resource, provided by the client when initially creating the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
682    "enablePrivateV6Access": True or False, # Deprecated in favor of enable in PrivateIpv6GoogleAccess. Whether the VMs in this subnet can directly access Google services via internal IPv6 addresses. This field can be both set at resource creation time and updated using patch.
683    "region": "A String", # URL of the region where the Subnetwork resides. This field can be set only at resource creation time.
684    "allowSubnetCidrRoutesOverlap": True or False, # Whether this subnetwork can conflict with static routes. Setting this to true allows this subnetwork's primary and secondary ranges to conflict with routes that have already been configured on the corresponding network. Static routes will take precedence over the subnetwork route if the route prefix length is at least as large as the subnetwork prefix length.
685        #
686        # Also, packets destined to IPs within subnetwork may contain private/sensitive data and are prevented from leaving the virtual network. Setting this field to true will disable this feature.
687        #
688        # The default value is false and applies to all existing subnetworks and automatically created subnetworks.
689        #
690        # This field cannot be set to true at resource creation time.
691    "gatewayAddress": "A String", # [Output Only] The gateway address for default routes to reach destination addresses outside this subnetwork.
692    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
693  }
694
695  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.
696
697For 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.
698
699The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
700
701Returns:
702  An object of the form:
703
704    { # Represents an Operation resource.
705      #
706      # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
707      #
708      # Operations can be global, regional or zonal.
709      # - For global operations, use the globalOperations resource.
710      # - For regional operations, use the regionOperations resource.
711      # - For zonal operations, use the zonalOperations resource.
712      #
713      # 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 ==)
714    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
715    "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
716    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
717    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
718    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
719    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
720    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
721    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
722    "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.
723    "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.
724    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
725    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
726    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
727    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
728      {
729        "message": "A String", # [Output Only] A human-readable description of the warning code.
730        "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.
731        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
732            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
733          {
734            "value": "A String", # [Output Only] A warning data value corresponding to the key.
735            "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).
736          },
737        ],
738      },
739    ],
740    "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id.
741    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
742    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
743    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
744    "name": "A String", # [Output Only] Name of the resource.
745    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
746    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
747      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
748        {
749          "message": "A String", # [Output Only] An optional, human-readable error message.
750          "code": "A String", # [Output Only] The error type identifier for this error.
751          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
752        },
753      ],
754    },
755    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
756    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
757    "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.
758  }</pre>
759</div>
760
761<div class="method">
762    <code class="details" id="list">list(project, region, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
763  <pre>Retrieves a list of subnetworks available to the specified project.
764
765Args:
766  project: string, Project ID for this request. (required)
767  region: string, Name of the region scoping this request. (required)
768  orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
769
770You 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.
771
772Currently, only sorting by name or creationTimestamp desc is supported.
773  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)
774  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.
775  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 <.
776
777For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance.
778
779You 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.
780
781To 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).
782
783Returns:
784  An object of the form:
785
786    { # Contains a list of Subnetwork resources.
787    "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.
788    "kind": "compute#subnetworkList", # [Output Only] Type of resource. Always compute#subnetworkList for lists of subnetworks.
789    "items": [ # A list of Subnetwork resources.
790      { # Represents a Subnetwork resource.
791            #
792            # A subnetwork (also known as a subnet) is a logical partition of a Virtual Private Cloud network with one primary IP range and zero or more secondary IP ranges. For more information, read  Virtual Private Cloud (VPC) Network. (== resource_for beta.subnetworks ==) (== resource_for v1.subnetworks ==)
793          "rangeType": "A String", # The type of IP CIDR range to associate with this subnetwork. The default is RFC_1918. When creating a subnetwork in non-RFC 1918 range, this field must be set to NON_RFC_1918.
794          "privateIpv6GoogleAccess": "A String", # The private IPv6 google access type for the VMs in this subnet. This is an expanded field of enablePrivateV6Access. If both fields are set, privateIpv6GoogleAccess will take priority.
795              #
796              # This field can be both set at resource creation time and updated using patch.
797          "enableFlowLogs": True or False, # Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is to disable flow logging.
798          "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
799          "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
800          "flowSampling": 3.14, # Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5, which means half of all collected logs are reported.
801          "ipv6CidrRange": "A String", # [Output Only] The range of internal IPv6 addresses that are owned by this subnetwork.
802          "state": "A String", # [Output Only] The state of the subnetwork, which can be one of READY or DRAINING. A subnetwork that is READY is ready to be used. The state of DRAINING is only applicable to subnetworks that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load balancer are being drained. A subnetwork that is draining cannot be used or modified until it reaches a status of READY.
803          "privateIpv6GoogleAccessServiceAccounts": [ # The service accounts can be used to selectively turn on Private IPv6 Google Access only on the VMs primary service account matching the value. This value only takes effect when PrivateIpv6GoogleAccess is ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE_FOR_SERVICE_ACCOUNTS or ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE_FOR_SERVICE_ACCOUNTS.
804            "A String",
805          ],
806          "role": "A String", # The role of subnetwork. Currenly, this field is only used when purpose = INTERNAL_HTTPS_LOAD_BALANCER. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Internal HTTP(S) Load Balancing. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request.
807          "ipCidrRange": "A String", # The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 192.168.0.0/16. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported. This field can be set only at resource creation time.
808          "aggregationInterval": "A String", # Can only be specified if VPC flow logging for this subnetwork is enabled. Sets the aggregation interval for collecting flow logs. Increasing the interval time reduces the amount of generated flow logs for long-lasting connections. Default is an interval of 5 seconds per connection. Valid values: INTERVAL_5_SEC, INTERVAL_30_SEC, INTERVAL_1_MIN, INTERVAL_5_MIN, INTERVAL_10_MIN, INTERVAL_15_MIN.
809          "metadata": "A String", # Can only be specified if VPC flow logging for this subnetwork is enabled. Configures whether metadata fields should be added to the reported VPC flow logs. Default is INCLUDE_ALL_METADATA.
810          "description": "A String", # An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time.
811          "secondaryIpRanges": [ # An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
812            { # Represents a secondary IP range of a subnetwork.
813              "ipCidrRange": "A String", # The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported.
814              "rangeType": "A String", # The type of IP CIDR range to associate with this subnetwork secondary range. The default is RFC_1918. When creating a subnetwork in non-RFC 1918 range, this field must be set to NON_RFC_1918.
815              "rangeName": "A String", # The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.
816            },
817          ],
818          "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id.
819          "purpose": "A String", # The purpose of the resource. This field can be either PRIVATE_RFC_1918 or INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a user-created subnetwork that is reserved for Internal HTTP(S) Load Balancing. If unspecified, the purpose defaults to PRIVATE_RFC_1918.
820          "fingerprint": "A String", # Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail with error 412 conditionNotMet.
821              #
822              # To see the latest fingerprint, make a get() request to retrieve a Subnetwork.
823          "privateIpGoogleAccess": True or False, # Whether the VMs in this subnet can access Google services without assigned external IP addresses. This field can be both set at resource creation time and updated using setPrivateIpGoogleAccess.
824          "logConfig": { # The available logging options for this subnetwork. # This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, logs are exported to Stackdriver.
825            "enable": True or False, # Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is to disable flow logging.
826            "flowSampling": 3.14, # Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5, which means half of all collected logs are reported.
827            "aggregationInterval": "A String", # Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.
828            "metadata": "A String", # Can only be specified if VPC flow logging for this subnetwork is enabled. Configures whether metadata fields should be added to the reported VPC flow logs. Default is INCLUDE_ALL_METADATA.
829          },
830          "network": "A String", # The URL of the network to which this subnetwork belongs, provided by the client when initially creating the subnetwork. Only networks that are in the distributed mode can have subnetworks. This field can be set only at resource creation time.
831          "kind": "compute#subnetwork", # [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources.
832          "name": "A String", # The name of the resource, provided by the client when initially creating the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
833          "enablePrivateV6Access": True or False, # Deprecated in favor of enable in PrivateIpv6GoogleAccess. Whether the VMs in this subnet can directly access Google services via internal IPv6 addresses. This field can be both set at resource creation time and updated using patch.
834          "region": "A String", # URL of the region where the Subnetwork resides. This field can be set only at resource creation time.
835          "allowSubnetCidrRoutesOverlap": True or False, # Whether this subnetwork can conflict with static routes. Setting this to true allows this subnetwork's primary and secondary ranges to conflict with routes that have already been configured on the corresponding network. Static routes will take precedence over the subnetwork route if the route prefix length is at least as large as the subnetwork prefix length.
836              #
837              # Also, packets destined to IPs within subnetwork may contain private/sensitive data and are prevented from leaving the virtual network. Setting this field to true will disable this feature.
838              #
839              # The default value is false and applies to all existing subnetworks and automatically created subnetworks.
840              #
841              # This field cannot be set to true at resource creation time.
842          "gatewayAddress": "A String", # [Output Only] The gateway address for default routes to reach destination addresses outside this subnetwork.
843          "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
844        },
845    ],
846    "warning": { # [Output Only] Informational warning message.
847      "message": "A String", # [Output Only] A human-readable description of the warning code.
848      "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.
849      "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
850          # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
851        {
852          "value": "A String", # [Output Only] A warning data value corresponding to the key.
853          "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).
854        },
855      ],
856    },
857    "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
858    "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
859  }</pre>
860</div>
861
862<div class="method">
863    <code class="details" id="listUsable">listUsable(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
864  <pre>Retrieves an aggregated list of usable subnetworks.
865
866Args:
867  project: string, Project ID for this request. (required)
868  orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
869
870You 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.
871
872Currently, only sorting by name or creationTimestamp desc is supported.
873  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)
874  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.
875  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 <.
876
877For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance.
878
879You 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.
880
881To 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).
882
883Returns:
884  An object of the form:
885
886    {
887    "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.
888    "kind": "compute#usableSubnetworksAggregatedList", # [Output Only] Type of resource. Always compute#usableSubnetworksAggregatedList for aggregated lists of usable subnetworks.
889    "items": [ # [Output] A list of usable subnetwork URLs.
890      { # Subnetwork which the current user has compute.subnetworks.use permission on.
891        "secondaryIpRanges": [ # Secondary IP ranges.
892          { # Secondary IP range of a usable subnetwork.
893            "ipCidrRange": "A String", # The range of IP addresses belonging to this subnetwork secondary range.
894            "rangeName": "A String", # The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.
895          },
896        ],
897        "ipCidrRange": "A String", # The range of internal addresses that are owned by this subnetwork.
898        "network": "A String", # Network URL.
899        "subnetwork": "A String", # Subnetwork URL.
900      },
901    ],
902    "warning": { # [Output Only] Informational warning message.
903      "message": "A String", # [Output Only] A human-readable description of the warning code.
904      "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.
905      "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
906          # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
907        {
908          "value": "A String", # [Output Only] A warning data value corresponding to the key.
909          "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).
910        },
911      ],
912    },
913    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
914    "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
915  }</pre>
916</div>
917
918<div class="method">
919    <code class="details" id="listUsable_next">listUsable_next(previous_request, previous_response)</code>
920  <pre>Retrieves the next page of results.
921
922Args:
923  previous_request: The request for the previous page. (required)
924  previous_response: The response from the request for the previous page. (required)
925
926Returns:
927  A request object that you can call 'execute()' on to request the next
928  page. Returns None if there are no more items in the collection.
929    </pre>
930</div>
931
932<div class="method">
933    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
934  <pre>Retrieves the next page of results.
935
936Args:
937  previous_request: The request for the previous page. (required)
938  previous_response: The response from the request for the previous page. (required)
939
940Returns:
941  A request object that you can call 'execute()' on to request the next
942  page. Returns None if there are no more items in the collection.
943    </pre>
944</div>
945
946<div class="method">
947    <code class="details" id="patch">patch(project, region, subnetwork, body, drainTimeoutSeconds=None, requestId=None)</code>
948  <pre>Patches the specified subnetwork with the data included in the request. Only certain fields can up updated with a patch request as indicated in the field descriptions. You must specify the current fingeprint of the subnetwork resource being patched.
949
950Args:
951  project: string, Project ID for this request. (required)
952  region: string, Name of the region scoping this request. (required)
953  subnetwork: string, Name of the Subnetwork resource to patch. (required)
954  body: object, The request body. (required)
955    The object takes the form of:
956
957{ # Represents a Subnetwork resource.
958      #
959      # A subnetwork (also known as a subnet) is a logical partition of a Virtual Private Cloud network with one primary IP range and zero or more secondary IP ranges. For more information, read  Virtual Private Cloud (VPC) Network. (== resource_for beta.subnetworks ==) (== resource_for v1.subnetworks ==)
960    "rangeType": "A String", # The type of IP CIDR range to associate with this subnetwork. The default is RFC_1918. When creating a subnetwork in non-RFC 1918 range, this field must be set to NON_RFC_1918.
961    "privateIpv6GoogleAccess": "A String", # The private IPv6 google access type for the VMs in this subnet. This is an expanded field of enablePrivateV6Access. If both fields are set, privateIpv6GoogleAccess will take priority.
962        #
963        # This field can be both set at resource creation time and updated using patch.
964    "enableFlowLogs": True or False, # Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is to disable flow logging.
965    "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
966    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
967    "flowSampling": 3.14, # Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5, which means half of all collected logs are reported.
968    "ipv6CidrRange": "A String", # [Output Only] The range of internal IPv6 addresses that are owned by this subnetwork.
969    "state": "A String", # [Output Only] The state of the subnetwork, which can be one of READY or DRAINING. A subnetwork that is READY is ready to be used. The state of DRAINING is only applicable to subnetworks that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load balancer are being drained. A subnetwork that is draining cannot be used or modified until it reaches a status of READY.
970    "privateIpv6GoogleAccessServiceAccounts": [ # The service accounts can be used to selectively turn on Private IPv6 Google Access only on the VMs primary service account matching the value. This value only takes effect when PrivateIpv6GoogleAccess is ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE_FOR_SERVICE_ACCOUNTS or ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE_FOR_SERVICE_ACCOUNTS.
971      "A String",
972    ],
973    "role": "A String", # The role of subnetwork. Currenly, this field is only used when purpose = INTERNAL_HTTPS_LOAD_BALANCER. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Internal HTTP(S) Load Balancing. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request.
974    "ipCidrRange": "A String", # The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 192.168.0.0/16. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported. This field can be set only at resource creation time.
975    "aggregationInterval": "A String", # Can only be specified if VPC flow logging for this subnetwork is enabled. Sets the aggregation interval for collecting flow logs. Increasing the interval time reduces the amount of generated flow logs for long-lasting connections. Default is an interval of 5 seconds per connection. Valid values: INTERVAL_5_SEC, INTERVAL_30_SEC, INTERVAL_1_MIN, INTERVAL_5_MIN, INTERVAL_10_MIN, INTERVAL_15_MIN.
976    "metadata": "A String", # Can only be specified if VPC flow logging for this subnetwork is enabled. Configures whether metadata fields should be added to the reported VPC flow logs. Default is INCLUDE_ALL_METADATA.
977    "description": "A String", # An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time.
978    "secondaryIpRanges": [ # An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
979      { # Represents a secondary IP range of a subnetwork.
980        "ipCidrRange": "A String", # The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported.
981        "rangeType": "A String", # The type of IP CIDR range to associate with this subnetwork secondary range. The default is RFC_1918. When creating a subnetwork in non-RFC 1918 range, this field must be set to NON_RFC_1918.
982        "rangeName": "A String", # The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.
983      },
984    ],
985    "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id.
986    "purpose": "A String", # The purpose of the resource. This field can be either PRIVATE_RFC_1918 or INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a user-created subnetwork that is reserved for Internal HTTP(S) Load Balancing. If unspecified, the purpose defaults to PRIVATE_RFC_1918.
987    "fingerprint": "A String", # Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail with error 412 conditionNotMet.
988        #
989        # To see the latest fingerprint, make a get() request to retrieve a Subnetwork.
990    "privateIpGoogleAccess": True or False, # Whether the VMs in this subnet can access Google services without assigned external IP addresses. This field can be both set at resource creation time and updated using setPrivateIpGoogleAccess.
991    "logConfig": { # The available logging options for this subnetwork. # This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, logs are exported to Stackdriver.
992      "enable": True or False, # Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is to disable flow logging.
993      "flowSampling": 3.14, # Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5, which means half of all collected logs are reported.
994      "aggregationInterval": "A String", # Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.
995      "metadata": "A String", # Can only be specified if VPC flow logging for this subnetwork is enabled. Configures whether metadata fields should be added to the reported VPC flow logs. Default is INCLUDE_ALL_METADATA.
996    },
997    "network": "A String", # The URL of the network to which this subnetwork belongs, provided by the client when initially creating the subnetwork. Only networks that are in the distributed mode can have subnetworks. This field can be set only at resource creation time.
998    "kind": "compute#subnetwork", # [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources.
999    "name": "A String", # The name of the resource, provided by the client when initially creating the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
1000    "enablePrivateV6Access": True or False, # Deprecated in favor of enable in PrivateIpv6GoogleAccess. Whether the VMs in this subnet can directly access Google services via internal IPv6 addresses. This field can be both set at resource creation time and updated using patch.
1001    "region": "A String", # URL of the region where the Subnetwork resides. This field can be set only at resource creation time.
1002    "allowSubnetCidrRoutesOverlap": True or False, # Whether this subnetwork can conflict with static routes. Setting this to true allows this subnetwork's primary and secondary ranges to conflict with routes that have already been configured on the corresponding network. Static routes will take precedence over the subnetwork route if the route prefix length is at least as large as the subnetwork prefix length.
1003        #
1004        # Also, packets destined to IPs within subnetwork may contain private/sensitive data and are prevented from leaving the virtual network. Setting this field to true will disable this feature.
1005        #
1006        # The default value is false and applies to all existing subnetworks and automatically created subnetworks.
1007        #
1008        # This field cannot be set to true at resource creation time.
1009    "gatewayAddress": "A String", # [Output Only] The gateway address for default routes to reach destination addresses outside this subnetwork.
1010    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
1011  }
1012
1013  drainTimeoutSeconds: integer, The drain timeout specifies the upper bound in seconds on the amount of time allowed to drain connections from the current ACTIVE subnetwork to the current BACKUP subnetwork. The drain timeout is only applicable when the following conditions are true: - the subnetwork being patched has purpose = INTERNAL_HTTPS_LOAD_BALANCER - the subnetwork being patched has role = BACKUP - the patch request is setting the role to ACTIVE. Note that after this patch operation the roles of the ACTIVE and BACKUP subnetworks will be swapped.
1014  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.
1015
1016For 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.
1017
1018The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1019
1020Returns:
1021  An object of the form:
1022
1023    { # Represents an Operation resource.
1024      #
1025      # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
1026      #
1027      # Operations can be global, regional or zonal.
1028      # - For global operations, use the globalOperations resource.
1029      # - For regional operations, use the regionOperations resource.
1030      # - For zonal operations, use the zonalOperations resource.
1031      #
1032      # 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 ==)
1033    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
1034    "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
1035    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
1036    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1037    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
1038    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
1039    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
1040    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
1041    "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.
1042    "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.
1043    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
1044    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
1045    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
1046    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
1047      {
1048        "message": "A String", # [Output Only] A human-readable description of the warning code.
1049        "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.
1050        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
1051            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
1052          {
1053            "value": "A String", # [Output Only] A warning data value corresponding to the key.
1054            "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).
1055          },
1056        ],
1057      },
1058    ],
1059    "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id.
1060    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
1061    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
1062    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
1063    "name": "A String", # [Output Only] Name of the resource.
1064    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
1065    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
1066      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
1067        {
1068          "message": "A String", # [Output Only] An optional, human-readable error message.
1069          "code": "A String", # [Output Only] The error type identifier for this error.
1070          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
1071        },
1072      ],
1073    },
1074    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
1075    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
1076    "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.
1077  }</pre>
1078</div>
1079
1080<div class="method">
1081    <code class="details" id="setIamPolicy">setIamPolicy(project, region, resource, body)</code>
1082  <pre>Sets the access control policy on the specified resource. Replaces any existing policy.
1083
1084Args:
1085  project: string, Project ID for this request. (required)
1086  region: string, The name of the region for this request. (required)
1087  resource: string, Name or id of the resource for this request. (required)
1088  body: object, The request body. (required)
1089    The object takes the form of:
1090
1091{
1092    "policy": { # Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources. # REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is limited to a few 10s of KB. An empty policy is in general a valid policy but certain services (like Projects) might reject them.
1093        #
1094        #
1095        #
1096        # A `Policy` consists of a list of `bindings`. A `binding` binds a list of `members` to a `role`, where the members can be user accounts, Google groups, Google domains, and service accounts. A `role` is a named list of permissions defined by IAM.
1097        #
1098        # **JSON Example**
1099        #
1100        # { "bindings": [ { "role": "roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@appspot.gserviceaccount.com" ] }, { "role": "roles/viewer", "members": ["user:sean@example.com"] } ] }
1101        #
1102        # **YAML Example**
1103        #
1104        # bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com role: roles/owner - members: - user:sean@example.com role: roles/viewer
1105        #
1106        #
1107        #
1108        # For a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam/docs).
1109      "auditConfigs": [ # Specifies cloud audit logging configuration for this policy.
1110        { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs.
1111            #
1112            # If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted.
1113            #
1114            # Example Policy with multiple AuditConfigs:
1115            #
1116            # { "audit_configs": [ { "service": "allServices" "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", }, { "log_type": "ADMIN_READ", } ] }, { "service": "fooservice.googleapis.com" "audit_log_configs": [ { "log_type": "DATA_READ", }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:bar@gmail.com" ] } ] } ] }
1117            #
1118            # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts foo@gmail.com from DATA_READ logging, and bar@gmail.com from DATA_WRITE logging.
1119          "exemptedMembers": [
1120            "A String",
1121          ],
1122          "auditLogConfigs": [ # The configuration for logging of each type of permission.
1123            { # Provides the configuration for logging a type of permissions. Example:
1124                #
1125                # { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", } ] }
1126                #
1127                # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting foo@gmail.com from DATA_READ logging.
1128              "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][].
1129                "A String",
1130              ],
1131              "logType": "A String", # The log type that this config enables.
1132            },
1133          ],
1134          "service": "A String", # Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
1135        },
1136      ],
1137      "rules": [ # If more than one rule is specified, the rules are applied in the following manner: - All matching LOG rules are always applied. - If any DENY/DENY_WITH_LOG rule matches, permission is denied. Logging will be applied if one or more matching rule requires logging. - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is granted. Logging will be applied if one or more matching rule requires logging. - Otherwise, if no rule applies, permission is denied.
1138        { # A rule to be applied in a Policy.
1139          "logConfigs": [ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action.
1140            { # Specifies what kind of log the caller must write
1141              "counter": { # Increment a streamz counter with the specified metric and field names. # Counter options.
1142                  #
1143                  # Metric names should start with a '/', generally be lowercase-only, and end in "_count". Field names should not contain an initial slash. The actual exported metric names will have "/iam/policy" prepended.
1144                  #
1145                  # Field names correspond to IAM request parameters and field values are their respective values.
1146                  #
1147                  # Supported field names: - "authority", which is "[token]" if IAMContext.token is present, otherwise the value of IAMContext.authority_selector if present, and otherwise a representation of IAMContext.principal; or - "iam_principal", a representation of IAMContext.principal even if a token or authority selector is present; or - "" (empty string), resulting in a counter with no fields.
1148                  #
1149                  # Examples: counter { metric: "/debug_access_count" field: "iam_principal" } ==> increment counter /iam/policy/backend_debug_access_count {iam_principal=[value of IAMContext.principal]}
1150                  #
1151                  # At this time we do not support multiple field names (though this may be supported in the future).
1152                "field": "A String", # The field value to attribute.
1153                "metric": "A String", # The metric to update.
1154              },
1155              "dataAccess": { # Write a Data Access (Gin) log # Data access options.
1156                "logMode": "A String", # Whether Gin logging should happen in a fail-closed manner at the caller. This is relevant only in the LocalIAM implementation, for now.
1157              },
1158              "cloudAudit": { # Write a Cloud Audit log # Cloud audit options.
1159                "logName": "A String", # The log_name to populate in the Cloud Audit Record.
1160                "authorizationLoggingOptions": { # Authorization-related information used by Cloud Audit Logging. # Information used by the Cloud Audit Logging pipeline.
1161                  "permissionType": "A String", # The type of the permission that was checked.
1162                },
1163              },
1164            },
1165          ],
1166          "notIns": [ # If one or more 'not_in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
1167            "A String",
1168          ],
1169          "ins": [ # If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
1170            "A String",
1171          ],
1172          "action": "A String", # Required
1173          "permissions": [ # A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
1174            "A String",
1175          ],
1176          "conditions": [ # Additional restrictions that must be met. All conditions must pass for the rule to match.
1177            { # A condition to be met.
1178              "iam": "A String", # Trusted attributes supplied by the IAM system.
1179              "sys": "A String", # Trusted attributes supplied by any service that owns resources and uses the IAM system for access control.
1180              "values": [ # The objects of the condition.
1181                "A String",
1182              ],
1183              "svc": "A String", # Trusted attributes discharged by the service.
1184              "op": "A String", # An operator to apply the subject with.
1185            },
1186          ],
1187          "description": "A String", # Human-readable description of the rule.
1188        },
1189      ],
1190      "version": 42, # Deprecated.
1191      "etag": "A String", # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy.
1192          #
1193          # If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten blindly.
1194      "bindings": [ # Associates a list of `members` to a `role`. `bindings` with no members will result in an error.
1195        { # Associates `members` with a `role`.
1196          "role": "A String", # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1197          "members": [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:
1198              #
1199              # * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.
1200              #
1201              # * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.
1202              #
1203              # * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@gmail.com` .
1204              #
1205              #
1206              #
1207              # * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.
1208              #
1209              # * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.
1210              #
1211              #
1212              #
1213              # * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
1214            "A String",
1215          ],
1216          "condition": { # Represents an expression text. Example: # The condition that is associated with this binding. NOTE: An unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
1217              #
1218              # title: "User account presence" description: "Determines whether the request has a user account" expression: "size(request.user) > 0"
1219            "title": "A String", # An optional title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
1220            "expression": "A String", # Textual representation of an expression in Common Expression Language syntax.
1221                #
1222                # The application context of the containing message determines which well-known feature set of CEL is supported.
1223            "description": "A String", # An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
1224            "location": "A String", # An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
1225          },
1226        },
1227      ],
1228      "iamOwned": True or False,
1229    },
1230    "bindings": [ # Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify bindings.
1231      { # Associates `members` with a `role`.
1232        "role": "A String", # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1233        "members": [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:
1234            #
1235            # * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.
1236            #
1237            # * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.
1238            #
1239            # * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@gmail.com` .
1240            #
1241            #
1242            #
1243            # * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.
1244            #
1245            # * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.
1246            #
1247            #
1248            #
1249            # * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
1250          "A String",
1251        ],
1252        "condition": { # Represents an expression text. Example: # The condition that is associated with this binding. NOTE: An unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
1253            #
1254            # title: "User account presence" description: "Determines whether the request has a user account" expression: "size(request.user) > 0"
1255          "title": "A String", # An optional title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
1256          "expression": "A String", # Textual representation of an expression in Common Expression Language syntax.
1257              #
1258              # The application context of the containing message determines which well-known feature set of CEL is supported.
1259          "description": "A String", # An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
1260          "location": "A String", # An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
1261        },
1262      },
1263    ],
1264    "etag": "A String", # Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag.
1265  }
1266
1267
1268Returns:
1269  An object of the form:
1270
1271    { # Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.
1272      #
1273      #
1274      #
1275      # A `Policy` consists of a list of `bindings`. A `binding` binds a list of `members` to a `role`, where the members can be user accounts, Google groups, Google domains, and service accounts. A `role` is a named list of permissions defined by IAM.
1276      #
1277      # **JSON Example**
1278      #
1279      # { "bindings": [ { "role": "roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@appspot.gserviceaccount.com" ] }, { "role": "roles/viewer", "members": ["user:sean@example.com"] } ] }
1280      #
1281      # **YAML Example**
1282      #
1283      # bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com role: roles/owner - members: - user:sean@example.com role: roles/viewer
1284      #
1285      #
1286      #
1287      # For a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam/docs).
1288    "auditConfigs": [ # Specifies cloud audit logging configuration for this policy.
1289      { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs.
1290          #
1291          # If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted.
1292          #
1293          # Example Policy with multiple AuditConfigs:
1294          #
1295          # { "audit_configs": [ { "service": "allServices" "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", }, { "log_type": "ADMIN_READ", } ] }, { "service": "fooservice.googleapis.com" "audit_log_configs": [ { "log_type": "DATA_READ", }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:bar@gmail.com" ] } ] } ] }
1296          #
1297          # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts foo@gmail.com from DATA_READ logging, and bar@gmail.com from DATA_WRITE logging.
1298        "exemptedMembers": [
1299          "A String",
1300        ],
1301        "auditLogConfigs": [ # The configuration for logging of each type of permission.
1302          { # Provides the configuration for logging a type of permissions. Example:
1303              #
1304              # { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", } ] }
1305              #
1306              # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting foo@gmail.com from DATA_READ logging.
1307            "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][].
1308              "A String",
1309            ],
1310            "logType": "A String", # The log type that this config enables.
1311          },
1312        ],
1313        "service": "A String", # Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
1314      },
1315    ],
1316    "rules": [ # If more than one rule is specified, the rules are applied in the following manner: - All matching LOG rules are always applied. - If any DENY/DENY_WITH_LOG rule matches, permission is denied. Logging will be applied if one or more matching rule requires logging. - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is granted. Logging will be applied if one or more matching rule requires logging. - Otherwise, if no rule applies, permission is denied.
1317      { # A rule to be applied in a Policy.
1318        "logConfigs": [ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action.
1319          { # Specifies what kind of log the caller must write
1320            "counter": { # Increment a streamz counter with the specified metric and field names. # Counter options.
1321                #
1322                # Metric names should start with a '/', generally be lowercase-only, and end in "_count". Field names should not contain an initial slash. The actual exported metric names will have "/iam/policy" prepended.
1323                #
1324                # Field names correspond to IAM request parameters and field values are their respective values.
1325                #
1326                # Supported field names: - "authority", which is "[token]" if IAMContext.token is present, otherwise the value of IAMContext.authority_selector if present, and otherwise a representation of IAMContext.principal; or - "iam_principal", a representation of IAMContext.principal even if a token or authority selector is present; or - "" (empty string), resulting in a counter with no fields.
1327                #
1328                # Examples: counter { metric: "/debug_access_count" field: "iam_principal" } ==> increment counter /iam/policy/backend_debug_access_count {iam_principal=[value of IAMContext.principal]}
1329                #
1330                # At this time we do not support multiple field names (though this may be supported in the future).
1331              "field": "A String", # The field value to attribute.
1332              "metric": "A String", # The metric to update.
1333            },
1334            "dataAccess": { # Write a Data Access (Gin) log # Data access options.
1335              "logMode": "A String", # Whether Gin logging should happen in a fail-closed manner at the caller. This is relevant only in the LocalIAM implementation, for now.
1336            },
1337            "cloudAudit": { # Write a Cloud Audit log # Cloud audit options.
1338              "logName": "A String", # The log_name to populate in the Cloud Audit Record.
1339              "authorizationLoggingOptions": { # Authorization-related information used by Cloud Audit Logging. # Information used by the Cloud Audit Logging pipeline.
1340                "permissionType": "A String", # The type of the permission that was checked.
1341              },
1342            },
1343          },
1344        ],
1345        "notIns": [ # If one or more 'not_in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
1346          "A String",
1347        ],
1348        "ins": [ # If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
1349          "A String",
1350        ],
1351        "action": "A String", # Required
1352        "permissions": [ # A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
1353          "A String",
1354        ],
1355        "conditions": [ # Additional restrictions that must be met. All conditions must pass for the rule to match.
1356          { # A condition to be met.
1357            "iam": "A String", # Trusted attributes supplied by the IAM system.
1358            "sys": "A String", # Trusted attributes supplied by any service that owns resources and uses the IAM system for access control.
1359            "values": [ # The objects of the condition.
1360              "A String",
1361            ],
1362            "svc": "A String", # Trusted attributes discharged by the service.
1363            "op": "A String", # An operator to apply the subject with.
1364          },
1365        ],
1366        "description": "A String", # Human-readable description of the rule.
1367      },
1368    ],
1369    "version": 42, # Deprecated.
1370    "etag": "A String", # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy.
1371        #
1372        # If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten blindly.
1373    "bindings": [ # Associates a list of `members` to a `role`. `bindings` with no members will result in an error.
1374      { # Associates `members` with a `role`.
1375        "role": "A String", # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1376        "members": [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:
1377            #
1378            # * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.
1379            #
1380            # * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.
1381            #
1382            # * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@gmail.com` .
1383            #
1384            #
1385            #
1386            # * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.
1387            #
1388            # * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.
1389            #
1390            #
1391            #
1392            # * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
1393          "A String",
1394        ],
1395        "condition": { # Represents an expression text. Example: # The condition that is associated with this binding. NOTE: An unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
1396            #
1397            # title: "User account presence" description: "Determines whether the request has a user account" expression: "size(request.user) > 0"
1398          "title": "A String", # An optional title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
1399          "expression": "A String", # Textual representation of an expression in Common Expression Language syntax.
1400              #
1401              # The application context of the containing message determines which well-known feature set of CEL is supported.
1402          "description": "A String", # An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
1403          "location": "A String", # An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
1404        },
1405      },
1406    ],
1407    "iamOwned": True or False,
1408  }</pre>
1409</div>
1410
1411<div class="method">
1412    <code class="details" id="setPrivateIpGoogleAccess">setPrivateIpGoogleAccess(project, region, subnetwork, body, requestId=None)</code>
1413  <pre>Set whether VMs in this subnet can access Google services without assigning external IP addresses through Private Google Access.
1414
1415Args:
1416  project: string, Project ID for this request. (required)
1417  region: string, Name of the region scoping this request. (required)
1418  subnetwork: string, Name of the Subnetwork resource. (required)
1419  body: object, The request body. (required)
1420    The object takes the form of:
1421
1422{
1423    "privateIpGoogleAccess": True or False,
1424  }
1425
1426  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.
1427
1428For 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.
1429
1430The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1431
1432Returns:
1433  An object of the form:
1434
1435    { # Represents an Operation resource.
1436      #
1437      # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
1438      #
1439      # Operations can be global, regional or zonal.
1440      # - For global operations, use the globalOperations resource.
1441      # - For regional operations, use the regionOperations resource.
1442      # - For zonal operations, use the zonalOperations resource.
1443      #
1444      # 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 ==)
1445    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
1446    "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
1447    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
1448    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1449    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
1450    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
1451    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
1452    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
1453    "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.
1454    "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.
1455    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
1456    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
1457    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
1458    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
1459      {
1460        "message": "A String", # [Output Only] A human-readable description of the warning code.
1461        "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.
1462        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
1463            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
1464          {
1465            "value": "A String", # [Output Only] A warning data value corresponding to the key.
1466            "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).
1467          },
1468        ],
1469      },
1470    ],
1471    "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id.
1472    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
1473    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
1474    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
1475    "name": "A String", # [Output Only] Name of the resource.
1476    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
1477    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
1478      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
1479        {
1480          "message": "A String", # [Output Only] An optional, human-readable error message.
1481          "code": "A String", # [Output Only] The error type identifier for this error.
1482          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
1483        },
1484      ],
1485    },
1486    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
1487    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
1488    "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.
1489  }</pre>
1490</div>
1491
1492<div class="method">
1493    <code class="details" id="testIamPermissions">testIamPermissions(project, region, resource, body)</code>
1494  <pre>Returns permissions that a caller has on the specified resource.
1495
1496Args:
1497  project: string, Project ID for this request. (required)
1498  region: string, The name of the region for this request. (required)
1499  resource: string, Name or id of the resource for this request. (required)
1500  body: object, The request body. (required)
1501    The object takes the form of:
1502
1503{
1504    "permissions": [ # The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed.
1505      "A String",
1506    ],
1507  }
1508
1509
1510Returns:
1511  An object of the form:
1512
1513    {
1514    "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1515      "A String",
1516    ],
1517  }</pre>
1518</div>
1519
1520</body></html>