* ========================LICENSE_START=================================
* O-RAN-SC
* %%
- * Copyright (C) 2019 AT&T Intellectual Property and Nokia
+ * Copyright (C) 2019 AT&T Intellectual Property
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
/**
* Gets ANR xApp client version details
- * @returns Observable that should yield a DashboardSuccessTransport
+ * @returns Observable that should yield a String
*/
getVersion(): Observable<string> {
const url = this.buildPath('version');
*/
getHealthAlive(): Observable<any> {
const url = this.buildPath('health/alive');
- return this.httpClient.get(url);
+ return this.httpClient.get(url, { observe: 'response' });
}
/**
*/
getHealthReady(): Observable<any> {
const url = this.buildPath('health/ready');
- return this.httpClient.get(url);
+ return this.httpClient.get(url, { observe: 'response' });
}
- /**
- * Gets ANR xApp client version details
- * @returns Observable that should yield a DashboardSuccessTransport
- */
+/**
+ * Gets array of gNodeB IDs
+ * @returns Observable that should yield a string array
+ */
getgNodeBs(): Observable<string[]> {
const url = this.buildPath('gnodebs');
return this.httpClient.get<string[]>(url).pipe(
* @param ggnbId Optional parameter for the gNB ID
* @param servingCellNrcgi Serving cell NRCGI
* @param neighborCellNrpci Neighbor cell NRPCI
- * @returns Neighbor cell relation table, which wraps an array
+ * @returns Observable of ANR neighbor cell relation array
*/
getNcrtInfo(ggnodeb: string = '', servingCellNrcgi: string = '', neighborCellNrpci: string = ''): Observable<ANRNeighborCellRelation[]> {
const url = this.buildPath(this.ncrtPath);
* @param servingCellNrcgi Serving cell NRCGI
* @param neighborCellNrpci Neighbor cell NRPCI
* @param mod Values to store in the specified relation
- * @returns Response code only, no data
+ * @returns Observable that yields a response code only, no data
*/
- modifyNcr(servingCellNrcgi: string, neighborCellNrpci: string, mod: ANRNeighborCellRelationMod): Observable<any> {
+ modifyNcr(servingCellNrcgi: string, neighborCellNrpci: string, mod: ANRNeighborCellRelationMod): Observable<Object> {
const url = this.buildPath(this.ncrtPath, this.servingPath, servingCellNrcgi, this.neighborPath, neighborCellNrpci);
return this.httpClient.put(url, mod, { observe: 'response' });
}
* Deletes neighbor cell relation based on Serving Cell NRCGI and Neighbor Cell NRPCI
* @param servingCellNrcgi Serving cell NRCGI
* @param neighborCellNrpci Neighbor cell NRPCI
- * @returns Response code only, no data
+ * @returns Observable that yields a response code only, no data
*/
- deleteNcr(servingCellNrcgi: string, neighborCellNrpci: string): Observable<any> {
+ deleteNcr(servingCellNrcgi: string, neighborCellNrpci: string): Observable<Object> {
const url = this.buildPath(this.ncrtPath, this.servingPath, servingCellNrcgi, this.neighborPath, neighborCellNrpci);
return this.httpClient.delete(url, { observe: 'response' });
}