This commit is contained in:
Chenjie Shi 2023-06-07 22:56:45 +08:00 коммит произвёл GitHub
Родитель 4448624e1a
Коммит 800f47e65e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 22 добавлений и 0 удалений

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

@ -26,6 +26,7 @@ The following documents describes AutoRest specific vendor extensions for [OpenA
- [x-ms-long-running-operation](#x-ms-long-running-operation) - indicates that the operation implemented Long Running Operation pattern as defined by the [Resource Manager API](https://msdn.microsoft.com/en-us/library/azure/dn790568.aspx).
- [x-nullable](#x-nullable) - when `true`, specifies that `null` is a valid value for the associated schema
- [x-ms-header-collection-prefix](#x-ms-header-collection-prefix) - Handle collections of arbitrary headers by distinguishing them with a specified prefix.
- [x-ms-internal](#x-ms-internal) - allow specifc operations not be exposed to users in generated client
### Microsoft Azure Extensions (available in most generators only when using `--azure-arm`)
@ -1477,6 +1478,27 @@ headers:
What is returned to users is just `key: value`.
## x-ms-internal
When an operation contains this extension, it will be generated but not be exposed to user in generated client. This extension is always used in situation when an operation needs to be wrapped by manual customization code.
**Schema**:
`true|false`
**Example**:
```json5
"paths": {
"/test": {
"put": {
"operationId": "test_put",
"x-ms-internal": true,
"description": "This operation will not be exposed to user in client"
}
}
}
```
# Metadata Extensions
## x-ms-secret