blob: 3f80777c10b23e646887540c345a848b87c61bc7 [file] [log] [blame]
kumaran.m3b4814a2020-05-01 19:48:54 +05301/*
2 Copyright 2020 TATA ELXSI
3
4 Licensed under the Apache License, Version 2.0 (the 'License');
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16 Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.in), BARATH KUMAR R (barath.r@tataelxsi.co.in)
17 */
18/**
19 * @file environment variables
20 * This file can be replaced during build by using the `fileReplacements` array.
21 * `npm run build` replaces `environment.ts` with `environment.prod.ts`.
22 * The list of file replacements can be found in `angular.json`.
23 */
24
SANDHYA.JS0a34dfa2023-04-25 23:59:41 +053025import PACKAGEJSON from 'PACKAGEJSON';
kumaran.m3b4814a2020-05-01 19:48:54 +053026
27/** OSM Admin URL @constant */
28const OSM_ADMIN_ENDPOINT: string = 'osm/admin/v1/';
29/** OSM NS LCM URL @constant */
30const OSM_NSLCM_ENDPOINT: string = 'osm/nslcm/v1/';
31/** OSM NST URL @constant */
32const OSM_NST_ENDPOINT: string = 'osm/nst/v1/';
33/** OSM NSI LCM URL @constant */
34const OSM_NSILCM_ENDPOINT: string = 'osm/nsilcm/v1/';
35/** OSM VNFD PACKAGES URL @constant */
36const OSM_VNFDPACKAGE_ENDPOINT: string = 'osm/vnfpkgm/v1/';
37/** OSM PDU URL @constant */
38const OSM_PDU_ENDPOINT: string = 'osm/pdu/v1/';
39/** OSM NSD URL @constant */
40const OSM_NSD_ENDPOINT: string = 'osm/nsd/v1/';
41/** Assets root path @constant */
42const ASSETS_PATH: string = 'assets/';
43/** OSM Version @constant */
44const OSM_VERSION: string = 'osm/version';
45/** Grafana End-Point @constant */
SANDHYA.JS0a34dfa2023-04-25 23:59:41 +053046// eslint-disable-next-line @microsoft/sdl/no-insecure-url
kumaran.m3b4814a2020-05-01 19:48:54 +053047const GRAFANA_ENDPOINT: string = 'http://' + window.location.hostname + ':3000';
48
49/** Exporting a const @exports environment */
kumaran.m3b4814a2020-05-01 19:48:54 +053050export const environment = {
51 production: false,
Barath Kumar Rdb1aeb02020-10-13 18:14:16 +053052 packageSize: 50,
kumaran.m3b4814a2020-05-01 19:48:54 +053053 paginationNumber: 10, //Possible values are 10, 25, 50, 100
SANDHYA.JS0a34dfa2023-04-25 23:59:41 +053054 packageVersion: PACKAGEJSON.version,
kumaran.m3b4814a2020-05-01 19:48:54 +053055 GENERATETOKEN_URL: OSM_ADMIN_ENDPOINT + 'tokens',
56 PROJECTS_URL: OSM_ADMIN_ENDPOINT + 'projects',
57 USERS_URL: OSM_ADMIN_ENDPOINT + 'users',
58 ROLES_URL: OSM_ADMIN_ENDPOINT + 'roles',
59 VIMACCOUNTS_URL: OSM_ADMIN_ENDPOINT + 'vim_accounts',
60 WIMACCOUNTS_URL: OSM_ADMIN_ENDPOINT + 'wim_accounts',
61 SDNCONTROLLER_URL: OSM_ADMIN_ENDPOINT + 'sdns',
62 K8SCLUSTER_URL: OSM_ADMIN_ENDPOINT + 'k8sclusters',
63 K8REPOS_URL: OSM_ADMIN_ENDPOINT + 'k8srepos',
64 NETWORKSLICETEMPLATE_URL: OSM_NST_ENDPOINT + 'netslice_templates',
65 NETWORKSLICETEMPLATECONTENT_URL: OSM_NST_ENDPOINT + 'netslice_templates_content',
66 NSDINSTANCES_URL: OSM_NSLCM_ENDPOINT + 'ns_instances',
67 VNFINSTANCES_URL: OSM_NSLCM_ENDPOINT + 'vnfrs',
68 NSINSTANCESCONTENT_URL: OSM_NSLCM_ENDPOINT + 'ns_instances_content',
SANDHYA.JS8ead52b2024-06-10 18:23:41 +053069 NSINSTANCESTERMINATE_URL: OSM_NSLCM_ENDPOINT + 'ns_instances_terminate',
kumaran.m3b4814a2020-05-01 19:48:54 +053070 NSHISTORYOPERATIONS_URL: OSM_NSLCM_ENDPOINT + 'ns_lcm_op_occs',
71 NETWORKSLICEINSTANCESCONTENT_URL: OSM_NSILCM_ENDPOINT + 'netslice_instances_content',
72 NSTHISTORYOPERATIONS_URL: OSM_NSILCM_ENDPOINT + 'nsi_lcm_op_occs',
73 NSDESCRIPTORSCONTENT_URL: OSM_NSD_ENDPOINT + 'ns_descriptors_content',
74 NSDESCRIPTORS_URL: OSM_NSD_ENDPOINT + 'ns_descriptors',
75 VNFPACKAGESCONTENT_URL: OSM_VNFDPACKAGE_ENDPOINT + 'vnf_packages_content',
76 VNFPACKAGES_URL: OSM_VNFDPACKAGE_ENDPOINT + 'vnf_packages',
77 PDUINSTANCE_URL: OSM_PDU_ENDPOINT + 'pdu_descriptors',
78 PERMISSIONS_CONFIG_FILE: ASSETS_PATH + 'config/rolePermissions.json',
79 GRAFANA_URL: GRAFANA_ENDPOINT + '/d',
80 DOMAIN_URL: OSM_ADMIN_ENDPOINT + 'domains',
Barath Kumar R403234e2020-07-07 15:48:58 +053081 OSM_VERSION_URL: OSM_VERSION,
82 OSMREPOS_URL: OSM_ADMIN_ENDPOINT + 'osmrepos'
kumaran.m3b4814a2020-05-01 19:48:54 +053083};