blob: 0ea3282f1811c6dc78d12da650c287edc5140051 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="file_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">
yoshi-code-bot815c1ac2021-11-15 23:24:17 -080078 <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">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070083 <code><a href="#close">close()</a></code></p>
84<p class="firstline">Close httplib2 connections.</p>
85<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070086 <code><a href="#create">create(parent, body=None, instanceId=None, x__xgafv=None)</a></code></p>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070087<p class="firstline">Creates an instance. When creating from a backup, the capacity of the new instance needs to be equal to or larger than the capacity of the backup (and also equal to or larger than the minimum capacity of the tier).</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="toc_element">
yoshi-code-bot815c1ac2021-11-15 23:24:17 -080089 <code><a href="#delete">delete(name, force=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070090<p class="firstline">Deletes an instance.</p>
91<p class="toc_element">
92 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
93<p class="firstline">Gets the details of a specific instance.</p>
94<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080095 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070096<p class="firstline">Lists all instances in a project for either a specified location or for all locations.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="toc_element">
98 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
99<p class="firstline">Retrieves the next page of results.</p>
100<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700101 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700102<p class="firstline">Updates the settings of a specific instance.</p>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700103<p class="toc_element">
104 <code><a href="#restore">restore(name, body=None, x__xgafv=None)</a></code></p>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800105<p class="firstline">Restores an existing instance's file share from a backup. The capacity of the instance needs to be equal to or larger than the capacity of the backup (and also equal to or larger than the minimum capacity of the tier).</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106<h3>Method Details</h3>
107<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700108 <code class="details" id="close">close()</code>
109 <pre>Close httplib2 connections.</pre>
110</div>
111
112<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700113 <code class="details" id="create">create(parent, body=None, instanceId=None, x__xgafv=None)</code>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700114 <pre>Creates an instance. When creating from a backup, the capacity of the new instance needs to be equal to or larger than the capacity of the backup (and also equal to or larger than the minimum capacity of the tier).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700115
116Args:
yoshi-code-bot96afc042021-08-24 00:22:31 -0700117 parent: string, Required. The instance&#x27;s project and location, in the format `projects/{project_id}/locations/{location}`. In Cloud Filestore, locations map to GCP zones, for example **us-west1-b**. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700118 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700119 The object takes the form of:
120
121{ # A Cloud Filestore instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800122 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
123 &quot;description&quot;: &quot;A String&quot;, # The description of the instance (2048 characters or less).
124 &quot;etag&quot;: &quot;A String&quot;, # Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other.
125 &quot;fileShares&quot;: [ # File system shares on the instance. For this version, only a single file share is supported.
126 { # File share configuration for the instance.
127 &quot;capacityGb&quot;: &quot;A String&quot;, # File share capacity in gigabytes (GB). Cloud Filestore defines 1 GB as 1024^3 bytes.
128 &quot;name&quot;: &quot;A String&quot;, # The name of the file share (must be 16 characters or less).
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800129 &quot;nfsExportOptions&quot;: [ # Nfs Export Options. There is a limit of 10 export options per file share.
130 { # NFS export options specifications.
131 &quot;accessMode&quot;: &quot;A String&quot;, # Either READ_ONLY, for allowing only read requests on the exported directory, or READ_WRITE, for allowing both read and write requests. The default is READ_WRITE.
132 &quot;anonGid&quot;: &quot;A String&quot;, # An integer representing the anonymous group id with a default value of 65534. Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
133 &quot;anonUid&quot;: &quot;A String&quot;, # An integer representing the anonymous user id with a default value of 65534. Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
yoshi-code-bot96afc042021-08-24 00:22:31 -0700134 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800135 &quot;A String&quot;,
136 ],
137 &quot;squashMode&quot;: &quot;A String&quot;, # Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access. The default is NO_ROOT_SQUASH.
138 },
139 ],
yoshi-code-bot96afc042021-08-24 00:22:31 -0700140 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800141 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800142 ],
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800143 &quot;kmsKeyName&quot;: &quot;A String&quot;, # KMS key name used for data encryption.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800144 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
145 &quot;a_key&quot;: &quot;A String&quot;,
146 },
yoshi-code-bot96afc042021-08-24 00:22:31 -0700147 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the instance, in the format `projects/{project}/locations/{location}/instances/{instance}`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800148 &quot;networks&quot;: [ # VPC networks to which the instance is connected. For this version, only a single network is supported.
149 { # Network configuration for the instance.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800150 &quot;connectMode&quot;: &quot;A String&quot;, # The network connect mode of the Filestore instance. If not provided, the connect mode defaults to DIRECT_PEERING.
yoshi-code-bot96afc042021-08-24 00:22:31 -0700151 &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}`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800152 &quot;A String&quot;,
153 ],
154 &quot;modes&quot;: [ # Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.
155 &quot;A String&quot;,
156 ],
yoshi-code-bot96afc042021-08-24 00:22:31 -0700157 &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.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800158 &quot;reservedIpRange&quot;: &quot;A String&quot;, # Optional, reserved_ip_range can have one of the following two types of values. * CIDR range value when using DIRECT_PEERING connect mode. * [Allocated IP address range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address) when using PRIVATE_SERVICE_ACCESS connect mode. When the name of an allocated IP address range is specified, it must be one of the ranges associated with the private service access connection. When specified as a direct CIDR value, it must be a /29 CIDR block for Basic tier or a /24 CIDR block for High Scale or 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 or 192.168.0.0/24. The range you specify can&#x27;t overlap with either existing subnets or assigned IP address ranges for other Cloud Filestore instances in the selected VPC network.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800159 },
160 ],
yoshi-code-botcec43932021-04-24 08:36:03 -0700161 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800162 &quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
163 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the instance state, if available.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800164 &quot;suspensionReasons&quot;: [ # Output only. field indicates all the reasons the instance is in &quot;SUSPENDED&quot; state.
165 &quot;A String&quot;,
166 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800167 &quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
168}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700169
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700170 instanceId: string, Required. The name of the instance to create. The name must be unique for the specified project and location.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700171 x__xgafv: string, V1 error format.
172 Allowed values
173 1 - v1 error format
174 2 - v2 error format
175
176Returns:
177 An object of the form:
178
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700179 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800180 &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.
181 &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.
182 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
183 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
184 {
185 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
186 },
187 ],
188 &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.
189 },
190 &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.
191 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
192 },
193 &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}`.
194 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
195 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
196 },
197}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700198</div>
199
200<div class="method">
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800201 <code class="details" id="delete">delete(name, force=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700202 <pre>Deletes an instance.
203
204Args:
yoshi-code-bot96afc042021-08-24 00:22:31 -0700205 name: string, Required. The instance resource name, in the format `projects/{project_id}/locations/{location}/instances/{instance_id}` (required)
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800206 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.)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700207 x__xgafv: string, V1 error format.
208 Allowed values
209 1 - v1 error format
210 2 - v2 error format
211
212Returns:
213 An object of the form:
214
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700215 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800216 &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.
217 &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.
218 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
219 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
220 {
221 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
222 },
223 ],
224 &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.
225 },
226 &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.
227 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
228 },
229 &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}`.
230 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
231 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
232 },
233}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700234</div>
235
236<div class="method">
237 <code class="details" id="get">get(name, x__xgafv=None)</code>
238 <pre>Gets the details of a specific instance.
239
240Args:
yoshi-code-bot96afc042021-08-24 00:22:31 -0700241 name: string, Required. The instance resource name, in the format `projects/{project_id}/locations/{location}/instances/{instance_id}`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700242 x__xgafv: string, V1 error format.
243 Allowed values
244 1 - v1 error format
245 2 - v2 error format
246
247Returns:
248 An object of the form:
249
250 { # A Cloud Filestore instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800251 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
252 &quot;description&quot;: &quot;A String&quot;, # The description of the instance (2048 characters or less).
253 &quot;etag&quot;: &quot;A String&quot;, # Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other.
254 &quot;fileShares&quot;: [ # File system shares on the instance. For this version, only a single file share is supported.
255 { # File share configuration for the instance.
256 &quot;capacityGb&quot;: &quot;A String&quot;, # File share capacity in gigabytes (GB). Cloud Filestore defines 1 GB as 1024^3 bytes.
257 &quot;name&quot;: &quot;A String&quot;, # The name of the file share (must be 16 characters or less).
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800258 &quot;nfsExportOptions&quot;: [ # Nfs Export Options. There is a limit of 10 export options per file share.
259 { # NFS export options specifications.
260 &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.
261 &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.
262 &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.
yoshi-code-bot96afc042021-08-24 00:22:31 -0700263 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800264 &quot;A String&quot;,
265 ],
266 &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.
267 },
268 ],
yoshi-code-bot96afc042021-08-24 00:22:31 -0700269 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800270 },
271 ],
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800272 &quot;kmsKeyName&quot;: &quot;A String&quot;, # KMS key name used for data encryption.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800273 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
274 &quot;a_key&quot;: &quot;A String&quot;,
275 },
yoshi-code-bot96afc042021-08-24 00:22:31 -0700276 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the instance, in the format `projects/{project}/locations/{location}/instances/{instance}`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800277 &quot;networks&quot;: [ # VPC networks to which the instance is connected. For this version, only a single network is supported.
278 { # Network configuration for the instance.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800279 &quot;connectMode&quot;: &quot;A String&quot;, # The network connect mode of the Filestore instance. If not provided, the connect mode defaults to DIRECT_PEERING.
yoshi-code-bot96afc042021-08-24 00:22:31 -0700280 &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}`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800281 &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800282 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800283 &quot;modes&quot;: [ # Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.
284 &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800285 ],
yoshi-code-bot96afc042021-08-24 00:22:31 -0700286 &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.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800287 &quot;reservedIpRange&quot;: &quot;A String&quot;, # Optional, reserved_ip_range can have one of the following two types of values. * CIDR range value when using DIRECT_PEERING connect mode. * [Allocated IP address range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address) when using PRIVATE_SERVICE_ACCESS connect mode. When the name of an allocated IP address range is specified, it must be one of the ranges associated with the private service access connection. When specified as a direct CIDR value, it must be a /29 CIDR block for Basic tier or a /24 CIDR block for High Scale or 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 or 192.168.0.0/24. The range you specify can&#x27;t overlap with either existing subnets or assigned IP address ranges for other Cloud Filestore instances in the selected VPC network.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800288 },
289 ],
yoshi-code-botcec43932021-04-24 08:36:03 -0700290 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800291 &quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
292 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the instance state, if available.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800293 &quot;suspensionReasons&quot;: [ # Output only. field indicates all the reasons the instance is in &quot;SUSPENDED&quot; state.
294 &quot;A String&quot;,
295 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800296 &quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
297}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700298</div>
299
300<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800301 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700302 <pre>Lists all instances in a project for either a specified location or for all locations.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700303
304Args:
yoshi-code-bot96afc042021-08-24 00:22:31 -0700305 parent: string, Required. The project and location for which to retrieve instance information, in the format `projects/{project_id}/locations/{location}`. In Cloud Filestore, locations map to GCP zones, for example **us-west1-b**. To retrieve instance information for all locations, use &quot;-&quot; for the `{location}` value. (required)
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800306 filter: string, List filter.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800307 orderBy: string, Sort results. Supported values are &quot;name&quot;, &quot;name desc&quot; or &quot;&quot; (unsorted).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800308 pageSize: integer, The maximum number of items to return.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800309 pageToken: string, The next_page_token value to use if there are additional results to retrieve for this list request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700310 x__xgafv: string, V1 error format.
311 Allowed values
312 1 - v1 error format
313 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700314
315Returns:
316 An object of the form:
317
318 { # ListInstancesResponse is the result of ListInstancesRequest.
yoshi-code-bot96afc042021-08-24 00:22:31 -0700319 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800320 { # A Cloud Filestore instance.
321 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
322 &quot;description&quot;: &quot;A String&quot;, # The description of the instance (2048 characters or less).
323 &quot;etag&quot;: &quot;A String&quot;, # Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other.
324 &quot;fileShares&quot;: [ # File system shares on the instance. For this version, only a single file share is supported.
325 { # File share configuration for the instance.
326 &quot;capacityGb&quot;: &quot;A String&quot;, # File share capacity in gigabytes (GB). Cloud Filestore defines 1 GB as 1024^3 bytes.
327 &quot;name&quot;: &quot;A String&quot;, # The name of the file share (must be 16 characters or less).
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800328 &quot;nfsExportOptions&quot;: [ # Nfs Export Options. There is a limit of 10 export options per file share.
329 { # NFS export options specifications.
330 &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.
331 &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.
332 &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.
yoshi-code-bot96afc042021-08-24 00:22:31 -0700333 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800334 &quot;A String&quot;,
335 ],
336 &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.
337 },
338 ],
yoshi-code-bot96afc042021-08-24 00:22:31 -0700339 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800340 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800341 ],
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800342 &quot;kmsKeyName&quot;: &quot;A String&quot;, # KMS key name used for data encryption.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800343 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
344 &quot;a_key&quot;: &quot;A String&quot;,
345 },
yoshi-code-bot96afc042021-08-24 00:22:31 -0700346 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the instance, in the format `projects/{project}/locations/{location}/instances/{instance}`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800347 &quot;networks&quot;: [ # VPC networks to which the instance is connected. For this version, only a single network is supported.
348 { # Network configuration for the instance.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800349 &quot;connectMode&quot;: &quot;A String&quot;, # The network connect mode of the Filestore instance. If not provided, the connect mode defaults to DIRECT_PEERING.
yoshi-code-bot96afc042021-08-24 00:22:31 -0700350 &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}`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800351 &quot;A String&quot;,
352 ],
353 &quot;modes&quot;: [ # Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.
354 &quot;A String&quot;,
355 ],
yoshi-code-bot96afc042021-08-24 00:22:31 -0700356 &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.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800357 &quot;reservedIpRange&quot;: &quot;A String&quot;, # Optional, reserved_ip_range can have one of the following two types of values. * CIDR range value when using DIRECT_PEERING connect mode. * [Allocated IP address range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address) when using PRIVATE_SERVICE_ACCESS connect mode. When the name of an allocated IP address range is specified, it must be one of the ranges associated with the private service access connection. When specified as a direct CIDR value, it must be a /29 CIDR block for Basic tier or a /24 CIDR block for High Scale or 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 or 192.168.0.0/24. The range you specify can&#x27;t overlap with either existing subnets or assigned IP address ranges for other Cloud Filestore instances in the selected VPC network.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800358 },
359 ],
yoshi-code-botcec43932021-04-24 08:36:03 -0700360 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800361 &quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
362 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the instance state, if available.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800363 &quot;suspensionReasons&quot;: [ # Output only. field indicates all the reasons the instance is in &quot;SUSPENDED&quot; state.
364 &quot;A String&quot;,
365 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800366 &quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
367 },
368 ],
369 &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.
370 &quot;unreachable&quot;: [ # Locations that could not be reached.
371 &quot;A String&quot;,
372 ],
373}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700374</div>
375
376<div class="method">
377 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
378 <pre>Retrieves the next page of results.
379
380Args:
381 previous_request: The request for the previous page. (required)
382 previous_response: The response from the request for the previous page. (required)
383
384Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700385 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700386 page. Returns None if there are no more items in the collection.
387 </pre>
388</div>
389
390<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700391 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700392 <pre>Updates the settings of a specific instance.
393
394Args:
yoshi-code-bot96afc042021-08-24 00:22:31 -0700395 name: string, Output only. The resource name of the instance, in the format `projects/{project}/locations/{location}/instances/{instance}`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700396 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700397 The object takes the form of:
398
399{ # A Cloud Filestore instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800400 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
401 &quot;description&quot;: &quot;A String&quot;, # The description of the instance (2048 characters or less).
402 &quot;etag&quot;: &quot;A String&quot;, # Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other.
403 &quot;fileShares&quot;: [ # File system shares on the instance. For this version, only a single file share is supported.
404 { # File share configuration for the instance.
405 &quot;capacityGb&quot;: &quot;A String&quot;, # File share capacity in gigabytes (GB). Cloud Filestore defines 1 GB as 1024^3 bytes.
406 &quot;name&quot;: &quot;A String&quot;, # The name of the file share (must be 16 characters or less).
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800407 &quot;nfsExportOptions&quot;: [ # Nfs Export Options. There is a limit of 10 export options per file share.
408 { # NFS export options specifications.
409 &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.
410 &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.
411 &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.
yoshi-code-bot96afc042021-08-24 00:22:31 -0700412 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800413 &quot;A String&quot;,
414 ],
415 &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.
416 },
417 ],
yoshi-code-bot96afc042021-08-24 00:22:31 -0700418 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800419 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800420 ],
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800421 &quot;kmsKeyName&quot;: &quot;A String&quot;, # KMS key name used for data encryption.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800422 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
423 &quot;a_key&quot;: &quot;A String&quot;,
424 },
yoshi-code-bot96afc042021-08-24 00:22:31 -0700425 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the instance, in the format `projects/{project}/locations/{location}/instances/{instance}`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800426 &quot;networks&quot;: [ # VPC networks to which the instance is connected. For this version, only a single network is supported.
427 { # Network configuration for the instance.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800428 &quot;connectMode&quot;: &quot;A String&quot;, # The network connect mode of the Filestore instance. If not provided, the connect mode defaults to DIRECT_PEERING.
yoshi-code-bot96afc042021-08-24 00:22:31 -0700429 &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}`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800430 &quot;A String&quot;,
431 ],
432 &quot;modes&quot;: [ # Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.
433 &quot;A String&quot;,
434 ],
yoshi-code-bot96afc042021-08-24 00:22:31 -0700435 &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.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800436 &quot;reservedIpRange&quot;: &quot;A String&quot;, # Optional, reserved_ip_range can have one of the following two types of values. * CIDR range value when using DIRECT_PEERING connect mode. * [Allocated IP address range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address) when using PRIVATE_SERVICE_ACCESS connect mode. When the name of an allocated IP address range is specified, it must be one of the ranges associated with the private service access connection. When specified as a direct CIDR value, it must be a /29 CIDR block for Basic tier or a /24 CIDR block for High Scale or 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 or 192.168.0.0/24. The range you specify can&#x27;t overlap with either existing subnets or assigned IP address ranges for other Cloud Filestore instances in the selected VPC network.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800437 },
438 ],
yoshi-code-botcec43932021-04-24 08:36:03 -0700439 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800440 &quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
441 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the instance state, if available.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800442 &quot;suspensionReasons&quot;: [ # Output only. field indicates all the reasons the instance is in &quot;SUSPENDED&quot; state.
443 &quot;A String&quot;,
444 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800445 &quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
446}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700447
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700448 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;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700449 x__xgafv: string, V1 error format.
450 Allowed values
451 1 - v1 error format
452 2 - v2 error format
453
454Returns:
455 An object of the form:
456
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700457 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800458 &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.
459 &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.
460 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
461 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
462 {
463 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
464 },
465 ],
466 &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.
467 },
468 &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.
469 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
470 },
471 &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}`.
472 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
473 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
474 },
475}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700476</div>
477
478<div class="method">
479 <code class="details" id="restore">restore(name, body=None, x__xgafv=None)</code>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800480 <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).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700481
482Args:
yoshi-code-bot96afc042021-08-24 00:22:31 -0700483 name: string, Required. The resource name of the instance, in the format `projects/{project_number}/locations/{location_id}/instances/{instance_id}`. (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700484 body: object, The request body.
485 The object takes the form of:
486
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700487{ # RestoreInstanceRequest restores an existing instance&#x27;s file share from a backup.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800488 &quot;fileShare&quot;: &quot;A String&quot;, # Required. Name of the file share in the Cloud Filestore instance that the backup is being restored to.
yoshi-code-bot96afc042021-08-24 00:22:31 -0700489 &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}`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800490}
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700491
492 x__xgafv: string, V1 error format.
493 Allowed values
494 1 - v1 error format
495 2 - v2 error format
496
497Returns:
498 An object of the form:
499
500 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800501 &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.
502 &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.
503 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
504 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
505 {
506 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
507 },
508 ],
509 &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.
510 },
511 &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.
512 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
513 },
514 &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}`.
515 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
516 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
517 },
518}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700519</div>
520
521</body></html>