1description: >
2    This interface provides methods for mounting and unmounting images
3     using the legacy mode.
4
5methods:
6    - name: Mount
7      description:
8          Perform an asynchronous operation of mounting to HOST on given object.
9      parameters:
10          - name: ImageURL
11            type: string
12            description: >
13                Url to image. It should start with either `smb://` or `https://`
14                prefix
15          - name: ReadWrite
16            type: boolean
17            description: False if the image should be read-only.
18          - name: FileDescriptor
19            type: variant[int32,unixfd]
20            description: >
21                File descriptor of named pipe used for passing null-delimited
22                secret data (username and password). When there is no data to
23                pass `-1` should be passed as `INT`.
24      returns:
25          - name: Status
26            type: boolean
27            description: mounting status. True on success.
28      errors:
29          - xyz.openbmc_project.Common.Error.InternalFailure
30
31    - name: Unmount
32      description:
33          Perform an asynchronous operation of unmounting from HOST on given
34          object.
35      returns:
36          - name: Status
37            type: boolean
38            description: the unmount status. True on success.
39      errors:
40          - xyz.openbmc_project.Common.Error.InternalFailure
41
42signals:
43    - name: Completion
44      description: >
45          Signal indicating completion of mount or unmount action.
46      properties:
47          - name: Result
48            type: int32
49            description: >
50                Returns 0 for success or errno on failure after background
51                operation completes.
52