blob: 61e77b220f8c2e0cd20333ddb0ba0018f651f751 [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">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#create">create(parent, body=None, instanceId=None, x__xgafv=None)</a></code></p>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070082<p class="firstline">Creates an instance. When creating from a backup, the capacity of the new instance needs to be equal to or larger than the capacity of the backup (and also equal to or larger than the minimum capacity of the tier).</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070083<p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Deletes an instance.</p>
86<p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88<p class="firstline">Gets the details of a specific instance.</p>
89<p class="toc_element">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -080090 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091<p class="firstline">Lists all instances in a project for either a specified location or for all locations.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Updates the settings of a specific instance.</p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070098<p class="toc_element">
99 <code><a href="#restore">restore(name, body=None, x__xgafv=None)</a></code></p>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800100<p class="firstline">Restores an existing instance's file share from a backup. The capacity of the instance needs to be equal to or larger than the capacity of the backup (and also equal to or larger than the minimum capacity of the tier).</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700101<h3>Method Details</h3>
102<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700103 <code class="details" id="close">close()</code>
104 <pre>Close httplib2 connections.</pre>
105</div>
106
107<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 <code class="details" id="create">create(parent, body=None, instanceId=None, x__xgafv=None)</code>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700109 <pre>Creates an instance. When creating from a backup, the capacity of the new instance needs to be equal to or larger than the capacity of the backup (and also equal to or larger than the minimum capacity of the tier).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110
111Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700112 parent: string, Required. The instance&#x27;s project and location, in the format projects/{project_id}/locations/{location}. In Cloud Filestore, locations map to GCP zones, for example **us-west1-b**. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700113 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700114 The object takes the form of:
115
116{ # A Cloud Filestore instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800117 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
118 &quot;description&quot;: &quot;A String&quot;, # The description of the instance (2048 characters or less).
119 &quot;etag&quot;: &quot;A String&quot;, # Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800120 &quot;fileShares&quot;: [ # File system shares on the instance. For this version, only a single file share is supported.
121 { # File share configuration for the instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800122 &quot;capacityGb&quot;: &quot;A String&quot;, # File share capacity in gigabytes (GB). Cloud Filestore defines 1 GB as 1024^3 bytes.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800123 &quot;name&quot;: &quot;A String&quot;, # The name of the file share (must be 16 characters or less).
124 &quot;nfsExportOptions&quot;: [ # Nfs Export Options. There is a limit of 10 export options per file share.
125 { # NFS export options specifications.
126 &quot;accessMode&quot;: &quot;A String&quot;, # Either READ_ONLY, for allowing only read requests on the exported directory, or READ_WRITE, for allowing both read and write requests. The default is READ_WRITE.
127 &quot;anonGid&quot;: &quot;A String&quot;, # An integer representing the anonymous group id with a default value of 65534. Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
128 &quot;anonUid&quot;: &quot;A String&quot;, # An integer representing the anonymous user id with a default value of 65534. Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
129 &quot;ipRanges&quot;: [ # List of either an IPv4 addresses in the format {octet 1}.{octet 2}.{octet 3}.{octet 4} or CIDR ranges in the format {octet 1}.{octet 2}.{octet 3}.{octet 4}/{mask size} which may mount the file share. Overlapping IP ranges are not allowed, both within and across NfsExportOptions. An error will be returned. The limit is 64 IP ranges/addresses for each FileShareConfig among all NfsExportOptions.
130 &quot;A String&quot;,
131 ],
132 &quot;squashMode&quot;: &quot;A String&quot;, # Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access. The default is NO_ROOT_SQUASH.
133 },
134 ],
135 &quot;sourceBackup&quot;: &quot;A String&quot;, # The resource name of the backup, in the format projects/{project_id}/locations/{location_id}/backups/{backup_id}, that this file share has been restored from.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800136 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800137 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800138 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
139 &quot;a_key&quot;: &quot;A String&quot;,
140 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800141 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the instance, in the format projects/{project_id}/locations/{location_id}/instances/{instance_id}.
142 &quot;networks&quot;: [ # VPC networks to which the instance is connected. For this version, only a single network is supported.
143 { # Network configuration for the instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800144 &quot;ipAddresses&quot;: [ # Output only. IPv4 addresses in the format {octet 1}.{octet 2}.{octet 3}.{octet 4} or IPv6 addresses in the format {block 1}:{block 2}:{block 3}:{block 4}:{block 5}:{block 6}:{block 7}:{block 8}.
145 &quot;A String&quot;,
146 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800147 &quot;modes&quot;: [ # Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.
148 &quot;A String&quot;,
149 ],
150 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [VPC network](/compute/docs/networks-and-firewalls#networks) to which the instance is connected.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800151 &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 [internal IP address ranges](https://www.arin.net/knowledge/address_filters.html) that identifies the range of IP addresses reserved for this instance. For example, 10.0.0.0/29 or 192.168.0.0/23. The range you specify can&#x27;t overlap with either existing subnets or assigned IP address ranges for other Cloud Filestore instances in the selected VPC network.
152 },
153 ],
yoshi-code-botcec43932021-04-24 08:36:03 -0700154 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800155 &quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
156 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the instance state, if available.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800157 &quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800158}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700159
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700160 instanceId: string, Required. The ID of the instance to create. The ID must be unique within the specified project and location. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700161 x__xgafv: string, V1 error format.
162 Allowed values
163 1 - v1 error format
164 2 - v2 error format
165
166Returns:
167 An object of the form:
168
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700169 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800170 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
171 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
172 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
173 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
174 {
175 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
176 },
177 ],
178 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
179 },
180 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
181 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
182 },
183 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
184 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
185 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
186 },
187}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700188</div>
189
190<div class="method">
191 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
192 <pre>Deletes an instance.
193
194Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700195 name: string, Required. The instance resource name, in the format projects/{project_id}/locations/{location}/instances/{instance_id} (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700196 x__xgafv: string, V1 error format.
197 Allowed values
198 1 - v1 error format
199 2 - v2 error format
200
201Returns:
202 An object of the form:
203
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700204 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800205 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
206 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
207 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
208 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
209 {
210 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
211 },
212 ],
213 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
214 },
215 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
216 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
217 },
218 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
219 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
220 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
221 },
222}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700223</div>
224
225<div class="method">
226 <code class="details" id="get">get(name, x__xgafv=None)</code>
227 <pre>Gets the details of a specific instance.
228
229Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700230 name: string, Required. The instance resource name, in the format projects/{project_id}/locations/{location}/instances/{instance_id}. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700231 x__xgafv: string, V1 error format.
232 Allowed values
233 1 - v1 error format
234 2 - v2 error format
235
236Returns:
237 An object of the form:
238
239 { # A Cloud Filestore instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800240 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
241 &quot;description&quot;: &quot;A String&quot;, # The description of the instance (2048 characters or less).
242 &quot;etag&quot;: &quot;A String&quot;, # Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other.
243 &quot;fileShares&quot;: [ # File system shares on the instance. For this version, only a single file share is supported.
244 { # File share configuration for the instance.
245 &quot;capacityGb&quot;: &quot;A String&quot;, # File share capacity in gigabytes (GB). Cloud Filestore defines 1 GB as 1024^3 bytes.
246 &quot;name&quot;: &quot;A String&quot;, # The name of the file share (must be 16 characters or less).
247 &quot;nfsExportOptions&quot;: [ # Nfs Export Options. There is a limit of 10 export options per file share.
248 { # NFS export options specifications.
249 &quot;accessMode&quot;: &quot;A String&quot;, # Either READ_ONLY, for allowing only read requests on the exported directory, or READ_WRITE, for allowing both read and write requests. The default is READ_WRITE.
250 &quot;anonGid&quot;: &quot;A String&quot;, # An integer representing the anonymous group id with a default value of 65534. Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
251 &quot;anonUid&quot;: &quot;A String&quot;, # An integer representing the anonymous user id with a default value of 65534. Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
252 &quot;ipRanges&quot;: [ # List of either an IPv4 addresses in the format {octet 1}.{octet 2}.{octet 3}.{octet 4} or CIDR ranges in the format {octet 1}.{octet 2}.{octet 3}.{octet 4}/{mask size} which may mount the file share. Overlapping IP ranges are not allowed, both within and across NfsExportOptions. An error will be returned. The limit is 64 IP ranges/addresses for each FileShareConfig among all NfsExportOptions.
253 &quot;A String&quot;,
254 ],
255 &quot;squashMode&quot;: &quot;A String&quot;, # Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access. The default is NO_ROOT_SQUASH.
256 },
257 ],
258 &quot;sourceBackup&quot;: &quot;A String&quot;, # The resource name of the backup, in the format projects/{project_id}/locations/{location_id}/backups/{backup_id}, that this file share has been restored from.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800259 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800260 ],
261 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
262 &quot;a_key&quot;: &quot;A String&quot;,
263 },
264 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the instance, in the format projects/{project_id}/locations/{location_id}/instances/{instance_id}.
265 &quot;networks&quot;: [ # VPC networks to which the instance is connected. For this version, only a single network is supported.
266 { # Network configuration for the instance.
267 &quot;ipAddresses&quot;: [ # Output only. IPv4 addresses in the format {octet 1}.{octet 2}.{octet 3}.{octet 4} or IPv6 addresses in the format {block 1}:{block 2}:{block 3}:{block 4}:{block 5}:{block 6}:{block 7}:{block 8}.
268 &quot;A String&quot;,
269 ],
270 &quot;modes&quot;: [ # Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.
271 &quot;A String&quot;,
272 ],
273 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [VPC network](/compute/docs/networks-and-firewalls#networks) to which the instance is connected.
274 &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 [internal IP address ranges](https://www.arin.net/knowledge/address_filters.html) that identifies the range of IP addresses reserved for this instance. For example, 10.0.0.0/29 or 192.168.0.0/23. The range you specify can&#x27;t overlap with either existing subnets or assigned IP address ranges for other Cloud Filestore instances in the selected VPC network.
275 },
276 ],
yoshi-code-botcec43932021-04-24 08:36:03 -0700277 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800278 &quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
279 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the instance state, if available.
280 &quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
281}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700282</div>
283
284<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800285 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700286 <pre>Lists all instances in a project for either a specified location or for all locations.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700287
288Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700289 parent: string, Required. The project and location for which to retrieve instance information, in the format projects/{project_id}/locations/{location}. In Cloud Filestore, locations map to GCP zones, for example **us-west1-b**. To retrieve instance information for all locations, use &quot;-&quot; for the {location} value. (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700290 filter: string, List filter.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800291 orderBy: string, Sort results. Supported values are &quot;name&quot;, &quot;name desc&quot; or &quot;&quot; (unsorted).
292 pageSize: integer, The maximum number of items to return.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800293 pageToken: string, The next_page_token value to use if there are additional results to retrieve for this list request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700294 x__xgafv: string, V1 error format.
295 Allowed values
296 1 - v1 error format
297 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700298
299Returns:
300 An object of the form:
301
302 { # ListInstancesResponse is the result of ListInstancesRequest.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800303 &quot;instances&quot;: [ # A list of instances in the project for the specified location. If the {location} value in the request is &quot;-&quot;, the response contains a list of instances from all locations. If any location is unreachable, the response will only return instances in reachable locations and the &quot;unreachable&quot; field will be populated with a list of unreachable locations.
304 { # A Cloud Filestore instance.
305 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
306 &quot;description&quot;: &quot;A String&quot;, # The description of the instance (2048 characters or less).
307 &quot;etag&quot;: &quot;A String&quot;, # Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other.
308 &quot;fileShares&quot;: [ # File system shares on the instance. For this version, only a single file share is supported.
309 { # File share configuration for the instance.
310 &quot;capacityGb&quot;: &quot;A String&quot;, # File share capacity in gigabytes (GB). Cloud Filestore defines 1 GB as 1024^3 bytes.
311 &quot;name&quot;: &quot;A String&quot;, # The name of the file share (must be 16 characters or less).
312 &quot;nfsExportOptions&quot;: [ # Nfs Export Options. There is a limit of 10 export options per file share.
313 { # NFS export options specifications.
314 &quot;accessMode&quot;: &quot;A String&quot;, # Either READ_ONLY, for allowing only read requests on the exported directory, or READ_WRITE, for allowing both read and write requests. The default is READ_WRITE.
315 &quot;anonGid&quot;: &quot;A String&quot;, # An integer representing the anonymous group id with a default value of 65534. Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
316 &quot;anonUid&quot;: &quot;A String&quot;, # An integer representing the anonymous user id with a default value of 65534. Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
317 &quot;ipRanges&quot;: [ # List of either an IPv4 addresses in the format {octet 1}.{octet 2}.{octet 3}.{octet 4} or CIDR ranges in the format {octet 1}.{octet 2}.{octet 3}.{octet 4}/{mask size} which may mount the file share. Overlapping IP ranges are not allowed, both within and across NfsExportOptions. An error will be returned. The limit is 64 IP ranges/addresses for each FileShareConfig among all NfsExportOptions.
318 &quot;A String&quot;,
319 ],
320 &quot;squashMode&quot;: &quot;A String&quot;, # Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access. The default is NO_ROOT_SQUASH.
321 },
322 ],
323 &quot;sourceBackup&quot;: &quot;A String&quot;, # The resource name of the backup, in the format projects/{project_id}/locations/{location_id}/backups/{backup_id}, that this file share has been restored from.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700324 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800325 ],
326 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
327 &quot;a_key&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800328 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800329 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the instance, in the format projects/{project_id}/locations/{location_id}/instances/{instance_id}.
330 &quot;networks&quot;: [ # VPC networks to which the instance is connected. For this version, only a single network is supported.
331 { # Network configuration for the instance.
332 &quot;ipAddresses&quot;: [ # Output only. IPv4 addresses in the format {octet 1}.{octet 2}.{octet 3}.{octet 4} or IPv6 addresses in the format {block 1}:{block 2}:{block 3}:{block 4}:{block 5}:{block 6}:{block 7}:{block 8}.
333 &quot;A String&quot;,
334 ],
335 &quot;modes&quot;: [ # Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.
336 &quot;A String&quot;,
337 ],
338 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [VPC network](/compute/docs/networks-and-firewalls#networks) to which the instance is connected.
339 &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 [internal IP address ranges](https://www.arin.net/knowledge/address_filters.html) that identifies the range of IP addresses reserved for this instance. For example, 10.0.0.0/29 or 192.168.0.0/23. The range you specify can&#x27;t overlap with either existing subnets or assigned IP address ranges for other Cloud Filestore instances in the selected VPC network.
340 },
341 ],
yoshi-code-botcec43932021-04-24 08:36:03 -0700342 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800343 &quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
344 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the instance state, if available.
345 &quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
346 },
347 ],
348 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token you can use to retrieve the next page of results. Not returned if there are no more results in the list.
349 &quot;unreachable&quot;: [ # Locations that could not be reached.
350 &quot;A String&quot;,
351 ],
352}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700353</div>
354
355<div class="method">
356 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
357 <pre>Retrieves the next page of results.
358
359Args:
360 previous_request: The request for the previous page. (required)
361 previous_response: The response from the request for the previous page. (required)
362
363Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700364 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700365 page. Returns None if there are no more items in the collection.
366 </pre>
367</div>
368
369<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700370 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700371 <pre>Updates the settings of a specific instance.
372
373Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700374 name: string, Output only. The resource name of the instance, in the format projects/{project_id}/locations/{location_id}/instances/{instance_id}. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700375 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700376 The object takes the form of:
377
378{ # A Cloud Filestore instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800379 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
380 &quot;description&quot;: &quot;A String&quot;, # The description of the instance (2048 characters or less).
381 &quot;etag&quot;: &quot;A String&quot;, # Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800382 &quot;fileShares&quot;: [ # File system shares on the instance. For this version, only a single file share is supported.
383 { # File share configuration for the instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800384 &quot;capacityGb&quot;: &quot;A String&quot;, # File share capacity in gigabytes (GB). Cloud Filestore defines 1 GB as 1024^3 bytes.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800385 &quot;name&quot;: &quot;A String&quot;, # The name of the file share (must be 16 characters or less).
386 &quot;nfsExportOptions&quot;: [ # Nfs Export Options. There is a limit of 10 export options per file share.
387 { # NFS export options specifications.
388 &quot;accessMode&quot;: &quot;A String&quot;, # Either READ_ONLY, for allowing only read requests on the exported directory, or READ_WRITE, for allowing both read and write requests. The default is READ_WRITE.
389 &quot;anonGid&quot;: &quot;A String&quot;, # An integer representing the anonymous group id with a default value of 65534. Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
390 &quot;anonUid&quot;: &quot;A String&quot;, # An integer representing the anonymous user id with a default value of 65534. Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
391 &quot;ipRanges&quot;: [ # List of either an IPv4 addresses in the format {octet 1}.{octet 2}.{octet 3}.{octet 4} or CIDR ranges in the format {octet 1}.{octet 2}.{octet 3}.{octet 4}/{mask size} which may mount the file share. Overlapping IP ranges are not allowed, both within and across NfsExportOptions. An error will be returned. The limit is 64 IP ranges/addresses for each FileShareConfig among all NfsExportOptions.
392 &quot;A String&quot;,
393 ],
394 &quot;squashMode&quot;: &quot;A String&quot;, # Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access. The default is NO_ROOT_SQUASH.
395 },
396 ],
397 &quot;sourceBackup&quot;: &quot;A String&quot;, # The resource name of the backup, in the format projects/{project_id}/locations/{location_id}/backups/{backup_id}, that this file share has been restored from.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800398 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800399 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800400 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
401 &quot;a_key&quot;: &quot;A String&quot;,
402 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800403 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the instance, in the format projects/{project_id}/locations/{location_id}/instances/{instance_id}.
404 &quot;networks&quot;: [ # VPC networks to which the instance is connected. For this version, only a single network is supported.
405 { # Network configuration for the instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800406 &quot;ipAddresses&quot;: [ # Output only. IPv4 addresses in the format {octet 1}.{octet 2}.{octet 3}.{octet 4} or IPv6 addresses in the format {block 1}:{block 2}:{block 3}:{block 4}:{block 5}:{block 6}:{block 7}:{block 8}.
407 &quot;A String&quot;,
408 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800409 &quot;modes&quot;: [ # Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.
410 &quot;A String&quot;,
411 ],
412 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [VPC network](/compute/docs/networks-and-firewalls#networks) to which the instance is connected.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800413 &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 [internal IP address ranges](https://www.arin.net/knowledge/address_filters.html) that identifies the range of IP addresses reserved for this instance. For example, 10.0.0.0/29 or 192.168.0.0/23. The range you specify can&#x27;t overlap with either existing subnets or assigned IP address ranges for other Cloud Filestore instances in the selected VPC network.
414 },
415 ],
yoshi-code-botcec43932021-04-24 08:36:03 -0700416 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800417 &quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
418 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the instance state, if available.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800419 &quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800420}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700421
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700422 updateMask: string, Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields: * &quot;description&quot; * &quot;file_shares&quot; * &quot;labels&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700423 x__xgafv: string, V1 error format.
424 Allowed values
425 1 - v1 error format
426 2 - v2 error format
427
428Returns:
429 An object of the form:
430
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700431 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800432 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
433 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
434 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
435 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
436 {
437 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
438 },
439 ],
440 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
441 },
442 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
443 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
444 },
445 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
446 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
447 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
448 },
449}</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700450</div>
451
452<div class="method">
453 <code class="details" id="restore">restore(name, body=None, x__xgafv=None)</code>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800454 <pre>Restores an existing instance&#x27;s file share from a backup. The capacity of the instance needs to be equal to or larger than the capacity of the backup (and also equal to or larger than the minimum capacity of the tier).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700455
456Args:
457 name: string, Required. The resource name of the instance, in the format projects/{project_id}/locations/{location_id}/instances/{instance_id}. (required)
458 body: object, The request body.
459 The object takes the form of:
460
461{ # RestoreInstanceRequest restores an existing instances&#x27;s file share from a snapshot or backup.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800462 &quot;fileShare&quot;: &quot;A String&quot;, # Required. Name of the file share in the Cloud Filestore instance that the snapshot is being restored to.
463 &quot;sourceBackup&quot;: &quot;A String&quot;, # The resource name of the backup, in the format projects/{project_id}/locations/{location_id}/backups/{backup_id}.
464 &quot;sourceSnapshot&quot;: &quot;A String&quot;, # The resource name of the snapshot, in the format projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}.
465}
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700466
467 x__xgafv: string, V1 error format.
468 Allowed values
469 1 - v1 error format
470 2 - v2 error format
471
472Returns:
473 An object of the form:
474
475 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800476 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
477 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
478 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
479 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
480 {
481 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
482 },
483 ],
484 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
485 },
486 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
487 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
488 },
489 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
490 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
491 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
492 },
493}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700494</div>
495
496</body></html>