blob: a2391fd54d3cd6050770faf0b823333e316563a2 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="file_v1beta1.html">Cloud Filestore API</a> . <a href="file_v1beta1.projects.html">projects</a> . <a href="file_v1beta1.projects.locations.html">locations</a> . <a href="file_v1beta1.projects.locations.instances.html">instances</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#create">create(parent, body=None, instanceId=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Creates an instance.</p>
80<p class="toc_element">
81 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
82<p class="firstline">Deletes an instance.</p>
83<p class="toc_element">
84 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Gets the details of a specific instance.</p>
86<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070087 <code><a href="#list">list(parent, pageToken=None, filter=None, orderBy=None, pageSize=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">Lists all instances in a project for either a specified location</p>
89<p class="toc_element">
90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Updates the settings of a specific instance.</p>
95<h3>Method Details</h3>
96<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -070097 <code class="details" id="create">create(parent, body=None, instanceId=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070098 <pre>Creates an instance.
99
100Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700101 parent: string, Required. The instance&#x27;s project and location, in the format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700102projects/{project_id}/locations/{location}. In Cloud Filestore,
103locations map to GCP zones, for example **us-west1-b**. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700104 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700105 The object takes the form of:
106
107{ # A Cloud Filestore instance.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700108 &quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
109 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the instance state, if available.
110 &quot;description&quot;: &quot;A String&quot;, # The description of the instance (2048 characters or less).
111 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
112 &quot;fileShares&quot;: [ # File system shares on the instance.
113 # For this version, only a single file share is supported.
114 { # File share configuration for the instance.
115 &quot;nfsExportOptions&quot;: [ # Nfs Export Options.
116 # There is a limit of 10 export options per file share.
117 { # NFS export options specifications.
118 &quot;accessMode&quot;: &quot;A String&quot;, # Either READ_ONLY, for allowing only read requests on the exported
119 # directory, or READ_WRITE, for allowing both read and write requests.
120 # The default is READ_WRITE.
121 &quot;anonGid&quot;: &quot;A String&quot;, # An integer representing the anonymous group id with a default value of
122 # 65534.
123 # Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be
124 # returned if this field is specified for other squash_mode settings.
125 &quot;anonUid&quot;: &quot;A String&quot;, # An integer representing the anonymous user id with a default value of
126 # 65534.
127 # Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be
128 # returned if this field is specified for other squash_mode settings.
129 &quot;ipRanges&quot;: [ # List of either an IPv4 addresses in the format
130 # {octet 1}.{octet 2}.{octet 3}.{octet 4} or CIDR ranges in the format
131 # {octet 1}.{octet 2}.{octet 3}.{octet 4}/{mask size} which may mount the
132 # file share.
133 # Overlapping IP ranges are not allowed, both within and across
134 # NfsExportOptions. An error will be returned.
135 # The limit is 64 IP ranges/addresses for each FileShareConfig among all
136 # NfsExportOptions.
137 &quot;A String&quot;,
138 ],
139 &quot;squashMode&quot;: &quot;A String&quot;, # Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
140 # or ROOT_SQUASH, for not allowing root access. The default is
141 # NO_ROOT_SQUASH.
142 },
143 ],
144 &quot;capacityGb&quot;: &quot;A String&quot;, # File share capacity in gigabytes (GB).
145 # Cloud Filestore defines 1 GB as 1024^3 bytes.
146 &quot;name&quot;: &quot;A String&quot;, # The name of the file share (must be 16 characters or less).
147 },
148 ],
149 &quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
150 &quot;etag&quot;: &quot;A String&quot;, # Server-specified ETag for the instance resource to prevent simultaneous
151 # updates from overwriting each other.
152 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the instance, in the format
153 # projects/{project_id}/locations/{location_id}/instances/{instance_id}.
154 &quot;networks&quot;: [ # VPC networks to which the instance is connected.
155 # For this version, only a single network is supported.
156 { # Network configuration for the instance.
157 &quot;reservedIpRange&quot;: &quot;A String&quot;, # A /29 CIDR block for Basic or a /23 CIDR block for High Scale in one of the
158 # [internal IP address
159 # ranges](https://www.arin.net/knowledge/address_filters.html) that
160 # identifies the range of IP addresses reserved for this instance. For
161 # example, 10.0.0.0/29 or 192.168.0.0/23. The range you specify can&#x27;t overlap
162 # with either existing subnets or assigned IP address ranges for other Cloud
163 # Filestore instances in the selected VPC network.
164 &quot;ipAddresses&quot;: [ # Output only. IPv4 addresses in the format
165 # {octet 1}.{octet 2}.{octet 3}.{octet 4} or IPv6 addresses in the format
166 # {block 1}:{block 2}:{block 3}:{block 4}:{block 5}:{block 6}:{block
167 # 7}:{block 8}.
168 &quot;A String&quot;,
169 ],
170 &quot;modes&quot;: [ # Internet protocol versions for which the instance has IP addresses
171 # assigned. For this version, only MODE_IPV4 is supported.
172 &quot;A String&quot;,
173 ],
174 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
175 # [VPC network](/compute/docs/networks-and-firewalls#networks) to which the
176 # instance is connected.
177 },
178 ],
179 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
180 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700181 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700182 }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700183
Dan O'Mearadd494642020-05-01 07:42:23 -0700184 instanceId: string, Required. The ID of the instance to create.
185The ID must be unique within the specified project and location.
186
187This value must start with a lowercase letter followed by up to 62
188lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700189 x__xgafv: string, V1 error format.
190 Allowed values
191 1 - v1 error format
192 2 - v2 error format
193
194Returns:
195 An object of the form:
196
197 { # This resource represents a long-running operation that is the result of a
198 # network API call.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700199 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
200 # originally returns it. If you use the default HTTP mapping, the
201 # `name` should be a resource name ending with `operations/{unique_id}`.
202 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
203 # different programming environments, including REST APIs and RPC APIs. It is
204 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
205 # three pieces of data: error code, error message, and error details.
206 #
207 # You can find out more about this error model and how to work with it in the
208 # [API Design Guide](https://cloud.google.com/apis/design/errors).
209 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
210 # user-facing error message should be localized and sent in the
211 # google.rpc.Status.details field, or localized by the client.
212 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
213 # message types for APIs to use.
214 {
215 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
216 },
217 ],
218 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
219 },
220 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
221 # contains progress information and common metadata such as create time.
222 # Some services might not provide such metadata. Any method that returns a
223 # long-running operation should document the metadata type, if any.
224 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
225 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700226 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
227 # If `true`, the operation is completed, and either `error` or `response` is
228 # available.
229 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700230 # method returns no data on success, such as `Delete`, the response is
231 # `google.protobuf.Empty`. If the original method is standard
232 # `Get`/`Create`/`Update`, the response should be the resource. For other
233 # methods, the response should have the type `XxxResponse`, where `Xxx`
234 # is the original method name. For example, if the original method name
235 # is `TakeSnapshot()`, the inferred response type is
236 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700237 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700238 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700239 }</pre>
240</div>
241
242<div class="method">
243 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
244 <pre>Deletes an instance.
245
246Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700247 name: string, Required. The instance resource name, in the format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700248projects/{project_id}/locations/{location}/instances/{instance_id} (required)
249 x__xgafv: string, V1 error format.
250 Allowed values
251 1 - v1 error format
252 2 - v2 error format
253
254Returns:
255 An object of the form:
256
257 { # This resource represents a long-running operation that is the result of a
258 # network API call.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700259 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
260 # originally returns it. If you use the default HTTP mapping, the
261 # `name` should be a resource name ending with `operations/{unique_id}`.
262 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
263 # different programming environments, including REST APIs and RPC APIs. It is
264 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
265 # three pieces of data: error code, error message, and error details.
266 #
267 # You can find out more about this error model and how to work with it in the
268 # [API Design Guide](https://cloud.google.com/apis/design/errors).
269 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
270 # user-facing error message should be localized and sent in the
271 # google.rpc.Status.details field, or localized by the client.
272 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
273 # message types for APIs to use.
274 {
275 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
276 },
277 ],
278 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
279 },
280 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
281 # contains progress information and common metadata such as create time.
282 # Some services might not provide such metadata. Any method that returns a
283 # long-running operation should document the metadata type, if any.
284 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
285 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700286 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
287 # If `true`, the operation is completed, and either `error` or `response` is
288 # available.
289 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700290 # method returns no data on success, such as `Delete`, the response is
291 # `google.protobuf.Empty`. If the original method is standard
292 # `Get`/`Create`/`Update`, the response should be the resource. For other
293 # methods, the response should have the type `XxxResponse`, where `Xxx`
294 # is the original method name. For example, if the original method name
295 # is `TakeSnapshot()`, the inferred response type is
296 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700297 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700298 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700299 }</pre>
300</div>
301
302<div class="method">
303 <code class="details" id="get">get(name, x__xgafv=None)</code>
304 <pre>Gets the details of a specific instance.
305
306Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700307 name: string, Required. The instance resource name, in the format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700308projects/{project_id}/locations/{location}/instances/{instance_id}. (required)
309 x__xgafv: string, V1 error format.
310 Allowed values
311 1 - v1 error format
312 2 - v2 error format
313
314Returns:
315 An object of the form:
316
317 { # A Cloud Filestore instance.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700318 &quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
319 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the instance state, if available.
320 &quot;description&quot;: &quot;A String&quot;, # The description of the instance (2048 characters or less).
321 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
322 &quot;fileShares&quot;: [ # File system shares on the instance.
323 # For this version, only a single file share is supported.
324 { # File share configuration for the instance.
325 &quot;nfsExportOptions&quot;: [ # Nfs Export Options.
326 # There is a limit of 10 export options per file share.
327 { # NFS export options specifications.
328 &quot;accessMode&quot;: &quot;A String&quot;, # Either READ_ONLY, for allowing only read requests on the exported
329 # directory, or READ_WRITE, for allowing both read and write requests.
330 # The default is READ_WRITE.
331 &quot;anonGid&quot;: &quot;A String&quot;, # An integer representing the anonymous group id with a default value of
332 # 65534.
333 # Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be
334 # returned if this field is specified for other squash_mode settings.
335 &quot;anonUid&quot;: &quot;A String&quot;, # An integer representing the anonymous user id with a default value of
336 # 65534.
337 # Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be
338 # returned if this field is specified for other squash_mode settings.
339 &quot;ipRanges&quot;: [ # List of either an IPv4 addresses in the format
340 # {octet 1}.{octet 2}.{octet 3}.{octet 4} or CIDR ranges in the format
341 # {octet 1}.{octet 2}.{octet 3}.{octet 4}/{mask size} which may mount the
342 # file share.
343 # Overlapping IP ranges are not allowed, both within and across
344 # NfsExportOptions. An error will be returned.
345 # The limit is 64 IP ranges/addresses for each FileShareConfig among all
346 # NfsExportOptions.
347 &quot;A String&quot;,
348 ],
349 &quot;squashMode&quot;: &quot;A String&quot;, # Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
350 # or ROOT_SQUASH, for not allowing root access. The default is
351 # NO_ROOT_SQUASH.
352 },
353 ],
354 &quot;capacityGb&quot;: &quot;A String&quot;, # File share capacity in gigabytes (GB).
355 # Cloud Filestore defines 1 GB as 1024^3 bytes.
356 &quot;name&quot;: &quot;A String&quot;, # The name of the file share (must be 16 characters or less).
357 },
358 ],
359 &quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
360 &quot;etag&quot;: &quot;A String&quot;, # Server-specified ETag for the instance resource to prevent simultaneous
361 # updates from overwriting each other.
362 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the instance, in the format
363 # projects/{project_id}/locations/{location_id}/instances/{instance_id}.
364 &quot;networks&quot;: [ # VPC networks to which the instance is connected.
365 # For this version, only a single network is supported.
366 { # Network configuration for the instance.
367 &quot;reservedIpRange&quot;: &quot;A String&quot;, # A /29 CIDR block for Basic or a /23 CIDR block for High Scale in one of the
368 # [internal IP address
369 # ranges](https://www.arin.net/knowledge/address_filters.html) that
370 # identifies the range of IP addresses reserved for this instance. For
371 # example, 10.0.0.0/29 or 192.168.0.0/23. The range you specify can&#x27;t overlap
372 # with either existing subnets or assigned IP address ranges for other Cloud
373 # Filestore instances in the selected VPC network.
374 &quot;ipAddresses&quot;: [ # Output only. IPv4 addresses in the format
375 # {octet 1}.{octet 2}.{octet 3}.{octet 4} or IPv6 addresses in the format
376 # {block 1}:{block 2}:{block 3}:{block 4}:{block 5}:{block 6}:{block
377 # 7}:{block 8}.
378 &quot;A String&quot;,
379 ],
380 &quot;modes&quot;: [ # Internet protocol versions for which the instance has IP addresses
381 # assigned. For this version, only MODE_IPV4 is supported.
382 &quot;A String&quot;,
383 ],
384 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
385 # [VPC network](/compute/docs/networks-and-firewalls#networks) to which the
386 # instance is connected.
387 },
388 ],
389 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
390 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700391 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700392 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700393</div>
394
395<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700396 <code class="details" id="list">list(parent, pageToken=None, filter=None, orderBy=None, pageSize=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700397 <pre>Lists all instances in a project for either a specified location
398or for all locations.
399
400Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700401 parent: string, Required. The project and location for which to retrieve instance information,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700402in the format projects/{project_id}/locations/{location}. In Cloud
403Filestore, locations map to GCP zones, for example **us-west1-b**. To
Bu Sun Kim65020912020-05-20 12:08:20 -0700404retrieve instance information for all locations, use &quot;-&quot; for the {location}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700405value. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700406 pageToken: string, The next_page_token value to use if there are additional
407results to retrieve for this list request.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700408 filter: string, List filter.
Bu Sun Kim65020912020-05-20 12:08:20 -0700409 orderBy: string, Sort results. Supported values are &quot;name&quot;, &quot;name desc&quot; or &quot;&quot; (unsorted).
410 pageSize: integer, The maximum number of items to return.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700411 x__xgafv: string, V1 error format.
412 Allowed values
413 1 - v1 error format
414 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700415
416Returns:
417 An object of the form:
418
419 { # ListInstancesResponse is the result of ListInstancesRequest.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700420 &quot;unreachable&quot;: [ # Locations that could not be reached.
421 &quot;A String&quot;,
422 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700423 &quot;instances&quot;: [ # A list of instances in the project for the specified location.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700424 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700425 # If the {location} value in the request is &quot;-&quot;, the response contains a list
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700426 # of instances from all locations. If any location is unreachable, the
427 # response will only return instances in reachable locations and the
Bu Sun Kim65020912020-05-20 12:08:20 -0700428 # &quot;unreachable&quot; field will be populated with a list of unreachable locations.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700429 { # A Cloud Filestore instance.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700430 &quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
431 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the instance state, if available.
432 &quot;description&quot;: &quot;A String&quot;, # The description of the instance (2048 characters or less).
433 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
434 &quot;fileShares&quot;: [ # File system shares on the instance.
435 # For this version, only a single file share is supported.
436 { # File share configuration for the instance.
437 &quot;nfsExportOptions&quot;: [ # Nfs Export Options.
438 # There is a limit of 10 export options per file share.
439 { # NFS export options specifications.
440 &quot;accessMode&quot;: &quot;A String&quot;, # Either READ_ONLY, for allowing only read requests on the exported
441 # directory, or READ_WRITE, for allowing both read and write requests.
442 # The default is READ_WRITE.
443 &quot;anonGid&quot;: &quot;A String&quot;, # An integer representing the anonymous group id with a default value of
444 # 65534.
445 # Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be
446 # returned if this field is specified for other squash_mode settings.
447 &quot;anonUid&quot;: &quot;A String&quot;, # An integer representing the anonymous user id with a default value of
448 # 65534.
449 # Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be
450 # returned if this field is specified for other squash_mode settings.
451 &quot;ipRanges&quot;: [ # List of either an IPv4 addresses in the format
452 # {octet 1}.{octet 2}.{octet 3}.{octet 4} or CIDR ranges in the format
453 # {octet 1}.{octet 2}.{octet 3}.{octet 4}/{mask size} which may mount the
454 # file share.
455 # Overlapping IP ranges are not allowed, both within and across
456 # NfsExportOptions. An error will be returned.
457 # The limit is 64 IP ranges/addresses for each FileShareConfig among all
458 # NfsExportOptions.
459 &quot;A String&quot;,
460 ],
461 &quot;squashMode&quot;: &quot;A String&quot;, # Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
462 # or ROOT_SQUASH, for not allowing root access. The default is
463 # NO_ROOT_SQUASH.
464 },
465 ],
466 &quot;capacityGb&quot;: &quot;A String&quot;, # File share capacity in gigabytes (GB).
467 # Cloud Filestore defines 1 GB as 1024^3 bytes.
468 &quot;name&quot;: &quot;A String&quot;, # The name of the file share (must be 16 characters or less).
469 },
470 ],
471 &quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
472 &quot;etag&quot;: &quot;A String&quot;, # Server-specified ETag for the instance resource to prevent simultaneous
473 # updates from overwriting each other.
474 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the instance, in the format
475 # projects/{project_id}/locations/{location_id}/instances/{instance_id}.
476 &quot;networks&quot;: [ # VPC networks to which the instance is connected.
477 # For this version, only a single network is supported.
478 { # Network configuration for the instance.
479 &quot;reservedIpRange&quot;: &quot;A String&quot;, # A /29 CIDR block for Basic or a /23 CIDR block for High Scale in one of the
480 # [internal IP address
481 # ranges](https://www.arin.net/knowledge/address_filters.html) that
482 # identifies the range of IP addresses reserved for this instance. For
483 # example, 10.0.0.0/29 or 192.168.0.0/23. The range you specify can&#x27;t overlap
484 # with either existing subnets or assigned IP address ranges for other Cloud
485 # Filestore instances in the selected VPC network.
486 &quot;ipAddresses&quot;: [ # Output only. IPv4 addresses in the format
487 # {octet 1}.{octet 2}.{octet 3}.{octet 4} or IPv6 addresses in the format
488 # {block 1}:{block 2}:{block 3}:{block 4}:{block 5}:{block 6}:{block
489 # 7}:{block 8}.
490 &quot;A String&quot;,
491 ],
492 &quot;modes&quot;: [ # Internet protocol versions for which the instance has IP addresses
493 # assigned. For this version, only MODE_IPV4 is supported.
494 &quot;A String&quot;,
495 ],
496 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
497 # [VPC network](/compute/docs/networks-and-firewalls#networks) to which the
498 # instance is connected.
499 },
500 ],
501 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
502 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700503 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700504 },
505 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700506 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token you can use to retrieve the next page of results. Not returned
507 # if there are no more results in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700508 }</pre>
509</div>
510
511<div class="method">
512 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
513 <pre>Retrieves the next page of results.
514
515Args:
516 previous_request: The request for the previous page. (required)
517 previous_response: The response from the request for the previous page. (required)
518
519Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700520 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700521 page. Returns None if there are no more items in the collection.
522 </pre>
523</div>
524
525<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700526 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700527 <pre>Updates the settings of a specific instance.
528
529Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700530 name: string, Output only. The resource name of the instance, in the format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700531projects/{project_id}/locations/{location_id}/instances/{instance_id}. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700532 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700533 The object takes the form of:
534
535{ # A Cloud Filestore instance.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700536 &quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
537 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the instance state, if available.
538 &quot;description&quot;: &quot;A String&quot;, # The description of the instance (2048 characters or less).
539 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
540 &quot;fileShares&quot;: [ # File system shares on the instance.
541 # For this version, only a single file share is supported.
542 { # File share configuration for the instance.
543 &quot;nfsExportOptions&quot;: [ # Nfs Export Options.
544 # There is a limit of 10 export options per file share.
545 { # NFS export options specifications.
546 &quot;accessMode&quot;: &quot;A String&quot;, # Either READ_ONLY, for allowing only read requests on the exported
547 # directory, or READ_WRITE, for allowing both read and write requests.
548 # The default is READ_WRITE.
549 &quot;anonGid&quot;: &quot;A String&quot;, # An integer representing the anonymous group id with a default value of
550 # 65534.
551 # Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be
552 # returned if this field is specified for other squash_mode settings.
553 &quot;anonUid&quot;: &quot;A String&quot;, # An integer representing the anonymous user id with a default value of
554 # 65534.
555 # Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be
556 # returned if this field is specified for other squash_mode settings.
557 &quot;ipRanges&quot;: [ # List of either an IPv4 addresses in the format
558 # {octet 1}.{octet 2}.{octet 3}.{octet 4} or CIDR ranges in the format
559 # {octet 1}.{octet 2}.{octet 3}.{octet 4}/{mask size} which may mount the
560 # file share.
561 # Overlapping IP ranges are not allowed, both within and across
562 # NfsExportOptions. An error will be returned.
563 # The limit is 64 IP ranges/addresses for each FileShareConfig among all
564 # NfsExportOptions.
565 &quot;A String&quot;,
566 ],
567 &quot;squashMode&quot;: &quot;A String&quot;, # Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
568 # or ROOT_SQUASH, for not allowing root access. The default is
569 # NO_ROOT_SQUASH.
570 },
571 ],
572 &quot;capacityGb&quot;: &quot;A String&quot;, # File share capacity in gigabytes (GB).
573 # Cloud Filestore defines 1 GB as 1024^3 bytes.
574 &quot;name&quot;: &quot;A String&quot;, # The name of the file share (must be 16 characters or less).
575 },
576 ],
577 &quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
578 &quot;etag&quot;: &quot;A String&quot;, # Server-specified ETag for the instance resource to prevent simultaneous
579 # updates from overwriting each other.
580 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the instance, in the format
581 # projects/{project_id}/locations/{location_id}/instances/{instance_id}.
582 &quot;networks&quot;: [ # VPC networks to which the instance is connected.
583 # For this version, only a single network is supported.
584 { # Network configuration for the instance.
585 &quot;reservedIpRange&quot;: &quot;A String&quot;, # A /29 CIDR block for Basic or a /23 CIDR block for High Scale in one of the
586 # [internal IP address
587 # ranges](https://www.arin.net/knowledge/address_filters.html) that
588 # identifies the range of IP addresses reserved for this instance. For
589 # example, 10.0.0.0/29 or 192.168.0.0/23. The range you specify can&#x27;t overlap
590 # with either existing subnets or assigned IP address ranges for other Cloud
591 # Filestore instances in the selected VPC network.
592 &quot;ipAddresses&quot;: [ # Output only. IPv4 addresses in the format
593 # {octet 1}.{octet 2}.{octet 3}.{octet 4} or IPv6 addresses in the format
594 # {block 1}:{block 2}:{block 3}:{block 4}:{block 5}:{block 6}:{block
595 # 7}:{block 8}.
596 &quot;A String&quot;,
597 ],
598 &quot;modes&quot;: [ # Internet protocol versions for which the instance has IP addresses
599 # assigned. For this version, only MODE_IPV4 is supported.
600 &quot;A String&quot;,
601 ],
602 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
603 # [VPC network](/compute/docs/networks-and-firewalls#networks) to which the
604 # instance is connected.
605 },
606 ],
607 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
608 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700609 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700610 }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700611
Dan O'Mearadd494642020-05-01 07:42:23 -0700612 updateMask: string, Required. Mask of fields to update. At least one path must be supplied in this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700613field. The elements of the repeated paths field may only include these
614fields:
Dan O'Mearadd494642020-05-01 07:42:23 -0700615
Bu Sun Kim65020912020-05-20 12:08:20 -0700616* &quot;description&quot;
617* &quot;file_shares&quot;
618* &quot;labels&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700619 x__xgafv: string, V1 error format.
620 Allowed values
621 1 - v1 error format
622 2 - v2 error format
623
624Returns:
625 An object of the form:
626
627 { # This resource represents a long-running operation that is the result of a
628 # network API call.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700629 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
630 # originally returns it. If you use the default HTTP mapping, the
631 # `name` should be a resource name ending with `operations/{unique_id}`.
632 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
633 # different programming environments, including REST APIs and RPC APIs. It is
634 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
635 # three pieces of data: error code, error message, and error details.
636 #
637 # You can find out more about this error model and how to work with it in the
638 # [API Design Guide](https://cloud.google.com/apis/design/errors).
639 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
640 # user-facing error message should be localized and sent in the
641 # google.rpc.Status.details field, or localized by the client.
642 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
643 # message types for APIs to use.
644 {
645 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
646 },
647 ],
648 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
649 },
650 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
651 # contains progress information and common metadata such as create time.
652 # Some services might not provide such metadata. Any method that returns a
653 # long-running operation should document the metadata type, if any.
654 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
655 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700656 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
657 # If `true`, the operation is completed, and either `error` or `response` is
658 # available.
659 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700660 # method returns no data on success, such as `Delete`, the response is
661 # `google.protobuf.Empty`. If the original method is standard
662 # `Get`/`Create`/`Update`, the response should be the resource. For other
663 # methods, the response should have the type `XxxResponse`, where `Xxx`
664 # is the original method name. For example, if the original method name
665 # is `TakeSnapshot()`, the inferred response type is
666 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700667 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700668 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700669 }</pre>
670</div>
671
672</body></html>