| 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'; |
| SANDHYA.JS | 2657011 | 2024-07-05 21:35:46 +0530 | [diff] [blame] | 45 | /** OSM Create cluster url @constant */ |
| 46 | const OSM_CLUSTER_ENDPOINT: string = 'osm/k8scluster/v1/'; |
| 47 | /** OSM OKA url @constant */ |
| 48 | const OSM_OKA_ENDPOINT: string = 'osm/oka/v1/'; |
| 49 | /** OSM KSU url @constant */ |
| 50 | const OSM_KSU_ENDPOINT: string = 'osm/ksu/v1/'; |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 51 | /** Grafana End-Point @constant */ |
| SANDHYA.JS | 0a34dfa | 2023-04-25 23:59:41 +0530 | [diff] [blame] | 52 | // eslint-disable-next-line @microsoft/sdl/no-insecure-url |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 53 | const GRAFANA_ENDPOINT: string = 'http://' + window.location.hostname + ':3000'; |
| 54 | |
| 55 | /** Exporting a const @exports environment */ |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 56 | export const environment = { |
| 57 | production: true, |
| Barath Kumar R | db1aeb0 | 2020-10-13 18:14:16 +0530 | [diff] [blame] | 58 | packageSize: 50, |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 59 | paginationNumber: 10, //Possible values are 10, 25, 50, 100 |
| SANDHYA.JS | 0a34dfa | 2023-04-25 23:59:41 +0530 | [diff] [blame] | 60 | packageVersion: PACKAGEJSON.version, |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 61 | GENERATETOKEN_URL: OSM_ADMIN_ENDPOINT + 'tokens', |
| 62 | PROJECTS_URL: OSM_ADMIN_ENDPOINT + 'projects', |
| 63 | USERS_URL: OSM_ADMIN_ENDPOINT + 'users', |
| 64 | ROLES_URL: OSM_ADMIN_ENDPOINT + 'roles', |
| 65 | VIMACCOUNTS_URL: OSM_ADMIN_ENDPOINT + 'vim_accounts', |
| 66 | WIMACCOUNTS_URL: OSM_ADMIN_ENDPOINT + 'wim_accounts', |
| 67 | SDNCONTROLLER_URL: OSM_ADMIN_ENDPOINT + 'sdns', |
| 68 | K8SCLUSTER_URL: OSM_ADMIN_ENDPOINT + 'k8sclusters', |
| 69 | K8REPOS_URL: OSM_ADMIN_ENDPOINT + 'k8srepos', |
| 70 | NETWORKSLICETEMPLATE_URL: OSM_NST_ENDPOINT + 'netslice_templates', |
| 71 | NETWORKSLICETEMPLATECONTENT_URL: OSM_NST_ENDPOINT + 'netslice_templates_content', |
| 72 | NSDINSTANCES_URL: OSM_NSLCM_ENDPOINT + 'ns_instances', |
| 73 | VNFINSTANCES_URL: OSM_NSLCM_ENDPOINT + 'vnfrs', |
| 74 | NSINSTANCESCONTENT_URL: OSM_NSLCM_ENDPOINT + 'ns_instances_content', |
| SANDHYA.JS | 8ead52b | 2024-06-10 18:23:41 +0530 | [diff] [blame] | 75 | NSINSTANCESTERMINATE_URL: OSM_NSLCM_ENDPOINT + 'ns_instances_terminate', |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 76 | NSHISTORYOPERATIONS_URL: OSM_NSLCM_ENDPOINT + 'ns_lcm_op_occs', |
| 77 | NETWORKSLICEINSTANCESCONTENT_URL: OSM_NSILCM_ENDPOINT + 'netslice_instances_content', |
| 78 | NSTHISTORYOPERATIONS_URL: OSM_NSILCM_ENDPOINT + '/nsi_lcm_op_occs', |
| 79 | NSDESCRIPTORSCONTENT_URL: OSM_NSD_ENDPOINT + 'ns_descriptors_content', |
| 80 | NSDESCRIPTORS_URL: OSM_NSD_ENDPOINT + 'ns_descriptors', |
| 81 | VNFPACKAGESCONTENT_URL: OSM_VNFDPACKAGE_ENDPOINT + 'vnf_packages_content', |
| 82 | VNFPACKAGES_URL: OSM_VNFDPACKAGE_ENDPOINT + 'vnf_packages', |
| 83 | PDUINSTANCE_URL: OSM_PDU_ENDPOINT + 'pdu_descriptors', |
| 84 | PERMISSIONS_CONFIG_FILE: ASSETS_PATH + 'config/rolePermissions.json', |
| 85 | GRAFANA_URL: GRAFANA_ENDPOINT + '/d', |
| 86 | DOMAIN_URL: OSM_ADMIN_ENDPOINT + 'domains', |
| Barath Kumar R | 403234e | 2020-07-07 15:48:58 +0530 | [diff] [blame] | 87 | OSM_VERSION_URL: OSM_VERSION, |
| SANDHYA.JS | 07decc0 | 2024-07-01 21:50:48 +0530 | [diff] [blame] | 88 | OSMREPOS_URL: OSM_ADMIN_ENDPOINT + 'osmrepos', |
| SANDHYA.JS | 2657011 | 2024-07-05 21:35:46 +0530 | [diff] [blame] | 89 | NSCONFIGTEMPLATE_URL: OSM_NSD_ENDPOINT + 'ns_config_template', |
| 90 | K8SCREATECLUSTER_URL: OSM_CLUSTER_ENDPOINT + 'clusters', |
| SANDHYA.JS | 92379ec | 2025-06-13 17:29:35 +0530 | [diff] [blame] | 91 | CONTROLPLANECLUSTER_URL: OSM_CLUSTER_ENDPOINT + 'control_planes', |
| SANDHYA.JS | 2657011 | 2024-07-05 21:35:46 +0530 | [diff] [blame] | 92 | K8SINFRACONFIGPROFILE_URL: OSM_CLUSTER_ENDPOINT + 'infra_config_profiles', |
| 93 | K8SINFRACONTROLLERPROFILE_URL: OSM_CLUSTER_ENDPOINT + 'infra_controller_profiles', |
| 94 | K8SAPPPROFILE_URL: OSM_CLUSTER_ENDPOINT + 'app_profiles', |
| 95 | K8SRESOURCEPROFILE_URL: OSM_CLUSTER_ENDPOINT + 'resource_profiles', |
| 96 | OKAPACKAGES_URL: OSM_OKA_ENDPOINT + 'oka_packages', |
| 97 | KSU_URL: OSM_KSU_ENDPOINT + 'ksus' |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 98 | }; |