2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 import keyMirror from 'nfvo-utils/KeyMirror.js';
22 import i18n from 'nfvo-utils/i18n/i18n.js';
24 export const actionTypes = keyMirror({
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: {
38 export const defaultState = {
39 licenseKeyGroupsEditor: {
41 operationalScope: {choices: [], other: ''}
45 export const optionsInputValues = {
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'}
57 {enum: '', title: i18n('please select…')},
58 {enum: 'Universal', title: 'Universal'},
59 {enum: 'Unique', title: 'Unique'},
60 {enum: 'One_Time', title: 'One Time'}