From 0fb861067cd2408d1fc7efb85de186db0bd385ba Mon Sep 17 00:00:00 2001 From: hao-nan-li <100219545+hao-nan-li@users.noreply.github.com> Date: Fri, 10 Mar 2023 11:32:56 -0800 Subject: [PATCH] Update docs for changing attribute `input` to `immutable` (#7442) --- 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.