Skip to content

Commit b3375b0

Browse files
feat(file): update the api
#### file:v1 The following keys were added: - resources.projects.resources.locations.resources.instances.methods.promoteReplica (Total Keys: 12) - schemas.Backup.properties.tags (Total Keys: 2) - schemas.Instance.properties.tags (Total Keys: 2) - schemas.PromoteReplicaRequest (Total Keys: 2) - schemas.Snapshot.properties.tags (Total Keys: 2) #### file:v1beta1 The following keys were added: - schemas.Backup.properties.tags (Total Keys: 2) - schemas.Instance.properties.tags (Total Keys: 2) - schemas.Snapshot.properties.tags (Total Keys: 2)
1 parent 8abc4a1 commit b3375b0

8 files changed

+198
-4
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ <h3>Method Details</h3>
127127
&quot;sourceInstanceTier&quot;: &quot;A String&quot;, # Output only. The service tier of the source Filestore instance that this backup is created from.
128128
&quot;state&quot;: &quot;A String&quot;, # Output only. The backup state.
129129
&quot;storageBytes&quot;: &quot;A String&quot;, # Output only. The size of the storage used by the backup. As backups share storage, this number is expected to change with backup creation/deletion.
130+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
131+
&quot;a_key&quot;: &quot;A String&quot;,
132+
},
130133
}
131134

132135
backupId: string, Required. The ID to use for the backup. The ID must be unique within the specified project and location. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen. Values that do not match this pattern will trigger an INVALID_ARGUMENT error.
@@ -225,6 +228,9 @@ <h3>Method Details</h3>
225228
&quot;sourceInstanceTier&quot;: &quot;A String&quot;, # Output only. The service tier of the source Filestore instance that this backup is created from.
226229
&quot;state&quot;: &quot;A String&quot;, # Output only. The backup state.
227230
&quot;storageBytes&quot;: &quot;A String&quot;, # Output only. The size of the storage used by the backup. As backups share storage, this number is expected to change with backup creation/deletion.
231+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
232+
&quot;a_key&quot;: &quot;A String&quot;,
233+
},
228234
}</pre>
229235
</div>
230236

@@ -265,6 +271,9 @@ <h3>Method Details</h3>
265271
&quot;sourceInstanceTier&quot;: &quot;A String&quot;, # Output only. The service tier of the source Filestore instance that this backup is created from.
266272
&quot;state&quot;: &quot;A String&quot;, # Output only. The backup state.
267273
&quot;storageBytes&quot;: &quot;A String&quot;, # Output only. The size of the storage used by the backup. As backups share storage, this number is expected to change with backup creation/deletion.
274+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
275+
&quot;a_key&quot;: &quot;A String&quot;,
276+
},
268277
},
269278
],
270279
&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.
@@ -314,6 +323,9 @@ <h3>Method Details</h3>
314323
&quot;sourceInstanceTier&quot;: &quot;A String&quot;, # Output only. The service tier of the source Filestore instance that this backup is created from.
315324
&quot;state&quot;: &quot;A String&quot;, # Output only. The backup state.
316325
&quot;storageBytes&quot;: &quot;A String&quot;, # Output only. The size of the storage used by the backup. As backups share storage, this number is expected to change with backup creation/deletion.
326+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
327+
&quot;a_key&quot;: &quot;A String&quot;,
328+
},
317329
}
318330

319331
updateMask: string, Required. Mask of fields to update. At least one path must be supplied in this field.

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

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ <h2>Instance Methods</h2>
100100
<p class="toc_element">
101101
<code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
102102
<p class="firstline">Updates the settings of a specific instance.</p>
103+
<p class="toc_element">
104+
<code><a href="#promoteReplica">promoteReplica(name, body=None, x__xgafv=None)</a></code></p>
105+
<p class="firstline">Promote an standby instance (replica).</p>
103106
<p class="toc_element">
104107
<code><a href="#restore">restore(name, body=None, x__xgafv=None)</a></code></p>
105108
<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>
@@ -181,6 +184,9 @@ <h3>Method Details</h3>
181184
&quot;suspensionReasons&quot;: [ # Output only. Field indicates all the reasons the instance is in &quot;SUSPENDED&quot; state.
182185
&quot;A String&quot;,
183186
],
187+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
188+
&quot;a_key&quot;: &quot;A String&quot;,
189+
},
184190
&quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
185191
}
186192

@@ -324,6 +330,9 @@ <h3>Method Details</h3>
324330
&quot;suspensionReasons&quot;: [ # Output only. Field indicates all the reasons the instance is in &quot;SUSPENDED&quot; state.
325331
&quot;A String&quot;,
326332
],
333+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
334+
&quot;a_key&quot;: &quot;A String&quot;,
335+
},
327336
&quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
328337
}</pre>
329338
</div>
@@ -408,6 +417,9 @@ <h3>Method Details</h3>
408417
&quot;suspensionReasons&quot;: [ # Output only. Field indicates all the reasons the instance is in &quot;SUSPENDED&quot; state.
409418
&quot;A String&quot;,
410419
],
420+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
421+
&quot;a_key&quot;: &quot;A String&quot;,
422+
},
411423
&quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
412424
},
413425
],
@@ -501,6 +513,9 @@ <h3>Method Details</h3>
501513
&quot;suspensionReasons&quot;: [ # Output only. Field indicates all the reasons the instance is in &quot;SUSPENDED&quot; state.
502514
&quot;A String&quot;,
503515
],
516+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
517+
&quot;a_key&quot;: &quot;A String&quot;,
518+
},
504519
&quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
505520
}
506521

@@ -534,6 +549,47 @@ <h3>Method Details</h3>
534549
}</pre>
535550
</div>
536551

552+
<div class="method">
553+
<code class="details" id="promoteReplica">promoteReplica(name, body=None, x__xgafv=None)</code>
554+
<pre>Promote an standby instance (replica).
555+
556+
Args:
557+
name: string, Required. The resource name of the instance, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}`. (required)
558+
body: object, The request body.
559+
The object takes the form of:
560+
561+
{ # PromoteReplicaRequest promotes a Filestore standby instance (replica).
562+
}
563+
564+
x__xgafv: string, V1 error format.
565+
Allowed values
566+
1 - v1 error format
567+
2 - v2 error format
568+
569+
Returns:
570+
An object of the form:
571+
572+
{ # This resource represents a long-running operation that is the result of a network API call.
573+
&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.
574+
&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.
575+
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
576+
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
577+
{
578+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
579+
},
580+
],
581+
&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.
582+
},
583+
&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.
584+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
585+
},
586+
&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}`.
587+
&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`.
588+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
589+
},
590+
}</pre>
591+
</div>
592+
537593
<div class="method">
538594
<code class="details" id="restore">restore(name, body=None, x__xgafv=None)</code>
539595
<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).

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ <h3>Method Details</h3>
119119
},
120120
&quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the snapshot, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
121121
&quot;state&quot;: &quot;A String&quot;, # Output only. The snapshot state.
122+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
123+
&quot;a_key&quot;: &quot;A String&quot;,
124+
},
122125
}
123126

124127
snapshotId: string, Required. The ID to use for the snapshot. The ID must be unique within the specified instance. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
@@ -209,6 +212,9 @@ <h3>Method Details</h3>
209212
},
210213
&quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the snapshot, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
211214
&quot;state&quot;: &quot;A String&quot;, # Output only. The snapshot state.
215+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
216+
&quot;a_key&quot;: &quot;A String&quot;,
217+
},
212218
}</pre>
213219
</div>
214220

@@ -242,6 +248,9 @@ <h3>Method Details</h3>
242248
},
243249
&quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the snapshot, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
244250
&quot;state&quot;: &quot;A String&quot;, # Output only. The snapshot state.
251+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
252+
&quot;a_key&quot;: &quot;A String&quot;,
253+
},
245254
},
246255
],
247256
}</pre>
@@ -279,6 +288,9 @@ <h3>Method Details</h3>
279288
},
280289
&quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the snapshot, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
281290
&quot;state&quot;: &quot;A String&quot;, # Output only. The snapshot state.
291+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
292+
&quot;a_key&quot;: &quot;A String&quot;,
293+
},
282294
}
283295

284296
updateMask: string, Required. Mask of fields to update. At least one path must be supplied in this field.

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ <h3>Method Details</h3>
127127
&quot;sourceInstanceTier&quot;: &quot;A String&quot;, # Output only. The service tier of the source Filestore instance that this backup is created from.
128128
&quot;state&quot;: &quot;A String&quot;, # Output only. The backup state.
129129
&quot;storageBytes&quot;: &quot;A String&quot;, # Output only. The size of the storage used by the backup. As backups share storage, this number is expected to change with backup creation/deletion.
130+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
131+
&quot;a_key&quot;: &quot;A String&quot;,
132+
},
130133
}
131134

132135
backupId: string, Required. The ID to use for the backup. The ID must be unique within the specified project and location. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
@@ -225,6 +228,9 @@ <h3>Method Details</h3>
225228
&quot;sourceInstanceTier&quot;: &quot;A String&quot;, # Output only. The service tier of the source Filestore instance that this backup is created from.
226229
&quot;state&quot;: &quot;A String&quot;, # Output only. The backup state.
227230
&quot;storageBytes&quot;: &quot;A String&quot;, # Output only. The size of the storage used by the backup. As backups share storage, this number is expected to change with backup creation/deletion.
231+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
232+
&quot;a_key&quot;: &quot;A String&quot;,
233+
},
228234
}</pre>
229235
</div>
230236

@@ -265,6 +271,9 @@ <h3>Method Details</h3>
265271
&quot;sourceInstanceTier&quot;: &quot;A String&quot;, # Output only. The service tier of the source Filestore instance that this backup is created from.
266272
&quot;state&quot;: &quot;A String&quot;, # Output only. The backup state.
267273
&quot;storageBytes&quot;: &quot;A String&quot;, # Output only. The size of the storage used by the backup. As backups share storage, this number is expected to change with backup creation/deletion.
274+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
275+
&quot;a_key&quot;: &quot;A String&quot;,
276+
},
268277
},
269278
],
270279
&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.
@@ -314,6 +323,9 @@ <h3>Method Details</h3>
314323
&quot;sourceInstanceTier&quot;: &quot;A String&quot;, # Output only. The service tier of the source Filestore instance that this backup is created from.
315324
&quot;state&quot;: &quot;A String&quot;, # Output only. The backup state.
316325
&quot;storageBytes&quot;: &quot;A String&quot;, # Output only. The size of the storage used by the backup. As backups share storage, this number is expected to change with backup creation/deletion.
326+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
327+
&quot;a_key&quot;: &quot;A String&quot;,
328+
},
317329
}
318330

319331
updateMask: string, Required. Mask of fields to update. At least one path must be supplied in this field.

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ <h3>Method Details</h3>
204204
&quot;suspensionReasons&quot;: [ # Output only. Field indicates all the reasons the instance is in &quot;SUSPENDED&quot; state.
205205
&quot;A String&quot;,
206206
],
207+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
208+
&quot;a_key&quot;: &quot;A String&quot;,
209+
},
207210
&quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
208211
}
209212

@@ -362,6 +365,9 @@ <h3>Method Details</h3>
362365
&quot;suspensionReasons&quot;: [ # Output only. Field indicates all the reasons the instance is in &quot;SUSPENDED&quot; state.
363366
&quot;A String&quot;,
364367
],
368+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
369+
&quot;a_key&quot;: &quot;A String&quot;,
370+
},
365371
&quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
366372
}</pre>
367373
</div>
@@ -461,6 +467,9 @@ <h3>Method Details</h3>
461467
&quot;suspensionReasons&quot;: [ # Output only. Field indicates all the reasons the instance is in &quot;SUSPENDED&quot; state.
462468
&quot;A String&quot;,
463469
],
470+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
471+
&quot;a_key&quot;: &quot;A String&quot;,
472+
},
464473
&quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
465474
},
466475
],
@@ -569,6 +578,9 @@ <h3>Method Details</h3>
569578
&quot;suspensionReasons&quot;: [ # Output only. Field indicates all the reasons the instance is in &quot;SUSPENDED&quot; state.
570579
&quot;A String&quot;,
571580
],
581+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
582+
&quot;a_key&quot;: &quot;A String&quot;,
583+
},
572584
&quot;tier&quot;: &quot;A String&quot;, # The service tier of the instance.
573585
}
574586

0 commit comments

Comments
 (0)