| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 1 | /* |
| 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.JS | 0a34dfa | 2023-04-25 23:59:41 +0530 | [diff] [blame] | 25 | import PACKAGEJSON from 'PACKAGEJSON'; |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 26 | |
| 27 | /** OSM Admin URL @constant */ |
| 28 | const OSM_ADMIN_ENDPOINT: string = 'osm/admin/v1/'; |
| 29 | /** OSM NS LCM URL @constant */ |
| 30 | const OSM_NSLCM_ENDPOINT: string = 'osm/nslcm/v1/'; |
| 31 | /** OSM NST URL @constant */ |
| 32 | const OSM_NST_ENDPOINT: string = 'osm/nst/v1/'; |
| 33 | /** OSM NSI LCM URL @constant */ |
| 34 | const OSM_NSILCM_ENDPOINT: string = 'osm/nsilcm/v1/'; |
| 35 | /** OSM VNFD PACKAGES URL @constant */ |
| 36 | const OSM_VNFDPACKAGE_ENDPOINT: string = 'osm/vnfpkgm/v1/'; |
| 37 | /** OSM PDU URL @constant */ |
| 38 | const OSM_PDU_ENDPOINT: string = 'osm/pdu/v1/'; |
| 39 | /** OSM NSD URL @constant */ |
| 40 | const OSM_NSD_ENDPOINT: string = 'osm/nsd/v1/'; |
| 41 | /** Assets root path @constant */ |
| 42 | const ASSETS_PATH: string = 'assets/'; |
| 43 | /** OSM Version @constant */ |
| 44 | const OSM_VERSION: string = 'osm/version'; |
| 45 | /** Grafana End-Point @constant */ |
| SANDHYA.JS | 0a34dfa | 2023-04-25 23:59:41 +0530 | [diff] [blame] | 46 | // eslint-disable-next-line @microsoft/sdl/no-insecure-url |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 47 | const GRAFANA_ENDPOINT: string = 'http://' + window.location.hostname + ':3000'; |
| 48 | |
| 49 | /** Exporting a const @exports environment */ |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 50 | export const environment = { |
| 51 | production: false, |
| Barath Kumar R | db1aeb0 | 2020-10-13 18:14:16 +0530 | [diff] [blame] | 52 | packageSize: 50, |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 53 | paginationNumber: 10, //Possible values are 10, 25, 50, 100 |
| SANDHYA.JS | 0a34dfa | 2023-04-25 23:59:41 +0530 | [diff] [blame] | 54 | packageVersion: PACKAGEJSON.version, |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 55 | 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.JS | 8ead52b | 2024-06-10 18:23:41 +0530 | [diff] [blame] | 69 | NSINSTANCESTERMINATE_URL: OSM_NSLCM_ENDPOINT + 'ns_instances_terminate', |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 70 | 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 R | 403234e | 2020-07-07 15:48:58 +0530 | [diff] [blame] | 81 | OSM_VERSION_URL: OSM_VERSION, |
| SANDHYA.JS | 07decc0 | 2024-07-01 21:50:48 +0530 | [diff] [blame^] | 82 | OSMREPOS_URL: OSM_ADMIN_ENDPOINT + 'osmrepos', |
| 83 | NSCONFIGTEMPLATE_URL: OSM_NSD_ENDPOINT + 'ns_config_template' |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 84 | }; |