blob: a400863ada2c0b5de49fbd68453d0e192e1fb4fc [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">
yoshi-code-bota36e3b12021-07-27 00:20:26 -070078 <code><a href="file_v1beta1.projects.locations.instances.snapshots.html">snapshots()</a></code>
79</p>
80<p class="firstline">Returns the snapshots Resource.</p>
81
82<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070083 <code><a href="#close">close()</a></code></p>
84<p class="firstline">Close httplib2 connections.</p>
85<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070086 <code><a href="#create">create(parent, body=None, instanceId=None, x__xgafv=None)</a></code></p>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070087<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 -070088<p class="toc_element">
89 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
90<p class="firstline">Deletes an instance.</p>
91<p class="toc_element">
92 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
93<p class="firstline">Gets the details of a specific instance.</p>
94<p class="toc_element">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -080095 <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 -070096<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 -070097<p class="toc_element">
98 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
99<p class="firstline">Retrieves the next page of results.</p>
100<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700101 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700102<p class="firstline">Updates the settings of a specific instance.</p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700103<p class="toc_element">
104 <code><a href="#restore">restore(name, body=None, x__xgafv=None)</a></code></p>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800105<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 -0700106<h3>Method Details</h3>
107<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700108 <code class="details" id="close">close()</code>
109 <pre>Close httplib2 connections.</pre>
110</div>
111
112<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700113 <code class="details" id="create">create(parent, body=None, instanceId=None, x__xgafv=None)</code>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700114 <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 -0700115
116Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700117 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 -0700118 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700119 The object takes the form of:
120
121{ # A Cloud Filestore instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800122 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
123 &quot;description&quot;: &quot;A String&quot;, # The description of the instance (2048 characters or less).
124 &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 -0800125 &quot;fileShares&quot;: [ # File system shares on the instance. For this version, only a single file share is supported.
126 { # File share configuration for the instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800127 &quot;capacityGb&quot;: &quot;A String&quot;, # File share capacity in gigabytes (GB). Cloud Filestore defines 1 GB as 1024^3 bytes.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700128 &quot;name&quot;: &quot;A String&quot;, # The name of the file share (must be 32 characters or less for Enterprise and High Scale SSD tiers and 16 characters or less for all other tiers).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800129 &quot;nfsExportOptions&quot;: [ # Nfs Export Options. There is a limit of 10 export options per file share.
130 { # NFS export options specifications.
131 &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.
132 &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.
133 &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.
134 &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.
135 &quot;A String&quot;,
136 ],
137 &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.
138 },
139 ],
140 &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 -0800141 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800142 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800143 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
144 &quot;a_key&quot;: &quot;A String&quot;,
145 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800146 &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}.
147 &quot;networks&quot;: [ # VPC networks to which the instance is connected. For this version, only a single network is supported.
148 { # Network configuration for the instance.
yoshi-code-bot07708072021-07-20 00:20:24 -0700149 &quot;connectMode&quot;: &quot;A String&quot;, # The network connect mode of the Filestore instance. If not provided, the connect mode defaults to DIRECT_PEERING.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800150 &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}.
151 &quot;A String&quot;,
152 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800153 &quot;modes&quot;: [ # Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.
154 &quot;A String&quot;,
155 ],
156 &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-code-bot3e4b5db2021-08-10 00:22:29 -0700157 &quot;reservedIpRange&quot;: &quot;A String&quot;, # Optional, reserved_ip_range can have one of the following two types of values. * CIDR range value when using DIRECT_PEERING connect mode. * [Allocated IP address range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address) when using PRIVATE_SERVICE_ACCESS connect mode. When the name of an allocated IP address range is specified, it must be one of the ranges associated with the private service access connection. When specified as a direct CIDR value, it must be a /29 CIDR block for Basic tier or a /23 CIDR block for High Scale or Enterprise tier 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800158 },
159 ],
yoshi-code-botcec43932021-04-24 08:36:03 -0700160 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800161 &quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
162 &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 -0800163 &quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800164}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700165
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700166 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 -0700167 x__xgafv: string, V1 error format.
168 Allowed values
169 1 - v1 error format
170 2 - v2 error format
171
172Returns:
173 An object of the form:
174
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700175 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800176 &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.
177 &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.
178 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
179 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
180 {
181 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
182 },
183 ],
184 &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.
185 },
186 &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.
187 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
188 },
189 &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}`.
190 &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`.
191 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
192 },
193}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700194</div>
195
196<div class="method">
197 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
198 <pre>Deletes an instance.
199
200Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700201 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 -0700202 x__xgafv: string, V1 error format.
203 Allowed values
204 1 - v1 error format
205 2 - v2 error format
206
207Returns:
208 An object of the form:
209
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700210 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800211 &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.
212 &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.
213 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
214 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
215 {
216 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
217 },
218 ],
219 &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.
220 },
221 &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.
222 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
223 },
224 &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}`.
225 &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`.
226 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
227 },
228}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700229</div>
230
231<div class="method">
232 <code class="details" id="get">get(name, x__xgafv=None)</code>
233 <pre>Gets the details of a specific instance.
234
235Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700236 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 -0700237 x__xgafv: string, V1 error format.
238 Allowed values
239 1 - v1 error format
240 2 - v2 error format
241
242Returns:
243 An object of the form:
244
245 { # A Cloud Filestore instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800246 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
247 &quot;description&quot;: &quot;A String&quot;, # The description of the instance (2048 characters or less).
248 &quot;etag&quot;: &quot;A String&quot;, # Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other.
249 &quot;fileShares&quot;: [ # File system shares on the instance. For this version, only a single file share is supported.
250 { # File share configuration for the instance.
251 &quot;capacityGb&quot;: &quot;A String&quot;, # File share capacity in gigabytes (GB). Cloud Filestore defines 1 GB as 1024^3 bytes.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700252 &quot;name&quot;: &quot;A String&quot;, # The name of the file share (must be 32 characters or less for Enterprise and High Scale SSD tiers and 16 characters or less for all other tiers).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800253 &quot;nfsExportOptions&quot;: [ # Nfs Export Options. There is a limit of 10 export options per file share.
254 { # NFS export options specifications.
255 &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.
256 &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.
257 &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.
258 &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.
259 &quot;A String&quot;,
260 ],
261 &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.
262 },
263 ],
264 &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 -0800265 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800266 ],
267 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
268 &quot;a_key&quot;: &quot;A String&quot;,
269 },
270 &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}.
271 &quot;networks&quot;: [ # VPC networks to which the instance is connected. For this version, only a single network is supported.
272 { # Network configuration for the instance.
yoshi-code-bot07708072021-07-20 00:20:24 -0700273 &quot;connectMode&quot;: &quot;A String&quot;, # The network connect mode of the Filestore instance. If not provided, the connect mode defaults to DIRECT_PEERING.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800274 &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}.
275 &quot;A String&quot;,
276 ],
277 &quot;modes&quot;: [ # Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.
278 &quot;A String&quot;,
279 ],
280 &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-code-bot3e4b5db2021-08-10 00:22:29 -0700281 &quot;reservedIpRange&quot;: &quot;A String&quot;, # Optional, reserved_ip_range can have one of the following two types of values. * CIDR range value when using DIRECT_PEERING connect mode. * [Allocated IP address range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address) when using PRIVATE_SERVICE_ACCESS connect mode. When the name of an allocated IP address range is specified, it must be one of the ranges associated with the private service access connection. When specified as a direct CIDR value, it must be a /29 CIDR block for Basic tier or a /23 CIDR block for High Scale or Enterprise tier 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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800282 },
283 ],
yoshi-code-botcec43932021-04-24 08:36:03 -0700284 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800285 &quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
286 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the instance state, if available.
287 &quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
288}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700289</div>
290
291<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800292 <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 -0700293 <pre>Lists all instances in a project for either a specified location or for all locations.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700294
295Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700296 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 -0700297 filter: string, List filter.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800298 orderBy: string, Sort results. Supported values are &quot;name&quot;, &quot;name desc&quot; or &quot;&quot; (unsorted).
299 pageSize: integer, The maximum number of items to return.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800300 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 -0700301 x__xgafv: string, V1 error format.
302 Allowed values
303 1 - v1 error format
304 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700305
306Returns:
307 An object of the form:
308
309 { # ListInstancesResponse is the result of ListInstancesRequest.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800310 &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.
311 { # A Cloud Filestore instance.
312 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
313 &quot;description&quot;: &quot;A String&quot;, # The description of the instance (2048 characters or less).
314 &quot;etag&quot;: &quot;A String&quot;, # Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other.
315 &quot;fileShares&quot;: [ # File system shares on the instance. For this version, only a single file share is supported.
316 { # File share configuration for the instance.
317 &quot;capacityGb&quot;: &quot;A String&quot;, # File share capacity in gigabytes (GB). Cloud Filestore defines 1 GB as 1024^3 bytes.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700318 &quot;name&quot;: &quot;A String&quot;, # The name of the file share (must be 32 characters or less for Enterprise and High Scale SSD tiers and 16 characters or less for all other tiers).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800319 &quot;nfsExportOptions&quot;: [ # Nfs Export Options. There is a limit of 10 export options per file share.
320 { # NFS export options specifications.
321 &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.
322 &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.
323 &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.
324 &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.
325 &quot;A String&quot;,
326 ],
327 &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.
328 },
329 ],
330 &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 -0700331 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800332 ],
333 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
334 &quot;a_key&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800335 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800336 &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}.
337 &quot;networks&quot;: [ # VPC networks to which the instance is connected. For this version, only a single network is supported.
338 { # Network configuration for the instance.
yoshi-code-bot07708072021-07-20 00:20:24 -0700339 &quot;connectMode&quot;: &quot;A String&quot;, # The network connect mode of the Filestore instance. If not provided, the connect mode defaults to DIRECT_PEERING.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800340 &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}.
341 &quot;A String&quot;,
342 ],
343 &quot;modes&quot;: [ # Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.
344 &quot;A String&quot;,
345 ],
346 &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-code-bot3e4b5db2021-08-10 00:22:29 -0700347 &quot;reservedIpRange&quot;: &quot;A String&quot;, # Optional, reserved_ip_range can have one of the following two types of values. * CIDR range value when using DIRECT_PEERING connect mode. * [Allocated IP address range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address) when using PRIVATE_SERVICE_ACCESS connect mode. When the name of an allocated IP address range is specified, it must be one of the ranges associated with the private service access connection. When specified as a direct CIDR value, it must be a /29 CIDR block for Basic tier or a /23 CIDR block for High Scale or Enterprise tier 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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800348 },
349 ],
yoshi-code-botcec43932021-04-24 08:36:03 -0700350 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800351 &quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
352 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the instance state, if available.
353 &quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
354 },
355 ],
356 &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.
357 &quot;unreachable&quot;: [ # Locations that could not be reached.
358 &quot;A String&quot;,
359 ],
360}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700361</div>
362
363<div class="method">
364 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
365 <pre>Retrieves the next page of results.
366
367Args:
368 previous_request: The request for the previous page. (required)
369 previous_response: The response from the request for the previous page. (required)
370
371Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700372 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700373 page. Returns None if there are no more items in the collection.
374 </pre>
375</div>
376
377<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700378 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700379 <pre>Updates the settings of a specific instance.
380
381Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700382 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 -0700383 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700384 The object takes the form of:
385
386{ # A Cloud Filestore instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800387 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
388 &quot;description&quot;: &quot;A String&quot;, # The description of the instance (2048 characters or less).
389 &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 -0800390 &quot;fileShares&quot;: [ # File system shares on the instance. For this version, only a single file share is supported.
391 { # File share configuration for the instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800392 &quot;capacityGb&quot;: &quot;A String&quot;, # File share capacity in gigabytes (GB). Cloud Filestore defines 1 GB as 1024^3 bytes.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700393 &quot;name&quot;: &quot;A String&quot;, # The name of the file share (must be 32 characters or less for Enterprise and High Scale SSD tiers and 16 characters or less for all other tiers).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800394 &quot;nfsExportOptions&quot;: [ # Nfs Export Options. There is a limit of 10 export options per file share.
395 { # NFS export options specifications.
396 &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.
397 &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.
398 &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.
399 &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.
400 &quot;A String&quot;,
401 ],
402 &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.
403 },
404 ],
405 &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 -0800406 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800407 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800408 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
409 &quot;a_key&quot;: &quot;A String&quot;,
410 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800411 &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}.
412 &quot;networks&quot;: [ # VPC networks to which the instance is connected. For this version, only a single network is supported.
413 { # Network configuration for the instance.
yoshi-code-bot07708072021-07-20 00:20:24 -0700414 &quot;connectMode&quot;: &quot;A String&quot;, # The network connect mode of the Filestore instance. If not provided, the connect mode defaults to DIRECT_PEERING.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800415 &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}.
416 &quot;A String&quot;,
417 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800418 &quot;modes&quot;: [ # Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.
419 &quot;A String&quot;,
420 ],
421 &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-code-bot3e4b5db2021-08-10 00:22:29 -0700422 &quot;reservedIpRange&quot;: &quot;A String&quot;, # Optional, reserved_ip_range can have one of the following two types of values. * CIDR range value when using DIRECT_PEERING connect mode. * [Allocated IP address range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address) when using PRIVATE_SERVICE_ACCESS connect mode. When the name of an allocated IP address range is specified, it must be one of the ranges associated with the private service access connection. When specified as a direct CIDR value, it must be a /29 CIDR block for Basic tier or a /23 CIDR block for High Scale or Enterprise tier 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800423 },
424 ],
yoshi-code-botcec43932021-04-24 08:36:03 -0700425 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800426 &quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
427 &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 -0800428 &quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800429}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700430
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700431 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 -0700432 x__xgafv: string, V1 error format.
433 Allowed values
434 1 - v1 error format
435 2 - v2 error format
436
437Returns:
438 An object of the form:
439
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700440 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800441 &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.
442 &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.
443 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
444 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
445 {
446 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
447 },
448 ],
449 &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.
450 },
451 &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.
452 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
453 },
454 &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}`.
455 &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`.
456 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
457 },
458}</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700459</div>
460
461<div class="method">
462 <code class="details" id="restore">restore(name, body=None, x__xgafv=None)</code>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800463 <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 -0700464
465Args:
466 name: string, Required. The resource name of the instance, in the format projects/{project_id}/locations/{location_id}/instances/{instance_id}. (required)
467 body: object, The request body.
468 The object takes the form of:
469
470{ # RestoreInstanceRequest restores an existing instances&#x27;s file share from a snapshot or backup.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800471 &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.
472 &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}.
473 &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}.
474}
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700475
476 x__xgafv: string, V1 error format.
477 Allowed values
478 1 - v1 error format
479 2 - v2 error format
480
481Returns:
482 An object of the form:
483
484 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800485 &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.
486 &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.
487 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
488 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
489 {
490 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
491 },
492 ],
493 &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.
494 },
495 &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.
496 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
497 },
498 &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}`.
499 &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`.
500 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
501 },
502}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700503</div>
504
505</body></html>