Skip to content

Commit 4ea8b8d

Browse files
feat(file): update the api
#### file:v1beta1 The following keys were added: - schemas.Instance.properties.kmsKeyName.type (Total Keys: 1) - schemas.Instance.properties.suspensionReasons (Total Keys: 3)
1 parent c826ea2 commit 4ea8b8d

File tree

3 files changed

+42
-4
lines changed

3 files changed

+42
-4
lines changed

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

+16
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ <h3>Method Details</h3>
140140
&quot;sourceBackup&quot;: &quot;A String&quot;, # The resource name of the backup, in the format `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that this file share has been restored from.
141141
},
142142
],
143+
&quot;kmsKeyName&quot;: &quot;A String&quot;, # KMS key name used for data encryption.
143144
&quot;labels&quot;: { # Resource labels to represent user provided metadata.
144145
&quot;a_key&quot;: &quot;A String&quot;,
145146
},
@@ -160,6 +161,9 @@ <h3>Method Details</h3>
160161
&quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
161162
&quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
162163
&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+
],
163167
&quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
164168
}
165169

@@ -264,6 +268,7 @@ <h3>Method Details</h3>
264268
&quot;sourceBackup&quot;: &quot;A String&quot;, # The resource name of the backup, in the format `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that this file share has been restored from.
265269
},
266270
],
271+
&quot;kmsKeyName&quot;: &quot;A String&quot;, # KMS key name used for data encryption.
267272
&quot;labels&quot;: { # Resource labels to represent user provided metadata.
268273
&quot;a_key&quot;: &quot;A String&quot;,
269274
},
@@ -284,6 +289,9 @@ <h3>Method Details</h3>
284289
&quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
285290
&quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
286291
&quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the instance state, if available.
292+
&quot;suspensionReasons&quot;: [ # Output only. field indicates all the reasons the instance is in &quot;SUSPENDED&quot; state.
293+
&quot;A String&quot;,
294+
],
287295
&quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
288296
}</pre>
289297
</div>
@@ -330,6 +338,7 @@ <h3>Method Details</h3>
330338
&quot;sourceBackup&quot;: &quot;A String&quot;, # The resource name of the backup, in the format `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that this file share has been restored from.
331339
},
332340
],
341+
&quot;kmsKeyName&quot;: &quot;A String&quot;, # KMS key name used for data encryption.
333342
&quot;labels&quot;: { # Resource labels to represent user provided metadata.
334343
&quot;a_key&quot;: &quot;A String&quot;,
335344
},
@@ -350,6 +359,9 @@ <h3>Method Details</h3>
350359
&quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
351360
&quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
352361
&quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the instance state, if available.
362+
&quot;suspensionReasons&quot;: [ # Output only. field indicates all the reasons the instance is in &quot;SUSPENDED&quot; state.
363+
&quot;A String&quot;,
364+
],
353365
&quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
354366
},
355367
],
@@ -405,6 +417,7 @@ <h3>Method Details</h3>
405417
&quot;sourceBackup&quot;: &quot;A String&quot;, # The resource name of the backup, in the format `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that this file share has been restored from.
406418
},
407419
],
420+
&quot;kmsKeyName&quot;: &quot;A String&quot;, # KMS key name used for data encryption.
408421
&quot;labels&quot;: { # Resource labels to represent user provided metadata.
409422
&quot;a_key&quot;: &quot;A String&quot;,
410423
},
@@ -425,6 +438,9 @@ <h3>Method Details</h3>
425438
&quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
426439
&quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
427440
&quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the instance state, if available.
441+
&quot;suspensionReasons&quot;: [ # Output only. field indicates all the reasons the instance is in &quot;SUSPENDED&quot; state.
442+
&quot;A String&quot;,
443+
],
428444
&quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
429445
}
430446

googleapiclient/discovery_cache/documents/file.v1.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@
672672
}
673673
}
674674
},
675-
"revision": "20210804",
675+
"revision": "20210810",
676676
"rootUrl": "https://file.googleapis.com/",
677677
"schemas": {
678678
"Backup": {

googleapiclient/discovery_cache/documents/file.v1beta1.json

+25-3
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@
841841
}
842842
}
843843
},
844-
"revision": "20210804",
844+
"revision": "20210810",
845845
"rootUrl": "https://file.googleapis.com/",
846846
"schemas": {
847847
"Backup": {
@@ -1354,6 +1354,10 @@
13541354
},
13551355
"type": "array"
13561356
},
1357+
"kmsKeyName": {
1358+
"description": "KMS key name used for data encryption.",
1359+
"type": "string"
1360+
},
13571361
"labels": {
13581362
"additionalProperties": {
13591363
"type": "string"
@@ -1387,7 +1391,8 @@
13871391
"REPAIRING",
13881392
"DELETING",
13891393
"ERROR",
1390-
"RESTORING"
1394+
"RESTORING",
1395+
"SUSPENDED"
13911396
],
13921397
"enumDescriptions": [
13931398
"State not set.",
@@ -1396,7 +1401,8 @@
13961401
"Work is being done on the instance. You can get further details from the `statusMessage` field of the `Instance` resource.",
13971402
"The instance is shutting down.",
13981403
"The instance is experiencing an issue and might be unusable. You can get further details from the `statusMessage` field of the `Instance` resource.",
1399-
"The instance is restoring a snapshot or backup to an existing file share and may be unusable during this time."
1404+
"The instance is restoring a snapshot or backup to an existing file share and may be unusable during this time.",
1405+
"The instance is suspended. You can get further details from the `suspension_reasons` field of the `Instance` resource."
14001406
],
14011407
"readOnly": true,
14021408
"type": "string"
@@ -1406,6 +1412,22 @@
14061412
"readOnly": true,
14071413
"type": "string"
14081414
},
1415+
"suspensionReasons": {
1416+
"description": "Output only. field indicates all the reasons the instance is in \"SUSPENDED\" state.",
1417+
"items": {
1418+
"enum": [
1419+
"SUSPENSION_REASON_UNSPECIFIED",
1420+
"KMS_KEY_ISSUE"
1421+
],
1422+
"enumDescriptions": [
1423+
"Not set.",
1424+
"The KMS key used by the instance is either revoked or denied access to."
1425+
],
1426+
"type": "string"
1427+
},
1428+
"readOnly": true,
1429+
"type": "array"
1430+
},
14091431
"tier": {
14101432
"description": "The service tier of the instance.",
14111433
"enum": [

0 commit comments

Comments
 (0)