From d2c683570632d0510749dfd97aa47caeea471643 Mon Sep 17 00:00:00 2001 From: "saul.gill" Date: Wed, 26 Feb 2025 17:31:51 +0000 Subject: Controller behaviour fixes Issue-ID: CCSDK-4090 Change-Id: I76644282bea67e33ff346fe999d65f4d3b54751b Signed-off-by: saul.gill --- .../openapitoolgen/offeredapis/pms-api/index.html | 1442 ++++----- .../offeredapis/pms-api/v3/custom/index.html | 2496 ++++++++-------- .../offeredapis/pms-api/v3/index.html | 3074 ++++++++++---------- .../swagger/custom/a1pms-api-custom-v3.json | 151 +- .../api/offeredapis/swagger/pms-api-v3.json | 150 +- .../api/offeredapis/swagger/pms-api-v3.yaml | 19 +- .../controllers/v2/RicRepositoryController.java | 12 +- .../controllers/v3/RicRepositoryControllerV3.java | 55 +- .../a1policymanagementservice/util/v3/Helper.java | 17 +- .../application_configuration_schema.json | 3 +- .../v3/RicRepositoryControllerV3Test.java | 4 +- .../openapitoolgen/offeredapis/pms-api/index.html | 1442 ++++----- .../offeredapis/pms-api/v3/custom/index.html | 2496 ++++++++-------- .../offeredapis/pms-api/v3/index.html | 3074 ++++++++++---------- .../swagger/custom/a1pms-api-custom-v3.json | 151 +- docs/offeredapis/swagger/pms-api-v3.json | 150 +- docs/offeredapis/swagger/pms-api-v3.yaml | 107 +- 17 files changed, 7217 insertions(+), 7626 deletions(-) diff --git a/a1-policy-management/api/offeredapis/openapitoolgen/offeredapis/pms-api/index.html b/a1-policy-management/api/offeredapis/openapitoolgen/offeredapis/pms-api/index.html index c59e6223..38e9caed 100644 --- a/a1-policy-management/api/offeredapis/openapitoolgen/offeredapis/pms-api/index.html +++ b/a1-policy-management/api/offeredapis/openapitoolgen/offeredapis/pms-api/index.html @@ -844,313 +844,313 @@ ul.nav-tabs { + + + + + +
+
+
+ +
+ +
+

@@ -12284,10 +12306,10 @@ pub fn main() {

-

Either a Near-RT RIC identity or a Managed Element identity can be specified.<br>The intention with Managed Element identity is the ID used in O1 for accessing the traffical element (such as the ID of CU).

+

A ricId path parameter must be specified to retrieve associated ric infomation


-
/rics/ric
+
/rics/{ricId}

Usage and SDK Samples

@@ -12311,7 +12333,7 @@ pub fn main() {
curl -X GET \
  -H "Accept: application/json,application/problem+json" \
- "https://example.com/a1-policy-management/v1/rics/ric?managedElementId=managedElementId_example&ricId=ricId_example"
+ "https://example.com/a1-policy-management/v1/rics/{ricId}"
 
@@ -12328,12 +12350,11 @@ public class NearRTRICRepositoryApiExample { // Create an instance of the API class NearRTRICRepositoryApi apiInstance = new NearRTRICRepositoryApi(); - String managedElementId = managedElementId_example; // String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned. String ricId = ricId_example; // String | The identity of a Near-RT RIC to get information for. String accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. try { - RicInfo result = apiInstance.getRic(managedElementId, ricId, accept); + RicInfo result = apiInstance.getRic(ricId, accept); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NearRTRICRepositoryApi#getRic"); @@ -12349,12 +12370,11 @@ public class NearRTRICRepositoryApiExample { final api_instance = DefaultApi(); -final String managedElementId = new String(); // String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned. final String ricId = new String(); // String | The identity of a Near-RT RIC to get information for. final String accept = new String(); // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. try { - final result = await api_instance.getRic(managedElementId, ricId, accept); + final result = await api_instance.getRic(ricId, accept); print(result); } catch (e) { print('Exception when calling DefaultApi->getRic: $e\n'); @@ -12369,12 +12389,11 @@ try { public class NearRTRICRepositoryApiExample { public static void main(String[] args) { NearRTRICRepositoryApi apiInstance = new NearRTRICRepositoryApi(); - String managedElementId = managedElementId_example; // String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned. String ricId = ricId_example; // String | The identity of a Near-RT RIC to get information for. String accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. try { - RicInfo result = apiInstance.getRic(managedElementId, ricId, accept); + RicInfo result = apiInstance.getRic(ricId, accept); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NearRTRICRepositoryApi#getRic"); @@ -12392,13 +12411,11 @@ public class NearRTRICRepositoryApiExample { // Create an instance of the API class NearRTRICRepositoryApi *apiInstance = [[NearRTRICRepositoryApi alloc] init]; -String *managedElementId = managedElementId_example; // The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned. (optional) (default to null) -String *ricId = ricId_example; // The identity of a Near-RT RIC to get information for. (optional) (default to null) +String *ricId = ricId_example; // The identity of a Near-RT RIC to get information for. (default to null) String *accept = application/json; // Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null) // Returns info for one Near-RT RIC -[apiInstance getRicWith:managedElementId - ricId:ricId +[apiInstance getRicWith:ricId accept:accept completionHandler: ^(RicInfo output, NSError* error) { if (output) { @@ -12416,9 +12433,8 @@ String *accept = application/json; // Specifies the content type that the client // Create an instance of the API class var api = new A1PolicyManagementApi.NearRTRICRepositoryApi() +var ricId = ricId_example; // {String} The identity of a Near-RT RIC to get information for. var opts = { - 'managedElementId': managedElementId_example, // {String} The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned. - 'ricId': ricId_example, // {String} The identity of a Near-RT RIC to get information for. 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. }; @@ -12429,7 +12445,7 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -api.getRic(opts, callback); +api.getRic(ricId, opts, callback);
@@ -12452,13 +12468,12 @@ namespace Example // Create an instance of the API class var apiInstance = new NearRTRICRepositoryApi(); - var managedElementId = managedElementId_example; // String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned. (optional) (default to null) - var ricId = ricId_example; // String | The identity of a Near-RT RIC to get information for. (optional) (default to null) + var ricId = ricId_example; // String | The identity of a Near-RT RIC to get information for. (default to null) var accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null) try { // Returns info for one Near-RT RIC - RicInfo result = apiInstance.getRic(managedElementId, ricId, accept); + RicInfo result = apiInstance.getRic(ricId, accept); Debug.WriteLine(result); } catch (Exception e) { Debug.Print("Exception when calling NearRTRICRepositoryApi.getRic: " + e.Message ); @@ -12475,12 +12490,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\NearRTRICRepositoryApi(); -$managedElementId = managedElementId_example; // String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned. $ricId = ricId_example; // String | The identity of a Near-RT RIC to get information for. $accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. try { - $result = $api_instance->getRic($managedElementId, $ricId, $accept); + $result = $api_instance->getRic($ricId, $accept); print_r($result); } catch (Exception $e) { echo 'Exception when calling NearRTRICRepositoryApi->getRic: ', $e->getMessage(), PHP_EOL; @@ -12495,12 +12509,11 @@ use WWW::OPenAPIClient::NearRTRICRepositoryApi; # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::NearRTRICRepositoryApi->new(); -my $managedElementId = managedElementId_example; # String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned. my $ricId = ricId_example; # String | The identity of a Near-RT RIC to get information for. my $accept = application/json; # String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. eval { - my $result = $api_instance->getRic(managedElementId => $managedElementId, ricId => $ricId, accept => $accept); + my $result = $api_instance->getRic(ricId => $ricId, accept => $accept); print Dumper($result); }; if ($@) { @@ -12517,13 +12530,12 @@ from pprint import pprint # Create an instance of the API class api_instance = openapi_client.NearRTRICRepositoryApi() -managedElementId = managedElementId_example # String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned. (optional) (default to null) -ricId = ricId_example # String | The identity of a Near-RT RIC to get information for. (optional) (default to null) +ricId = ricId_example # String | The identity of a Near-RT RIC to get information for. (default to null) accept = application/json # String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null) try: # Returns info for one Near-RT RIC - api_response = api_instance.get_ric(managedElementId=managedElementId, ricId=ricId, accept=accept) + api_response = api_instance.get_ric(ricId, accept=accept) pprint(api_response) except ApiException as e: print("Exception when calling NearRTRICRepositoryApi->getRic: %s\n" % e) @@ -12533,12 +12545,11 @@ except ApiException as e:
extern crate NearRTRICRepositoryApi;
 
 pub fn main() {
-    let managedElementId = managedElementId_example; // String
     let ricId = ricId_example; // String
     let accept = application/json; // String
 
     let mut context = NearRTRICRepositoryApi::Context::default();
-    let result = client.getRic(managedElementId, ricId, accept, &context).wait();
+    let result = client.getRic(ricId, accept, &context).wait();
 
     println!("{:?}", result);
 }
@@ -12553,18 +12564,17 @@ pub fn main() {
 
                           

Parameters

- -
Header parameters
+
Path parameters
- - - - - + + + + + @@ -12582,19 +12595,17 @@ Specifies the content type that the client expects to receive in response to the
NameDescription
Accept
NameDescription
ricId* -
+
@@ -12572,9 +12582,12 @@ pub fn main() {
-Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. +The identity of a Near-RT RIC to get information for.
+
+ Required +
- - -
Query parameters
+
Header parameters
- + - -
Name Description
managedElementId
Accept -
+
@@ -12602,7 +12613,7 @@ Specifies the content type that the client expects to receive in response to the
-The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned. +Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
@@ -12610,27 +12621,10 @@ The identity of a Managed Element. If given, the Near-RT RIC managing the ME is
ricId +
-
-
-
- - String - -
-The identity of a Near-RT RIC to get information for. -
-
-
-
- - - -

Responses

@@ -12663,20 +12657,20 @@ The identity of a Near-RT RIC to get information for.
+ + + + + +
+
+
+ +
+ +
+

@@ -12284,10 +12306,10 @@ pub fn main() {

-

Either a Near-RT RIC identity or a Managed Element identity can be specified.<br>The intention with Managed Element identity is the ID used in O1 for accessing the traffical element (such as the ID of CU).

+

A ricId path parameter must be specified to retrieve associated ric infomation


-
/rics/ric
+
/rics/{ricId}

Usage and SDK Samples

@@ -12311,7 +12333,7 @@ pub fn main() {
curl -X GET \
  -H "Accept: application/json,application/problem+json" \
- "https://example.com/a1-policy-management/v1/rics/ric?managedElementId=managedElementId_example&ricId=ricId_example"
+ "https://example.com/a1-policy-management/v1/rics/{ricId}"
 
@@ -12328,12 +12350,11 @@ public class NearRTRICRepositoryApiExample { // Create an instance of the API class NearRTRICRepositoryApi apiInstance = new NearRTRICRepositoryApi(); - String managedElementId = managedElementId_example; // String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned. String ricId = ricId_example; // String | The identity of a Near-RT RIC to get information for. String accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. try { - RicInfo result = apiInstance.getRic(managedElementId, ricId, accept); + RicInfo result = apiInstance.getRic(ricId, accept); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NearRTRICRepositoryApi#getRic"); @@ -12349,12 +12370,11 @@ public class NearRTRICRepositoryApiExample { final api_instance = DefaultApi(); -final String managedElementId = new String(); // String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned. final String ricId = new String(); // String | The identity of a Near-RT RIC to get information for. final String accept = new String(); // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. try { - final result = await api_instance.getRic(managedElementId, ricId, accept); + final result = await api_instance.getRic(ricId, accept); print(result); } catch (e) { print('Exception when calling DefaultApi->getRic: $e\n'); @@ -12369,12 +12389,11 @@ try { public class NearRTRICRepositoryApiExample { public static void main(String[] args) { NearRTRICRepositoryApi apiInstance = new NearRTRICRepositoryApi(); - String managedElementId = managedElementId_example; // String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned. String ricId = ricId_example; // String | The identity of a Near-RT RIC to get information for. String accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. try { - RicInfo result = apiInstance.getRic(managedElementId, ricId, accept); + RicInfo result = apiInstance.getRic(ricId, accept); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NearRTRICRepositoryApi#getRic"); @@ -12392,13 +12411,11 @@ public class NearRTRICRepositoryApiExample { // Create an instance of the API class NearRTRICRepositoryApi *apiInstance = [[NearRTRICRepositoryApi alloc] init]; -String *managedElementId = managedElementId_example; // The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned. (optional) (default to null) -String *ricId = ricId_example; // The identity of a Near-RT RIC to get information for. (optional) (default to null) +String *ricId = ricId_example; // The identity of a Near-RT RIC to get information for. (default to null) String *accept = application/json; // Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null) // Returns info for one Near-RT RIC -[apiInstance getRicWith:managedElementId - ricId:ricId +[apiInstance getRicWith:ricId accept:accept completionHandler: ^(RicInfo output, NSError* error) { if (output) { @@ -12416,9 +12433,8 @@ String *accept = application/json; // Specifies the content type that the client // Create an instance of the API class var api = new A1PolicyManagementApi.NearRTRICRepositoryApi() +var ricId = ricId_example; // {String} The identity of a Near-RT RIC to get information for. var opts = { - 'managedElementId': managedElementId_example, // {String} The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned. - 'ricId': ricId_example, // {String} The identity of a Near-RT RIC to get information for. 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. }; @@ -12429,7 +12445,7 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -api.getRic(opts, callback); +api.getRic(ricId, opts, callback);
@@ -12452,13 +12468,12 @@ namespace Example // Create an instance of the API class var apiInstance = new NearRTRICRepositoryApi(); - var managedElementId = managedElementId_example; // String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned. (optional) (default to null) - var ricId = ricId_example; // String | The identity of a Near-RT RIC to get information for. (optional) (default to null) + var ricId = ricId_example; // String | The identity of a Near-RT RIC to get information for. (default to null) var accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null) try { // Returns info for one Near-RT RIC - RicInfo result = apiInstance.getRic(managedElementId, ricId, accept); + RicInfo result = apiInstance.getRic(ricId, accept); Debug.WriteLine(result); } catch (Exception e) { Debug.Print("Exception when calling NearRTRICRepositoryApi.getRic: " + e.Message ); @@ -12475,12 +12490,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\NearRTRICRepositoryApi(); -$managedElementId = managedElementId_example; // String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned. $ricId = ricId_example; // String | The identity of a Near-RT RIC to get information for. $accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. try { - $result = $api_instance->getRic($managedElementId, $ricId, $accept); + $result = $api_instance->getRic($ricId, $accept); print_r($result); } catch (Exception $e) { echo 'Exception when calling NearRTRICRepositoryApi->getRic: ', $e->getMessage(), PHP_EOL; @@ -12495,12 +12509,11 @@ use WWW::OPenAPIClient::NearRTRICRepositoryApi; # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::NearRTRICRepositoryApi->new(); -my $managedElementId = managedElementId_example; # String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned. my $ricId = ricId_example; # String | The identity of a Near-RT RIC to get information for. my $accept = application/json; # String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. eval { - my $result = $api_instance->getRic(managedElementId => $managedElementId, ricId => $ricId, accept => $accept); + my $result = $api_instance->getRic(ricId => $ricId, accept => $accept); print Dumper($result); }; if ($@) { @@ -12517,13 +12530,12 @@ from pprint import pprint # Create an instance of the API class api_instance = openapi_client.NearRTRICRepositoryApi() -managedElementId = managedElementId_example # String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned. (optional) (default to null) -ricId = ricId_example # String | The identity of a Near-RT RIC to get information for. (optional) (default to null) +ricId = ricId_example # String | The identity of a Near-RT RIC to get information for. (default to null) accept = application/json # String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null) try: # Returns info for one Near-RT RIC - api_response = api_instance.get_ric(managedElementId=managedElementId, ricId=ricId, accept=accept) + api_response = api_instance.get_ric(ricId, accept=accept) pprint(api_response) except ApiException as e: print("Exception when calling NearRTRICRepositoryApi->getRic: %s\n" % e) @@ -12533,12 +12545,11 @@ except ApiException as e:
extern crate NearRTRICRepositoryApi;
 
 pub fn main() {
-    let managedElementId = managedElementId_example; // String
     let ricId = ricId_example; // String
     let accept = application/json; // String
 
     let mut context = NearRTRICRepositoryApi::Context::default();
-    let result = client.getRic(managedElementId, ricId, accept, &context).wait();
+    let result = client.getRic(ricId, accept, &context).wait();
 
     println!("{:?}", result);
 }
@@ -12553,18 +12564,17 @@ pub fn main() {
 
                           

Parameters

- -
Header parameters
+
Path parameters
- - - - - + + + + + @@ -12582,19 +12595,17 @@ Specifies the content type that the client expects to receive in response to the
NameDescription
Accept
NameDescription
ricId* -
+
@@ -12572,9 +12582,12 @@ pub fn main() {
-Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. +The identity of a Near-RT RIC to get information for.
+
+ Required +
- - -
Query parameters
+
Header parameters
- + - -
Name Description
managedElementId
Accept -
+
@@ -12602,7 +12613,7 @@ Specifies the content type that the client expects to receive in response to the
-The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned. +Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
@@ -12610,27 +12621,10 @@ The identity of a Managed Element. If given, the Near-RT RIC managing the ME is
ricId +
-
-
-
- - String - -
-The identity of a Near-RT RIC to get information for. -
-
-
-
- - - -

Responses

@@ -12663,20 +12657,20 @@ The identity of a Near-RT RIC to get information for.