Skip to content

Commit 3b9ae88

Browse files
Google APIscopybara-github
authored andcommitted
docs: Mark revision_id in CommitSchemaRevisionRequest deprecated
PiperOrigin-RevId: 508076213
1 parent ebf47e2 commit 3b9ae88

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

google/pubsub/v1/schema.proto

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -320,17 +320,17 @@ message DeleteSchemaRevisionRequest {
320320
// Required. The name of the schema revision to be deleted, with a revision ID
321321
// explicitly included.
322322
//
323-
// Example: projects/123/schemas/my-schema@c7cfa2a8
323+
// Example: `projects/123/schemas/my-schema@c7cfa2a8`
324324
string name = 1 [
325325
(google.api.field_behavior) = REQUIRED,
326326
(google.api.resource_reference) = { type: "pubsub.googleapis.com/Schema" }
327327
];
328328

329-
// Required. The revision ID to roll back to.
330-
// It must be a revision of the same schema.
331-
//
332-
// Example: c7cfa2a8
333-
string revision_id = 2 [(google.api.field_behavior) = REQUIRED];
329+
// Optional. This field is deprecated and should not be used for specifying
330+
// the revision ID. The revision ID should be specified via the `name`
331+
// parameter.
332+
string revision_id = 2
333+
[deprecated = true, (google.api.field_behavior) = OPTIONAL];
334334
}
335335

336336
// Request for the `DeleteSchema` method.

0 commit comments

Comments
 (0)