|
| 1 | +// Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +// or more contributor license agreements. See the NOTICE file |
| 3 | +// distributed with this work for additional information |
| 4 | +// regarding copyright ownership. The ASF licenses this file |
| 5 | +// to you under the Apache License, Version 2.0 (the |
| 6 | +// "License"); you may not use this file except in compliance |
| 7 | +// with the License. You may obtain a copy of the License at |
| 8 | +// |
| 9 | +// http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +// |
| 11 | +// Unless required by applicable law or agreed to in writing, |
| 12 | +// software distributed under the License is distributed on an |
| 13 | +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +// KIND, either express or implied. See the License for the |
| 15 | +// specific language governing permissions and limitations |
| 16 | +// under the License. |
| 17 | + |
| 18 | +export default { |
| 19 | + name: 'backuprepository', |
| 20 | + title: 'label.backup.repository', |
| 21 | + icon: 'inbox-outlined', |
| 22 | + docHelp: 'adminguide/nas_plugin.html', |
| 23 | + permission: ['listBackupRepositories'], |
| 24 | + searchFilters: ['zoneid'], |
| 25 | + columns: ['name', 'provider', 'type', 'address', 'zonename'], |
| 26 | + details: ['name', 'type', 'address', 'provider', 'zonename', 'crosszoneinstancecreation'], |
| 27 | + actions: [ |
| 28 | + { |
| 29 | + api: 'addBackupRepository', |
| 30 | + icon: 'plus-outlined', |
| 31 | + label: 'label.backup.repository.add', |
| 32 | + listView: true, |
| 33 | + args: [ |
| 34 | + 'name', 'provider', 'address', 'type', 'mountopts', 'zoneid', 'crosszoneinstancecreation' |
| 35 | + ], |
| 36 | + mapping: { |
| 37 | + type: { |
| 38 | + options: ['nfs', 'cifs', 'ceph'] |
| 39 | + }, |
| 40 | + provider: { |
| 41 | + value: (record) => { return 'nas' } |
| 42 | + } |
| 43 | + } |
| 44 | + }, |
| 45 | + { |
| 46 | + api: 'updateBackupRepository', |
| 47 | + icon: 'edit-outlined', |
| 48 | + label: 'label.backup.repository.edit', |
| 49 | + message: 'message.action.edit.backup.repository', |
| 50 | + args: ['name', 'address', 'mountopts', 'crosszoneinstancecreation'], |
| 51 | + dataView: true, |
| 52 | + popup: true |
| 53 | + }, |
| 54 | + { |
| 55 | + api: 'deleteBackupRepository', |
| 56 | + icon: 'delete-outlined', |
| 57 | + label: 'label.backup.repository.remove', |
| 58 | + message: 'message.action.delete.backup.repository', |
| 59 | + dataView: true, |
| 60 | + popup: true |
| 61 | + } |
| 62 | + ] |
| 63 | +} |
0 commit comments