Skip to content

Commit b13a249

Browse files
feat(file): update the api
#### file:v1 The following keys were added: - resources.projects.resources.locations.resources.instances.methods.delete.parameters.force (Total Keys: 2) - resources.projects.resources.locations.resources.instances.resources.snapshots.methods.create (Total Keys: 14) - resources.projects.resources.locations.resources.instances.resources.snapshots.methods.delete (Total Keys: 11) - resources.projects.resources.locations.resources.instances.resources.snapshots.methods.get (Total Keys: 11) - resources.projects.resources.locations.resources.instances.resources.snapshots.methods.list (Total Keys: 20) - resources.projects.resources.locations.resources.instances.resources.snapshots.methods.patch (Total Keys: 15) - schemas.Instance.properties.kmsKeyName.type (Total Keys: 1) - schemas.Instance.properties.suspensionReasons (Total Keys: 3) - schemas.ListSnapshotsResponse (Total Keys: 5) - schemas.NetworkConfig.properties.connectMode.type (Total Keys: 1) - schemas.Snapshot (Total Keys: 14)
1 parent e079c95 commit b13a249

File tree

4 files changed

+639
-15
lines changed

4 files changed

+639
-15
lines changed

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

+32-6
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,19 @@
7474

7575
<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>
7676
<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+
7782
<p class="toc_element">
7883
<code><a href="#close">close()</a></code></p>
7984
<p class="firstline">Close httplib2 connections.</p>
8085
<p class="toc_element">
8186
<code><a href="#create">create(parent, body=None, instanceId=None, x__xgafv=None)</a></code></p>
8287
<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>
8388
<p class="toc_element">
84-
<code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
89+
<code><a href="#delete">delete(name, force=None, x__xgafv=None)</a></code></p>
8590
<p class="firstline">Deletes an instance.</p>
8691
<p class="toc_element">
8792
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
@@ -135,25 +140,30 @@ <h3>Method Details</h3>
135140
&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.
136141
},
137142
],
143+
&quot;kmsKeyName&quot;: &quot;A String&quot;, # KMS key name used for data encryption.
138144
&quot;labels&quot;: { # Resource labels to represent user provided metadata.
139145
&quot;a_key&quot;: &quot;A String&quot;,
140146
},
141147
&quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the instance, in the format `projects/{project}/locations/{location}/instances/{instance}`.
142148
&quot;networks&quot;: [ # VPC networks to which the instance is connected. For this version, only a single network is supported.
143149
{ # Network configuration for the instance.
150+
&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.
144151
&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}`.
145152
&quot;A String&quot;,
146153
],
147154
&quot;modes&quot;: [ # Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.
148155
&quot;A String&quot;,
149156
],
150157
&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.
151-
&quot;reservedIpRange&quot;: &quot;A String&quot;, # A /29 CIDR block 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/29. 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.
158+
&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.
152159
},
153160
],
154161
&quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
155162
&quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
156163
&quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the instance state, if available.
164+
&quot;suspensionReasons&quot;: [ # Output only. field indicates all the reasons the instance is in &quot;SUSPENDED&quot; state.
165+
&quot;A String&quot;,
166+
],
157167
&quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
158168
}
159169

@@ -188,11 +198,12 @@ <h3>Method Details</h3>
188198
</div>
189199

190200
<div class="method">
191-
<code class="details" id="delete">delete(name, x__xgafv=None)</code>
201+
<code class="details" id="delete">delete(name, force=None, x__xgafv=None)</code>
192202
<pre>Deletes an instance.
193203

194204
Args:
195205
name: string, Required. The instance resource name, in the format `projects/{project_id}/locations/{location}/instances/{instance_id}` (required)
206+
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.)
196207
x__xgafv: string, V1 error format.
197208
Allowed values
198209
1 - v1 error format
@@ -258,25 +269,30 @@ <h3>Method Details</h3>
258269
&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.
259270
},
260271
],
272+
&quot;kmsKeyName&quot;: &quot;A String&quot;, # KMS key name used for data encryption.
261273
&quot;labels&quot;: { # Resource labels to represent user provided metadata.
262274
&quot;a_key&quot;: &quot;A String&quot;,
263275
},
264276
&quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the instance, in the format `projects/{project}/locations/{location}/instances/{instance}`.
265277
&quot;networks&quot;: [ # VPC networks to which the instance is connected. For this version, only a single network is supported.
266278
{ # Network configuration for the instance.
279+
&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.
267280
&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}`.
268281
&quot;A String&quot;,
269282
],
270283
&quot;modes&quot;: [ # Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.
271284
&quot;A String&quot;,
272285
],
273286
&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.
274-
&quot;reservedIpRange&quot;: &quot;A String&quot;, # A /29 CIDR block 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/29. 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.
287+
&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.
275288
},
276289
],
277290
&quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
278291
&quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
279292
&quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the instance state, if available.
293+
&quot;suspensionReasons&quot;: [ # Output only. field indicates all the reasons the instance is in &quot;SUSPENDED&quot; state.
294+
&quot;A String&quot;,
295+
],
280296
&quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
281297
}</pre>
282298
</div>
@@ -323,25 +339,30 @@ <h3>Method Details</h3>
323339
&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.
324340
},
325341
],
342+
&quot;kmsKeyName&quot;: &quot;A String&quot;, # KMS key name used for data encryption.
326343
&quot;labels&quot;: { # Resource labels to represent user provided metadata.
327344
&quot;a_key&quot;: &quot;A String&quot;,
328345
},
329346
&quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the instance, in the format `projects/{project}/locations/{location}/instances/{instance}`.
330347
&quot;networks&quot;: [ # VPC networks to which the instance is connected. For this version, only a single network is supported.
331348
{ # Network configuration for the instance.
349+
&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.
332350
&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}`.
333351
&quot;A String&quot;,
334352
],
335353
&quot;modes&quot;: [ # Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.
336354
&quot;A String&quot;,
337355
],
338356
&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.
339-
&quot;reservedIpRange&quot;: &quot;A String&quot;, # A /29 CIDR block 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/29. 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.
357+
&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.
340358
},
341359
],
342360
&quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
343361
&quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
344362
&quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the instance state, if available.
363+
&quot;suspensionReasons&quot;: [ # Output only. field indicates all the reasons the instance is in &quot;SUSPENDED&quot; state.
364+
&quot;A String&quot;,
365+
],
345366
&quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
346367
},
347368
],
@@ -397,25 +418,30 @@ <h3>Method Details</h3>
397418
&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.
398419
},
399420
],
421+
&quot;kmsKeyName&quot;: &quot;A String&quot;, # KMS key name used for data encryption.
400422
&quot;labels&quot;: { # Resource labels to represent user provided metadata.
401423
&quot;a_key&quot;: &quot;A String&quot;,
402424
},
403425
&quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the instance, in the format `projects/{project}/locations/{location}/instances/{instance}`.
404426
&quot;networks&quot;: [ # VPC networks to which the instance is connected. For this version, only a single network is supported.
405427
{ # Network configuration for the instance.
428+
&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.
406429
&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}`.
407430
&quot;A String&quot;,
408431
],
409432
&quot;modes&quot;: [ # Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.
410433
&quot;A String&quot;,
411434
],
412435
&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.
413-
&quot;reservedIpRange&quot;: &quot;A String&quot;, # A /29 CIDR block 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/29. 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.
436+
&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.
414437
},
415438
],
416439
&quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
417440
&quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
418441
&quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the instance state, if available.
442+
&quot;suspensionReasons&quot;: [ # Output only. field indicates all the reasons the instance is in &quot;SUSPENDED&quot; state.
443+
&quot;A String&quot;,
444+
],
419445
&quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
420446
}
421447

0 commit comments

Comments
 (0)