blob: bae6ff1ee4a8932a52af57e53b35adc00aa66867 [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';
SANDHYA.JS26570112024-07-05 21:35:46 +053045/** OSM Create cluster url @constant */
46const OSM_CLUSTER_ENDPOINT: string = 'osm/k8scluster/v1/';
47/** OSM OKA url @constant */
48const OSM_OKA_ENDPOINT: string = 'osm/oka/v1/';
49/** OSM KSU url @constant */
50const OSM_KSU_ENDPOINT: string = 'osm/ksu/v1/';
kumaran.m3b4814a2020-05-01 19:48:54 +053051/** Grafana End-Point @constant */
SANDHYA.JS0a34dfa2023-04-25 23:59:41 +053052// eslint-disable-next-line @microsoft/sdl/no-insecure-url
kumaran.m3b4814a2020-05-01 19:48:54 +053053const GRAFANA_ENDPOINT: string = 'http://' + window.location.hostname + ':3000';
54
55/** Exporting a const @exports environment */
kumaran.m3b4814a2020-05-01 19:48:54 +053056export const environment = {
57 production: true,
Barath Kumar Rdb1aeb02020-10-13 18:14:16 +053058 packageSize: 50,
kumaran.m3b4814a2020-05-01 19:48:54 +053059 paginationNumber: 10, //Possible values are 10, 25, 50, 100
SANDHYA.JS0a34dfa2023-04-25 23:59:41 +053060 packageVersion: PACKAGEJSON.version,
kumaran.m3b4814a2020-05-01 19:48:54 +053061 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.JS8ead52b2024-06-10 18:23:41 +053075 NSINSTANCESTERMINATE_URL: OSM_NSLCM_ENDPOINT + 'ns_instances_terminate',
kumaran.m3b4814a2020-05-01 19:48:54 +053076 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 R403234e2020-07-07 15:48:58 +053087 OSM_VERSION_URL: OSM_VERSION,
SANDHYA.JS07decc02024-07-01 21:50:48 +053088 OSMREPOS_URL: OSM_ADMIN_ENDPOINT + 'osmrepos',
SANDHYA.JS26570112024-07-05 21:35:46 +053089 NSCONFIGTEMPLATE_URL: OSM_NSD_ENDPOINT + 'ns_config_template',
90 K8SCREATECLUSTER_URL: OSM_CLUSTER_ENDPOINT + 'clusters',
SANDHYA.JS92379ec2025-06-13 17:29:35 +053091 CONTROLPLANECLUSTER_URL: OSM_CLUSTER_ENDPOINT + 'control_planes',
SANDHYA.JS26570112024-07-05 21:35:46 +053092 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.m3b4814a2020-05-01 19:48:54 +053098};