Change in vdsm[master]: schema: restore still used types

piotr.kliczewski at gmail.com piotr.kliczewski at gmail.com
Fri Apr 1 13:21:17 UTC 2016


Piotr Kliczewski has uploaded a new change for review.

Change subject: schema: restore still used types
......................................................................

schema: restore still used types

It looks like we removed whole category when we removed unused storage
methods but some of the types are reused by
StoragePool.connectStorageServer so we need to have them back.


Change-Id: I4a0992756e196d112ad3097c680c34516a1934f5
Signed-off-by: pkliczewski <piotr.kliczewski at gmail.com>
---
M lib/api/vdsmapi-schema.json
1 file changed, 136 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/74/55574/1

diff --git a/lib/api/vdsmapi-schema.json b/lib/api/vdsmapi-schema.json
index 4ff6d46..2549ace 100644
--- a/lib/api/vdsmapi-schema.json
+++ b/lib/api/vdsmapi-schema.json
@@ -4643,6 +4643,142 @@
 ##
 {'command': {'class': 'Host', 'name': 'setSafeNetworkConfig'}}
 
+##
+# @IscsiPortal:
+#
+# A host/port pair that identifies an ISCSI target.
+#
+# @host:  A fully-qualified domain name (FQDN) or IP address
+#
+# @port:  #optional A port number
+#
+# Since: 4.10.0
+##
+{'type': 'IscsiPortal', 'data': {'host': 'str', '*port': 'int'}}
+
+##
+# @IscsiCredentialsLogin:
+#
+# Login credentials for an ISCI target.
+#
+# @username:  The username used for authentication to an ISCI target
+# @password:  The password associated with the given username
+#
+# Since: 4.10.0
+##
+{'type': 'IscsiCredentialsLogin',
+ 'data': {'username': 'str', 'password': 'str'}}
+
+##
+# @IscsiCredentialsType:
+#
+# An enumeration of ISCSI login credentials types.
+#
+# @chap:  Challenge-Handshake Authentication Protocol
+#
+# Since: 4.10.0
+##
+{'enum': 'IscsiCredentialsType', 'data': ['chap']}
+
+##
+# @IscsiCredentials:
+#
+# This structure stores ISCSI credentials.
+#
+# @authType:  #optional The type of authentication to be used
+#
+# @params:    Type-specific authentication credentials
+#
+# Since: 4.10.0
+# XXX: params should probably be an enum to permit future extension.
+##
+{'type': 'IscsiCredentials',
+ 'data': {'*authType': 'IscsiCredentialsType',
+          'params': 'IscsiCredentialsLogin'}}
+
+##
+# @IscsiConnectionParameters:
+#
+# Parameters for initiating a new ISCSI connection.
+#
+# @portal:       An @IscsiPortal to identify the requested target
+#
+# @iqn:          The ISCSI Qualified Name
+#
+# @tpgt:         #optional The Target Portal Group Tag to use
+#
+# @iface:        #optional The ISCSI interface name
+#
+# @credentials:  #optional An @IscsiCredentials containing the required
+#                authentication information
+#
+# Since: 4.10.0
+##
+{'type': 'IscsiConnectionParameters',
+ 'data': {'portal': 'IscsiPortal', 'iqn': 'str', '*tpgt': 'int',
+          '*iface': 'str', '*credentials': 'IscsiCredentials'}}
+
+##
+# @PosixFsConnectionParameters:
+#
+# Parameters for initiating a new POSIX FS connection.
+#
+# @spec:     A string identifying the location of the target filesystem
+#
+# @vfstype:  The Linux VFS filesystem type
+#
+# @options:   #optional A comma-separated list of mount options
+#
+# Since: 4.10.0
+##
+{'type': 'PosixFsConnectionParameters',
+ 'data': {'spec': 'str', 'vfstype': 'str', '*options': 'str'}}
+
+##
+# @NfsConnectionParameters:
+#
+# Parameters for initiating a new NFS connection.
+#
+# @export:   The remote target in <host>:<path> format
+#
+# @retrans:  #optional The number of retry attempts for failing operations
+#
+# @timeout:  #optional The time to wait before retrying a request (specified in
+#            tenths of one second).
+#
+# @version:  #optional Set the NFS protocol version
+#
+# Since: 4.10.0
+##
+{'type': 'NfsConnectionParameters',
+ 'data': {'export': 'str', '*retrans': 'int', '*timeout': 'int',
+          '*version': 'str'}}
+
+##
+# @LocalFsConnectionParameters:
+#
+# Parameters for initiating a connection to local storage.
+#
+# @path:  The local filesystem path
+#
+# Since: 4.10.0
+##
+{'type': 'LocalFsConnectionParameters', 'data': {'path': 'str'}}
+
+##
+# @ConnectionRefParameters:
+#
+# A discriminated record of parameters used to establish a ConnectionRef.
+#
+# XXX: This type lacks an identifier to indicate the union type
+#
+# Since: 4.10.0
+##
+{'type': 'ConnectionRefParameters',
+ 'data': {},
+ 'union': ['IscsiConnectionParameters', 'PosixFsConnectionParameters',
+           'NfsConnectionParameters', 'LocalFsConnectionParameters']}
+
 ## Category: @ISCSIConnection #################################################
 ##
 # @ISCSIConnection:


-- 
To view, visit https://gerrit.ovirt.org/55574
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4a0992756e196d112ad3097c680c34516a1934f5
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Piotr Kliczewski <piotr.kliczewski at gmail.com>


More information about the vdsm-patches mailing list