Debian Codegraph @

docs/dyn/file_v1.projects.locations.instances.html

raw
1 <html><body>
2 <style>
3
4 body, 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
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, 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_v1.html">Cloud Filestore API</a> . <a href="file_v1.projects.html">projects</a> . <a href="file_v1.projects.locations.html">locations</a> . <a href="file_v1.projects.locations.instances.html">instances</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="file_v1.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">
83 <code><a href="#close">close()</a></code></p>
84 <p class="firstline">Close httplib2 connections.</p>
85 <p class="toc_element">
86 <code><a href="#create">create(parent, body=None, instanceId=None, x__xgafv=None)</a></code></p>
87 <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>
88 <p class="toc_element">
89 <code><a href="#delete">delete(name, force=None, 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">
95 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
96 <p class="firstline">Lists all instances in a project for either a specified location or for all locations.</p>
97 <p class="toc_element">
98 <code><a href="#list_next">list_next()</a></code></p>
99 <p class="firstline">Retrieves the next page of results.</p>
100 <p class="toc_element">
101 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
102 <p class="firstline">Updates the settings of a specific instance.</p>
103 <p class="toc_element">
104 <code><a href="#pauseReplica">pauseReplica(name, body=None, x__xgafv=None)</a></code></p>
105 <p class="firstline">Pause the standby instance (replica). WARNING: This operation makes the standby instance's NFS filesystem writable. Any data written to the standby instance while paused will be lost when the replica is resumed or promoted.</p>
106 <p class="toc_element">
107 <code><a href="#promoteReplica">promoteReplica(name, body=None, x__xgafv=None)</a></code></p>
108 <p class="firstline">Promote the standby instance (replica).</p>
109 <p class="toc_element">
110 <code><a href="#restore">restore(name, body=None, x__xgafv=None)</a></code></p>
111 <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>
112 <p class="toc_element">
113 <code><a href="#resumeReplica">resumeReplica(name, body=None, x__xgafv=None)</a></code></p>
114 <p class="firstline">Resume the standby instance (replica). WARNING: Any data written to the standby instance while paused will be lost when the replica is resumed.</p>
115 <p class="toc_element">
116 <code><a href="#revert">revert(name, body=None, x__xgafv=None)</a></code></p>
117 <p class="firstline">Revert an existing instance's file system to a specified snapshot.</p>
118 <h3>Method Details</h3>
119 <div class="method">
120 <code class="details" id="close">close()</code>
121 <pre>Close httplib2 connections.</pre>
122 </div>
123
124 <div class="method">
125 <code class="details" id="create">create(parent, body=None, instanceId=None, x__xgafv=None)</code>
126 <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).
127
128 Args:
129 parent: string, Required. The instance&#x27;s project and location, in the format `projects/{project_id}/locations/{location}`. In Filestore, locations map to Google Cloud zones, for example **us-west1-b**. (required)
130 body: object, The request body.
131 The object takes the form of:
132
133 { # A Filestore instance.
134 &quot;capacityStepSizeGb&quot;: &quot;A String&quot;, # Output only. The incremental increase or decrease in capacity, designated in some number of GB.
135 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
136 &quot;customPerformanceSupported&quot;: True or False, # Output only. Indicates whether this instance supports configuring its performance. If true, the user can configure the instance&#x27;s performance by using the &#x27;performance_config&#x27; field.
137 &quot;deletionProtectionEnabled&quot;: True or False, # Optional. Indicates whether the instance is protected against deletion.
138 &quot;deletionProtectionReason&quot;: &quot;A String&quot;, # Optional. The reason for enabling deletion protection.
139 &quot;description&quot;: &quot;A String&quot;, # The description of the instance (2048 characters or less).
140 &quot;directoryServices&quot;: { # Directory Services configuration for Kerberos-based authentication. # Optional. Directory Services configuration for Kerberos-based authentication. Should only be set if protocol is &quot;NFS_V4_1&quot;.
141 &quot;ldap&quot;: { # LdapConfig contains all the parameters for connecting to LDAP servers. # Configuration for LDAP servers.
142 &quot;domain&quot;: &quot;A String&quot;, # Required. The LDAP domain name in the format of `my-domain.com`.
143 &quot;groupsOu&quot;: &quot;A String&quot;, # Optional. The groups Organizational Unit (OU) is optional. This parameter is a hint to allow faster lookup in the LDAP namespace. In case that this parameter is not provided, Filestore instance will query the whole LDAP namespace.
144 &quot;servers&quot;: [ # Required. The servers names are used for specifying the LDAP servers names. The LDAP servers names can come with two formats: 1. DNS name, for example: `ldap.example1.com`, `ldap.example2.com`. 2. IP address, for example: `10.0.0.1`, `10.0.0.2`, `10.0.0.3`. All servers names must be in the same format: either all DNS names or all IP addresses.
145 &quot;A String&quot;,
146 ],
147 &quot;usersOu&quot;: &quot;A String&quot;, # Optional. The users Organizational Unit (OU) is optional. This parameter is a hint to allow faster lookup in the LDAP namespace. In case that this parameter is not provided, Filestore instance will query the whole LDAP namespace.
148 },
149 },
150 &quot;etag&quot;: &quot;A String&quot;, # Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other.
151 &quot;fileShares&quot;: [ # File system shares on the instance. For this version, only a single file share is supported.
152 { # File share configuration for the instance.
153 &quot;capacityGb&quot;: &quot;A String&quot;, # File share capacity in gigabytes (GB). Filestore defines 1 GB as 1024^3 bytes.
154 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the file share. Must use 1-16 characters for the basic service tier and 1-63 characters for all other service tiers. Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must start with a letter. Immutable.
155 &quot;nfsExportOptions&quot;: [ # Nfs Export Options. There is a limit of 10 export options per file share.
156 { # NFS export options specifications.
157 &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.
158 &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.
159 &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.
160 &quot;ipRanges&quot;: [ # List of either an IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format `{octet1}.{octet2}.{octet3}.{octet4}/{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.
161 &quot;A String&quot;,
162 ],
163 &quot;network&quot;: &quot;A String&quot;, # Optional. The source VPC network for ip_ranges. Required for instances using Private Service Connect, optional otherwise. If provided, must be the same network specified in the `NetworkConfig.network` field.
164 &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.
165 },
166 ],
167 &quot;sourceBackup&quot;: &quot;A String&quot;, # The resource name of the backup, in the format `projects/{project_number}/locations/{location_id}/backups/{backup_id}`, that this file share has been restored from.
168 &quot;sourceBackupdrBackup&quot;: &quot;A String&quot;, # The resource name of the BackupDR backup, in the format `projects/{project_id}/locations/{location_id}/backupVaults/{backupvault_id}/dataSources/{datasource_id}/backups/{backup_id}`,
169 },
170 ],
171 &quot;kmsKeyName&quot;: &quot;A String&quot;, # KMS key name used for data encryption.
172 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
173 &quot;a_key&quot;: &quot;A String&quot;,
174 },
175 &quot;maxCapacityGb&quot;: &quot;A String&quot;, # Output only. The maximum capacity of the instance in GB.
176 &quot;minCapacityGb&quot;: &quot;A String&quot;, # Output only. The minimum capacity of the instance in GB.
177 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the instance, in the format `projects/{project}/locations/{location}/instances/{instance}`.
178 &quot;networks&quot;: [ # VPC networks to which the instance is connected. For this version, only a single network is supported.
179 { # Network configuration for the instance.
180 &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.
181 &quot;ipAddresses&quot;: [ # Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or IPv6 addresses in the format `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`.
182 &quot;A String&quot;,
183 ],
184 &quot;modes&quot;: [ # Internet protocol versions for which the instance has IP addresses assigned.
185 &quot;A String&quot;,
186 ],
187 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the instance is connected.
188 &quot;pscConfig&quot;: { # Private Service Connect configuration. # Optional. Private Service Connect configuration. Should only be set when connect_mode is PRIVATE_SERVICE_CONNECT.
189 &quot;endpointProject&quot;: &quot;A String&quot;, # Optional. Consumer service project in which the Private Service Connect endpoint would be set up. This is optional, and only relevant in case the network is a shared VPC. If this is not specified, the endpoint would be setup in the VPC host project.
190 },
191 &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, a /24 CIDR block for High Scale tier, or a /26 CIDR block for Enterprise tier in one of the [internal IP address ranges](https://www.arin.net/reference/research/statistics/address_filters/) that identifies the range of IP addresses reserved for this instance. For example, 10.0.0.0/29, 192.168.0.0/24 or 192.168.0.0/26, respectively. The range you specify can&#x27;t overlap with either existing subnets or assigned IP address ranges for other Filestore instances in the selected VPC network.
192 },
193 ],
194 &quot;performanceConfig&quot;: { # Used for setting the performance configuration. If the user doesn&#x27;t specify PerformanceConfig, automatically provision the default performance settings as described in https://cloud.google.com/filestore/docs/performance. Larger instances will be linearly set to more IOPS. If the instance&#x27;s capacity is increased or decreased, its performance will be automatically adjusted upwards or downwards accordingly (respectively). # Optional. Used to configure performance.
195 &quot;fixedIops&quot;: { # Fixed IOPS (input/output operations per second) parameters. # Choose a fixed provisioned IOPS value for the instance, which will remain constant regardless of instance capacity. Value must be a multiple of 1000. If the chosen value is outside the supported range for the instance&#x27;s capacity during instance creation, instance creation will fail with an `InvalidArgument` error. Similarly, if an instance capacity update would result in a value outside the supported range, the update will fail with an `InvalidArgument` error.
196 &quot;maxIops&quot;: &quot;A String&quot;, # Required. Maximum IOPS.
197 },
198 &quot;iopsPerTb&quot;: { # IOPS per TB. Filestore defines TB as 1024^4 bytes (TiB). # Provision IOPS dynamically based on the capacity of the instance. Provisioned IOPS will be calculated by multiplying the capacity of the instance in TiB by the `iops_per_tb` value. For example, for a 2 TiB instance with an `iops_per_tb` value of 17000 the provisioned IOPS will be 34000. If the calculated value is outside the supported range for the instance&#x27;s capacity during instance creation, instance creation will fail with an `InvalidArgument` error. Similarly, if an instance capacity update would result in a value outside the supported range, the update will fail with an `InvalidArgument` error.
199 &quot;maxIopsPerTb&quot;: &quot;A String&quot;, # Required. Maximum IOPS per TiB.
200 },
201 },
202 &quot;performanceLimits&quot;: { # The enforced performance limits, calculated from the instance&#x27;s performance configuration. # Output only. Used for getting performance limits.
203 &quot;maxIops&quot;: &quot;A String&quot;, # Output only. The maximum IOPS.
204 &quot;maxReadIops&quot;: &quot;A String&quot;, # Output only. The maximum read IOPS.
205 &quot;maxReadThroughputBps&quot;: &quot;A String&quot;, # Output only. The maximum read throughput in bytes per second.
206 &quot;maxWriteIops&quot;: &quot;A String&quot;, # Output only. The maximum write IOPS.
207 &quot;maxWriteThroughputBps&quot;: &quot;A String&quot;, # Output only. The maximum write throughput in bytes per second.
208 },
209 &quot;protocol&quot;: &quot;A String&quot;, # Immutable. The protocol indicates the access protocol for all shares in the instance. This field is immutable and it cannot be changed after the instance has been created. Default value: `NFS_V3`.
210 &quot;replication&quot;: { # Optional. The configuration used to replicate an instance. # Optional. Replication configuration.
211 &quot;replicas&quot;: [ # Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.
212 { # Replica configuration for the instance.
213 &quot;lastActiveSyncTime&quot;: &quot;A String&quot;, # Output only. The timestamp of the latest replication snapshot taken on the active instance and is already replicated safely.
214 &quot;peerInstance&quot;: &quot;A String&quot;, # Optional. The name of the source instance for the replica, in the format `projects/{project}/locations/{location}/instances/{instance}`. This field is required when creating a replica.
215 &quot;state&quot;: &quot;A String&quot;, # Output only. The replica state.
216 &quot;stateReasons&quot;: [ # Output only. Additional information about the replication state, if available.
217 &quot;A String&quot;,
218 ],
219 &quot;stateUpdateTime&quot;: &quot;A String&quot;, # Output only. The time when the replica state was updated.
220 },
221 ],
222 &quot;role&quot;: &quot;A String&quot;, # Optional. The replication role. When creating a new replica, this field must be set to `STANDBY`.
223 },
224 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
225 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
226 &quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
227 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the instance state, if available.
228 &quot;suspensionReasons&quot;: [ # Output only. Field indicates all the reasons the instance is in &quot;SUSPENDED&quot; state.
229 &quot;A String&quot;,
230 ],
231 &quot;tags&quot;: { # Optional. Input only. Immutable. Tag key-value pairs bound to this resource. Each key must be a namespaced name and each value a short name. Example: &quot;123456789012/environment&quot; : &quot;production&quot;, &quot;123456789013/costCenter&quot; : &quot;marketing&quot; See the documentation for more information: - Namespaced name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key - Short name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_value
232 &quot;a_key&quot;: &quot;A String&quot;,
233 },
234 &quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
235 }
236
237 instanceId: string, Required. The name of the instance to create. The name must be unique for the specified project and location.
238 x__xgafv: string, V1 error format.
239 Allowed values
240 1 - v1 error format
241 2 - v2 error format
242
243 Returns:
244 An object of the form:
245
246 { # This resource represents a long-running operation that is the result of a network API call.
247 &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.
248 &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.
249 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
250 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
251 {
252 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
253 },
254 ],
255 &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.
256 },
257 &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.
258 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
259 },
260 &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}`.
261 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
262 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
263 },
264 }</pre>
265 </div>
266
267 <div class="method">
268 <code class="details" id="delete">delete(name, force=None, x__xgafv=None)</code>
269 <pre>Deletes an instance.
270
271 Args:
272 name: string, Required. The instance resource name, in the format `projects/{project_id}/locations/{location}/instances/{instance_id}` (required)
273 force: boolean, If set to true, all snapshots of the instance will also be deleted. (Otherwise, the request will only work if the instance has no snapshots.)
274 x__xgafv: string, V1 error format.
275 Allowed values
276 1 - v1 error format
277 2 - v2 error format
278
279 Returns:
280 An object of the form:
281
282 { # This resource represents a long-running operation that is the result of a network API call.
283 &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.
284 &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.
285 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
286 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
287 {
288 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
289 },
290 ],
291 &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.
292 },
293 &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.
294 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
295 },
296 &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}`.
297 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
298 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
299 },
300 }</pre>
301 </div>
302
303 <div class="method">
304 <code class="details" id="get">get(name, x__xgafv=None)</code>
305 <pre>Gets the details of a specific instance.
306
307 Args:
308 name: string, Required. The instance resource name, in the format `projects/{project_id}/locations/{location}/instances/{instance_id}`. (required)
309 x__xgafv: string, V1 error format.
310 Allowed values
311 1 - v1 error format
312 2 - v2 error format
313
314 Returns:
315 An object of the form:
316
317 { # A Filestore instance.
318 &quot;capacityStepSizeGb&quot;: &quot;A String&quot;, # Output only. The incremental increase or decrease in capacity, designated in some number of GB.
319 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
320 &quot;customPerformanceSupported&quot;: True or False, # Output only. Indicates whether this instance supports configuring its performance. If true, the user can configure the instance&#x27;s performance by using the &#x27;performance_config&#x27; field.
321 &quot;deletionProtectionEnabled&quot;: True or False, # Optional. Indicates whether the instance is protected against deletion.
322 &quot;deletionProtectionReason&quot;: &quot;A String&quot;, # Optional. The reason for enabling deletion protection.
323 &quot;description&quot;: &quot;A String&quot;, # The description of the instance (2048 characters or less).
324 &quot;directoryServices&quot;: { # Directory Services configuration for Kerberos-based authentication. # Optional. Directory Services configuration for Kerberos-based authentication. Should only be set if protocol is &quot;NFS_V4_1&quot;.
325 &quot;ldap&quot;: { # LdapConfig contains all the parameters for connecting to LDAP servers. # Configuration for LDAP servers.
326 &quot;domain&quot;: &quot;A String&quot;, # Required. The LDAP domain name in the format of `my-domain.com`.
327 &quot;groupsOu&quot;: &quot;A String&quot;, # Optional. The groups Organizational Unit (OU) is optional. This parameter is a hint to allow faster lookup in the LDAP namespace. In case that this parameter is not provided, Filestore instance will query the whole LDAP namespace.
328 &quot;servers&quot;: [ # Required. The servers names are used for specifying the LDAP servers names. The LDAP servers names can come with two formats: 1. DNS name, for example: `ldap.example1.com`, `ldap.example2.com`. 2. IP address, for example: `10.0.0.1`, `10.0.0.2`, `10.0.0.3`. All servers names must be in the same format: either all DNS names or all IP addresses.
329 &quot;A String&quot;,
330 ],
331 &quot;usersOu&quot;: &quot;A String&quot;, # Optional. The users Organizational Unit (OU) is optional. This parameter is a hint to allow faster lookup in the LDAP namespace. In case that this parameter is not provided, Filestore instance will query the whole LDAP namespace.
332 },
333 },
334 &quot;etag&quot;: &quot;A String&quot;, # Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other.
335 &quot;fileShares&quot;: [ # File system shares on the instance. For this version, only a single file share is supported.
336 { # File share configuration for the instance.
337 &quot;capacityGb&quot;: &quot;A String&quot;, # File share capacity in gigabytes (GB). Filestore defines 1 GB as 1024^3 bytes.
338 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the file share. Must use 1-16 characters for the basic service tier and 1-63 characters for all other service tiers. Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must start with a letter. Immutable.
339 &quot;nfsExportOptions&quot;: [ # Nfs Export Options. There is a limit of 10 export options per file share.
340 { # NFS export options specifications.
341 &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.
342 &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.
343 &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.
344 &quot;ipRanges&quot;: [ # List of either an IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format `{octet1}.{octet2}.{octet3}.{octet4}/{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.
345 &quot;A String&quot;,
346 ],
347 &quot;network&quot;: &quot;A String&quot;, # Optional. The source VPC network for ip_ranges. Required for instances using Private Service Connect, optional otherwise. If provided, must be the same network specified in the `NetworkConfig.network` field.
348 &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.
349 },
350 ],
351 &quot;sourceBackup&quot;: &quot;A String&quot;, # The resource name of the backup, in the format `projects/{project_number}/locations/{location_id}/backups/{backup_id}`, that this file share has been restored from.
352 &quot;sourceBackupdrBackup&quot;: &quot;A String&quot;, # The resource name of the BackupDR backup, in the format `projects/{project_id}/locations/{location_id}/backupVaults/{backupvault_id}/dataSources/{datasource_id}/backups/{backup_id}`,
353 },
354 ],
355 &quot;kmsKeyName&quot;: &quot;A String&quot;, # KMS key name used for data encryption.
356 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
357 &quot;a_key&quot;: &quot;A String&quot;,
358 },
359 &quot;maxCapacityGb&quot;: &quot;A String&quot;, # Output only. The maximum capacity of the instance in GB.
360 &quot;minCapacityGb&quot;: &quot;A String&quot;, # Output only. The minimum capacity of the instance in GB.
361 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the instance, in the format `projects/{project}/locations/{location}/instances/{instance}`.
362 &quot;networks&quot;: [ # VPC networks to which the instance is connected. For this version, only a single network is supported.
363 { # Network configuration for the instance.
364 &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.
365 &quot;ipAddresses&quot;: [ # Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or IPv6 addresses in the format `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`.
366 &quot;A String&quot;,
367 ],
368 &quot;modes&quot;: [ # Internet protocol versions for which the instance has IP addresses assigned.
369 &quot;A String&quot;,
370 ],
371 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the instance is connected.
372 &quot;pscConfig&quot;: { # Private Service Connect configuration. # Optional. Private Service Connect configuration. Should only be set when connect_mode is PRIVATE_SERVICE_CONNECT.
373 &quot;endpointProject&quot;: &quot;A String&quot;, # Optional. Consumer service project in which the Private Service Connect endpoint would be set up. This is optional, and only relevant in case the network is a shared VPC. If this is not specified, the endpoint would be setup in the VPC host project.
374 },
375 &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, a /24 CIDR block for High Scale tier, or a /26 CIDR block for Enterprise tier in one of the [internal IP address ranges](https://www.arin.net/reference/research/statistics/address_filters/) that identifies the range of IP addresses reserved for this instance. For example, 10.0.0.0/29, 192.168.0.0/24 or 192.168.0.0/26, respectively. The range you specify can&#x27;t overlap with either existing subnets or assigned IP address ranges for other Filestore instances in the selected VPC network.
376 },
377 ],
378 &quot;performanceConfig&quot;: { # Used for setting the performance configuration. If the user doesn&#x27;t specify PerformanceConfig, automatically provision the default performance settings as described in https://cloud.google.com/filestore/docs/performance. Larger instances will be linearly set to more IOPS. If the instance&#x27;s capacity is increased or decreased, its performance will be automatically adjusted upwards or downwards accordingly (respectively). # Optional. Used to configure performance.
379 &quot;fixedIops&quot;: { # Fixed IOPS (input/output operations per second) parameters. # Choose a fixed provisioned IOPS value for the instance, which will remain constant regardless of instance capacity. Value must be a multiple of 1000. If the chosen value is outside the supported range for the instance&#x27;s capacity during instance creation, instance creation will fail with an `InvalidArgument` error. Similarly, if an instance capacity update would result in a value outside the supported range, the update will fail with an `InvalidArgument` error.
380 &quot;maxIops&quot;: &quot;A String&quot;, # Required. Maximum IOPS.
381 },
382 &quot;iopsPerTb&quot;: { # IOPS per TB. Filestore defines TB as 1024^4 bytes (TiB). # Provision IOPS dynamically based on the capacity of the instance. Provisioned IOPS will be calculated by multiplying the capacity of the instance in TiB by the `iops_per_tb` value. For example, for a 2 TiB instance with an `iops_per_tb` value of 17000 the provisioned IOPS will be 34000. If the calculated value is outside the supported range for the instance&#x27;s capacity during instance creation, instance creation will fail with an `InvalidArgument` error. Similarly, if an instance capacity update would result in a value outside the supported range, the update will fail with an `InvalidArgument` error.
383 &quot;maxIopsPerTb&quot;: &quot;A String&quot;, # Required. Maximum IOPS per TiB.
384 },
385 },
386 &quot;performanceLimits&quot;: { # The enforced performance limits, calculated from the instance&#x27;s performance configuration. # Output only. Used for getting performance limits.
387 &quot;maxIops&quot;: &quot;A String&quot;, # Output only. The maximum IOPS.
388 &quot;maxReadIops&quot;: &quot;A String&quot;, # Output only. The maximum read IOPS.
389 &quot;maxReadThroughputBps&quot;: &quot;A String&quot;, # Output only. The maximum read throughput in bytes per second.
390 &quot;maxWriteIops&quot;: &quot;A String&quot;, # Output only. The maximum write IOPS.
391 &quot;maxWriteThroughputBps&quot;: &quot;A String&quot;, # Output only. The maximum write throughput in bytes per second.
392 },
393 &quot;protocol&quot;: &quot;A String&quot;, # Immutable. The protocol indicates the access protocol for all shares in the instance. This field is immutable and it cannot be changed after the instance has been created. Default value: `NFS_V3`.
394 &quot;replication&quot;: { # Optional. The configuration used to replicate an instance. # Optional. Replication configuration.
395 &quot;replicas&quot;: [ # Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.
396 { # Replica configuration for the instance.
397 &quot;lastActiveSyncTime&quot;: &quot;A String&quot;, # Output only. The timestamp of the latest replication snapshot taken on the active instance and is already replicated safely.
398 &quot;peerInstance&quot;: &quot;A String&quot;, # Optional. The name of the source instance for the replica, in the format `projects/{project}/locations/{location}/instances/{instance}`. This field is required when creating a replica.
399 &quot;state&quot;: &quot;A String&quot;, # Output only. The replica state.
400 &quot;stateReasons&quot;: [ # Output only. Additional information about the replication state, if available.
401 &quot;A String&quot;,
402 ],
403 &quot;stateUpdateTime&quot;: &quot;A String&quot;, # Output only. The time when the replica state was updated.
404 },
405 ],
406 &quot;role&quot;: &quot;A String&quot;, # Optional. The replication role. When creating a new replica, this field must be set to `STANDBY`.
407 },
408 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
409 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
410 &quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
411 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the instance state, if available.
412 &quot;suspensionReasons&quot;: [ # Output only. Field indicates all the reasons the instance is in &quot;SUSPENDED&quot; state.
413 &quot;A String&quot;,
414 ],
415 &quot;tags&quot;: { # Optional. Input only. Immutable. Tag key-value pairs bound to this resource. Each key must be a namespaced name and each value a short name. Example: &quot;123456789012/environment&quot; : &quot;production&quot;, &quot;123456789013/costCenter&quot; : &quot;marketing&quot; See the documentation for more information: - Namespaced name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key - Short name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_value
416 &quot;a_key&quot;: &quot;A String&quot;,
417 },
418 &quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
419 }</pre>
420 </div>
421
422 <div class="method">
423 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
424 <pre>Lists all instances in a project for either a specified location or for all locations.
425
426 Args:
427 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 Google Cloud zones, for example **us-west1-b**. To retrieve instance information for all locations, use &quot;-&quot; for the `{location}` value. (required)
428 filter: string, List filter.
429 orderBy: string, Sort results. Supported values are &quot;name&quot;, &quot;name desc&quot; or &quot;&quot; (unsorted).
430 pageSize: integer, The maximum number of items to return.
431 pageToken: string, The next_page_token value to use if there are additional results to retrieve for this list request.
432 x__xgafv: string, V1 error format.
433 Allowed values
434 1 - v1 error format
435 2 - v2 error format
436
437 Returns:
438 An object of the form:
439
440 { # ListInstancesResponse is the result of ListInstancesRequest.
441 &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.
442 { # A Filestore instance.
443 &quot;capacityStepSizeGb&quot;: &quot;A String&quot;, # Output only. The incremental increase or decrease in capacity, designated in some number of GB.
444 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
445 &quot;customPerformanceSupported&quot;: True or False, # Output only. Indicates whether this instance supports configuring its performance. If true, the user can configure the instance&#x27;s performance by using the &#x27;performance_config&#x27; field.
446 &quot;deletionProtectionEnabled&quot;: True or False, # Optional. Indicates whether the instance is protected against deletion.
447 &quot;deletionProtectionReason&quot;: &quot;A String&quot;, # Optional. The reason for enabling deletion protection.
448 &quot;description&quot;: &quot;A String&quot;, # The description of the instance (2048 characters or less).
449 &quot;directoryServices&quot;: { # Directory Services configuration for Kerberos-based authentication. # Optional. Directory Services configuration for Kerberos-based authentication. Should only be set if protocol is &quot;NFS_V4_1&quot;.
450 &quot;ldap&quot;: { # LdapConfig contains all the parameters for connecting to LDAP servers. # Configuration for LDAP servers.
451 &quot;domain&quot;: &quot;A String&quot;, # Required. The LDAP domain name in the format of `my-domain.com`.
452 &quot;groupsOu&quot;: &quot;A String&quot;, # Optional. The groups Organizational Unit (OU) is optional. This parameter is a hint to allow faster lookup in the LDAP namespace. In case that this parameter is not provided, Filestore instance will query the whole LDAP namespace.
453 &quot;servers&quot;: [ # Required. The servers names are used for specifying the LDAP servers names. The LDAP servers names can come with two formats: 1. DNS name, for example: `ldap.example1.com`, `ldap.example2.com`. 2. IP address, for example: `10.0.0.1`, `10.0.0.2`, `10.0.0.3`. All servers names must be in the same format: either all DNS names or all IP addresses.
454 &quot;A String&quot;,
455 ],
456 &quot;usersOu&quot;: &quot;A String&quot;, # Optional. The users Organizational Unit (OU) is optional. This parameter is a hint to allow faster lookup in the LDAP namespace. In case that this parameter is not provided, Filestore instance will query the whole LDAP namespace.
457 },
458 },
459 &quot;etag&quot;: &quot;A String&quot;, # Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other.
460 &quot;fileShares&quot;: [ # File system shares on the instance. For this version, only a single file share is supported.
461 { # File share configuration for the instance.
462 &quot;capacityGb&quot;: &quot;A String&quot;, # File share capacity in gigabytes (GB). Filestore defines 1 GB as 1024^3 bytes.
463 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the file share. Must use 1-16 characters for the basic service tier and 1-63 characters for all other service tiers. Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must start with a letter. Immutable.
464 &quot;nfsExportOptions&quot;: [ # Nfs Export Options. There is a limit of 10 export options per file share.
465 { # NFS export options specifications.
466 &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.
467 &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.
468 &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.
469 &quot;ipRanges&quot;: [ # List of either an IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format `{octet1}.{octet2}.{octet3}.{octet4}/{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.
470 &quot;A String&quot;,
471 ],
472 &quot;network&quot;: &quot;A String&quot;, # Optional. The source VPC network for ip_ranges. Required for instances using Private Service Connect, optional otherwise. If provided, must be the same network specified in the `NetworkConfig.network` field.
473 &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.
474 },
475 ],
476 &quot;sourceBackup&quot;: &quot;A String&quot;, # The resource name of the backup, in the format `projects/{project_number}/locations/{location_id}/backups/{backup_id}`, that this file share has been restored from.
477 &quot;sourceBackupdrBackup&quot;: &quot;A String&quot;, # The resource name of the BackupDR backup, in the format `projects/{project_id}/locations/{location_id}/backupVaults/{backupvault_id}/dataSources/{datasource_id}/backups/{backup_id}`,
478 },
479 ],
480 &quot;kmsKeyName&quot;: &quot;A String&quot;, # KMS key name used for data encryption.
481 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
482 &quot;a_key&quot;: &quot;A String&quot;,
483 },
484 &quot;maxCapacityGb&quot;: &quot;A String&quot;, # Output only. The maximum capacity of the instance in GB.
485 &quot;minCapacityGb&quot;: &quot;A String&quot;, # Output only. The minimum capacity of the instance in GB.
486 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the instance, in the format `projects/{project}/locations/{location}/instances/{instance}`.
487 &quot;networks&quot;: [ # VPC networks to which the instance is connected. For this version, only a single network is supported.
488 { # Network configuration for the instance.
489 &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.
490 &quot;ipAddresses&quot;: [ # Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or IPv6 addresses in the format `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`.
491 &quot;A String&quot;,
492 ],
493 &quot;modes&quot;: [ # Internet protocol versions for which the instance has IP addresses assigned.
494 &quot;A String&quot;,
495 ],
496 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the instance is connected.
497 &quot;pscConfig&quot;: { # Private Service Connect configuration. # Optional. Private Service Connect configuration. Should only be set when connect_mode is PRIVATE_SERVICE_CONNECT.
498 &quot;endpointProject&quot;: &quot;A String&quot;, # Optional. Consumer service project in which the Private Service Connect endpoint would be set up. This is optional, and only relevant in case the network is a shared VPC. If this is not specified, the endpoint would be setup in the VPC host project.
499 },
500 &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, a /24 CIDR block for High Scale tier, or a /26 CIDR block for Enterprise tier in one of the [internal IP address ranges](https://www.arin.net/reference/research/statistics/address_filters/) that identifies the range of IP addresses reserved for this instance. For example, 10.0.0.0/29, 192.168.0.0/24 or 192.168.0.0/26, respectively. The range you specify can&#x27;t overlap with either existing subnets or assigned IP address ranges for other Filestore instances in the selected VPC network.
501 },
502 ],
503 &quot;performanceConfig&quot;: { # Used for setting the performance configuration. If the user doesn&#x27;t specify PerformanceConfig, automatically provision the default performance settings as described in https://cloud.google.com/filestore/docs/performance. Larger instances will be linearly set to more IOPS. If the instance&#x27;s capacity is increased or decreased, its performance will be automatically adjusted upwards or downwards accordingly (respectively). # Optional. Used to configure performance.
504 &quot;fixedIops&quot;: { # Fixed IOPS (input/output operations per second) parameters. # Choose a fixed provisioned IOPS value for the instance, which will remain constant regardless of instance capacity. Value must be a multiple of 1000. If the chosen value is outside the supported range for the instance&#x27;s capacity during instance creation, instance creation will fail with an `InvalidArgument` error. Similarly, if an instance capacity update would result in a value outside the supported range, the update will fail with an `InvalidArgument` error.
505 &quot;maxIops&quot;: &quot;A String&quot;, # Required. Maximum IOPS.
506 },
507 &quot;iopsPerTb&quot;: { # IOPS per TB. Filestore defines TB as 1024^4 bytes (TiB). # Provision IOPS dynamically based on the capacity of the instance. Provisioned IOPS will be calculated by multiplying the capacity of the instance in TiB by the `iops_per_tb` value. For example, for a 2 TiB instance with an `iops_per_tb` value of 17000 the provisioned IOPS will be 34000. If the calculated value is outside the supported range for the instance&#x27;s capacity during instance creation, instance creation will fail with an `InvalidArgument` error. Similarly, if an instance capacity update would result in a value outside the supported range, the update will fail with an `InvalidArgument` error.
508 &quot;maxIopsPerTb&quot;: &quot;A String&quot;, # Required. Maximum IOPS per TiB.
509 },
510 },
511 &quot;performanceLimits&quot;: { # The enforced performance limits, calculated from the instance&#x27;s performance configuration. # Output only. Used for getting performance limits.
512 &quot;maxIops&quot;: &quot;A String&quot;, # Output only. The maximum IOPS.
513 &quot;maxReadIops&quot;: &quot;A String&quot;, # Output only. The maximum read IOPS.
514 &quot;maxReadThroughputBps&quot;: &quot;A String&quot;, # Output only. The maximum read throughput in bytes per second.
515 &quot;maxWriteIops&quot;: &quot;A String&quot;, # Output only. The maximum write IOPS.
516 &quot;maxWriteThroughputBps&quot;: &quot;A String&quot;, # Output only. The maximum write throughput in bytes per second.
517 },
518 &quot;protocol&quot;: &quot;A String&quot;, # Immutable. The protocol indicates the access protocol for all shares in the instance. This field is immutable and it cannot be changed after the instance has been created. Default value: `NFS_V3`.
519 &quot;replication&quot;: { # Optional. The configuration used to replicate an instance. # Optional. Replication configuration.
520 &quot;replicas&quot;: [ # Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.
521 { # Replica configuration for the instance.
522 &quot;lastActiveSyncTime&quot;: &quot;A String&quot;, # Output only. The timestamp of the latest replication snapshot taken on the active instance and is already replicated safely.
523 &quot;peerInstance&quot;: &quot;A String&quot;, # Optional. The name of the source instance for the replica, in the format `projects/{project}/locations/{location}/instances/{instance}`. This field is required when creating a replica.
524 &quot;state&quot;: &quot;A String&quot;, # Output only. The replica state.
525 &quot;stateReasons&quot;: [ # Output only. Additional information about the replication state, if available.
526 &quot;A String&quot;,
527 ],
528 &quot;stateUpdateTime&quot;: &quot;A String&quot;, # Output only. The time when the replica state was updated.
529 },
530 ],
531 &quot;role&quot;: &quot;A String&quot;, # Optional. The replication role. When creating a new replica, this field must be set to `STANDBY`.
532 },
533 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
534 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
535 &quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
536 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the instance state, if available.
537 &quot;suspensionReasons&quot;: [ # Output only. Field indicates all the reasons the instance is in &quot;SUSPENDED&quot; state.
538 &quot;A String&quot;,
539 ],
540 &quot;tags&quot;: { # Optional. Input only. Immutable. Tag key-value pairs bound to this resource. Each key must be a namespaced name and each value a short name. Example: &quot;123456789012/environment&quot; : &quot;production&quot;, &quot;123456789013/costCenter&quot; : &quot;marketing&quot; See the documentation for more information: - Namespaced name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key - Short name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_value
541 &quot;a_key&quot;: &quot;A String&quot;,
542 },
543 &quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
544 },
545 ],
546 &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.
547 &quot;unreachable&quot;: [ # Unordered list. Locations that could not be reached.
548 &quot;A String&quot;,
549 ],
550 }</pre>
551 </div>
552
553 <div class="method">
554 <code class="details" id="list_next">list_next()</code>
555 <pre>Retrieves the next page of results.
556
557 Args:
558 previous_request: The request for the previous page. (required)
559 previous_response: The response from the request for the previous page. (required)
560
561 Returns:
562 A request object that you can call &#x27;execute()&#x27; on to request the next
563 page. Returns None if there are no more items in the collection.
564 </pre>
565 </div>
566
567 <div class="method">
568 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
569 <pre>Updates the settings of a specific instance.
570
571 Args:
572 name: string, Output only. The resource name of the instance, in the format `projects/{project}/locations/{location}/instances/{instance}`. (required)
573 body: object, The request body.
574 The object takes the form of:
575
576 { # A Filestore instance.
577 &quot;capacityStepSizeGb&quot;: &quot;A String&quot;, # Output only. The incremental increase or decrease in capacity, designated in some number of GB.
578 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
579 &quot;customPerformanceSupported&quot;: True or False, # Output only. Indicates whether this instance supports configuring its performance. If true, the user can configure the instance&#x27;s performance by using the &#x27;performance_config&#x27; field.
580 &quot;deletionProtectionEnabled&quot;: True or False, # Optional. Indicates whether the instance is protected against deletion.
581 &quot;deletionProtectionReason&quot;: &quot;A String&quot;, # Optional. The reason for enabling deletion protection.
582 &quot;description&quot;: &quot;A String&quot;, # The description of the instance (2048 characters or less).
583 &quot;directoryServices&quot;: { # Directory Services configuration for Kerberos-based authentication. # Optional. Directory Services configuration for Kerberos-based authentication. Should only be set if protocol is &quot;NFS_V4_1&quot;.
584 &quot;ldap&quot;: { # LdapConfig contains all the parameters for connecting to LDAP servers. # Configuration for LDAP servers.
585 &quot;domain&quot;: &quot;A String&quot;, # Required. The LDAP domain name in the format of `my-domain.com`.
586 &quot;groupsOu&quot;: &quot;A String&quot;, # Optional. The groups Organizational Unit (OU) is optional. This parameter is a hint to allow faster lookup in the LDAP namespace. In case that this parameter is not provided, Filestore instance will query the whole LDAP namespace.
587 &quot;servers&quot;: [ # Required. The servers names are used for specifying the LDAP servers names. The LDAP servers names can come with two formats: 1. DNS name, for example: `ldap.example1.com`, `ldap.example2.com`. 2. IP address, for example: `10.0.0.1`, `10.0.0.2`, `10.0.0.3`. All servers names must be in the same format: either all DNS names or all IP addresses.
588 &quot;A String&quot;,
589 ],
590 &quot;usersOu&quot;: &quot;A String&quot;, # Optional. The users Organizational Unit (OU) is optional. This parameter is a hint to allow faster lookup in the LDAP namespace. In case that this parameter is not provided, Filestore instance will query the whole LDAP namespace.
591 },
592 },
593 &quot;etag&quot;: &quot;A String&quot;, # Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other.
594 &quot;fileShares&quot;: [ # File system shares on the instance. For this version, only a single file share is supported.
595 { # File share configuration for the instance.
596 &quot;capacityGb&quot;: &quot;A String&quot;, # File share capacity in gigabytes (GB). Filestore defines 1 GB as 1024^3 bytes.
597 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the file share. Must use 1-16 characters for the basic service tier and 1-63 characters for all other service tiers. Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must start with a letter. Immutable.
598 &quot;nfsExportOptions&quot;: [ # Nfs Export Options. There is a limit of 10 export options per file share.
599 { # NFS export options specifications.
600 &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.
601 &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.
602 &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.
603 &quot;ipRanges&quot;: [ # List of either an IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format `{octet1}.{octet2}.{octet3}.{octet4}/{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.
604 &quot;A String&quot;,
605 ],
606 &quot;network&quot;: &quot;A String&quot;, # Optional. The source VPC network for ip_ranges. Required for instances using Private Service Connect, optional otherwise. If provided, must be the same network specified in the `NetworkConfig.network` field.
607 &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.
608 },
609 ],
610 &quot;sourceBackup&quot;: &quot;A String&quot;, # The resource name of the backup, in the format `projects/{project_number}/locations/{location_id}/backups/{backup_id}`, that this file share has been restored from.
611 &quot;sourceBackupdrBackup&quot;: &quot;A String&quot;, # The resource name of the BackupDR backup, in the format `projects/{project_id}/locations/{location_id}/backupVaults/{backupvault_id}/dataSources/{datasource_id}/backups/{backup_id}`,
612 },
613 ],
614 &quot;kmsKeyName&quot;: &quot;A String&quot;, # KMS key name used for data encryption.
615 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
616 &quot;a_key&quot;: &quot;A String&quot;,
617 },
618 &quot;maxCapacityGb&quot;: &quot;A String&quot;, # Output only. The maximum capacity of the instance in GB.
619 &quot;minCapacityGb&quot;: &quot;A String&quot;, # Output only. The minimum capacity of the instance in GB.
620 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the instance, in the format `projects/{project}/locations/{location}/instances/{instance}`.
621 &quot;networks&quot;: [ # VPC networks to which the instance is connected. For this version, only a single network is supported.
622 { # Network configuration for the instance.
623 &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.
624 &quot;ipAddresses&quot;: [ # Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or IPv6 addresses in the format `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`.
625 &quot;A String&quot;,
626 ],
627 &quot;modes&quot;: [ # Internet protocol versions for which the instance has IP addresses assigned.
628 &quot;A String&quot;,
629 ],
630 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the instance is connected.
631 &quot;pscConfig&quot;: { # Private Service Connect configuration. # Optional. Private Service Connect configuration. Should only be set when connect_mode is PRIVATE_SERVICE_CONNECT.
632 &quot;endpointProject&quot;: &quot;A String&quot;, # Optional. Consumer service project in which the Private Service Connect endpoint would be set up. This is optional, and only relevant in case the network is a shared VPC. If this is not specified, the endpoint would be setup in the VPC host project.
633 },
634 &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, a /24 CIDR block for High Scale tier, or a /26 CIDR block for Enterprise tier in one of the [internal IP address ranges](https://www.arin.net/reference/research/statistics/address_filters/) that identifies the range of IP addresses reserved for this instance. For example, 10.0.0.0/29, 192.168.0.0/24 or 192.168.0.0/26, respectively. The range you specify can&#x27;t overlap with either existing subnets or assigned IP address ranges for other Filestore instances in the selected VPC network.
635 },
636 ],
637 &quot;performanceConfig&quot;: { # Used for setting the performance configuration. If the user doesn&#x27;t specify PerformanceConfig, automatically provision the default performance settings as described in https://cloud.google.com/filestore/docs/performance. Larger instances will be linearly set to more IOPS. If the instance&#x27;s capacity is increased or decreased, its performance will be automatically adjusted upwards or downwards accordingly (respectively). # Optional. Used to configure performance.
638 &quot;fixedIops&quot;: { # Fixed IOPS (input/output operations per second) parameters. # Choose a fixed provisioned IOPS value for the instance, which will remain constant regardless of instance capacity. Value must be a multiple of 1000. If the chosen value is outside the supported range for the instance&#x27;s capacity during instance creation, instance creation will fail with an `InvalidArgument` error. Similarly, if an instance capacity update would result in a value outside the supported range, the update will fail with an `InvalidArgument` error.
639 &quot;maxIops&quot;: &quot;A String&quot;, # Required. Maximum IOPS.
640 },
641 &quot;iopsPerTb&quot;: { # IOPS per TB. Filestore defines TB as 1024^4 bytes (TiB). # Provision IOPS dynamically based on the capacity of the instance. Provisioned IOPS will be calculated by multiplying the capacity of the instance in TiB by the `iops_per_tb` value. For example, for a 2 TiB instance with an `iops_per_tb` value of 17000 the provisioned IOPS will be 34000. If the calculated value is outside the supported range for the instance&#x27;s capacity during instance creation, instance creation will fail with an `InvalidArgument` error. Similarly, if an instance capacity update would result in a value outside the supported range, the update will fail with an `InvalidArgument` error.
642 &quot;maxIopsPerTb&quot;: &quot;A String&quot;, # Required. Maximum IOPS per TiB.
643 },
644 },
645 &quot;performanceLimits&quot;: { # The enforced performance limits, calculated from the instance&#x27;s performance configuration. # Output only. Used for getting performance limits.
646 &quot;maxIops&quot;: &quot;A String&quot;, # Output only. The maximum IOPS.
647 &quot;maxReadIops&quot;: &quot;A String&quot;, # Output only. The maximum read IOPS.
648 &quot;maxReadThroughputBps&quot;: &quot;A String&quot;, # Output only. The maximum read throughput in bytes per second.
649 &quot;maxWriteIops&quot;: &quot;A String&quot;, # Output only. The maximum write IOPS.
650 &quot;maxWriteThroughputBps&quot;: &quot;A String&quot;, # Output only. The maximum write throughput in bytes per second.
651 },
652 &quot;protocol&quot;: &quot;A String&quot;, # Immutable. The protocol indicates the access protocol for all shares in the instance. This field is immutable and it cannot be changed after the instance has been created. Default value: `NFS_V3`.
653 &quot;replication&quot;: { # Optional. The configuration used to replicate an instance. # Optional. Replication configuration.
654 &quot;replicas&quot;: [ # Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.
655 { # Replica configuration for the instance.
656 &quot;lastActiveSyncTime&quot;: &quot;A String&quot;, # Output only. The timestamp of the latest replication snapshot taken on the active instance and is already replicated safely.
657 &quot;peerInstance&quot;: &quot;A String&quot;, # Optional. The name of the source instance for the replica, in the format `projects/{project}/locations/{location}/instances/{instance}`. This field is required when creating a replica.
658 &quot;state&quot;: &quot;A String&quot;, # Output only. The replica state.
659 &quot;stateReasons&quot;: [ # Output only. Additional information about the replication state, if available.
660 &quot;A String&quot;,
661 ],
662 &quot;stateUpdateTime&quot;: &quot;A String&quot;, # Output only. The time when the replica state was updated.
663 },
664 ],
665 &quot;role&quot;: &quot;A String&quot;, # Optional. The replication role. When creating a new replica, this field must be set to `STANDBY`.
666 },
667 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
668 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
669 &quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
670 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the instance state, if available.
671 &quot;suspensionReasons&quot;: [ # Output only. Field indicates all the reasons the instance is in &quot;SUSPENDED&quot; state.
672 &quot;A String&quot;,
673 ],
674 &quot;tags&quot;: { # Optional. Input only. Immutable. Tag key-value pairs bound to this resource. Each key must be a namespaced name and each value a short name. Example: &quot;123456789012/environment&quot; : &quot;production&quot;, &quot;123456789013/costCenter&quot; : &quot;marketing&quot; See the documentation for more information: - Namespaced name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key - Short name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_value
675 &quot;a_key&quot;: &quot;A String&quot;,
676 },
677 &quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
678 }
679
680 updateMask: string, 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; * &quot;performance_config&quot; * &quot;deletion_protection_enabled&quot; * &quot;deletion_protection_reason&quot;
681 x__xgafv: string, V1 error format.
682 Allowed values
683 1 - v1 error format
684 2 - v2 error format
685
686 Returns:
687 An object of the form:
688
689 { # This resource represents a long-running operation that is the result of a network API call.
690 &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.
691 &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.
692 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
693 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
694 {
695 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
696 },
697 ],
698 &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.
699 },
700 &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.
701 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
702 },
703 &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}`.
704 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
705 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
706 },
707 }</pre>
708 </div>
709
710 <div class="method">
711 <code class="details" id="pauseReplica">pauseReplica(name, body=None, x__xgafv=None)</code>
712 <pre>Pause the standby instance (replica). WARNING: This operation makes the standby instance&#x27;s NFS filesystem writable. Any data written to the standby instance while paused will be lost when the replica is resumed or promoted.
713
714 Args:
715 name: string, Required. The resource name of the instance, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}`. (required)
716 body: object, The request body.
717 The object takes the form of:
718
719 { # PauseReplicaRequest pauses a Filestore standby instance (replica).
720 }
721
722 x__xgafv: string, V1 error format.
723 Allowed values
724 1 - v1 error format
725 2 - v2 error format
726
727 Returns:
728 An object of the form:
729
730 { # This resource represents a long-running operation that is the result of a network API call.
731 &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.
732 &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.
733 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
734 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
735 {
736 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
737 },
738 ],
739 &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.
740 },
741 &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.
742 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
743 },
744 &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}`.
745 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
746 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
747 },
748 }</pre>
749 </div>
750
751 <div class="method">
752 <code class="details" id="promoteReplica">promoteReplica(name, body=None, x__xgafv=None)</code>
753 <pre>Promote the standby instance (replica).
754
755 Args:
756 name: string, Required. The resource name of the instance, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}`. (required)
757 body: object, The request body.
758 The object takes the form of:
759
760 { # PromoteReplicaRequest promotes a Filestore standby instance (replica).
761 &quot;peerInstance&quot;: &quot;A String&quot;, # Optional. The resource name of the peer instance to promote, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}`. The peer instance is required if the operation is called on an active instance.
762 }
763
764 x__xgafv: string, V1 error format.
765 Allowed values
766 1 - v1 error format
767 2 - v2 error format
768
769 Returns:
770 An object of the form:
771
772 { # This resource represents a long-running operation that is the result of a network API call.
773 &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.
774 &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.
775 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
776 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
777 {
778 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
779 },
780 ],
781 &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.
782 },
783 &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.
784 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
785 },
786 &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}`.
787 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
788 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
789 },
790 }</pre>
791 </div>
792
793 <div class="method">
794 <code class="details" id="restore">restore(name, body=None, x__xgafv=None)</code>
795 <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).
796
797 Args:
798 name: string, Required. The resource name of the instance, in the format `projects/{project_number}/locations/{location_id}/instances/{instance_id}`. (required)
799 body: object, The request body.
800 The object takes the form of:
801
802 { # RestoreInstanceRequest restores an existing instance&#x27;s file share from a backup.
803 &quot;fileShare&quot;: &quot;A String&quot;, # Required. Name of the file share in the Filestore instance that the backup is being restored to.
804 &quot;sourceBackup&quot;: &quot;A String&quot;, # The resource name of the backup, in the format `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
805 }
806
807 x__xgafv: string, V1 error format.
808 Allowed values
809 1 - v1 error format
810 2 - v2 error format
811
812 Returns:
813 An object of the form:
814
815 { # This resource represents a long-running operation that is the result of a network API call.
816 &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.
817 &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.
818 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
819 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
820 {
821 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
822 },
823 ],
824 &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.
825 },
826 &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.
827 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
828 },
829 &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}`.
830 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
831 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
832 },
833 }</pre>
834 </div>
835
836 <div class="method">
837 <code class="details" id="resumeReplica">resumeReplica(name, body=None, x__xgafv=None)</code>
838 <pre>Resume the standby instance (replica). WARNING: Any data written to the standby instance while paused will be lost when the replica is resumed.
839
840 Args:
841 name: string, Required. The resource name of the instance, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}`. (required)
842 body: object, The request body.
843 The object takes the form of:
844
845 { # ResumeReplicaRequest resumes a Filestore standby instance (replica).
846 }
847
848 x__xgafv: string, V1 error format.
849 Allowed values
850 1 - v1 error format
851 2 - v2 error format
852
853 Returns:
854 An object of the form:
855
856 { # This resource represents a long-running operation that is the result of a network API call.
857 &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.
858 &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.
859 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
860 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
861 {
862 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
863 },
864 ],
865 &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.
866 },
867 &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.
868 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
869 },
870 &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}`.
871 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
872 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
873 },
874 }</pre>
875 </div>
876
877 <div class="method">
878 <code class="details" id="revert">revert(name, body=None, x__xgafv=None)</code>
879 <pre>Revert an existing instance&#x27;s file system to a specified snapshot.
880
881 Args:
882 name: string, Required. The resource name of the instance, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}`. (required)
883 body: object, The request body.
884 The object takes the form of:
885
886 { # RevertInstanceRequest reverts the given instance&#x27;s file share to the specified snapshot.
887 &quot;targetSnapshotId&quot;: &quot;A String&quot;, # Required. The snapshot resource ID, in the format &#x27;my-snapshot&#x27;, where the specified ID is the {snapshot_id} of the fully qualified name like `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`
888 }
889
890 x__xgafv: string, V1 error format.
891 Allowed values
892 1 - v1 error format
893 2 - v2 error format
894
895 Returns:
896 An object of the form:
897
898 { # This resource represents a long-running operation that is the result of a network API call.
899 &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.
900 &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.
901 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
902 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
903 {
904 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
905 },
906 ],
907 &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.
908 },
909 &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.
910 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
911 },
912 &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}`.
913 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
914 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
915 },
916 }</pre>
917 </div>
918
919 </body></html>