blob: d32bc527449d3c3b0c07ef9b47d621669e177cee [file] [log] [blame]
Michael Landoefa037d2017-02-19 12:57:33 +02001/*-
2 * ============LICENSE_START=======================================================
3 * SDC
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
19 */
20
21import keyMirror from 'nfvo-utils/KeyMirror.js';
22import i18n from 'nfvo-utils/i18n/i18n.js';
23
24export const actionTypes = keyMirror({
25
26 LICENSE_KEY_GROUPS_LIST_LOADED: null,
27 DELETE_LICENSE_KEY_GROUP: null,
28 EDIT_LICENSE_KEY_GROUP: null,
29 ADD_LICENSE_KEY_GROUP: null,
30 LICENSE_KEY_GROUPS_DELETE_CONFIRM: null,
31 licenseKeyGroupsEditor: {
32 OPEN: null,
33 CLOSE: null,
34 DATA_CHANGED: null,
35 }
36});
37
38export const defaultState = {
39 licenseKeyGroupsEditor: {
40 type: '',
41 operationalScope: {choices: [], other: ''}
42 }
43};
44
45export const optionsInputValues = {
46 OPERATIONAL_SCOPE: [
47 {enum: '', title: i18n('please select…')},
48 {enum: 'Network_Wide', title: 'Network Wide'},
49 {enum: 'Availability_Zone', title: 'Availability Zone'},
50 {enum: 'Data_Center', title: 'Data Center'},
51 {enum: 'Tenant', title: 'Tenant'},
52 {enum: 'VM', title: 'VM'},
53 {enum: 'CPU', title: 'CPU'},
54 {enum: 'Core', title: 'Core'}
55 ],
56 TYPE: [
57 {enum: '', title: i18n('please select…')},
58 {enum: 'Universal', title: 'Universal'},
59 {enum: 'Unique', title: 'Unique'},
60 {enum: 'One_Time', title: 'One Time'}
61 ]
62};
63
64