From 29533ecf6c1ddf2dea39dc8f20daefced2433382 Mon Sep 17 00:00:00 2001 From: Hao Nan Li Date: Fri, 10 Mar 2023 10:07:02 -0800 Subject: [PATCH] Update docs for changing attribute `input` to `immutable` --- docs/content/docs/how-to/add-mmv1-resource.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/docs/how-to/add-mmv1-resource.md b/docs/content/docs/how-to/add-mmv1-resource.md index 6be65325b34e..1a4f52b50d87 100644 --- a/docs/content/docs/how-to/add-mmv1-resource.md +++ b/docs/content/docs/how-to/add-mmv1-resource.md @@ -40,7 +40,7 @@ as the following adding support for a `fooBar` field in the API: - !ruby/object:Api::Type::String name: 'fooBar' min_version: beta - input: true + immutable: true description: | The cloud.google.com description of this field. ``` @@ -59,7 +59,7 @@ setting values to `false`, and omit them instead. * `required: true` indicates that a field is required. New top-level fields should not be considered required, as that is a breaking change. Subfields of newly-added optional fields can be added as required. -* `input: true` indicates that a field can only be set when the API resource is +* `immutable: true` indicates that a field can only be set when the API resource is created. Changing the field will force the resource to be recreated. * `output: true` indicates that a field is output-only in the API and cannot be configured by the user.