Add missing `@parameterVisiblity` and `@returnTypeVisibility` docs (#2309)

Pretty much what it says.
This commit is contained in:
Travis Prescott 2023-08-18 12:53:15 -07:00 коммит произвёл GitHub
Родитель bb3d2df9b4
Коммит 39ae3d7504
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 38 добавлений и 0 удалений

Просмотреть файл

@ -557,6 +557,25 @@ op uploadBytes(data: bytes, @header contentType: "application/octet-stream"): vo
```
### `@parameterVisibility` {#@parameterVisibility}
Sets which visibilities apply to parameters for the given operation.
```typespec
@parameterVisibility(...visibilities: valueof string[])
```
#### Target
`Operation`
#### Parameters
| Name | Type | Description |
|------|------|-------------|
| visibilities | `valueof model string[]` | List of visibility strings which apply to this operation. |
### `@pattern` {#@pattern}
Specify the the pattern this string should respect using simple regular expression syntax.
@ -612,6 +631,25 @@ expireAt: int32;
```
### `@returnTypeVisibility` {#@returnTypeVisibility}
Sets which visibilities apply to the return type for the given operation.
```typespec
@returnTypeVisibility(...visibilities: valueof string[])
```
#### Target
`Operation`
#### Parameters
| Name | Type | Description |
|------|------|-------------|
| visibilities | `valueof model string[]` | List of visibility strings which apply to this operation. |
### `@secret` {#@secret}
Mark this string as a secret value that should be treated carefully to avoid exposure