Skip to content

Commit

Permalink
Documented api_name for fields (GoogleCloudPlatform#10433)
Browse files Browse the repository at this point in the history
  • Loading branch information
melinath authored and pawelJas committed May 16, 2024
1 parent 5133429 commit 113ab65
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/content/develop/field-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,18 @@ Example:
diff_suppress_func: 'tpgresource.CaseDiffSuppress'
```

### `api_name`
Specifies a name to use for communication with the API that is different than
the name of the field in Terraform. In general, setting an `api_name` is not
recommended, because it makes it more difficult for users and maintainers to
understand how the resource maps to the underlying API.

```yaml
- !ruby/object:Api::Type::String
name: 'fieldOne'
api_name: 'otherFieldName'
```

## `Enum` properties

### `values`
Expand Down

0 comments on commit 113ab65

Please sign in to comment.