qapi: Add missing union tag documentation

Low-hanging fruit, and except for StatsFilter, the only members of
these unions lacking documentation.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20240205074709.3613229-16-armbru@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Markus Armbruster 2024-02-05 08:47:09 +01:00
parent 8bf69544b5
commit 89a2273b9d
12 changed files with 34 additions and 16 deletions

View File

@ -252,6 +252,8 @@
# A discriminated record of image format specific information # A discriminated record of image format specific information
# structures. # structures.
# #
# @type: block driver name
#
# Since: 1.7 # Since: 1.7
## ##
{ 'union': 'ImageInfoSpecific', { 'union': 'ImageInfoSpecific',
@ -1102,6 +1104,8 @@
# #
# Block driver specific statistics # Block driver specific statistics
# #
# @driver: block driver name
#
# Since: 4.2 # Since: 4.2
## ##
{ 'union': 'BlockStatsSpecific', { 'union': 'BlockStatsSpecific',
@ -3472,6 +3476,8 @@
## ##
# @BlockdevQcowEncryption: # @BlockdevQcowEncryption:
# #
# @format: encryption format
#
# Since: 2.10 # Since: 2.10
## ##
{ 'union': 'BlockdevQcowEncryption', { 'union': 'BlockdevQcowEncryption',
@ -3506,6 +3512,8 @@
## ##
# @BlockdevQcow2Encryption: # @BlockdevQcow2Encryption:
# #
# @format: encryption format
#
# Since: 2.10 # Since: 2.10
## ##
{ 'union': 'BlockdevQcow2Encryption', { 'union': 'BlockdevQcow2Encryption',
@ -3656,6 +3664,8 @@
## ##
# @SshHostKeyCheck: # @SshHostKeyCheck:
# #
# @mode: How to check the host key
#
# Since: 2.12 # Since: 2.12
## ##
{ 'union': 'SshHostKeyCheck', { 'union': 'SshHostKeyCheck',
@ -4225,6 +4235,8 @@
## ##
# @RbdEncryptionCreateOptions: # @RbdEncryptionCreateOptions:
# #
# @format: Encryption format.
#
# Since: 6.1 # Since: 6.1
## ##
{ 'union': 'RbdEncryptionCreateOptions', { 'union': 'RbdEncryptionCreateOptions',

View File

@ -346,6 +346,8 @@
# Describes a block export, i.e. how single node should be exported on # Describes a block export, i.e. how single node should be exported on
# an external interface. # an external interface.
# #
# @type: Block export type
#
# @id: A unique identifier for the block export (across all export # @id: A unique identifier for the block export (across all export
# types) # types)
# #

View File

@ -634,6 +634,8 @@
# #
# Configuration info for the new chardev backend. # Configuration info for the new chardev backend.
# #
# @type: backend type
#
# Since: 1.4 # Since: 1.4
## ##
{ 'union': 'ChardevBackend', { 'union': 'ChardevBackend',

View File

@ -645,6 +645,8 @@
# The options that are available for all asymmetric key algorithms # The options that are available for all asymmetric key algorithms
# when creating a new QCryptoAkCipher. # when creating a new QCryptoAkCipher.
# #
# @alg: encryption cipher algorithm
#
# Since: 7.1 # Since: 7.1
## ##
{ 'union': 'QCryptoAkCipherOptions', { 'union': 'QCryptoAkCipherOptions',

View File

@ -443,6 +443,8 @@
# #
# A discriminated record of NUMA options. (for OptsVisitor) # A discriminated record of NUMA options. (for OptsVisitor)
# #
# @type: NUMA option type
#
# Since: 2.1 # Since: 2.1
## ##
{ 'union': 'NumaOptions', { 'union': 'NumaOptions',
@ -1448,6 +1450,8 @@
# #
# Union containing information about a memory device # Union containing information about a memory device
# #
# @type: memory device type
#
# Since: 2.1 # Since: 2.1
## ##
{ 'union': 'MemoryDeviceInfo', { 'union': 'MemoryDeviceInfo',

View File

@ -1630,6 +1630,8 @@
# #
# Migration endpoint configuration. # Migration endpoint configuration.
# #
# @transport: The migration stream transport mechanism
#
# Since: 8.2 # Since: 8.2
## ##
{ 'union': 'MigrationAddress', { 'union': 'MigrationAddress',

View File

@ -39,18 +39,13 @@
'BlockDirtyBitmapAddWrapper', 'BlockDirtyBitmapAddWrapper',
'BlockDirtyBitmapMergeWrapper', 'BlockDirtyBitmapMergeWrapper',
'BlockDirtyBitmapWrapper', 'BlockDirtyBitmapWrapper',
'BlockExportOptions',
'BlockStatsSpecific',
'BlockdevBackupWrapper', 'BlockdevBackupWrapper',
'BlockdevDriver', 'BlockdevDriver',
'BlockdevQcow2Encryption',
'BlockdevQcow2EncryptionFormat', 'BlockdevQcow2EncryptionFormat',
'BlockdevQcowEncryption',
'BlockdevSnapshotInternalWrapper', 'BlockdevSnapshotInternalWrapper',
'BlockdevSnapshotSyncWrapper', 'BlockdevSnapshotSyncWrapper',
'BlockdevSnapshotWrapper', 'BlockdevSnapshotWrapper',
'BlockdevVmdkAdapterType', 'BlockdevVmdkAdapterType',
'ChardevBackend',
'ChardevBackendKind', 'ChardevBackendKind',
'CpuS390Entitlement', 'CpuS390Entitlement',
'CpuS390Polarization', 'CpuS390Polarization',
@ -64,7 +59,6 @@
'GrabToggleKeys', 'GrabToggleKeys',
'GuestPanicInformationHyperV', 'GuestPanicInformationHyperV',
'HotKeyMod', 'HotKeyMod',
'ImageInfoSpecific',
'ImageInfoSpecificKind', 'ImageInfoSpecificKind',
'InputAxis', 'InputAxis',
'InputButton', 'InputButton',
@ -73,38 +67,28 @@
'IscsiHeaderDigest', 'IscsiHeaderDigest',
'IscsiTransport', 'IscsiTransport',
'JSONType', 'JSONType',
'KeyValue',
'KeyValueKind', 'KeyValueKind',
'MemoryDeviceInfo',
'MemoryDeviceInfoKind', 'MemoryDeviceInfoKind',
'MigrateSetParameters', 'MigrateSetParameters',
'MigrationAddress',
'NetClientDriver', 'NetClientDriver',
'NumaOptions',
'ObjectType', 'ObjectType',
'PciMemoryRegion', 'PciMemoryRegion',
'QCryptoAkCipherKeyType', 'QCryptoAkCipherKeyType',
'QCryptoAkCipherOptions',
'QCryptodevBackendServiceType', 'QCryptodevBackendServiceType',
'QKeyCode', 'QKeyCode',
'Qcow2OverlapCheckFlags', 'Qcow2OverlapCheckFlags',
'RbdAuthMode', 'RbdAuthMode',
'RbdEncryptionCreateOptions',
'RbdImageEncryptionFormat', 'RbdImageEncryptionFormat',
'SocketAddressLegacy',
'SshHostKeyCheck',
'StatsFilter', 'StatsFilter',
'StatsValue', 'StatsValue',
'String', 'String',
'StringWrapper', 'StringWrapper',
'SysEmuTarget', 'SysEmuTarget',
'ThrottleGroupProperties', 'ThrottleGroupProperties',
'TransactionAction',
'VncPrimaryAuth', 'VncPrimaryAuth',
'VncVencryptSubAuth', 'VncVencryptSubAuth',
'X86CPURegister32', 'X86CPURegister32',
'XDbgBlockGraph', 'XDbgBlockGraph',
'YankInstance',
'YankInstanceType', 'YankInstanceType',
'blockdev-reopen', 'blockdev-reopen',
'query-cpu-model-baseline', 'query-cpu-model-baseline',

View File

@ -178,6 +178,8 @@
# Captures the address of a socket, which could also be a named file # Captures the address of a socket, which could also be a named file
# descriptor # descriptor
# #
# @type: Transport type
#
# Note: This type is deprecated in favor of SocketAddress. The # Note: This type is deprecated in favor of SocketAddress. The
# difference between SocketAddressLegacy and SocketAddress is that # difference between SocketAddressLegacy and SocketAddress is that
# the latter has fewer {} on the wire. # the latter has fewer {} on the wire.

View File

@ -120,6 +120,8 @@
# - which providers to request statistics from # - which providers to request statistics from
# - which named values to return within each provider # - which named values to return within each provider
# #
# @target: the kind of objects to query
#
# Since: 7.1 # Since: 7.1
## ##
{ 'union': 'StatsFilter', { 'union': 'StatsFilter',

View File

@ -158,6 +158,8 @@
# A discriminated record of operations that can be performed with # A discriminated record of operations that can be performed with
# @transaction. # @transaction.
# #
# @type: the operation to be performed
#
# Since: 1.1 # Since: 1.1
## ##
{ 'union': 'TransactionAction', { 'union': 'TransactionAction',

View File

@ -1012,6 +1012,8 @@
# #
# Represents a keyboard key. # Represents a keyboard key.
# #
# @type: key encoding
#
# Since: 1.3 # Since: 1.3
## ##
{ 'union': 'KeyValue', { 'union': 'KeyValue',

View File

@ -49,6 +49,8 @@
# A yank instance can be yanked with the @yank qmp command to recover # A yank instance can be yanked with the @yank qmp command to recover
# from a hanging QEMU. # from a hanging QEMU.
# #
# @type: yank instance type
#
# Currently implemented yank instances: # Currently implemented yank instances:
# #
# - nbd block device: Yanking it will shut down the connection to the # - nbd block device: Yanking it will shut down the connection to the