diff options
28 files changed, 8926 insertions, 8384 deletions
@@ -43,5 +43,5 @@ out/ _build/ .swagger* docs/offeredapis/**/README.md -a1-policy-management/api/**/README.md +a1-policy-management/api/offeredapis/openapigentool/**/README.md a1-policy-management/api/**/.openapi-generator** @@ -1,6 +1,6 @@ ## General -This source repository contains the code for the ORAN A1 related components. +This source repository contains the code for the O-RAN A1 related components. More information on the CCSDK A1 Policy Management Service can be found in the 'a1-policy-management' sub-directory. @@ -10,7 +10,7 @@ See also additional information at: - https://lf-onap.atlassian.net/wiki/spaces/DW/pages/16444961/O-RAN+A1+Policies+in+ONAP - https://docs.onap.org/projects/onap-ccsdk-oran/en/latest/index.html -## Prerequisits +## Prerequisites To compile this code: @@ -21,7 +21,8 @@ To compile this code: ## License Copyright (C) 2022-2023 Nordix Foundation. All rights reserved. -Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved. + +Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. 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 38e9caed..08df1a87 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 @@ -2,7 +2,7 @@ <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> - <title>ONAP CCSDK A1 Policy Management Service</title> + <title>ONAP CCSDK - Pre-Spec A1 Policy Management API</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta charset="UTF-8" /> @@ -864,7 +864,7 @@ ul.nav-tabs { "detail" : { "type" : "string", "description" : " A human-readable explanation specific to this occurrence of the problem.", - "example" : "Policy type not found" + "example" : "A1 Policy Type not found" }, "title" : { "type" : "string", @@ -895,7 +895,7 @@ ul.nav-tabs { }, "policy_type_id" : { "type" : "string", - "description" : "Policy type identifier" + "description" : "A1 Policy Type identifier" } }, "description" : "input" @@ -952,14 +952,14 @@ ul.nav-tabs { }, "transient" : { "type" : "boolean", - "description" : "if true, the policy is deleted at RIC restart. If false, its value is maintained by this service until explicitly deleted. Default false.", + "description" : "If true, the policy is automatically deleted if the targeted Near-RT RIC restarts or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.\n", "nullable" : false, "example" : false, "default" : false }, "service_id" : { "type" : "string", - "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered.", + "description" : "The identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered. If the service is registered, the A1 Policy Instance will be subject to the same supervision rules as the the service's other policies.\n", "default" : "" }, "policy_data" : { @@ -972,7 +972,7 @@ ul.nav-tabs { }, "policytype_id" : { "type" : "string", - "description" : "identity of the policy type" + "description" : "identity of the A1 Policy Type" } }, "description" : "Information for one A1-P Policy" @@ -1009,24 +1009,24 @@ ul.nav-tabs { "properties" : { "policy_schema" : { "type" : "object", - "description" : "Policy type json schema. The schema is a json object following http://json-schema.org/draft-07/schema" + "description" : "A1 Policy Type json schema. The schema is a json object following http://json-schema.org/draft-07/schema" } }, - "description" : "Contains policy type schema definition" + "description" : "Contains A1 Policy Type schema definition" }; defs["policy_type_id_list"] = { "type" : "object", "properties" : { "policytype_ids" : { "type" : "array", - "description" : "Policy type identities", + "description" : "A1 Policy Type identities", "items" : { "type" : "string", - "description" : "Policy type identities" + "description" : "A1 Policy Type identities" } } }, - "description" : "Information about policy types" + "description" : "Information about A1 Policy Types" }; defs["ric_info"] = { "type" : "object", @@ -1050,10 +1050,10 @@ ul.nav-tabs { }, "policytype_ids" : { "type" : "array", - "description" : "supported policy types", + "description" : "supported A1 Policy Types", "items" : { "type" : "string", - "description" : "supported policy types" + "description" : "supported A1 Policy Types" } } }, @@ -1082,11 +1082,11 @@ ul.nav-tabs { }, "event_type" : { "type" : "string", - "description" : "values:\nAVAILABLE: the Near-RT RIC has become available for A1 Policy management", + "description" : "values: \n AVAILABLE: the Near-RT RIC has become available for A1 Policy management\n", "enum" : [ "AVAILABLE" ] } }, - "description" : "Information transferred as in Service callbacks (callback_url)" + "description" : "Information transferred in Service callbacks, \nif a callback URL was provided for a registered service\n" }; defs["service_registration_info"] = { "required" : [ "service_id" ], @@ -1094,7 +1094,7 @@ ul.nav-tabs { "properties" : { "callback_url" : { "type" : "string", - "description" : "callback for notifying of Near-RT RIC state changes" + "description" : "Callback for notifying of Near-RT RIC state changes" }, "service_id" : { "type" : "string", @@ -1102,7 +1102,7 @@ ul.nav-tabs { }, "keep_alive_interval_seconds" : { "type" : "integer", - "description" : "keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.", + "description" : "Keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n", "format" : "int64" } }, @@ -1240,7 +1240,7 @@ ul.nav-tabs { <div id="content"> <div id="project"> <div class="pull-left"> - <h1>ONAP CCSDK A1 Policy Management Service</h1> + <h1>ONAP CCSDK - Pre-Spec A1 Policy Management API</h1> </div> <div class="clearfix"></div> </div> @@ -1250,7 +1250,7 @@ ul.nav-tabs { <div class="app-desc">Version: 1.3.0</div> <hr> <div id="app-description" class="app-desc"> - <h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managemecnt of A1 policies. <br/>The main tasks of the service are:</p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 policies and the Near-RT RICs</li><li>Maintaining a view of supported Near-RT RIC policy types</li><li>Supervision of using services (R-APPs). When a service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2><h3>A1 Policy Management</h3><p>This is an API for management of A1 Policies.</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository</h3><p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted for one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the PMS component.</p><h3>Service Registry and Supervision</h3><p>API used for registering services that uses PMS. Each A1 policy is optionally owned by a service. PMS can supervise each registered service by a heart-beat supervision and will automatically remove policies for unavailable services. Note that a service does not need to be registered in order to create A1 Policies. This is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used for access control of A1 Policy access. If configured, an external authorization provider is requested to grant access to the A1 Policy type.</p><h3>Spring Boot Actuator</h3><p>Provides generic functions used to monitor and manage the Spring web application.</p> + <h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes an older pre-spec API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2><h3>A1 Policy Management (Older pre-spec version) </h3> <p>This is an older API for managing A1 Policies:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service .</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then its A1 Policies are removed. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used for access control of A1 Policy access. If configured, an external authorization provider is requested to grant access to the A1 Policy Type.</p><h3>Spring Boot Actuator</h3><p>Provides built-in functions used to monitor and configure the Spring web application hosting the service.</p> </div> </div> @@ -1262,12 +1262,12 @@ ul.nav-tabs { <article id="api-A1PolicyManagement-deletePolicy-0" data-group="User" data-name="deletePolicy" data-version="0"> <div class="pull-left"> <h1>deletePolicy</h1> - <p>Delete a policy</p> + <p>Delete an A1 Policy instance (deletePolicy)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Deleting the policy using the Policy's Policy ID.</p> + <p class="marked">Delete an A1 Policy instance using its policy ID.</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/a1-policy/v2/policies/{policy_id}</span></code></pre> @@ -1371,7 +1371,7 @@ public class A1PolicyManagementApiExample { A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; String *policyId = policyId_example; // (default to null) -// Delete a policy +// Delete an A1 Policy instance (deletePolicy) [apiInstance deletePolicyWith:policyId completionHandler: ^(Object output, NSError* error) { if (output) { @@ -1385,10 +1385,10 @@ String *policyId = policyId_example; // (default to null) </div> <div class="tab-pane" id="examples-A1PolicyManagement-deletePolicy-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi() var policyId = policyId_example; // {String} var callback = function(error, data, response) { @@ -1424,7 +1424,7 @@ namespace Example var policyId = policyId_example; // String | (default to null) try { - // Delete a policy + // Delete an A1 Policy instance (deletePolicy) Object result = apiInstance.deletePolicy(policyId); Debug.WriteLine(result); } catch (Exception e) { @@ -1483,7 +1483,7 @@ api_instance = openapi_client.A1PolicyManagementApi() policyId = policyId_example # String | (default to null) try: - # Delete a policy + # Delete an A1 Policy instance (deletePolicy) api_response = api_instance.delete_policy(policyId) pprint(api_response) except ApiException as e: @@ -1709,12 +1709,12 @@ pub fn main() { <article id="api-A1PolicyManagement-getPolicy-0" data-group="User" data-name="getPolicy" data-version="0"> <div class="pull-left"> <h1>getPolicy</h1> - <p></p> + <p>Get an A1 Policy instance (getPolicy)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Returns a policy</p> + <p class="marked">Get an A1 Policy instance using its policy ID</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/policies/{policy_id}</span></code></pre> @@ -1818,6 +1818,7 @@ public class A1PolicyManagementApiExample { A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; String *policyId = policyId_example; // (default to null) +// Get an A1 Policy instance (getPolicy) [apiInstance getPolicyWith:policyId completionHandler: ^(policy_info output, NSError* error) { if (output) { @@ -1831,10 +1832,10 @@ String *policyId = policyId_example; // (default to null) </div> <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi() var policyId = policyId_example; // {String} var callback = function(error, data, response) { @@ -1870,6 +1871,7 @@ namespace Example var policyId = policyId_example; // String | (default to null) try { + // Get an A1 Policy instance (getPolicy) policy_info result = apiInstance.getPolicy(policyId); Debug.WriteLine(result); } catch (Exception e) { @@ -1928,6 +1930,7 @@ api_instance = openapi_client.A1PolicyManagementApi() policyId = policyId_example # String | (default to null) try: + # Get an A1 Policy instance (getPolicy) api_response = api_instance.get_policy(policyId) pprint(api_response) except ApiException as e: @@ -2146,12 +2149,13 @@ pub fn main() { <article id="api-A1PolicyManagement-getPolicyIds-0" data-group="User" data-name="getPolicyIds" data-version="0"> <div class="pull-left"> <h1>getPolicyIds</h1> - <p>Query policy identities</p> + <p>Query A1 Policy Instances (getPolicyIds)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Returns a list of A1 policies matching given search criteria. <br>If several query parameters are defined, the policies matching all conditions are returned.</p> + <p class="marked">Retrieve a list of A1 Policy Instance IDs for policies that match given search criteria. If multiple query parameters are given, the policies matching all conditions are returned. +</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/policies</span></code></pre> @@ -2195,10 +2199,11 @@ public class A1PolicyManagementApiExample { // Create an instance of the API class A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); - String policytypeId = policytypeId_example; // String | Select policies of a given policy type identity. + String policytypeId = policytypeId_example; // String | Select policies of a given A1 Policy Type ID. String ricId = ricId_example; // String | Select policies of a given Near-RT RIC identity. - String serviceId = serviceId_example; // String | Select policies owned by a given service. - String typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>) + String serviceId = serviceId_example; // String | Select policies owned by a given service. (Both registered and unregistered services) + String typeName = typeName_example; // String | Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version') + try { policy_id_list result = apiInstance.getPolicyIds(policytypeId, ricId, serviceId, typeName); @@ -2217,10 +2222,11 @@ public class A1PolicyManagementApiExample { final api_instance = DefaultApi(); -final String policytypeId = new String(); // String | Select policies of a given policy type identity. +final String policytypeId = new String(); // String | Select policies of a given A1 Policy Type ID. final String ricId = new String(); // String | Select policies of a given Near-RT RIC identity. -final String serviceId = new String(); // String | Select policies owned by a given service. -final String typeName = new String(); // String | Select policies of types with the given type name (type identity has the format <typename_version>) +final String serviceId = new String(); // String | Select policies owned by a given service. (Both registered and unregistered services) +final String typeName = new String(); // String | Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version') + try { final result = await api_instance.getPolicyIds(policytypeId, ricId, serviceId, typeName); @@ -2238,10 +2244,11 @@ try { public class A1PolicyManagementApiExample { public static void main(String[] args) { A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); - String policytypeId = policytypeId_example; // String | Select policies of a given policy type identity. + String policytypeId = policytypeId_example; // String | Select policies of a given A1 Policy Type ID. String ricId = ricId_example; // String | Select policies of a given Near-RT RIC identity. - String serviceId = serviceId_example; // String | Select policies owned by a given service. - String typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>) + String serviceId = serviceId_example; // String | Select policies owned by a given service. (Both registered and unregistered services) + String typeName = typeName_example; // String | Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version') + try { policy_id_list result = apiInstance.getPolicyIds(policytypeId, ricId, serviceId, typeName); @@ -2262,12 +2269,13 @@ public class A1PolicyManagementApiExample { // Create an instance of the API class A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; -String *policytypeId = policytypeId_example; // Select policies of a given policy type identity. (optional) (default to null) +String *policytypeId = policytypeId_example; // Select policies of a given A1 Policy Type ID. (optional) (default to null) String *ricId = ricId_example; // Select policies of a given Near-RT RIC identity. (optional) (default to null) -String *serviceId = serviceId_example; // Select policies owned by a given service. (optional) (default to null) -String *typeName = typeName_example; // Select policies of types with the given type name (type identity has the format <typename_version>) (optional) (default to null) +String *serviceId = serviceId_example; // Select policies owned by a given service. (Both registered and unregistered services) (optional) (default to null) +String *typeName = typeName_example; // Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version') + (optional) (default to null) -// Query policy identities +// Query A1 Policy Instances (getPolicyIds) [apiInstance getPolicyIdsWith:policytypeId ricId:ricId serviceId:serviceId @@ -2284,15 +2292,16 @@ String *typeName = typeName_example; // Select policies of types with the given </div> <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi() var opts = { - 'policytypeId': policytypeId_example, // {String} Select policies of a given policy type identity. + 'policytypeId': policytypeId_example, // {String} Select policies of a given A1 Policy Type ID. 'ricId': ricId_example, // {String} Select policies of a given Near-RT RIC identity. - 'serviceId': serviceId_example, // {String} Select policies owned by a given service. - 'typeName': typeName_example // {String} Select policies of types with the given type name (type identity has the format <typename_version>) + 'serviceId': serviceId_example, // {String} Select policies owned by a given service. (Both registered and unregistered services) + 'typeName': typeName_example // {String} Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version') + }; var callback = function(error, data, response) { @@ -2325,13 +2334,14 @@ namespace Example // Create an instance of the API class var apiInstance = new A1PolicyManagementApi(); - var policytypeId = policytypeId_example; // String | Select policies of a given policy type identity. (optional) (default to null) + var policytypeId = policytypeId_example; // String | Select policies of a given A1 Policy Type ID. (optional) (default to null) var ricId = ricId_example; // String | Select policies of a given Near-RT RIC identity. (optional) (default to null) - var serviceId = serviceId_example; // String | Select policies owned by a given service. (optional) (default to null) - var typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>) (optional) (default to null) + var serviceId = serviceId_example; // String | Select policies owned by a given service. (Both registered and unregistered services) (optional) (default to null) + var typeName = typeName_example; // String | Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version') + (optional) (default to null) try { - // Query policy identities + // Query A1 Policy Instances (getPolicyIds) policy_id_list result = apiInstance.getPolicyIds(policytypeId, ricId, serviceId, typeName); Debug.WriteLine(result); } catch (Exception e) { @@ -2349,10 +2359,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi(); -$policytypeId = policytypeId_example; // String | Select policies of a given policy type identity. +$policytypeId = policytypeId_example; // String | Select policies of a given A1 Policy Type ID. $ricId = ricId_example; // String | Select policies of a given Near-RT RIC identity. -$serviceId = serviceId_example; // String | Select policies owned by a given service. -$typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>) +$serviceId = serviceId_example; // String | Select policies owned by a given service. (Both registered and unregistered services) +$typeName = typeName_example; // String | Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version') + try { $result = $api_instance->getPolicyIds($policytypeId, $ricId, $serviceId, $typeName); @@ -2370,10 +2381,11 @@ use WWW::OPenAPIClient::A1PolicyManagementApi; # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new(); -my $policytypeId = policytypeId_example; # String | Select policies of a given policy type identity. +my $policytypeId = policytypeId_example; # String | Select policies of a given A1 Policy Type ID. my $ricId = ricId_example; # String | Select policies of a given Near-RT RIC identity. -my $serviceId = serviceId_example; # String | Select policies owned by a given service. -my $typeName = typeName_example; # String | Select policies of types with the given type name (type identity has the format <typename_version>) +my $serviceId = serviceId_example; # String | Select policies owned by a given service. (Both registered and unregistered services) +my $typeName = typeName_example; # String | Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version') + eval { my $result = $api_instance->getPolicyIds(policytypeId => $policytypeId, ricId => $ricId, serviceId => $serviceId, typeName => $typeName); @@ -2393,13 +2405,14 @@ from pprint import pprint # Create an instance of the API class api_instance = openapi_client.A1PolicyManagementApi() -policytypeId = policytypeId_example # String | Select policies of a given policy type identity. (optional) (default to null) +policytypeId = policytypeId_example # String | Select policies of a given A1 Policy Type ID. (optional) (default to null) ricId = ricId_example # String | Select policies of a given Near-RT RIC identity. (optional) (default to null) -serviceId = serviceId_example # String | Select policies owned by a given service. (optional) (default to null) -typeName = typeName_example # String | Select policies of types with the given type name (type identity has the format <typename_version>) (optional) (default to null) +serviceId = serviceId_example # String | Select policies owned by a given service. (Both registered and unregistered services) (optional) (default to null) +typeName = typeName_example # String | Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version') + (optional) (default to null) try: - # Query policy identities + # Query A1 Policy Instances (getPolicyIds) api_response = api_instance.get_policy_ids(policytypeId=policytypeId, ricId=ricId, serviceId=serviceId, typeName=typeName) pprint(api_response) except ApiException as e: @@ -2453,7 +2466,7 @@ pub fn main() { </span> <div class="inner description marked"> -Select policies of a given policy type identity. +Select policies of a given A1 Policy Type ID. </div> </div> </div> @@ -2493,7 +2506,7 @@ Select policies of a given Near-RT RIC identity. </span> <div class="inner description marked"> -Select policies owned by a given service. +Select policies owned by a given service. (Both registered and unregistered services) </div> </div> </div> @@ -2513,7 +2526,8 @@ Select policies owned by a given service. </span> <div class="inner description marked"> -Select policies of types with the given type name (type identity has the format <typename_version>) +Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version') + </div> </div> </div> @@ -2681,12 +2695,13 @@ Select policies of types with the given type name (type identity has the format <article id="api-A1PolicyManagement-getPolicyInstances-0" data-group="User" data-name="getPolicyInstances" data-version="0"> <div class="pull-left"> <h1>getPolicyInstances</h1> - <p>Query for A1 policy instances</p> + <p>Query for A1 Policy instances (getPolicyInstances)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Returns a list of A1 policies matching given search criteria. <br>If several query parameters are defined, the policies matching all conditions are returned.</p> + <p class="marked">Returns a collection of A1 Policy Instance information for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned. +</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/policy-instances</span></code></pre> @@ -2730,10 +2745,10 @@ public class A1PolicyManagementApiExample { // Create an instance of the API class A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); - String policytypeId = policytypeId_example; // String | Select policies with a given type identity. + String policytypeId = policytypeId_example; // String | Select policies with a given A1 Policy Type ID. String ricId = ricId_example; // String | Select policies for a given Near-RT RIC identity. - String serviceId = serviceId_example; // String | Select policies owned by a given service. - String typeName = typeName_example; // String | Select policies of a given type name (type identity has the format <typename_version>) + String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). + String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). try { policy_info_list result = apiInstance.getPolicyInstances(policytypeId, ricId, serviceId, typeName); @@ -2752,10 +2767,10 @@ public class A1PolicyManagementApiExample { final api_instance = DefaultApi(); -final String policytypeId = new String(); // String | Select policies with a given type identity. +final String policytypeId = new String(); // String | Select policies with a given A1 Policy Type ID. final String ricId = new String(); // String | Select policies for a given Near-RT RIC identity. -final String serviceId = new String(); // String | Select policies owned by a given service. -final String typeName = new String(); // String | Select policies of a given type name (type identity has the format <typename_version>) +final String serviceId = new String(); // String | Select policies owned by a given service (registered or unregistered). +final String typeName = new String(); // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). try { final result = await api_instance.getPolicyInstances(policytypeId, ricId, serviceId, typeName); @@ -2773,10 +2788,10 @@ try { public class A1PolicyManagementApiExample { public static void main(String[] args) { A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); - String policytypeId = policytypeId_example; // String | Select policies with a given type identity. + String policytypeId = policytypeId_example; // String | Select policies with a given A1 Policy Type ID. String ricId = ricId_example; // String | Select policies for a given Near-RT RIC identity. - String serviceId = serviceId_example; // String | Select policies owned by a given service. - String typeName = typeName_example; // String | Select policies of a given type name (type identity has the format <typename_version>) + String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). + String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). try { policy_info_list result = apiInstance.getPolicyInstances(policytypeId, ricId, serviceId, typeName); @@ -2797,12 +2812,12 @@ public class A1PolicyManagementApiExample { // Create an instance of the API class A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; -String *policytypeId = policytypeId_example; // Select policies with a given type identity. (optional) (default to null) +String *policytypeId = policytypeId_example; // Select policies with a given A1 Policy Type ID. (optional) (default to null) String *ricId = ricId_example; // Select policies for a given Near-RT RIC identity. (optional) (default to null) -String *serviceId = serviceId_example; // Select policies owned by a given service. (optional) (default to null) -String *typeName = typeName_example; // Select policies of a given type name (type identity has the format <typename_version>) (optional) (default to null) +String *serviceId = serviceId_example; // Select policies owned by a given service (registered or unregistered). (optional) (default to null) +String *typeName = typeName_example; // Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null) -// Query for A1 policy instances +// Query for A1 Policy instances (getPolicyInstances) [apiInstance getPolicyInstancesWith:policytypeId ricId:ricId serviceId:serviceId @@ -2819,15 +2834,15 @@ String *typeName = typeName_example; // Select policies of a given type name (ty </div> <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyInstances-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi() var opts = { - 'policytypeId': policytypeId_example, // {String} Select policies with a given type identity. + 'policytypeId': policytypeId_example, // {String} Select policies with a given A1 Policy Type ID. 'ricId': ricId_example, // {String} Select policies for a given Near-RT RIC identity. - 'serviceId': serviceId_example, // {String} Select policies owned by a given service. - 'typeName': typeName_example // {String} Select policies of a given type name (type identity has the format <typename_version>) + 'serviceId': serviceId_example, // {String} Select policies owned by a given service (registered or unregistered). + 'typeName': typeName_example // {String} Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). }; var callback = function(error, data, response) { @@ -2860,13 +2875,13 @@ namespace Example // Create an instance of the API class var apiInstance = new A1PolicyManagementApi(); - var policytypeId = policytypeId_example; // String | Select policies with a given type identity. (optional) (default to null) + var policytypeId = policytypeId_example; // String | Select policies with a given A1 Policy Type ID. (optional) (default to null) var ricId = ricId_example; // String | Select policies for a given Near-RT RIC identity. (optional) (default to null) - var serviceId = serviceId_example; // String | Select policies owned by a given service. (optional) (default to null) - var typeName = typeName_example; // String | Select policies of a given type name (type identity has the format <typename_version>) (optional) (default to null) + var serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). (optional) (default to null) + var typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null) try { - // Query for A1 policy instances + // Query for A1 Policy instances (getPolicyInstances) policy_info_list result = apiInstance.getPolicyInstances(policytypeId, ricId, serviceId, typeName); Debug.WriteLine(result); } catch (Exception e) { @@ -2884,10 +2899,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi(); -$policytypeId = policytypeId_example; // String | Select policies with a given type identity. +$policytypeId = policytypeId_example; // String | Select policies with a given A1 Policy Type ID. $ricId = ricId_example; // String | Select policies for a given Near-RT RIC identity. -$serviceId = serviceId_example; // String | Select policies owned by a given service. -$typeName = typeName_example; // String | Select policies of a given type name (type identity has the format <typename_version>) +$serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). +$typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). try { $result = $api_instance->getPolicyInstances($policytypeId, $ricId, $serviceId, $typeName); @@ -2905,10 +2920,10 @@ use WWW::OPenAPIClient::A1PolicyManagementApi; # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new(); -my $policytypeId = policytypeId_example; # String | Select policies with a given type identity. +my $policytypeId = policytypeId_example; # String | Select policies with a given A1 Policy Type ID. my $ricId = ricId_example; # String | Select policies for a given Near-RT RIC identity. -my $serviceId = serviceId_example; # String | Select policies owned by a given service. -my $typeName = typeName_example; # String | Select policies of a given type name (type identity has the format <typename_version>) +my $serviceId = serviceId_example; # String | Select policies owned by a given service (registered or unregistered). +my $typeName = typeName_example; # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). eval { my $result = $api_instance->getPolicyInstances(policytypeId => $policytypeId, ricId => $ricId, serviceId => $serviceId, typeName => $typeName); @@ -2928,13 +2943,13 @@ from pprint import pprint # Create an instance of the API class api_instance = openapi_client.A1PolicyManagementApi() -policytypeId = policytypeId_example # String | Select policies with a given type identity. (optional) (default to null) +policytypeId = policytypeId_example # String | Select policies with a given A1 Policy Type ID. (optional) (default to null) ricId = ricId_example # String | Select policies for a given Near-RT RIC identity. (optional) (default to null) -serviceId = serviceId_example # String | Select policies owned by a given service. (optional) (default to null) -typeName = typeName_example # String | Select policies of a given type name (type identity has the format <typename_version>) (optional) (default to null) +serviceId = serviceId_example # String | Select policies owned by a given service (registered or unregistered). (optional) (default to null) +typeName = typeName_example # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null) try: - # Query for A1 policy instances + # Query for A1 Policy instances (getPolicyInstances) api_response = api_instance.get_policy_instances(policytypeId=policytypeId, ricId=ricId, serviceId=serviceId, typeName=typeName) pprint(api_response) except ApiException as e: @@ -2988,7 +3003,7 @@ pub fn main() { </span> <div class="inner description marked"> -Select policies with a given type identity. +Select policies with a given A1 Policy Type ID. </div> </div> </div> @@ -3028,7 +3043,7 @@ Select policies for a given Near-RT RIC identity. </span> <div class="inner description marked"> -Select policies owned by a given service. +Select policies owned by a given service (registered or unregistered). </div> </div> </div> @@ -3048,7 +3063,7 @@ Select policies owned by a given service. </span> <div class="inner description marked"> -Select policies of a given type name (type identity has the format <typename_version>) +Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). </div> </div> </div> @@ -3062,7 +3077,7 @@ Select policies of a given type name (type identity has the format <typename_ <h3 id="examples-A1PolicyManagement-getPolicyInstances-title-200"></h3> <p id="examples-A1PolicyManagement-getPolicyInstances-description-200" class="marked"></p> <script> - var responseA1PolicyManagement200_description = `OK - Returns A1 Policies which matches the criteria`; + var responseA1PolicyManagement200_description = `OK - Returns A1 Policy Instances which match the criteria`; var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n'); if (responseA1PolicyManagement200_description_break == -1) { $("#examples-A1PolicyManagement-getPolicyInstances-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); @@ -3090,7 +3105,7 @@ Select policies of a given type name (type identity has the format <typename_ <script> $(document).ready(function() { var schemaWrapper = { - "description" : "OK - Returns A1 Policies which matches the criteria", + "description" : "OK - Returns A1 Policy Instances which match the criteria", "content" : { "application/json" : { "schema" : { @@ -3143,7 +3158,7 @@ Select policies of a given type name (type identity has the format <typename_ <h3 id="examples-A1PolicyManagement-getPolicyInstances-title-404"></h3> <p id="examples-A1PolicyManagement-getPolicyInstances-description-404" class="marked"></p> <script> - var responseA1PolicyManagement404_description = `Not Found - Near-RT RIC, policy type or service not found`; + var responseA1PolicyManagement404_description = `Not Found - Near-RT RIC, A1 Policy Type or service was not found`; var responseA1PolicyManagement404_description_break = responseA1PolicyManagement404_description.indexOf('\n'); if (responseA1PolicyManagement404_description_break == -1) { $("#examples-A1PolicyManagement-getPolicyInstances-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description); @@ -3171,7 +3186,7 @@ Select policies of a given type name (type identity has the format <typename_ <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Not Found - Near-RT RIC, policy type or service not found", + "description" : "Not Found - Near-RT RIC, A1 Policy Type or service was not found", "content" : { "application/json" : { "schema" : { @@ -3223,12 +3238,12 @@ Select policies of a given type name (type identity has the format <typename_ <article id="api-A1PolicyManagement-getPolicyStatus-0" data-group="User" data-name="getPolicyStatus" data-version="0"> <div class="pull-left"> <h1>getPolicyStatus</h1> - <p></p> + <p>Get an A1 Policy Instance's status (getPolicyStatus)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Returns a policy status</p> + <p class="marked">Retrieve the status information for an A1 Policy Instance.</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/policies/{policy_id}/status</span></code></pre> @@ -3332,6 +3347,7 @@ public class A1PolicyManagementApiExample { A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; String *policyId = policyId_example; // (default to null) +// Get an A1 Policy Instance's status (getPolicyStatus) [apiInstance getPolicyStatusWith:policyId completionHandler: ^(policy_status_info output, NSError* error) { if (output) { @@ -3345,10 +3361,10 @@ String *policyId = policyId_example; // (default to null) </div> <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi() var policyId = policyId_example; // {String} var callback = function(error, data, response) { @@ -3384,6 +3400,7 @@ namespace Example var policyId = policyId_example; // String | (default to null) try { + // Get an A1 Policy Instance's status (getPolicyStatus) policy_status_info result = apiInstance.getPolicyStatus(policyId); Debug.WriteLine(result); } catch (Exception e) { @@ -3442,6 +3459,7 @@ api_instance = openapi_client.A1PolicyManagementApi() policyId = policyId_example # String | (default to null) try: + # Get an A1 Policy Instance's status (getPolicyStatus) api_response = api_instance.get_policy_status(policyId) pprint(api_response) except ApiException as e: @@ -3660,12 +3678,12 @@ pub fn main() { <article id="api-A1PolicyManagement-getPolicyTypeDefinition-0" data-group="User" data-name="getPolicyTypeDefinition" data-version="0"> <div class="pull-left"> <h1>getPolicyTypeDefinition</h1> - <p></p> + <p>Get an A1 Policy Type definition (getPolicyTypeDefinition)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Returns a policy type definition</p> + <p class="marked">Get an A1 Policy Type definition using its policy type ID</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/policy-types/{policytype_id}</span></code></pre> @@ -3769,6 +3787,7 @@ public class A1PolicyManagementApiExample { A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; String *policytypeId = policytypeId_example; // (default to null) +// Get an A1 Policy Type definition (getPolicyTypeDefinition) [apiInstance getPolicyTypeDefinitionWith:policytypeId completionHandler: ^(policy_type_definition output, NSError* error) { if (output) { @@ -3782,10 +3801,10 @@ String *policytypeId = policytypeId_example; // (default to null) </div> <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyTypeDefinition-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi() var policytypeId = policytypeId_example; // {String} var callback = function(error, data, response) { @@ -3821,6 +3840,7 @@ namespace Example var policytypeId = policytypeId_example; // String | (default to null) try { + // Get an A1 Policy Type definition (getPolicyTypeDefinition) policy_type_definition result = apiInstance.getPolicyTypeDefinition(policytypeId); Debug.WriteLine(result); } catch (Exception e) { @@ -3879,6 +3899,7 @@ api_instance = openapi_client.A1PolicyManagementApi() policytypeId = policytypeId_example # String | (default to null) try: + # Get an A1 Policy Type definition (getPolicyTypeDefinition) api_response = api_instance.get_policy_type_definition(policytypeId) pprint(api_response) except ApiException as e: @@ -3943,7 +3964,7 @@ pub fn main() { <h3 id="examples-A1PolicyManagement-getPolicyTypeDefinition-title-200"></h3> <p id="examples-A1PolicyManagement-getPolicyTypeDefinition-description-200" class="marked"></p> <script> - var responseA1PolicyManagement200_description = `OK - schema of the given policy type`; + var responseA1PolicyManagement200_description = `OK - schema of the requested A1 Policy Type`; var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n'); if (responseA1PolicyManagement200_description_break == -1) { $("#examples-A1PolicyManagement-getPolicyTypeDefinition-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); @@ -3971,7 +3992,7 @@ pub fn main() { <script> $(document).ready(function() { var schemaWrapper = { - "description" : "OK - schema of the given policy type", + "description" : "OK - schema of the requested A1 Policy Type", "content" : { "application/json" : { "schema" : { @@ -4097,12 +4118,12 @@ pub fn main() { <article id="api-A1PolicyManagement-getPolicyTypes-0" data-group="User" data-name="getPolicyTypes" data-version="0"> <div class="pull-left"> <h1>getPolicyTypes</h1> - <p></p> + <p>Get A1 Policy Types (getPolicyTypes)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Query policy type identities</p> + <p class="marked">Query A1 Policy Type identities using query parameters</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/policy-types</span></code></pre> @@ -4147,7 +4168,7 @@ public class A1PolicyManagementApiExample { // Create an instance of the API class A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); String ricId = ricId_example; // String | Select types for the given Near-RT RIC identity. - String typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>) + String typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version') String compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. try { @@ -4168,7 +4189,7 @@ public class A1PolicyManagementApiExample { final api_instance = DefaultApi(); final String ricId = new String(); // String | Select types for the given Near-RT RIC identity. -final String typeName = new String(); // String | Select types with the given type name (type identity has the format <typename_version>) +final String typeName = new String(); // String | Select types compatible with the given type name (type identity has the format 'typename_version') final String compatibleWithVersion = new String(); // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. try { @@ -4188,7 +4209,7 @@ public class A1PolicyManagementApiExample { public static void main(String[] args) { A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); String ricId = ricId_example; // String | Select types for the given Near-RT RIC identity. - String typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>) + String typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version') String compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. try { @@ -4211,9 +4232,10 @@ public class A1PolicyManagementApiExample { // Create an instance of the API class A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; String *ricId = ricId_example; // Select types for the given Near-RT RIC identity. (optional) (default to null) -String *typeName = typeName_example; // Select types with the given type name (type identity has the format <typename_version>) (optional) (default to null) +String *typeName = typeName_example; // Select types compatible with the given type name (type identity has the format 'typename_version') (optional) (default to null) String *compatibleWithVersion = compatibleWithVersion_example; // Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. (optional) (default to null) +// Get A1 Policy Types (getPolicyTypes) [apiInstance getPolicyTypesWith:ricId typeName:typeName compatibleWithVersion:compatibleWithVersion @@ -4229,13 +4251,13 @@ String *compatibleWithVersion = compatibleWithVersion_example; // Select types t </div> <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyTypes-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi() var opts = { 'ricId': ricId_example, // {String} Select types for the given Near-RT RIC identity. - 'typeName': typeName_example, // {String} Select types with the given type name (type identity has the format <typename_version>) + 'typeName': typeName_example, // {String} Select types compatible with the given type name (type identity has the format 'typename_version') 'compatibleWithVersion': compatibleWithVersion_example // {String} Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. }; @@ -4270,10 +4292,11 @@ namespace Example // Create an instance of the API class var apiInstance = new A1PolicyManagementApi(); var ricId = ricId_example; // String | Select types for the given Near-RT RIC identity. (optional) (default to null) - var typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>) (optional) (default to null) + var typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version') (optional) (default to null) var compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. (optional) (default to null) try { + // Get A1 Policy Types (getPolicyTypes) policy_type_id_list result = apiInstance.getPolicyTypes(ricId, typeName, compatibleWithVersion); Debug.WriteLine(result); } catch (Exception e) { @@ -4292,7 +4315,7 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi(); $ricId = ricId_example; // String | Select types for the given Near-RT RIC identity. -$typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>) +$typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version') $compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. try { @@ -4312,7 +4335,7 @@ use WWW::OPenAPIClient::A1PolicyManagementApi; # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new(); my $ricId = ricId_example; # String | Select types for the given Near-RT RIC identity. -my $typeName = typeName_example; # String | Select types with the given type name (type identity has the format <typename_version>) +my $typeName = typeName_example; # String | Select types compatible with the given type name (type identity has the format 'typename_version') my $compatibleWithVersion = compatibleWithVersion_example; # String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. eval { @@ -4334,10 +4357,11 @@ from pprint import pprint # Create an instance of the API class api_instance = openapi_client.A1PolicyManagementApi() ricId = ricId_example # String | Select types for the given Near-RT RIC identity. (optional) (default to null) -typeName = typeName_example # String | Select types with the given type name (type identity has the format <typename_version>) (optional) (default to null) +typeName = typeName_example # String | Select types compatible with the given type name (type identity has the format 'typename_version') (optional) (default to null) compatibleWithVersion = compatibleWithVersion_example # String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. (optional) (default to null) try: + # Get A1 Policy Types (getPolicyTypes) api_response = api_instance.get_policy_types(ricId=ricId, typeName=typeName, compatibleWithVersion=compatibleWithVersion) pprint(api_response) except ApiException as e: @@ -4410,7 +4434,7 @@ Select types for the given Near-RT RIC identity. </span> <div class="inner description marked"> -Select types with the given type name (type identity has the format <typename_version>) +Select types compatible with the given type name (type identity has the format 'typename_version') </div> </div> </div> @@ -4598,12 +4622,12 @@ Select types that are compatible with the given version. This parameter is only <article id="api-A1PolicyManagement-putPolicy-0" data-group="User" data-name="putPolicy" data-version="0"> <div class="pull-left"> <h1>putPolicy</h1> - <p></p> + <p>Create or Update an A1 Policy Instance (putPolicy)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Create or update a policy</p> + <p class="marked">Create or Update an A1 Policy Instance</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/a1-policy/v2/policies</span></code></pre> @@ -4709,6 +4733,7 @@ public class A1PolicyManagementApiExample { A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; PolicyInfo *policyInfo = ; // +// Create or Update an A1 Policy Instance (putPolicy) [apiInstance putPolicyWith:policyInfo completionHandler: ^(Object output, NSError* error) { if (output) { @@ -4722,10 +4747,10 @@ PolicyInfo *policyInfo = ; // </div> <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi() var policyInfo = ; // {PolicyInfo} var callback = function(error, data, response) { @@ -4761,6 +4786,7 @@ namespace Example var policyInfo = new PolicyInfo(); // PolicyInfo | try { + // Create or Update an A1 Policy Instance (putPolicy) Object result = apiInstance.putPolicy(policyInfo); Debug.WriteLine(result); } catch (Exception e) { @@ -4819,6 +4845,7 @@ api_instance = openapi_client.A1PolicyManagementApi() policyInfo = # PolicyInfo | try: + # Create or Update an A1 Policy Instance (putPolicy) api_response = api_instance.put_policy(policyInfo) pprint(api_response) except ApiException as e: @@ -5144,12 +5171,13 @@ $(document).ready(function() { <article id="api-AuthorizationAPI-performAccessControl-0" data-group="User" data-name="performAccessControl" data-version="0"> <div class="pull-left"> <h1>performAccessControl</h1> - <p>Request for access authorization.</p> + <p>Callout request for access authorization (performAccessControl)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">The authorization function decides if access is granted.</p> + <p class="marked">A template endpoint for callout requests to an external authorization function. The authorization function, if enabled, decides if individual operations are permitted. +</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/example-authz-check</span></code></pre> @@ -5255,7 +5283,7 @@ public class AuthorizationAPIApiExample { AuthorizationAPIApi *apiInstance = [[AuthorizationAPIApi alloc] init]; PolicyAuthorization *policyAuthorization = ; // -// Request for access authorization. +// Callout request for access authorization (performAccessControl) [apiInstance performAccessControlWith:policyAuthorization completionHandler: ^(authorization_result output, NSError* error) { if (output) { @@ -5269,10 +5297,10 @@ PolicyAuthorization *policyAuthorization = ; // </div> <div class="tab-pane" id="examples-AuthorizationAPI-performAccessControl-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.AuthorizationAPIApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.AuthorizationAPIApi() var policyAuthorization = ; // {PolicyAuthorization} var callback = function(error, data, response) { @@ -5308,7 +5336,7 @@ namespace Example var policyAuthorization = new PolicyAuthorization(); // PolicyAuthorization | try { - // Request for access authorization. + // Callout request for access authorization (performAccessControl) authorization_result result = apiInstance.performAccessControl(policyAuthorization); Debug.WriteLine(result); } catch (Exception e) { @@ -5367,7 +5395,7 @@ api_instance = openapi_client.AuthorizationAPIApi() policyAuthorization = # PolicyAuthorization | try: - # Request for access authorization. + # Callout request for access authorization (performAccessControl) api_response = api_instance.perform_access_control(policyAuthorization) pprint(api_response) except ApiException as e: @@ -5617,12 +5645,12 @@ $(document).ready(function() { <article id="api-Configuration-getConfiguration-0" data-group="User" data-name="getConfiguration" data-version="0"> <div class="pull-left"> <h1>getConfiguration</h1> - <p></p> + <p>Get the Application Configuration (getConfiguration)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Returns the contents of the application configuration file</p> + <p class="marked">Returns the entire contents of the Application Configuration.</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/configuration</span></code></pre> @@ -5722,6 +5750,7 @@ public class ConfigurationApiExample { // Create an instance of the API class ConfigurationApi *apiInstance = [[ConfigurationApi alloc] init]; +// Get the Application Configuration (getConfiguration) [apiInstance getConfigurationWithCompletionHandler: ^('String' output, NSError* error) { if (output) { @@ -5735,10 +5764,10 @@ ConfigurationApi *apiInstance = [[ConfigurationApi alloc] init]; </div> <div class="tab-pane" id="examples-Configuration-getConfiguration-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.ConfigurationApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.ConfigurationApi() var callback = function(error, data, response) { if (error) { console.error(error); @@ -5771,6 +5800,7 @@ namespace Example var apiInstance = new ConfigurationApi(); try { + // Get the Application Configuration (getConfiguration) 'String' result = apiInstance.getConfiguration(); Debug.WriteLine(result); } catch (Exception e) { @@ -5826,6 +5856,7 @@ from pprint import pprint api_instance = openapi_client.ConfigurationApi() try: + # Get the Application Configuration (getConfiguration) api_response = api_instance.get_configuration() pprint(api_response) except ApiException as e: @@ -6011,12 +6042,13 @@ pub fn main() { <article id="api-Configuration-putConfiguration-0" data-group="User" data-name="putConfiguration" data-version="0"> <div class="pull-left"> <h1>putConfiguration</h1> - <p></p> + <p>Set/Replace the Application Configuration (putConfiguration)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Replace the current configuration with the given configuration</p> + <p class="marked">Replace the current Application Configuration with a new configuration. The new configuration, if accepted, will take effect after a short delay. The new configuration must comply with the Application Configuration schema, which can be found from the the Application Documentation (Developer Guide) +</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/a1-policy/v2/configuration</span></code></pre> @@ -6122,6 +6154,7 @@ public class ConfigurationApiExample { ConfigurationApi *apiInstance = [[ConfigurationApi alloc] init]; Object *body = Object; // +// Set/Replace the Application Configuration (putConfiguration) [apiInstance putConfigurationWith:body completionHandler: ^(Object output, NSError* error) { if (output) { @@ -6135,10 +6168,10 @@ Object *body = Object; // </div> <div class="tab-pane" id="examples-Configuration-putConfiguration-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.ConfigurationApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.ConfigurationApi() var body = Object; // {Object} var callback = function(error, data, response) { @@ -6174,6 +6207,7 @@ namespace Example var body = Object; // Object | try { + // Set/Replace the Application Configuration (putConfiguration) Object result = apiInstance.putConfiguration(body); Debug.WriteLine(result); } catch (Exception e) { @@ -6232,6 +6266,7 @@ api_instance = openapi_client.ConfigurationApi() body = Object # Object | try: + # Set/Replace the Application Configuration (putConfiguration) api_response = api_instance.put_configuration(body) pprint(api_response) except ApiException as e: @@ -6481,7 +6516,7 @@ $(document).ready(function() { <article id="api-HealthCheck-getStatus-0" data-group="User" data-name="getStatus" data-version="0"> <div class="pull-left"> <h1>getStatus</h1> - <p></p> + <p>Get Status (getStatus)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> @@ -6586,6 +6621,7 @@ public class HealthCheckApiExample { // Create an instance of the API class HealthCheckApi *apiInstance = [[HealthCheckApi alloc] init]; +// Get Status (getStatus) [apiInstance getStatusWithCompletionHandler: ^(status_info output, NSError* error) { if (output) { @@ -6599,10 +6635,10 @@ HealthCheckApi *apiInstance = [[HealthCheckApi alloc] init]; </div> <div class="tab-pane" id="examples-HealthCheck-getStatus-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.HealthCheckApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.HealthCheckApi() var callback = function(error, data, response) { if (error) { console.error(error); @@ -6635,6 +6671,7 @@ namespace Example var apiInstance = new HealthCheckApi(); try { + // Get Status (getStatus) status_info result = apiInstance.getStatus(); Debug.WriteLine(result); } catch (Exception e) { @@ -6690,6 +6727,7 @@ from pprint import pprint api_instance = openapi_client.HealthCheckApi() try: + # Get Status (getStatus) api_response = api_instance.get_status() pprint(api_response) except ApiException as e: @@ -6811,7 +6849,7 @@ pub fn main() { <article id="api-HealthCheck-getStatusV1-0" data-group="User" data-name="getStatusV1" data-version="0"> <div class="pull-left"> <h1>getStatusV1</h1> - <p></p> + <p>Get Status (getStatusV1)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> @@ -6916,6 +6954,7 @@ public class HealthCheckApiExample { // Create an instance of the API class HealthCheckApi *apiInstance = [[HealthCheckApi alloc] init]; +// Get Status (getStatusV1) [apiInstance getStatusV1WithCompletionHandler: ^('String' output, NSError* error) { if (output) { @@ -6929,10 +6968,10 @@ HealthCheckApi *apiInstance = [[HealthCheckApi alloc] init]; </div> <div class="tab-pane" id="examples-HealthCheck-getStatusV1-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.HealthCheckApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.HealthCheckApi() var callback = function(error, data, response) { if (error) { console.error(error); @@ -6965,6 +7004,7 @@ namespace Example var apiInstance = new HealthCheckApi(); try { + // Get Status (getStatusV1) 'String' result = apiInstance.getStatusV1(); Debug.WriteLine(result); } catch (Exception e) { @@ -7020,6 +7060,7 @@ from pprint import pprint api_instance = openapi_client.HealthCheckApi() try: + # Get Status (getStatusV1) api_response = api_instance.get_status_v1() pprint(api_response) except ApiException as e: @@ -7139,12 +7180,13 @@ pub fn main() { <article id="api-NearRTRICRepository-getRic-0" data-group="User" data-name="getRic" data-version="0"> <div class="pull-left"> <h1>getRic</h1> - <p>Returns info of Near-RT RIC queried by the ric-id and managed-element-id</p> + <p>Get a Near-RT RIC (getRic)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">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).</p> + <p class="marked">Query information about a Near-RT RIC. Either a Near-RT RIC identity or a Managed Element identity can be specified. The intention with Managed Element identity is the ID used in O1 for accessing the traffical element (such as the ID of CU). +</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/rics/ric</span></code></pre> @@ -7189,6 +7231,7 @@ 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. try { @@ -7209,6 +7252,7 @@ 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. try { @@ -7228,6 +7272,7 @@ 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. try { @@ -7249,10 +7294,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 *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) -// Returns info of Near-RT RIC queried by the ric-id and managed-element-id +// Get a Near-RT RIC (getRic) [apiInstance getRicWith:managedElementId ricId:ricId completionHandler: ^(ric_info output, NSError* error) { @@ -7267,12 +7313,13 @@ String *ricId = ricId_example; // The identity of a Near-RT RIC to get informati </div> <div class="tab-pane" id="examples-NearRTRICRepository-getRic-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.NearRTRICRepositoryApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.NearRTRICRepositoryApi() 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. }; @@ -7306,11 +7353,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 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) try { - // Returns info of Near-RT RIC queried by the ric-id and managed-element-id + // Get a Near-RT RIC (getRic) ric_info result = apiInstance.getRic(managedElementId, ricId); Debug.WriteLine(result); } catch (Exception e) { @@ -7329,6 +7377,7 @@ 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. try { @@ -7348,6 +7397,7 @@ 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. eval { @@ -7368,11 +7418,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) +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) try: - # Returns info of Near-RT RIC queried by the ric-id and managed-element-id + # Get a Near-RT RIC (getRic) api_response = api_instance.get_ric(managedElementId=managedElementId, ricId=ricId) pprint(api_response) except ApiException as e: @@ -7425,6 +7476,7 @@ pub fn main() { <div class="inner description marked"> The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned. + </div> </div> </div> @@ -7612,12 +7664,12 @@ The identity of a Near-RT RIC to get information for. <article id="api-NearRTRICRepository-getRics-0" data-group="User" data-name="getRics" data-version="0"> <div class="pull-left"> <h1>getRics</h1> - <p>Query Near-RT RIC information</p> + <p>Get Near-RT RICs for A1 Policy Type (getRics)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">The call returns all Near-RT RICs that supports a given policy type identity</p> + <p class="marked">Get all Near-RT RICs that supports a given A1 Policy Type ID</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/rics</span></code></pre> @@ -7661,7 +7713,8 @@ public class NearRTRICRepositoryApiExample { // Create an instance of the API class NearRTRICRepositoryApi apiInstance = new NearRTRICRepositoryApi(); - String policytypeId = policytypeId_example; // String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned + String policytypeId = policytypeId_example; // String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + try { ric_info_list result = apiInstance.getRics(policytypeId); @@ -7680,7 +7733,8 @@ public class NearRTRICRepositoryApiExample { final api_instance = DefaultApi(); -final String policytypeId = new String(); // String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned +final String policytypeId = new String(); // String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + try { final result = await api_instance.getRics(policytypeId); @@ -7698,7 +7752,8 @@ try { public class NearRTRICRepositoryApiExample { public static void main(String[] args) { NearRTRICRepositoryApi apiInstance = new NearRTRICRepositoryApi(); - String policytypeId = policytypeId_example; // String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned + String policytypeId = policytypeId_example; // String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + try { ric_info_list result = apiInstance.getRics(policytypeId); @@ -7719,9 +7774,10 @@ public class NearRTRICRepositoryApiExample { // Create an instance of the API class NearRTRICRepositoryApi *apiInstance = [[NearRTRICRepositoryApi alloc] init]; -String *policytypeId = policytypeId_example; // The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned (optional) (default to null) +String *policytypeId = policytypeId_example; // The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + (optional) (default to null) -// Query Near-RT RIC information +// Get Near-RT RICs for A1 Policy Type (getRics) [apiInstance getRicsWith:policytypeId completionHandler: ^(ric_info_list output, NSError* error) { if (output) { @@ -7735,12 +7791,13 @@ String *policytypeId = policytypeId_example; // The identity of a policy type. I </div> <div class="tab-pane" id="examples-NearRTRICRepository-getRics-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.NearRTRICRepositoryApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.NearRTRICRepositoryApi() var opts = { - 'policytypeId': policytypeId_example // {String} The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned + 'policytypeId': policytypeId_example // {String} The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + }; var callback = function(error, data, response) { @@ -7773,10 +7830,11 @@ namespace Example // Create an instance of the API class var apiInstance = new NearRTRICRepositoryApi(); - var policytypeId = policytypeId_example; // String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned (optional) (default to null) + var policytypeId = policytypeId_example; // String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + (optional) (default to null) try { - // Query Near-RT RIC information + // Get Near-RT RICs for A1 Policy Type (getRics) ric_info_list result = apiInstance.getRics(policytypeId); Debug.WriteLine(result); } catch (Exception e) { @@ -7794,7 +7852,8 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\NearRTRICRepositoryApi(); -$policytypeId = policytypeId_example; // String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned +$policytypeId = policytypeId_example; // String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + try { $result = $api_instance->getRics($policytypeId); @@ -7812,7 +7871,8 @@ use WWW::OPenAPIClient::NearRTRICRepositoryApi; # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::NearRTRICRepositoryApi->new(); -my $policytypeId = policytypeId_example; # String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned +my $policytypeId = policytypeId_example; # String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + eval { my $result = $api_instance->getRics(policytypeId => $policytypeId); @@ -7832,10 +7892,11 @@ from pprint import pprint # Create an instance of the API class api_instance = openapi_client.NearRTRICRepositoryApi() -policytypeId = policytypeId_example # String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned (optional) (default to null) +policytypeId = policytypeId_example # String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + (optional) (default to null) try: - # Query Near-RT RIC information + # Get Near-RT RICs for A1 Policy Type (getRics) api_response = api_instance.get_rics(policytypeId=policytypeId) pprint(api_response) except ApiException as e: @@ -7886,7 +7947,8 @@ pub fn main() { </span> <div class="inner description marked"> -The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned +The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + </div> </div> </div> @@ -8057,12 +8119,13 @@ The identity of a policy type. If given, all Near-RT RICs supporting the policy <article id="api-ServiceRegistryAndSupervision-deleteService-0" data-group="User" data-name="deleteService" data-version="0"> <div class="pull-left"> <h1>deleteService</h1> - <p></p> + <p>Unregister a Service (deleteService)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Unregister a service</p> + <p class="marked">Unregister a registered Service using its service ID. Only registered services can be unregistered. All A1 Policy Instances for the previously registered service will be removed. +</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/a1-policy/v2/services/{service_id}</span></code></pre> @@ -8166,6 +8229,7 @@ public class ServiceRegistryAndSupervisionApiExample { ServiceRegistryAndSupervisionApi *apiInstance = [[ServiceRegistryAndSupervisionApi alloc] init]; String *serviceId = serviceId_example; // (default to null) +// Unregister a Service (deleteService) [apiInstance deleteServiceWith:serviceId completionHandler: ^(Object output, NSError* error) { if (output) { @@ -8179,10 +8243,10 @@ String *serviceId = serviceId_example; // (default to null) </div> <div class="tab-pane" id="examples-ServiceRegistryAndSupervision-deleteService-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.ServiceRegistryAndSupervisionApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.ServiceRegistryAndSupervisionApi() var serviceId = serviceId_example; // {String} var callback = function(error, data, response) { @@ -8218,6 +8282,7 @@ namespace Example var serviceId = serviceId_example; // String | (default to null) try { + // Unregister a Service (deleteService) Object result = apiInstance.deleteService(serviceId); Debug.WriteLine(result); } catch (Exception e) { @@ -8276,6 +8341,7 @@ api_instance = openapi_client.ServiceRegistryAndSupervisionApi() serviceId = serviceId_example # String | (default to null) try: + # Unregister a Service (deleteService) api_response = api_instance.delete_service(serviceId) pprint(api_response) except ApiException as e: @@ -8489,12 +8555,13 @@ pub fn main() { <article id="api-ServiceRegistryAndSupervision-getServices-0" data-group="User" data-name="getServices" data-version="0"> <div class="pull-left"> <h1>getServices</h1> - <p>Returns service information</p> + <p>Get Services (getServices)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Either information about a registered service with given identity or all registered services are returned.</p> + <p class="marked">Get information about all registered services, or a single registered service. If the service ID of a registered service is included in the query, information about that service is returned. Otherwise Information about all registered is returned. This operation does not retrieve information about unregistered services. +</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/services</span></code></pre> @@ -8538,7 +8605,7 @@ public class ServiceRegistryAndSupervisionApiExample { // Create an instance of the API class ServiceRegistryAndSupervisionApi apiInstance = new ServiceRegistryAndSupervisionApi(); - String serviceId = serviceId_example; // String | The identity of the service + String serviceId = serviceId_example; // String | The identity of the registered service try { service_status_list result = apiInstance.getServices(serviceId); @@ -8557,7 +8624,7 @@ public class ServiceRegistryAndSupervisionApiExample { final api_instance = DefaultApi(); -final String serviceId = new String(); // String | The identity of the service +final String serviceId = new String(); // String | The identity of the registered service try { final result = await api_instance.getServices(serviceId); @@ -8575,7 +8642,7 @@ try { public class ServiceRegistryAndSupervisionApiExample { public static void main(String[] args) { ServiceRegistryAndSupervisionApi apiInstance = new ServiceRegistryAndSupervisionApi(); - String serviceId = serviceId_example; // String | The identity of the service + String serviceId = serviceId_example; // String | The identity of the registered service try { service_status_list result = apiInstance.getServices(serviceId); @@ -8596,9 +8663,9 @@ public class ServiceRegistryAndSupervisionApiExample { // Create an instance of the API class ServiceRegistryAndSupervisionApi *apiInstance = [[ServiceRegistryAndSupervisionApi alloc] init]; -String *serviceId = serviceId_example; // The identity of the service (optional) (default to null) +String *serviceId = serviceId_example; // The identity of the registered service (optional) (default to null) -// Returns service information +// Get Services (getServices) [apiInstance getServicesWith:serviceId completionHandler: ^(service_status_list output, NSError* error) { if (output) { @@ -8612,12 +8679,12 @@ String *serviceId = serviceId_example; // The identity of the service (optional) </div> <div class="tab-pane" id="examples-ServiceRegistryAndSupervision-getServices-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.ServiceRegistryAndSupervisionApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.ServiceRegistryAndSupervisionApi() var opts = { - 'serviceId': serviceId_example // {String} The identity of the service + 'serviceId': serviceId_example // {String} The identity of the registered service }; var callback = function(error, data, response) { @@ -8650,10 +8717,10 @@ namespace Example // Create an instance of the API class var apiInstance = new ServiceRegistryAndSupervisionApi(); - var serviceId = serviceId_example; // String | The identity of the service (optional) (default to null) + var serviceId = serviceId_example; // String | The identity of the registered service (optional) (default to null) try { - // Returns service information + // Get Services (getServices) service_status_list result = apiInstance.getServices(serviceId); Debug.WriteLine(result); } catch (Exception e) { @@ -8671,7 +8738,7 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\ServiceRegistryAndSupervisionApi(); -$serviceId = serviceId_example; // String | The identity of the service +$serviceId = serviceId_example; // String | The identity of the registered service try { $result = $api_instance->getServices($serviceId); @@ -8689,7 +8756,7 @@ use WWW::OPenAPIClient::ServiceRegistryAndSupervisionApi; # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::ServiceRegistryAndSupervisionApi->new(); -my $serviceId = serviceId_example; # String | The identity of the service +my $serviceId = serviceId_example; # String | The identity of the registered service eval { my $result = $api_instance->getServices(serviceId => $serviceId); @@ -8709,10 +8776,10 @@ from pprint import pprint # Create an instance of the API class api_instance = openapi_client.ServiceRegistryAndSupervisionApi() -serviceId = serviceId_example # String | The identity of the service (optional) (default to null) +serviceId = serviceId_example # String | The identity of the registered service (optional) (default to null) try: - # Returns service information + # Get Services (getServices) api_response = api_instance.get_services(serviceId=serviceId) pprint(api_response) except ApiException as e: @@ -8763,7 +8830,7 @@ pub fn main() { </span> <div class="inner description marked"> -The identity of the service +The identity of the registered service </div> </div> </div> @@ -8931,12 +8998,12 @@ The identity of the service <article id="api-ServiceRegistryAndSupervision-keepAliveService-0" data-group="User" data-name="keepAliveService" data-version="0"> <div class="pull-left"> <h1>keepAliveService</h1> - <p>Heartbeat indicates that the service is running</p> + <p>Heartbeat message from a service (keepAliveService)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">A registered service should invoke this operation regularly to indicate that it is still alive. If a registered service fails to invoke this operation before the end of a timeout period the service will be deregistered and all its A1 policies wil be removed. (This timeout can be set or disabled when each service is initially registered)</p> + <p class="marked">A registered service should invoke this operation regularly to indicate that it is still alive. If a registered service fails to invoke some operation, or this operation, before the end of a timeout period the service will be deregistered and all its A1 policies wil be removed. This operation is only intended for registered services. (This timeout can be set or disabled when each service is initially registered)</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/a1-policy/v2/services/{service_id}/keepalive</span></code></pre> @@ -9040,7 +9107,7 @@ public class ServiceRegistryAndSupervisionApiExample { ServiceRegistryAndSupervisionApi *apiInstance = [[ServiceRegistryAndSupervisionApi alloc] init]; String *serviceId = serviceId_example; // (default to null) -// Heartbeat indicates that the service is running +// Heartbeat message from a service (keepAliveService) [apiInstance keepAliveServiceWith:serviceId completionHandler: ^(Object output, NSError* error) { if (output) { @@ -9054,10 +9121,10 @@ String *serviceId = serviceId_example; // (default to null) </div> <div class="tab-pane" id="examples-ServiceRegistryAndSupervision-keepAliveService-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.ServiceRegistryAndSupervisionApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.ServiceRegistryAndSupervisionApi() var serviceId = serviceId_example; // {String} var callback = function(error, data, response) { @@ -9093,7 +9160,7 @@ namespace Example var serviceId = serviceId_example; // String | (default to null) try { - // Heartbeat indicates that the service is running + // Heartbeat message from a service (keepAliveService) Object result = apiInstance.keepAliveService(serviceId); Debug.WriteLine(result); } catch (Exception e) { @@ -9152,7 +9219,7 @@ api_instance = openapi_client.ServiceRegistryAndSupervisionApi() serviceId = serviceId_example # String | (default to null) try: - # Heartbeat indicates that the service is running + # Heartbeat message from a service (keepAliveService) api_response = api_instance.keep_alive_service(serviceId) pprint(api_response) except ApiException as e: @@ -9366,12 +9433,13 @@ pub fn main() { <article id="api-ServiceRegistryAndSupervision-putService-0" data-group="User" data-name="putService" data-version="0"> <div class="pull-left"> <h1>putService</h1> - <p>Register a service</p> + <p>Register or update a Service (putService)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Registering a service is needed to:<ul><li>Get callbacks about available NearRT RICs.</li><li>Activate supervision of the service. If a service is inactive, its policies will automatically be deleted.</li></ul>Policies can be created even if the service is not registerred. This is a feature which it is optional to use.</p> + <p class="marked">Register a single service, or update a previous registtration. Service registration is required to get callbacks about available NearRT RICs and to enable supervision of the service's active status. If a registered service becomes inactive, its policies can be automatically deleted. A1 Policy instances can also be created for unregistered services. If an unregistered service is later registered, the service's policies are retained when the service becomes registered. This feature is optional to use. +</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/a1-policy/v2/services</span></code></pre> @@ -9477,7 +9545,7 @@ public class ServiceRegistryAndSupervisionApiExample { ServiceRegistryAndSupervisionApi *apiInstance = [[ServiceRegistryAndSupervisionApi alloc] init]; ServiceRegistrationInfo *serviceRegistrationInfo = ; // -// Register a service +// Register or update a Service (putService) [apiInstance putServiceWith:serviceRegistrationInfo completionHandler: ^(Object output, NSError* error) { if (output) { @@ -9491,10 +9559,10 @@ ServiceRegistrationInfo *serviceRegistrationInfo = ; // </div> <div class="tab-pane" id="examples-ServiceRegistryAndSupervision-putService-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.ServiceRegistryAndSupervisionApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.ServiceRegistryAndSupervisionApi() var serviceRegistrationInfo = ; // {ServiceRegistrationInfo} var callback = function(error, data, response) { @@ -9530,7 +9598,7 @@ namespace Example var serviceRegistrationInfo = new ServiceRegistrationInfo(); // ServiceRegistrationInfo | try { - // Register a service + // Register or update a Service (putService) Object result = apiInstance.putService(serviceRegistrationInfo); Debug.WriteLine(result); } catch (Exception e) { @@ -9589,7 +9657,7 @@ api_instance = openapi_client.ServiceRegistryAndSupervisionApi() serviceRegistrationInfo = # ServiceRegistrationInfo | try: - # Register a service + # Register or update a Service (putService) api_response = api_instance.put_service(serviceRegistrationInfo) pprint(api_response) except ApiException as e: @@ -9916,7 +9984,9 @@ $(document).ready(function() { <div class="app-desc">Information URL: <a href="https://www.onap.org/">https://www.onap.org/</a></div> <div class="app-desc">Contact Info: <a href="discuss-list@onap.com">discuss-list@onap.com</a></div> </p> - <div class="license-info">Copyright (C) 2020-2023 Nordix Foundation, and Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved. Licensed under the Apache 2 License.</div> + <div class="license-info">Copyright (C) 2020-2023 Nordix Foundation, and Copyright (C) 2024-2025 OpenInfra Foundation Europe. +All rights reserved. Licensed under the Apache 2 License. +</div> <div class="license-url">http://www.apache.org/licenses/LICENSE-2.0</div> </div> </div> diff --git a/a1-policy-management/api/offeredapis/openapitoolgen/offeredapis/pms-api/v3/custom/index.html b/a1-policy-management/api/offeredapis/openapitoolgen/offeredapis/pms-api/v3/custom/index.html index 5213a0a3..31499b8f 100644 --- a/a1-policy-management/api/offeredapis/openapitoolgen/offeredapis/pms-api/v3/custom/index.html +++ b/a1-policy-management/api/offeredapis/openapitoolgen/offeredapis/pms-api/v3/custom/index.html @@ -2,7 +2,7 @@ <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> - <title>A1 policy management API</title> + <title>ONAP CCSDK - A1 Policy Management API</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta charset="UTF-8" /> @@ -844,26 +844,12 @@ ul.nav-tabs { <script> // Script section to load models into a JS Var var defs = {} - defs["AuthorizationResult"] = { - "required" : [ "result" ], - "type" : "object", - "properties" : { - "result" : { - "type" : "boolean", - "description" : "If true, the access is granted" - } - }, - "description" : "Result of authorization", - "example" : { - "result" : true - } -}; defs["ErrorInformation"] = { "type" : "object", "properties" : { "detail" : { "type" : "string", - "description" : " A human-readable explanation specific to this occurrence of the problem.", + "description" : "A human-readable explanation specific to this occurrence of the problem.", "example" : "Policy type not found" }, "title" : { @@ -873,67 +859,26 @@ ul.nav-tabs { }, "status" : { "type" : "integer", - "description" : "The HTTP status code generated by the origin server for this occurrence of the problem. ", + "description" : "The HTTP status code generated by the origin server for this occurrence of the problem.\n", "format" : "int32", "example" : 404 } }, "description" : "Problem as defined in https://tools.ietf.org/html/rfc7807" }; - defs["input"] = { - "required" : [ "accessType", "authToken", "policyTypeId" ], - "type" : "object", - "properties" : { - "accessType" : { - "type" : "string", - "description" : "Access type", - "enum" : [ "READ", "WRITE", "DELETE" ] - }, - "authToken" : { - "type" : "string", - "description" : "Authorization token" - }, - "policyTypeId" : { - "type" : "string", - "description" : "Policy type identifier" - } - }, - "description" : "input" -}; - defs["Link"] = { - "type" : "object", - "properties" : { - "templated" : { - "type" : "boolean" - }, - "href" : { - "type" : "string" - } - } -}; - defs["PolicyAuthorization"] = { - "required" : [ "input" ], - "type" : "object", - "properties" : { - "input" : { - "$ref" : "#/components/schemas/input" - } - }, - "description" : "Authorization request for A1 policy requests" -}; defs["PolicyInformation"] = { "required" : [ "nearRtRicId", "policyId" ], "type" : "object", "properties" : { "policyId" : { "type" : "string", - "description" : "Identity of the policy" + "description" : "Identity of the A1 Policy Instance" }, "nearRtRicId" : { "$ref" : "#/components/schemas/NearRtRicId" } }, - "description" : "Near-RT RIC identifiers where A1 policies exist and for each Near-RT RIC identifier the policy identifiers of those policies that exist in that Near-RT RIC" + "description" : "Information tuple for a single A1 Policy Instance. Contains the A1 Policy Instance ID, and the ID of the Near-RT RIC where the policy is created. \n" }; defs["PolicyObjectInformation"] = { "required" : [ "nearRtRicId", "policyObject", "policyTypeId" ], @@ -942,23 +887,23 @@ ul.nav-tabs { "nearRtRicId" : { "type" : "string", "description" : "Identity of the target Near-RT RIC", - "example" : "Near-RT-Ric-ID" + "example" : "Near-RT-Ric-ID1" }, "transient" : { "type" : "boolean", - "description" : "If true, the policy is deleted at RIC restart. If false, its value is maintained by this service until explicitly deleted. Default false.", + "description" : "If true, the policy is automatically deleted if the targeted Near-RT RIC restarts or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.\n", "nullable" : false, "default" : false }, "policyId" : { "type" : "string", - "description" : "The identity of the Policy. If this value is present, it must be unique; otherwise, a random UUID is generated.", - "example" : "POLICY-ID" + "description" : "An optional identity to be used for the new A1 Policy Instance. If this value is present, it must be unique. If not present the new A1 Policy Instance will be assigned a newly generated unique ID, and the new ID can be extracted from the 'Location' header in the response.\n", + "example" : "POLICY-ID1" }, "serviceId" : { "type" : "string", - "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered.", - "example" : "rApp ID", + "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered. If the service is registered, the newly created A1 Policy Instance will be subject to the same supervision rules as the the service's other policies.", + "example" : "rApp 1", "default" : "" }, "policyObject" : { @@ -966,25 +911,11 @@ ul.nav-tabs { }, "policyTypeId" : { "type" : "string", - "description" : "Identity of the policy type", - "example" : "ORAN_QOS_1.0.0(typeName_SemVersion)" - } - }, - "description" : "Information related to the creation of the policy" -}; - defs["PolicyStatusInfo"] = { - "type" : "object", - "properties" : { - "lastModified" : { - "type" : "string", - "description" : "timestamp, last modification time" - }, - "status" : { - "type" : "object", - "description" : "the Policy status" + "description" : "A1 Policy Type identity", + "example" : "ORAN_QOS_1.0.0 '(typeName_SemVersion)'" } }, - "description" : "Status for one A1-P Policy" + "description" : "Information to create an A1 Policy Instance" }; defs["PolicyTypeInformation"] = { "required" : [ "nearRtRicId", "policyTypeId" ], @@ -992,16 +923,16 @@ ul.nav-tabs { "properties" : { "policyTypeId" : { "type" : "string", - "description" : "Identity of the policy type" + "description" : "A1 Policy Type identifier" }, "nearRtRicId" : { "$ref" : "#/components/schemas/NearRtRicId" } }, - "description" : "Available policy types and for each policy type identifier the Near-RT RIC identifiers of those Near-RT RICs that support the related A1 policy type", + "description" : "A data tuple to indicate that an identified A1 Policy Type is supported at an identified Near-RT RIC.", "example" : { "policyTypeId" : "STD_QOS2_0.1.0", - "nearRtRicId" : "ricsim_g3_2" + "nearRtRicId" : "ric_g3_2" } }; defs["PolicyTypeObject"] = { @@ -1015,12 +946,12 @@ ul.nav-tabs { "$ref" : "#/components/schemas/StatusSchema" } }, - "description" : "policy type object as defined in A1TD", + "description" : "An A1 Policy Type, as defined in O-RAN Alliance A1TD", "example" : { "policySchema" : { "$schema" : "http://json-schema.org/draft-07/schema#", "title" : "STD_QOS_0_2_0", - "description" : "STD QOS policy type", + "description" : "Policy data schema for STD_QOS_0.2.0 A1 Policy Instances.", "type" : "object", "properties" : { "scope" : { @@ -1051,7 +982,7 @@ ul.nav-tabs { "statusSchema" : { "$schema" : "http://json-schema.org/draft-07/schema#", "title" : "STD_QOS_0.2.0", - "description" : "STD QOS policy type status", + "description" : "Status schema for STD_QOS_0.2.0 A1 Policy Instances.", "type" : "object", "properties" : { "enforceStatus" : { @@ -1071,26 +1002,26 @@ ul.nav-tabs { "properties" : { "type" : { "type" : "string", - "description" : "a URI reference according to IETF RFC 3986 that identifies the problem type" + "description" : "URI reference according to IETF RFC 3986 that identifies the problem type" }, "title" : { "type" : "string", - "description" : "human-readable summary of the problem type" + "description" : "Human-readable summary of the problem type" }, "status" : { "type" : "number", - "description" : "the HTTP status code" + "description" : "HTTP status code" }, "detail" : { "type" : "string", - "description" : "human-readable explanation " + "description" : "Human-readable explanation" }, "instance" : { "type" : "string", "description" : "URI reference that identifies the specific occurrence of the problem" } }, - "description" : "A problem detail to carry details in an HTTP response according to RFC 7807" + "description" : "Object to carry details about a problem in an HTTP response according to IETF RFC 7807" }; defs["RicInfo"] = { "type" : "object", @@ -1101,23 +1032,23 @@ ul.nav-tabs { }, "managedElementIds" : { "type" : "array", - "description" : "O1 identities for managed entities", + "description" : "Identities for managed entities", "items" : { "type" : "string", - "description" : "O1 identities for managed entities" + "description" : "Identity for a managed entity" } }, "state" : { "type" : "string", - "description" : "Represents the states for a Near-RT RIC", + "description" : "Represents the state of a Near-RT RIC", "enum" : [ "UNAVAILABLE", "AVAILABLE", "SYNCHRONIZING", "CONSISTENCY_CHECK" ] }, "policyTypeIds" : { "type" : "array", - "description" : "supported policy types", + "description" : "Supported A1 Policy Types", "items" : { "type" : "string", - "description" : "supported policy types" + "description" : "Supported A1 Policy Type ID" } } }, @@ -1128,13 +1059,13 @@ ul.nav-tabs { "properties" : { "rics" : { "type" : "array", - "description" : "List of Near-RT RIC information", + "description" : "List of Near-RT RIC information objects", "items" : { "$ref" : "#/components/schemas/RicInfo" } } }, - "description" : "List of Near-RT RIC information" + "description" : "Collection of Near-RT RIC information objects" }; defs["ServiceCallbackInfo"] = { "required" : [ "eventType", "ricId" ], @@ -1146,11 +1077,11 @@ ul.nav-tabs { }, "eventType" : { "type" : "string", - "description" : "values:\nAVAILABLE: the Near-RT RIC has become available for A1 Policy management", + "description" : "values: \n AVAILABLE: the Near-RT RIC has become available for A1 Policy management\n", "enum" : [ "AVAILABLE" ] } }, - "description" : "Information transferred as in Service callbacks (callback_url)" + "description" : "Information transferred in Service callbacks, \nif a callback URL was provided for a registered service\n" }; defs["ServiceRegistrationInfo"] = { "required" : [ "serviceId" ], @@ -1158,7 +1089,7 @@ ul.nav-tabs { "properties" : { "callbackUrl" : { "type" : "string", - "description" : "callback for notifying of Near-RT RIC state changes" + "description" : "Callback URL for notifying of Near-RT RIC state changes" }, "serviceId" : { "type" : "string", @@ -1166,18 +1097,18 @@ ul.nav-tabs { }, "keepAliveIntervalSeconds" : { "type" : "integer", - "description" : "keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.", + "description" : "Keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n", "format" : "int64" } }, - "description" : "Information for one service" + "description" : "Information for a service to be registered" }; defs["ServiceStatus"] = { "type" : "object", "properties" : { "callbackUrl" : { "type" : "string", - "description" : "callback for notifying of RIC synchronization" + "description" : "Callback URL for notifying of Near-RT RIC state changes" }, "serviceId" : { "type" : "string", @@ -1185,22 +1116,23 @@ ul.nav-tabs { }, "keepAliveIntervalSeconds" : { "type" : "integer", - "description" : "policy keep alive timeout", + "description" : "Keep alive interval (seconds) for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n", "format" : "int64" }, "timeSinceLastActivitySeconds" : { "type" : "integer", - "description" : "time since last invocation by the service", + "description" : "Time (seconds) since last recorded operation by the service", "format" : "int64" } - } + }, + "description" : "Information about a previously registered service" }; defs["ServiceStatusList"] = { "type" : "object", "properties" : { "serviceList" : { "type" : "array", - "description" : "List of service information", + "description" : "List of Service Status objects, describing a collection of registered services.", "items" : { "$ref" : "#/components/schemas/ServiceStatus" } @@ -1212,14 +1144,14 @@ ul.nav-tabs { "properties" : { "status" : { "type" : "string", - "description" : "status text" + "description" : "Status text" } } }; defs["NearRtRicId"] = { "type" : "string", - "description" : "Identity of the policy" + "description" : "Identity of the Near-RT RIC" }; var errs = {}; @@ -1246,12 +1178,12 @@ ul.nav-tabs { <li data-group="A1PolicyManagement" data-name="deletePolicy" class=""> <a href="#api-A1PolicyManagement-deletePolicy">deletePolicy</a> </li> - <li data-group="A1PolicyManagement" data-name="getAllPolicies" class=""> - <a href="#api-A1PolicyManagement-getAllPolicies">getAllPolicies</a> - </li> <li data-group="A1PolicyManagement" data-name="getPolicy" class=""> <a href="#api-A1PolicyManagement-getPolicy">getPolicy</a> </li> + <li data-group="A1PolicyManagement" data-name="getPolicyIds" class=""> + <a href="#api-A1PolicyManagement-getPolicyIds">getPolicyIds</a> + </li> <li data-group="A1PolicyManagement" data-name="getPolicyStatus" class=""> <a href="#api-A1PolicyManagement-getPolicyStatus">getPolicyStatus</a> </li> @@ -1261,8 +1193,8 @@ ul.nav-tabs { <li data-group="A1PolicyManagement" data-name="getPolicyTypes" class=""> <a href="#api-A1PolicyManagement-getPolicyTypes">getPolicyTypes</a> </li> - <li data-group="A1PolicyManagement" data-name="putPolicy" class=""> - <a href="#api-A1PolicyManagement-putPolicy">putPolicy</a> + <li data-group="A1PolicyManagement" data-name="updatePolicy" class=""> + <a href="#api-A1PolicyManagement-updatePolicy">updatePolicy</a> </li> </ul> </nav> @@ -1270,7 +1202,7 @@ ul.nav-tabs { <div id="content"> <div id="project"> <div class="pull-left"> - <h1>A1 policy management API</h1> + <h1>ONAP CCSDK - A1 Policy Management API</h1> </div> <div class="clearfix"></div> </div> @@ -1280,7 +1212,7 @@ ul.nav-tabs { <div class="app-desc">Version: 1.0.0</div> <hr> <div id="app-description" class="app-desc"> - <h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managemecnt of A1 policies. <br/>The main tasks of the service are:</p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 policies and the Near-RT RICs</li><li>Maintaining a view of supported Near-RT RIC policy types</li><li>Supervision of using services (R-APPs). When a service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2><h3>A1 Policy Management</h3><p>This is an API for management of A1 Policies.</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository</h3><p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted for one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the PMS component.</p><h3>Service Registry and Supervision</h3><p>API used for registering services that uses PMS. Each A1 policy is optionally owned by a service. PMS can supervise each registered service by a heart-beat supervision and will automatically remove policies for unavailable services. Note that a service does not need to be registered in order to create A1 Policies. This is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used for access control of A1 Policy access. If configured, an external authorization provider is requested to grant access to the A1 Policy type.</p> + <h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes the latest API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2> <p>Note: parts of this API are strongly based on extracts of the O-RAN Alliance R1 Interface specification for A1 Policy Management, and those parts should be considered '© O-RAN ALLIANCE - All rights reserved.'</p> <h3>A1 Policy Management</h3> <p>This is the latest API for managing A1 Policies. This API is partially compliant with O-RAN Alliance R1 Interface specifications for A1 Policy Management:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service.</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then its A1 Policies are removed. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p> </div> </div> @@ -1292,12 +1224,12 @@ ul.nav-tabs { <article id="api-A1PolicyManagement-createPolicy-0" data-group="User" data-name="createPolicy" data-version="0"> <div class="pull-left"> <h1>createPolicy</h1> - <p></p> + <p>Create an A1 Policy Instance (createPolicy)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">To create A1 policies</p> + <p class="marked">Create an A1 Policy Instance</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/policies</span></code></pre> @@ -1327,12 +1259,12 @@ ul.nav-tabs { -H "Content-Type: application/json" \ "https://example.com/a1-policy-management/v1/policies" \ -d '{ - "policyId" : "POLICY-ID", - "nearRtRicId" : "Near-RT-Ric-ID", + "policyId" : "POLICY-ID1", + "nearRtRicId" : "Near-RT-Ric-ID1", "transient" : false, "policyObject" : "{}", - "serviceId" : "rApp ID", - "policyTypeId" : "ORAN_QOS_1.0.0(typeName_SemVersion)" + "serviceId" : "rApp 1", + "policyTypeId" : "ORAN_QOS_1.0.0 '(typeName_SemVersion)'" }' </code></pre> </div> @@ -1410,6 +1342,7 @@ public class A1PolicyManagementApiExample { A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; PolicyObjectInformation *policyObjectInformation = ; // +// Create an A1 Policy Instance (createPolicy) [apiInstance createPolicyWith:policyObjectInformation completionHandler: ^(PolicyObjectInformation output, NSError* error) { if (output) { @@ -1423,10 +1356,10 @@ PolicyObjectInformation *policyObjectInformation = ; // </div> <div class="tab-pane" id="examples-A1PolicyManagement-createPolicy-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() var policyObjectInformation = ; // {PolicyObjectInformation} var callback = function(error, data, response) { @@ -1462,6 +1395,7 @@ namespace Example var policyObjectInformation = new PolicyObjectInformation(); // PolicyObjectInformation | try { + // Create an A1 Policy Instance (createPolicy) PolicyObjectInformation result = apiInstance.createPolicy(policyObjectInformation); Debug.WriteLine(result); } catch (Exception e) { @@ -1520,6 +1454,7 @@ api_instance = openapi_client.A1PolicyManagementApi() policyObjectInformation = # PolicyObjectInformation | try: + # Create an A1 Policy Instance (createPolicy) api_response = api_instance.create_policy(policyObjectInformation) pprint(api_response) except ApiException as e: @@ -1605,7 +1540,7 @@ $(document).ready(function() { <h3 id="examples-A1PolicyManagement-createPolicy-title-201"></h3> <p id="examples-A1PolicyManagement-createPolicy-description-201" class="marked"></p> <script> - var responseA1PolicyManagement201_description = `Success case 201 created`; + var responseA1PolicyManagement201_description = `Created`; var responseA1PolicyManagement201_description_break = responseA1PolicyManagement201_description.indexOf('\n'); if (responseA1PolicyManagement201_description_break == -1) { $("#examples-A1PolicyManagement-createPolicy-title-201").text("Status: 201 - " + responseA1PolicyManagement201_description); @@ -1636,16 +1571,25 @@ $(document).ready(function() { <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Success case 201 created", + "description" : "Created", "headers" : { "Location" : { - "description" : "Contains the URI of the newly created resource", + "description" : "Contains the URI of the newly created A1 Policy Instances. This URI includes the A1 Policy Instance ID for the newly created policy instance.\n", "required" : true, "style" : "simple", "explode" : false, "schema" : { "type" : "string" } + }, + "Content-Type" : { + "description" : "Media Type of the response", + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string", + "example" : "application/json" + } } }, "content" : { @@ -1703,7 +1647,14 @@ $(document).ready(function() { <td>Location</td> <td>String</td> <td></td> - <td>Contains the URI of the newly created resource</td> + <td>Contains the URI of the newly created A1 Policy Instances. This URI includes the A1 Policy Instance ID for the newly created policy instance. +</td> + </tr> + <tr> + <td>Content-Type</td> + <td>String</td> + <td></td> + <td>Media Type of the response</td> </tr> </table> </div> @@ -2432,7 +2383,7 @@ $(document).ready(function() { "example" : { "status" : 423, "title" : "Locked", - "detail" : "State is Locked in the provided request." + "detail" : "State is Locked in the provided request." } } } @@ -2476,7 +2427,7 @@ $(document).ready(function() { <h3 id="examples-A1PolicyManagement-createPolicy-title-429"></h3> <p id="examples-A1PolicyManagement-createPolicy-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { $("#examples-A1PolicyManagement-createPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); @@ -2504,7 +2455,7 @@ $(document).ready(function() { <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -2784,12 +2735,12 @@ $(document).ready(function() { <article id="api-A1PolicyManagement-deletePolicy-0" data-group="User" data-name="deletePolicy" data-version="0"> <div class="pull-left"> <h1>deletePolicy</h1> - <p>Delete a policy</p> + <p>Delete an A1 Policy instance (deletePolicy)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Deleting the policy using policyId.</p> + <p class="marked">Delete an existing A1 Policy instance using its policy ID.</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/policies/{policyId}</span></code></pre> @@ -2895,7 +2846,7 @@ A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; String *policyId = policyId_example; // (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) -// Delete a policy +// Delete an A1 Policy instance (deletePolicy) [apiInstance deletePolicyWith:policyId accept:accept completionHandler: ^(NSError* error) { @@ -2907,10 +2858,10 @@ String *accept = application/json; // Specifies the content type that the client </div> <div class="tab-pane" id="examples-A1PolicyManagement-deletePolicy-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() var policyId = policyId_example; // {String} var opts = { 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. @@ -2950,7 +2901,7 @@ namespace Example 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 { - // Delete a policy + // Delete an A1 Policy instance (deletePolicy) apiInstance.deletePolicy(policyId, accept); } catch (Exception e) { Debug.Print("Exception when calling A1PolicyManagementApi.deletePolicy: " + e.Message ); @@ -3009,7 +2960,7 @@ policyId = policyId_example # String | (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: - # Delete a policy + # Delete an A1 Policy instance (deletePolicy) api_instance.delete_policy(policyId, accept=accept) except ApiException as e: print("Exception when calling A1PolicyManagementApi->deletePolicy: %s\n" % e)</code></pre> @@ -3101,7 +3052,7 @@ Specifies the content type that the client expects to receive in response to the <h3 id="examples-A1PolicyManagement-deletePolicy-title-204"></h3> <p id="examples-A1PolicyManagement-deletePolicy-description-204" class="marked"></p> <script> - var responseA1PolicyManagement204_description = `The A1 policy was deleted`; + var responseA1PolicyManagement204_description = `No Content`; var responseA1PolicyManagement204_description_break = responseA1PolicyManagement204_description.indexOf('\n'); if (responseA1PolicyManagement204_description_break == -1) { $("#examples-A1PolicyManagement-deletePolicy-title-204").text("Status: 204 - " + responseA1PolicyManagement204_description); @@ -3124,7 +3075,7 @@ Specifies the content type that the client expects to receive in response to the <script> $(document).ready(function() { var schemaWrapper = { - "description" : "The A1 policy was deleted" + "description" : "No Content" }; var schema = findNode('schema',schemaWrapper).schema; if (!schema) { @@ -3658,7 +3609,7 @@ Specifies the content type that the client expects to receive in response to the "example" : { "status" : 423, "title" : "Locked", - "detail" : "State is Locked in the provided request." + "detail" : "State is Locked in the provided request." } } } @@ -3702,7 +3653,7 @@ Specifies the content type that the client expects to receive in response to the <h3 id="examples-A1PolicyManagement-deletePolicy-title-429"></h3> <p id="examples-A1PolicyManagement-deletePolicy-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { $("#examples-A1PolicyManagement-deletePolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); @@ -3730,7 +3681,7 @@ Specifies the content type that the client expects to receive in response to the <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -4006,46 +3957,46 @@ Specifies the content type that the client expects to receive in response to the </article> </div> <hr> - <div id="api-A1PolicyManagement-getAllPolicies"> - <article id="api-A1PolicyManagement-getAllPolicies-0" data-group="User" data-name="getAllPolicies" data-version="0"> + <div id="api-A1PolicyManagement-getPolicy"> + <article id="api-A1PolicyManagement-getPolicy-0" data-group="User" data-name="getPolicy" data-version="0"> <div class="pull-left"> - <h1>getAllPolicies</h1> - <p>Query policy identities</p> + <h1>getPolicy</h1> + <p>Get an A1 Policy's policy data (getPolicy)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Returns a list of A1 policies matching given search criteria. <br>If several query parameters are defined, the policies matching all conditions are returned.</p> + <p class="marked">Get an A1 Policy instance's policy data using its policy ID</p> <p></p> <br /> - <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies</span></code></pre> + <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies/{policyId}</span></code></pre> <p> <h3>Usage and SDK Samples</h3> </p> <ul class="nav nav-tabs nav-tabs-examples"> - <li class="active"><a href="#examples-A1PolicyManagement-getAllPolicies-0-curl">Curl</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-java">Java</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-dart">Dart</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-android">Android</a></li> - <!--<li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-groovy">Groovy</a></li>--> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-objc">Obj-C</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-javascript">JavaScript</a></li> - <!--<li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-angular">Angular</a></li>--> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-csharp">C#</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-php">PHP</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-perl">Perl</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-python">Python</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-rust">Rust</a></li> + <li class="active"><a href="#examples-A1PolicyManagement-getPolicy-0-curl">Curl</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-java">Java</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-dart">Dart</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-android">Android</a></li> + <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-groovy">Groovy</a></li>--> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-objc">Obj-C</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-javascript">JavaScript</a></li> + <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-angular">Angular</a></li>--> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-csharp">C#</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-php">PHP</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-perl">Perl</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-python">Python</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-rust">Rust</a></li> </ul> <div class="tab-content"> - <div class="tab-pane active" id="examples-A1PolicyManagement-getAllPolicies-0-curl"> + <div class="tab-pane active" id="examples-A1PolicyManagement-getPolicy-0-curl"> <pre class="prettyprint"><code class="language-bsh">curl -X GET \ -H "Accept: application/json,application/problem+json" \ - "https://example.com/a1-policy-management/v1/policies?policyTypeId=policyTypeId_example&nearRtRicId=nearRtRicId_example&serviceId=serviceId_example&typeName=typeName_example" + "https://example.com/a1-policy-management/v1/policies/{policyId}" </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-java"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-java"> <pre class="prettyprint"><code class="language-java">import org.openapitools.client.*; import org.openapitools.client.auth.*; import org.openapitools.client.model.*; @@ -4059,17 +4010,14 @@ public class A1PolicyManagementApiExample { // Create an instance of the API class A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); - String policyTypeId = policyTypeId_example; // String | Select policies of a given policy type identity. - String nearRtRicId = nearRtRicId_example; // String | Select policies of a given Near-RT RIC identity. - String serviceId = serviceId_example; // String | Select policies owned by a given service. - String typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>) + String policyId = policyId_example; // String | 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 { - array[PolicyInformation] result = apiInstance.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept); + Object result = apiInstance.getPolicy(policyId, accept); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling A1PolicyManagementApi#getAllPolicies"); + System.err.println("Exception when calling A1PolicyManagementApi#getPolicy"); e.printStackTrace(); } } @@ -4077,71 +4025,59 @@ public class A1PolicyManagementApiExample { </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-dart"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-dart"> <pre class="prettyprint"><code class="language-dart">import 'package:openapi/api.dart'; final api_instance = DefaultApi(); -final String policyTypeId = new String(); // String | Select policies of a given policy type identity. -final String nearRtRicId = new String(); // String | Select policies of a given Near-RT RIC identity. -final String serviceId = new String(); // String | Select policies owned by a given service. -final String typeName = new String(); // String | Select policies of types with the given type name (type identity has the format <typename_version>) +final String policyId = new String(); // String | 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.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept); + final result = await api_instance.getPolicy(policyId, accept); print(result); } catch (e) { - print('Exception when calling DefaultApi->getAllPolicies: $e\n'); + print('Exception when calling DefaultApi->getPolicy: $e\n'); } </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-android"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-android"> <pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.A1PolicyManagementApi; public class A1PolicyManagementApiExample { public static void main(String[] args) { A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); - String policyTypeId = policyTypeId_example; // String | Select policies of a given policy type identity. - String nearRtRicId = nearRtRicId_example; // String | Select policies of a given Near-RT RIC identity. - String serviceId = serviceId_example; // String | Select policies owned by a given service. - String typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>) + String policyId = policyId_example; // String | 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 { - array[PolicyInformation] result = apiInstance.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept); + Object result = apiInstance.getPolicy(policyId, accept); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling A1PolicyManagementApi#getAllPolicies"); + System.err.println("Exception when calling A1PolicyManagementApi#getPolicy"); e.printStackTrace(); } } }</code></pre> </div> <!-- - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-groovy"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-groovy"> <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre> </div> --> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-objc"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-objc"> <pre class="prettyprint"><code class="language-cpp"> // Create an instance of the API class A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; -String *policyTypeId = policyTypeId_example; // Select policies of a given policy type identity. (optional) (default to null) -String *nearRtRicId = nearRtRicId_example; // Select policies of a given Near-RT RIC identity. (optional) (default to null) -String *serviceId = serviceId_example; // Select policies owned by a given service. (optional) (default to null) -String *typeName = typeName_example; // Select policies of types with the given type name (type identity has the format <typename_version>) (optional) (default to null) +String *policyId = policyId_example; // (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) -// Query policy identities -[apiInstance getAllPoliciesWith:policyTypeId - nearRtRicId:nearRtRicId - serviceId:serviceId - typeName:typeName +// Get an A1 Policy's policy data (getPolicy) +[apiInstance getPolicyWith:policyId accept:accept - completionHandler: ^(array[PolicyInformation] output, NSError* error) { + completionHandler: ^(Object output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -4152,16 +4088,13 @@ String *accept = application/json; // Specifies the content type that the client </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-javascript"> + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() +var policyId = policyId_example; // {String} var opts = { - 'policyTypeId': policyTypeId_example, // {String} Select policies of a given policy type identity. - 'nearRtRicId': nearRtRicId_example, // {String} Select policies of a given Near-RT RIC identity. - 'serviceId': serviceId_example, // {String} Select policies owned by a given service. - 'typeName': typeName_example, // {String} Select policies of types with the given type name (type identity has the format <typename_version>) 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. }; @@ -4172,14 +4105,14 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -api.getAllPolicies(opts, callback); +api.getPolicy(policyId, opts, callback); </code></pre> </div> - <!--<div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-angular"> + <!--<div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-angular"> <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre> </div>--> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-csharp"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-csharp"> <pre class="prettyprint"><code class="language-cs">using System; using System.Diagnostics; using Org.OpenAPITools.Api; @@ -4188,25 +4121,22 @@ using Org.OpenAPITools.Model; namespace Example { - public class getAllPoliciesExample + public class getPolicyExample { public void main() { // Create an instance of the API class var apiInstance = new A1PolicyManagementApi(); - var policyTypeId = policyTypeId_example; // String | Select policies of a given policy type identity. (optional) (default to null) - var nearRtRicId = nearRtRicId_example; // String | Select policies of a given Near-RT RIC identity. (optional) (default to null) - var serviceId = serviceId_example; // String | Select policies owned by a given service. (optional) (default to null) - var typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>) (optional) (default to null) + var policyId = policyId_example; // String | (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 { - // Query policy identities - array[PolicyInformation] result = apiInstance.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept); + // Get an A1 Policy's policy data (getPolicy) + Object result = apiInstance.getPolicy(policyId, accept); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling A1PolicyManagementApi.getAllPolicies: " + e.Message ); + Debug.Print("Exception when calling A1PolicyManagementApi.getPolicy: " + e.Message ); } } } @@ -4214,50 +4144,44 @@ namespace Example </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-php"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-php"> <pre class="prettyprint"><code class="language-php"><?php require_once(__DIR__ . '/vendor/autoload.php'); // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi(); -$policyTypeId = policyTypeId_example; // String | Select policies of a given policy type identity. -$nearRtRicId = nearRtRicId_example; // String | Select policies of a given Near-RT RIC identity. -$serviceId = serviceId_example; // String | Select policies owned by a given service. -$typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>) +$policyId = policyId_example; // 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 { - $result = $api_instance->getAllPolicies($policyTypeId, $nearRtRicId, $serviceId, $typeName, $accept); + $result = $api_instance->getPolicy($policyId, $accept); print_r($result); } catch (Exception $e) { - echo 'Exception when calling A1PolicyManagementApi->getAllPolicies: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling A1PolicyManagementApi->getPolicy: ', $e->getMessage(), PHP_EOL; } ?></code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-perl"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-perl"> <pre class="prettyprint"><code class="language-perl">use Data::Dumper; use WWW::OPenAPIClient::Configuration; use WWW::OPenAPIClient::A1PolicyManagementApi; # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new(); -my $policyTypeId = policyTypeId_example; # String | Select policies of a given policy type identity. -my $nearRtRicId = nearRtRicId_example; # String | Select policies of a given Near-RT RIC identity. -my $serviceId = serviceId_example; # String | Select policies owned by a given service. -my $typeName = typeName_example; # String | Select policies of types with the given type name (type identity has the format <typename_version>) +my $policyId = policyId_example; # String | 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->getAllPolicies(policyTypeId => $policyTypeId, nearRtRicId => $nearRtRicId, serviceId => $serviceId, typeName => $typeName, accept => $accept); + my $result = $api_instance->getPolicy(policyId => $policyId, accept => $accept); print Dumper($result); }; if ($@) { - warn "Exception when calling A1PolicyManagementApi->getAllPolicies: $@\n"; + warn "Exception when calling A1PolicyManagementApi->getPolicy: $@\n"; }</code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-python"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-python"> <pre class="prettyprint"><code class="language-python">from __future__ import print_statement import time import openapi_client @@ -4266,32 +4190,26 @@ from pprint import pprint # Create an instance of the API class api_instance = openapi_client.A1PolicyManagementApi() -policyTypeId = policyTypeId_example # String | Select policies of a given policy type identity. (optional) (default to null) -nearRtRicId = nearRtRicId_example # String | Select policies of a given Near-RT RIC identity. (optional) (default to null) -serviceId = serviceId_example # String | Select policies owned by a given service. (optional) (default to null) -typeName = typeName_example # String | Select policies of types with the given type name (type identity has the format <typename_version>) (optional) (default to null) +policyId = policyId_example # String | (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: - # Query policy identities - api_response = api_instance.get_all_policies(policyTypeId=policyTypeId, nearRtRicId=nearRtRicId, serviceId=serviceId, typeName=typeName, accept=accept) + # Get an A1 Policy's policy data (getPolicy) + api_response = api_instance.get_policy(policyId, accept=accept) pprint(api_response) except ApiException as e: - print("Exception when calling A1PolicyManagementApi->getAllPolicies: %s\n" % e)</code></pre> + print("Exception when calling A1PolicyManagementApi->getPolicy: %s\n" % e)</code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-rust"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-rust"> <pre class="prettyprint"><code class="language-rust">extern crate A1PolicyManagementApi; pub fn main() { - let policyTypeId = policyTypeId_example; // String - let nearRtRicId = nearRtRicId_example; // String - let serviceId = serviceId_example; // String - let typeName = typeName_example; // String + let policyId = policyId_example; // String let accept = application/json; // String let mut context = A1PolicyManagementApi::Context::default(); - let result = client.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept, &context).wait(); + let result = client.getPolicy(policyId, accept, &context).wait(); println!("{:?}", result); } @@ -4306,28 +4224,27 @@ pub fn main() { <h2>Parameters</h2> - - <div class="methodsubtabletitle">Header parameters</div> + <div class="methodsubtabletitle">Path parameters</div> <table id="methodsubtable"> - <tr> - <th width="150px">Name</th> - <th>Description</th> - </tr> - <tr><td style="width:150px;">Accept</td> + <tr> + <th width="150px">Name</th> + <th>Description</th> + </tr> + <tr><td style="width:150px;">policyId*</td> <td> - <div id="d2e199_getAllPolicies_accept"> + <div id="d2e199_getPolicy_policyId"> <div class="json-schema-view"> <div class="primitive"> <span class="type"> String </span> - <div class="inner description marked"> -Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. - </div> </div> + <div class="inner required"> + Required + </div> </div> </div> </td> @@ -4335,59 +4252,17 @@ Specifies the content type that the client expects to receive in response to the </table> - - - <div class="methodsubtabletitle">Query parameters</div> + <div class="methodsubtabletitle">Header parameters</div> <table id="methodsubtable"> <tr> <th width="150px">Name</th> <th>Description</th> </tr> - <tr><td style="width:150px;">policyTypeId</td> -<td> - - - <div id="d2e199_getAllPolicies_policyTypeId"> - <div class="json-schema-view"> - <div class="primitive"> - <span class="type"> - String - </span> - - <div class="inner description marked"> -Select policies of a given policy type identity. - </div> - </div> - </div> - </div> -</td> -</tr> - - <tr><td style="width:150px;">nearRtRicId</td> -<td> - - - <div id="d2e199_getAllPolicies_nearRtRicId"> - <div class="json-schema-view"> - <div class="primitive"> - <span class="type"> - String - </span> - - <div class="inner description marked"> -Select policies of a given Near-RT RIC identity. - </div> - </div> - </div> - </div> -</td> -</tr> - - <tr><td style="width:150px;">serviceId</td> + <tr><td style="width:150px;">Accept</td> <td> - <div id="d2e199_getAllPolicies_serviceId"> + <div id="d2e199_getPolicy_accept"> <div class="json-schema-view"> <div class="primitive"> <span class="type"> @@ -4395,7 +4270,7 @@ Select policies of a given Near-RT RIC identity. </span> <div class="inner description marked"> -Select policies owned by a given service. +Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. </div> </div> </div> @@ -4403,46 +4278,29 @@ Select policies owned by a given service. </td> </tr> - <tr><td style="width:150px;">typeName</td> -<td> + </table> - <div id="d2e199_getAllPolicies_typeName"> - <div class="json-schema-view"> - <div class="primitive"> - <span class="type"> - String - </span> - <div class="inner description marked"> -Select policies of types with the given type name (type identity has the format <typename_version>) - </div> - </div> - </div> - </div> -</td> -</tr> - - </table> <h2>Responses</h2> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-200"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-200" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-200"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-200" class="marked"></p> <script> - var responseA1PolicyManagement200_description = `OK - Policy identities`; + var responseA1PolicyManagement200_description = `OK - Policy found`; var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n'); if (responseA1PolicyManagement200_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); + $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-200" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-200" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-200-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-200-schema">Schema</a> </li> @@ -4451,19 +4309,21 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-200-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-200-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-200" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-200-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-200-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-200" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { - "description" : "OK - Policy identities", + "description" : "OK - Policy found", "content" : { "application/json" : { "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/PolicyInformation" + "$ref" : "#/components/schemas/PolicyObject" + }, + "examples" : { + "policyObject" : { + "$ref" : "#/components/examples/PolicyObject" } } } @@ -4495,33 +4355,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-200-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-200'); + $('#responses-A1PolicyManagement-getPolicy-200-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-200'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-200-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-200-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-400"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-400" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-400"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-400" class="marked"></p> <script> var responseA1PolicyManagement400_description = `Bad Request`; var responseA1PolicyManagement400_description_break = responseA1PolicyManagement400_description.indexOf('\n'); if (responseA1PolicyManagement400_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description); + $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-400" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-400" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-400-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-400-schema">Schema</a> </li> @@ -4530,9 +4390,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-400-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-400-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-400" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-400-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-400-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-400" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -4571,33 +4431,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-400-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-400'); + $('#responses-A1PolicyManagement-getPolicy-400-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-400'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-400-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-400-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-401"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-401" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-401"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-401" class="marked"></p> <script> var responseA1PolicyManagement401_description = `Unauthorized`; var responseA1PolicyManagement401_description_break = responseA1PolicyManagement401_description.indexOf('\n'); if (responseA1PolicyManagement401_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description); + $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-401" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-401" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-401-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-401-schema">Schema</a> </li> @@ -4606,9 +4466,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-401-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-401-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-401" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-401-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-401-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-401" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -4647,33 +4507,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-401-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-401'); + $('#responses-A1PolicyManagement-getPolicy-401-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-401'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-401-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-401-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-403"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-403" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-403"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-403" class="marked"></p> <script> var responseA1PolicyManagement403_description = `Forbidden`; var responseA1PolicyManagement403_description_break = responseA1PolicyManagement403_description.indexOf('\n'); if (responseA1PolicyManagement403_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description); + $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-403" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-403" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-403-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-403-schema">Schema</a> </li> @@ -4682,9 +4542,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-403-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-403-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-403" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-403-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-403-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-403" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -4723,33 +4583,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-403-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-403'); + $('#responses-A1PolicyManagement-getPolicy-403-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-403'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-403-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-403-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-404"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-404" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-404"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-404" class="marked"></p> <script> var responseA1PolicyManagement404_description = `Not Found`; var responseA1PolicyManagement404_description_break = responseA1PolicyManagement404_description.indexOf('\n'); if (responseA1PolicyManagement404_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description); + $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-404" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-404" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-404-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-404-schema">Schema</a> </li> @@ -4758,9 +4618,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-404-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-404-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-404" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-404-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-404-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-404" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -4799,33 +4659,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-404-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-404'); + $('#responses-A1PolicyManagement-getPolicy-404-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-404'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-404-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-404-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-406"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-406" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-406"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-406" class="marked"></p> <script> var responseA1PolicyManagement406_description = `Not Acceptable`; var responseA1PolicyManagement406_description_break = responseA1PolicyManagement406_description.indexOf('\n'); if (responseA1PolicyManagement406_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description); + $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-406" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-406" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-406-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-406-schema">Schema</a> </li> @@ -4834,9 +4694,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-406-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-406-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-406" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-406-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-406-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-406" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -4875,33 +4735,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-406-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-406'); + $('#responses-A1PolicyManagement-getPolicy-406-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-406'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-406-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-406-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-429"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-429" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-429"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); + $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-429" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-429" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-429-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-429-schema">Schema</a> </li> @@ -4910,13 +4770,13 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-429-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-429-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-429" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-429-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-429-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-429" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -4951,33 +4811,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-429-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-429'); + $('#responses-A1PolicyManagement-getPolicy-429-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-429'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-429-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-429-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-500"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-500" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-500"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-500" class="marked"></p> <script> var responseA1PolicyManagement500_description = `Internal Server Error`; var responseA1PolicyManagement500_description_break = responseA1PolicyManagement500_description.indexOf('\n'); if (responseA1PolicyManagement500_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description); + $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-500" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-500" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-500-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-500-schema">Schema</a> </li> @@ -4986,9 +4846,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-500-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-500-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-500" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-500-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-500-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-500" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5027,33 +4887,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-500-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-500'); + $('#responses-A1PolicyManagement-getPolicy-500-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-500'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-500-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-500-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-502"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-502" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-502"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-502" class="marked"></p> <script> var responseA1PolicyManagement502_description = `Bad Gateway`; var responseA1PolicyManagement502_description_break = responseA1PolicyManagement502_description.indexOf('\n'); if (responseA1PolicyManagement502_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description); + $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-502" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-502" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-502-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-502-schema">Schema</a> </li> @@ -5062,9 +4922,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-502-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-502-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-502" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-502-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-502-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-502" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5103,33 +4963,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-502-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-502'); + $('#responses-A1PolicyManagement-getPolicy-502-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-502'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-502-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-502-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-503"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-503" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-503"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-503" class="marked"></p> <script> var responseA1PolicyManagement503_description = `Service Unavailable`; var responseA1PolicyManagement503_description_break = responseA1PolicyManagement503_description.indexOf('\n'); if (responseA1PolicyManagement503_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description); + $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-503" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-503" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-503-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-503-schema">Schema</a> </li> @@ -5138,9 +4998,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-503-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-503-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-503" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-503-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-503-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-503" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5179,59 +5039,60 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-503-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-503'); + $('#responses-A1PolicyManagement-getPolicy-503-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-503'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-503-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-503-schema-data' type='hidden' value=''></input> </div> </div> </article> </div> <hr> - <div id="api-A1PolicyManagement-getPolicy"> - <article id="api-A1PolicyManagement-getPolicy-0" data-group="User" data-name="getPolicy" data-version="0"> + <div id="api-A1PolicyManagement-getPolicyIds"> + <article id="api-A1PolicyManagement-getPolicyIds-0" data-group="User" data-name="getPolicyIds" data-version="0"> <div class="pull-left"> - <h1>getPolicy</h1> - <p></p> + <h1>getPolicyIds</h1> + <p>Query for A1 Policy instances (getPolicyIds)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Returns a policy</p> + <p class="marked">Returns a collection of A1 Policy Instance IDs for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned. +</p> <p></p> <br /> - <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies/{policyId}</span></code></pre> + <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies</span></code></pre> <p> <h3>Usage and SDK Samples</h3> </p> <ul class="nav nav-tabs nav-tabs-examples"> - <li class="active"><a href="#examples-A1PolicyManagement-getPolicy-0-curl">Curl</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-java">Java</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-dart">Dart</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-android">Android</a></li> - <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-groovy">Groovy</a></li>--> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-objc">Obj-C</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-javascript">JavaScript</a></li> - <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-angular">Angular</a></li>--> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-csharp">C#</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-php">PHP</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-perl">Perl</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-python">Python</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-rust">Rust</a></li> + <li class="active"><a href="#examples-A1PolicyManagement-getPolicyIds-0-curl">Curl</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-java">Java</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-dart">Dart</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-android">Android</a></li> + <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-groovy">Groovy</a></li>--> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-objc">Obj-C</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-javascript">JavaScript</a></li> + <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-angular">Angular</a></li>--> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-csharp">C#</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-php">PHP</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-perl">Perl</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-python">Python</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-rust">Rust</a></li> </ul> <div class="tab-content"> - <div class="tab-pane active" id="examples-A1PolicyManagement-getPolicy-0-curl"> + <div class="tab-pane active" id="examples-A1PolicyManagement-getPolicyIds-0-curl"> <pre class="prettyprint"><code class="language-bsh">curl -X GET \ -H "Accept: application/json,application/problem+json" \ - "https://example.com/a1-policy-management/v1/policies/{policyId}" + "https://example.com/a1-policy-management/v1/policies?policyTypeId=policyTypeId_example&nearRtRicId=nearRtRicId_example&serviceId=serviceId_example&typeName=typeName_example" </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-java"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-java"> <pre class="prettyprint"><code class="language-java">import org.openapitools.client.*; import org.openapitools.client.auth.*; import org.openapitools.client.model.*; @@ -5245,14 +5106,17 @@ public class A1PolicyManagementApiExample { // Create an instance of the API class A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); - String policyId = policyId_example; // String | + String policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID. + String nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity. + String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). + String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). 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 { - Object result = apiInstance.getPolicy(policyId, accept); + array[PolicyInformation] result = apiInstance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling A1PolicyManagementApi#getPolicy"); + System.err.println("Exception when calling A1PolicyManagementApi#getPolicyIds"); e.printStackTrace(); } } @@ -5260,58 +5124,71 @@ public class A1PolicyManagementApiExample { </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-dart"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-dart"> <pre class="prettyprint"><code class="language-dart">import 'package:openapi/api.dart'; final api_instance = DefaultApi(); -final String policyId = new String(); // String | +final String policyTypeId = new String(); // String | Select policies with a given A1 Policy Type ID. +final String nearRtRicId = new String(); // String | Select policies for a given Near-RT RIC identity. +final String serviceId = new String(); // String | Select policies owned by a given service (registered or unregistered). +final String typeName = new String(); // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). 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.getPolicy(policyId, accept); + final result = await api_instance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept); print(result); } catch (e) { - print('Exception when calling DefaultApi->getPolicy: $e\n'); + print('Exception when calling DefaultApi->getPolicyIds: $e\n'); } </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-android"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-android"> <pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.A1PolicyManagementApi; public class A1PolicyManagementApiExample { public static void main(String[] args) { A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); - String policyId = policyId_example; // String | + String policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID. + String nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity. + String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). + String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). 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 { - Object result = apiInstance.getPolicy(policyId, accept); + array[PolicyInformation] result = apiInstance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling A1PolicyManagementApi#getPolicy"); + System.err.println("Exception when calling A1PolicyManagementApi#getPolicyIds"); e.printStackTrace(); } } }</code></pre> </div> <!-- - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-groovy"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-groovy"> <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre> </div> --> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-objc"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-objc"> <pre class="prettyprint"><code class="language-cpp"> // Create an instance of the API class A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; -String *policyId = policyId_example; // (default to null) +String *policyTypeId = policyTypeId_example; // Select policies with a given A1 Policy Type ID. (optional) (default to null) +String *nearRtRicId = nearRtRicId_example; // Select policies for a given Near-RT RIC identity. (optional) (default to null) +String *serviceId = serviceId_example; // Select policies owned by a given service (registered or unregistered). (optional) (default to null) +String *typeName = typeName_example; // Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (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) -[apiInstance getPolicyWith:policyId +// Query for A1 Policy instances (getPolicyIds) +[apiInstance getPolicyIdsWith:policyTypeId + nearRtRicId:nearRtRicId + serviceId:serviceId + typeName:typeName accept:accept - completionHandler: ^(Object output, NSError* error) { + completionHandler: ^(array[PolicyInformation] output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -5322,13 +5199,16 @@ String *accept = application/json; // Specifies the content type that the client </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-javascript"> + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() -var policyId = policyId_example; // {String} +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() var opts = { + 'policyTypeId': policyTypeId_example, // {String} Select policies with a given A1 Policy Type ID. + 'nearRtRicId': nearRtRicId_example, // {String} Select policies for a given Near-RT RIC identity. + 'serviceId': serviceId_example, // {String} Select policies owned by a given service (registered or unregistered). + 'typeName': typeName_example, // {String} Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. }; @@ -5339,14 +5219,14 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -api.getPolicy(policyId, opts, callback); +api.getPolicyIds(opts, callback); </code></pre> </div> - <!--<div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-angular"> + <!--<div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-angular"> <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre> </div>--> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-csharp"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-csharp"> <pre class="prettyprint"><code class="language-cs">using System; using System.Diagnostics; using Org.OpenAPITools.Api; @@ -5355,21 +5235,25 @@ using Org.OpenAPITools.Model; namespace Example { - public class getPolicyExample + public class getPolicyIdsExample { public void main() { // Create an instance of the API class var apiInstance = new A1PolicyManagementApi(); - var policyId = policyId_example; // String | (default to null) + var policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID. (optional) (default to null) + var nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity. (optional) (default to null) + var serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). (optional) (default to null) + var typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (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 { - Object result = apiInstance.getPolicy(policyId, accept); + // Query for A1 Policy instances (getPolicyIds) + array[PolicyInformation] result = apiInstance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling A1PolicyManagementApi.getPolicy: " + e.Message ); + Debug.Print("Exception when calling A1PolicyManagementApi.getPolicyIds: " + e.Message ); } } } @@ -5377,44 +5261,50 @@ namespace Example </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-php"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-php"> <pre class="prettyprint"><code class="language-php"><?php require_once(__DIR__ . '/vendor/autoload.php'); // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi(); -$policyId = policyId_example; // String | +$policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID. +$nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity. +$serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). +$typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). $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->getPolicy($policyId, $accept); + $result = $api_instance->getPolicyIds($policyTypeId, $nearRtRicId, $serviceId, $typeName, $accept); print_r($result); } catch (Exception $e) { - echo 'Exception when calling A1PolicyManagementApi->getPolicy: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling A1PolicyManagementApi->getPolicyIds: ', $e->getMessage(), PHP_EOL; } ?></code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-perl"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-perl"> <pre class="prettyprint"><code class="language-perl">use Data::Dumper; use WWW::OPenAPIClient::Configuration; use WWW::OPenAPIClient::A1PolicyManagementApi; # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new(); -my $policyId = policyId_example; # String | +my $policyTypeId = policyTypeId_example; # String | Select policies with a given A1 Policy Type ID. +my $nearRtRicId = nearRtRicId_example; # String | Select policies for a given Near-RT RIC identity. +my $serviceId = serviceId_example; # String | Select policies owned by a given service (registered or unregistered). +my $typeName = typeName_example; # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). 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->getPolicy(policyId => $policyId, accept => $accept); + my $result = $api_instance->getPolicyIds(policyTypeId => $policyTypeId, nearRtRicId => $nearRtRicId, serviceId => $serviceId, typeName => $typeName, accept => $accept); print Dumper($result); }; if ($@) { - warn "Exception when calling A1PolicyManagementApi->getPolicy: $@\n"; + warn "Exception when calling A1PolicyManagementApi->getPolicyIds: $@\n"; }</code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-python"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-python"> <pre class="prettyprint"><code class="language-python">from __future__ import print_statement import time import openapi_client @@ -5423,25 +5313,32 @@ from pprint import pprint # Create an instance of the API class api_instance = openapi_client.A1PolicyManagementApi() -policyId = policyId_example # String | (default to null) +policyTypeId = policyTypeId_example # String | Select policies with a given A1 Policy Type ID. (optional) (default to null) +nearRtRicId = nearRtRicId_example # String | Select policies for a given Near-RT RIC identity. (optional) (default to null) +serviceId = serviceId_example # String | Select policies owned by a given service (registered or unregistered). (optional) (default to null) +typeName = typeName_example # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (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: - api_response = api_instance.get_policy(policyId, accept=accept) + # Query for A1 Policy instances (getPolicyIds) + api_response = api_instance.get_policy_ids(policyTypeId=policyTypeId, nearRtRicId=nearRtRicId, serviceId=serviceId, typeName=typeName, accept=accept) pprint(api_response) except ApiException as e: - print("Exception when calling A1PolicyManagementApi->getPolicy: %s\n" % e)</code></pre> + print("Exception when calling A1PolicyManagementApi->getPolicyIds: %s\n" % e)</code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-rust"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-rust"> <pre class="prettyprint"><code class="language-rust">extern crate A1PolicyManagementApi; pub fn main() { - let policyId = policyId_example; // String + let policyTypeId = policyTypeId_example; // String + let nearRtRicId = nearRtRicId_example; // String + let serviceId = serviceId_example; // String + let typeName = typeName_example; // String let accept = application/json; // String let mut context = A1PolicyManagementApi::Context::default(); - let result = client.getPolicy(policyId, accept, &context).wait(); + let result = client.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept, &context).wait(); println!("{:?}", result); } @@ -5456,27 +5353,28 @@ pub fn main() { <h2>Parameters</h2> - <div class="methodsubtabletitle">Path parameters</div> + + <div class="methodsubtabletitle">Header parameters</div> <table id="methodsubtable"> - <tr> - <th width="150px">Name</th> - <th>Description</th> - </tr> - <tr><td style="width:150px;">policyId*</td> + <tr> + <th width="150px">Name</th> + <th>Description</th> + </tr> + <tr><td style="width:150px;">Accept</td> <td> - <div id="d2e199_getPolicy_policyId"> + <div id="d2e199_getPolicyIds_accept"> <div class="json-schema-view"> <div class="primitive"> <span class="type"> String </span> + <div class="inner description marked"> +Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. + </div> </div> - <div class="inner required"> - Required - </div> </div> </div> </td> @@ -5484,17 +5382,19 @@ pub fn main() { </table> - <div class="methodsubtabletitle">Header parameters</div> + + + <div class="methodsubtabletitle">Query parameters</div> <table id="methodsubtable"> <tr> <th width="150px">Name</th> <th>Description</th> </tr> - <tr><td style="width:150px;">Accept</td> + <tr><td style="width:150px;">policyTypeId</td> <td> - <div id="d2e199_getPolicy_accept"> + <div id="d2e199_getPolicyIds_policyTypeId"> <div class="json-schema-view"> <div class="primitive"> <span class="type"> @@ -5502,7 +5402,7 @@ pub fn main() { </span> <div class="inner description marked"> -Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. +Select policies with a given A1 Policy Type ID. </div> </div> </div> @@ -5510,29 +5410,86 @@ Specifies the content type that the client expects to receive in response to the </td> </tr> - </table> + <tr><td style="width:150px;">nearRtRicId</td> +<td> + + + <div id="d2e199_getPolicyIds_nearRtRicId"> + <div class="json-schema-view"> + <div class="primitive"> + <span class="type"> + String + </span> + + <div class="inner description marked"> +Select policies for a given Near-RT RIC identity. + </div> + </div> + </div> + </div> +</td> +</tr> + + <tr><td style="width:150px;">serviceId</td> +<td> + <div id="d2e199_getPolicyIds_serviceId"> + <div class="json-schema-view"> + <div class="primitive"> + <span class="type"> + String + </span> + + <div class="inner description marked"> +Select policies owned by a given service (registered or unregistered). + </div> + </div> + </div> + </div> +</td> +</tr> + + <tr><td style="width:150px;">typeName</td> +<td> + <div id="d2e199_getPolicyIds_typeName"> + <div class="json-schema-view"> + <div class="primitive"> + <span class="type"> + String + </span> + + <div class="inner description marked"> +Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). + </div> + </div> + </div> + </div> +</td> +</tr> + + </table> + <h2>Responses</h2> - <h3 id="examples-A1PolicyManagement-getPolicy-title-200"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-200" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-200"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-200" class="marked"></p> <script> - var responseA1PolicyManagement200_description = `OK - Policy found`; + var responseA1PolicyManagement200_description = `OK - Policy identities`; var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n'); if (responseA1PolicyManagement200_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-200" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-200" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-200-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-200-schema">Schema</a> </li> @@ -5541,21 +5498,19 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-200-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-200-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-200" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-200-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-200-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-200" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { - "description" : "OK - Policy found", + "description" : "OK - Policy identities", "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/PolicyObject" - }, - "examples" : { - "policyObject" : { - "$ref" : "#/components/examples/PolicyObject" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/PolicyInformation" } } } @@ -5587,33 +5542,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-200-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-200'); + $('#responses-A1PolicyManagement-getPolicyIds-200-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-200'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-200-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-200-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-400"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-400" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-400"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-400" class="marked"></p> <script> var responseA1PolicyManagement400_description = `Bad Request`; var responseA1PolicyManagement400_description_break = responseA1PolicyManagement400_description.indexOf('\n'); if (responseA1PolicyManagement400_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-400" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-400" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-400-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-400-schema">Schema</a> </li> @@ -5622,9 +5577,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-400-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-400-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-400" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-400-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-400-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-400" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5663,33 +5618,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-400-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-400'); + $('#responses-A1PolicyManagement-getPolicyIds-400-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-400'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-400-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-400-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-401"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-401" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-401"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-401" class="marked"></p> <script> var responseA1PolicyManagement401_description = `Unauthorized`; var responseA1PolicyManagement401_description_break = responseA1PolicyManagement401_description.indexOf('\n'); if (responseA1PolicyManagement401_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-401" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-401" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-401-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-401-schema">Schema</a> </li> @@ -5698,9 +5653,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-401-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-401-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-401" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-401-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-401-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-401" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5739,33 +5694,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-401-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-401'); + $('#responses-A1PolicyManagement-getPolicyIds-401-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-401'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-401-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-401-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-403"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-403" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-403"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-403" class="marked"></p> <script> var responseA1PolicyManagement403_description = `Forbidden`; var responseA1PolicyManagement403_description_break = responseA1PolicyManagement403_description.indexOf('\n'); if (responseA1PolicyManagement403_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-403" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-403" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-403-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-403-schema">Schema</a> </li> @@ -5774,9 +5729,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-403-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-403-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-403" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-403-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-403-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-403" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5815,33 +5770,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-403-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-403'); + $('#responses-A1PolicyManagement-getPolicyIds-403-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-403'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-403-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-403-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-404"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-404" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-404"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-404" class="marked"></p> <script> var responseA1PolicyManagement404_description = `Not Found`; var responseA1PolicyManagement404_description_break = responseA1PolicyManagement404_description.indexOf('\n'); if (responseA1PolicyManagement404_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-404" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-404" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-404-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-404-schema">Schema</a> </li> @@ -5850,9 +5805,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-404-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-404-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-404" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-404-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-404-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-404" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5891,33 +5846,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-404-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-404'); + $('#responses-A1PolicyManagement-getPolicyIds-404-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-404'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-404-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-404-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-406"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-406" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-406"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-406" class="marked"></p> <script> var responseA1PolicyManagement406_description = `Not Acceptable`; var responseA1PolicyManagement406_description_break = responseA1PolicyManagement406_description.indexOf('\n'); if (responseA1PolicyManagement406_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-406" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-406" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-406-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-406-schema">Schema</a> </li> @@ -5926,9 +5881,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-406-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-406-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-406" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-406-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-406-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-406" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5967,33 +5922,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-406-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-406'); + $('#responses-A1PolicyManagement-getPolicyIds-406-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-406'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-406-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-406-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-429"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-429" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-429"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-429" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-429" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-429-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-429-schema">Schema</a> </li> @@ -6002,13 +5957,13 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-429-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-429-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-429" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-429-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-429-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-429" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -6043,33 +5998,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-429-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-429'); + $('#responses-A1PolicyManagement-getPolicyIds-429-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-429'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-429-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-429-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-500"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-500" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-500"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-500" class="marked"></p> <script> var responseA1PolicyManagement500_description = `Internal Server Error`; var responseA1PolicyManagement500_description_break = responseA1PolicyManagement500_description.indexOf('\n'); if (responseA1PolicyManagement500_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-500" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-500" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-500-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-500-schema">Schema</a> </li> @@ -6078,9 +6033,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-500-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-500-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-500" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-500-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-500-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-500" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -6119,33 +6074,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-500-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-500'); + $('#responses-A1PolicyManagement-getPolicyIds-500-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-500'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-500-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-500-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-502"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-502" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-502"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-502" class="marked"></p> <script> var responseA1PolicyManagement502_description = `Bad Gateway`; var responseA1PolicyManagement502_description_break = responseA1PolicyManagement502_description.indexOf('\n'); if (responseA1PolicyManagement502_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-502" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-502" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-502-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-502-schema">Schema</a> </li> @@ -6154,9 +6109,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-502-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-502-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-502" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-502-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-502-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-502" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -6195,33 +6150,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-502-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-502'); + $('#responses-A1PolicyManagement-getPolicyIds-502-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-502'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-502-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-502-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-503"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-503" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-503"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-503" class="marked"></p> <script> var responseA1PolicyManagement503_description = `Service Unavailable`; var responseA1PolicyManagement503_description_break = responseA1PolicyManagement503_description.indexOf('\n'); if (responseA1PolicyManagement503_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-503" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-503" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-503-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-503-schema">Schema</a> </li> @@ -6230,9 +6185,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-503-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-503-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-503" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-503-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-503-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-503" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -6271,14 +6226,14 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-503-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-503'); + $('#responses-A1PolicyManagement-getPolicyIds-503-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-503'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-503-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-503-schema-data' type='hidden' value=''></input> </div> </div> </article> @@ -6288,12 +6243,12 @@ Specifies the content type that the client expects to receive in response to the <article id="api-A1PolicyManagement-getPolicyStatus-0" data-group="User" data-name="getPolicyStatus" data-version="0"> <div class="pull-left"> <h1>getPolicyStatus</h1> - <p></p> + <p>Get an A1 Policy Instance's status (getPolicyStatus)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Query a policy status</p> + <p class="marked">Retrieve the status information for an A1 Policy Instance using its policy ID.</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies/{policyId}/status</span></code></pre> @@ -6401,6 +6356,7 @@ A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; String *policyId = policyId_example; // (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) +// Get an A1 Policy Instance's status (getPolicyStatus) [apiInstance getPolicyStatusWith:policyId accept:accept completionHandler: ^(Object output, NSError* error) { @@ -6415,10 +6371,10 @@ String *accept = application/json; // Specifies the content type that the client </div> <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() var policyId = policyId_example; // {String} var opts = { 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. @@ -6458,6 +6414,7 @@ namespace Example 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 { + // Get an A1 Policy Instance's status (getPolicyStatus) Object result = apiInstance.getPolicyStatus(policyId, accept); Debug.WriteLine(result); } catch (Exception e) { @@ -6519,6 +6476,7 @@ policyId = policyId_example # String | (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: + # Get an A1 Policy Instance's status (getPolicyStatus) api_response = api_instance.get_policy_status(policyId, accept=accept) pprint(api_response) except ApiException as e: @@ -7067,7 +7025,7 @@ Specifies the content type that the client expects to receive in response to the <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-429"></h3> <p id="examples-A1PolicyManagement-getPolicyStatus-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { $("#examples-A1PolicyManagement-getPolicyStatus-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); @@ -7095,7 +7053,7 @@ Specifies the content type that the client expects to receive in response to the <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -7375,12 +7333,12 @@ Specifies the content type that the client expects to receive in response to the <article id="api-A1PolicyManagement-getPolicyTypeDefinition-0" data-group="User" data-name="getPolicyTypeDefinition" data-version="0"> <div class="pull-left"> <h1>getPolicyTypeDefinition</h1> - <p></p> + <p>Get an A1 Policy Type definition (getPolicyTypeDefinition)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Returns a policy type definition</p> + <p class="marked">Get an A1 Policy Type definition using its policy type ID</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policy-types/{policyTypeId}</span></code></pre> @@ -7488,6 +7446,7 @@ A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; String *policyTypeId = policyTypeId_example; // (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) +// Get an A1 Policy Type definition (getPolicyTypeDefinition) [apiInstance getPolicyTypeDefinitionWith:policyTypeId accept:accept completionHandler: ^(PolicyTypeObject output, NSError* error) { @@ -7502,10 +7461,10 @@ String *accept = application/json; // Specifies the content type that the client </div> <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyTypeDefinition-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() var policyTypeId = policyTypeId_example; // {String} var opts = { 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. @@ -7545,6 +7504,7 @@ namespace Example 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 { + // Get an A1 Policy Type definition (getPolicyTypeDefinition) PolicyTypeObject result = apiInstance.getPolicyTypeDefinition(policyTypeId, accept); Debug.WriteLine(result); } catch (Exception e) { @@ -7606,6 +7566,7 @@ policyTypeId = policyTypeId_example # String | (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: + # Get an A1 Policy Type definition (getPolicyTypeDefinition) api_response = api_instance.get_policy_type_definition(policyTypeId, accept=accept) pprint(api_response) except ApiException as e: @@ -7698,7 +7659,7 @@ Specifies the content type that the client expects to receive in response to the <h3 id="examples-A1PolicyManagement-getPolicyTypeDefinition-title-200"></h3> <p id="examples-A1PolicyManagement-getPolicyTypeDefinition-description-200" class="marked"></p> <script> - var responseA1PolicyManagement200_description = `OK - schema of the given policy type`; + var responseA1PolicyManagement200_description = `OK - details and schema of the requested A1 Policy Type`; var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n'); if (responseA1PolicyManagement200_description_break == -1) { $("#examples-A1PolicyManagement-getPolicyTypeDefinition-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); @@ -7726,7 +7687,7 @@ Specifies the content type that the client expects to receive in response to the <script> $(document).ready(function() { var schemaWrapper = { - "description" : "OK - schema of the given policy type", + "description" : "OK - details and schema of the requested A1 Policy Type", "content" : { "application/json" : { "schema" : { @@ -8159,7 +8120,7 @@ Specifies the content type that the client expects to receive in response to the <h3 id="examples-A1PolicyManagement-getPolicyTypeDefinition-title-429"></h3> <p id="examples-A1PolicyManagement-getPolicyTypeDefinition-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { $("#examples-A1PolicyManagement-getPolicyTypeDefinition-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); @@ -8187,7 +8148,7 @@ Specifies the content type that the client expects to receive in response to the <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -8467,12 +8428,12 @@ Specifies the content type that the client expects to receive in response to the <article id="api-A1PolicyManagement-getPolicyTypes-0" data-group="User" data-name="getPolicyTypes" data-version="0"> <div class="pull-left"> <h1>getPolicyTypes</h1> - <p></p> + <p>Get A1 Policy Types (getPolicyTypes)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Query policy type identities</p> + <p class="marked">Query A1 Policy Type identities using query parameters</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policy-types</span></code></pre> @@ -8517,8 +8478,9 @@ public class A1PolicyManagementApiExample { // Create an instance of the API class A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); String nearRtRicId = nearRtRicId_example; // String | Select types for the given Near-RT RIC identity. - String typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>) - String compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + String typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version') + String compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + 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 { @@ -8539,8 +8501,9 @@ public class A1PolicyManagementApiExample { final api_instance = DefaultApi(); final String nearRtRicId = new String(); // String | Select types for the given Near-RT RIC identity. -final String typeName = new String(); // String | Select types with the given type name (type identity has the format <typename_version>) -final String compatibleWithVersion = new String(); // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. +final String typeName = new String(); // String | Select types compatible with the given type name (type identity has the format 'typename_version') +final String compatibleWithVersion = new String(); // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + 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 { @@ -8560,8 +8523,9 @@ public class A1PolicyManagementApiExample { public static void main(String[] args) { A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); String nearRtRicId = nearRtRicId_example; // String | Select types for the given Near-RT RIC identity. - String typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>) - String compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + String typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version') + String compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + 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 { @@ -8584,10 +8548,12 @@ public class A1PolicyManagementApiExample { // Create an instance of the API class A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; String *nearRtRicId = nearRtRicId_example; // Select types for the given Near-RT RIC identity. (optional) (default to null) -String *typeName = typeName_example; // Select types with the given type name (type identity has the format <typename_version>) (optional) (default to null) -String *compatibleWithVersion = compatibleWithVersion_example; // Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. (optional) (default to null) +String *typeName = typeName_example; // Select types compatible with the given type name (type identity has the format 'typename_version') (optional) (default to null) +String *compatibleWithVersion = compatibleWithVersion_example; // Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + (optional) (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) +// Get A1 Policy Types (getPolicyTypes) [apiInstance getPolicyTypesWith:nearRtRicId typeName:typeName compatibleWithVersion:compatibleWithVersion @@ -8604,14 +8570,15 @@ String *accept = application/json; // Specifies the content type that the client </div> <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyTypes-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() var opts = { 'nearRtRicId': nearRtRicId_example, // {String} Select types for the given Near-RT RIC identity. - 'typeName': typeName_example, // {String} Select types with the given type name (type identity has the format <typename_version>) - 'compatibleWithVersion': compatibleWithVersion_example, // {String} Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + 'typeName': typeName_example, // {String} Select types compatible with the given type name (type identity has the format 'typename_version') + 'compatibleWithVersion': compatibleWithVersion_example, // {String} Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. }; @@ -8646,11 +8613,13 @@ namespace Example // Create an instance of the API class var apiInstance = new A1PolicyManagementApi(); var nearRtRicId = nearRtRicId_example; // String | Select types for the given Near-RT RIC identity. (optional) (default to null) - var typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>) (optional) (default to null) - var compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. (optional) (default to null) + var typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version') (optional) (default to null) + var compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + (optional) (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 { + // Get A1 Policy Types (getPolicyTypes) array[PolicyTypeInformation] result = apiInstance.getPolicyTypes(nearRtRicId, typeName, compatibleWithVersion, accept); Debug.WriteLine(result); } catch (Exception e) { @@ -8669,8 +8638,9 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi(); $nearRtRicId = nearRtRicId_example; // String | Select types for the given Near-RT RIC identity. -$typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>) -$compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. +$typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version') +$compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + $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 { @@ -8690,8 +8660,9 @@ use WWW::OPenAPIClient::A1PolicyManagementApi; # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new(); my $nearRtRicId = nearRtRicId_example; # String | Select types for the given Near-RT RIC identity. -my $typeName = typeName_example; # String | Select types with the given type name (type identity has the format <typename_version>) -my $compatibleWithVersion = compatibleWithVersion_example; # String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. +my $typeName = typeName_example; # String | Select types compatible with the given type name (type identity has the format 'typename_version') +my $compatibleWithVersion = compatibleWithVersion_example; # String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + 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 { @@ -8713,11 +8684,13 @@ from pprint import pprint # Create an instance of the API class api_instance = openapi_client.A1PolicyManagementApi() nearRtRicId = nearRtRicId_example # String | Select types for the given Near-RT RIC identity. (optional) (default to null) -typeName = typeName_example # String | Select types with the given type name (type identity has the format <typename_version>) (optional) (default to null) -compatibleWithVersion = compatibleWithVersion_example # String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. (optional) (default to null) +typeName = typeName_example # String | Select types compatible with the given type name (type identity has the format 'typename_version') (optional) (default to null) +compatibleWithVersion = compatibleWithVersion_example # String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + (optional) (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: + # Get A1 Policy Types (getPolicyTypes) api_response = api_instance.get_policy_types(nearRtRicId=nearRtRicId, typeName=typeName, compatibleWithVersion=compatibleWithVersion, accept=accept) pprint(api_response) except ApiException as e: @@ -8818,7 +8791,7 @@ Select types for the given Near-RT RIC identity. </span> <div class="inner description marked"> -Select types with the given type name (type identity has the format <typename_version>) +Select types compatible with the given type name (type identity has the format 'typename_version') </div> </div> </div> @@ -8838,7 +8811,8 @@ Select types with the given type name (type identity has the format <typename </span> <div class="inner description marked"> -Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. +Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + </div> </div> </div> @@ -9316,7 +9290,7 @@ Select types that are compatible with the given version. This parameter is only <h3 id="examples-A1PolicyManagement-getPolicyTypes-title-429"></h3> <p id="examples-A1PolicyManagement-getPolicyTypes-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { $("#examples-A1PolicyManagement-getPolicyTypes-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); @@ -9344,7 +9318,7 @@ Select types that are compatible with the given version. This parameter is only <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -9620,16 +9594,16 @@ Select types that are compatible with the given version. This parameter is only </article> </div> <hr> - <div id="api-A1PolicyManagement-putPolicy"> - <article id="api-A1PolicyManagement-putPolicy-0" data-group="User" data-name="putPolicy" data-version="0"> + <div id="api-A1PolicyManagement-updatePolicy"> + <article id="api-A1PolicyManagement-updatePolicy-0" data-group="User" data-name="updatePolicy" data-version="0"> <div class="pull-left"> - <h1>putPolicy</h1> - <p></p> + <h1>updatePolicy</h1> + <p>Update an A1 Policy's policy data (updatePolicy)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">update a policy</p> + <p class="marked">Update an existing A1 Policy instance's policy data using its policy ID.</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/policies/{policyId}</span></code></pre> @@ -9637,23 +9611,23 @@ Select types that are compatible with the given version. This parameter is only <h3>Usage and SDK Samples</h3> </p> <ul class="nav nav-tabs nav-tabs-examples"> - <li class="active"><a href="#examples-A1PolicyManagement-putPolicy-0-curl">Curl</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-java">Java</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-dart">Dart</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-android">Android</a></li> - <!--<li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-groovy">Groovy</a></li>--> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-objc">Obj-C</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-javascript">JavaScript</a></li> - <!--<li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-angular">Angular</a></li>--> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-csharp">C#</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-php">PHP</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-perl">Perl</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-python">Python</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-rust">Rust</a></li> + <li class="active"><a href="#examples-A1PolicyManagement-updatePolicy-0-curl">Curl</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-java">Java</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-dart">Dart</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-android">Android</a></li> + <!--<li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-groovy">Groovy</a></li>--> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-objc">Obj-C</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-javascript">JavaScript</a></li> + <!--<li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-angular">Angular</a></li>--> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-csharp">C#</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-php">PHP</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-perl">Perl</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-python">Python</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-rust">Rust</a></li> </ul> <div class="tab-content"> - <div class="tab-pane active" id="examples-A1PolicyManagement-putPolicy-0-curl"> + <div class="tab-pane active" id="examples-A1PolicyManagement-updatePolicy-0-curl"> <pre class="prettyprint"><code class="language-bsh">curl -X PUT \ -H "Accept: application/json,application/problem+json" \ -H "Content-Type: application/json" \ @@ -9661,7 +9635,7 @@ Select types that are compatible with the given version. This parameter is only -d '' </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-java"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-java"> <pre class="prettyprint"><code class="language-java">import org.openapitools.client.*; import org.openapitools.client.auth.*; import org.openapitools.client.model.*; @@ -9679,10 +9653,10 @@ public class A1PolicyManagementApiExample { Object body = Object; // Object | try { - Object result = apiInstance.putPolicy(policyId, body); + Object result = apiInstance.updatePolicy(policyId, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling A1PolicyManagementApi#putPolicy"); + System.err.println("Exception when calling A1PolicyManagementApi#updatePolicy"); e.printStackTrace(); } } @@ -9690,7 +9664,7 @@ public class A1PolicyManagementApiExample { </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-dart"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-dart"> <pre class="prettyprint"><code class="language-dart">import 'package:openapi/api.dart'; final api_instance = DefaultApi(); @@ -9699,16 +9673,16 @@ final String policyId = new String(); // String | final Object body = new Object(); // Object | try { - final result = await api_instance.putPolicy(policyId, body); + final result = await api_instance.updatePolicy(policyId, body); print(result); } catch (e) { - print('Exception when calling DefaultApi->putPolicy: $e\n'); + print('Exception when calling DefaultApi->updatePolicy: $e\n'); } </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-android"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-android"> <pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.A1PolicyManagementApi; public class A1PolicyManagementApiExample { @@ -9718,20 +9692,20 @@ public class A1PolicyManagementApiExample { Object body = Object; // Object | try { - Object result = apiInstance.putPolicy(policyId, body); + Object result = apiInstance.updatePolicy(policyId, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling A1PolicyManagementApi#putPolicy"); + System.err.println("Exception when calling A1PolicyManagementApi#updatePolicy"); e.printStackTrace(); } } }</code></pre> </div> <!-- - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-groovy"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-groovy"> <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre> </div> --> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-objc"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-objc"> <pre class="prettyprint"><code class="language-cpp"> // Create an instance of the API class @@ -9739,7 +9713,8 @@ A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; String *policyId = policyId_example; // (default to null) Object *body = Object; // -[apiInstance putPolicyWith:policyId +// Update an A1 Policy's policy data (updatePolicy) +[apiInstance updatePolicyWith:policyId body:body completionHandler: ^(Object output, NSError* error) { if (output) { @@ -9752,11 +9727,11 @@ Object *body = Object; // </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-javascript"> + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() var policyId = policyId_example; // {String} var body = Object; // {Object} @@ -9767,14 +9742,14 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -api.putPolicy(policyId, body, callback); +api.updatePolicy(policyId, body, callback); </code></pre> </div> - <!--<div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-angular"> + <!--<div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-angular"> <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre> </div>--> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-csharp"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-csharp"> <pre class="prettyprint"><code class="language-cs">using System; using System.Diagnostics; using Org.OpenAPITools.Api; @@ -9783,7 +9758,7 @@ using Org.OpenAPITools.Model; namespace Example { - public class putPolicyExample + public class updatePolicyExample { public void main() { @@ -9794,10 +9769,11 @@ namespace Example var body = Object; // Object | try { - Object result = apiInstance.putPolicy(policyId, body); + // Update an A1 Policy's policy data (updatePolicy) + Object result = apiInstance.updatePolicy(policyId, body); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling A1PolicyManagementApi.putPolicy: " + e.Message ); + Debug.Print("Exception when calling A1PolicyManagementApi.updatePolicy: " + e.Message ); } } } @@ -9805,7 +9781,7 @@ namespace Example </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-php"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-php"> <pre class="prettyprint"><code class="language-php"><?php require_once(__DIR__ . '/vendor/autoload.php'); @@ -9815,15 +9791,15 @@ $policyId = policyId_example; // String | $body = Object; // Object | try { - $result = $api_instance->putPolicy($policyId, $body); + $result = $api_instance->updatePolicy($policyId, $body); print_r($result); } catch (Exception $e) { - echo 'Exception when calling A1PolicyManagementApi->putPolicy: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling A1PolicyManagementApi->updatePolicy: ', $e->getMessage(), PHP_EOL; } ?></code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-perl"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-perl"> <pre class="prettyprint"><code class="language-perl">use Data::Dumper; use WWW::OPenAPIClient::Configuration; use WWW::OPenAPIClient::A1PolicyManagementApi; @@ -9834,15 +9810,15 @@ my $policyId = policyId_example; # String | my $body = WWW::OPenAPIClient::Object::Object->new(); # Object | eval { - my $result = $api_instance->putPolicy(policyId => $policyId, body => $body); + my $result = $api_instance->updatePolicy(policyId => $policyId, body => $body); print Dumper($result); }; if ($@) { - warn "Exception when calling A1PolicyManagementApi->putPolicy: $@\n"; + warn "Exception when calling A1PolicyManagementApi->updatePolicy: $@\n"; }</code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-python"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-python"> <pre class="prettyprint"><code class="language-python">from __future__ import print_statement import time import openapi_client @@ -9855,13 +9831,14 @@ policyId = policyId_example # String | (default to null) body = Object # Object | try: - api_response = api_instance.put_policy(policyId, body) + # Update an A1 Policy's policy data (updatePolicy) + api_response = api_instance.update_policy(policyId, body) pprint(api_response) except ApiException as e: - print("Exception when calling A1PolicyManagementApi->putPolicy: %s\n" % e)</code></pre> + print("Exception when calling A1PolicyManagementApi->updatePolicy: %s\n" % e)</code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-rust"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-rust"> <pre class="prettyprint"><code class="language-rust">extern crate A1PolicyManagementApi; pub fn main() { @@ -9869,7 +9846,7 @@ pub fn main() { let body = Object; // Object let mut context = A1PolicyManagementApi::Context::default(); - let result = client.putPolicy(policyId, body, &context).wait(); + let result = client.updatePolicy(policyId, body, &context).wait(); println!("{:?}", result); } @@ -9894,7 +9871,7 @@ pub fn main() { <td> - <div id="d2e199_putPolicy_policyId"> + <div id="d2e199_updatePolicy_policyId"> <div class="json-schema-view"> <div class="primitive"> <span class="type"> @@ -9956,12 +9933,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_putPolicy_body'); + var result = $('#d2e199_updatePolicy_body'); result.empty(); result.append(view.render()); }); </script> -<div id="d2e199_putPolicy_body"></div> +<div id="d2e199_updatePolicy_body"></div> </td> </tr> @@ -9970,23 +9947,23 @@ $(document).ready(function() { <h2>Responses</h2> - <h3 id="examples-A1PolicyManagement-putPolicy-title-200"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-200" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-200"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-200" class="marked"></p> <script> var responseA1PolicyManagement200_description = `OK - Policy updated`; var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n'); if (responseA1PolicyManagement200_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); + $("#examples-A1PolicyManagement-updatePolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-200" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-200" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-200-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-200-schema">Schema</a> </li> @@ -9995,9 +9972,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-200-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-200-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-200" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-200-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-200-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-200" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10036,33 +10013,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-200-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-200'); + $('#responses-A1PolicyManagement-updatePolicy-200-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-200'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-200-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-200-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-400"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-400" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-400"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-400" class="marked"></p> <script> var responseA1PolicyManagement400_description = `Bad Request`; var responseA1PolicyManagement400_description_break = responseA1PolicyManagement400_description.indexOf('\n'); if (responseA1PolicyManagement400_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description); + $("#examples-A1PolicyManagement-updatePolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-400" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-400" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-400-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-400-schema">Schema</a> </li> @@ -10071,9 +10048,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-400-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-400-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-400" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-400-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-400-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-400" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10112,33 +10089,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-400-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-400'); + $('#responses-A1PolicyManagement-updatePolicy-400-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-400'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-400-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-400-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-401"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-401" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-401"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-401" class="marked"></p> <script> var responseA1PolicyManagement401_description = `Unauthorized`; var responseA1PolicyManagement401_description_break = responseA1PolicyManagement401_description.indexOf('\n'); if (responseA1PolicyManagement401_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description); + $("#examples-A1PolicyManagement-updatePolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-401" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-401" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-401-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-401-schema">Schema</a> </li> @@ -10147,9 +10124,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-401-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-401-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-401" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-401-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-401-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-401" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10188,33 +10165,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-401-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-401'); + $('#responses-A1PolicyManagement-updatePolicy-401-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-401'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-401-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-401-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-403"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-403" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-403"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-403" class="marked"></p> <script> var responseA1PolicyManagement403_description = `Forbidden`; var responseA1PolicyManagement403_description_break = responseA1PolicyManagement403_description.indexOf('\n'); if (responseA1PolicyManagement403_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description); + $("#examples-A1PolicyManagement-updatePolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-403" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-403" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-403-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-403-schema">Schema</a> </li> @@ -10223,9 +10200,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-403-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-403-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-403" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-403-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-403-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-403" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10264,33 +10241,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-403-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-403'); + $('#responses-A1PolicyManagement-updatePolicy-403-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-403'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-403-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-403-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-404"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-404" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-404"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-404" class="marked"></p> <script> var responseA1PolicyManagement404_description = `Not Found`; var responseA1PolicyManagement404_description_break = responseA1PolicyManagement404_description.indexOf('\n'); if (responseA1PolicyManagement404_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description); + $("#examples-A1PolicyManagement-updatePolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-404" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-404" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-404-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-404-schema">Schema</a> </li> @@ -10299,9 +10276,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-404-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-404-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-404" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-404-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-404-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-404" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10340,33 +10317,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-404-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-404'); + $('#responses-A1PolicyManagement-updatePolicy-404-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-404'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-404-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-404-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-406"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-406" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-406"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-406" class="marked"></p> <script> var responseA1PolicyManagement406_description = `Not Acceptable`; var responseA1PolicyManagement406_description_break = responseA1PolicyManagement406_description.indexOf('\n'); if (responseA1PolicyManagement406_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description); + $("#examples-A1PolicyManagement-updatePolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-406" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-406" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-406-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-406-schema">Schema</a> </li> @@ -10375,9 +10352,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-406-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-406-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-406" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-406-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-406-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-406" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10416,33 +10393,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-406-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-406'); + $('#responses-A1PolicyManagement-updatePolicy-406-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-406'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-406-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-406-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-411"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-411" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-411"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-411" class="marked"></p> <script> var responseA1PolicyManagement411_description = `Length Required`; var responseA1PolicyManagement411_description_break = responseA1PolicyManagement411_description.indexOf('\n'); if (responseA1PolicyManagement411_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description); + $("#examples-A1PolicyManagement-updatePolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description.substring(0, responseA1PolicyManagement411_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-411").html(responseA1PolicyManagement411_description.substring(responseA1PolicyManagement411_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description.substring(0, responseA1PolicyManagement411_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-411").html(responseA1PolicyManagement411_description.substring(responseA1PolicyManagement411_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-411" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-411" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-411-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-411-schema">Schema</a> </li> @@ -10451,9 +10428,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-411-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-411-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-411" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-411-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-411-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-411" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10492,33 +10469,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-411-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-411'); + $('#responses-A1PolicyManagement-updatePolicy-411-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-411'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-411-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-411-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-413"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-413" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-413"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-413" class="marked"></p> <script> var responseA1PolicyManagement413_description = `Payload Too Large`; var responseA1PolicyManagement413_description_break = responseA1PolicyManagement413_description.indexOf('\n'); if (responseA1PolicyManagement413_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description); + $("#examples-A1PolicyManagement-updatePolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description.substring(0, responseA1PolicyManagement413_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-413").html(responseA1PolicyManagement413_description.substring(responseA1PolicyManagement413_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description.substring(0, responseA1PolicyManagement413_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-413").html(responseA1PolicyManagement413_description.substring(responseA1PolicyManagement413_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-413" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-413" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-413-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-413-schema">Schema</a> </li> @@ -10527,9 +10504,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-413-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-413-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-413" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-413-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-413-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-413" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10568,33 +10545,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-413-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-413'); + $('#responses-A1PolicyManagement-updatePolicy-413-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-413'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-413-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-413-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-415"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-415" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-415"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-415" class="marked"></p> <script> var responseA1PolicyManagement415_description = `Unsupported Media Type`; var responseA1PolicyManagement415_description_break = responseA1PolicyManagement415_description.indexOf('\n'); if (responseA1PolicyManagement415_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description); + $("#examples-A1PolicyManagement-updatePolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description.substring(0, responseA1PolicyManagement415_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-415").html(responseA1PolicyManagement415_description.substring(responseA1PolicyManagement415_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description.substring(0, responseA1PolicyManagement415_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-415").html(responseA1PolicyManagement415_description.substring(responseA1PolicyManagement415_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-415" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-415" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-415-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-415-schema">Schema</a> </li> @@ -10603,9 +10580,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-415-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-415-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-415" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-415-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-415-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-415" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10644,33 +10621,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-415-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-415'); + $('#responses-A1PolicyManagement-updatePolicy-415-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-415'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-415-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-415-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-423"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-423" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-423"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-423" class="marked"></p> <script> var responseA1PolicyManagement423_description = `Locked - HTTP Status code which can be used when the state is Locked`; var responseA1PolicyManagement423_description_break = responseA1PolicyManagement423_description.indexOf('\n'); if (responseA1PolicyManagement423_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description); + $("#examples-A1PolicyManagement-updatePolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description.substring(0, responseA1PolicyManagement423_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-423").html(responseA1PolicyManagement423_description.substring(responseA1PolicyManagement423_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description.substring(0, responseA1PolicyManagement423_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-423").html(responseA1PolicyManagement423_description.substring(responseA1PolicyManagement423_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-423" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-423" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-423-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-423-schema">Schema</a> </li> @@ -10679,9 +10656,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-423-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-423-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-423" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-423-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-423-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-423" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10694,7 +10671,7 @@ $(document).ready(function() { "example" : { "status" : 423, "title" : "Locked", - "detail" : "State is Locked in the provided request." + "detail" : "State is Locked in the provided request." } } } @@ -10725,33 +10702,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-423-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-423'); + $('#responses-A1PolicyManagement-updatePolicy-423-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-423'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-423-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-423-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-429"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-429" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-429"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); + $("#examples-A1PolicyManagement-updatePolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-429" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-429" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-429-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-429-schema">Schema</a> </li> @@ -10760,13 +10737,13 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-429-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-429-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-429" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-429-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-429-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-429" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -10801,33 +10778,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-429-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-429'); + $('#responses-A1PolicyManagement-updatePolicy-429-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-429'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-429-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-429-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-500"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-500" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-500"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-500" class="marked"></p> <script> var responseA1PolicyManagement500_description = `Internal Server Error`; var responseA1PolicyManagement500_description_break = responseA1PolicyManagement500_description.indexOf('\n'); if (responseA1PolicyManagement500_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description); + $("#examples-A1PolicyManagement-updatePolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-500" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-500" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-500-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-500-schema">Schema</a> </li> @@ -10836,9 +10813,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-500-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-500-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-500" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-500-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-500-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-500" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10877,33 +10854,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-500-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-500'); + $('#responses-A1PolicyManagement-updatePolicy-500-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-500'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-500-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-500-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-502"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-502" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-502"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-502" class="marked"></p> <script> var responseA1PolicyManagement502_description = `Bad Gateway`; var responseA1PolicyManagement502_description_break = responseA1PolicyManagement502_description.indexOf('\n'); if (responseA1PolicyManagement502_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description); + $("#examples-A1PolicyManagement-updatePolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-502" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-502" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-502-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-502-schema">Schema</a> </li> @@ -10912,9 +10889,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-502-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-502-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-502" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-502-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-502-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-502" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10953,33 +10930,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-502-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-502'); + $('#responses-A1PolicyManagement-updatePolicy-502-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-502'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-502-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-502-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-503"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-503" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-503"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-503" class="marked"></p> <script> var responseA1PolicyManagement503_description = `Service Unavailable`; var responseA1PolicyManagement503_description_break = responseA1PolicyManagement503_description.indexOf('\n'); if (responseA1PolicyManagement503_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description); + $("#examples-A1PolicyManagement-updatePolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-503" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-503" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-503-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-503-schema">Schema</a> </li> @@ -10988,9 +10965,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-503-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-503-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-503" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-503-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-503-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-503" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -11029,14 +11006,14 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-503-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-503'); + $('#responses-A1PolicyManagement-updatePolicy-503-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-503'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-503-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-503-schema-data' type='hidden' value=''></input> </div> </div> </article> diff --git a/a1-policy-management/api/offeredapis/openapitoolgen/offeredapis/pms-api/v3/index.html b/a1-policy-management/api/offeredapis/openapitoolgen/offeredapis/pms-api/v3/index.html index 198ea9be..4327613c 100644 --- a/a1-policy-management/api/offeredapis/openapitoolgen/offeredapis/pms-api/v3/index.html +++ b/a1-policy-management/api/offeredapis/openapitoolgen/offeredapis/pms-api/v3/index.html @@ -2,7 +2,7 @@ <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> - <title>A1 policy management API</title> + <title>ONAP CCSDK - A1 Policy Management API</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta charset="UTF-8" /> @@ -844,26 +844,12 @@ ul.nav-tabs { <script> // Script section to load models into a JS Var var defs = {} - defs["AuthorizationResult"] = { - "required" : [ "result" ], - "type" : "object", - "properties" : { - "result" : { - "type" : "boolean", - "description" : "If true, the access is granted" - } - }, - "description" : "Result of authorization", - "example" : { - "result" : true - } -}; defs["ErrorInformation"] = { "type" : "object", "properties" : { "detail" : { "type" : "string", - "description" : " A human-readable explanation specific to this occurrence of the problem.", + "description" : "A human-readable explanation specific to this occurrence of the problem.", "example" : "Policy type not found" }, "title" : { @@ -873,67 +859,26 @@ ul.nav-tabs { }, "status" : { "type" : "integer", - "description" : "The HTTP status code generated by the origin server for this occurrence of the problem. ", + "description" : "The HTTP status code generated by the origin server for this occurrence of the problem.\n", "format" : "int32", "example" : 404 } }, "description" : "Problem as defined in https://tools.ietf.org/html/rfc7807" }; - defs["input"] = { - "required" : [ "accessType", "authToken", "policyTypeId" ], - "type" : "object", - "properties" : { - "accessType" : { - "type" : "string", - "description" : "Access type", - "enum" : [ "READ", "WRITE", "DELETE" ] - }, - "authToken" : { - "type" : "string", - "description" : "Authorization token" - }, - "policyTypeId" : { - "type" : "string", - "description" : "Policy type identifier" - } - }, - "description" : "input" -}; - defs["Link"] = { - "type" : "object", - "properties" : { - "templated" : { - "type" : "boolean" - }, - "href" : { - "type" : "string" - } - } -}; - defs["PolicyAuthorization"] = { - "required" : [ "input" ], - "type" : "object", - "properties" : { - "input" : { - "$ref" : "#/components/schemas/input" - } - }, - "description" : "Authorization request for A1 policy requests" -}; defs["PolicyInformation"] = { "required" : [ "nearRtRicId", "policyId" ], "type" : "object", "properties" : { "policyId" : { "type" : "string", - "description" : "Identity of the policy" + "description" : "Identity of the A1 Policy Instance" }, "nearRtRicId" : { "$ref" : "#/components/schemas/NearRtRicId" } }, - "description" : "Near-RT RIC identifiers where A1 policies exist and for each Near-RT RIC identifier the policy identifiers of those policies that exist in that Near-RT RIC" + "description" : "Information tuple for a single A1 Policy Instance. Contains the A1 Policy Instance ID, and the ID of the Near-RT RIC where the policy is created. \n" }; defs["PolicyObjectInformation"] = { "required" : [ "nearRtRicId", "policyObject", "policyTypeId" ], @@ -942,23 +887,23 @@ ul.nav-tabs { "nearRtRicId" : { "type" : "string", "description" : "Identity of the target Near-RT RIC", - "example" : "Near-RT-Ric-ID" + "example" : "Near-RT-Ric-ID1" }, "transient" : { "type" : "boolean", - "description" : "If true, the policy is deleted at RIC restart. If false, its value is maintained by this service until explicitly deleted. Default false.", + "description" : "If true, the policy is automatically deleted if the targeted Near-RT RIC restarts or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.\n", "nullable" : false, "default" : false }, "policyId" : { "type" : "string", - "description" : "The identity of the Policy. If this value is present, it must be unique; otherwise, a random UUID is generated.", - "example" : "POLICY-ID" + "description" : "An optional identity to be used for the new A1 Policy Instance. If this value is present, it must be unique. If not present the new A1 Policy Instance will be assigned a newly generated unique ID, and the new ID can be extracted from the 'Location' header in the response.\n", + "example" : "POLICY-ID1" }, "serviceId" : { "type" : "string", - "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered.", - "example" : "rApp ID", + "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered. If the service is registered, the newly created A1 Policy Instance will be subject to the same supervision rules as the the service's other policies.", + "example" : "rApp 1", "default" : "" }, "policyObject" : { @@ -966,25 +911,11 @@ ul.nav-tabs { }, "policyTypeId" : { "type" : "string", - "description" : "Identity of the policy type", - "example" : "ORAN_QOS_1.0.0(typeName_SemVersion)" + "description" : "A1 Policy Type identity", + "example" : "ORAN_QOS_1.0.0 '(typeName_SemVersion)'" } }, - "description" : "Information related to the creation of the policy" -}; - defs["PolicyStatusInfo"] = { - "type" : "object", - "properties" : { - "lastModified" : { - "type" : "string", - "description" : "timestamp, last modification time" - }, - "status" : { - "type" : "object", - "description" : "the Policy status" - } - }, - "description" : "Status for one A1-P Policy" + "description" : "Information to create an A1 Policy Instance" }; defs["PolicyTypeInformation"] = { "required" : [ "nearRtRicId", "policyTypeId" ], @@ -992,16 +923,16 @@ ul.nav-tabs { "properties" : { "policyTypeId" : { "type" : "string", - "description" : "Identity of the policy type" + "description" : "A1 Policy Type identifier" }, "nearRtRicId" : { "$ref" : "#/components/schemas/NearRtRicId" } }, - "description" : "Available policy types and for each policy type identifier the Near-RT RIC identifiers of those Near-RT RICs that support the related A1 policy type", + "description" : "A data tuple to indicate that an identified A1 Policy Type is supported at an identified Near-RT RIC.", "example" : { "policyTypeId" : "STD_QOS2_0.1.0", - "nearRtRicId" : "ricsim_g3_2" + "nearRtRicId" : "ric_g3_2" } }; defs["PolicyTypeObject"] = { @@ -1015,12 +946,12 @@ ul.nav-tabs { "$ref" : "#/components/schemas/StatusSchema" } }, - "description" : "policy type object as defined in A1TD", + "description" : "An A1 Policy Type, as defined in O-RAN Alliance A1TD", "example" : { "policySchema" : { "$schema" : "http://json-schema.org/draft-07/schema#", "title" : "STD_QOS_0_2_0", - "description" : "STD QOS policy type", + "description" : "Policy data schema for STD_QOS_0.2.0 A1 Policy Instances.", "type" : "object", "properties" : { "scope" : { @@ -1051,7 +982,7 @@ ul.nav-tabs { "statusSchema" : { "$schema" : "http://json-schema.org/draft-07/schema#", "title" : "STD_QOS_0.2.0", - "description" : "STD QOS policy type status", + "description" : "Status schema for STD_QOS_0.2.0 A1 Policy Instances.", "type" : "object", "properties" : { "enforceStatus" : { @@ -1071,26 +1002,26 @@ ul.nav-tabs { "properties" : { "type" : { "type" : "string", - "description" : "a URI reference according to IETF RFC 3986 that identifies the problem type" + "description" : "URI reference according to IETF RFC 3986 that identifies the problem type" }, "title" : { "type" : "string", - "description" : "human-readable summary of the problem type" + "description" : "Human-readable summary of the problem type" }, "status" : { "type" : "number", - "description" : "the HTTP status code" + "description" : "HTTP status code" }, "detail" : { "type" : "string", - "description" : "human-readable explanation " + "description" : "Human-readable explanation" }, "instance" : { "type" : "string", "description" : "URI reference that identifies the specific occurrence of the problem" } }, - "description" : "A problem detail to carry details in an HTTP response according to RFC 7807" + "description" : "Object to carry details about a problem in an HTTP response according to IETF RFC 7807" }; defs["RicInfo"] = { "type" : "object", @@ -1101,23 +1032,23 @@ ul.nav-tabs { }, "managedElementIds" : { "type" : "array", - "description" : "O1 identities for managed entities", + "description" : "Identities for managed entities", "items" : { "type" : "string", - "description" : "O1 identities for managed entities" + "description" : "Identity for a managed entity" } }, "state" : { "type" : "string", - "description" : "Represents the states for a Near-RT RIC", + "description" : "Represents the state of a Near-RT RIC", "enum" : [ "UNAVAILABLE", "AVAILABLE", "SYNCHRONIZING", "CONSISTENCY_CHECK" ] }, "policyTypeIds" : { "type" : "array", - "description" : "supported policy types", + "description" : "Supported A1 Policy Types", "items" : { "type" : "string", - "description" : "supported policy types" + "description" : "Supported A1 Policy Type ID" } } }, @@ -1128,13 +1059,13 @@ ul.nav-tabs { "properties" : { "rics" : { "type" : "array", - "description" : "List of Near-RT RIC information", + "description" : "List of Near-RT RIC information objects", "items" : { "$ref" : "#/components/schemas/RicInfo" } } }, - "description" : "List of Near-RT RIC information" + "description" : "Collection of Near-RT RIC information objects" }; defs["ServiceCallbackInfo"] = { "required" : [ "eventType", "ricId" ], @@ -1146,11 +1077,11 @@ ul.nav-tabs { }, "eventType" : { "type" : "string", - "description" : "values:\nAVAILABLE: the Near-RT RIC has become available for A1 Policy management", + "description" : "values: \n AVAILABLE: the Near-RT RIC has become available for A1 Policy management\n", "enum" : [ "AVAILABLE" ] } }, - "description" : "Information transferred as in Service callbacks (callback_url)" + "description" : "Information transferred in Service callbacks, \nif a callback URL was provided for a registered service\n" }; defs["ServiceRegistrationInfo"] = { "required" : [ "serviceId" ], @@ -1158,7 +1089,7 @@ ul.nav-tabs { "properties" : { "callbackUrl" : { "type" : "string", - "description" : "callback for notifying of Near-RT RIC state changes" + "description" : "Callback URL for notifying of Near-RT RIC state changes" }, "serviceId" : { "type" : "string", @@ -1166,18 +1097,18 @@ ul.nav-tabs { }, "keepAliveIntervalSeconds" : { "type" : "integer", - "description" : "keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.", + "description" : "Keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n", "format" : "int64" } }, - "description" : "Information for one service" + "description" : "Information for a service to be registered" }; defs["ServiceStatus"] = { "type" : "object", "properties" : { "callbackUrl" : { "type" : "string", - "description" : "callback for notifying of RIC synchronization" + "description" : "Callback URL for notifying of Near-RT RIC state changes" }, "serviceId" : { "type" : "string", @@ -1185,22 +1116,23 @@ ul.nav-tabs { }, "keepAliveIntervalSeconds" : { "type" : "integer", - "description" : "policy keep alive timeout", + "description" : "Keep alive interval (seconds) for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n", "format" : "int64" }, "timeSinceLastActivitySeconds" : { "type" : "integer", - "description" : "time since last invocation by the service", + "description" : "Time (seconds) since last recorded operation by the service", "format" : "int64" } - } + }, + "description" : "Information about a previously registered service" }; defs["ServiceStatusList"] = { "type" : "object", "properties" : { "serviceList" : { "type" : "array", - "description" : "List of service information", + "description" : "List of Service Status objects, describing a collection of registered services.", "items" : { "$ref" : "#/components/schemas/ServiceStatus" } @@ -1212,14 +1144,14 @@ ul.nav-tabs { "properties" : { "status" : { "type" : "string", - "description" : "status text" + "description" : "Status text" } } }; defs["NearRtRicId"] = { "type" : "string", - "description" : "Identity of the policy" + "description" : "Identity of the Near-RT RIC" }; var errs = {}; @@ -1246,12 +1178,12 @@ ul.nav-tabs { <li data-group="A1PolicyManagement" data-name="deletePolicy" class=""> <a href="#api-A1PolicyManagement-deletePolicy">deletePolicy</a> </li> - <li data-group="A1PolicyManagement" data-name="getAllPolicies" class=""> - <a href="#api-A1PolicyManagement-getAllPolicies">getAllPolicies</a> - </li> <li data-group="A1PolicyManagement" data-name="getPolicy" class=""> <a href="#api-A1PolicyManagement-getPolicy">getPolicy</a> </li> + <li data-group="A1PolicyManagement" data-name="getPolicyIds" class=""> + <a href="#api-A1PolicyManagement-getPolicyIds">getPolicyIds</a> + </li> <li data-group="A1PolicyManagement" data-name="getPolicyStatus" class=""> <a href="#api-A1PolicyManagement-getPolicyStatus">getPolicyStatus</a> </li> @@ -1261,8 +1193,8 @@ ul.nav-tabs { <li data-group="A1PolicyManagement" data-name="getPolicyTypes" class=""> <a href="#api-A1PolicyManagement-getPolicyTypes">getPolicyTypes</a> </li> - <li data-group="A1PolicyManagement" data-name="putPolicy" class=""> - <a href="#api-A1PolicyManagement-putPolicy">putPolicy</a> + <li data-group="A1PolicyManagement" data-name="updatePolicy" class=""> + <a href="#api-A1PolicyManagement-updatePolicy">updatePolicy</a> </li> <li class="nav-header" data-group="Configuration"><a href="#api-Configuration">API Methods - Configuration</a></li> <li data-group="Configuration" data-name="getConfiguration" class=""> @@ -1301,7 +1233,7 @@ ul.nav-tabs { <div id="content"> <div id="project"> <div class="pull-left"> - <h1>A1 policy management API</h1> + <h1>ONAP CCSDK - A1 Policy Management API</h1> </div> <div class="clearfix"></div> </div> @@ -1311,7 +1243,7 @@ ul.nav-tabs { <div class="app-desc">Version: 1.0.0</div> <hr> <div id="app-description" class="app-desc"> - <h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managemecnt of A1 policies. <br/>The main tasks of the service are:</p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 policies and the Near-RT RICs</li><li>Maintaining a view of supported Near-RT RIC policy types</li><li>Supervision of using services (R-APPs). When a service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2><h3>A1 Policy Management</h3><p>This is an API for management of A1 Policies.</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository</h3><p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted for one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the PMS component.</p><h3>Service Registry and Supervision</h3><p>API used for registering services that uses PMS. Each A1 policy is optionally owned by a service. PMS can supervise each registered service by a heart-beat supervision and will automatically remove policies for unavailable services. Note that a service does not need to be registered in order to create A1 Policies. This is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used for access control of A1 Policy access. If configured, an external authorization provider is requested to grant access to the A1 Policy type.</p> + <h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes the latest API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2> <p>Note: parts of this API are strongly based on extracts of the O-RAN Alliance R1 Interface specification for A1 Policy Management, and those parts should be considered '© O-RAN ALLIANCE - All rights reserved.'</p> <h3>A1 Policy Management</h3> <p>This is the latest API for managing A1 Policies. This API is partially compliant with O-RAN Alliance R1 Interface specifications for A1 Policy Management:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service.</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then its A1 Policies are removed. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p> </div> </div> @@ -1323,12 +1255,12 @@ ul.nav-tabs { <article id="api-A1PolicyManagement-createPolicy-0" data-group="User" data-name="createPolicy" data-version="0"> <div class="pull-left"> <h1>createPolicy</h1> - <p></p> + <p>Create an A1 Policy Instance (createPolicy)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">To create A1 policies</p> + <p class="marked">Create an A1 Policy Instance</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/policies</span></code></pre> @@ -1358,12 +1290,12 @@ ul.nav-tabs { -H "Content-Type: application/json" \ "https://example.com/a1-policy-management/v1/policies" \ -d '{ - "policyId" : "POLICY-ID", - "nearRtRicId" : "Near-RT-Ric-ID", + "policyId" : "POLICY-ID1", + "nearRtRicId" : "Near-RT-Ric-ID1", "transient" : false, "policyObject" : "{}", - "serviceId" : "rApp ID", - "policyTypeId" : "ORAN_QOS_1.0.0(typeName_SemVersion)" + "serviceId" : "rApp 1", + "policyTypeId" : "ORAN_QOS_1.0.0 '(typeName_SemVersion)'" }' </code></pre> </div> @@ -1441,6 +1373,7 @@ public class A1PolicyManagementApiExample { A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; PolicyObjectInformation *policyObjectInformation = ; // +// Create an A1 Policy Instance (createPolicy) [apiInstance createPolicyWith:policyObjectInformation completionHandler: ^(PolicyObjectInformation output, NSError* error) { if (output) { @@ -1454,10 +1387,10 @@ PolicyObjectInformation *policyObjectInformation = ; // </div> <div class="tab-pane" id="examples-A1PolicyManagement-createPolicy-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() var policyObjectInformation = ; // {PolicyObjectInformation} var callback = function(error, data, response) { @@ -1493,6 +1426,7 @@ namespace Example var policyObjectInformation = new PolicyObjectInformation(); // PolicyObjectInformation | try { + // Create an A1 Policy Instance (createPolicy) PolicyObjectInformation result = apiInstance.createPolicy(policyObjectInformation); Debug.WriteLine(result); } catch (Exception e) { @@ -1551,6 +1485,7 @@ api_instance = openapi_client.A1PolicyManagementApi() policyObjectInformation = # PolicyObjectInformation | try: + # Create an A1 Policy Instance (createPolicy) api_response = api_instance.create_policy(policyObjectInformation) pprint(api_response) except ApiException as e: @@ -1636,7 +1571,7 @@ $(document).ready(function() { <h3 id="examples-A1PolicyManagement-createPolicy-title-201"></h3> <p id="examples-A1PolicyManagement-createPolicy-description-201" class="marked"></p> <script> - var responseA1PolicyManagement201_description = `Success case 201 created`; + var responseA1PolicyManagement201_description = `Created`; var responseA1PolicyManagement201_description_break = responseA1PolicyManagement201_description.indexOf('\n'); if (responseA1PolicyManagement201_description_break == -1) { $("#examples-A1PolicyManagement-createPolicy-title-201").text("Status: 201 - " + responseA1PolicyManagement201_description); @@ -1667,16 +1602,25 @@ $(document).ready(function() { <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Success case 201 created", + "description" : "Created", "headers" : { "Location" : { - "description" : "Contains the URI of the newly created resource", + "description" : "Contains the URI of the newly created A1 Policy Instances. This URI includes the A1 Policy Instance ID for the newly created policy instance.\n", "required" : true, "style" : "simple", "explode" : false, "schema" : { "type" : "string" } + }, + "Content-Type" : { + "description" : "Media Type of the response", + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string", + "example" : "application/json" + } } }, "content" : { @@ -1734,7 +1678,14 @@ $(document).ready(function() { <td>Location</td> <td>String</td> <td></td> - <td>Contains the URI of the newly created resource</td> + <td>Contains the URI of the newly created A1 Policy Instances. This URI includes the A1 Policy Instance ID for the newly created policy instance. +</td> + </tr> + <tr> + <td>Content-Type</td> + <td>String</td> + <td></td> + <td>Media Type of the response</td> </tr> </table> </div> @@ -2463,7 +2414,7 @@ $(document).ready(function() { "example" : { "status" : 423, "title" : "Locked", - "detail" : "State is Locked in the provided request." + "detail" : "State is Locked in the provided request." } } } @@ -2507,7 +2458,7 @@ $(document).ready(function() { <h3 id="examples-A1PolicyManagement-createPolicy-title-429"></h3> <p id="examples-A1PolicyManagement-createPolicy-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { $("#examples-A1PolicyManagement-createPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); @@ -2535,7 +2486,7 @@ $(document).ready(function() { <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -2815,12 +2766,12 @@ $(document).ready(function() { <article id="api-A1PolicyManagement-deletePolicy-0" data-group="User" data-name="deletePolicy" data-version="0"> <div class="pull-left"> <h1>deletePolicy</h1> - <p>Delete a policy</p> + <p>Delete an A1 Policy instance (deletePolicy)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Deleting the policy using policyId.</p> + <p class="marked">Delete an existing A1 Policy instance using its policy ID.</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/policies/{policyId}</span></code></pre> @@ -2926,7 +2877,7 @@ A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; String *policyId = policyId_example; // (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) -// Delete a policy +// Delete an A1 Policy instance (deletePolicy) [apiInstance deletePolicyWith:policyId accept:accept completionHandler: ^(NSError* error) { @@ -2938,10 +2889,10 @@ String *accept = application/json; // Specifies the content type that the client </div> <div class="tab-pane" id="examples-A1PolicyManagement-deletePolicy-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() var policyId = policyId_example; // {String} var opts = { 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. @@ -2981,7 +2932,7 @@ namespace Example 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 { - // Delete a policy + // Delete an A1 Policy instance (deletePolicy) apiInstance.deletePolicy(policyId, accept); } catch (Exception e) { Debug.Print("Exception when calling A1PolicyManagementApi.deletePolicy: " + e.Message ); @@ -3040,7 +2991,7 @@ policyId = policyId_example # String | (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: - # Delete a policy + # Delete an A1 Policy instance (deletePolicy) api_instance.delete_policy(policyId, accept=accept) except ApiException as e: print("Exception when calling A1PolicyManagementApi->deletePolicy: %s\n" % e)</code></pre> @@ -3132,7 +3083,7 @@ Specifies the content type that the client expects to receive in response to the <h3 id="examples-A1PolicyManagement-deletePolicy-title-204"></h3> <p id="examples-A1PolicyManagement-deletePolicy-description-204" class="marked"></p> <script> - var responseA1PolicyManagement204_description = `The A1 policy was deleted`; + var responseA1PolicyManagement204_description = `No Content`; var responseA1PolicyManagement204_description_break = responseA1PolicyManagement204_description.indexOf('\n'); if (responseA1PolicyManagement204_description_break == -1) { $("#examples-A1PolicyManagement-deletePolicy-title-204").text("Status: 204 - " + responseA1PolicyManagement204_description); @@ -3155,7 +3106,7 @@ Specifies the content type that the client expects to receive in response to the <script> $(document).ready(function() { var schemaWrapper = { - "description" : "The A1 policy was deleted" + "description" : "No Content" }; var schema = findNode('schema',schemaWrapper).schema; if (!schema) { @@ -3689,7 +3640,7 @@ Specifies the content type that the client expects to receive in response to the "example" : { "status" : 423, "title" : "Locked", - "detail" : "State is Locked in the provided request." + "detail" : "State is Locked in the provided request." } } } @@ -3733,7 +3684,7 @@ Specifies the content type that the client expects to receive in response to the <h3 id="examples-A1PolicyManagement-deletePolicy-title-429"></h3> <p id="examples-A1PolicyManagement-deletePolicy-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { $("#examples-A1PolicyManagement-deletePolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); @@ -3761,7 +3712,7 @@ Specifies the content type that the client expects to receive in response to the <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -4037,46 +3988,46 @@ Specifies the content type that the client expects to receive in response to the </article> </div> <hr> - <div id="api-A1PolicyManagement-getAllPolicies"> - <article id="api-A1PolicyManagement-getAllPolicies-0" data-group="User" data-name="getAllPolicies" data-version="0"> + <div id="api-A1PolicyManagement-getPolicy"> + <article id="api-A1PolicyManagement-getPolicy-0" data-group="User" data-name="getPolicy" data-version="0"> <div class="pull-left"> - <h1>getAllPolicies</h1> - <p>Query policy identities</p> + <h1>getPolicy</h1> + <p>Get an A1 Policy's policy data (getPolicy)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Returns a list of A1 policies matching given search criteria. <br>If several query parameters are defined, the policies matching all conditions are returned.</p> + <p class="marked">Get an A1 Policy instance's policy data using its policy ID</p> <p></p> <br /> - <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies</span></code></pre> + <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies/{policyId}</span></code></pre> <p> <h3>Usage and SDK Samples</h3> </p> <ul class="nav nav-tabs nav-tabs-examples"> - <li class="active"><a href="#examples-A1PolicyManagement-getAllPolicies-0-curl">Curl</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-java">Java</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-dart">Dart</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-android">Android</a></li> - <!--<li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-groovy">Groovy</a></li>--> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-objc">Obj-C</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-javascript">JavaScript</a></li> - <!--<li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-angular">Angular</a></li>--> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-csharp">C#</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-php">PHP</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-perl">Perl</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-python">Python</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-rust">Rust</a></li> + <li class="active"><a href="#examples-A1PolicyManagement-getPolicy-0-curl">Curl</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-java">Java</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-dart">Dart</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-android">Android</a></li> + <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-groovy">Groovy</a></li>--> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-objc">Obj-C</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-javascript">JavaScript</a></li> + <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-angular">Angular</a></li>--> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-csharp">C#</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-php">PHP</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-perl">Perl</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-python">Python</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-rust">Rust</a></li> </ul> <div class="tab-content"> - <div class="tab-pane active" id="examples-A1PolicyManagement-getAllPolicies-0-curl"> + <div class="tab-pane active" id="examples-A1PolicyManagement-getPolicy-0-curl"> <pre class="prettyprint"><code class="language-bsh">curl -X GET \ -H "Accept: application/json,application/problem+json" \ - "https://example.com/a1-policy-management/v1/policies?policyTypeId=policyTypeId_example&nearRtRicId=nearRtRicId_example&serviceId=serviceId_example&typeName=typeName_example" + "https://example.com/a1-policy-management/v1/policies/{policyId}" </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-java"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-java"> <pre class="prettyprint"><code class="language-java">import org.openapitools.client.*; import org.openapitools.client.auth.*; import org.openapitools.client.model.*; @@ -4090,17 +4041,14 @@ public class A1PolicyManagementApiExample { // Create an instance of the API class A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); - String policyTypeId = policyTypeId_example; // String | Select policies of a given policy type identity. - String nearRtRicId = nearRtRicId_example; // String | Select policies of a given Near-RT RIC identity. - String serviceId = serviceId_example; // String | Select policies owned by a given service. - String typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>) + String policyId = policyId_example; // String | 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 { - array[PolicyInformation] result = apiInstance.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept); + Object result = apiInstance.getPolicy(policyId, accept); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling A1PolicyManagementApi#getAllPolicies"); + System.err.println("Exception when calling A1PolicyManagementApi#getPolicy"); e.printStackTrace(); } } @@ -4108,71 +4056,59 @@ public class A1PolicyManagementApiExample { </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-dart"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-dart"> <pre class="prettyprint"><code class="language-dart">import 'package:openapi/api.dart'; final api_instance = DefaultApi(); -final String policyTypeId = new String(); // String | Select policies of a given policy type identity. -final String nearRtRicId = new String(); // String | Select policies of a given Near-RT RIC identity. -final String serviceId = new String(); // String | Select policies owned by a given service. -final String typeName = new String(); // String | Select policies of types with the given type name (type identity has the format <typename_version>) +final String policyId = new String(); // String | 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.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept); + final result = await api_instance.getPolicy(policyId, accept); print(result); } catch (e) { - print('Exception when calling DefaultApi->getAllPolicies: $e\n'); + print('Exception when calling DefaultApi->getPolicy: $e\n'); } </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-android"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-android"> <pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.A1PolicyManagementApi; public class A1PolicyManagementApiExample { public static void main(String[] args) { A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); - String policyTypeId = policyTypeId_example; // String | Select policies of a given policy type identity. - String nearRtRicId = nearRtRicId_example; // String | Select policies of a given Near-RT RIC identity. - String serviceId = serviceId_example; // String | Select policies owned by a given service. - String typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>) + String policyId = policyId_example; // String | 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 { - array[PolicyInformation] result = apiInstance.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept); + Object result = apiInstance.getPolicy(policyId, accept); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling A1PolicyManagementApi#getAllPolicies"); + System.err.println("Exception when calling A1PolicyManagementApi#getPolicy"); e.printStackTrace(); } } }</code></pre> </div> <!-- - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-groovy"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-groovy"> <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre> </div> --> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-objc"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-objc"> <pre class="prettyprint"><code class="language-cpp"> // Create an instance of the API class A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; -String *policyTypeId = policyTypeId_example; // Select policies of a given policy type identity. (optional) (default to null) -String *nearRtRicId = nearRtRicId_example; // Select policies of a given Near-RT RIC identity. (optional) (default to null) -String *serviceId = serviceId_example; // Select policies owned by a given service. (optional) (default to null) -String *typeName = typeName_example; // Select policies of types with the given type name (type identity has the format <typename_version>) (optional) (default to null) +String *policyId = policyId_example; // (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) -// Query policy identities -[apiInstance getAllPoliciesWith:policyTypeId - nearRtRicId:nearRtRicId - serviceId:serviceId - typeName:typeName +// Get an A1 Policy's policy data (getPolicy) +[apiInstance getPolicyWith:policyId accept:accept - completionHandler: ^(array[PolicyInformation] output, NSError* error) { + completionHandler: ^(Object output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -4183,16 +4119,13 @@ String *accept = application/json; // Specifies the content type that the client </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-javascript"> + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() +var policyId = policyId_example; // {String} var opts = { - 'policyTypeId': policyTypeId_example, // {String} Select policies of a given policy type identity. - 'nearRtRicId': nearRtRicId_example, // {String} Select policies of a given Near-RT RIC identity. - 'serviceId': serviceId_example, // {String} Select policies owned by a given service. - 'typeName': typeName_example, // {String} Select policies of types with the given type name (type identity has the format <typename_version>) 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. }; @@ -4203,14 +4136,14 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -api.getAllPolicies(opts, callback); +api.getPolicy(policyId, opts, callback); </code></pre> </div> - <!--<div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-angular"> + <!--<div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-angular"> <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre> </div>--> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-csharp"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-csharp"> <pre class="prettyprint"><code class="language-cs">using System; using System.Diagnostics; using Org.OpenAPITools.Api; @@ -4219,25 +4152,22 @@ using Org.OpenAPITools.Model; namespace Example { - public class getAllPoliciesExample + public class getPolicyExample { public void main() { // Create an instance of the API class var apiInstance = new A1PolicyManagementApi(); - var policyTypeId = policyTypeId_example; // String | Select policies of a given policy type identity. (optional) (default to null) - var nearRtRicId = nearRtRicId_example; // String | Select policies of a given Near-RT RIC identity. (optional) (default to null) - var serviceId = serviceId_example; // String | Select policies owned by a given service. (optional) (default to null) - var typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>) (optional) (default to null) + var policyId = policyId_example; // String | (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 { - // Query policy identities - array[PolicyInformation] result = apiInstance.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept); + // Get an A1 Policy's policy data (getPolicy) + Object result = apiInstance.getPolicy(policyId, accept); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling A1PolicyManagementApi.getAllPolicies: " + e.Message ); + Debug.Print("Exception when calling A1PolicyManagementApi.getPolicy: " + e.Message ); } } } @@ -4245,50 +4175,44 @@ namespace Example </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-php"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-php"> <pre class="prettyprint"><code class="language-php"><?php require_once(__DIR__ . '/vendor/autoload.php'); // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi(); -$policyTypeId = policyTypeId_example; // String | Select policies of a given policy type identity. -$nearRtRicId = nearRtRicId_example; // String | Select policies of a given Near-RT RIC identity. -$serviceId = serviceId_example; // String | Select policies owned by a given service. -$typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>) +$policyId = policyId_example; // 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 { - $result = $api_instance->getAllPolicies($policyTypeId, $nearRtRicId, $serviceId, $typeName, $accept); + $result = $api_instance->getPolicy($policyId, $accept); print_r($result); } catch (Exception $e) { - echo 'Exception when calling A1PolicyManagementApi->getAllPolicies: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling A1PolicyManagementApi->getPolicy: ', $e->getMessage(), PHP_EOL; } ?></code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-perl"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-perl"> <pre class="prettyprint"><code class="language-perl">use Data::Dumper; use WWW::OPenAPIClient::Configuration; use WWW::OPenAPIClient::A1PolicyManagementApi; # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new(); -my $policyTypeId = policyTypeId_example; # String | Select policies of a given policy type identity. -my $nearRtRicId = nearRtRicId_example; # String | Select policies of a given Near-RT RIC identity. -my $serviceId = serviceId_example; # String | Select policies owned by a given service. -my $typeName = typeName_example; # String | Select policies of types with the given type name (type identity has the format <typename_version>) +my $policyId = policyId_example; # String | 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->getAllPolicies(policyTypeId => $policyTypeId, nearRtRicId => $nearRtRicId, serviceId => $serviceId, typeName => $typeName, accept => $accept); + my $result = $api_instance->getPolicy(policyId => $policyId, accept => $accept); print Dumper($result); }; if ($@) { - warn "Exception when calling A1PolicyManagementApi->getAllPolicies: $@\n"; + warn "Exception when calling A1PolicyManagementApi->getPolicy: $@\n"; }</code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-python"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-python"> <pre class="prettyprint"><code class="language-python">from __future__ import print_statement import time import openapi_client @@ -4297,32 +4221,26 @@ from pprint import pprint # Create an instance of the API class api_instance = openapi_client.A1PolicyManagementApi() -policyTypeId = policyTypeId_example # String | Select policies of a given policy type identity. (optional) (default to null) -nearRtRicId = nearRtRicId_example # String | Select policies of a given Near-RT RIC identity. (optional) (default to null) -serviceId = serviceId_example # String | Select policies owned by a given service. (optional) (default to null) -typeName = typeName_example # String | Select policies of types with the given type name (type identity has the format <typename_version>) (optional) (default to null) +policyId = policyId_example # String | (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: - # Query policy identities - api_response = api_instance.get_all_policies(policyTypeId=policyTypeId, nearRtRicId=nearRtRicId, serviceId=serviceId, typeName=typeName, accept=accept) + # Get an A1 Policy's policy data (getPolicy) + api_response = api_instance.get_policy(policyId, accept=accept) pprint(api_response) except ApiException as e: - print("Exception when calling A1PolicyManagementApi->getAllPolicies: %s\n" % e)</code></pre> + print("Exception when calling A1PolicyManagementApi->getPolicy: %s\n" % e)</code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-rust"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-rust"> <pre class="prettyprint"><code class="language-rust">extern crate A1PolicyManagementApi; pub fn main() { - let policyTypeId = policyTypeId_example; // String - let nearRtRicId = nearRtRicId_example; // String - let serviceId = serviceId_example; // String - let typeName = typeName_example; // String + let policyId = policyId_example; // String let accept = application/json; // String let mut context = A1PolicyManagementApi::Context::default(); - let result = client.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept, &context).wait(); + let result = client.getPolicy(policyId, accept, &context).wait(); println!("{:?}", result); } @@ -4337,28 +4255,27 @@ pub fn main() { <h2>Parameters</h2> - - <div class="methodsubtabletitle">Header parameters</div> + <div class="methodsubtabletitle">Path parameters</div> <table id="methodsubtable"> - <tr> - <th width="150px">Name</th> - <th>Description</th> - </tr> - <tr><td style="width:150px;">Accept</td> + <tr> + <th width="150px">Name</th> + <th>Description</th> + </tr> + <tr><td style="width:150px;">policyId*</td> <td> - <div id="d2e199_getAllPolicies_accept"> + <div id="d2e199_getPolicy_policyId"> <div class="json-schema-view"> <div class="primitive"> <span class="type"> String </span> - <div class="inner description marked"> -Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. - </div> </div> + <div class="inner required"> + Required + </div> </div> </div> </td> @@ -4366,59 +4283,17 @@ Specifies the content type that the client expects to receive in response to the </table> - - - <div class="methodsubtabletitle">Query parameters</div> + <div class="methodsubtabletitle">Header parameters</div> <table id="methodsubtable"> <tr> <th width="150px">Name</th> <th>Description</th> </tr> - <tr><td style="width:150px;">policyTypeId</td> -<td> - - - <div id="d2e199_getAllPolicies_policyTypeId"> - <div class="json-schema-view"> - <div class="primitive"> - <span class="type"> - String - </span> - - <div class="inner description marked"> -Select policies of a given policy type identity. - </div> - </div> - </div> - </div> -</td> -</tr> - - <tr><td style="width:150px;">nearRtRicId</td> -<td> - - - <div id="d2e199_getAllPolicies_nearRtRicId"> - <div class="json-schema-view"> - <div class="primitive"> - <span class="type"> - String - </span> - - <div class="inner description marked"> -Select policies of a given Near-RT RIC identity. - </div> - </div> - </div> - </div> -</td> -</tr> - - <tr><td style="width:150px;">serviceId</td> + <tr><td style="width:150px;">Accept</td> <td> - <div id="d2e199_getAllPolicies_serviceId"> + <div id="d2e199_getPolicy_accept"> <div class="json-schema-view"> <div class="primitive"> <span class="type"> @@ -4426,7 +4301,7 @@ Select policies of a given Near-RT RIC identity. </span> <div class="inner description marked"> -Select policies owned by a given service. +Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. </div> </div> </div> @@ -4434,46 +4309,29 @@ Select policies owned by a given service. </td> </tr> - <tr><td style="width:150px;">typeName</td> -<td> + </table> - <div id="d2e199_getAllPolicies_typeName"> - <div class="json-schema-view"> - <div class="primitive"> - <span class="type"> - String - </span> - - <div class="inner description marked"> -Select policies of types with the given type name (type identity has the format <typename_version>) - </div> - </div> - </div> - </div> -</td> -</tr> - </table> <h2>Responses</h2> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-200"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-200" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-200"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-200" class="marked"></p> <script> - var responseA1PolicyManagement200_description = `OK - Policy identities`; + var responseA1PolicyManagement200_description = `OK - Policy found`; var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n'); if (responseA1PolicyManagement200_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); + $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-200" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-200" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-200-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-200-schema">Schema</a> </li> @@ -4482,19 +4340,21 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-200-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-200-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-200" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-200-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-200-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-200" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { - "description" : "OK - Policy identities", + "description" : "OK - Policy found", "content" : { "application/json" : { "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/PolicyInformation" + "$ref" : "#/components/schemas/PolicyObject" + }, + "examples" : { + "policyObject" : { + "$ref" : "#/components/examples/PolicyObject" } } } @@ -4526,33 +4386,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-200-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-200'); + $('#responses-A1PolicyManagement-getPolicy-200-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-200'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-200-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-200-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-400"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-400" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-400"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-400" class="marked"></p> <script> var responseA1PolicyManagement400_description = `Bad Request`; var responseA1PolicyManagement400_description_break = responseA1PolicyManagement400_description.indexOf('\n'); if (responseA1PolicyManagement400_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description); + $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-400" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-400" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-400-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-400-schema">Schema</a> </li> @@ -4561,9 +4421,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-400-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-400-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-400" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-400-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-400-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-400" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -4602,33 +4462,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-400-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-400'); + $('#responses-A1PolicyManagement-getPolicy-400-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-400'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-400-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-400-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-401"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-401" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-401"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-401" class="marked"></p> <script> var responseA1PolicyManagement401_description = `Unauthorized`; var responseA1PolicyManagement401_description_break = responseA1PolicyManagement401_description.indexOf('\n'); if (responseA1PolicyManagement401_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description); + $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-401" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-401" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-401-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-401-schema">Schema</a> </li> @@ -4637,9 +4497,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-401-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-401-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-401" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-401-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-401-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-401" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -4678,33 +4538,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-401-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-401'); + $('#responses-A1PolicyManagement-getPolicy-401-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-401'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-401-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-401-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-403"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-403" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-403"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-403" class="marked"></p> <script> var responseA1PolicyManagement403_description = `Forbidden`; var responseA1PolicyManagement403_description_break = responseA1PolicyManagement403_description.indexOf('\n'); if (responseA1PolicyManagement403_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description); + $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-403" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-403" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-403-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-403-schema">Schema</a> </li> @@ -4713,9 +4573,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-403-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-403-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-403" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-403-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-403-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-403" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -4754,33 +4614,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-403-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-403'); + $('#responses-A1PolicyManagement-getPolicy-403-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-403'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-403-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-403-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-404"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-404" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-404"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-404" class="marked"></p> <script> var responseA1PolicyManagement404_description = `Not Found`; var responseA1PolicyManagement404_description_break = responseA1PolicyManagement404_description.indexOf('\n'); if (responseA1PolicyManagement404_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description); + $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-404" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-404" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-404-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-404-schema">Schema</a> </li> @@ -4789,9 +4649,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-404-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-404-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-404" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-404-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-404-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-404" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -4830,33 +4690,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-404-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-404'); + $('#responses-A1PolicyManagement-getPolicy-404-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-404'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-404-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-404-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-406"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-406" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-406"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-406" class="marked"></p> <script> var responseA1PolicyManagement406_description = `Not Acceptable`; var responseA1PolicyManagement406_description_break = responseA1PolicyManagement406_description.indexOf('\n'); if (responseA1PolicyManagement406_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description); + $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-406" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-406" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-406-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-406-schema">Schema</a> </li> @@ -4865,9 +4725,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-406-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-406-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-406" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-406-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-406-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-406" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -4906,33 +4766,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-406-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-406'); + $('#responses-A1PolicyManagement-getPolicy-406-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-406'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-406-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-406-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-429"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-429" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-429"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); + $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-429" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-429" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-429-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-429-schema">Schema</a> </li> @@ -4941,13 +4801,13 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-429-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-429-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-429" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-429-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-429-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-429" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -4982,33 +4842,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-429-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-429'); + $('#responses-A1PolicyManagement-getPolicy-429-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-429'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-429-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-429-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-500"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-500" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-500"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-500" class="marked"></p> <script> var responseA1PolicyManagement500_description = `Internal Server Error`; var responseA1PolicyManagement500_description_break = responseA1PolicyManagement500_description.indexOf('\n'); if (responseA1PolicyManagement500_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description); + $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-500" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-500" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-500-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-500-schema">Schema</a> </li> @@ -5017,9 +4877,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-500-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-500-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-500" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-500-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-500-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-500" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5058,33 +4918,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-500-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-500'); + $('#responses-A1PolicyManagement-getPolicy-500-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-500'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-500-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-500-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-502"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-502" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-502"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-502" class="marked"></p> <script> var responseA1PolicyManagement502_description = `Bad Gateway`; var responseA1PolicyManagement502_description_break = responseA1PolicyManagement502_description.indexOf('\n'); if (responseA1PolicyManagement502_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description); + $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-502" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-502" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-502-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-502-schema">Schema</a> </li> @@ -5093,9 +4953,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-502-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-502-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-502" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-502-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-502-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-502" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5134,33 +4994,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-502-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-502'); + $('#responses-A1PolicyManagement-getPolicy-502-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-502'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-502-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-502-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-503"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-503" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-503"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-503" class="marked"></p> <script> var responseA1PolicyManagement503_description = `Service Unavailable`; var responseA1PolicyManagement503_description_break = responseA1PolicyManagement503_description.indexOf('\n'); if (responseA1PolicyManagement503_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description); + $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-503" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-503" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-503-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-503-schema">Schema</a> </li> @@ -5169,9 +5029,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-503-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-503-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-503" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-503-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-503-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-503" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5210,59 +5070,60 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-503-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-503'); + $('#responses-A1PolicyManagement-getPolicy-503-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-503'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-503-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-503-schema-data' type='hidden' value=''></input> </div> </div> </article> </div> <hr> - <div id="api-A1PolicyManagement-getPolicy"> - <article id="api-A1PolicyManagement-getPolicy-0" data-group="User" data-name="getPolicy" data-version="0"> + <div id="api-A1PolicyManagement-getPolicyIds"> + <article id="api-A1PolicyManagement-getPolicyIds-0" data-group="User" data-name="getPolicyIds" data-version="0"> <div class="pull-left"> - <h1>getPolicy</h1> - <p></p> + <h1>getPolicyIds</h1> + <p>Query for A1 Policy instances (getPolicyIds)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Returns a policy</p> + <p class="marked">Returns a collection of A1 Policy Instance IDs for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned. +</p> <p></p> <br /> - <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies/{policyId}</span></code></pre> + <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies</span></code></pre> <p> <h3>Usage and SDK Samples</h3> </p> <ul class="nav nav-tabs nav-tabs-examples"> - <li class="active"><a href="#examples-A1PolicyManagement-getPolicy-0-curl">Curl</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-java">Java</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-dart">Dart</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-android">Android</a></li> - <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-groovy">Groovy</a></li>--> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-objc">Obj-C</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-javascript">JavaScript</a></li> - <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-angular">Angular</a></li>--> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-csharp">C#</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-php">PHP</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-perl">Perl</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-python">Python</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-rust">Rust</a></li> + <li class="active"><a href="#examples-A1PolicyManagement-getPolicyIds-0-curl">Curl</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-java">Java</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-dart">Dart</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-android">Android</a></li> + <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-groovy">Groovy</a></li>--> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-objc">Obj-C</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-javascript">JavaScript</a></li> + <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-angular">Angular</a></li>--> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-csharp">C#</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-php">PHP</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-perl">Perl</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-python">Python</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-rust">Rust</a></li> </ul> <div class="tab-content"> - <div class="tab-pane active" id="examples-A1PolicyManagement-getPolicy-0-curl"> + <div class="tab-pane active" id="examples-A1PolicyManagement-getPolicyIds-0-curl"> <pre class="prettyprint"><code class="language-bsh">curl -X GET \ -H "Accept: application/json,application/problem+json" \ - "https://example.com/a1-policy-management/v1/policies/{policyId}" + "https://example.com/a1-policy-management/v1/policies?policyTypeId=policyTypeId_example&nearRtRicId=nearRtRicId_example&serviceId=serviceId_example&typeName=typeName_example" </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-java"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-java"> <pre class="prettyprint"><code class="language-java">import org.openapitools.client.*; import org.openapitools.client.auth.*; import org.openapitools.client.model.*; @@ -5276,14 +5137,17 @@ public class A1PolicyManagementApiExample { // Create an instance of the API class A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); - String policyId = policyId_example; // String | + String policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID. + String nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity. + String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). + String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). 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 { - Object result = apiInstance.getPolicy(policyId, accept); + array[PolicyInformation] result = apiInstance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling A1PolicyManagementApi#getPolicy"); + System.err.println("Exception when calling A1PolicyManagementApi#getPolicyIds"); e.printStackTrace(); } } @@ -5291,58 +5155,71 @@ public class A1PolicyManagementApiExample { </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-dart"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-dart"> <pre class="prettyprint"><code class="language-dart">import 'package:openapi/api.dart'; final api_instance = DefaultApi(); -final String policyId = new String(); // String | +final String policyTypeId = new String(); // String | Select policies with a given A1 Policy Type ID. +final String nearRtRicId = new String(); // String | Select policies for a given Near-RT RIC identity. +final String serviceId = new String(); // String | Select policies owned by a given service (registered or unregistered). +final String typeName = new String(); // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). 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.getPolicy(policyId, accept); + final result = await api_instance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept); print(result); } catch (e) { - print('Exception when calling DefaultApi->getPolicy: $e\n'); + print('Exception when calling DefaultApi->getPolicyIds: $e\n'); } </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-android"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-android"> <pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.A1PolicyManagementApi; public class A1PolicyManagementApiExample { public static void main(String[] args) { A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); - String policyId = policyId_example; // String | + String policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID. + String nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity. + String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). + String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). 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 { - Object result = apiInstance.getPolicy(policyId, accept); + array[PolicyInformation] result = apiInstance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling A1PolicyManagementApi#getPolicy"); + System.err.println("Exception when calling A1PolicyManagementApi#getPolicyIds"); e.printStackTrace(); } } }</code></pre> </div> <!-- - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-groovy"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-groovy"> <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre> </div> --> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-objc"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-objc"> <pre class="prettyprint"><code class="language-cpp"> // Create an instance of the API class A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; -String *policyId = policyId_example; // (default to null) +String *policyTypeId = policyTypeId_example; // Select policies with a given A1 Policy Type ID. (optional) (default to null) +String *nearRtRicId = nearRtRicId_example; // Select policies for a given Near-RT RIC identity. (optional) (default to null) +String *serviceId = serviceId_example; // Select policies owned by a given service (registered or unregistered). (optional) (default to null) +String *typeName = typeName_example; // Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (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) -[apiInstance getPolicyWith:policyId +// Query for A1 Policy instances (getPolicyIds) +[apiInstance getPolicyIdsWith:policyTypeId + nearRtRicId:nearRtRicId + serviceId:serviceId + typeName:typeName accept:accept - completionHandler: ^(Object output, NSError* error) { + completionHandler: ^(array[PolicyInformation] output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -5353,13 +5230,16 @@ String *accept = application/json; // Specifies the content type that the client </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-javascript"> + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() -var policyId = policyId_example; // {String} +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() var opts = { + 'policyTypeId': policyTypeId_example, // {String} Select policies with a given A1 Policy Type ID. + 'nearRtRicId': nearRtRicId_example, // {String} Select policies for a given Near-RT RIC identity. + 'serviceId': serviceId_example, // {String} Select policies owned by a given service (registered or unregistered). + 'typeName': typeName_example, // {String} Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. }; @@ -5370,14 +5250,14 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -api.getPolicy(policyId, opts, callback); +api.getPolicyIds(opts, callback); </code></pre> </div> - <!--<div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-angular"> + <!--<div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-angular"> <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre> </div>--> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-csharp"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-csharp"> <pre class="prettyprint"><code class="language-cs">using System; using System.Diagnostics; using Org.OpenAPITools.Api; @@ -5386,21 +5266,25 @@ using Org.OpenAPITools.Model; namespace Example { - public class getPolicyExample + public class getPolicyIdsExample { public void main() { // Create an instance of the API class var apiInstance = new A1PolicyManagementApi(); - var policyId = policyId_example; // String | (default to null) + var policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID. (optional) (default to null) + var nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity. (optional) (default to null) + var serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). (optional) (default to null) + var typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (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 { - Object result = apiInstance.getPolicy(policyId, accept); + // Query for A1 Policy instances (getPolicyIds) + array[PolicyInformation] result = apiInstance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling A1PolicyManagementApi.getPolicy: " + e.Message ); + Debug.Print("Exception when calling A1PolicyManagementApi.getPolicyIds: " + e.Message ); } } } @@ -5408,44 +5292,50 @@ namespace Example </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-php"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-php"> <pre class="prettyprint"><code class="language-php"><?php require_once(__DIR__ . '/vendor/autoload.php'); // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi(); -$policyId = policyId_example; // String | +$policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID. +$nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity. +$serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). +$typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). $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->getPolicy($policyId, $accept); + $result = $api_instance->getPolicyIds($policyTypeId, $nearRtRicId, $serviceId, $typeName, $accept); print_r($result); } catch (Exception $e) { - echo 'Exception when calling A1PolicyManagementApi->getPolicy: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling A1PolicyManagementApi->getPolicyIds: ', $e->getMessage(), PHP_EOL; } ?></code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-perl"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-perl"> <pre class="prettyprint"><code class="language-perl">use Data::Dumper; use WWW::OPenAPIClient::Configuration; use WWW::OPenAPIClient::A1PolicyManagementApi; # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new(); -my $policyId = policyId_example; # String | +my $policyTypeId = policyTypeId_example; # String | Select policies with a given A1 Policy Type ID. +my $nearRtRicId = nearRtRicId_example; # String | Select policies for a given Near-RT RIC identity. +my $serviceId = serviceId_example; # String | Select policies owned by a given service (registered or unregistered). +my $typeName = typeName_example; # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). 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->getPolicy(policyId => $policyId, accept => $accept); + my $result = $api_instance->getPolicyIds(policyTypeId => $policyTypeId, nearRtRicId => $nearRtRicId, serviceId => $serviceId, typeName => $typeName, accept => $accept); print Dumper($result); }; if ($@) { - warn "Exception when calling A1PolicyManagementApi->getPolicy: $@\n"; + warn "Exception when calling A1PolicyManagementApi->getPolicyIds: $@\n"; }</code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-python"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-python"> <pre class="prettyprint"><code class="language-python">from __future__ import print_statement import time import openapi_client @@ -5454,25 +5344,32 @@ from pprint import pprint # Create an instance of the API class api_instance = openapi_client.A1PolicyManagementApi() -policyId = policyId_example # String | (default to null) +policyTypeId = policyTypeId_example # String | Select policies with a given A1 Policy Type ID. (optional) (default to null) +nearRtRicId = nearRtRicId_example # String | Select policies for a given Near-RT RIC identity. (optional) (default to null) +serviceId = serviceId_example # String | Select policies owned by a given service (registered or unregistered). (optional) (default to null) +typeName = typeName_example # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (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: - api_response = api_instance.get_policy(policyId, accept=accept) + # Query for A1 Policy instances (getPolicyIds) + api_response = api_instance.get_policy_ids(policyTypeId=policyTypeId, nearRtRicId=nearRtRicId, serviceId=serviceId, typeName=typeName, accept=accept) pprint(api_response) except ApiException as e: - print("Exception when calling A1PolicyManagementApi->getPolicy: %s\n" % e)</code></pre> + print("Exception when calling A1PolicyManagementApi->getPolicyIds: %s\n" % e)</code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-rust"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-rust"> <pre class="prettyprint"><code class="language-rust">extern crate A1PolicyManagementApi; pub fn main() { - let policyId = policyId_example; // String + let policyTypeId = policyTypeId_example; // String + let nearRtRicId = nearRtRicId_example; // String + let serviceId = serviceId_example; // String + let typeName = typeName_example; // String let accept = application/json; // String let mut context = A1PolicyManagementApi::Context::default(); - let result = client.getPolicy(policyId, accept, &context).wait(); + let result = client.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept, &context).wait(); println!("{:?}", result); } @@ -5487,27 +5384,28 @@ pub fn main() { <h2>Parameters</h2> - <div class="methodsubtabletitle">Path parameters</div> + + <div class="methodsubtabletitle">Header parameters</div> <table id="methodsubtable"> - <tr> - <th width="150px">Name</th> - <th>Description</th> - </tr> - <tr><td style="width:150px;">policyId*</td> + <tr> + <th width="150px">Name</th> + <th>Description</th> + </tr> + <tr><td style="width:150px;">Accept</td> <td> - <div id="d2e199_getPolicy_policyId"> + <div id="d2e199_getPolicyIds_accept"> <div class="json-schema-view"> <div class="primitive"> <span class="type"> String </span> + <div class="inner description marked"> +Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. + </div> </div> - <div class="inner required"> - Required - </div> </div> </div> </td> @@ -5515,17 +5413,19 @@ pub fn main() { </table> - <div class="methodsubtabletitle">Header parameters</div> + + + <div class="methodsubtabletitle">Query parameters</div> <table id="methodsubtable"> <tr> <th width="150px">Name</th> <th>Description</th> </tr> - <tr><td style="width:150px;">Accept</td> + <tr><td style="width:150px;">policyTypeId</td> <td> - <div id="d2e199_getPolicy_accept"> + <div id="d2e199_getPolicyIds_policyTypeId"> <div class="json-schema-view"> <div class="primitive"> <span class="type"> @@ -5533,7 +5433,7 @@ pub fn main() { </span> <div class="inner description marked"> -Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. +Select policies with a given A1 Policy Type ID. </div> </div> </div> @@ -5541,29 +5441,86 @@ Specifies the content type that the client expects to receive in response to the </td> </tr> - </table> + <tr><td style="width:150px;">nearRtRicId</td> +<td> + <div id="d2e199_getPolicyIds_nearRtRicId"> + <div class="json-schema-view"> + <div class="primitive"> + <span class="type"> + String + </span> + <div class="inner description marked"> +Select policies for a given Near-RT RIC identity. + </div> + </div> + </div> + </div> +</td> +</tr> + + <tr><td style="width:150px;">serviceId</td> +<td> + + + <div id="d2e199_getPolicyIds_serviceId"> + <div class="json-schema-view"> + <div class="primitive"> + <span class="type"> + String + </span> + + <div class="inner description marked"> +Select policies owned by a given service (registered or unregistered). + </div> + </div> + </div> + </div> +</td> +</tr> + + <tr><td style="width:150px;">typeName</td> +<td> + + + <div id="d2e199_getPolicyIds_typeName"> + <div class="json-schema-view"> + <div class="primitive"> + <span class="type"> + String + </span> + + <div class="inner description marked"> +Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). + </div> + </div> + </div> + </div> +</td> +</tr> + + </table> <h2>Responses</h2> - <h3 id="examples-A1PolicyManagement-getPolicy-title-200"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-200" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-200"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-200" class="marked"></p> <script> - var responseA1PolicyManagement200_description = `OK - Policy found`; + var responseA1PolicyManagement200_description = `OK - Policy identities`; var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n'); if (responseA1PolicyManagement200_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-200" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-200" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-200-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-200-schema">Schema</a> </li> @@ -5572,21 +5529,19 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-200-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-200-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-200" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-200-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-200-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-200" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { - "description" : "OK - Policy found", + "description" : "OK - Policy identities", "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/PolicyObject" - }, - "examples" : { - "policyObject" : { - "$ref" : "#/components/examples/PolicyObject" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/PolicyInformation" } } } @@ -5618,33 +5573,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-200-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-200'); + $('#responses-A1PolicyManagement-getPolicyIds-200-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-200'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-200-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-200-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-400"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-400" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-400"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-400" class="marked"></p> <script> var responseA1PolicyManagement400_description = `Bad Request`; var responseA1PolicyManagement400_description_break = responseA1PolicyManagement400_description.indexOf('\n'); if (responseA1PolicyManagement400_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-400" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-400" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-400-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-400-schema">Schema</a> </li> @@ -5653,9 +5608,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-400-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-400-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-400" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-400-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-400-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-400" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5694,33 +5649,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-400-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-400'); + $('#responses-A1PolicyManagement-getPolicyIds-400-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-400'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-400-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-400-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-401"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-401" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-401"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-401" class="marked"></p> <script> var responseA1PolicyManagement401_description = `Unauthorized`; var responseA1PolicyManagement401_description_break = responseA1PolicyManagement401_description.indexOf('\n'); if (responseA1PolicyManagement401_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-401" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-401" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-401-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-401-schema">Schema</a> </li> @@ -5729,9 +5684,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-401-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-401-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-401" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-401-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-401-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-401" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5770,33 +5725,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-401-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-401'); + $('#responses-A1PolicyManagement-getPolicyIds-401-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-401'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-401-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-401-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-403"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-403" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-403"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-403" class="marked"></p> <script> var responseA1PolicyManagement403_description = `Forbidden`; var responseA1PolicyManagement403_description_break = responseA1PolicyManagement403_description.indexOf('\n'); if (responseA1PolicyManagement403_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-403" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-403" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-403-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-403-schema">Schema</a> </li> @@ -5805,9 +5760,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-403-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-403-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-403" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-403-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-403-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-403" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5846,33 +5801,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-403-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-403'); + $('#responses-A1PolicyManagement-getPolicyIds-403-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-403'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-403-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-403-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-404"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-404" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-404"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-404" class="marked"></p> <script> var responseA1PolicyManagement404_description = `Not Found`; var responseA1PolicyManagement404_description_break = responseA1PolicyManagement404_description.indexOf('\n'); if (responseA1PolicyManagement404_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-404" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-404" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-404-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-404-schema">Schema</a> </li> @@ -5881,9 +5836,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-404-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-404-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-404" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-404-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-404-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-404" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5922,33 +5877,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-404-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-404'); + $('#responses-A1PolicyManagement-getPolicyIds-404-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-404'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-404-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-404-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-406"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-406" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-406"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-406" class="marked"></p> <script> var responseA1PolicyManagement406_description = `Not Acceptable`; var responseA1PolicyManagement406_description_break = responseA1PolicyManagement406_description.indexOf('\n'); if (responseA1PolicyManagement406_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-406" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-406" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-406-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-406-schema">Schema</a> </li> @@ -5957,9 +5912,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-406-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-406-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-406" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-406-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-406-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-406" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5998,33 +5953,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-406-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-406'); + $('#responses-A1PolicyManagement-getPolicyIds-406-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-406'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-406-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-406-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-429"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-429" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-429"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-429" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-429" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-429-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-429-schema">Schema</a> </li> @@ -6033,13 +5988,13 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-429-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-429-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-429" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-429-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-429-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-429" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -6074,33 +6029,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-429-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-429'); + $('#responses-A1PolicyManagement-getPolicyIds-429-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-429'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-429-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-429-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-500"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-500" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-500"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-500" class="marked"></p> <script> var responseA1PolicyManagement500_description = `Internal Server Error`; var responseA1PolicyManagement500_description_break = responseA1PolicyManagement500_description.indexOf('\n'); if (responseA1PolicyManagement500_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-500" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-500" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-500-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-500-schema">Schema</a> </li> @@ -6109,9 +6064,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-500-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-500-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-500" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-500-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-500-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-500" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -6150,33 +6105,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-500-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-500'); + $('#responses-A1PolicyManagement-getPolicyIds-500-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-500'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-500-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-500-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-502"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-502" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-502"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-502" class="marked"></p> <script> var responseA1PolicyManagement502_description = `Bad Gateway`; var responseA1PolicyManagement502_description_break = responseA1PolicyManagement502_description.indexOf('\n'); if (responseA1PolicyManagement502_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-502" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-502" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-502-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-502-schema">Schema</a> </li> @@ -6185,9 +6140,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-502-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-502-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-502" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-502-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-502-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-502" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -6226,33 +6181,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-502-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-502'); + $('#responses-A1PolicyManagement-getPolicyIds-502-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-502'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-502-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-502-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-503"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-503" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-503"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-503" class="marked"></p> <script> var responseA1PolicyManagement503_description = `Service Unavailable`; var responseA1PolicyManagement503_description_break = responseA1PolicyManagement503_description.indexOf('\n'); if (responseA1PolicyManagement503_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-503" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-503" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-503-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-503-schema">Schema</a> </li> @@ -6261,9 +6216,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-503-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-503-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-503" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-503-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-503-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-503" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -6302,14 +6257,14 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-503-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-503'); + $('#responses-A1PolicyManagement-getPolicyIds-503-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-503'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-503-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-503-schema-data' type='hidden' value=''></input> </div> </div> </article> @@ -6319,12 +6274,12 @@ Specifies the content type that the client expects to receive in response to the <article id="api-A1PolicyManagement-getPolicyStatus-0" data-group="User" data-name="getPolicyStatus" data-version="0"> <div class="pull-left"> <h1>getPolicyStatus</h1> - <p></p> + <p>Get an A1 Policy Instance's status (getPolicyStatus)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Query a policy status</p> + <p class="marked">Retrieve the status information for an A1 Policy Instance using its policy ID.</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies/{policyId}/status</span></code></pre> @@ -6432,6 +6387,7 @@ A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; String *policyId = policyId_example; // (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) +// Get an A1 Policy Instance's status (getPolicyStatus) [apiInstance getPolicyStatusWith:policyId accept:accept completionHandler: ^(Object output, NSError* error) { @@ -6446,10 +6402,10 @@ String *accept = application/json; // Specifies the content type that the client </div> <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() var policyId = policyId_example; // {String} var opts = { 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. @@ -6489,6 +6445,7 @@ namespace Example 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 { + // Get an A1 Policy Instance's status (getPolicyStatus) Object result = apiInstance.getPolicyStatus(policyId, accept); Debug.WriteLine(result); } catch (Exception e) { @@ -6550,6 +6507,7 @@ policyId = policyId_example # String | (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: + # Get an A1 Policy Instance's status (getPolicyStatus) api_response = api_instance.get_policy_status(policyId, accept=accept) pprint(api_response) except ApiException as e: @@ -7098,7 +7056,7 @@ Specifies the content type that the client expects to receive in response to the <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-429"></h3> <p id="examples-A1PolicyManagement-getPolicyStatus-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { $("#examples-A1PolicyManagement-getPolicyStatus-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); @@ -7126,7 +7084,7 @@ Specifies the content type that the client expects to receive in response to the <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -7406,12 +7364,12 @@ Specifies the content type that the client expects to receive in response to the <article id="api-A1PolicyManagement-getPolicyTypeDefinition-0" data-group="User" data-name="getPolicyTypeDefinition" data-version="0"> <div class="pull-left"> <h1>getPolicyTypeDefinition</h1> - <p></p> + <p>Get an A1 Policy Type definition (getPolicyTypeDefinition)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Returns a policy type definition</p> + <p class="marked">Get an A1 Policy Type definition using its policy type ID</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policy-types/{policyTypeId}</span></code></pre> @@ -7519,6 +7477,7 @@ A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; String *policyTypeId = policyTypeId_example; // (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) +// Get an A1 Policy Type definition (getPolicyTypeDefinition) [apiInstance getPolicyTypeDefinitionWith:policyTypeId accept:accept completionHandler: ^(PolicyTypeObject output, NSError* error) { @@ -7533,10 +7492,10 @@ String *accept = application/json; // Specifies the content type that the client </div> <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyTypeDefinition-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() var policyTypeId = policyTypeId_example; // {String} var opts = { 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. @@ -7576,6 +7535,7 @@ namespace Example 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 { + // Get an A1 Policy Type definition (getPolicyTypeDefinition) PolicyTypeObject result = apiInstance.getPolicyTypeDefinition(policyTypeId, accept); Debug.WriteLine(result); } catch (Exception e) { @@ -7637,6 +7597,7 @@ policyTypeId = policyTypeId_example # String | (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: + # Get an A1 Policy Type definition (getPolicyTypeDefinition) api_response = api_instance.get_policy_type_definition(policyTypeId, accept=accept) pprint(api_response) except ApiException as e: @@ -7729,7 +7690,7 @@ Specifies the content type that the client expects to receive in response to the <h3 id="examples-A1PolicyManagement-getPolicyTypeDefinition-title-200"></h3> <p id="examples-A1PolicyManagement-getPolicyTypeDefinition-description-200" class="marked"></p> <script> - var responseA1PolicyManagement200_description = `OK - schema of the given policy type`; + var responseA1PolicyManagement200_description = `OK - details and schema of the requested A1 Policy Type`; var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n'); if (responseA1PolicyManagement200_description_break == -1) { $("#examples-A1PolicyManagement-getPolicyTypeDefinition-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); @@ -7757,7 +7718,7 @@ Specifies the content type that the client expects to receive in response to the <script> $(document).ready(function() { var schemaWrapper = { - "description" : "OK - schema of the given policy type", + "description" : "OK - details and schema of the requested A1 Policy Type", "content" : { "application/json" : { "schema" : { @@ -8190,7 +8151,7 @@ Specifies the content type that the client expects to receive in response to the <h3 id="examples-A1PolicyManagement-getPolicyTypeDefinition-title-429"></h3> <p id="examples-A1PolicyManagement-getPolicyTypeDefinition-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { $("#examples-A1PolicyManagement-getPolicyTypeDefinition-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); @@ -8218,7 +8179,7 @@ Specifies the content type that the client expects to receive in response to the <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -8498,12 +8459,12 @@ Specifies the content type that the client expects to receive in response to the <article id="api-A1PolicyManagement-getPolicyTypes-0" data-group="User" data-name="getPolicyTypes" data-version="0"> <div class="pull-left"> <h1>getPolicyTypes</h1> - <p></p> + <p>Get A1 Policy Types (getPolicyTypes)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Query policy type identities</p> + <p class="marked">Query A1 Policy Type identities using query parameters</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policy-types</span></code></pre> @@ -8548,8 +8509,9 @@ public class A1PolicyManagementApiExample { // Create an instance of the API class A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); String nearRtRicId = nearRtRicId_example; // String | Select types for the given Near-RT RIC identity. - String typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>) - String compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + String typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version') + String compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + 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 { @@ -8570,8 +8532,9 @@ public class A1PolicyManagementApiExample { final api_instance = DefaultApi(); final String nearRtRicId = new String(); // String | Select types for the given Near-RT RIC identity. -final String typeName = new String(); // String | Select types with the given type name (type identity has the format <typename_version>) -final String compatibleWithVersion = new String(); // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. +final String typeName = new String(); // String | Select types compatible with the given type name (type identity has the format 'typename_version') +final String compatibleWithVersion = new String(); // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + 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 { @@ -8591,8 +8554,9 @@ public class A1PolicyManagementApiExample { public static void main(String[] args) { A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); String nearRtRicId = nearRtRicId_example; // String | Select types for the given Near-RT RIC identity. - String typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>) - String compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + String typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version') + String compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + 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 { @@ -8615,10 +8579,12 @@ public class A1PolicyManagementApiExample { // Create an instance of the API class A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; String *nearRtRicId = nearRtRicId_example; // Select types for the given Near-RT RIC identity. (optional) (default to null) -String *typeName = typeName_example; // Select types with the given type name (type identity has the format <typename_version>) (optional) (default to null) -String *compatibleWithVersion = compatibleWithVersion_example; // Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. (optional) (default to null) +String *typeName = typeName_example; // Select types compatible with the given type name (type identity has the format 'typename_version') (optional) (default to null) +String *compatibleWithVersion = compatibleWithVersion_example; // Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + (optional) (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) +// Get A1 Policy Types (getPolicyTypes) [apiInstance getPolicyTypesWith:nearRtRicId typeName:typeName compatibleWithVersion:compatibleWithVersion @@ -8635,14 +8601,15 @@ String *accept = application/json; // Specifies the content type that the client </div> <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyTypes-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() var opts = { 'nearRtRicId': nearRtRicId_example, // {String} Select types for the given Near-RT RIC identity. - 'typeName': typeName_example, // {String} Select types with the given type name (type identity has the format <typename_version>) - 'compatibleWithVersion': compatibleWithVersion_example, // {String} Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + 'typeName': typeName_example, // {String} Select types compatible with the given type name (type identity has the format 'typename_version') + 'compatibleWithVersion': compatibleWithVersion_example, // {String} Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. }; @@ -8677,11 +8644,13 @@ namespace Example // Create an instance of the API class var apiInstance = new A1PolicyManagementApi(); var nearRtRicId = nearRtRicId_example; // String | Select types for the given Near-RT RIC identity. (optional) (default to null) - var typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>) (optional) (default to null) - var compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. (optional) (default to null) + var typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version') (optional) (default to null) + var compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + (optional) (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 { + // Get A1 Policy Types (getPolicyTypes) array[PolicyTypeInformation] result = apiInstance.getPolicyTypes(nearRtRicId, typeName, compatibleWithVersion, accept); Debug.WriteLine(result); } catch (Exception e) { @@ -8700,8 +8669,9 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi(); $nearRtRicId = nearRtRicId_example; // String | Select types for the given Near-RT RIC identity. -$typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>) -$compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. +$typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version') +$compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + $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 { @@ -8721,8 +8691,9 @@ use WWW::OPenAPIClient::A1PolicyManagementApi; # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new(); my $nearRtRicId = nearRtRicId_example; # String | Select types for the given Near-RT RIC identity. -my $typeName = typeName_example; # String | Select types with the given type name (type identity has the format <typename_version>) -my $compatibleWithVersion = compatibleWithVersion_example; # String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. +my $typeName = typeName_example; # String | Select types compatible with the given type name (type identity has the format 'typename_version') +my $compatibleWithVersion = compatibleWithVersion_example; # String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + 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 { @@ -8744,11 +8715,13 @@ from pprint import pprint # Create an instance of the API class api_instance = openapi_client.A1PolicyManagementApi() nearRtRicId = nearRtRicId_example # String | Select types for the given Near-RT RIC identity. (optional) (default to null) -typeName = typeName_example # String | Select types with the given type name (type identity has the format <typename_version>) (optional) (default to null) -compatibleWithVersion = compatibleWithVersion_example # String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. (optional) (default to null) +typeName = typeName_example # String | Select types compatible with the given type name (type identity has the format 'typename_version') (optional) (default to null) +compatibleWithVersion = compatibleWithVersion_example # String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + (optional) (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: + # Get A1 Policy Types (getPolicyTypes) api_response = api_instance.get_policy_types(nearRtRicId=nearRtRicId, typeName=typeName, compatibleWithVersion=compatibleWithVersion, accept=accept) pprint(api_response) except ApiException as e: @@ -8849,7 +8822,7 @@ Select types for the given Near-RT RIC identity. </span> <div class="inner description marked"> -Select types with the given type name (type identity has the format <typename_version>) +Select types compatible with the given type name (type identity has the format 'typename_version') </div> </div> </div> @@ -8869,7 +8842,8 @@ Select types with the given type name (type identity has the format <typename </span> <div class="inner description marked"> -Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. +Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + </div> </div> </div> @@ -9347,7 +9321,7 @@ Select types that are compatible with the given version. This parameter is only <h3 id="examples-A1PolicyManagement-getPolicyTypes-title-429"></h3> <p id="examples-A1PolicyManagement-getPolicyTypes-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { $("#examples-A1PolicyManagement-getPolicyTypes-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); @@ -9375,7 +9349,7 @@ Select types that are compatible with the given version. This parameter is only <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -9651,16 +9625,16 @@ Select types that are compatible with the given version. This parameter is only </article> </div> <hr> - <div id="api-A1PolicyManagement-putPolicy"> - <article id="api-A1PolicyManagement-putPolicy-0" data-group="User" data-name="putPolicy" data-version="0"> + <div id="api-A1PolicyManagement-updatePolicy"> + <article id="api-A1PolicyManagement-updatePolicy-0" data-group="User" data-name="updatePolicy" data-version="0"> <div class="pull-left"> - <h1>putPolicy</h1> - <p></p> + <h1>updatePolicy</h1> + <p>Update an A1 Policy's policy data (updatePolicy)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">update a policy</p> + <p class="marked">Update an existing A1 Policy instance's policy data using its policy ID.</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/policies/{policyId}</span></code></pre> @@ -9668,23 +9642,23 @@ Select types that are compatible with the given version. This parameter is only <h3>Usage and SDK Samples</h3> </p> <ul class="nav nav-tabs nav-tabs-examples"> - <li class="active"><a href="#examples-A1PolicyManagement-putPolicy-0-curl">Curl</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-java">Java</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-dart">Dart</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-android">Android</a></li> - <!--<li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-groovy">Groovy</a></li>--> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-objc">Obj-C</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-javascript">JavaScript</a></li> - <!--<li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-angular">Angular</a></li>--> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-csharp">C#</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-php">PHP</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-perl">Perl</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-python">Python</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-rust">Rust</a></li> + <li class="active"><a href="#examples-A1PolicyManagement-updatePolicy-0-curl">Curl</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-java">Java</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-dart">Dart</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-android">Android</a></li> + <!--<li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-groovy">Groovy</a></li>--> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-objc">Obj-C</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-javascript">JavaScript</a></li> + <!--<li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-angular">Angular</a></li>--> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-csharp">C#</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-php">PHP</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-perl">Perl</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-python">Python</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-rust">Rust</a></li> </ul> <div class="tab-content"> - <div class="tab-pane active" id="examples-A1PolicyManagement-putPolicy-0-curl"> + <div class="tab-pane active" id="examples-A1PolicyManagement-updatePolicy-0-curl"> <pre class="prettyprint"><code class="language-bsh">curl -X PUT \ -H "Accept: application/json,application/problem+json" \ -H "Content-Type: application/json" \ @@ -9692,7 +9666,7 @@ Select types that are compatible with the given version. This parameter is only -d '' </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-java"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-java"> <pre class="prettyprint"><code class="language-java">import org.openapitools.client.*; import org.openapitools.client.auth.*; import org.openapitools.client.model.*; @@ -9710,10 +9684,10 @@ public class A1PolicyManagementApiExample { Object body = Object; // Object | try { - Object result = apiInstance.putPolicy(policyId, body); + Object result = apiInstance.updatePolicy(policyId, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling A1PolicyManagementApi#putPolicy"); + System.err.println("Exception when calling A1PolicyManagementApi#updatePolicy"); e.printStackTrace(); } } @@ -9721,7 +9695,7 @@ public class A1PolicyManagementApiExample { </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-dart"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-dart"> <pre class="prettyprint"><code class="language-dart">import 'package:openapi/api.dart'; final api_instance = DefaultApi(); @@ -9730,16 +9704,16 @@ final String policyId = new String(); // String | final Object body = new Object(); // Object | try { - final result = await api_instance.putPolicy(policyId, body); + final result = await api_instance.updatePolicy(policyId, body); print(result); } catch (e) { - print('Exception when calling DefaultApi->putPolicy: $e\n'); + print('Exception when calling DefaultApi->updatePolicy: $e\n'); } </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-android"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-android"> <pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.A1PolicyManagementApi; public class A1PolicyManagementApiExample { @@ -9749,20 +9723,20 @@ public class A1PolicyManagementApiExample { Object body = Object; // Object | try { - Object result = apiInstance.putPolicy(policyId, body); + Object result = apiInstance.updatePolicy(policyId, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling A1PolicyManagementApi#putPolicy"); + System.err.println("Exception when calling A1PolicyManagementApi#updatePolicy"); e.printStackTrace(); } } }</code></pre> </div> <!-- - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-groovy"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-groovy"> <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre> </div> --> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-objc"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-objc"> <pre class="prettyprint"><code class="language-cpp"> // Create an instance of the API class @@ -9770,7 +9744,8 @@ A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; String *policyId = policyId_example; // (default to null) Object *body = Object; // -[apiInstance putPolicyWith:policyId +// Update an A1 Policy's policy data (updatePolicy) +[apiInstance updatePolicyWith:policyId body:body completionHandler: ^(Object output, NSError* error) { if (output) { @@ -9783,11 +9758,11 @@ Object *body = Object; // </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-javascript"> + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() var policyId = policyId_example; // {String} var body = Object; // {Object} @@ -9798,14 +9773,14 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -api.putPolicy(policyId, body, callback); +api.updatePolicy(policyId, body, callback); </code></pre> </div> - <!--<div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-angular"> + <!--<div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-angular"> <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre> </div>--> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-csharp"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-csharp"> <pre class="prettyprint"><code class="language-cs">using System; using System.Diagnostics; using Org.OpenAPITools.Api; @@ -9814,7 +9789,7 @@ using Org.OpenAPITools.Model; namespace Example { - public class putPolicyExample + public class updatePolicyExample { public void main() { @@ -9825,10 +9800,11 @@ namespace Example var body = Object; // Object | try { - Object result = apiInstance.putPolicy(policyId, body); + // Update an A1 Policy's policy data (updatePolicy) + Object result = apiInstance.updatePolicy(policyId, body); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling A1PolicyManagementApi.putPolicy: " + e.Message ); + Debug.Print("Exception when calling A1PolicyManagementApi.updatePolicy: " + e.Message ); } } } @@ -9836,7 +9812,7 @@ namespace Example </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-php"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-php"> <pre class="prettyprint"><code class="language-php"><?php require_once(__DIR__ . '/vendor/autoload.php'); @@ -9846,15 +9822,15 @@ $policyId = policyId_example; // String | $body = Object; // Object | try { - $result = $api_instance->putPolicy($policyId, $body); + $result = $api_instance->updatePolicy($policyId, $body); print_r($result); } catch (Exception $e) { - echo 'Exception when calling A1PolicyManagementApi->putPolicy: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling A1PolicyManagementApi->updatePolicy: ', $e->getMessage(), PHP_EOL; } ?></code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-perl"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-perl"> <pre class="prettyprint"><code class="language-perl">use Data::Dumper; use WWW::OPenAPIClient::Configuration; use WWW::OPenAPIClient::A1PolicyManagementApi; @@ -9865,15 +9841,15 @@ my $policyId = policyId_example; # String | my $body = WWW::OPenAPIClient::Object::Object->new(); # Object | eval { - my $result = $api_instance->putPolicy(policyId => $policyId, body => $body); + my $result = $api_instance->updatePolicy(policyId => $policyId, body => $body); print Dumper($result); }; if ($@) { - warn "Exception when calling A1PolicyManagementApi->putPolicy: $@\n"; + warn "Exception when calling A1PolicyManagementApi->updatePolicy: $@\n"; }</code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-python"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-python"> <pre class="prettyprint"><code class="language-python">from __future__ import print_statement import time import openapi_client @@ -9886,13 +9862,14 @@ policyId = policyId_example # String | (default to null) body = Object # Object | try: - api_response = api_instance.put_policy(policyId, body) + # Update an A1 Policy's policy data (updatePolicy) + api_response = api_instance.update_policy(policyId, body) pprint(api_response) except ApiException as e: - print("Exception when calling A1PolicyManagementApi->putPolicy: %s\n" % e)</code></pre> + print("Exception when calling A1PolicyManagementApi->updatePolicy: %s\n" % e)</code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-rust"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-rust"> <pre class="prettyprint"><code class="language-rust">extern crate A1PolicyManagementApi; pub fn main() { @@ -9900,7 +9877,7 @@ pub fn main() { let body = Object; // Object let mut context = A1PolicyManagementApi::Context::default(); - let result = client.putPolicy(policyId, body, &context).wait(); + let result = client.updatePolicy(policyId, body, &context).wait(); println!("{:?}", result); } @@ -9925,7 +9902,7 @@ pub fn main() { <td> - <div id="d2e199_putPolicy_policyId"> + <div id="d2e199_updatePolicy_policyId"> <div class="json-schema-view"> <div class="primitive"> <span class="type"> @@ -9987,12 +9964,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_putPolicy_body'); + var result = $('#d2e199_updatePolicy_body'); result.empty(); result.append(view.render()); }); </script> -<div id="d2e199_putPolicy_body"></div> +<div id="d2e199_updatePolicy_body"></div> </td> </tr> @@ -10001,23 +9978,23 @@ $(document).ready(function() { <h2>Responses</h2> - <h3 id="examples-A1PolicyManagement-putPolicy-title-200"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-200" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-200"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-200" class="marked"></p> <script> var responseA1PolicyManagement200_description = `OK - Policy updated`; var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n'); if (responseA1PolicyManagement200_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); + $("#examples-A1PolicyManagement-updatePolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-200" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-200" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-200-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-200-schema">Schema</a> </li> @@ -10026,9 +10003,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-200-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-200-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-200" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-200-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-200-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-200" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10067,33 +10044,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-200-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-200'); + $('#responses-A1PolicyManagement-updatePolicy-200-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-200'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-200-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-200-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-400"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-400" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-400"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-400" class="marked"></p> <script> var responseA1PolicyManagement400_description = `Bad Request`; var responseA1PolicyManagement400_description_break = responseA1PolicyManagement400_description.indexOf('\n'); if (responseA1PolicyManagement400_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description); + $("#examples-A1PolicyManagement-updatePolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-400" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-400" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-400-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-400-schema">Schema</a> </li> @@ -10102,9 +10079,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-400-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-400-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-400" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-400-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-400-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-400" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10143,33 +10120,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-400-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-400'); + $('#responses-A1PolicyManagement-updatePolicy-400-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-400'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-400-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-400-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-401"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-401" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-401"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-401" class="marked"></p> <script> var responseA1PolicyManagement401_description = `Unauthorized`; var responseA1PolicyManagement401_description_break = responseA1PolicyManagement401_description.indexOf('\n'); if (responseA1PolicyManagement401_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description); + $("#examples-A1PolicyManagement-updatePolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-401" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-401" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-401-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-401-schema">Schema</a> </li> @@ -10178,9 +10155,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-401-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-401-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-401" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-401-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-401-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-401" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10219,33 +10196,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-401-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-401'); + $('#responses-A1PolicyManagement-updatePolicy-401-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-401'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-401-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-401-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-403"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-403" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-403"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-403" class="marked"></p> <script> var responseA1PolicyManagement403_description = `Forbidden`; var responseA1PolicyManagement403_description_break = responseA1PolicyManagement403_description.indexOf('\n'); if (responseA1PolicyManagement403_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description); + $("#examples-A1PolicyManagement-updatePolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-403" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-403" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-403-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-403-schema">Schema</a> </li> @@ -10254,9 +10231,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-403-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-403-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-403" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-403-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-403-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-403" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10295,33 +10272,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-403-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-403'); + $('#responses-A1PolicyManagement-updatePolicy-403-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-403'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-403-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-403-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-404"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-404" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-404"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-404" class="marked"></p> <script> var responseA1PolicyManagement404_description = `Not Found`; var responseA1PolicyManagement404_description_break = responseA1PolicyManagement404_description.indexOf('\n'); if (responseA1PolicyManagement404_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description); + $("#examples-A1PolicyManagement-updatePolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-404" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-404" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-404-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-404-schema">Schema</a> </li> @@ -10330,9 +10307,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-404-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-404-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-404" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-404-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-404-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-404" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10371,33 +10348,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-404-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-404'); + $('#responses-A1PolicyManagement-updatePolicy-404-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-404'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-404-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-404-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-406"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-406" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-406"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-406" class="marked"></p> <script> var responseA1PolicyManagement406_description = `Not Acceptable`; var responseA1PolicyManagement406_description_break = responseA1PolicyManagement406_description.indexOf('\n'); if (responseA1PolicyManagement406_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description); + $("#examples-A1PolicyManagement-updatePolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-406" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-406" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-406-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-406-schema">Schema</a> </li> @@ -10406,9 +10383,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-406-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-406-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-406" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-406-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-406-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-406" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10447,33 +10424,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-406-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-406'); + $('#responses-A1PolicyManagement-updatePolicy-406-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-406'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-406-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-406-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-411"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-411" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-411"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-411" class="marked"></p> <script> var responseA1PolicyManagement411_description = `Length Required`; var responseA1PolicyManagement411_description_break = responseA1PolicyManagement411_description.indexOf('\n'); if (responseA1PolicyManagement411_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description); + $("#examples-A1PolicyManagement-updatePolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description.substring(0, responseA1PolicyManagement411_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-411").html(responseA1PolicyManagement411_description.substring(responseA1PolicyManagement411_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description.substring(0, responseA1PolicyManagement411_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-411").html(responseA1PolicyManagement411_description.substring(responseA1PolicyManagement411_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-411" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-411" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-411-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-411-schema">Schema</a> </li> @@ -10482,9 +10459,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-411-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-411-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-411" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-411-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-411-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-411" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10523,33 +10500,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-411-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-411'); + $('#responses-A1PolicyManagement-updatePolicy-411-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-411'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-411-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-411-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-413"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-413" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-413"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-413" class="marked"></p> <script> var responseA1PolicyManagement413_description = `Payload Too Large`; var responseA1PolicyManagement413_description_break = responseA1PolicyManagement413_description.indexOf('\n'); if (responseA1PolicyManagement413_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description); + $("#examples-A1PolicyManagement-updatePolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description.substring(0, responseA1PolicyManagement413_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-413").html(responseA1PolicyManagement413_description.substring(responseA1PolicyManagement413_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description.substring(0, responseA1PolicyManagement413_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-413").html(responseA1PolicyManagement413_description.substring(responseA1PolicyManagement413_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-413" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-413" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-413-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-413-schema">Schema</a> </li> @@ -10558,9 +10535,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-413-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-413-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-413" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-413-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-413-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-413" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10599,33 +10576,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-413-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-413'); + $('#responses-A1PolicyManagement-updatePolicy-413-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-413'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-413-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-413-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-415"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-415" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-415"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-415" class="marked"></p> <script> var responseA1PolicyManagement415_description = `Unsupported Media Type`; var responseA1PolicyManagement415_description_break = responseA1PolicyManagement415_description.indexOf('\n'); if (responseA1PolicyManagement415_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description); + $("#examples-A1PolicyManagement-updatePolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description.substring(0, responseA1PolicyManagement415_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-415").html(responseA1PolicyManagement415_description.substring(responseA1PolicyManagement415_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description.substring(0, responseA1PolicyManagement415_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-415").html(responseA1PolicyManagement415_description.substring(responseA1PolicyManagement415_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-415" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-415" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-415-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-415-schema">Schema</a> </li> @@ -10634,9 +10611,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-415-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-415-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-415" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-415-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-415-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-415" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10675,33 +10652,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-415-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-415'); + $('#responses-A1PolicyManagement-updatePolicy-415-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-415'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-415-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-415-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-423"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-423" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-423"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-423" class="marked"></p> <script> var responseA1PolicyManagement423_description = `Locked - HTTP Status code which can be used when the state is Locked`; var responseA1PolicyManagement423_description_break = responseA1PolicyManagement423_description.indexOf('\n'); if (responseA1PolicyManagement423_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description); + $("#examples-A1PolicyManagement-updatePolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description.substring(0, responseA1PolicyManagement423_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-423").html(responseA1PolicyManagement423_description.substring(responseA1PolicyManagement423_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description.substring(0, responseA1PolicyManagement423_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-423").html(responseA1PolicyManagement423_description.substring(responseA1PolicyManagement423_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-423" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-423" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-423-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-423-schema">Schema</a> </li> @@ -10710,9 +10687,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-423-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-423-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-423" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-423-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-423-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-423" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10725,7 +10702,7 @@ $(document).ready(function() { "example" : { "status" : 423, "title" : "Locked", - "detail" : "State is Locked in the provided request." + "detail" : "State is Locked in the provided request." } } } @@ -10756,33 +10733,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-423-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-423'); + $('#responses-A1PolicyManagement-updatePolicy-423-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-423'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-423-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-423-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-429"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-429" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-429"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); + $("#examples-A1PolicyManagement-updatePolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-429" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-429" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-429-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-429-schema">Schema</a> </li> @@ -10791,13 +10768,13 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-429-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-429-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-429" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-429-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-429-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-429" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -10832,33 +10809,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-429-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-429'); + $('#responses-A1PolicyManagement-updatePolicy-429-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-429'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-429-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-429-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-500"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-500" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-500"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-500" class="marked"></p> <script> var responseA1PolicyManagement500_description = `Internal Server Error`; var responseA1PolicyManagement500_description_break = responseA1PolicyManagement500_description.indexOf('\n'); if (responseA1PolicyManagement500_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description); + $("#examples-A1PolicyManagement-updatePolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-500" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-500" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-500-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-500-schema">Schema</a> </li> @@ -10867,9 +10844,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-500-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-500-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-500" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-500-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-500-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-500" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10908,33 +10885,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-500-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-500'); + $('#responses-A1PolicyManagement-updatePolicy-500-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-500'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-500-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-500-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-502"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-502" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-502"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-502" class="marked"></p> <script> var responseA1PolicyManagement502_description = `Bad Gateway`; var responseA1PolicyManagement502_description_break = responseA1PolicyManagement502_description.indexOf('\n'); if (responseA1PolicyManagement502_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description); + $("#examples-A1PolicyManagement-updatePolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-502" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-502" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-502-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-502-schema">Schema</a> </li> @@ -10943,9 +10920,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-502-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-502-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-502" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-502-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-502-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-502" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10984,33 +10961,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-502-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-502'); + $('#responses-A1PolicyManagement-updatePolicy-502-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-502'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-502-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-502-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-503"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-503" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-503"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-503" class="marked"></p> <script> var responseA1PolicyManagement503_description = `Service Unavailable`; var responseA1PolicyManagement503_description_break = responseA1PolicyManagement503_description.indexOf('\n'); if (responseA1PolicyManagement503_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description); + $("#examples-A1PolicyManagement-updatePolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-503" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-503" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-503-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-503-schema">Schema</a> </li> @@ -11019,9 +10996,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-503-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-503-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-503" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-503-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-503-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-503" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -11060,14 +11037,14 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-503-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-503'); + $('#responses-A1PolicyManagement-updatePolicy-503-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-503'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-503-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-503-schema-data' type='hidden' value=''></input> </div> </div> </article> @@ -11080,12 +11057,12 @@ $(document).ready(function() { <article id="api-Configuration-getConfiguration-0" data-group="User" data-name="getConfiguration" data-version="0"> <div class="pull-left"> <h1>getConfiguration</h1> - <p></p> + <p>Get the Application Configuration (getConfiguration)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Returns the contents of the application configuration</p> + <p class="marked">Returns the entire contents of the Application Configuration.</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/configuration</span></code></pre> @@ -11185,6 +11162,7 @@ public class ConfigurationApiExample { // Create an instance of the API class ConfigurationApi *apiInstance = [[ConfigurationApi alloc] init]; +// Get the Application Configuration (getConfiguration) [apiInstance getConfigurationWithCompletionHandler: ^('String' output, NSError* error) { if (output) { @@ -11198,10 +11176,10 @@ ConfigurationApi *apiInstance = [[ConfigurationApi alloc] init]; </div> <div class="tab-pane" id="examples-Configuration-getConfiguration-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.ConfigurationApi() +var api = new OnapCcsdkA1PolicyManagementApi.ConfigurationApi() var callback = function(error, data, response) { if (error) { console.error(error); @@ -11234,6 +11212,7 @@ namespace Example var apiInstance = new ConfigurationApi(); try { + // Get the Application Configuration (getConfiguration) 'String' result = apiInstance.getConfiguration(); Debug.WriteLine(result); } catch (Exception e) { @@ -11289,6 +11268,7 @@ from pprint import pprint api_instance = openapi_client.ConfigurationApi() try: + # Get the Application Configuration (getConfiguration) api_response = api_instance.get_configuration() pprint(api_response) except ApiException as e: @@ -11481,12 +11461,13 @@ pub fn main() { <article id="api-Configuration-putConfiguration-0" data-group="User" data-name="putConfiguration" data-version="0"> <div class="pull-left"> <h1>putConfiguration</h1> - <p></p> + <p>Set/Replace the Application Configuration (putConfiguration)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Replace the current configuration file with the given configuration</p> + <p class="marked">Replace the current Application Configuration with a new configuration. The new configuration, if accepted, will take effect after a short delay. The new configuration must comply with the Application Configuration schema, which can be found from the the Application Documentation (Developer Guide) +</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/configuration</span></code></pre> @@ -11512,7 +11493,7 @@ pub fn main() { <div class="tab-content"> <div class="tab-pane active" id="examples-Configuration-putConfiguration-0-curl"> <pre class="prettyprint"><code class="language-bsh">curl -X PUT \ - -H "Accept: */*,application/problem+json" \ + -H "Accept: application/json,application/problem+json" \ -H "Content-Type: application/json" \ "https://example.com/a1-policy-management/v1/configuration" \ -d '' @@ -11592,6 +11573,7 @@ public class ConfigurationApiExample { ConfigurationApi *apiInstance = [[ConfigurationApi alloc] init]; Object *body = Object; // +// Set/Replace the Application Configuration (putConfiguration) [apiInstance putConfigurationWith:body completionHandler: ^(Object output, NSError* error) { if (output) { @@ -11605,10 +11587,10 @@ Object *body = Object; // </div> <div class="tab-pane" id="examples-Configuration-putConfiguration-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.ConfigurationApi() +var api = new OnapCcsdkA1PolicyManagementApi.ConfigurationApi() var body = Object; // {Object} var callback = function(error, data, response) { @@ -11644,6 +11626,7 @@ namespace Example var body = Object; // Object | try { + // Set/Replace the Application Configuration (putConfiguration) Object result = apiInstance.putConfiguration(body); Debug.WriteLine(result); } catch (Exception e) { @@ -11702,6 +11685,7 @@ api_instance = openapi_client.ConfigurationApi() body = Object # Object | try: + # Set/Replace the Application Configuration (putConfiguration) api_response = api_instance.put_configuration(body) pprint(api_response) except ApiException as e: @@ -11817,7 +11801,7 @@ $(document).ready(function() { var schemaWrapper = { "description" : "OK - Configuration updated", "content" : { - "*/*" : { + "application/json" : { "schema" : { "$ref" : "#/components/schemas/void" } @@ -11946,7 +11930,7 @@ $(document).ready(function() { <article id="api-HealthCheck-getStatus-0" data-group="User" data-name="getStatus" data-version="0"> <div class="pull-left"> <h1>getStatus</h1> - <p></p> + <p>Get Status (getStatus)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> @@ -11977,7 +11961,7 @@ $(document).ready(function() { <div class="tab-content"> <div class="tab-pane active" id="examples-HealthCheck-getStatus-0-curl"> <pre class="prettyprint"><code class="language-bsh">curl -X GET \ - -H "Accept: application/json" \ + -H "Accept: application/json,application/problem+json" \ "https://example.com/a1-policy-management/v1/status" </code></pre> </div> @@ -12051,6 +12035,7 @@ public class HealthCheckApiExample { // Create an instance of the API class HealthCheckApi *apiInstance = [[HealthCheckApi alloc] init]; +// Get Status (getStatus) [apiInstance getStatusWithCompletionHandler: ^(StatusInfo output, NSError* error) { if (output) { @@ -12064,10 +12049,10 @@ HealthCheckApi *apiInstance = [[HealthCheckApi alloc] init]; </div> <div class="tab-pane" id="examples-HealthCheck-getStatus-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.HealthCheckApi() +var api = new OnapCcsdkA1PolicyManagementApi.HealthCheckApi() var callback = function(error, data, response) { if (error) { console.error(error); @@ -12100,6 +12085,7 @@ namespace Example var apiInstance = new HealthCheckApi(); try { + // Get Status (getStatus) StatusInfo result = apiInstance.getStatus(); Debug.WriteLine(result); } catch (Exception e) { @@ -12155,6 +12141,7 @@ from pprint import pprint api_instance = openapi_client.HealthCheckApi() try: + # Get Status (getStatus) api_response = api_instance.get_status() pprint(api_response) except ApiException as e: @@ -12269,6 +12256,82 @@ pub fn main() { <input id='responses-HealthCheck-getStatus-200-schema-data' type='hidden' value=''></input> </div> </div> + <h3 id="examples-HealthCheck-getStatus-title-404"></h3> + <p id="examples-HealthCheck-getStatus-description-404" class="marked"></p> + <script> + var responseHealthCheck404_description = `Not Found`; + var responseHealthCheck404_description_break = responseHealthCheck404_description.indexOf('\n'); + if (responseHealthCheck404_description_break == -1) { + $("#examples-HealthCheck-getStatus-title-404").text("Status: 404 - " + responseHealthCheck404_description); + } else { + $("#examples-HealthCheck-getStatus-title-404").text("Status: 404 - " + responseHealthCheck404_description.substring(0, responseHealthCheck404_description_break)); + $("#examples-HealthCheck-getStatus-description-404").html(responseHealthCheck404_description.substring(responseHealthCheck404_description_break)); + } + </script> + + + <ul id="responses-detail-HealthCheck-getStatus-404" class="nav nav-tabs nav-tabs-examples" > + <li class="active"> + <a data-toggle="tab" href="#responses-HealthCheck-getStatus-404-schema">Schema</a> + </li> + + + + + </ul> + + + <div class="tab-content" id="responses-HealthCheck-getStatus-404-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-HealthCheck-getStatus-404-schema"> + <div id="responses-HealthCheck-getStatus-schema-404" class="exampleStyle"> + <script> + $(document).ready(function() { + var schemaWrapper = { + "description" : "Not Found", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + } + } +}; + var schema = findNode('schema',schemaWrapper).schema; + if (!schema) { + schema = schemaWrapper.schema; + } + if (schema == null) { + return; + } + if (schema.$ref != null) { + schema = defsParser.$refs.get(schema.$ref); + if (schema.properties != null) { + Object.keys(schema.properties).forEach( (item) => { + if (schema.properties[item].$ref != null) { + schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref); + } + }); + } + } else if (schema.items != null && schema.items.$ref != null) { + schema.items = defsParser.$refs.get(schema.items.$ref); + } else { + schemaWrapper.definitions = Object.assign({}, defs); + $RefParser.dereference(schemaWrapper).catch(function(err) { + console.log(err); + }); + } + + var view = new JSONSchemaView(schema, 3); + $('#responses-HealthCheck-getStatus-404-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-HealthCheck-getStatus-schema-404'); + result.empty(); + result.append(view.render()); + }); + </script> + </div> + <input id='responses-HealthCheck-getStatus-404-schema-data' type='hidden' value=''></input> + </div> + </div> </article> </div> <hr> @@ -12279,12 +12342,12 @@ pub fn main() { <article id="api-NearRTRICRepository-getRic-0" data-group="User" data-name="getRic" data-version="0"> <div class="pull-left"> <h1>getRic</h1> - <p>Returns info for one Near-RT RIC</p> + <p>Get a Near-RT RIC (getRic)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">A ricId path parameter must be specified to retrieve associated ric infomation</p> + <p class="marked">Get information about a Near-RT RIC</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/rics/{ricId}</span></code></pre> @@ -12392,7 +12455,7 @@ NearRTRICRepositoryApi *apiInstance = [[NearRTRICRepositoryApi alloc] init]; 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 +// Get a Near-RT RIC (getRic) [apiInstance getRicWith:ricId accept:accept completionHandler: ^(RicInfo output, NSError* error) { @@ -12407,10 +12470,10 @@ String *accept = application/json; // Specifies the content type that the client </div> <div class="tab-pane" id="examples-NearRTRICRepository-getRic-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.NearRTRICRepositoryApi() +var api = new OnapCcsdkA1PolicyManagementApi.NearRTRICRepositoryApi() var ricId = ricId_example; // {String} The identity of a Near-RT RIC to get information for. var opts = { 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. @@ -12450,7 +12513,7 @@ namespace Example 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 + // Get a Near-RT RIC (getRic) RicInfo result = apiInstance.getRic(ricId, accept); Debug.WriteLine(result); } catch (Exception e) { @@ -12512,7 +12575,7 @@ ricId = ricId_example # String | The identity of a Near-RT RIC to get informatio 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 + # Get a Near-RT RIC (getRic) api_response = api_instance.get_ric(ricId, accept=accept) pprint(api_response) except ApiException as e: @@ -12769,12 +12832,12 @@ Specifies the content type that the client expects to receive in response to the <article id="api-NearRTRICRepository-getRics-0" data-group="User" data-name="getRics" data-version="0"> <div class="pull-left"> <h1>getRics</h1> - <p>Query Near-RT RIC information</p> + <p>Get Near-RT RICs for A1 Policy Type (getRics)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">The call returns all Near-RT RICs that supports a given policy type identity</p> + <p class="marked">Get all Near-RT RICs that supports a given A1 Policy Type ID</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/rics</span></code></pre> @@ -12818,7 +12881,8 @@ public class NearRTRICRepositoryApiExample { // Create an instance of the API class NearRTRICRepositoryApi apiInstance = new NearRTRICRepositoryApi(); - String policyTypeId = policyTypeId_example; // String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned + String policyTypeId = policyTypeId_example; // String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + 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 { @@ -12838,7 +12902,8 @@ public class NearRTRICRepositoryApiExample { final api_instance = DefaultApi(); -final String policyTypeId = new String(); // String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned +final String policyTypeId = new String(); // String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + 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 { @@ -12857,7 +12922,8 @@ try { public class NearRTRICRepositoryApiExample { public static void main(String[] args) { NearRTRICRepositoryApi apiInstance = new NearRTRICRepositoryApi(); - String policyTypeId = policyTypeId_example; // String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned + String policyTypeId = policyTypeId_example; // String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + 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 { @@ -12879,10 +12945,11 @@ public class NearRTRICRepositoryApiExample { // Create an instance of the API class NearRTRICRepositoryApi *apiInstance = [[NearRTRICRepositoryApi alloc] init]; -String *policyTypeId = policyTypeId_example; // The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned (optional) (default to null) +String *policyTypeId = policyTypeId_example; // The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + (optional) (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) -// Query Near-RT RIC information +// Get Near-RT RICs for A1 Policy Type (getRics) [apiInstance getRicsWith:policyTypeId accept:accept completionHandler: ^(RicInfoList output, NSError* error) { @@ -12897,12 +12964,13 @@ String *accept = application/json; // Specifies the content type that the client </div> <div class="tab-pane" id="examples-NearRTRICRepository-getRics-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.NearRTRICRepositoryApi() +var api = new OnapCcsdkA1PolicyManagementApi.NearRTRICRepositoryApi() var opts = { - 'policyTypeId': policyTypeId_example, // {String} The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned + 'policyTypeId': policyTypeId_example, // {String} The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. }; @@ -12936,11 +13004,12 @@ namespace Example // Create an instance of the API class var apiInstance = new NearRTRICRepositoryApi(); - var policyTypeId = policyTypeId_example; // String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned (optional) (default to null) + var policyTypeId = policyTypeId_example; // String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + (optional) (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 { - // Query Near-RT RIC information + // Get Near-RT RICs for A1 Policy Type (getRics) RicInfoList result = apiInstance.getRics(policyTypeId, accept); Debug.WriteLine(result); } catch (Exception e) { @@ -12958,7 +13027,8 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\NearRTRICRepositoryApi(); -$policyTypeId = policyTypeId_example; // String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned +$policyTypeId = policyTypeId_example; // String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + $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 { @@ -12977,7 +13047,8 @@ use WWW::OPenAPIClient::NearRTRICRepositoryApi; # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::NearRTRICRepositoryApi->new(); -my $policyTypeId = policyTypeId_example; # String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned +my $policyTypeId = policyTypeId_example; # String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + 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 { @@ -12998,11 +13069,12 @@ from pprint import pprint # Create an instance of the API class api_instance = openapi_client.NearRTRICRepositoryApi() -policyTypeId = policyTypeId_example # String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned (optional) (default to null) +policyTypeId = policyTypeId_example # String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + (optional) (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: - # Query Near-RT RIC information + # Get Near-RT RICs for A1 Policy Type (getRics) api_response = api_instance.get_rics(policyTypeId=policyTypeId, accept=accept) pprint(api_response) except ApiException as e: @@ -13081,7 +13153,8 @@ Specifies the content type that the client expects to receive in response to the </span> <div class="inner description marked"> -The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned +The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + </div> </div> </div> @@ -13259,12 +13332,13 @@ The identity of a policy type. If given, all Near-RT RICs supporting the policy <article id="api-ServiceRegistryAndSupervision-deleteService-0" data-group="User" data-name="deleteService" data-version="0"> <div class="pull-left"> <h1>deleteService</h1> - <p></p> + <p>Unregister a Service (deleteService)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Unregister a service</p> + <p class="marked">Unregister a registered Service using its service ID. Only registered services can be unregistered. All A1 Policy Instances for the previously registered service will be removed. +</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/services/{serviceId}</span></code></pre> @@ -13290,7 +13364,7 @@ The identity of a policy type. If given, all Near-RT RICs supporting the policy <div class="tab-content"> <div class="tab-pane active" id="examples-ServiceRegistryAndSupervision-deleteService-0-curl"> <pre class="prettyprint"><code class="language-bsh">curl -X DELETE \ - -H "Accept: */*,application/problem+json" \ + -H "Accept: application/json,application/problem+json" \ "https://example.com/a1-policy-management/v1/services/{serviceId}" </code></pre> </div> @@ -13372,6 +13446,7 @@ ServiceRegistryAndSupervisionApi *apiInstance = [[ServiceRegistryAndSupervisionA String *serviceId = serviceId_example; // (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) +// Unregister a Service (deleteService) [apiInstance deleteServiceWith:serviceId accept:accept completionHandler: ^(Object output, NSError* error) { @@ -13386,10 +13461,10 @@ String *accept = application/json; // Specifies the content type that the client </div> <div class="tab-pane" id="examples-ServiceRegistryAndSupervision-deleteService-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.ServiceRegistryAndSupervisionApi() +var api = new OnapCcsdkA1PolicyManagementApi.ServiceRegistryAndSupervisionApi() var serviceId = serviceId_example; // {String} var opts = { 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. @@ -13429,6 +13504,7 @@ namespace Example 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 { + // Unregister a Service (deleteService) Object result = apiInstance.deleteService(serviceId, accept); Debug.WriteLine(result); } catch (Exception e) { @@ -13490,6 +13566,7 @@ serviceId = serviceId_example # String | (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: + # Unregister a Service (deleteService) api_response = api_instance.delete_service(serviceId, accept=accept) pprint(api_response) except ApiException as e: @@ -13612,7 +13689,7 @@ Specifies the content type that the client expects to receive in response to the var schemaWrapper = { "description" : "No Content - Service unregistered", "content" : { - "*/*" : { + "application/json" : { "schema" : { "type" : "object" } @@ -13738,12 +13815,13 @@ Specifies the content type that the client expects to receive in response to the <article id="api-ServiceRegistryAndSupervision-getServices-0" data-group="User" data-name="getServices" data-version="0"> <div class="pull-left"> <h1>getServices</h1> - <p>Returns service information</p> + <p>Get Services (getServices)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Either information about a registered service with given identity or all registered services are returned.</p> + <p class="marked">Get information about all registered services, or a single registered service. If the service ID of a registered service is included in the query, information about that service is returned. Otherwise Information about all registered is returned. This operation does not retrieve information about unregistered services. +</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/services</span></code></pre> @@ -13787,7 +13865,7 @@ public class ServiceRegistryAndSupervisionApiExample { // Create an instance of the API class ServiceRegistryAndSupervisionApi apiInstance = new ServiceRegistryAndSupervisionApi(); - String serviceId = serviceId_example; // String | The identity of the service + String serviceId = serviceId_example; // String | The identity of the registered service 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 { @@ -13807,7 +13885,7 @@ public class ServiceRegistryAndSupervisionApiExample { final api_instance = DefaultApi(); -final String serviceId = new String(); // String | The identity of the service +final String serviceId = new String(); // String | The identity of the registered service 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 { @@ -13826,7 +13904,7 @@ try { public class ServiceRegistryAndSupervisionApiExample { public static void main(String[] args) { ServiceRegistryAndSupervisionApi apiInstance = new ServiceRegistryAndSupervisionApi(); - String serviceId = serviceId_example; // String | The identity of the service + String serviceId = serviceId_example; // String | The identity of the registered service 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 { @@ -13848,10 +13926,10 @@ public class ServiceRegistryAndSupervisionApiExample { // Create an instance of the API class ServiceRegistryAndSupervisionApi *apiInstance = [[ServiceRegistryAndSupervisionApi alloc] init]; -String *serviceId = serviceId_example; // The identity of the service (optional) (default to null) +String *serviceId = serviceId_example; // The identity of the registered service (optional) (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 service information +// Get Services (getServices) [apiInstance getServicesWith:serviceId accept:accept completionHandler: ^(ServiceStatusList output, NSError* error) { @@ -13866,12 +13944,12 @@ String *accept = application/json; // Specifies the content type that the client </div> <div class="tab-pane" id="examples-ServiceRegistryAndSupervision-getServices-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.ServiceRegistryAndSupervisionApi() +var api = new OnapCcsdkA1PolicyManagementApi.ServiceRegistryAndSupervisionApi() var opts = { - 'serviceId': serviceId_example, // {String} The identity of the service + 'serviceId': serviceId_example, // {String} The identity of the registered service 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. }; @@ -13905,11 +13983,11 @@ namespace Example // Create an instance of the API class var apiInstance = new ServiceRegistryAndSupervisionApi(); - var serviceId = serviceId_example; // String | The identity of the service (optional) (default to null) + var serviceId = serviceId_example; // String | The identity of the registered service (optional) (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 service information + // Get Services (getServices) ServiceStatusList result = apiInstance.getServices(serviceId, accept); Debug.WriteLine(result); } catch (Exception e) { @@ -13927,7 +14005,7 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\ServiceRegistryAndSupervisionApi(); -$serviceId = serviceId_example; // String | The identity of the service +$serviceId = serviceId_example; // String | The identity of the registered service $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 { @@ -13946,7 +14024,7 @@ use WWW::OPenAPIClient::ServiceRegistryAndSupervisionApi; # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::ServiceRegistryAndSupervisionApi->new(); -my $serviceId = serviceId_example; # String | The identity of the service +my $serviceId = serviceId_example; # String | The identity of the registered service 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 { @@ -13967,11 +14045,11 @@ from pprint import pprint # Create an instance of the API class api_instance = openapi_client.ServiceRegistryAndSupervisionApi() -serviceId = serviceId_example # String | The identity of the service (optional) (default to null) +serviceId = serviceId_example # String | The identity of the registered service (optional) (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 service information + # Get Services (getServices) api_response = api_instance.get_services(serviceId=serviceId, accept=accept) pprint(api_response) except ApiException as e: @@ -14050,7 +14128,7 @@ Specifies the content type that the client expects to receive in response to the </span> <div class="inner description marked"> -The identity of the service +The identity of the registered service </div> </div> </div> @@ -14225,12 +14303,12 @@ The identity of the service <article id="api-ServiceRegistryAndSupervision-keepAliveService-0" data-group="User" data-name="keepAliveService" data-version="0"> <div class="pull-left"> <h1>keepAliveService</h1> - <p>Heartbeat indicates that the service is running</p> + <p>Heartbeat message from a service (keepAliveService)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">A registered service should invoke this operation regularly to indicate that it is still alive. If a registered service fails to invoke this operation before the end of a timeout period the service will be deregistered and all its A1 policies wil be removed. (This timeout can be set or disabled when each service is initially registered)</p> + <p class="marked">A registered service should invoke this operation regularly to indicate that it is still alive. If a registered service fails to invoke some operation, or this operation, before the end of a timeout period the service will be deregistered and all its A1 policies wil be removed. This operation is only intended for registered services. (This timeout can be set or disabled when each service is initially registered)</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/services/{serviceId}/keepalive</span></code></pre> @@ -14256,7 +14334,7 @@ The identity of the service <div class="tab-content"> <div class="tab-pane active" id="examples-ServiceRegistryAndSupervision-keepAliveService-0-curl"> <pre class="prettyprint"><code class="language-bsh">curl -X PUT \ - -H "Accept: */*,application/problem+json" \ + -H "Accept: application/json,application/problem+json" \ -H "Content-Type: application/json" \ "https://example.com/a1-policy-management/v1/services/{serviceId}/keepalive" \ -d '' @@ -14344,7 +14422,7 @@ String *serviceId = serviceId_example; // (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) String *body = body_example; // (optional) -// Heartbeat indicates that the service is running +// Heartbeat message from a service (keepAliveService) [apiInstance keepAliveServiceWith:serviceId accept:accept body:body @@ -14360,10 +14438,10 @@ String *body = body_example; // (optional) </div> <div class="tab-pane" id="examples-ServiceRegistryAndSupervision-keepAliveService-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.ServiceRegistryAndSupervisionApi() +var api = new OnapCcsdkA1PolicyManagementApi.ServiceRegistryAndSupervisionApi() var serviceId = serviceId_example; // {String} var opts = { 'accept': application/json, // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. @@ -14405,7 +14483,7 @@ namespace Example var body = body_example; // String | (optional) try { - // Heartbeat indicates that the service is running + // Heartbeat message from a service (keepAliveService) Object result = apiInstance.keepAliveService(serviceId, accept, body); Debug.WriteLine(result); } catch (Exception e) { @@ -14470,7 +14548,7 @@ accept = application/json # String | Specifies the content type that the client body = body_example # String | (optional) try: - # Heartbeat indicates that the service is running + # Heartbeat message from a service (keepAliveService) api_response = api_instance.keep_alive_service(serviceId, accept=accept, body=body) pprint(api_response) except ApiException as e: @@ -14642,7 +14720,7 @@ $(document).ready(function() { var schemaWrapper = { "description" : "OK - Service supervision timer refreshed, OK", "content" : { - "*/*" : { + "application/json" : { "schema" : { "type" : "object" } @@ -14768,12 +14846,13 @@ $(document).ready(function() { <article id="api-ServiceRegistryAndSupervision-putService-0" data-group="User" data-name="putService" data-version="0"> <div class="pull-left"> <h1>putService</h1> - <p>Register a service</p> + <p>Register or update a Service (putService)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Registering a service is needed to:<ul><li>Get callbacks about available NearRT RICs.</li><li>Activate supervision of the service. If a service is inactive, its policies will automatically be deleted.</li></ul>Policies can be created even if the service is not registerred. This is a feature which it is optional to use.</p> + <p class="marked">Register a single service, or update a previous registration. Service registration is required to get callbacks about available NearRT RICs and to enable supervision of the service's active status. If a registered service becomes inactive, its policies can be automatically deleted. A1 Policy instances can also be created for unregistered services. If an unregistered service is later registered, the service's policies are retained when the service becomes registered. This feature is optional to use. +</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/services</span></code></pre> @@ -14799,7 +14878,7 @@ $(document).ready(function() { <div class="tab-content"> <div class="tab-pane active" id="examples-ServiceRegistryAndSupervision-putService-0-curl"> <pre class="prettyprint"><code class="language-bsh">curl -X PUT \ - -H "Accept: */*,application/problem+json" \ + -H "Accept: application/json,application/problem+json" \ -H "Content-Type: application/json" \ "https://example.com/a1-policy-management/v1/services" \ -d '{ @@ -14883,7 +14962,7 @@ public class ServiceRegistryAndSupervisionApiExample { ServiceRegistryAndSupervisionApi *apiInstance = [[ServiceRegistryAndSupervisionApi alloc] init]; ServiceRegistrationInfo *serviceRegistrationInfo = ; // -// Register a service +// Register or update a Service (putService) [apiInstance putServiceWith:serviceRegistrationInfo completionHandler: ^(Object output, NSError* error) { if (output) { @@ -14897,10 +14976,10 @@ ServiceRegistrationInfo *serviceRegistrationInfo = ; // </div> <div class="tab-pane" id="examples-ServiceRegistryAndSupervision-putService-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.ServiceRegistryAndSupervisionApi() +var api = new OnapCcsdkA1PolicyManagementApi.ServiceRegistryAndSupervisionApi() var serviceRegistrationInfo = ; // {ServiceRegistrationInfo} var callback = function(error, data, response) { @@ -14936,7 +15015,7 @@ namespace Example var serviceRegistrationInfo = new ServiceRegistrationInfo(); // ServiceRegistrationInfo | try { - // Register a service + // Register or update a Service (putService) Object result = apiInstance.putService(serviceRegistrationInfo); Debug.WriteLine(result); } catch (Exception e) { @@ -14995,7 +15074,7 @@ api_instance = openapi_client.ServiceRegistryAndSupervisionApi() serviceRegistrationInfo = # ServiceRegistrationInfo | try: - # Register a service + # Register or update a Service (putService) api_response = api_instance.put_service(serviceRegistrationInfo) pprint(api_response) except ApiException as e: @@ -15111,7 +15190,7 @@ $(document).ready(function() { var schemaWrapper = { "description" : "OK - Service updated", "content" : { - "*/*" : { + "application/json" : { "schema" : { "type" : "object" } @@ -15187,7 +15266,7 @@ $(document).ready(function() { var schemaWrapper = { "description" : "Created - Service created", "content" : { - "*/*" : { + "application/json" : { "schema" : { "type" : "object" } diff --git a/a1-policy-management/api/offeredapis/swagger/README.md b/a1-policy-management/api/offeredapis/swagger/README.md new file mode 100644 index 00000000..8bbce067 --- /dev/null +++ b/a1-policy-management/api/offeredapis/swagger/README.md @@ -0,0 +1,2 @@ +# OpenAPI JSON +This is a OpenAPI JSON built by the [openapi-generator](https://github.com/openapitools/openapi-generator) project.
\ No newline at end of file diff --git a/a1-policy-management/api/offeredapis/swagger/custom/README.md b/a1-policy-management/api/offeredapis/swagger/custom/README.md new file mode 100644 index 00000000..8bbce067 --- /dev/null +++ b/a1-policy-management/api/offeredapis/swagger/custom/README.md @@ -0,0 +1,2 @@ +# OpenAPI JSON +This is a OpenAPI JSON built by the [openapi-generator](https://github.com/openapitools/openapi-generator) project.
\ No newline at end of file diff --git a/a1-policy-management/api/offeredapis/swagger/custom/a1pms-api-custom-v3.json b/a1-policy-management/api/offeredapis/swagger/custom/a1pms-api-custom-v3.json index 9514db8d..07f2ac42 100644 --- a/a1-policy-management/api/offeredapis/swagger/custom/a1pms-api-custom-v3.json +++ b/a1-policy-management/api/offeredapis/swagger/custom/a1pms-api-custom-v3.json @@ -5,39 +5,43 @@ "email" : "discuss-list@onap.com", "url" : "https://www.onap.org/" }, - "description" : "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managemecnt of A1 policies. <br/>The main tasks of the service are:</p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 policies and the Near-RT RICs</li><li>Maintaining a view of supported Near-RT RIC policy types</li><li>Supervision of using services (R-APPs). When a service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2><h3>A1 Policy Management</h3><p>This is an API for management of A1 Policies.</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository</h3><p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted for one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the PMS component.</p><h3>Service Registry and Supervision</h3><p>API used for registering services that uses PMS. Each A1 policy is optionally owned by a service. PMS can supervise each registered service by a heart-beat supervision and will automatically remove policies for unavailable services. Note that a service does not need to be registered in order to create A1 Policies. This is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used for access control of A1 Policy access. If configured, an external authorization provider is requested to grant access to the A1 Policy type.</p>", + "description" : "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes the latest API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2> <p>Note: parts of this API are strongly based on extracts of the O-RAN Alliance R1 Interface specification for A1 Policy Management, and those parts should be considered '© O-RAN ALLIANCE - All rights reserved.'</p> <h3>A1 Policy Management</h3> <p>This is the latest API for managing A1 Policies. This API is partially compliant with O-RAN Alliance R1 Interface specifications for A1 Policy Management:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service.</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then its A1 Policies are removed. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p>", "license" : { "name" : "Copyright (C) 2024 - 2025 OpenInfra Foundation Europe. Licensed under the Apache 2 License.", "url" : "http://www.apache.org/licenses/LICENSE-2.0" }, - "title" : "A1 policy management API", + "title" : "ONAP CCSDK - A1 Policy Management API", "version" : "1.0.0", - "x-api-id" : "a31c510b-20e6-4a08-af16-368c44d7fba8", + "x-api-id" : "e9776a07-0813-4fca-9801-6f892f0a7c13", "x-audience" : "external-public" }, + "externalDocs" : { + "description" : "Based on parts of O-RAN ALLIANCE specification: O-RAN.WG2.R1AP-v07.00", + "url" : "https://www.o-ran.org/specifications" + }, "servers" : [ { "url" : "{apiRoot}/a1-policy-management/v1", "variables" : { "apiRoot" : { "default" : "https://example.com", - "description" : "This is the Host:Port or Address where the A1-Policy Management Service can be accessed. Note: This URL path format aligns with the O-RAN Alliance (r) R1-AP specifiactions for A1 Policy Management" + "description" : "This is the Host:Port or Address where the A1-Policy Management Service can be accessed. Note: This URL path format aligns with the O-RAN Alliance R1-AP specifications for A1 Policy Management" } } } ], "tags" : [ { - "description" : "**(Newer Version)** API used to create polices, Policy Instances and get them as individual using an ID or get all policies/Instances.", + "description" : "API used to get, create, update and delete A1 Policy Instances. Also used to query A1 Policy Types.\n", "name" : "A1 Policy Management" }, { - "description" : "API used to get the NearRT-RIC for the managed element.", + "description" : "API used to get information about registered Near-RT RICs.\n", "name" : "NearRT-RIC Repository" }, { - "description" : "API used to keep the service Alive with in the timeout period", + "description" : "API used to manage registered service, and control their keep-alive status via heart-beat messages.\n", "name" : "Service Registry and Supervision" }, { - "description" : "API used to get the health status and statistics of this service", + "description" : "API used to get the health status and statistics of this service.\n", "name" : "Health Check" }, { - "description" : "API used to create or fetch the application configuration.", + "description" : "API used to create or fetch the application configuration.\n", "name" : "Configuration" } ], "paths" : { @@ -60,14 +64,25 @@ } }, "description" : "OK- Service is living Ok" + }, + "404" : { + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + } + }, + "description" : "Not Found" } }, + "summary" : "Get Status (getStatus)", "tags" : [ "Health Check" ] } }, "/rics/{ricId}" : { "get" : { - "description" : "A ricId path parameter must be specified to retrieve associated ric infomation", + "description" : "Get information about a Near-RT RIC", "operationId" : "getRic", "parameters" : [ { "description" : "The identity of a Near-RT RIC to get information for.", @@ -79,7 +94,7 @@ "nullable" : false, "type" : "string" }, - "style" : "form" + "style" : "simple" }, { "description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.", "explode" : false, @@ -119,16 +134,16 @@ "description" : "Not Found" } }, - "summary" : "Returns info for one Near-RT RIC", + "summary" : "Get a Near-RT RIC (getRic)", "tags" : [ "NearRT-RIC Repository" ] } }, "/rics" : { "get" : { - "description" : "The call returns all Near-RT RICs that supports a given policy type identity", + "description" : "Get all Near-RT RICs that supports a given A1 Policy Type ID", "operationId" : "getRics", "parameters" : [ { - "description" : "The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned", + "description" : "The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.\n", "explode" : true, "in" : "query", "name" : "policyTypeId", @@ -176,13 +191,13 @@ "description" : "Not Found" } }, - "summary" : "Query Near-RT RIC information", + "summary" : "Get Near-RT RICs for A1 Policy Type (getRics)", "tags" : [ "NearRT-RIC Repository" ] } }, "/policy-types" : { "get" : { - "description" : "Query policy type identities", + "description" : "Query A1 Policy Type identities using query parameters", "operationId" : "getPolicyTypes", "parameters" : [ { "description" : "Select types for the given Near-RT RIC identity.", @@ -195,7 +210,7 @@ }, "style" : "form" }, { - "description" : "Select types with the given type name (type identity has the format <typename_version>)", + "description" : "Select types compatible with the given type name (type identity has the format 'typename_version')", "explode" : true, "in" : "query", "name" : "typeName", @@ -205,7 +220,7 @@ }, "style" : "form" }, { - "description" : "Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order.", + "description" : "Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order.\n", "explode" : true, "in" : "query", "name" : "compatibleWithVersion", @@ -303,7 +318,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -336,12 +351,13 @@ "description" : "Service Unavailable" } }, + "summary" : "Get A1 Policy Types (getPolicyTypes)", "tags" : [ "A1 Policy Management" ] } }, "/policy-types/{policyTypeId}" : { "get" : { - "description" : "Returns a policy type definition", + "description" : "Get an A1 Policy Type definition using its policy type ID", "operationId" : "getPolicyTypeDefinition", "parameters" : [ { "explode" : false, @@ -378,7 +394,7 @@ } } }, - "description" : "OK - schema of the given policy type" + "description" : "OK - details and schema of the requested A1 Policy Type" }, "400" : { "content" : { @@ -438,7 +454,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -471,12 +487,13 @@ "description" : "Service Unavailable" } }, + "summary" : "Get an A1 Policy Type definition (getPolicyTypeDefinition)", "tags" : [ "A1 Policy Management" ] } }, "/policies/{policyId}" : { "delete" : { - "description" : "Deleting the policy using policyId.", + "description" : "Delete an existing A1 Policy instance using its policy ID.", "operationId" : "deletePolicy", "parameters" : [ { "explode" : false, @@ -501,7 +518,7 @@ } ], "responses" : { "204" : { - "description" : "The A1 policy was deleted" + "description" : "No Content" }, "400" : { "content" : { @@ -569,7 +586,7 @@ "example" : { "status" : 423, "title" : "Locked", - "detail" : "State is Locked in the provided request." + "detail" : "State is Locked in the provided request." }, "schema" : { "$ref" : "#/components/schemas/ErrorInformation" @@ -586,7 +603,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -619,11 +636,11 @@ "description" : "Service Unavailable" } }, - "summary" : "Delete a policy", + "summary" : "Delete an A1 Policy instance (deletePolicy)", "tags" : [ "A1 Policy Management" ] }, "get" : { - "description" : "Returns a policy", + "description" : "Get an A1 Policy instance's policy data using its policy ID", "operationId" : "getPolicy", "parameters" : [ { "explode" : false, @@ -720,7 +737,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -753,11 +770,12 @@ "description" : "Service Unavailable" } }, + "summary" : "Get an A1 Policy's policy data (getPolicy)", "tags" : [ "A1 Policy Management" ] }, "put" : { - "description" : "update a policy", - "operationId" : "putPolicy", + "description" : "Update an existing A1 Policy instance's policy data using its policy ID.", + "operationId" : "updatePolicy", "parameters" : [ { "explode" : false, "in" : "path", @@ -880,7 +898,7 @@ "example" : { "status" : 423, "title" : "Locked", - "detail" : "State is Locked in the provided request." + "detail" : "State is Locked in the provided request." }, "schema" : { "$ref" : "#/components/schemas/ErrorInformation" @@ -897,7 +915,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -930,12 +948,13 @@ "description" : "Service Unavailable" } }, + "summary" : "Update an A1 Policy's policy data (updatePolicy)", "tags" : [ "A1 Policy Management" ] } }, "/policies/{policyId}/status" : { "get" : { - "description" : "Query a policy status", + "description" : "Retrieve the status information for an A1 Policy Instance using its policy ID.", "operationId" : "getPolicyStatus", "parameters" : [ { "explode" : false, @@ -1027,7 +1046,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -1060,15 +1079,16 @@ "description" : "Service Unavailable" } }, + "summary" : "Get an A1 Policy Instance's status (getPolicyStatus)", "tags" : [ "A1 Policy Management" ] } }, "/policies" : { "get" : { - "description" : "Returns a list of A1 policies matching given search criteria. <br>If several query parameters are defined, the policies matching all conditions are returned.", - "operationId" : "getAllPolicies", + "description" : "Returns a collection of A1 Policy Instance IDs for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned.\n", + "operationId" : "getPolicyIds", "parameters" : [ { - "description" : "Select policies of a given policy type identity.", + "description" : "Select policies with a given A1 Policy Type ID.", "explode" : true, "in" : "query", "name" : "policyTypeId", @@ -1078,7 +1098,7 @@ }, "style" : "form" }, { - "description" : "Select policies of a given Near-RT RIC identity.", + "description" : "Select policies for a given Near-RT RIC identity.", "explode" : true, "in" : "query", "name" : "nearRtRicId", @@ -1088,7 +1108,7 @@ }, "style" : "form" }, { - "description" : "Select policies owned by a given service.", + "description" : "Select policies owned by a given service (registered or unregistered).", "explode" : true, "in" : "query", "name" : "serviceId", @@ -1098,7 +1118,7 @@ }, "style" : "form" }, { - "description" : "Select policies of types with the given type name (type identity has the format <typename_version>)", + "description" : "Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').", "explode" : true, "in" : "query", "name" : "typeName", @@ -1191,7 +1211,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -1224,11 +1244,11 @@ "description" : "Service Unavailable" } }, - "summary" : "Query policy identities", + "summary" : "Query for A1 Policy instances (getPolicyIds)", "tags" : [ "A1 Policy Management" ] }, "post" : { - "description" : "To create A1 policies", + "description" : "Create an A1 Policy Instance", "operationId" : "createPolicy", "requestBody" : { "content" : { @@ -1249,16 +1269,25 @@ } } }, - "description" : "Success case 201 created", + "description" : "Created", "headers" : { "Location" : { - "description" : "Contains the URI of the newly created resource", + "description" : "Contains the URI of the newly created A1 Policy Instances. This URI includes the A1 Policy Instance ID for the newly created policy instance.\n", "explode" : false, "required" : true, "schema" : { "type" : "string" }, "style" : "simple" + }, + "Content-Type" : { + "description" : "Media Type of the response", + "explode" : false, + "schema" : { + "example" : "application/json", + "type" : "string" + }, + "style" : "simple" } } }, @@ -1358,7 +1387,7 @@ "example" : { "status" : 423, "title" : "Locked", - "detail" : "State is Locked in the provided request." + "detail" : "State is Locked in the provided request." }, "schema" : { "$ref" : "#/components/schemas/ErrorInformation" @@ -1375,7 +1404,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -1408,12 +1437,13 @@ "description" : "Service Unavailable" } }, + "summary" : "Create an A1 Policy Instance (createPolicy)", "tags" : [ "A1 Policy Management" ] } }, "/configuration" : { "get" : { - "description" : "Returns the contents of the application configuration", + "description" : "Returns the entire contents of the Application Configuration.", "operationId" : "getConfiguration", "responses" : { "200" : { @@ -1437,10 +1467,11 @@ "description" : "Not Found" } }, + "summary" : "Get the Application Configuration (getConfiguration)", "tags" : [ "Configuration" ] }, "put" : { - "description" : "Replace the current configuration file with the given configuration", + "description" : "Replace the current Application Configuration with a new configuration. The new configuration, if accepted, will take effect after a short delay. The new configuration must comply with the Application Configuration schema, which can be found from the the Application Documentation (Developer Guide) \n", "operationId" : "putConfiguration", "requestBody" : { "content" : { @@ -1455,7 +1486,7 @@ "responses" : { "200" : { "content" : { - "*/*" : { + "application/json" : { "schema" : { "$ref" : "#/components/schemas/void" } @@ -1474,12 +1505,13 @@ "description" : "Bad Request" } }, + "summary" : "Set/Replace the Application Configuration (putConfiguration)", "tags" : [ "Configuration" ] } }, "/services/{serviceId}/keepalive" : { "put" : { - "description" : "A registered service should invoke this operation regularly to indicate that it is still alive. If a registered service fails to invoke this operation before the end of a timeout period the service will be deregistered and all its A1 policies wil be removed. (This timeout can be set or disabled when each service is initially registered)", + "description" : "A registered service should invoke this operation regularly to indicate that it is still alive. If a registered service fails to invoke some operation, or this operation, before the end of a timeout period the service will be deregistered and all its A1 policies wil be removed. This operation is only intended for registered services. (This timeout can be set or disabled when each service is initially registered)", "operationId" : "keepAliveService", "parameters" : [ { "explode" : false, @@ -1515,7 +1547,7 @@ "responses" : { "200" : { "content" : { - "*/*" : { + "application/json" : { "schema" : { "type" : "object" } @@ -1534,16 +1566,16 @@ "description" : "Not Found" } }, - "summary" : "Heartbeat indicates that the service is running", + "summary" : "Heartbeat message from a service (keepAliveService)", "tags" : [ "Service Registry and Supervision" ] } }, "/services" : { "get" : { - "description" : "Either information about a registered service with given identity or all registered services are returned.", + "description" : "Get information about all registered services, or a single registered service. If the service ID of a registered service is included in the query, information about that service is returned. Otherwise Information about all registered is returned. This operation does not retrieve information about unregistered services.\n", "operationId" : "getServices", "parameters" : [ { - "description" : "The identity of the service", + "description" : "The identity of the registered service", "explode" : true, "in" : "query", "name" : "serviceId", @@ -1591,7 +1623,7 @@ "description" : "Not Found" } }, - "summary" : "Returns service information", + "summary" : "Get Services (getServices)", "tags" : [ "Service Registry and Supervision" ] }, "put" : { @@ -1599,7 +1631,7 @@ "RICStatus" : { "{$request.body#/callback_url}" : { "post" : { - "description" : "The URL to this call is registered at Service registration. <br>Callouts to indicate status changes relevant for Services. Note that these calls are called by A1-PMS and they are not provided.", + "description" : "Callouts to indicate Near-RT RIC status changes relevant for Services. \nThe URL invoked by this callback is provided at Service registration.\n", "operationId" : "serviceCallback", "requestBody" : { "content" : { @@ -1633,12 +1665,13 @@ "description" : "Not Found" } }, - "summary" : "Callback for Near-RT RIC status." + "summary" : "Callback for Near-RT RIC status (serviceCallback)", + "tags" : [ "Service Registry and Supervision" ] } } } }, - "description" : "Registering a service is needed to:<ul><li>Get callbacks about available NearRT RICs.</li><li>Activate supervision of the service. If a service is inactive, its policies will automatically be deleted.</li></ul>Policies can be created even if the service is not registerred. This is a feature which it is optional to use.", + "description" : "Register a single service, or update a previous registration. Service registration is required to get callbacks about available NearRT RICs and to enable supervision of the service's active status. If a registered service becomes inactive, its policies can be automatically deleted. A1 Policy instances can also be created for unregistered services. If an unregistered service is later registered, the service's policies are retained when the service becomes registered. This feature is optional to use.\n", "operationId" : "putService", "requestBody" : { "content" : { @@ -1653,7 +1686,7 @@ "responses" : { "200" : { "content" : { - "*/*" : { + "application/json" : { "schema" : { "type" : "object" } @@ -1663,7 +1696,7 @@ }, "201" : { "content" : { - "*/*" : { + "application/json" : { "schema" : { "type" : "object" } @@ -1682,13 +1715,13 @@ "description" : "Bad Request" } }, - "summary" : "Register a service", + "summary" : "Register or update a Service (putService)", "tags" : [ "Service Registry and Supervision" ] } }, "/services/{serviceId}" : { "delete" : { - "description" : "Unregister a service", + "description" : "Unregister a registered Service using its service ID. Only registered services can be unregistered. All A1 Policy Instances for the previously registered service will be removed.\n", "operationId" : "deleteService", "parameters" : [ { "explode" : false, @@ -1714,7 +1747,7 @@ "responses" : { "204" : { "content" : { - "*/*" : { + "application/json" : { "schema" : { "type" : "object" } @@ -1733,6 +1766,7 @@ "description" : "Not Found" } }, + "summary" : "Unregister a Service (deleteService)", "tags" : [ "Service Registry and Supervision" ] } } @@ -1743,29 +1777,18 @@ "description" : "List of service information", "value" : { "serviceList" : [ { - "callbackUrl" : "callbackUrl", - "serviceId" : "serviceId", + "callbackUrl" : "http://callback.url", + "serviceId" : "serviceId1", "keepAliveIntervalSeconds" : 0, "timeSinceLastActivitySeconds" : 6 }, { - "callbackUrl" : "callbackUrl", - "serviceId" : "serviceId", - "keepAliveIntervalSeconds" : 0, - "timeSinceLastActivitySeconds" : 6 + "callbackUrl" : "http://callback.url", + "serviceId" : "serviceId2", + "keepAliveIntervalSeconds" : 500, + "timeSinceLastActivitySeconds" : 401 } ] } }, - "PolicyStatusInfo" : { - "description" : "Status for one A1-P Policy", - "value" : { - "lastModified" : "last_modified", - "status" : { - "value" : { - "status" : "status" - } - } - } - }, "StatusInfo" : { "value" : { "status" : "status" @@ -1773,24 +1796,24 @@ }, "RicInfo" : { "value" : { - "ricId" : "ricId", - "managedElementIds" : [ "managedElementId", "managedElementId" ], + "ricId" : "ricId1", + "managedElementIds" : [ "managedElementId1", "managedElementId2" ], "state" : "UNAVAILABLE", - "policyTypeIds" : [ "policyTypeId", "policyTypeId" ] + "policyTypeIds" : [ "policyTypeId1", "policyTypeId2" ] } }, "RicInfoList" : { "value" : { "rics" : [ { - "ricId" : "ricId", - "managedElementIds" : [ "managedElementId", "managedElementId" ], + "ricId" : "ricId1", + "managedElementIds" : [ "managedElementId1", "managedElementId2" ], "state" : "UNAVAILABLE", - "policyTypeIds" : [ "policyTypeId", "policyTypeId" ] + "policyTypeIds" : [ "policyTypeId1", "policyTypeId2" ] }, { - "ricId" : "ricId", - "managedElementIds" : [ "managedElementId", "managedElementId" ], + "ricId" : "ricId2", + "managedElementIds" : [ "managedElementId3", "managedElementId4" ], "state" : "UNAVAILABLE", - "policyTypeIds" : [ "policyTypeId", "policyTypeId" ] + "policyTypeIds" : [ "policyTypeId3", "policyTypeId4" ] } ] } }, @@ -1839,16 +1862,16 @@ "PolicyTypeInformation" : { "value" : [ { "policyTypeId" : "STD_QOS2_0.1.0", - "nearRtRicId" : "ricsim_g3_2" + "nearRtRicId" : "ric_g3_2" }, { "policyTypeId" : "STD_QOS_0_2_0", - "nearRtRicId" : "ricsim_g3_2" + "nearRtRicId" : "ric_g3_2" }, { "policyTypeId" : "STD_QOS2_0.1.0", - "nearRtRicId" : "ricsim_g3_1" + "nearRtRicId" : "ric_g3_1" }, { "policyTypeId" : "STD_QOS_0_2_0", - "nearRtRicId" : "ricsim_g3_1" + "nearRtRicId" : "ric_g3_1" } ] }, "PolicyTypeObject" : { @@ -1996,7 +2019,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -2034,7 +2057,7 @@ "example" : { "status" : 423, "title" : "Locked", - "detail" : "State is Locked in the provided request." + "detail" : "State is Locked in the provided request." }, "schema" : { "$ref" : "#/components/schemas/ErrorInformation" @@ -2046,14 +2069,14 @@ }, "schemas" : { "PolicyTypeInformation" : { - "description" : "Available policy types and for each policy type identifier the Near-RT RIC identifiers of those Near-RT RICs that support the related A1 policy type", + "description" : "A data tuple to indicate that an identified A1 Policy Type is supported at an identified Near-RT RIC.", "example" : { "policyTypeId" : "STD_QOS2_0.1.0", - "nearRtRicId" : "ricsim_g3_2" + "nearRtRicId" : "ric_g3_2" }, "properties" : { "policyTypeId" : { - "description" : "Identity of the policy type", + "description" : "A1 Policy Type identifier", "type" : "string" }, "nearRtRicId" : { @@ -2064,36 +2087,36 @@ "type" : "object" }, "PolicyObjectInformation" : { - "description" : "Information related to the creation of the policy", + "description" : "Information to create an A1 Policy Instance", "properties" : { "nearRtRicId" : { "description" : "Identity of the target Near-RT RIC", - "example" : "Near-RT-Ric-ID", + "example" : "Near-RT-Ric-ID1", "type" : "string" }, "transient" : { "default" : false, - "description" : "If true, the policy is deleted at RIC restart. If false, its value is maintained by this service until explicitly deleted. Default false.", + "description" : "If true, the policy is automatically deleted if the targeted Near-RT RIC restarts or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.\n", "nullable" : false, "type" : "boolean" }, "policyId" : { - "description" : "The identity of the Policy. If this value is present, it must be unique; otherwise, a random UUID is generated.", - "example" : "POLICY-ID", + "description" : "An optional identity to be used for the new A1 Policy Instance. If this value is present, it must be unique. If not present the new A1 Policy Instance will be assigned a newly generated unique ID, and the new ID can be extracted from the 'Location' header in the response.\n", + "example" : "POLICY-ID1", "type" : "string" }, "serviceId" : { "default" : "", - "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered.", - "example" : "rApp ID", + "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered. If the service is registered, the newly created A1 Policy Instance will be subject to the same supervision rules as the the service's other policies.", + "example" : "rApp 1", "type" : "string" }, "policyObject" : { "$ref" : "#/components/schemas/PolicyObject" }, "policyTypeId" : { - "description" : "Identity of the policy type", - "example" : "ORAN_QOS_1.0.0(typeName_SemVersion)", + "description" : "A1 Policy Type identity", + "example" : "ORAN_QOS_1.0.0 '(typeName_SemVersion)'", "type" : "string" } }, @@ -2104,7 +2127,7 @@ "description" : "Problem as defined in https://tools.ietf.org/html/rfc7807", "properties" : { "detail" : { - "description" : " A human-readable explanation specific to this occurrence of the problem.", + "description" : "A human-readable explanation specific to this occurrence of the problem.", "example" : "Policy type not found", "type" : "string" }, @@ -2114,7 +2137,7 @@ "type" : "string" }, "status" : { - "description" : "The HTTP status code generated by the origin server for this occurrence of the problem. ", + "description" : "The HTTP status code generated by the origin server for this occurrence of the problem.\n", "example" : 404, "format" : "int32", "type" : "integer" @@ -2123,16 +2146,16 @@ "type" : "object" }, "PolicyObject" : { - "description" : "Policy Object is a JSON representation of an A1 policy", + "description" : "Policy Object is a JSON representation policy data for an A1 Policy Instance. The schema for this policy data is defined in the corresponding A1 Policy Type. \n", "type" : "object" }, "PolicyTypeObject" : { - "description" : "policy type object as defined in A1TD", + "description" : "An A1 Policy Type, as defined in O-RAN Alliance A1TD", "example" : { "policySchema" : { "$schema" : "http://json-schema.org/draft-07/schema#", "title" : "STD_QOS_0_2_0", - "description" : "STD QOS policy type", + "description" : "Policy data schema for STD_QOS_0.2.0 A1 Policy Instances.", "type" : "object", "properties" : { "scope" : { @@ -2163,7 +2186,7 @@ "statusSchema" : { "$schema" : "http://json-schema.org/draft-07/schema#", "title" : "STD_QOS_0.2.0", - "description" : "STD QOS policy type status", + "description" : "Status schema for STD_QOS_0.2.0 A1 Policy Instances.", "type" : "object", "properties" : { "enforceStatus" : { @@ -2189,15 +2212,15 @@ "type" : "object" }, "PolicySchema" : { - "description" : "The schemas are policy type specific", + "description" : "A schema to define the policy data contents of A1 Policy Instances. Policy data schemas are Policy Type specific. All A1 Policy Instances of an A1 Policy Type should comply with the type's policy data schema.\n", "type" : "object" }, "StatusSchema" : { - "description" : "The optional schema for policy status", + "description" : "A schema to define the contents of the status information for A1 Policy Instances. Status schemas are Policy Type specific. All status information for all A1 Policy Instances of an A1 Policy Type should comply with the type's status schema.\n", "type" : "object" }, "PolicyStatusObject" : { - "description" : "A generic policy status object that can be used to transport any policy status. Additionally, a policy status shall be valid according to the schema of its specific policy type.", + "description" : "A generic policy status object that can be used to transport any policy status. Additionally, a schema for policy status can be defined in the corresponding A1 Policy Type.\n", "type" : "object" }, "void" : { @@ -2207,26 +2230,12 @@ "StatusInfo" : { "properties" : { "status" : { - "description" : "status text", + "description" : "Status text", "type" : "string" } }, "type" : "object" }, - "AuthorizationResult" : { - "description" : "Result of authorization", - "example" : { - "result" : true - }, - "properties" : { - "result" : { - "description" : "If true, the access is granted", - "type" : "boolean" - } - }, - "required" : [ "result" ], - "type" : "object" - }, "RicInfo" : { "description" : "Information for a Near-RT RIC", "properties" : { @@ -2235,22 +2244,22 @@ "type" : "string" }, "managedElementIds" : { - "description" : "O1 identities for managed entities", + "description" : "Identities for managed entities", "items" : { - "description" : "O1 identities for managed entities", + "description" : "Identity for a managed entity", "type" : "string" }, "type" : "array" }, "state" : { - "description" : "Represents the states for a Near-RT RIC", + "description" : "Represents the state of a Near-RT RIC", "enum" : [ "UNAVAILABLE", "AVAILABLE", "SYNCHRONIZING", "CONSISTENCY_CHECK" ], "type" : "string" }, "policyTypeIds" : { - "description" : "supported policy types", + "description" : "Supported A1 Policy Types", "items" : { - "description" : "supported policy types", + "description" : "Supported A1 Policy Type ID", "type" : "string" }, "type" : "array" @@ -2259,10 +2268,10 @@ "type" : "object" }, "ServiceRegistrationInfo" : { - "description" : "Information for one service", + "description" : "Information for a service to be registered", "properties" : { "callbackUrl" : { - "description" : "callback for notifying of Near-RT RIC state changes", + "description" : "Callback URL for notifying of Near-RT RIC state changes", "type" : "string" }, "serviceId" : { @@ -2270,7 +2279,7 @@ "type" : "string" }, "keepAliveIntervalSeconds" : { - "description" : "keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.", + "description" : "Keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n", "format" : "int64", "type" : "integer" } @@ -2278,24 +2287,11 @@ "required" : [ "serviceId" ], "type" : "object" }, - "PolicyStatusInfo" : { - "description" : "Status for one A1-P Policy", - "properties" : { - "lastModified" : { - "description" : "timestamp, last modification time", - "type" : "string" - }, - "status" : { - "description" : "the Policy status", - "type" : "object" - } - }, - "type" : "object" - }, "ServiceStatus" : { + "description" : "Information about a previously registered service", "properties" : { "callbackUrl" : { - "description" : "callback for notifying of RIC synchronization", + "description" : "Callback URL for notifying of Near-RT RIC state changes", "type" : "string" }, "serviceId" : { @@ -2303,12 +2299,12 @@ "type" : "string" }, "keepAliveIntervalSeconds" : { - "description" : "policy keep alive timeout", + "description" : "Keep alive interval (seconds) for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n", "format" : "int64", "type" : "integer" }, "timeSinceLastActivitySeconds" : { - "description" : "time since last invocation by the service", + "description" : "Time (seconds) since last recorded operation by the service", "format" : "int64", "type" : "integer" } @@ -2316,10 +2312,10 @@ "type" : "object" }, "RicInfoList" : { - "description" : "List of Near-RT RIC information", + "description" : "Collection of Near-RT RIC information objects", "properties" : { "rics" : { - "description" : "List of Near-RT RIC information", + "description" : "List of Near-RT RIC information objects", "items" : { "$ref" : "#/components/schemas/RicInfo" }, @@ -2328,45 +2324,15 @@ }, "type" : "object" }, - "input" : { - "description" : "input", - "properties" : { - "accessType" : { - "description" : "Access type", - "enum" : [ "READ", "WRITE", "DELETE" ], - "type" : "string" - }, - "authToken" : { - "description" : "Authorization token", - "type" : "string" - }, - "policyTypeId" : { - "description" : "Policy type identifier", - "type" : "string" - } - }, - "required" : [ "accessType", "authToken", "policyTypeId" ], - "type" : "object" - }, - "PolicyAuthorization" : { - "description" : "Authorization request for A1 policy requests", - "properties" : { - "input" : { - "$ref" : "#/components/schemas/input" - } - }, - "required" : [ "input" ], - "type" : "object" - }, "NearRtRicId" : { - "description" : "Identity of the policy", + "description" : "Identity of the Near-RT RIC", "type" : "string" }, "PolicyInformation" : { - "description" : "Near-RT RIC identifiers where A1 policies exist and for each Near-RT RIC identifier the policy identifiers of those policies that exist in that Near-RT RIC", + "description" : "Information tuple for a single A1 Policy Instance. Contains the A1 Policy Instance ID, and the ID of the Near-RT RIC where the policy is created. \n", "properties" : { "policyId" : { - "description" : "Identity of the policy", + "description" : "Identity of the A1 Policy Instance", "type" : "string" }, "nearRtRicId" : { @@ -2379,7 +2345,7 @@ "ServiceStatusList" : { "properties" : { "serviceList" : { - "description" : "List of service information", + "description" : "List of Service Status objects, describing a collection of registered services.", "items" : { "$ref" : "#/components/schemas/ServiceStatus" }, @@ -2389,14 +2355,14 @@ "type" : "object" }, "ServiceCallbackInfo" : { - "description" : "Information transferred as in Service callbacks (callback_url)", + "description" : "Information transferred in Service callbacks, \nif a callback URL was provided for a registered service\n", "properties" : { "ricId" : { "description" : "Identity of a Near-RT RIC", "type" : "string" }, "eventType" : { - "description" : "values:\nAVAILABLE: the Near-RT RIC has become available for A1 Policy management", + "description" : "values: \n AVAILABLE: the Near-RT RIC has become available for A1 Policy management\n", "enum" : [ "AVAILABLE" ], "type" : "string" } @@ -2404,34 +2370,23 @@ "required" : [ "eventType", "ricId" ], "type" : "object" }, - "Link" : { - "properties" : { - "templated" : { - "type" : "boolean" - }, - "href" : { - "type" : "string" - } - }, - "type" : "object" - }, "ProblemDetails" : { - "description" : "A problem detail to carry details in an HTTP response according to RFC 7807", + "description" : "Object to carry details about a problem in an HTTP response according to IETF RFC 7807", "properties" : { "type" : { - "description" : "a URI reference according to IETF RFC 3986 that identifies the problem type", + "description" : "URI reference according to IETF RFC 3986 that identifies the problem type", "type" : "string" }, "title" : { - "description" : "human-readable summary of the problem type", + "description" : "Human-readable summary of the problem type", "type" : "string" }, "status" : { - "description" : "the HTTP status code", + "description" : "HTTP status code", "type" : "number" }, "detail" : { - "description" : "human-readable explanation ", + "description" : "Human-readable explanation", "type" : "string" }, "instance" : { diff --git a/a1-policy-management/api/offeredapis/swagger/pms-api-v3.json b/a1-policy-management/api/offeredapis/swagger/pms-api-v3.json index 9514db8d..07f2ac42 100644 --- a/a1-policy-management/api/offeredapis/swagger/pms-api-v3.json +++ b/a1-policy-management/api/offeredapis/swagger/pms-api-v3.json @@ -5,39 +5,43 @@ "email" : "discuss-list@onap.com", "url" : "https://www.onap.org/" }, - "description" : "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managemecnt of A1 policies. <br/>The main tasks of the service are:</p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 policies and the Near-RT RICs</li><li>Maintaining a view of supported Near-RT RIC policy types</li><li>Supervision of using services (R-APPs). When a service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2><h3>A1 Policy Management</h3><p>This is an API for management of A1 Policies.</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository</h3><p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted for one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the PMS component.</p><h3>Service Registry and Supervision</h3><p>API used for registering services that uses PMS. Each A1 policy is optionally owned by a service. PMS can supervise each registered service by a heart-beat supervision and will automatically remove policies for unavailable services. Note that a service does not need to be registered in order to create A1 Policies. This is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used for access control of A1 Policy access. If configured, an external authorization provider is requested to grant access to the A1 Policy type.</p>", + "description" : "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes the latest API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2> <p>Note: parts of this API are strongly based on extracts of the O-RAN Alliance R1 Interface specification for A1 Policy Management, and those parts should be considered '© O-RAN ALLIANCE - All rights reserved.'</p> <h3>A1 Policy Management</h3> <p>This is the latest API for managing A1 Policies. This API is partially compliant with O-RAN Alliance R1 Interface specifications for A1 Policy Management:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service.</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then its A1 Policies are removed. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p>", "license" : { "name" : "Copyright (C) 2024 - 2025 OpenInfra Foundation Europe. Licensed under the Apache 2 License.", "url" : "http://www.apache.org/licenses/LICENSE-2.0" }, - "title" : "A1 policy management API", + "title" : "ONAP CCSDK - A1 Policy Management API", "version" : "1.0.0", - "x-api-id" : "a31c510b-20e6-4a08-af16-368c44d7fba8", + "x-api-id" : "e9776a07-0813-4fca-9801-6f892f0a7c13", "x-audience" : "external-public" }, + "externalDocs" : { + "description" : "Based on parts of O-RAN ALLIANCE specification: O-RAN.WG2.R1AP-v07.00", + "url" : "https://www.o-ran.org/specifications" + }, "servers" : [ { "url" : "{apiRoot}/a1-policy-management/v1", "variables" : { "apiRoot" : { "default" : "https://example.com", - "description" : "This is the Host:Port or Address where the A1-Policy Management Service can be accessed. Note: This URL path format aligns with the O-RAN Alliance (r) R1-AP specifiactions for A1 Policy Management" + "description" : "This is the Host:Port or Address where the A1-Policy Management Service can be accessed. Note: This URL path format aligns with the O-RAN Alliance R1-AP specifications for A1 Policy Management" } } } ], "tags" : [ { - "description" : "**(Newer Version)** API used to create polices, Policy Instances and get them as individual using an ID or get all policies/Instances.", + "description" : "API used to get, create, update and delete A1 Policy Instances. Also used to query A1 Policy Types.\n", "name" : "A1 Policy Management" }, { - "description" : "API used to get the NearRT-RIC for the managed element.", + "description" : "API used to get information about registered Near-RT RICs.\n", "name" : "NearRT-RIC Repository" }, { - "description" : "API used to keep the service Alive with in the timeout period", + "description" : "API used to manage registered service, and control their keep-alive status via heart-beat messages.\n", "name" : "Service Registry and Supervision" }, { - "description" : "API used to get the health status and statistics of this service", + "description" : "API used to get the health status and statistics of this service.\n", "name" : "Health Check" }, { - "description" : "API used to create or fetch the application configuration.", + "description" : "API used to create or fetch the application configuration.\n", "name" : "Configuration" } ], "paths" : { @@ -60,14 +64,25 @@ } }, "description" : "OK- Service is living Ok" + }, + "404" : { + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + } + }, + "description" : "Not Found" } }, + "summary" : "Get Status (getStatus)", "tags" : [ "Health Check" ] } }, "/rics/{ricId}" : { "get" : { - "description" : "A ricId path parameter must be specified to retrieve associated ric infomation", + "description" : "Get information about a Near-RT RIC", "operationId" : "getRic", "parameters" : [ { "description" : "The identity of a Near-RT RIC to get information for.", @@ -79,7 +94,7 @@ "nullable" : false, "type" : "string" }, - "style" : "form" + "style" : "simple" }, { "description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.", "explode" : false, @@ -119,16 +134,16 @@ "description" : "Not Found" } }, - "summary" : "Returns info for one Near-RT RIC", + "summary" : "Get a Near-RT RIC (getRic)", "tags" : [ "NearRT-RIC Repository" ] } }, "/rics" : { "get" : { - "description" : "The call returns all Near-RT RICs that supports a given policy type identity", + "description" : "Get all Near-RT RICs that supports a given A1 Policy Type ID", "operationId" : "getRics", "parameters" : [ { - "description" : "The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned", + "description" : "The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.\n", "explode" : true, "in" : "query", "name" : "policyTypeId", @@ -176,13 +191,13 @@ "description" : "Not Found" } }, - "summary" : "Query Near-RT RIC information", + "summary" : "Get Near-RT RICs for A1 Policy Type (getRics)", "tags" : [ "NearRT-RIC Repository" ] } }, "/policy-types" : { "get" : { - "description" : "Query policy type identities", + "description" : "Query A1 Policy Type identities using query parameters", "operationId" : "getPolicyTypes", "parameters" : [ { "description" : "Select types for the given Near-RT RIC identity.", @@ -195,7 +210,7 @@ }, "style" : "form" }, { - "description" : "Select types with the given type name (type identity has the format <typename_version>)", + "description" : "Select types compatible with the given type name (type identity has the format 'typename_version')", "explode" : true, "in" : "query", "name" : "typeName", @@ -205,7 +220,7 @@ }, "style" : "form" }, { - "description" : "Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order.", + "description" : "Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order.\n", "explode" : true, "in" : "query", "name" : "compatibleWithVersion", @@ -303,7 +318,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -336,12 +351,13 @@ "description" : "Service Unavailable" } }, + "summary" : "Get A1 Policy Types (getPolicyTypes)", "tags" : [ "A1 Policy Management" ] } }, "/policy-types/{policyTypeId}" : { "get" : { - "description" : "Returns a policy type definition", + "description" : "Get an A1 Policy Type definition using its policy type ID", "operationId" : "getPolicyTypeDefinition", "parameters" : [ { "explode" : false, @@ -378,7 +394,7 @@ } } }, - "description" : "OK - schema of the given policy type" + "description" : "OK - details and schema of the requested A1 Policy Type" }, "400" : { "content" : { @@ -438,7 +454,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -471,12 +487,13 @@ "description" : "Service Unavailable" } }, + "summary" : "Get an A1 Policy Type definition (getPolicyTypeDefinition)", "tags" : [ "A1 Policy Management" ] } }, "/policies/{policyId}" : { "delete" : { - "description" : "Deleting the policy using policyId.", + "description" : "Delete an existing A1 Policy instance using its policy ID.", "operationId" : "deletePolicy", "parameters" : [ { "explode" : false, @@ -501,7 +518,7 @@ } ], "responses" : { "204" : { - "description" : "The A1 policy was deleted" + "description" : "No Content" }, "400" : { "content" : { @@ -569,7 +586,7 @@ "example" : { "status" : 423, "title" : "Locked", - "detail" : "State is Locked in the provided request." + "detail" : "State is Locked in the provided request." }, "schema" : { "$ref" : "#/components/schemas/ErrorInformation" @@ -586,7 +603,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -619,11 +636,11 @@ "description" : "Service Unavailable" } }, - "summary" : "Delete a policy", + "summary" : "Delete an A1 Policy instance (deletePolicy)", "tags" : [ "A1 Policy Management" ] }, "get" : { - "description" : "Returns a policy", + "description" : "Get an A1 Policy instance's policy data using its policy ID", "operationId" : "getPolicy", "parameters" : [ { "explode" : false, @@ -720,7 +737,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -753,11 +770,12 @@ "description" : "Service Unavailable" } }, + "summary" : "Get an A1 Policy's policy data (getPolicy)", "tags" : [ "A1 Policy Management" ] }, "put" : { - "description" : "update a policy", - "operationId" : "putPolicy", + "description" : "Update an existing A1 Policy instance's policy data using its policy ID.", + "operationId" : "updatePolicy", "parameters" : [ { "explode" : false, "in" : "path", @@ -880,7 +898,7 @@ "example" : { "status" : 423, "title" : "Locked", - "detail" : "State is Locked in the provided request." + "detail" : "State is Locked in the provided request." }, "schema" : { "$ref" : "#/components/schemas/ErrorInformation" @@ -897,7 +915,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -930,12 +948,13 @@ "description" : "Service Unavailable" } }, + "summary" : "Update an A1 Policy's policy data (updatePolicy)", "tags" : [ "A1 Policy Management" ] } }, "/policies/{policyId}/status" : { "get" : { - "description" : "Query a policy status", + "description" : "Retrieve the status information for an A1 Policy Instance using its policy ID.", "operationId" : "getPolicyStatus", "parameters" : [ { "explode" : false, @@ -1027,7 +1046,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -1060,15 +1079,16 @@ "description" : "Service Unavailable" } }, + "summary" : "Get an A1 Policy Instance's status (getPolicyStatus)", "tags" : [ "A1 Policy Management" ] } }, "/policies" : { "get" : { - "description" : "Returns a list of A1 policies matching given search criteria. <br>If several query parameters are defined, the policies matching all conditions are returned.", - "operationId" : "getAllPolicies", + "description" : "Returns a collection of A1 Policy Instance IDs for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned.\n", + "operationId" : "getPolicyIds", "parameters" : [ { - "description" : "Select policies of a given policy type identity.", + "description" : "Select policies with a given A1 Policy Type ID.", "explode" : true, "in" : "query", "name" : "policyTypeId", @@ -1078,7 +1098,7 @@ }, "style" : "form" }, { - "description" : "Select policies of a given Near-RT RIC identity.", + "description" : "Select policies for a given Near-RT RIC identity.", "explode" : true, "in" : "query", "name" : "nearRtRicId", @@ -1088,7 +1108,7 @@ }, "style" : "form" }, { - "description" : "Select policies owned by a given service.", + "description" : "Select policies owned by a given service (registered or unregistered).", "explode" : true, "in" : "query", "name" : "serviceId", @@ -1098,7 +1118,7 @@ }, "style" : "form" }, { - "description" : "Select policies of types with the given type name (type identity has the format <typename_version>)", + "description" : "Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').", "explode" : true, "in" : "query", "name" : "typeName", @@ -1191,7 +1211,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -1224,11 +1244,11 @@ "description" : "Service Unavailable" } }, - "summary" : "Query policy identities", + "summary" : "Query for A1 Policy instances (getPolicyIds)", "tags" : [ "A1 Policy Management" ] }, "post" : { - "description" : "To create A1 policies", + "description" : "Create an A1 Policy Instance", "operationId" : "createPolicy", "requestBody" : { "content" : { @@ -1249,16 +1269,25 @@ } } }, - "description" : "Success case 201 created", + "description" : "Created", "headers" : { "Location" : { - "description" : "Contains the URI of the newly created resource", + "description" : "Contains the URI of the newly created A1 Policy Instances. This URI includes the A1 Policy Instance ID for the newly created policy instance.\n", "explode" : false, "required" : true, "schema" : { "type" : "string" }, "style" : "simple" + }, + "Content-Type" : { + "description" : "Media Type of the response", + "explode" : false, + "schema" : { + "example" : "application/json", + "type" : "string" + }, + "style" : "simple" } } }, @@ -1358,7 +1387,7 @@ "example" : { "status" : 423, "title" : "Locked", - "detail" : "State is Locked in the provided request." + "detail" : "State is Locked in the provided request." }, "schema" : { "$ref" : "#/components/schemas/ErrorInformation" @@ -1375,7 +1404,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -1408,12 +1437,13 @@ "description" : "Service Unavailable" } }, + "summary" : "Create an A1 Policy Instance (createPolicy)", "tags" : [ "A1 Policy Management" ] } }, "/configuration" : { "get" : { - "description" : "Returns the contents of the application configuration", + "description" : "Returns the entire contents of the Application Configuration.", "operationId" : "getConfiguration", "responses" : { "200" : { @@ -1437,10 +1467,11 @@ "description" : "Not Found" } }, + "summary" : "Get the Application Configuration (getConfiguration)", "tags" : [ "Configuration" ] }, "put" : { - "description" : "Replace the current configuration file with the given configuration", + "description" : "Replace the current Application Configuration with a new configuration. The new configuration, if accepted, will take effect after a short delay. The new configuration must comply with the Application Configuration schema, which can be found from the the Application Documentation (Developer Guide) \n", "operationId" : "putConfiguration", "requestBody" : { "content" : { @@ -1455,7 +1486,7 @@ "responses" : { "200" : { "content" : { - "*/*" : { + "application/json" : { "schema" : { "$ref" : "#/components/schemas/void" } @@ -1474,12 +1505,13 @@ "description" : "Bad Request" } }, + "summary" : "Set/Replace the Application Configuration (putConfiguration)", "tags" : [ "Configuration" ] } }, "/services/{serviceId}/keepalive" : { "put" : { - "description" : "A registered service should invoke this operation regularly to indicate that it is still alive. If a registered service fails to invoke this operation before the end of a timeout period the service will be deregistered and all its A1 policies wil be removed. (This timeout can be set or disabled when each service is initially registered)", + "description" : "A registered service should invoke this operation regularly to indicate that it is still alive. If a registered service fails to invoke some operation, or this operation, before the end of a timeout period the service will be deregistered and all its A1 policies wil be removed. This operation is only intended for registered services. (This timeout can be set or disabled when each service is initially registered)", "operationId" : "keepAliveService", "parameters" : [ { "explode" : false, @@ -1515,7 +1547,7 @@ "responses" : { "200" : { "content" : { - "*/*" : { + "application/json" : { "schema" : { "type" : "object" } @@ -1534,16 +1566,16 @@ "description" : "Not Found" } }, - "summary" : "Heartbeat indicates that the service is running", + "summary" : "Heartbeat message from a service (keepAliveService)", "tags" : [ "Service Registry and Supervision" ] } }, "/services" : { "get" : { - "description" : "Either information about a registered service with given identity or all registered services are returned.", + "description" : "Get information about all registered services, or a single registered service. If the service ID of a registered service is included in the query, information about that service is returned. Otherwise Information about all registered is returned. This operation does not retrieve information about unregistered services.\n", "operationId" : "getServices", "parameters" : [ { - "description" : "The identity of the service", + "description" : "The identity of the registered service", "explode" : true, "in" : "query", "name" : "serviceId", @@ -1591,7 +1623,7 @@ "description" : "Not Found" } }, - "summary" : "Returns service information", + "summary" : "Get Services (getServices)", "tags" : [ "Service Registry and Supervision" ] }, "put" : { @@ -1599,7 +1631,7 @@ "RICStatus" : { "{$request.body#/callback_url}" : { "post" : { - "description" : "The URL to this call is registered at Service registration. <br>Callouts to indicate status changes relevant for Services. Note that these calls are called by A1-PMS and they are not provided.", + "description" : "Callouts to indicate Near-RT RIC status changes relevant for Services. \nThe URL invoked by this callback is provided at Service registration.\n", "operationId" : "serviceCallback", "requestBody" : { "content" : { @@ -1633,12 +1665,13 @@ "description" : "Not Found" } }, - "summary" : "Callback for Near-RT RIC status." + "summary" : "Callback for Near-RT RIC status (serviceCallback)", + "tags" : [ "Service Registry and Supervision" ] } } } }, - "description" : "Registering a service is needed to:<ul><li>Get callbacks about available NearRT RICs.</li><li>Activate supervision of the service. If a service is inactive, its policies will automatically be deleted.</li></ul>Policies can be created even if the service is not registerred. This is a feature which it is optional to use.", + "description" : "Register a single service, or update a previous registration. Service registration is required to get callbacks about available NearRT RICs and to enable supervision of the service's active status. If a registered service becomes inactive, its policies can be automatically deleted. A1 Policy instances can also be created for unregistered services. If an unregistered service is later registered, the service's policies are retained when the service becomes registered. This feature is optional to use.\n", "operationId" : "putService", "requestBody" : { "content" : { @@ -1653,7 +1686,7 @@ "responses" : { "200" : { "content" : { - "*/*" : { + "application/json" : { "schema" : { "type" : "object" } @@ -1663,7 +1696,7 @@ }, "201" : { "content" : { - "*/*" : { + "application/json" : { "schema" : { "type" : "object" } @@ -1682,13 +1715,13 @@ "description" : "Bad Request" } }, - "summary" : "Register a service", + "summary" : "Register or update a Service (putService)", "tags" : [ "Service Registry and Supervision" ] } }, "/services/{serviceId}" : { "delete" : { - "description" : "Unregister a service", + "description" : "Unregister a registered Service using its service ID. Only registered services can be unregistered. All A1 Policy Instances for the previously registered service will be removed.\n", "operationId" : "deleteService", "parameters" : [ { "explode" : false, @@ -1714,7 +1747,7 @@ "responses" : { "204" : { "content" : { - "*/*" : { + "application/json" : { "schema" : { "type" : "object" } @@ -1733,6 +1766,7 @@ "description" : "Not Found" } }, + "summary" : "Unregister a Service (deleteService)", "tags" : [ "Service Registry and Supervision" ] } } @@ -1743,29 +1777,18 @@ "description" : "List of service information", "value" : { "serviceList" : [ { - "callbackUrl" : "callbackUrl", - "serviceId" : "serviceId", + "callbackUrl" : "http://callback.url", + "serviceId" : "serviceId1", "keepAliveIntervalSeconds" : 0, "timeSinceLastActivitySeconds" : 6 }, { - "callbackUrl" : "callbackUrl", - "serviceId" : "serviceId", - "keepAliveIntervalSeconds" : 0, - "timeSinceLastActivitySeconds" : 6 + "callbackUrl" : "http://callback.url", + "serviceId" : "serviceId2", + "keepAliveIntervalSeconds" : 500, + "timeSinceLastActivitySeconds" : 401 } ] } }, - "PolicyStatusInfo" : { - "description" : "Status for one A1-P Policy", - "value" : { - "lastModified" : "last_modified", - "status" : { - "value" : { - "status" : "status" - } - } - } - }, "StatusInfo" : { "value" : { "status" : "status" @@ -1773,24 +1796,24 @@ }, "RicInfo" : { "value" : { - "ricId" : "ricId", - "managedElementIds" : [ "managedElementId", "managedElementId" ], + "ricId" : "ricId1", + "managedElementIds" : [ "managedElementId1", "managedElementId2" ], "state" : "UNAVAILABLE", - "policyTypeIds" : [ "policyTypeId", "policyTypeId" ] + "policyTypeIds" : [ "policyTypeId1", "policyTypeId2" ] } }, "RicInfoList" : { "value" : { "rics" : [ { - "ricId" : "ricId", - "managedElementIds" : [ "managedElementId", "managedElementId" ], + "ricId" : "ricId1", + "managedElementIds" : [ "managedElementId1", "managedElementId2" ], "state" : "UNAVAILABLE", - "policyTypeIds" : [ "policyTypeId", "policyTypeId" ] + "policyTypeIds" : [ "policyTypeId1", "policyTypeId2" ] }, { - "ricId" : "ricId", - "managedElementIds" : [ "managedElementId", "managedElementId" ], + "ricId" : "ricId2", + "managedElementIds" : [ "managedElementId3", "managedElementId4" ], "state" : "UNAVAILABLE", - "policyTypeIds" : [ "policyTypeId", "policyTypeId" ] + "policyTypeIds" : [ "policyTypeId3", "policyTypeId4" ] } ] } }, @@ -1839,16 +1862,16 @@ "PolicyTypeInformation" : { "value" : [ { "policyTypeId" : "STD_QOS2_0.1.0", - "nearRtRicId" : "ricsim_g3_2" + "nearRtRicId" : "ric_g3_2" }, { "policyTypeId" : "STD_QOS_0_2_0", - "nearRtRicId" : "ricsim_g3_2" + "nearRtRicId" : "ric_g3_2" }, { "policyTypeId" : "STD_QOS2_0.1.0", - "nearRtRicId" : "ricsim_g3_1" + "nearRtRicId" : "ric_g3_1" }, { "policyTypeId" : "STD_QOS_0_2_0", - "nearRtRicId" : "ricsim_g3_1" + "nearRtRicId" : "ric_g3_1" } ] }, "PolicyTypeObject" : { @@ -1996,7 +2019,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -2034,7 +2057,7 @@ "example" : { "status" : 423, "title" : "Locked", - "detail" : "State is Locked in the provided request." + "detail" : "State is Locked in the provided request." }, "schema" : { "$ref" : "#/components/schemas/ErrorInformation" @@ -2046,14 +2069,14 @@ }, "schemas" : { "PolicyTypeInformation" : { - "description" : "Available policy types and for each policy type identifier the Near-RT RIC identifiers of those Near-RT RICs that support the related A1 policy type", + "description" : "A data tuple to indicate that an identified A1 Policy Type is supported at an identified Near-RT RIC.", "example" : { "policyTypeId" : "STD_QOS2_0.1.0", - "nearRtRicId" : "ricsim_g3_2" + "nearRtRicId" : "ric_g3_2" }, "properties" : { "policyTypeId" : { - "description" : "Identity of the policy type", + "description" : "A1 Policy Type identifier", "type" : "string" }, "nearRtRicId" : { @@ -2064,36 +2087,36 @@ "type" : "object" }, "PolicyObjectInformation" : { - "description" : "Information related to the creation of the policy", + "description" : "Information to create an A1 Policy Instance", "properties" : { "nearRtRicId" : { "description" : "Identity of the target Near-RT RIC", - "example" : "Near-RT-Ric-ID", + "example" : "Near-RT-Ric-ID1", "type" : "string" }, "transient" : { "default" : false, - "description" : "If true, the policy is deleted at RIC restart. If false, its value is maintained by this service until explicitly deleted. Default false.", + "description" : "If true, the policy is automatically deleted if the targeted Near-RT RIC restarts or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.\n", "nullable" : false, "type" : "boolean" }, "policyId" : { - "description" : "The identity of the Policy. If this value is present, it must be unique; otherwise, a random UUID is generated.", - "example" : "POLICY-ID", + "description" : "An optional identity to be used for the new A1 Policy Instance. If this value is present, it must be unique. If not present the new A1 Policy Instance will be assigned a newly generated unique ID, and the new ID can be extracted from the 'Location' header in the response.\n", + "example" : "POLICY-ID1", "type" : "string" }, "serviceId" : { "default" : "", - "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered.", - "example" : "rApp ID", + "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered. If the service is registered, the newly created A1 Policy Instance will be subject to the same supervision rules as the the service's other policies.", + "example" : "rApp 1", "type" : "string" }, "policyObject" : { "$ref" : "#/components/schemas/PolicyObject" }, "policyTypeId" : { - "description" : "Identity of the policy type", - "example" : "ORAN_QOS_1.0.0(typeName_SemVersion)", + "description" : "A1 Policy Type identity", + "example" : "ORAN_QOS_1.0.0 '(typeName_SemVersion)'", "type" : "string" } }, @@ -2104,7 +2127,7 @@ "description" : "Problem as defined in https://tools.ietf.org/html/rfc7807", "properties" : { "detail" : { - "description" : " A human-readable explanation specific to this occurrence of the problem.", + "description" : "A human-readable explanation specific to this occurrence of the problem.", "example" : "Policy type not found", "type" : "string" }, @@ -2114,7 +2137,7 @@ "type" : "string" }, "status" : { - "description" : "The HTTP status code generated by the origin server for this occurrence of the problem. ", + "description" : "The HTTP status code generated by the origin server for this occurrence of the problem.\n", "example" : 404, "format" : "int32", "type" : "integer" @@ -2123,16 +2146,16 @@ "type" : "object" }, "PolicyObject" : { - "description" : "Policy Object is a JSON representation of an A1 policy", + "description" : "Policy Object is a JSON representation policy data for an A1 Policy Instance. The schema for this policy data is defined in the corresponding A1 Policy Type. \n", "type" : "object" }, "PolicyTypeObject" : { - "description" : "policy type object as defined in A1TD", + "description" : "An A1 Policy Type, as defined in O-RAN Alliance A1TD", "example" : { "policySchema" : { "$schema" : "http://json-schema.org/draft-07/schema#", "title" : "STD_QOS_0_2_0", - "description" : "STD QOS policy type", + "description" : "Policy data schema for STD_QOS_0.2.0 A1 Policy Instances.", "type" : "object", "properties" : { "scope" : { @@ -2163,7 +2186,7 @@ "statusSchema" : { "$schema" : "http://json-schema.org/draft-07/schema#", "title" : "STD_QOS_0.2.0", - "description" : "STD QOS policy type status", + "description" : "Status schema for STD_QOS_0.2.0 A1 Policy Instances.", "type" : "object", "properties" : { "enforceStatus" : { @@ -2189,15 +2212,15 @@ "type" : "object" }, "PolicySchema" : { - "description" : "The schemas are policy type specific", + "description" : "A schema to define the policy data contents of A1 Policy Instances. Policy data schemas are Policy Type specific. All A1 Policy Instances of an A1 Policy Type should comply with the type's policy data schema.\n", "type" : "object" }, "StatusSchema" : { - "description" : "The optional schema for policy status", + "description" : "A schema to define the contents of the status information for A1 Policy Instances. Status schemas are Policy Type specific. All status information for all A1 Policy Instances of an A1 Policy Type should comply with the type's status schema.\n", "type" : "object" }, "PolicyStatusObject" : { - "description" : "A generic policy status object that can be used to transport any policy status. Additionally, a policy status shall be valid according to the schema of its specific policy type.", + "description" : "A generic policy status object that can be used to transport any policy status. Additionally, a schema for policy status can be defined in the corresponding A1 Policy Type.\n", "type" : "object" }, "void" : { @@ -2207,26 +2230,12 @@ "StatusInfo" : { "properties" : { "status" : { - "description" : "status text", + "description" : "Status text", "type" : "string" } }, "type" : "object" }, - "AuthorizationResult" : { - "description" : "Result of authorization", - "example" : { - "result" : true - }, - "properties" : { - "result" : { - "description" : "If true, the access is granted", - "type" : "boolean" - } - }, - "required" : [ "result" ], - "type" : "object" - }, "RicInfo" : { "description" : "Information for a Near-RT RIC", "properties" : { @@ -2235,22 +2244,22 @@ "type" : "string" }, "managedElementIds" : { - "description" : "O1 identities for managed entities", + "description" : "Identities for managed entities", "items" : { - "description" : "O1 identities for managed entities", + "description" : "Identity for a managed entity", "type" : "string" }, "type" : "array" }, "state" : { - "description" : "Represents the states for a Near-RT RIC", + "description" : "Represents the state of a Near-RT RIC", "enum" : [ "UNAVAILABLE", "AVAILABLE", "SYNCHRONIZING", "CONSISTENCY_CHECK" ], "type" : "string" }, "policyTypeIds" : { - "description" : "supported policy types", + "description" : "Supported A1 Policy Types", "items" : { - "description" : "supported policy types", + "description" : "Supported A1 Policy Type ID", "type" : "string" }, "type" : "array" @@ -2259,10 +2268,10 @@ "type" : "object" }, "ServiceRegistrationInfo" : { - "description" : "Information for one service", + "description" : "Information for a service to be registered", "properties" : { "callbackUrl" : { - "description" : "callback for notifying of Near-RT RIC state changes", + "description" : "Callback URL for notifying of Near-RT RIC state changes", "type" : "string" }, "serviceId" : { @@ -2270,7 +2279,7 @@ "type" : "string" }, "keepAliveIntervalSeconds" : { - "description" : "keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.", + "description" : "Keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n", "format" : "int64", "type" : "integer" } @@ -2278,24 +2287,11 @@ "required" : [ "serviceId" ], "type" : "object" }, - "PolicyStatusInfo" : { - "description" : "Status for one A1-P Policy", - "properties" : { - "lastModified" : { - "description" : "timestamp, last modification time", - "type" : "string" - }, - "status" : { - "description" : "the Policy status", - "type" : "object" - } - }, - "type" : "object" - }, "ServiceStatus" : { + "description" : "Information about a previously registered service", "properties" : { "callbackUrl" : { - "description" : "callback for notifying of RIC synchronization", + "description" : "Callback URL for notifying of Near-RT RIC state changes", "type" : "string" }, "serviceId" : { @@ -2303,12 +2299,12 @@ "type" : "string" }, "keepAliveIntervalSeconds" : { - "description" : "policy keep alive timeout", + "description" : "Keep alive interval (seconds) for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n", "format" : "int64", "type" : "integer" }, "timeSinceLastActivitySeconds" : { - "description" : "time since last invocation by the service", + "description" : "Time (seconds) since last recorded operation by the service", "format" : "int64", "type" : "integer" } @@ -2316,10 +2312,10 @@ "type" : "object" }, "RicInfoList" : { - "description" : "List of Near-RT RIC information", + "description" : "Collection of Near-RT RIC information objects", "properties" : { "rics" : { - "description" : "List of Near-RT RIC information", + "description" : "List of Near-RT RIC information objects", "items" : { "$ref" : "#/components/schemas/RicInfo" }, @@ -2328,45 +2324,15 @@ }, "type" : "object" }, - "input" : { - "description" : "input", - "properties" : { - "accessType" : { - "description" : "Access type", - "enum" : [ "READ", "WRITE", "DELETE" ], - "type" : "string" - }, - "authToken" : { - "description" : "Authorization token", - "type" : "string" - }, - "policyTypeId" : { - "description" : "Policy type identifier", - "type" : "string" - } - }, - "required" : [ "accessType", "authToken", "policyTypeId" ], - "type" : "object" - }, - "PolicyAuthorization" : { - "description" : "Authorization request for A1 policy requests", - "properties" : { - "input" : { - "$ref" : "#/components/schemas/input" - } - }, - "required" : [ "input" ], - "type" : "object" - }, "NearRtRicId" : { - "description" : "Identity of the policy", + "description" : "Identity of the Near-RT RIC", "type" : "string" }, "PolicyInformation" : { - "description" : "Near-RT RIC identifiers where A1 policies exist and for each Near-RT RIC identifier the policy identifiers of those policies that exist in that Near-RT RIC", + "description" : "Information tuple for a single A1 Policy Instance. Contains the A1 Policy Instance ID, and the ID of the Near-RT RIC where the policy is created. \n", "properties" : { "policyId" : { - "description" : "Identity of the policy", + "description" : "Identity of the A1 Policy Instance", "type" : "string" }, "nearRtRicId" : { @@ -2379,7 +2345,7 @@ "ServiceStatusList" : { "properties" : { "serviceList" : { - "description" : "List of service information", + "description" : "List of Service Status objects, describing a collection of registered services.", "items" : { "$ref" : "#/components/schemas/ServiceStatus" }, @@ -2389,14 +2355,14 @@ "type" : "object" }, "ServiceCallbackInfo" : { - "description" : "Information transferred as in Service callbacks (callback_url)", + "description" : "Information transferred in Service callbacks, \nif a callback URL was provided for a registered service\n", "properties" : { "ricId" : { "description" : "Identity of a Near-RT RIC", "type" : "string" }, "eventType" : { - "description" : "values:\nAVAILABLE: the Near-RT RIC has become available for A1 Policy management", + "description" : "values: \n AVAILABLE: the Near-RT RIC has become available for A1 Policy management\n", "enum" : [ "AVAILABLE" ], "type" : "string" } @@ -2404,34 +2370,23 @@ "required" : [ "eventType", "ricId" ], "type" : "object" }, - "Link" : { - "properties" : { - "templated" : { - "type" : "boolean" - }, - "href" : { - "type" : "string" - } - }, - "type" : "object" - }, "ProblemDetails" : { - "description" : "A problem detail to carry details in an HTTP response according to RFC 7807", + "description" : "Object to carry details about a problem in an HTTP response according to IETF RFC 7807", "properties" : { "type" : { - "description" : "a URI reference according to IETF RFC 3986 that identifies the problem type", + "description" : "URI reference according to IETF RFC 3986 that identifies the problem type", "type" : "string" }, "title" : { - "description" : "human-readable summary of the problem type", + "description" : "Human-readable summary of the problem type", "type" : "string" }, "status" : { - "description" : "the HTTP status code", + "description" : "HTTP status code", "type" : "number" }, "detail" : { - "description" : "human-readable explanation ", + "description" : "Human-readable explanation", "type" : "string" }, "instance" : { diff --git a/a1-policy-management/api/offeredapis/swagger/pms-api-v3.yaml b/a1-policy-management/api/offeredapis/swagger/pms-api-v3.yaml index 4df9d61a..5ee5cb9d 100644 --- a/a1-policy-management/api/offeredapis/swagger/pms-api-v3.yaml +++ b/a1-policy-management/api/offeredapis/swagger/pms-api-v3.yaml @@ -1,5 +1,6 @@ # ============LICENSE_START======================================================= -# Copyright (C) 2024 - 2025 OpenInfra Foundation Europe. All rights reserved. +# Copyright (C) 2020-2023 Nordix Foundation. All rights reserved. +# Copyright (C) 2023-2025 OpenInfra Foundation Europe. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -18,62 +19,76 @@ openapi: 3.0.3 info: - title: 'A1 policy management API' + title: ONAP CCSDK - A1 Policy Management API version: 1.0.0 - x-api-id: a31c510b-20e6-4a08-af16-368c44d7fba8 + x-api-id: e9776a07-0813-4fca-9801-6f892f0a7c13 x-audience: external-public description: "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service\ - \ provides a REST API for managemecnt of A1 policies. <br/>The main tasks of the\ - \ service are:</p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring\ - \ and maintaining consistency of the SMO view of A1 policies and the Near-RT RICs</li><li>Maintaining\ - \ a view of supported Near-RT RIC policy types</li><li>Supervision of using services\ - \ (R-APPs). When a service is unavailable, its policies are removed.</li></ul><h2>APIs\ - \ provided or defined by the service</h2><h3>A1 Policy Management</h3><p>This\ - \ is an API for management of A1 Policies.</p><ul><li>A1 Policy retrieval, creation,\ - \ modification and deletion.</li><li>Retrieval of supported A1 Policy types for\ - \ a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management\ - \ of configuration</h3><p>API for updating and retrieval of the component configuration.\ - \ Note that there other ways to maintain the configuration.</p><h3>Service callbacks</h3><p>These\ - \ are endpoints that are invoked by this service. The callbacks are registered\ - \ in this service at service registration.</p><h3>NearRT-RIC Repository</h3><p>This\ - \ is an API that provides support for looking up a NearRT-RIC. Each A1 policy\ - \ is targeted for one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision\ - \ of the PMS component.</p><h3>Service Registry and Supervision</h3><p>API used\ - \ for registering services that uses PMS. Each A1 policy is optionally owned by\ - \ a service. PMS can supervise each registered service by a heart-beat supervision\ - \ and will automatically remove policies for unavailable services. Note that a\ - \ service does not need to be registered in order to create A1 Policies. This\ - \ is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used\ - \ for access control of A1 Policy access. If configured, an external authorization\ - \ provider is requested to grant access to the A1 Policy type.</p>" + \ provides a REST API for managing A1 policies. <br/>This document describes the latest API set + \ to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring\ + \ and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining\ + \ a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services\ + \ (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs\ + \ provided or defined by the service</h2>\ + \ <p>Note: parts of this API are strongly based on extracts of the O-RAN Alliance R1 Interface specification\ + \ for A1 Policy Management, and those parts should be considered '© O-RAN ALLIANCE - All rights reserved.'</p>\ + \ <h3>A1 Policy Management</h3>\ + \ <p>This is the latest API for managing A1 Policies. This API is partially compliant with O-RAN\ + \ Alliance R1 Interface specifications for A1 Policy Management:</p><ul><li>A1 Policy retrieval, creation,\ + \ modification and deletion.</li><li>Retrieval of supported A1 Policy Types for\ + \ a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management\ + \ of configuration</h3><p>API for updating and retrieval of the component configuration.\ + \ Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These\ + \ are endpoints that are invoked by this service. The callbacks are registered\ + \ in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3>\ + \ <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy\ + \ is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision\ + \ of the A1 Policy Management Service.</p><h3>Service Registry and Supervision</h3>\ + \ <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner.\ + \ If the owner service is registered, then the service can be monitored by a heart-beat supervision\ + \ mechanism, and if the registered service becomes unavailable, then its A1 Policies are removed. Note \ + \ that services do not need to be registered to create A1 Policies, but unregistered services are not \ + \ supervised. This is a feature that is optional to use.</p>" license: name: Copyright (C) 2024 - 2025 OpenInfra Foundation Europe. Licensed under the Apache 2 License. url: http://www.apache.org/licenses/LICENSE-2.0 contact: url: https://www.onap.org/ email: discuss-list@onap.com +externalDocs: + description: 'Based on parts of O-RAN ALLIANCE specification: O-RAN.WG2.R1AP-v07.00' + url: 'https://www.o-ran.org/specifications' servers: - url: '{apiRoot}/a1-policy-management/v1' variables: apiRoot: default: 'https://example.com' description: 'This is the Host:Port or Address where the A1-Policy Management Service can be accessed. - Note: This URL path format aligns with the O-RAN Alliance (r) R1-AP specifiactions for A1 Policy Management' + Note: This URL path format aligns with the O-RAN Alliance R1-AP specifications for A1 Policy Management' tags: - name: A1 Policy Management - description: "**(Newer Version)** API used to create polices, Policy Instances and get \ them as individual using an ID or get all policies/Instances." + description: > + API used to get, create, update and delete A1 Policy Instances. Also used to query A1 Policy Types. - name: NearRT-RIC Repository - description: "API used to get the NearRT-RIC for the managed element." + description: > + API used to get information about registered Near-RT RICs. - name: Service Registry and Supervision - description: "API used to keep the service Alive with in the timeout period" + description: > + API used to manage registered services, and control their keep-alive status via heart-beat messages. - name: Health Check - description: "API used to get the health status and statistics of this service" + description: > + API used to get the health status and statistics of this service. - name: Configuration - description: "API used to create or fetch the application configuration." + description: > + API used to create or fetch the application configuration. paths: /status: get: operationId: getStatus + description: Returns status and statistics of this service + summary: Get Status (getStatus) + tags: + - Health Check responses: "200": content: @@ -86,13 +101,13 @@ paths: description: OK- Service is living Ok "404": $ref: '#/components/responses/404' - description: Returns status and statistics of this service - tags: - - Health Check /rics/{ricId}: get: - description: A ricId path parameter must be specified to retrieve associated ric infomation operationId: getRic + description: Get information about a Near-RT RIC + summary: Get a Near-RT RIC (getRic) + tags: + - NearRT-RIC Repository parameters: - description: The identity of a Near-RT RIC to get information for. explode: true @@ -102,7 +117,6 @@ paths: schema: type: string nullable: false - style: form - description: Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. in: header @@ -122,16 +136,17 @@ paths: description: OK - Near-RT RIC is found OK "404": $ref: '#/components/responses/404' - summary: Returns info for one Near-RT RIC - tags: - - NearRT-RIC Repository /rics: get: - description: The call returns all Near-RT RICs that supports a given policy - type identity operationId: getRics + description: Get all Near-RT RICs that supports a given A1 Policy Type ID + summary: Get Near-RT RICs for A1 Policy Type (getRics) + tags: + - NearRT-RIC Repository parameters: - - description: "The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned" + - description: > + The identity of an A1 Policy Type. If given, all Near-RT RICs supporting + the A1 Policy Type are returned. explode: true in: query name: policyTypeId @@ -158,12 +173,13 @@ paths: description: OK "404": $ref: '#/components/responses/404' - summary: Query Near-RT RIC information - tags: - - NearRT-RIC Repository /policy-types: get: + description: Query A1 Policy Type identities using query parameters operationId: getPolicyTypes + summary: Get A1 Policy Types (getPolicyTypes) + tags: + - A1 Policy Management parameters: - description: Select types for the given Near-RT RIC identity. explode: true @@ -173,8 +189,7 @@ paths: schema: type: string style: form - - description: Select types with the given type name (type identity has the - format <typename_version>) + - description: Select types compatible with the given type name (type identity has the format 'typename_version') explode: true in: query name: typeName @@ -182,8 +197,9 @@ paths: schema: type: string style: form - - description: Select types that are compatible with the given version. This - parameter is only applicable in conjunction with type_name. As an example + - description: > + Select types that are compatible with the given version. This + parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. explode: true @@ -230,12 +246,13 @@ paths: $ref: '#/components/responses/502' '503': $ref: '#/components/responses/503' - description: Query policy type identities - tags: - - A1 Policy Management /policy-types/{policyTypeId}: get: operationId: getPolicyTypeDefinition + description: Get an A1 Policy Type definition using its policy type ID + summary: Get an A1 Policy Type definition (getPolicyTypeDefinition) + tags: + - A1 Policy Management parameters: - explode: false in: path @@ -260,7 +277,7 @@ paths: examples: PolicyTypeObject: $ref: '#/components/examples/PolicyTypeObject' - description: OK - schema of the given policy type + description: OK - details and schema of the requested A1 Policy Type '400': $ref: '#/components/responses/400' '401': @@ -279,12 +296,13 @@ paths: $ref: '#/components/responses/502' '503': $ref: '#/components/responses/503' - description: Returns a policy type definition - tags: - - A1 Policy Management /policies/{policyId}: put: - operationId: putPolicy + operationId: updatePolicy + description: Update an existing A1 Policy instance's policy data using its policy ID. + summary: Update an A1 Policy's policy data (updatePolicy) + tags: + - A1 Policy Management parameters: - name: policyId in: path @@ -333,12 +351,12 @@ paths: $ref: '#/components/responses/502' '503': $ref: '#/components/responses/503' - description: update a policy - tags: - - A1 Policy Management delete: - description: Deleting the policy using policyId. operationId: deletePolicy + description: Delete an existing A1 Policy instance using its policy ID. + summary: Delete an A1 Policy instance (deletePolicy) + tags: + - A1 Policy Management parameters: - explode: false in: path @@ -379,11 +397,12 @@ paths: $ref: '#/components/responses/502' '503': $ref: '#/components/responses/503' - summary: Delete a policy - tags: - - A1 Policy Management get: operationId: getPolicy + description: Get an A1 Policy instance's policy data using its policy ID + summary: Get an A1 Policy's policy data (getPolicy) + tags: + - A1 Policy Management parameters: - explode: false in: path @@ -427,12 +446,13 @@ paths: $ref: '#/components/responses/502' '503': $ref: '#/components/responses/503' - description: Returns a policy - tags: - - A1 Policy Management /policies/{policyId}/status: get: operationId: getPolicyStatus + description: Retrieve the status information for an A1 Policy Instance using its policy ID. + summary: Get an A1 Policy Instance's status (getPolicyStatus) + tags: + - A1 Policy Management parameters: - explode: false in: path @@ -473,18 +493,17 @@ paths: $ref: '#/components/responses/502' '503': $ref: '#/components/responses/503' - description: 'Query a policy status' - tags: - - A1 Policy Management - /policies: get: - description: "Returns a list of A1 policies matching given search criteria.\ - \ <br>If several query parameters are defined, the policies matching all conditions\ - \ are returned." - operationId: getAllPolicies + operationId: getPolicyIds + description: > + Returns a collection of A1 Policy Instance IDs for policies that match given search criteria. + If several query parameters are defined, the policies matching all conditions are returned. + summary: Query for A1 Policy instances (getPolicyIds) + tags: + - A1 Policy Management parameters: - - description: Select policies of a given policy type identity. + - description: Select policies with a given A1 Policy Type ID. explode: true in: query name: policyTypeId @@ -492,7 +511,7 @@ paths: schema: type: string style: form - - description: Select policies of a given Near-RT RIC identity. + - description: Select policies for a given Near-RT RIC identity. explode: true in: query name: nearRtRicId @@ -500,7 +519,7 @@ paths: schema: type: string style: form - - description: Select policies owned by a given service. + - description: Select policies owned by a given service (registered or unregistered). explode: true in: query name: serviceId @@ -508,8 +527,7 @@ paths: schema: type: string style: form - - description: Select policies of types with the given type name (type identity - has the format <typename_version>) + - description: Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). explode: true in: query name: typeName @@ -551,11 +569,12 @@ paths: $ref: '#/components/responses/502' '503': $ref: '#/components/responses/503' - summary: Query policy identities - tags: - - A1 Policy Management post: operationId: createPolicy + description: Create an A1 Policy Instance + summary: Create an A1 Policy Instance (createPolicy) + tags: + - A1 Policy Management requestBody: required: true content: @@ -571,7 +590,10 @@ paths: $ref: '#/components/schemas/PolicyObjectInformation' headers: Location: - description: 'Contains the URI of the newly created resource' + description: > + Contains the URI of the newly created A1 Policy Instances. + This URI includes the A1 Policy Instance ID for the newly + created policy instance. required: true schema: type: string @@ -609,12 +631,13 @@ paths: $ref: '#/components/responses/502' '503': $ref: '#/components/responses/503' - description: 'To create A1 policies' - tags: - - A1 Policy Management /configuration: get: operationId: getConfiguration + description: Returns the entire contents of the Application Configuration. + tags: + - Configuration + summary: Get the Application Configuration (getConfiguration) responses: "200": content: @@ -624,12 +647,16 @@ paths: description: OK - Application configuration received "404": $ref: '#/components/responses/404' - - description: Returns the contents of the application configuration - tags: - - Configuration put: operationId: putConfiguration + description: > + Replace the current Application Configuration with a new configuration. + The new configuration, if accepted, will take effect after a short delay. + The new configuration must comply with the Application Configuration schema, + which can be found from the the Application Documentation (Developer Guide) + tags: + - Configuration + summary: Set/Replace the Application Configuration (putConfiguration) requestBody: content: application/json: @@ -645,17 +672,17 @@ paths: description: OK - Configuration updated "400": $ref: '#/components/responses/400' - description: Replace the current configuration file with the given configuration - tags: - - Configuration /services/{serviceId}/keepalive: put: - description: A registered service should invoke this operation regularly to - indicate that it is still alive. If a registered service fails to invoke this - operation before the end of a timeout period the service will be deregistered - and all its A1 policies wil be removed. (This timeout can be set or disabled - when each service is initially registered) operationId: keepAliveService + description: A registered service should invoke this operation regularly to + indicate that it is still alive. If a registered service fails to invoke some operation, + or this operation, before the end of a timeout period the service will be deregistered + and all its A1 policies wil be removed. This operation is only intended for registered + services. (This timeout can be set or disabled when each service is initially registered) + summary: Heartbeat message from a service (keepAliveService) + tags: + - Service Registry and Supervision parameters: - explode: false in: path @@ -683,19 +710,22 @@ paths: 'application/json': schema: type: object - description: "OK - Service supervision timer refreshed, OK" + description: OK - Service supervision timer refreshed, OK "404": $ref: '#/components/responses/404' - summary: Heartbeat indicates that the service is running - tags: - - Service Registry and Supervision /services: get: - description: Either information about a registered service with given identity - or all registered services are returned. operationId: getServices + description: > + Get information about all registered services, or a single registered service. + If the service ID of a registered service is included in the query, information about that + service is returned. Otherwise Information about all registered is returned. + This operation does not retrieve information about unregistered services. + summary: Get Services (getServices) + tags: + - Service Registry and Supervision parameters: - - description: The identity of the service + - description: The identity of the registered service explode: true in: query name: serviceId @@ -722,16 +752,19 @@ paths: description: OK "404": $ref: '#/components/responses/404' - summary: Returns service information - tags: - - Service Registry and Supervision put: - description: "Registering a service is needed to:<ul><li>Get callbacks about\ - \ available NearRT RICs.</li><li>Activate supervision of the service. If a\ - \ service is inactive, its policies will automatically be deleted.</li></ul>Policies\ - \ can be created even if the service is not registerred. This is a feature\ - \ which it is optional to use." operationId: putService + description: > + Register a single service, or update a previous registration. + Service registration is required to get callbacks about available NearRT RICs + and to enable supervision of the service's active status. If a registered + service becomes inactive, its policies can be automatically deleted. + A1 Policy instances can also be created for unregistered services. + If an unregistered service is later registered, the service's policies are + retained when the service becomes registered. This feature is optional to use. + summary: Register or update a Service (putService) + tags: + - Service Registry and Supervision requestBody: content: application/json: @@ -753,15 +786,17 @@ paths: description: Created - Service created "400": $ref: '#/components/responses/400' - summary: Register a service - tags: - - Service Registry and Supervision callbacks: RICStatus: "{$request.body#/callback_url}": post: - description: 'The URL to this call is registered at Service registration. <br>Callouts to indicate status changes relevant for Services. Note that these calls are called by A1-PMS and they are not provided.' operationId: serviceCallback + description: | + Callouts to indicate Near-RT RIC status changes relevant for Services. + The URL invoked by this callback is provided at Service registration. + summary: Callback for Near-RT RIC status (serviceCallback) + tags: + - Service Registry and Supervision requestBody: content: application/json: @@ -777,10 +812,16 @@ paths: description: OK "404": $ref: '#/components/responses/404' - summary: "Callback for Near-RT RIC status." /services/{serviceId}: delete: operationId: deleteService + description: > + Unregister a registered Service using its service ID. + Only registered services can be unregistered. All A1 Policy Instances + for the previously registered service will be removed. + tags: + - Service Registry and Supervision + summary: Unregister a Service (deleteService) parameters: - explode: false in: path @@ -805,55 +846,54 @@ paths: description: No Content - Service unregistered "404": $ref: '#/components/responses/404' - description: Unregister a service - tags: - - Service Registry and Supervision + components: + examples: ServiceStatusList: description: List of service information value: serviceList: - - callbackUrl: callbackUrl - serviceId: serviceId - keepAliveIntervalSeconds: 0 - timeSinceLastActivitySeconds: 6 - - callbackUrl: callbackUrl - serviceId: serviceId + - callbackUrl: http://callback.url + serviceId: serviceId1 keepAliveIntervalSeconds: 0 timeSinceLastActivitySeconds: 6 + - callbackUrl: http://callback.url + serviceId: serviceId2 + keepAliveIntervalSeconds: 500 + timeSinceLastActivitySeconds: 401 StatusInfo: value: - status: status + status: success RicInfo: value: - ricId: ricId + ricId: ricId1 managedElementIds: - - managedElementId - - managedElementId + - managedElementId1 + - managedElementId2 state: UNAVAILABLE policyTypeIds: - - policyTypeId - - policyTypeId + - policyTypeId1 + - policyTypeId2 RicInfoList: value: rics: - - ricId: ricId + - ricId: ricId1 managedElementIds: - - managedElementId - - managedElementId + - managedElementId1 + - managedElementId2 state: UNAVAILABLE policyTypeIds: - - policyTypeId - - policyTypeId - - ricId: ricId + - policyTypeId1 + - policyTypeId2 + - ricId: ricId2 managedElementIds: - - managedElementId - - managedElementId + - managedElementId3 + - managedElementId4 state: UNAVAILABLE policyTypeIds: - - policyTypeId - - policyTypeId + - policyTypeId3 + - policyTypeId4 PolicyObject: value: scope: @@ -885,13 +925,13 @@ components: PolicyTypeInformation: value: - policyTypeId: STD_QOS2_0.1.0 - nearRtRicId: ricsim_g3_2 + nearRtRicId: ric_g3_2 - policyTypeId: STD_QOS_0_2_0 - nearRtRicId: ricsim_g3_2 + nearRtRicId: ric_g3_2 - policyTypeId: STD_QOS2_0.1.0 - nearRtRicId: ricsim_g3_1 + nearRtRicId: ric_g3_1 - policyTypeId: STD_QOS_0_2_0 - nearRtRicId: ricsim_g3_1 + nearRtRicId: ric_g3_1 PolicyTypeObject: value: policySchema: @@ -919,16 +959,15 @@ components: additionalProperties: false required: - priorityLevel + schemas: PolicyTypeInformation: description: >- - Available policy types and for each policy type identifier the Near-RT - RIC identifiers of those Near-RT RICs that support the related A1 policy - type + A data tuple to indicate that an identified A1 Policy Type is supported at an identified Near-RT RIC. type: object properties: policyTypeId: - description: Identity of the policy type + description: A1 Policy Type identifier type: string nearRtRicId: $ref: '#/components/schemas/NearRtRicId' @@ -937,42 +976,50 @@ components: - nearRtRicId example: policyTypeId: STD_QOS2_0.1.0 - nearRtRicId: ricsim_g3_2 + nearRtRicId: ric_g3_2 PolicyObjectInformation: - description: Information related to the creation of the policy + description: Information to create an A1 Policy Instance type: object properties: nearRtRicId: description: Identity of the target Near-RT RIC type: string example: - 'Near-RT-Ric-ID' + 'Near-RT-Ric-ID1' transient: default: false - description: "If true, the policy is deleted at RIC restart. If false, its\ - \ value is maintained by this service until explicitly deleted. Default\ - \ false." + description: > + If true, the policy is automatically deleted if the targeted Near-RT RIC restarts + or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted + Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and + must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false. nullable: false type: boolean policyId: - description: The identity of the Policy. If this value is present, it must be unique; otherwise, a random UUID is generated. + description: > + An optional identity to be used for the new A1 Policy Instance. + If this value is present, it must be unique. If not present the new A1 + Policy Instance will be assigned a newly generated unique ID, and the + new ID can be extracted from the 'Location' header in the response. type: string example: - 'POLICY-ID' + 'POLICY-ID1' serviceId: description: the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated - to a service). Note that the service does not need to be registered. + to a service). Note that the service does not need to be registered. + If the service is registered, the newly created A1 Policy Instance will be + subject to the same supervision rules as the the service's other policies. type: string example: - 'rApp ID' + 'rApp 1' default: "" policyObject: $ref: '#/components/schemas/PolicyObject' policyTypeId: - description: Identity of the policy type + description: A1 Policy Type identity type: string - example: 'ORAN_QOS_1.0.0(typeName_SemVersion)' + example: ORAN_QOS_1.0.0 '(typeName_SemVersion)' required: - nearRtRicId - policyObject @@ -981,26 +1028,27 @@ components: description: Problem as defined in https://tools.ietf.org/html/rfc7807 properties: detail: - description: ' A human-readable explanation specific to this occurrence - of the problem.' + description: A human-readable explanation specific to this occurrence of the problem. example: Policy type not found type: string title: - description: 'A specific error name' + description: A specific error name type: string example: Not Found status: - description: 'The HTTP status code generated by the origin server for this - occurrence of the problem. ' + description: | + The HTTP status code generated by the origin server for this occurrence of the problem. example: 404 format: int32 type: integer type: object PolicyObject: - description: 'Policy Object is a JSON representation of an A1 policy' + description: > + Policy Object is a JSON representation policy data for an A1 Policy Instance. + The schema for this policy data is defined in the corresponding A1 Policy Type. type: object PolicyTypeObject: - description: 'policy type object as defined in A1TD' + description: An A1 Policy Type, as defined in O-RAN Alliance A1TD type: object properties: policySchema: @@ -1008,12 +1056,12 @@ components: statusSchema: $ref: '#/components/schemas/StatusSchema' required: - - "policySchema" + - policySchema example: policySchema: "$schema": http://json-schema.org/draft-07/schema# title: STD_QOS_0_2_0 - description: STD QOS policy type + description: Policy data schema for STD_QOS_0.2.0 A1 Policy Instances. type: object properties: scope: @@ -1038,7 +1086,7 @@ components: statusSchema: "$schema": http://json-schema.org/draft-07/schema# title: STD_QOS_0.2.0 - description: STD QOS policy type status + description: Status schema for STD_QOS_0.2.0 A1 Policy Instances. type: object properties: enforceStatus: @@ -1049,13 +1097,22 @@ components: required: - enforceStatus PolicySchema: - description: 'The schemas are policy type specific' + description: > + A schema to define the policy data contents of A1 Policy Instances. + Policy data schemas are Policy Type specific. + All A1 Policy Instances of an A1 Policy Type should comply with the type's policy data schema. type: object StatusSchema: - description: 'The optional schema for policy status' + description: > + A schema to define the contents of the status information for A1 Policy Instances. + Status schemas are Policy Type specific. + All status information for all A1 Policy Instances of an A1 Policy Type should comply + with the type's status schema. type: object PolicyStatusObject: - description: 'A generic policy status object that can be used to transport any policy status. Additionally, a policy status shall be valid according to the schema of its specific policy type.' + description: > + A generic policy status object that can be used to transport any policy status. + Additionally, a schema for policy status can be defined in the corresponding A1 Policy Type. type: object void: description: Void/empty @@ -1063,7 +1120,7 @@ components: StatusInfo: properties: status: - description: status text + description: Status text type: string type: object RicInfo: @@ -1073,13 +1130,13 @@ components: description: Identity of the Near-RT RIC type: string managedElementIds: - description: O1 identities for managed entities + description: Identities for managed entities items: - description: O1 identities for managed entities + description: Identity for a managed entity type: string type: array state: - description: Represents the states for a Near-RT RIC + description: Represents the state of a Near-RT RIC enum: - UNAVAILABLE - AVAILABLE @@ -1087,72 +1144,80 @@ components: - CONSISTENCY_CHECK type: string policyTypeIds: - description: supported policy types + description: Supported A1 Policy Types items: - description: supported policy types + description: Supported A1 Policy Type ID type: string type: array type: object ServiceRegistrationInfo: - description: Information for one service + description: Information for a service to be registered properties: callbackUrl: - description: callback for notifying of Near-RT RIC state changes + description: Callback URL for notifying of Near-RT RIC state changes type: string serviceId: description: Identity of the service type: string keepAliveIntervalSeconds: - description: "keep alive interval for the service. This is used to enable\ - \ optional heartbeat supervision of the service. If set (> 0) the registered\ - \ service should regularly invoke a 'keepalive' REST call. When a service\ - \ fails to invoke this 'keepalive' call within the configured time, the\ - \ service is considered unavailable. An unavailable service will be automatically\ - \ deregistered and its policies will be deleted. Value 0 means timeout\ - \ supervision is disabled." + description: > + Keep alive interval for the service. This is used to enable + optional heartbeat supervision of the service. If set (> 0) the registered + service should regularly invoke a 'keepalive' REST call. When a service + fails to invoke this 'keepalive' call within the configured time, the + service is considered unavailable. An unavailable service will be automatically + deregistered and its policies will be deleted. Value 0 means timeout + supervision is disabled. format: int64 type: integer required: - serviceId type: object ServiceStatus: + description: Information about a previously registered service properties: callbackUrl: - description: callback for notifying of RIC synchronization + description: Callback URL for notifying of Near-RT RIC state changes type: string serviceId: description: Identity of the service type: string keepAliveIntervalSeconds: - description: policy keep alive timeout + description: > + Keep alive interval (seconds) for the service. This is used to enable + optional heartbeat supervision of the service. If set (> 0) the registered + service should regularly invoke a 'keepalive' REST call. When a service + fails to invoke this 'keepalive' call within the configured time, the + service is considered unavailable. An unavailable service will be automatically + deregistered and its policies will be deleted. Value 0 means timeout + supervision is disabled. format: int64 type: integer timeSinceLastActivitySeconds: - description: time since last invocation by the service + description: Time (seconds) since last recorded operation by the service format: int64 type: integer type: object RicInfoList: - description: List of Near-RT RIC information + description: Collection of Near-RT RIC information objects properties: rics: - description: List of Near-RT RIC information + description: List of Near-RT RIC information objects items: $ref: '#/components/schemas/RicInfo' type: array type: object NearRtRicId: - description: Identity of the policy + description: Identity of the Near-RT RIC type: string PolicyInformation: - description: >- - Near-RT RIC identifiers where A1 policies exist and for each Near-RT RIC - identifier the policy identifiers of those policies that exist in that - Near-RT RIC + description: > + Information tuple for a single A1 Policy Instance. + Contains the A1 Policy Instance ID, and the ID of the Near-RT RIC where the policy is created. type: object properties: policyId: - description: Identity of the policy + description: Identity of the A1 Policy Instance type: string nearRtRicId: $ref: '#/components/schemas/NearRtRicId' @@ -1162,20 +1227,23 @@ components: ServiceStatusList: properties: serviceList: - description: List of service information + description: List of Service Status objects, describing a collection of registered services. items: $ref: '#/components/schemas/ServiceStatus' type: array type: object ServiceCallbackInfo: - description: Information transferred as in Service callbacks (callback_url) + description: | + Information transferred in Service callbacks, + if a callback URL was provided for a registered service properties: ricId: description: Identity of a Near-RT RIC type: string eventType: - description: "values:\nAVAILABLE: the Near-RT RIC has become available\ - \ for A1 Policy management" + description: > + values: + AVAILABLE: the Near-RT RIC has become available for A1 Policy management enum: - AVAILABLE type: string @@ -1184,28 +1252,25 @@ components: - ricId type: object ProblemDetails: - description: >- - A problem detail to carry details in an HTTP response according to RFC - 7807 + description: Object to carry details about a problem in an HTTP response according to IETF RFC 7807 type: object properties: type: - description: >- - a URI reference according to IETF RFC 3986 that identifies the - problem type + description: URI reference according to IETF RFC 3986 that identifies the problem type type: string title: - description: human-readable summary of the problem type + description: Human-readable summary of the problem type type: string status: - description: the HTTP status code + description: HTTP status code type: number detail: - description: 'human-readable explanation ' + description: Human-readable explanation type: string instance: description: URI reference that identifies the specific occurrence of the problem type: string + responses: '400': description: Bad Request @@ -1292,7 +1357,7 @@ components: schema: $ref: '#/components/schemas/ProblemDetails' Locked: - description: "Locked - HTTP Status code which can be used when the state is Locked" + description: Locked - HTTP Status code which can be used when the state is Locked content: application/problem+json: schema: @@ -1300,4 +1365,4 @@ components: example: status: 423 title: Locked - detail: State is Locked in the provided request. + detail: State is Locked in the provided request. diff --git a/a1-policy-management/api/offeredapis/swagger/pms-api.json b/a1-policy-management/api/offeredapis/swagger/pms-api.json index 036e7fea..8434ba94 100644 --- a/a1-policy-management/api/offeredapis/swagger/pms-api.json +++ b/a1-policy-management/api/offeredapis/swagger/pms-api.json @@ -3,14 +3,15 @@ "info" : { "contact" : { "email" : "discuss-list@onap.com", + "name" : "ONAP CCSDK Project", "url" : "https://www.onap.org/" }, - "description" : "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managemecnt of A1 policies. <br/>The main tasks of the service are:</p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 policies and the Near-RT RICs</li><li>Maintaining a view of supported Near-RT RIC policy types</li><li>Supervision of using services (R-APPs). When a service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2><h3>A1 Policy Management</h3><p>This is an API for management of A1 Policies.</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository</h3><p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted for one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the PMS component.</p><h3>Service Registry and Supervision</h3><p>API used for registering services that uses PMS. Each A1 policy is optionally owned by a service. PMS can supervise each registered service by a heart-beat supervision and will automatically remove policies for unavailable services. Note that a service does not need to be registered in order to create A1 Policies. This is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used for access control of A1 Policy access. If configured, an external authorization provider is requested to grant access to the A1 Policy type.</p><h3>Spring Boot Actuator</h3><p>Provides generic functions used to monitor and manage the Spring web application.</p>", + "description" : "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes an older pre-spec API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2><h3>A1 Policy Management (Older pre-spec version) </h3> <p>This is an older API for managing A1 Policies:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service .</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then its A1 Policies are removed. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used for access control of A1 Policy access. If configured, an external authorization provider is requested to grant access to the A1 Policy Type.</p><h3>Spring Boot Actuator</h3><p>Provides built-in functions used to monitor and configure the Spring web application hosting the service.</p>", "license" : { - "name" : "Copyright (C) 2020-2023 Nordix Foundation, and Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved. Licensed under the Apache 2 License.", + "name" : "Copyright (C) 2020-2023 Nordix Foundation, and Copyright (C) 2024-2025 OpenInfra Foundation Europe. \nAll rights reserved. Licensed under the Apache 2 License.\n", "url" : "http://www.apache.org/licenses/LICENSE-2.0" }, - "title" : "ONAP CCSDK A1 Policy Management Service", + "title" : "ONAP CCSDK - Pre-Spec A1 Policy Management API", "version" : "1.3.0", "x-api-id" : "a31c510b-20e6-4a08-af16-368c44d7fba8", "x-audience" : "external-public" @@ -19,189 +20,53 @@ "url" : "/" } ], "tags" : [ { - "description" : "Older API used to create polices, Policy Instances and get them as individual using an ID or get all policies/Instances.", - "name" : "A1 Policy Management (Older version)" + "description" : "Older pre-spec API used to get, create, update and delete A1 Policy Instances. Also used to query A1 Policy Types.\n", + "name" : "A1 Policy Management" }, { - "description" : "API used to get the NearRT-RIC for the managed element.", + "description" : "Older API used to get information about registered Near-RT RICs.\n", "name" : "NearRT-RIC Repository" }, { - "description" : "API used to keep the service Alive with in the timeout period", + "description" : "Older API used to manage registered service, and control their keep-alive status via heart-beat messages.\n", "name" : "Service Registry and Supervision" }, { - "description" : "API used to get the health status and statistics of this service", + "description" : "API used to get the health status and statistics of this service\n", "name" : "Health Check" }, { - "description" : "Callouts to indicate status schanges relevant for Services. <br> Note that these calls are called by A1-PMS, not provided.", - "name" : "Service callbacks" + "description" : "Callout to registered services to indicate a status changes for a Near-RT RIC. Note that these operations are called by the A1 Policy Management Service, not provided.\n", + "name" : "Service Callbacks" }, { - "description" : "API used for authorization of information A1 policy access (this is provided by an authorization producer such as OPA). <br> Note that this API is called by A1-PMS, it is not provided.", + "description" : "API used for authorization of information A1 policy access (this is provided by an authorization producer such as OPA). Note that these operations are called by the A1 Policy Management Service, not provided.\n", "name" : "Authorization API" }, { - "description" : "API used to create or fetch the application configuration.", + "description" : "API used to create or fetch the application configuration.\n", "name" : "Configuration" }, { - "description" : "Monitor and interact", + "description" : "API used to monitor and configure the A1-PMS Springboot Service.\n", "externalDocs" : { "description" : "Spring Boot Actuator Web API Documentation", - "url" : "https://docs.spring.io/spring-boot/docs/current/actuator-api/html/" + "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html" }, - "name" : "Actuator" + "name" : "Actuator API" } ], "paths" : { - "/a1-policy/v2/policy-instances" : { - "get" : { - "description" : "Returns a list of A1 policies matching given search criteria. <br>If several query parameters are defined, the policies matching all conditions are returned.", - "operationId" : "getPolicyInstances", - "parameters" : [ { - "description" : "Select policies with a given type identity.", - "explode" : true, - "in" : "query", - "name" : "policytype_id", - "required" : false, - "schema" : { - "type" : "string" - }, - "style" : "form" - }, { - "description" : "Select policies for a given Near-RT RIC identity.", - "explode" : true, - "in" : "query", - "name" : "ric_id", - "required" : false, - "schema" : { - "type" : "string" - }, - "style" : "form" - }, { - "description" : "Select policies owned by a given service.", - "explode" : true, - "in" : "query", - "name" : "service_id", - "required" : false, - "schema" : { - "type" : "string" - }, - "style" : "form" - }, { - "description" : "Select policies of a given type name (type identity has the format <typename_version>)", - "explode" : true, - "in" : "query", - "name" : "type_name", - "required" : false, - "schema" : { - "type" : "string" - }, - "style" : "form" - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "policy_info_list" : { - "$ref" : "#/components/examples/policy_info_list" - } - }, - "schema" : { - "$ref" : "#/components/schemas/policy_info_list" - } - } - }, - "description" : "OK - Returns A1 Policies which matches the criteria" - }, - "404" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/error_information" - } - } - }, - "description" : "Not Found - Near-RT RIC, policy type or service not found" - } - }, - "summary" : "Query for A1 policy instances", - "tags" : [ "A1 Policy Management" ] - } - }, - "/example-authz-check" : { - "post" : { - "description" : "The authorization function decides if access is granted.", - "operationId" : "performAccessControl", - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/policy_authorization" - } - } - }, - "required" : true - }, - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/authorization_result" - } - } - }, - "description" : "OK" - }, - "403" : { - "content" : { - "application/problem+json" : { - "example" : { - "status" : 403, - "title" : "Forbidden", - "detail" : "Your role does not allow to perform this action. Contact System Administrator to change your access rights." - }, - "schema" : { - "$ref" : "#/components/schemas/error_information" - } - } - }, - "description" : "Forbidden" - } - }, - "summary" : "Request for access authorization.", - "tags" : [ "Authorization API" ] - } - }, - "/actuator/threaddump" : { + "/status" : { "get" : { - "operationId" : "threaddump", + "description" : "Returns status and statistics of this service", + "operationId" : "getStatusV1", "responses" : { "200" : { "content" : { - "text/plain;charset=UTF-8" : { - "schema" : { - "type" : "object" - } - }, - "application/vnd.spring-boot.actuator.v3+json" : { - "schema" : { - "type" : "object" - } - }, - "application/json" : { - "schema" : { - "type" : "object" - } - }, - "application/vnd.spring-boot.actuator.v2+json" : { + "*/*" : { "schema" : { - "type" : "object" + "type" : "string" } } }, - "description" : "OK" + "description" : "OK - Service is living" } }, - "summary" : "Actuator web endpoint 'threaddump'", - "tags" : [ "Actuator" ], - "x-internal" : true + "summary" : "Get Status (getStatusV1)", + "tags" : [ "Health Check" ] } }, "/a1-policy/v2/status" : { @@ -225,75 +90,16 @@ "description" : "OK- Service is living Ok" } }, + "summary" : "Get Status (getStatus)", "tags" : [ "Health Check" ] } }, - "/actuator/loggers" : { - "get" : { - "operationId" : "loggers", - "responses" : { - "200" : { - "content" : { - "application/vnd.spring-boot.actuator.v3+json" : { - "schema" : { - "type" : "object" - } - }, - "application/json" : { - "schema" : { - "type" : "object" - } - }, - "application/vnd.spring-boot.actuator.v2+json" : { - "schema" : { - "type" : "object" - } - } - }, - "description" : "OK" - } - }, - "summary" : "Actuator web endpoint 'loggers'", - "tags" : [ "Actuator" ], - "x-internal" : true - } - }, - "/actuator/health/**" : { - "get" : { - "operationId" : "health-path", - "responses" : { - "200" : { - "content" : { - "application/vnd.spring-boot.actuator.v3+json" : { - "schema" : { - "type" : "object" - } - }, - "application/json" : { - "schema" : { - "type" : "object" - } - }, - "application/vnd.spring-boot.actuator.v2+json" : { - "schema" : { - "type" : "object" - } - } - }, - "description" : "OK" - } - }, - "summary" : "Actuator web endpoint 'health-path'", - "tags" : [ "Actuator" ], - "x-internal" : true - } - }, "/a1-policy/v2/rics/ric" : { "get" : { - "description" : "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).", + "description" : "Query information about a Near-RT RIC. Either a Near-RT RIC identity or a Managed Element identity can be specified. The intention with Managed Element identity is the ID used in O1 for accessing the traffical element (such as the ID of CU).\n", "operationId" : "getRic", "parameters" : [ { - "description" : "The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.", + "description" : "The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.\n", "explode" : true, "in" : "query", "name" : "managed_element_id", @@ -338,43 +144,13 @@ "description" : "Not Found" } }, - "summary" : "Returns info of Near-RT RIC queried by the ric-id and managed-element-id", + "summary" : "Get a Near-RT RIC (getRic)", "tags" : [ "NearRT-RIC Repository" ] } }, - "/actuator/shutdown" : { - "post" : { - "operationId" : "shutdown", - "responses" : { - "200" : { - "content" : { - "application/vnd.spring-boot.actuator.v3+json" : { - "schema" : { - "type" : "object" - } - }, - "application/json" : { - "schema" : { - "type" : "object" - } - }, - "application/vnd.spring-boot.actuator.v2+json" : { - "schema" : { - "type" : "object" - } - } - }, - "description" : "OK" - } - }, - "summary" : "Actuator web endpoint 'shutdown'", - "tags" : [ "Actuator" ], - "x-internal" : true - } - }, "/a1-policy/v2/policy-types" : { "get" : { - "description" : "Query policy type identities", + "description" : "Query A1 Policy Type identities using query parameters", "operationId" : "getPolicyTypes", "parameters" : [ { "description" : "Select types for the given Near-RT RIC identity.", @@ -387,7 +163,7 @@ }, "style" : "form" }, { - "description" : "Select types with the given type name (type identity has the format <typename_version>)", + "description" : "Select types compatible with the given type name (type identity has the format 'typename_version')", "explode" : true, "in" : "query", "name" : "type_name", @@ -432,12 +208,13 @@ "description" : "Not Found" } }, + "summary" : "Get A1 Policy Types (getPolicyTypes)", "tags" : [ "A1 Policy Management" ] } }, "/a1-policy/v2/policies/{policy_id}" : { "delete" : { - "description" : "Deleting the policy using the Policy's Policy ID.", + "description" : "Delete an A1 Policy instance using its policy ID.", "operationId" : "deletePolicy", "parameters" : [ { "explode" : false, @@ -476,11 +253,11 @@ "description" : "Locked - HTTP Status code which can be used when the state is Locked" } }, - "summary" : "Delete a policy", + "summary" : "Delete an A1 Policy instance (deletePolicy)", "tags" : [ "A1 Policy Management" ] }, "get" : { - "description" : "Returns a policy", + "description" : "Get an A1 Policy instance using its policy ID", "operationId" : "getPolicy", "parameters" : [ { "explode" : false, @@ -517,247 +294,13 @@ "description" : "Not Found" } }, + "summary" : "Get an A1 Policy instance (getPolicy)", "tags" : [ "A1 Policy Management" ] } }, - "/actuator/metrics/{requiredMetricName}" : { - "get" : { - "operationId" : "metrics-requiredMetricName", - "parameters" : [ { - "explode" : false, - "in" : "path", - "name" : "requiredMetricName", - "required" : true, - "schema" : { - "type" : "string" - }, - "style" : "simple" - } ], - "responses" : { - "200" : { - "content" : { - "application/vnd.spring-boot.actuator.v3+json" : { - "schema" : { - "type" : "object" - } - }, - "application/json" : { - "schema" : { - "type" : "object" - } - }, - "application/vnd.spring-boot.actuator.v2+json" : { - "schema" : { - "type" : "object" - } - } - }, - "description" : "OK" - } - }, - "summary" : "Actuator web endpoint 'metrics-requiredMetricName'", - "tags" : [ "Actuator" ], - "x-internal" : true - } - }, - "/a1-policy/v2/configuration" : { - "get" : { - "description" : "Returns the contents of the application configuration file", - "operationId" : "getConfiguration", - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "type" : "string" - } - } - }, - "description" : "OK - Configuration" - }, - "404" : { - "content" : { - "application/problem+json" : { - "example" : [ ] - } - }, - "description" : "Not Found" - } - }, - "tags" : [ "Configuration" ] - }, - "put" : { - "description" : "Replace the current configuration with the given configuration", - "operationId" : "putConfiguration", - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "type" : "object" - } - } - }, - "required" : true - }, - "responses" : { - "200" : { - "content" : { - "*/*" : { - "schema" : { - "$ref" : "#/components/schemas/void" - } - } - }, - "description" : "OK - Configuration updated" - }, - "400" : { - "content" : { - "application/problem+json" : { - "example" : { - "status" : 400, - "title" : "Bad Request", - "detail" : "The provided request is not valid." - }, - "schema" : { - "$ref" : "#/components/schemas/error_information" - } - } - }, - "description" : "Bad Request" - } - }, - "tags" : [ "Configuration" ] - } - }, - "/actuator" : { - "get" : { - "operationId" : "links", - "responses" : { - "200" : { - "content" : { - "application/vnd.spring-boot.actuator.v3+json" : { - "schema" : { - "additionalProperties" : { - "additionalProperties" : { - "$ref" : "#/components/schemas/Link" - }, - "type" : "object" - }, - "type" : "object" - } - }, - "application/json" : { - "schema" : { - "additionalProperties" : { - "additionalProperties" : { - "$ref" : "#/components/schemas/Link" - }, - "type" : "object" - }, - "type" : "object" - } - }, - "application/vnd.spring-boot.actuator.v2+json" : { - "schema" : { - "additionalProperties" : { - "additionalProperties" : { - "$ref" : "#/components/schemas/Link" - }, - "type" : "object" - }, - "type" : "object" - } - } - }, - "description" : "OK" - } - }, - "summary" : "Actuator root web endpoint", - "tags" : [ "Actuator" ], - "x-internal" : true - } - }, - "/actuator/loggers/{name}" : { - "get" : { - "operationId" : "loggers-name", - "parameters" : [ { - "explode" : false, - "in" : "path", - "name" : "name", - "required" : true, - "schema" : { - "type" : "string" - }, - "style" : "simple" - } ], - "responses" : { - "200" : { - "content" : { - "application/vnd.spring-boot.actuator.v3+json" : { - "schema" : { - "type" : "object" - } - }, - "application/json" : { - "schema" : { - "type" : "object" - } - }, - "application/vnd.spring-boot.actuator.v2+json" : { - "schema" : { - "type" : "object" - } - } - }, - "description" : "OK" - } - }, - "summary" : "Actuator web endpoint 'loggers-name'", - "tags" : [ "Actuator" ], - "x-internal" : true - }, - "post" : { - "operationId" : "loggers-name_2", - "parameters" : [ { - "explode" : false, - "in" : "path", - "name" : "name", - "required" : true, - "schema" : { - "type" : "string" - }, - "style" : "simple" - } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "enum" : [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL", "OFF" ], - "type" : "string" - } - } - } - }, - "responses" : { - "200" : { - "content" : { - "*/*" : { - "schema" : { - "type" : "object" - } - } - }, - "description" : "OK" - } - }, - "summary" : "Actuator web endpoint 'loggers-name'", - "tags" : [ "Actuator" ], - "x-internal" : true - } - }, "/a1-policy/v2/services/{service_id}/keepalive" : { "put" : { - "description" : "A registered service should invoke this operation regularly to indicate that it is still alive. If a registered service fails to invoke this operation before the end of a timeout period the service will be deregistered and all its A1 policies wil be removed. (This timeout can be set or disabled when each service is initially registered)", + "description" : "A registered service should invoke this operation regularly to indicate that it is still alive. If a registered service fails to invoke some operation, or this operation, before the end of a timeout period the service will be deregistered and all its A1 policies wil be removed. This operation is only intended for registered services. (This timeout can be set or disabled when each service is initially registered)", "operationId" : "keepAliveService", "parameters" : [ { "explode" : false, @@ -789,46 +332,16 @@ "description" : "Not Found" } }, - "summary" : "Heartbeat indicates that the service is running", + "summary" : "Heartbeat message from a service (keepAliveService)", "tags" : [ "Service Registry and Supervision" ] } }, - "/actuator/metrics" : { - "get" : { - "operationId" : "metrics", - "responses" : { - "200" : { - "content" : { - "application/vnd.spring-boot.actuator.v3+json" : { - "schema" : { - "type" : "object" - } - }, - "application/json" : { - "schema" : { - "type" : "object" - } - }, - "application/vnd.spring-boot.actuator.v2+json" : { - "schema" : { - "type" : "object" - } - } - }, - "description" : "OK" - } - }, - "summary" : "Actuator web endpoint 'metrics'", - "tags" : [ "Actuator" ], - "x-internal" : true - } - }, "/a1-policy/v2/rics" : { "get" : { - "description" : "The call returns all Near-RT RICs that supports a given policy type identity", + "description" : "Get all Near-RT RICs that supports a given A1 Policy Type ID", "operationId" : "getRics", "parameters" : [ { - "description" : "The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned", + "description" : "The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.\n", "explode" : true, "in" : "query", "name" : "policytype_id", @@ -863,16 +376,16 @@ "description" : "Not Found" } }, - "summary" : "Query Near-RT RIC information", + "summary" : "Get Near-RT RICs for A1 Policy Type (getRics)", "tags" : [ "NearRT-RIC Repository" ] } }, "/a1-policy/v2/services" : { "get" : { - "description" : "Either information about a registered service with given identity or all registered services are returned.", + "description" : "Get information about all registered services, or a single registered service. If the service ID of a registered service is included in the query, information about that service is returned. Otherwise Information about all registered is returned. This operation does not retrieve information about unregistered services.\n", "operationId" : "getServices", "parameters" : [ { - "description" : "The identity of the service", + "description" : "The identity of the registered service", "explode" : true, "in" : "query", "name" : "service_id", @@ -907,7 +420,7 @@ "description" : "Not Found" } }, - "summary" : "Returns service information", + "summary" : "Get Services (getServices)", "tags" : [ "Service Registry and Supervision" ] }, "put" : { @@ -915,7 +428,7 @@ "RICStatus" : { "{$request.body#/callback_url}" : { "post" : { - "description" : "The URL to this call is registered at Service registration.", + "description" : "Callouts to indicate Near-RT RIC status changes relevant for Services. \nThe URL invoked by this callback is provided at Service registration.\n", "operationId" : "serviceCallback", "requestBody" : { "content" : { @@ -947,13 +460,13 @@ "description" : "Not Found" } }, - "summary" : "Callback for Near-RT RIC status", - "tags" : [ "Service callbacks" ] + "summary" : "Callback for Near-RT RIC status (serviceCallback)", + "tags" : [ "Service Registry and Supervision", "Service Callbacks" ] } } } }, - "description" : "Registering a service is needed to:<ul><li>Get callbacks about available NearRT RICs.</li><li>Activate supervision of the service. If a service is inactive, its policies will automatically be deleted.</li></ul>Policies can be created even if the service is not registerred. This is a feature which it is optional to use.", + "description" : "Register a single service, or update a previous registtration. Service registration is required to get callbacks about available NearRT RICs and to enable supervision of the service's active status. If a registered service becomes inactive, its policies can be automatically deleted. A1 Policy instances can also be created for unregistered services. If an unregistered service is later registered, the service's policies are retained when the service becomes registered. This feature is optional to use.\n", "operationId" : "putService", "requestBody" : { "content" : { @@ -1002,62 +515,13 @@ "description" : "Bad Request" } }, - "summary" : "Register a service", + "summary" : "Register or update a Service (putService)", "tags" : [ "Service Registry and Supervision" ] } }, - "/actuator/info" : { - "get" : { - "operationId" : "info", - "responses" : { - "200" : { - "content" : { - "application/vnd.spring-boot.actuator.v3+json" : { - "schema" : { - "type" : "object" - } - }, - "application/json" : { - "schema" : { - "type" : "object" - } - }, - "application/vnd.spring-boot.actuator.v2+json" : { - "schema" : { - "type" : "object" - } - } - }, - "description" : "OK" - } - }, - "summary" : "Actuator web endpoint 'info'", - "tags" : [ "Actuator" ], - "x-internal" : true - } - }, - "/status" : { - "get" : { - "description" : "Returns status and statistics of this service", - "operationId" : "getStatusV1", - "responses" : { - "200" : { - "content" : { - "*/*" : { - "schema" : { - "type" : "string" - } - } - }, - "description" : "OK - Service is living" - } - }, - "tags" : [ "Health Check" ] - } - }, "/a1-policy/v2/policy-types/{policytype_id}" : { "get" : { - "description" : "Returns a policy type definition", + "description" : "Get an A1 Policy Type definition using its policy type ID", "operationId" : "getPolicyTypeDefinition", "parameters" : [ { "explode" : false, @@ -1083,7 +547,7 @@ } } }, - "description" : "OK - schema of the given policy type" + "description" : "OK - schema of the requested A1 Policy Type" }, "404" : { "content" : { @@ -1094,65 +558,16 @@ "description" : "Not Found" } }, + "summary" : "Get an A1 Policy Type definition (getPolicyTypeDefinition)", "tags" : [ "A1 Policy Management" ] } }, - "/actuator/logfile" : { - "get" : { - "operationId" : "logfile", - "responses" : { - "200" : { - "content" : { - "text/plain;charset=UTF-8" : { - "schema" : { - "type" : "object" - } - } - }, - "description" : "OK" - } - }, - "summary" : "Actuator web endpoint 'logfile'", - "tags" : [ "Actuator" ], - "x-internal" : true - } - }, - "/actuator/health" : { - "get" : { - "operationId" : "health", - "responses" : { - "200" : { - "content" : { - "application/vnd.spring-boot.actuator.v3+json" : { - "schema" : { - "type" : "object" - } - }, - "application/json" : { - "schema" : { - "type" : "object" - } - }, - "application/vnd.spring-boot.actuator.v2+json" : { - "schema" : { - "type" : "object" - } - } - }, - "description" : "OK" - } - }, - "summary" : "Actuator web endpoint 'health'", - "tags" : [ "Actuator" ], - "x-internal" : true - } - }, "/a1-policy/v2/policies" : { "get" : { - "description" : "Returns a list of A1 policies matching given search criteria. <br>If several query parameters are defined, the policies matching all conditions are returned.", + "description" : "Retrieve a list of A1 Policy Instance IDs for policies that match given search criteria. If multiple query parameters are given, the policies matching all conditions are returned.\n", "operationId" : "getPolicyIds", "parameters" : [ { - "description" : "Select policies of a given policy type identity.", + "description" : "Select policies of a given A1 Policy Type ID.", "explode" : true, "in" : "query", "name" : "policytype_id", @@ -1172,7 +587,7 @@ }, "style" : "form" }, { - "description" : "Select policies owned by a given service.", + "description" : "Select policies owned by a given service. (Both registered and unregistered services)", "explode" : true, "in" : "query", "name" : "service_id", @@ -1182,7 +597,7 @@ }, "style" : "form" }, { - "description" : "Select policies of types with the given type name (type identity has the format <typename_version>)", + "description" : "Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version')\n", "explode" : true, "in" : "query", "name" : "type_name", @@ -1217,11 +632,11 @@ "description" : "Not Found" } }, - "summary" : "Query policy identities", + "summary" : "Query A1 Policy Instances (getPolicyIds)", "tags" : [ "A1 Policy Management" ] }, "put" : { - "description" : "Create or update a policy", + "description" : "Create or Update an A1 Policy Instance", "operationId" : "putPolicy", "requestBody" : { "content" : { @@ -1270,12 +685,89 @@ "description" : "Locked - HTTP Status code which can be used when the state is Locked" } }, + "summary" : "Create or Update an A1 Policy Instance (putPolicy)", + "tags" : [ "A1 Policy Management" ] + } + }, + "/a1-policy/v2/policy-instances" : { + "get" : { + "description" : "Returns a collection of A1 Policy Instance information for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned.\n", + "operationId" : "getPolicyInstances", + "parameters" : [ { + "description" : "Select policies with a given A1 Policy Type ID.", + "explode" : true, + "in" : "query", + "name" : "policytype_id", + "required" : false, + "schema" : { + "type" : "string" + }, + "style" : "form" + }, { + "description" : "Select policies for a given Near-RT RIC identity.", + "explode" : true, + "in" : "query", + "name" : "ric_id", + "required" : false, + "schema" : { + "type" : "string" + }, + "style" : "form" + }, { + "description" : "Select policies owned by a given service (registered or unregistered).", + "explode" : true, + "in" : "query", + "name" : "service_id", + "required" : false, + "schema" : { + "type" : "string" + }, + "style" : "form" + }, { + "description" : "Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').", + "explode" : true, + "in" : "query", + "name" : "type_name", + "required" : false, + "schema" : { + "type" : "string" + }, + "style" : "form" + } ], + "responses" : { + "200" : { + "content" : { + "application/json" : { + "examples" : { + "policy_info_list" : { + "$ref" : "#/components/examples/policy_info_list" + } + }, + "schema" : { + "$ref" : "#/components/schemas/policy_info_list" + } + } + }, + "description" : "OK - Returns A1 Policy Instances which match the criteria" + }, + "404" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/error_information" + } + } + }, + "description" : "Not Found - Near-RT RIC, A1 Policy Type or service was not found" + } + }, + "summary" : "Query for A1 Policy instances (getPolicyInstances)", "tags" : [ "A1 Policy Management" ] } }, "/a1-policy/v2/services/{service_id}" : { "delete" : { - "description" : "Unregister a service", + "description" : "Unregister a registered Service using its service ID. Only registered services can be unregistered. All A1 Policy Instances for the previously registered service will be removed.\n", "operationId" : "deleteService", "parameters" : [ { "explode" : false, @@ -1307,12 +799,230 @@ "description" : "Not Found" } }, + "summary" : "Unregister a Service (deleteService)", "tags" : [ "Service Registry and Supervision" ] } }, + "/a1-policy/v2/policies/{policy_id}/status" : { + "get" : { + "description" : "Retrieve the status information for an A1 Policy Instance.", + "operationId" : "getPolicyStatus", + "parameters" : [ { + "explode" : false, + "in" : "path", + "name" : "policy_id", + "required" : true, + "schema" : { + "type" : "string" + }, + "style" : "simple" + } ], + "responses" : { + "200" : { + "content" : { + "application/json" : { + "examples" : { + "policy_status_info" : { + "$ref" : "#/components/examples/policy_status_info" + } + }, + "schema" : { + "$ref" : "#/components/schemas/policy_status_info" + } + } + }, + "description" : "OK - Policy status" + }, + "404" : { + "content" : { + "application/problem+json" : { + "example" : [ ] + } + }, + "description" : "Not Found" + } + }, + "summary" : "Get an A1 Policy Instance's status (getPolicyStatus)", + "tags" : [ "A1 Policy Management" ] + } + }, + "/a1-policy/v2/configuration" : { + "get" : { + "description" : "Returns the entire contents of the Application Configuration.", + "operationId" : "getConfiguration", + "responses" : { + "200" : { + "content" : { + "application/json" : { + "schema" : { + "type" : "string" + } + } + }, + "description" : "OK - Configuration" + }, + "404" : { + "content" : { + "application/problem+json" : { + "example" : [ ] + } + }, + "description" : "Not Found" + } + }, + "summary" : "Get the Application Configuration (getConfiguration)", + "tags" : [ "Configuration" ] + }, + "put" : { + "description" : "Replace the current Application Configuration with a new configuration. The new configuration, if accepted, will take effect after a short delay. The new configuration must comply with the Application Configuration schema, which can be found from the the Application Documentation (Developer Guide) \n", + "operationId" : "putConfiguration", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "type" : "object" + } + } + }, + "required" : true + }, + "responses" : { + "200" : { + "content" : { + "*/*" : { + "schema" : { + "$ref" : "#/components/schemas/void" + } + } + }, + "description" : "OK - Configuration updated" + }, + "400" : { + "content" : { + "application/problem+json" : { + "example" : { + "status" : 400, + "title" : "Bad Request", + "detail" : "The provided request is not valid." + }, + "schema" : { + "$ref" : "#/components/schemas/error_information" + } + } + }, + "description" : "Bad Request" + } + }, + "summary" : "Set/Replace the Application Configuration (putConfiguration)", + "tags" : [ "Configuration" ] + } + }, + "/example-authz-check" : { + "post" : { + "description" : "A template endpoint for callout requests to an external authorization function. The authorization function, if enabled, decides if individual operations are permitted.\n", + "operationId" : "performAccessControl", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/policy_authorization" + } + } + }, + "required" : true + }, + "responses" : { + "200" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/authorization_result" + } + } + }, + "description" : "OK" + }, + "403" : { + "content" : { + "application/problem+json" : { + "example" : { + "status" : 403, + "title" : "Forbidden", + "detail" : "Your role does not allow to perform this action. Contact System Administrator to change your access rights." + }, + "schema" : { + "$ref" : "#/components/schemas/error_information" + } + } + }, + "description" : "Forbidden" + } + }, + "summary" : "Callout request for access authorization (performAccessControl)", + "tags" : [ "Authorization API" ] + } + }, + "/actuator" : { + "get" : { + "description" : "A1-PMS Springboot Service Actuator web endpoint. Returns a set of links to available/enabled actuator endpoints.\n", + "externalDocs" : { + "description" : "Spring Boot Actuator Web API Documentation", + "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html" + }, + "operationId" : "actuatorLinks", + "responses" : { + "200" : { + "content" : { + "application/vnd.spring-boot.actuator.v3+json" : { + "schema" : { + "additionalProperties" : { + "additionalProperties" : { + "$ref" : "#/components/schemas/Link" + }, + "type" : "object" + }, + "type" : "object" + } + }, + "application/json" : { + "schema" : { + "additionalProperties" : { + "additionalProperties" : { + "$ref" : "#/components/schemas/Link" + }, + "type" : "object" + }, + "type" : "object" + } + }, + "application/vnd.spring-boot.actuator.v2+json" : { + "schema" : { + "additionalProperties" : { + "additionalProperties" : { + "$ref" : "#/components/schemas/Link" + }, + "type" : "object" + }, + "type" : "object" + } + } + }, + "description" : "OK" + } + }, + "summary" : "Actuator endpoint - Root (actuatorLinks)", + "tags" : [ "Actuator API" ], + "x-internal" : true + } + }, "/actuator/heapdump" : { "get" : { - "operationId" : "heapdump", + "description" : "A1-PMS Springboot Service Actuator web endpoint - HeapDump. \n", + "externalDocs" : { + "description" : "Spring Boot Actuator Web API Documentation", + "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html" + }, + "operationId" : "actuatorHeapdump", "responses" : { "200" : { "content" : { @@ -1325,19 +1035,133 @@ "description" : "OK" } }, - "summary" : "Actuator web endpoint 'heapdump'", - "tags" : [ "Actuator" ], + "summary" : "Actuator endpoint - Heapdump (actuatorHeapdump)", + "tags" : [ "Actuator API" ], "x-internal" : true } }, - "/a1-policy/v2/policies/{policy_id}/status" : { + "/actuator/info" : { "get" : { - "description" : "Returns a policy status", - "operationId" : "getPolicyStatus", + "description" : "A1-PMS Springboot Service Actuator web endpoint - Info. \n", + "externalDocs" : { + "description" : "Spring Boot Actuator Web API Documentation", + "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html" + }, + "operationId" : "actuatorInfo", + "responses" : { + "200" : { + "content" : { + "application/vnd.spring-boot.actuator.v3+json" : { + "schema" : { + "type" : "object" + } + }, + "application/json" : { + "schema" : { + "type" : "object" + } + }, + "application/vnd.spring-boot.actuator.v2+json" : { + "schema" : { + "type" : "object" + } + } + }, + "description" : "OK" + } + }, + "summary" : "Actuator endpoint - Info (actuatorInfo)", + "tags" : [ "Actuator API" ], + "x-internal" : true + } + }, + "/actuator/threaddump" : { + "get" : { + "description" : "A1-PMS Springboot Service Actuator web endpoint - ThreadDump. \n", + "externalDocs" : { + "description" : "Spring Boot Actuator Web API Documentation", + "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html" + }, + "operationId" : "actuatorThreaddump", + "responses" : { + "200" : { + "content" : { + "text/plain;charset=UTF-8" : { + "schema" : { + "type" : "object" + } + }, + "application/vnd.spring-boot.actuator.v3+json" : { + "schema" : { + "type" : "object" + } + }, + "application/json" : { + "schema" : { + "type" : "object" + } + }, + "application/vnd.spring-boot.actuator.v2+json" : { + "schema" : { + "type" : "object" + } + } + }, + "description" : "OK" + } + }, + "summary" : "Actuator endpoint - Threaddump (actuatorThreaddump)", + "tags" : [ "Actuator API" ], + "x-internal" : true + } + }, + "/actuator/loggers" : { + "get" : { + "description" : "A1-PMS Springboot Service Actuator web endpoint - Get a list of Loggers. \n", + "externalDocs" : { + "description" : "Spring Boot Actuator Web API Documentation", + "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html" + }, + "operationId" : "actuatorLoggers", + "responses" : { + "200" : { + "content" : { + "application/vnd.spring-boot.actuator.v3+json" : { + "schema" : { + "type" : "object" + } + }, + "application/json" : { + "schema" : { + "type" : "object" + } + }, + "application/vnd.spring-boot.actuator.v2+json" : { + "schema" : { + "type" : "object" + } + } + }, + "description" : "OK" + } + }, + "summary" : "Actuator endpoint - Get Loggers (actuatorLoggers)", + "tags" : [ "Actuator API" ], + "x-internal" : true + } + }, + "/actuator/loggers/{name}" : { + "get" : { + "description" : "A1-PMS Springboot Service Actuator web endpoint - Get a single named Logger. \n", + "externalDocs" : { + "description" : "Spring Boot Actuator Web API Documentation", + "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html" + }, + "operationId" : "actuatorGetLogger", "parameters" : [ { "explode" : false, "in" : "path", - "name" : "policy_id", + "name" : "name", "required" : true, "schema" : { "type" : "string" @@ -1347,29 +1171,280 @@ "responses" : { "200" : { "content" : { + "application/vnd.spring-boot.actuator.v3+json" : { + "schema" : { + "type" : "object" + } + }, "application/json" : { - "examples" : { - "policy_status_info" : { - "$ref" : "#/components/examples/policy_status_info" - } - }, "schema" : { - "$ref" : "#/components/schemas/policy_status_info" + "type" : "object" + } + }, + "application/vnd.spring-boot.actuator.v2+json" : { + "schema" : { + "type" : "object" } } }, - "description" : "OK - Policy status" + "description" : "OK" + } + }, + "summary" : "Actuator endpoint - Get Logger (actuatorGetLogger)", + "tags" : [ "Actuator API" ], + "x-internal" : true + }, + "post" : { + "description" : "A1-PMS Springboot Service Actuator web endpoint - Create or Update single named Logger. \n", + "externalDocs" : { + "description" : "Spring Boot Actuator Web API Documentation", + "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html" + }, + "operationId" : "actuatorSetlogger", + "parameters" : [ { + "explode" : false, + "in" : "path", + "name" : "name", + "required" : true, + "schema" : { + "type" : "string" }, - "404" : { + "style" : "simple" + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "enum" : [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL", "OFF" ], + "type" : "string" + } + } + } + }, + "responses" : { + "200" : { "content" : { - "application/problem+json" : { - "example" : [ ] + "*/*" : { + "schema" : { + "type" : "object" + } } }, - "description" : "Not Found" + "description" : "OK" } }, - "tags" : [ "A1 Policy Management" ] + "summary" : "Actuator endpoint - Set Logger (actuatorSetlogger)", + "tags" : [ "Actuator API" ], + "x-internal" : true + } + }, + "/actuator/logfile" : { + "get" : { + "description" : "A1-PMS Springboot Service Actuator web endpoint - Get the Log file. \n", + "externalDocs" : { + "description" : "Spring Boot Actuator Web API Documentation", + "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html" + }, + "operationId" : "actuatorGetLogFile", + "responses" : { + "200" : { + "content" : { + "text/plain;charset=UTF-8" : { + "schema" : { + "type" : "object" + } + } + }, + "description" : "OK" + } + }, + "summary" : "Actuator endpoint - Log File (actuatorGetLogFile)", + "tags" : [ "Actuator API" ], + "x-internal" : true + } + }, + "/actuator/health" : { + "get" : { + "description" : "A1-PMS Springboot Service Actuator web endpoint - Health Check. \n", + "externalDocs" : { + "description" : "Spring Boot Actuator Web API Documentation", + "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html" + }, + "operationId" : "actuatorHealth", + "responses" : { + "200" : { + "content" : { + "application/vnd.spring-boot.actuator.v3+json" : { + "schema" : { + "type" : "object" + } + }, + "application/json" : { + "schema" : { + "type" : "object" + } + }, + "application/vnd.spring-boot.actuator.v2+json" : { + "schema" : { + "type" : "object" + } + } + }, + "description" : "OK" + } + }, + "summary" : "Actuator endpoint - Health (actuatorHealth)", + "tags" : [ "Actuator API" ], + "x-internal" : true + } + }, + "/actuator/health/**" : { + "get" : { + "description" : "A1-PMS Springboot Service Actuator web endpoint - Health Status for an Application Component. \n", + "externalDocs" : { + "description" : "Spring Boot Actuator Web API Documentation", + "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html" + }, + "operationId" : "actuatorHealthComponent", + "responses" : { + "200" : { + "content" : { + "application/vnd.spring-boot.actuator.v3+json" : { + "schema" : { + "type" : "object" + } + }, + "application/json" : { + "schema" : { + "type" : "object" + } + }, + "application/vnd.spring-boot.actuator.v2+json" : { + "schema" : { + "type" : "object" + } + } + }, + "description" : "OK" + } + }, + "summary" : "Actuator endpoint - Component Health (actuatorHealthComponent)", + "tags" : [ "Actuator API" ], + "x-internal" : true + } + }, + "/actuator/shutdown" : { + "post" : { + "description" : "A1-PMS Springboot Service Actuator web endpoint - Shutdown the Application. \n", + "externalDocs" : { + "description" : "Spring Boot Actuator Web API Documentation", + "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html" + }, + "operationId" : "actuatorShutdown", + "responses" : { + "200" : { + "content" : { + "application/vnd.spring-boot.actuator.v3+json" : { + "schema" : { + "type" : "object" + } + }, + "application/json" : { + "schema" : { + "type" : "object" + } + }, + "application/vnd.spring-boot.actuator.v2+json" : { + "schema" : { + "type" : "object" + } + } + }, + "description" : "OK" + } + }, + "summary" : "Actuator endpoint - Shutdown (actuatorShutdown)", + "tags" : [ "Actuator API" ], + "x-internal" : true + } + }, + "/actuator/metrics" : { + "get" : { + "description" : "A1-PMS Springboot Service Actuator web endpoint - Get a list of Application metrics names. \n", + "externalDocs" : { + "description" : "Spring Boot Actuator Web API Documentation", + "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html" + }, + "operationId" : "actuatorMetrics", + "responses" : { + "200" : { + "content" : { + "application/vnd.spring-boot.actuator.v3+json" : { + "schema" : { + "type" : "object" + } + }, + "application/json" : { + "schema" : { + "type" : "object" + } + }, + "application/vnd.spring-boot.actuator.v2+json" : { + "schema" : { + "type" : "object" + } + } + }, + "description" : "OK" + } + }, + "summary" : "Actuator endpoint - Metrics (actuatorMetrics)", + "tags" : [ "Actuator API" ], + "x-internal" : true + } + }, + "/actuator/metrics/{requiredMetricName}" : { + "get" : { + "description" : "A1-PMS Springboot Service Actuator web endpoint - Get the value for a named Application metric. \n", + "externalDocs" : { + "description" : "Spring Boot Actuator Web API Documentation", + "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html" + }, + "operationId" : "actuatorGetMetric", + "parameters" : [ { + "explode" : false, + "in" : "path", + "name" : "requiredMetricName", + "required" : true, + "schema" : { + "type" : "string" + }, + "style" : "simple" + } ], + "responses" : { + "200" : { + "content" : { + "application/vnd.spring-boot.actuator.v3+json" : { + "schema" : { + "type" : "object" + } + }, + "application/json" : { + "schema" : { + "type" : "object" + } + }, + "application/vnd.spring-boot.actuator.v2+json" : { + "schema" : { + "type" : "object" + } + } + }, + "description" : "OK" + } + }, + "summary" : "Actuator endpoint - Get Metric (actuatorGetMetric)", + "x-internal" : true } } }, @@ -1401,48 +1476,48 @@ } }, "policy_type_definition" : { - "description" : "Schema of the given Policy type", + "description" : "Schema of the given A1 Policy Type", "value" : { "policy_schema" : "{}" } }, "policy_type_id_list" : { - "description" : "Array of policy type id's", + "description" : "Array of A1 Policy Type id's", "value" : { "policy_type_id_list" : [ "policytype_id", "policytype_id" ] } }, "policy_info" : { - "description" : "Policy information of one A1-P policy", + "description" : "Information for an A1 Policy Instance", "value" : { - "ric_id" : "ric_id", - "policy_id" : "policy_id", + "ric_id" : "ric_id1", + "policy_id" : "policy_id1", "transient" : false, - "service_id" : "service_id", + "service_id" : "service_id1", "policy_data" : "{}", "status_notification_uri" : "status_notification_uri", - "policytype_id" : "policytype_id" + "policytype_id" : "policytype_id1" } }, "policy_info_list" : { "description" : "List of policy information", "value" : { "policies" : [ { - "ric_id" : "ric_id", - "policy_id" : "policy_id", + "ric_id" : "ric_id1", + "policy_id" : "policy_id1", "transient" : false, - "service_id" : "service_id", + "service_id" : "service_id1", "policy_data" : "{}", "status_notification_uri" : "status_notification_uri", - "policytype_id" : "policytype_id" + "policytype_id" : "policytype_id1" }, { - "ric_id" : "ric_id", - "policy_id" : "policy_id", - "transient" : false, - "service_id" : "service_id", + "ric_id" : "ric_id2", + "policy_id" : "policy_id2", + "transient" : true, + "service_id" : "service_id2", "policy_data" : "{}", "status_notification_uri" : "status_notification_uri", - "policytype_id" : "policytype_id" + "policytype_id" : "policytype_id2" } ] } }, @@ -1549,10 +1624,10 @@ }, "schemas" : { "policy_type_definition" : { - "description" : "Contains policy type schema definition", + "description" : "Contains A1 Policy Type schema definition", "properties" : { "policy_schema" : { - "description" : "Policy type json schema. The schema is a json object following http://json-schema.org/draft-07/schema", + "description" : "A1 Policy Type json schema. The schema is a json object following http://json-schema.org/draft-07/schema", "type" : "object" } }, @@ -1563,7 +1638,7 @@ "properties" : { "detail" : { "description" : " A human-readable explanation specific to this occurrence of the problem.", - "example" : "Policy type not found", + "example" : "A1 Policy Type not found", "type" : "string" }, "title" : { @@ -1628,9 +1703,9 @@ "type" : "string" }, "policytype_ids" : { - "description" : "supported policy types", + "description" : "supported A1 Policy Types", "items" : { - "description" : "supported policy types", + "description" : "supported A1 Policy Types", "type" : "string" }, "type" : "array" @@ -1642,7 +1717,7 @@ "description" : "Information for one service", "properties" : { "callback_url" : { - "description" : "callback for notifying of Near-RT RIC state changes", + "description" : "Callback for notifying of Near-RT RIC state changes", "type" : "string" }, "service_id" : { @@ -1650,7 +1725,7 @@ "type" : "string" }, "keep_alive_interval_seconds" : { - "description" : "keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.", + "description" : "Keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n", "format" : "int64", "type" : "integer" } @@ -1734,7 +1809,7 @@ "type" : "string" }, "policy_type_id" : { - "description" : "Policy type identifier", + "description" : "A1 Policy Type identifier", "type" : "string" } }, @@ -1752,12 +1827,12 @@ "type" : "object" }, "policy_type_id_list" : { - "description" : "Information about policy types", + "description" : "Information about A1 Policy Types", "properties" : { "policytype_ids" : { - "description" : "Policy type identities", + "description" : "A1 Policy Type identities", "items" : { - "description" : "Policy type identities", + "description" : "A1 Policy Type identities", "type" : "string" }, "type" : "array" @@ -1778,14 +1853,14 @@ }, "transient" : { "default" : false, - "description" : "if true, the policy is deleted at RIC restart. If false, its value is maintained by this service until explicitly deleted. Default false.", + "description" : "If true, the policy is automatically deleted if the targeted Near-RT RIC restarts or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.\n", "example" : false, "nullable" : false, "type" : "boolean" }, "service_id" : { "default" : "", - "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered.", + "description" : "The identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered. If the service is registered, the A1 Policy Instance will be subject to the same supervision rules as the the service's other policies.\n", "type" : "string" }, "policy_data" : { @@ -1797,7 +1872,7 @@ "type" : "string" }, "policytype_id" : { - "description" : "identity of the policy type", + "description" : "identity of the A1 Policy Type", "type" : "string" } }, @@ -1834,14 +1909,14 @@ "type" : "object" }, "service_callback_info_v2" : { - "description" : "Information transferred as in Service callbacks (callback_url)", + "description" : "Information transferred in Service callbacks, \nif a callback URL was provided for a registered service\n", "properties" : { "ric_id" : { "description" : "identity of a Near-RT RIC", "type" : "string" }, "event_type" : { - "description" : "values:\nAVAILABLE: the Near-RT RIC has become available for A1 Policy management", + "description" : "values: \n AVAILABLE: the Near-RT RIC has become available for A1 Policy management\n", "enum" : [ "AVAILABLE" ], "type" : "string" } diff --git a/a1-policy-management/api/offeredapis/swagger/pms-api.yaml b/a1-policy-management/api/offeredapis/swagger/pms-api.yaml index 421201e9..ea6d5d1e 100644 --- a/a1-policy-management/api/offeredapis/swagger/pms-api.yaml +++ b/a1-policy-management/api/offeredapis/swagger/pms-api.yaml @@ -1,6 +1,6 @@ +# ============LICENSE_START======================================================= +# Copyright (C) 2020-2023 Nordix Foundation. All rights reserved. # Copyright (C) 2023-2025 OpenInfra Foundation Europe. All rights reserved. -# Modifications Copyright (C) 2021 Pantheon.tech -# Modifications Copyright (C) 2021 Bell Canada # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,174 +22,98 @@ info: x-api-id: a31c510b-20e6-4a08-af16-368c44d7fba8 x-audience: external-public description: "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service\ - \ provides a REST API for managemecnt of A1 policies. <br/>The main tasks of the\ - \ service are:</p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring\ - \ and maintaining consistency of the SMO view of A1 policies and the Near-RT RICs</li><li>Maintaining\ - \ a view of supported Near-RT RIC policy types</li><li>Supervision of using services\ - \ (R-APPs). When a service is unavailable, its policies are removed.</li></ul><h2>APIs\ - \ provided or defined by the service</h2><h3>A1 Policy Management</h3><p>This\ - \ is an API for management of A1 Policies.</p><ul><li>A1 Policy retrieval, creation,\ - \ modification and deletion.</li><li>Retrieval of supported A1 Policy types for\ + \ provides a REST API for managing A1 policies. <br/>This document describes an older pre-spec API set + \ to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring\ + \ and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining\ + \ a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services\ + \ (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs\ + \ provided or defined by the service</h2><h3>A1 Policy Management (Older pre-spec version) </h3>\ + \ <p>This is an older API for managing A1 Policies:</p><ul><li>A1 Policy retrieval, creation,\ + \ modification and deletion.</li><li>Retrieval of supported A1 Policy Types for\ \ a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management\ \ of configuration</h3><p>API for updating and retrieval of the component configuration.\ - \ Note that there other ways to maintain the configuration.</p><h3>Service callbacks</h3><p>These\ + \ Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These\ \ are endpoints that are invoked by this service. The callbacks are registered\ - \ in this service at service registration.</p><h3>NearRT-RIC Repository</h3><p>This\ - \ is an API that provides support for looking up a NearRT-RIC. Each A1 policy\ - \ is targeted for one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision\ - \ of the PMS component.</p><h3>Service Registry and Supervision</h3><p>API used\ - \ for registering services that uses PMS. Each A1 policy is optionally owned by\ - \ a service. PMS can supervise each registered service by a heart-beat supervision\ - \ and will automatically remove policies for unavailable services. Note that a\ - \ service does not need to be registered in order to create A1 Policies. This\ - \ is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used\ + \ in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3>\ + \ <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy\ + \ is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision\ + \ of the A1 Policy Management Service .</p><h3>Service Registry and Supervision</h3>\ + \ <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner.\ + \ If the owner service is registered, then the service can be monitored by a heart-beat supervision\ + \ mechanism, and if the registered service becomes unavailable, then its A1 Policies are removed. Note \ + \ that services do not need to be registered to create A1 Policies, but unregistered services are not \ + \ supervised. This is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used\ \ for access control of A1 Policy access. If configured, an external authorization\ - \ provider is requested to grant access to the A1 Policy type.</p><h3>Spring Boot\ - \ Actuator</h3><p>Provides generic functions used to monitor and manage the Spring\ - \ web application.</p>" + \ provider is requested to grant access to the A1 Policy Type.</p><h3>Spring Boot\ + \ Actuator</h3><p>Provides built-in functions used to monitor and configure the Spring\ + \ web application hosting the service.</p>" license: - name: Copyright (C) 2020-2023 Nordix Foundation, and Copyright (C) 2024-2025 OpenInfra Foundation Europe. + name: | + Copyright (C) 2020-2023 Nordix Foundation, and Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved. Licensed under the Apache 2 License. url: http://www.apache.org/licenses/LICENSE-2.0 - title: ONAP CCSDK A1 Policy Management Service + title: ONAP CCSDK - Pre-Spec A1 Policy Management API version: 1.3.0 contact: + name: ONAP CCSDK Project url: https://www.onap.org/ email: discuss-list@onap.com servers: - url: / tags: - - name: A1 Policy Management (Older version) - description: "Older API used to create polices, Policy Instances and get them as individual - using an ID or get all policies/Instances." + - name: A1 Policy Management + description: > + Older pre-spec API used to get, create, update and delete A1 Policy Instances. Also used to query A1 Policy Types. - name: NearRT-RIC Repository - description: "API used to get the NearRT-RIC for the managed element." + description: > + Older API used to get information about registered Near-RT RICs. - name: Service Registry and Supervision - description: "API used to keep the service Alive with in the timeout period" + description: > + Older API used to manage registered services, and control their keep-alive status via heart-beat messages. - name: Health Check - description: "API used to get the health status and statistics of this service" - - name: Service callbacks - description: "Callouts to indicate status schanges relevant for Services. - <br> Note that these calls are called by A1-PMS, not provided." + description: > + API used to get the health status and statistics of this service + - name: Service Callbacks + description: > + Callout to registered services to indicate a status changes for a Near-RT RIC. + Note that these operations are called by the A1 Policy Management Service, not provided. - name: Authorization API - description: "API used for authorization of information A1 policy access (this is - provided by an authorization producer such as OPA). <br> Note that this API is called - by A1-PMS, it is not provided." + description: > + API used for authorization of information A1 policy access (this is + provided by an authorization producer such as OPA). + Note that these operations are called by the A1 Policy Management Service, not provided. - name: Configuration - description: "API used to create or fetch the application configuration." - - name: Actuator - description: Monitor and interact + description: > + API used to create or fetch the application configuration. + - name: Actuator API + description: > + API used to monitor and configure the A1-PMS Springboot Service. externalDocs: description: Spring Boot Actuator Web API Documentation - url: https://docs.spring.io/spring-boot/docs/current/actuator-api/html/ + url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html + paths: - /a1-policy/v2/policy-instances: + /status: get: - description: "Returns a list of A1 policies matching given search criteria.\ - \ <br>If several query parameters are defined, the policies matching all conditions\ - \ are returned." - operationId: getPolicyInstances - parameters: - - description: Select policies with a given type identity. - explode: true - in: query - name: policytype_id - required: false - schema: - type: string - style: form - - description: Select policies for a given Near-RT RIC identity. - explode: true - in: query - name: ric_id - required: false - schema: - type: string - style: form - - description: Select policies owned by a given service. - explode: true - in: query - name: service_id - required: false - schema: - type: string - style: form - - description: Select policies of a given type name (type identity has the format - <typename_version>) - explode: true - in: query - name: type_name - required: false - schema: - type: string - style: form - responses: - "200": - content: - application/json: - examples: - policy_info_list: - $ref: '#/components/examples/policy_info_list' - schema: - $ref: '#/components/schemas/policy_info_list' - description: OK - Returns A1 Policies which matches the criteria - "404": - content: - application/json: - schema: - $ref: '#/components/schemas/error_information' - description: "Not Found - Near-RT RIC, policy type or service not found" - summary: Query for A1 policy instances - tags: - - A1 Policy Management - /example-authz-check: - post: - description: The authorization function decides if access is granted. - operationId: performAccessControl - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/policy_authorization' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/authorization_result' - description: OK - "403": - $ref: '#/components/responses/Forbidden' - summary: Request for access authorization. + operationId: getStatusV1 + description: Returns status and statistics of this service + summary: Get Status (getStatusV1) tags: - - Authorization API - /actuator/threaddump: - get: - x-internal: true - operationId: threaddump + - Health Check responses: "200": content: - text/plain;charset=UTF-8: - schema: - type: object - application/vnd.spring-boot.actuator.v3+json: - schema: - type: object - application/json: - schema: - type: object - application/vnd.spring-boot.actuator.v2+json: + '*/*': schema: - type: object - description: OK - summary: Actuator web endpoint 'threaddump' - tags: - - Actuator + type: string + description: OK - Service is living /a1-policy/v2/status: get: operationId: getStatus + description: Returns status and statistics of this service + summary: Get Status (getStatus) + tags: + - Health Check responses: "200": content: @@ -200,58 +124,19 @@ paths: status_info: $ref: '#/components/examples/status_info' description: OK- Service is living Ok - description: Returns status and statistics of this service - tags: - - Health Check - /actuator/loggers: - get: - x-internal: true - operationId: loggers - responses: - "200": - content: - application/vnd.spring-boot.actuator.v3+json: - schema: - type: object - application/json: - schema: - type: object - application/vnd.spring-boot.actuator.v2+json: - schema: - type: object - description: OK - summary: Actuator web endpoint 'loggers' - tags: - - Actuator - /actuator/health/**: - get: - x-internal: true - operationId: health-path - responses: - "200": - content: - application/vnd.spring-boot.actuator.v3+json: - schema: - type: object - application/json: - schema: - type: object - application/vnd.spring-boot.actuator.v2+json: - schema: - type: object - description: OK - summary: Actuator web endpoint 'health-path' - tags: - - Actuator /a1-policy/v2/rics/ric: get: - description: 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 + description: > + Query information about a Near-RT RIC. Either a Near-RT RIC identity or a Managed Element + identity can be specified. The intention with Managed Element identity is the ID used in O1 for accessing the traffical element (such as the ID of CU). operationId: getRic + summary: Get a Near-RT RIC (getRic) + tags: + - NearRT-RIC Repository parameters: - - description: "The identity of a Managed Element. If given, the Near-RT RIC\ - \ managing the ME is returned." + - description: > + The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned. explode: true in: query name: managed_element_id @@ -280,32 +165,13 @@ paths: "404": $ref: '#/components/responses/NotFound' description: NotFound - Requested NearRT-RIC Not Found - summary: Returns info of Near-RT RIC queried by the ric-id and managed-element-id - tags: - - NearRT-RIC Repository - /actuator/shutdown: - post: - x-internal: true - operationId: shutdown - responses: - "200": - content: - application/vnd.spring-boot.actuator.v3+json: - schema: - type: object - application/json: - schema: - type: object - application/vnd.spring-boot.actuator.v2+json: - schema: - type: object - description: OK - summary: Actuator web endpoint 'shutdown' - tags: - - Actuator /a1-policy/v2/policy-types: get: operationId: getPolicyTypes + description: Query A1 Policy Type identities using query parameters + summary: Get A1 Policy Types (getPolicyTypes) + tags: + - A1 Policy Management parameters: - description: Select types for the given Near-RT RIC identity. explode: true @@ -315,8 +181,8 @@ paths: schema: type: string style: form - - description: Select types with the given type name (type identity has the - format <typename_version>) + - description: Select types compatible with the given type name (type identity has the + format 'typename_version') explode: true in: query name: type_name @@ -348,13 +214,13 @@ paths: "404": $ref: '#/components/responses/NotFound' description: 'Not Found - Requested Policy Type IDs Not Found' - description: Query policy type identities - tags: - - A1 Policy Management /a1-policy/v2/policies/{policy_id}: delete: - description: Deleting the policy using the Policy's Policy ID. + description: Delete an A1 Policy instance using its policy ID. operationId: deletePolicy + summary: Delete an A1 Policy instance (deletePolicy) + tags: + - A1 Policy Management parameters: - explode: false in: path @@ -373,11 +239,12 @@ paths: "423": $ref: '#/components/responses/Locked' description: 'The requested policy using policy_id is Locked' - summary: Delete a policy - tags: - - A1 Policy Management get: + description: Get an A1 Policy instance using its policy ID operationId: getPolicy + summary: Get an A1 Policy instance (getPolicy) + tags: + - A1 Policy Management parameters: - explode: false in: path @@ -399,175 +266,17 @@ paths: "404": $ref: '#/components/responses/NotFound' description: 'Not Found - Requested Policy using policy_id is not found' - description: Returns a policy - tags: - - A1 Policy Management - /actuator/metrics/{requiredMetricName}: - get: - x-internal: true - operationId: metrics-requiredMetricName - parameters: - - explode: false - in: path - name: requiredMetricName - required: true - schema: - type: string - style: simple - responses: - "200": - content: - application/vnd.spring-boot.actuator.v3+json: - schema: - type: object - application/json: - schema: - type: object - application/vnd.spring-boot.actuator.v2+json: - schema: - type: object - description: OK - summary: Actuator web endpoint 'metrics-requiredMetricName' - tags: - - Actuator - /a1-policy/v2/configuration: - get: - operationId: getConfiguration - responses: - "200": - content: - application/json: - schema: - type: string - description: OK - Configuration - "404": - $ref: '#/components/responses/NotFound' - description: Not Found - Configuration is not found or readable - description: Returns the contents of the application configuration file - tags: - - Configuration - put: - operationId: putConfiguration - requestBody: - content: - application/json: - schema: - type: object - required: true - responses: - "200": - content: - '*/*': - schema: - $ref: '#/components/schemas/void' - description: OK - Configuration updated - "400": - $ref: '#/components/responses/BadRequest' - description: Replace the current configuration with the given configuration - tags: - - Configuration - /actuator: - get: - x-internal: true - operationId: links - responses: - "200": - content: - application/vnd.spring-boot.actuator.v3+json: - schema: - additionalProperties: - additionalProperties: - $ref: '#/components/schemas/Link' - type: object - type: object - application/json: - schema: - additionalProperties: - additionalProperties: - $ref: '#/components/schemas/Link' - type: object - type: object - application/vnd.spring-boot.actuator.v2+json: - schema: - additionalProperties: - additionalProperties: - $ref: '#/components/schemas/Link' - type: object - type: object - description: OK - summary: Actuator root web endpoint - tags: - - Actuator - /actuator/loggers/{name}: - get: - x-internal: true - operationId: loggers-name - parameters: - - explode: false - in: path - name: name - required: true - schema: - type: string - style: simple - responses: - "200": - content: - application/vnd.spring-boot.actuator.v3+json: - schema: - type: object - application/json: - schema: - type: object - application/vnd.spring-boot.actuator.v2+json: - schema: - type: object - description: OK - summary: Actuator web endpoint 'loggers-name' - tags: - - Actuator - post: - x-internal: true - operationId: loggers-name_2 - parameters: - - explode: false - in: path - name: name - required: true - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - enum: - - TRACE - - DEBUG - - INFO - - WARN - - ERROR - - FATAL - - "OFF" - type: string - responses: - "200": - content: - '*/*': - schema: - type: object - description: OK - summary: Actuator web endpoint 'loggers-name' - tags: - - Actuator /a1-policy/v2/services/{service_id}/keepalive: put: description: A registered service should invoke this operation regularly to - indicate that it is still alive. If a registered service fails to invoke this - operation before the end of a timeout period the service will be deregistered - and all its A1 policies wil be removed. (This timeout can be set or disabled - when each service is initially registered) + indicate that it is still alive. If a registered service fails to invoke some operation, + or this operation, before the end of a timeout period the service will be deregistered + and all its A1 policies wil be removed. This operation is only intended for registered + services. (This timeout can be set or disabled when each service is initially registered) operationId: keepAliveService + summary: Heartbeat message from a service (keepAliveService) + tags: + - Service Registry and Supervision parameters: - explode: false in: path @@ -582,40 +291,20 @@ paths: '*/*': schema: type: object - description: "OK - Service supervision timer refreshed, OK" + description: OK - Service supervision timer refreshed, OK "404": $ref: '#/components/responses/NotFound' - summary: Heartbeat indicates that the service is running - tags: - - Service Registry and Supervision - /actuator/metrics: - get: - x-internal: true - operationId: metrics - responses: - "200": - content: - application/vnd.spring-boot.actuator.v3+json: - schema: - type: object - application/json: - schema: - type: object - application/vnd.spring-boot.actuator.v2+json: - schema: - type: object - description: OK - summary: Actuator web endpoint 'metrics' - tags: - - Actuator /a1-policy/v2/rics: get: - description: The call returns all Near-RT RICs that supports a given policy - type identity + description: Get all Near-RT RICs that supports a given A1 Policy Type ID operationId: getRics + summary: Get Near-RT RICs for A1 Policy Type (getRics) + tags: + - NearRT-RIC Repository parameters: - - description: "The identity of a policy type. If given, all Near-RT RICs supporting\ - \ the policy type are returned" + - description: > + The identity of an A1 Policy Type. If given, all Near-RT RICs supporting + the A1 Policy Type are returned. explode: true in: query name: policytype_id @@ -635,16 +324,19 @@ paths: description: OK "404": $ref: '#/components/responses/NotFound' - summary: Query Near-RT RIC information - tags: - - NearRT-RIC Repository /a1-policy/v2/services: get: - description: Either information about a registered service with given identity - or all registered services are returned. + description: > + Get information about all registered services, or a single registered service. + If the service ID of a registered service is included in the query, information about that + service is returned. Otherwise Information about all registered is returned. + This operation does not retrieve information about unregistered services. operationId: getServices + summary: Get Services (getServices) + tags: + - Service Registry and Supervision parameters: - - description: The identity of the service + - description: The identity of the registered service explode: true in: query name: service_id @@ -664,16 +356,19 @@ paths: description: OK "404": $ref: '#/components/responses/NotFound' - summary: Returns service information - tags: - - Service Registry and Supervision put: - description: "Registering a service is needed to:<ul><li>Get callbacks about\ - \ available NearRT RICs.</li><li>Activate supervision of the service. If a\ - \ service is inactive, its policies will automatically be deleted.</li></ul>Policies\ - \ can be created even if the service is not registerred. This is a feature\ - \ which it is optional to use." + description: > + Register a single service, or update a previous registtration. + Service registration is required to get callbacks about available NearRT RICs + and to enable supervision of the service's active status. If a registered + service becomes inactive, its policies can be automatically deleted. + A1 Policy instances can also be created for unregistered services. + If an unregistered service is later registered, the service's policies are + retained when the service becomes registered. This feature is optional to use. operationId: putService + summary: Register or update a Service (putService) + tags: + - Service Registry and Supervision requestBody: content: application/json: @@ -695,15 +390,18 @@ paths: description: Created - Service created "400": $ref: '#/components/responses/BadRequest' - summary: Register a service - tags: - - Service Registry and Supervision callbacks: RICStatus: "{$request.body#/callback_url}": post: - description: The URL to this call is registered at Service registration. + description: | + Callouts to indicate Near-RT RIC status changes relevant for Services. + The URL invoked by this callback is provided at Service registration. operationId: serviceCallback + summary: Callback for Near-RT RIC status (serviceCallback) + tags: + - Service Registry and Supervision + - Service Callbacks requestBody: content: application/json: @@ -719,45 +417,13 @@ paths: description: OK "404": $ref: '#/components/responses/NotFound' - summary: Callback for Near-RT RIC status - tags: - - Service callbacks - /actuator/info: - get: - x-internal: true - operationId: info - responses: - "200": - content: - application/vnd.spring-boot.actuator.v3+json: - schema: - type: object - application/json: - schema: - type: object - application/vnd.spring-boot.actuator.v2+json: - schema: - type: object - description: OK - summary: Actuator web endpoint 'info' - tags: - - Actuator - /status: - get: - operationId: getStatusV1 - responses: - "200": - content: - '*/*': - schema: - type: string - description: OK - Service is living - description: Returns status and statistics of this service - tags: - - Health Check /a1-policy/v2/policy-types/{policytype_id}: get: + description: Get an A1 Policy Type definition using its policy type ID operationId: getPolicyTypeDefinition + summary: Get an A1 Policy Type definition (getPolicyTypeDefinition) + tags: + - A1 Policy Management parameters: - explode: false in: path @@ -775,54 +441,20 @@ paths: examples: policy_type_definition: $ref: '#/components/examples/policy_type_definition' - description: OK - schema of the given policy type + description: OK - schema of the requested A1 Policy Type "404": $ref: '#/components/responses/NotFound' - description: Returns a policy type definition - tags: - - A1 Policy Management - /actuator/logfile: - get: - x-internal: true - operationId: logfile - responses: - "200": - content: - text/plain;charset=UTF-8: - schema: - type: object - description: OK - summary: Actuator web endpoint 'logfile' - tags: - - Actuator - /actuator/health: - get: - x-internal: true - operationId: health - responses: - "200": - content: - application/vnd.spring-boot.actuator.v3+json: - schema: - type: object - application/json: - schema: - type: object - application/vnd.spring-boot.actuator.v2+json: - schema: - type: object - description: OK - summary: Actuator web endpoint 'health' - tags: - - Actuator /a1-policy/v2/policies: get: - description: "Returns a list of A1 policies matching given search criteria.\ - \ <br>If several query parameters are defined, the policies matching all conditions\ - \ are returned." + description: > + Retrieve a list of A1 Policy Instance IDs for policies that match given search criteria. + If multiple query parameters are given, the policies matching all conditions are returned. operationId: getPolicyIds + summary: Query A1 Policy Instances (getPolicyIds) + tags: + - A1 Policy Management parameters: - - description: Select policies of a given policy type identity. + - description: Select policies of a given A1 Policy Type ID. explode: true in: query name: policytype_id @@ -838,7 +470,7 @@ paths: schema: type: string style: form - - description: Select policies owned by a given service. + - description: Select policies owned by a given service. (Both registered and unregistered services) explode: true in: query name: service_id @@ -846,8 +478,9 @@ paths: schema: type: string style: form - - description: Select policies of types with the given type name (type identity - has the format <typename_version>) + - description: > + Select policies of types with the given A1 Policy Type name + (type names have the format 'typename_version') explode: true in: query name: type_name @@ -867,11 +500,12 @@ paths: description: OK - Policy identities "404": $ref: '#/components/responses/NotFound' - summary: Query policy identities + put: + description: Create or Update an A1 Policy Instance tags: - A1 Policy Management - put: operationId: putPolicy + summary: Create or Update an A1 Policy Instance (putPolicy) requestBody: content: application/json: @@ -893,12 +527,74 @@ paths: description: Created - Policy created "423": $ref: '#/components/responses/Locked' - description: Create or update a policy + /a1-policy/v2/policy-instances: + get: + description: > + Returns a collection of A1 Policy Instance information for policies that match given search criteria. + If several query parameters are defined, the policies matching all conditions are returned. + operationId: getPolicyInstances + summary: Query for A1 Policy instances (getPolicyInstances) tags: - A1 Policy Management + parameters: + - description: Select policies with a given A1 Policy Type ID. + explode: true + in: query + name: policytype_id + required: false + schema: + type: string + style: form + - description: Select policies for a given Near-RT RIC identity. + explode: true + in: query + name: ric_id + required: false + schema: + type: string + style: form + - description: Select policies owned by a given service (registered or unregistered). + explode: true + in: query + name: service_id + required: false + schema: + type: string + style: form + - description: Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). + explode: true + in: query + name: type_name + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + examples: + policy_info_list: + $ref: '#/components/examples/policy_info_list' + schema: + $ref: '#/components/schemas/policy_info_list' + description: OK - Returns A1 Policy Instances which match the criteria + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/error_information' + description: Not Found - Near-RT RIC, A1 Policy Type or service was not found /a1-policy/v2/services/{service_id}: delete: + description: > + Unregister a registered Service using its service ID. + Only registered services can be unregistered. All A1 Policy Instances + for the previously registered service will be removed. + tags: + - Service Registry and Supervision operationId: deleteService + summary: Unregister a Service (deleteService) parameters: - explode: false in: path @@ -916,13 +612,149 @@ paths: description: No Content - Service unregistered "404": $ref: '#/components/responses/NotFound' - description: Unregister a service + /a1-policy/v2/policies/{policy_id}/status: + get: + description: Retrieve the status information for an A1 Policy Instance. tags: - - Service Registry and Supervision + - A1 Policy Management + operationId: getPolicyStatus + summary: Get an A1 Policy Instance's status (getPolicyStatus) + parameters: + - explode: false + in: path + name: policy_id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/policy_status_info' + examples: + policy_status_info: + $ref: '#/components/examples/policy_status_info' + description: OK - Policy status + "404": + $ref: '#/components/responses/NotFound' + /a1-policy/v2/configuration: + get: + description: Returns the entire contents of the Application Configuration. + tags: + - Configuration + operationId: getConfiguration + summary: Get the Application Configuration (getConfiguration) + responses: + "200": + content: + application/json: + schema: + type: string + description: OK - Configuration + "404": + $ref: '#/components/responses/NotFound' + description: Not Found - Configuration is not found or is not readable + put: + description: > + Replace the current Application Configuration with a new configuration. + The new configuration, if accepted, will take effect after a short delay. + The new configuration must comply with the Application Configuration schema, + which can be found from the the Application Documentation (Developer Guide) + tags: + - Configuration + operationId: putConfiguration + summary: Set/Replace the Application Configuration (putConfiguration) + requestBody: + content: + application/json: + schema: + type: object + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/void' + description: OK - Configuration updated + "400": + $ref: '#/components/responses/BadRequest' + /example-authz-check: + post: + description: > + A template endpoint for callout requests to an external authorization function. + The authorization function, if enabled, decides if individual operations are permitted. + operationId: performAccessControl + summary: Callout request for access authorization (performAccessControl) + tags: + - Authorization API + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/policy_authorization' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/authorization_result' + description: OK + "403": + $ref: '#/components/responses/Forbidden' + /actuator: + get: + x-internal: true + operationId: actuatorLinks + description: > + A1-PMS Springboot Service Actuator web endpoint. + Returns a set of links to available/enabled actuator endpoints. + externalDocs: + description: Spring Boot Actuator Web API Documentation + url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html + summary: Actuator endpoint - Root (actuatorLinks) + tags: + - Actuator API + responses: + "200": + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + additionalProperties: + additionalProperties: + $ref: '#/components/schemas/Link' + type: object + type: object + application/json: + schema: + additionalProperties: + additionalProperties: + $ref: '#/components/schemas/Link' + type: object + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + additionalProperties: + additionalProperties: + $ref: '#/components/schemas/Link' + type: object + type: object + description: OK /actuator/heapdump: get: x-internal: true - operationId: heapdump + operationId: actuatorHeapdump + description: > + A1-PMS Springboot Service Actuator web endpoint - HeapDump. + externalDocs: + description: Spring Boot Actuator Web API Documentation + url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html + summary: Actuator endpoint - Heapdump (actuatorHeapdump) + tags: + - Actuator API responses: "200": content: @@ -930,16 +762,100 @@ paths: schema: type: object description: OK - summary: Actuator web endpoint 'heapdump' + /actuator/info: + get: + x-internal: true + operationId: actuatorInfo + description: > + A1-PMS Springboot Service Actuator web endpoint - Info. + externalDocs: + description: Spring Boot Actuator Web API Documentation + url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html + summary: Actuator endpoint - Info (actuatorInfo) tags: - - Actuator - /a1-policy/v2/policies/{policy_id}/status: + - Actuator API + responses: + "200": + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + description: OK + /actuator/threaddump: get: - operationId: getPolicyStatus + x-internal: true + operationId: actuatorThreaddump + description: > + A1-PMS Springboot Service Actuator web endpoint - ThreadDump. + externalDocs: + description: Spring Boot Actuator Web API Documentation + url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html + summary: Actuator endpoint - Threaddump (actuatorThreaddump) + tags: + - Actuator API + responses: + "200": + content: + text/plain;charset=UTF-8: + schema: + type: object + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + description: OK + /actuator/loggers: + get: + x-internal: true + operationId: actuatorLoggers + description: > + A1-PMS Springboot Service Actuator web endpoint - Get a list of Loggers. + externalDocs: + description: Spring Boot Actuator Web API Documentation + url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html + summary: Actuator endpoint - Get Loggers (actuatorLoggers) + tags: + - Actuator API + responses: + "200": + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + description: OK + /actuator/loggers/{name}: + get: + x-internal: true + operationId: actuatorGetLogger + description: > + A1-PMS Springboot Service Actuator web endpoint - Get a single named Logger. + externalDocs: + description: Spring Boot Actuator Web API Documentation + url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html + summary: Actuator endpoint - Get Logger (actuatorGetLogger) + tags: + - Actuator API parameters: - explode: false in: path - name: policy_id + name: name required: true schema: type: string @@ -947,22 +863,211 @@ paths: responses: "200": content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object application/json: schema: - $ref: '#/components/schemas/policy_status_info' - examples: - policy_status_info: - $ref: '#/components/examples/policy_status_info' - description: OK - Policy status - "404": - $ref: '#/components/responses/NotFound' - description: Returns a policy status + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + description: OK + post: + x-internal: true + operationId: actuatorSetlogger + description: > + A1-PMS Springboot Service Actuator web endpoint - Create or Update single named Logger. + externalDocs: + description: Spring Boot Actuator Web API Documentation + url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html + summary: Actuator endpoint - Set Logger (actuatorSetlogger) tags: - - A1 Policy Management + - Actuator API + parameters: + - explode: false + in: path + name: name + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + enum: + - TRACE + - DEBUG + - INFO + - WARN + - ERROR + - FATAL + - "OFF" + type: string + responses: + "200": + content: + '*/*': + schema: + type: object + description: OK + /actuator/logfile: + get: + x-internal: true + operationId: actuatorGetLogFile + description: > + A1-PMS Springboot Service Actuator web endpoint - Get the Log file. + externalDocs: + description: Spring Boot Actuator Web API Documentation + url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html + summary: Actuator endpoint - Log File (actuatorGetLogFile) + tags: + - Actuator API + responses: + "200": + content: + text/plain;charset=UTF-8: + schema: + type: object + description: OK + /actuator/health: + get: + x-internal: true + operationId: actuatorHealth + description: > + A1-PMS Springboot Service Actuator web endpoint - Health Check. + externalDocs: + description: Spring Boot Actuator Web API Documentation + url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html + summary: Actuator endpoint - Health (actuatorHealth) + tags: + - Actuator API + responses: + "200": + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + description: OK + /actuator/health/**: + get: + x-internal: true + operationId: actuatorHealthComponent + description: > + A1-PMS Springboot Service Actuator web endpoint - Health Status for an Application Component. + externalDocs: + description: Spring Boot Actuator Web API Documentation + url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html + summary: Actuator endpoint - Component Health (actuatorHealthComponent) + tags: + - Actuator API + responses: + "200": + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + description: OK + /actuator/shutdown: + post: + x-internal: true + operationId: actuatorShutdown + description: > + A1-PMS Springboot Service Actuator web endpoint - Shutdown the Application. + externalDocs: + description: Spring Boot Actuator Web API Documentation + url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html + summary: Actuator endpoint - Shutdown (actuatorShutdown) + tags: + - Actuator API + responses: + "200": + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + description: OK + /actuator/metrics: + get: + x-internal: true + operationId: actuatorMetrics + description: > + A1-PMS Springboot Service Actuator web endpoint - Get a list of Application metrics names. + externalDocs: + description: Spring Boot Actuator Web API Documentation + url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html + summary: Actuator endpoint - Metrics (actuatorMetrics) + tags: + - Actuator API + responses: + "200": + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + description: OK + /actuator/metrics/{requiredMetricName}: + get: + x-internal: true + operationId: actuatorGetMetric + description: > + A1-PMS Springboot Service Actuator web endpoint - Get the value for a named Application metric. + externalDocs: + description: Spring Boot Actuator Web API Documentation + url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html + summary: Actuator endpoint - Get Metric (actuatorGetMetric) + parameters: + - explode: false + in: path + name: requiredMetricName + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + description: OK + components: + responses: Locked: - description: "Locked - HTTP Status code which can be used when the state is Locked" + description: Locked - HTTP Status code which can be used when the state is Locked content: application/problem+json: schema: @@ -1020,43 +1125,43 @@ components: keep_alive_interval_seconds: 0 time_since_last_activity_seconds: 6 policy_type_definition: - description: Schema of the given Policy type + description: Schema of the given A1 Policy Type value: policy_schema: "{}" policy_type_id_list: - description: Array of policy type id's + description: Array of A1 Policy Type id's value: policy_type_id_list: - policytype_id - policytype_id policy_info: - description: Policy information of one A1-P policy + description: Information for an A1 Policy Instance value: - ric_id: ric_id - policy_id: policy_id + ric_id: ric_id1 + policy_id: policy_id1 transient: false - service_id: service_id + service_id: service_id1 policy_data: "{}" status_notification_uri: status_notification_uri - policytype_id: policytype_id + policytype_id: policytype_id1 policy_info_list: description: List of policy information value: policies: - - ric_id: ric_id - policy_id: policy_id + - ric_id: ric_id1 + policy_id: policy_id1 transient: false - service_id: service_id + service_id: service_id1 policy_data: "{}" status_notification_uri: status_notification_uri - policytype_id: policytype_id - - ric_id: ric_id - policy_id: policy_id - transient: false - service_id: service_id + policytype_id: policytype_id1 + - ric_id: ric_id2 + policy_id: policy_id2 + transient: true + service_id: service_id2 policy_data: "{}" status_notification_uri: status_notification_uri - policytype_id: policytype_id + policytype_id: policytype_id2 policy_id_list: description: A list of policy identities value: @@ -1105,11 +1210,11 @@ components: schemas: policy_type_definition: - description: Contains policy type schema definition + description: Contains A1 Policy Type schema definition type: object properties: policy_schema: - description: Policy type json schema. The schema is a json object following + description: A1 Policy Type json schema. The schema is a json object following http://json-schema.org/draft-07/schema type: object error_information: @@ -1118,7 +1223,7 @@ components: detail: description: ' A human-readable explanation specific to this occurrence of the problem.' - example: Policy type not found + example: A1 Policy Type not found type: string title: description: 'A specific error name' @@ -1146,7 +1251,7 @@ components: result: true properties: result: - description: "If true, the access is granted" + description: If true, the access is granted type: boolean required: - result @@ -1172,9 +1277,9 @@ components: - CONSISTENCY_CHECK type: string policytype_ids: - description: supported policy types + description: supported A1 Policy Types items: - description: supported policy types + description: supported A1 Policy Types type: string type: array type: object @@ -1182,19 +1287,20 @@ components: description: Information for one service properties: callback_url: - description: callback for notifying of Near-RT RIC state changes + description: Callback for notifying of Near-RT RIC state changes type: string service_id: description: identity of the service type: string keep_alive_interval_seconds: - description: "keep alive interval for the service. This is used to enable\ - \ optional heartbeat supervision of the service. If set (> 0) the registered\ - \ service should regularly invoke a 'keepalive' REST call. When a service\ - \ fails to invoke this 'keepalive' call within the configured time, the\ - \ service is considered unavailable. An unavailable service will be automatically\ - \ deregistered and its policies will be deleted. Value 0 means timeout\ - \ supervision is disabled." + description: > + Keep alive interval for the service. This is used to enable + optional heartbeat supervision of the service. If set (> 0) the registered + service should regularly invoke a 'keepalive' REST call. When a service + fails to invoke this 'keepalive' call within the configured time, the + service is considered unavailable. An unavailable service will be automatically + deregistered and its policies will be deleted. Value 0 means timeout + supervision is disabled. format: int64 type: integer required: @@ -1213,7 +1319,7 @@ components: description: Status for one A1-P Policy properties: last_modified: - description: "timestamp, last modification time" + description: timestamp, last modification time type: string status: description: the Policy status @@ -1259,7 +1365,7 @@ components: description: Authorization token type: string policy_type_id: - description: Policy type identifier + description: A1 Policy Type identifier type: string required: - access_type @@ -1275,12 +1381,12 @@ components: - input type: object policy_type_id_list: - description: Information about policy types + description: Information about A1 Policy Types properties: policytype_ids: - description: Policy type identities + description: A1 Policy Type identities items: - description: Policy type identities + description: A1 Policy Type identities type: string type: array type: object @@ -1295,16 +1401,21 @@ components: type: string transient: default: false - description: "if true, the policy is deleted at RIC restart. If false, its\ - \ value is maintained by this service until explicitly deleted. Default\ - \ false." + description: > + If true, the policy is automatically deleted if the targeted Near-RT RIC restarts + or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted + Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and + must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false. example: false nullable: false type: boolean service_id: - description: the identity of the service owning the policy. This can be + description: > + The identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated - to a service). Note that the service does not need to be registered. + to a service). Note that the service does not need to be registered. + If the service is registered, the A1 Policy Instance will be + subject to the same supervision rules as the the service's other policies. type: string default: "" policy_data: @@ -1314,7 +1425,7 @@ components: description: Callback URI for policy status updates type: string policytype_id: - description: identity of the policy type + description: identity of the A1 Policy Type type: string required: - ric_id @@ -1345,14 +1456,17 @@ components: type: array type: object service_callback_info_v2: - description: Information transferred as in Service callbacks (callback_url) + description: | + Information transferred in Service callbacks, + if a callback URL was provided for a registered service properties: ric_id: description: identity of a Near-RT RIC type: string event_type: - description: "values:\nAVAILABLE: the Near-RT RIC has become available\ - \ for A1 Policy management" + description: > + values: + AVAILABLE: the Near-RT RIC has become available for A1 Policy management enum: - AVAILABLE type: string diff --git a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v3/PolicyControllerV3.java b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v3/PolicyControllerV3.java index 5034f84f..bc953327 100644 --- a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v3/PolicyControllerV3.java +++ b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v3/PolicyControllerV3.java @@ -70,7 +70,7 @@ public class PolicyControllerV3 implements A1PolicyManagementApi { } @Override - public Mono<ResponseEntity<Flux<PolicyInformation>>> getAllPolicies(String policyTypeId, String nearRtRicId, String serviceId, String typeName, String accept, ServerWebExchange exchange) throws Exception { + public Mono<ResponseEntity<Flux<PolicyInformation>>> getPolicyIds(String policyTypeId, String nearRtRicId, String serviceId, String typeName, String accept, ServerWebExchange exchange) throws Exception { return policyService.getPolicyIdsService(policyTypeId, nearRtRicId, serviceId, typeName, exchange) .doOnError(errorHandlingService::handleError); } @@ -88,7 +88,7 @@ public class PolicyControllerV3 implements A1PolicyManagementApi { } @Override - public Mono<ResponseEntity<Object>> putPolicy(String policyId, Mono<Object> body, ServerWebExchange exchange) throws Exception { + public Mono<ResponseEntity<Object>> updatePolicy(String policyId, Mono<Object> body, ServerWebExchange exchange) throws Exception { return body.flatMap(payload -> policyService.putPolicyService(policyId, payload, exchange)) .doOnError(errorHandlingService::handleError); } diff --git a/docs/architecture/architecture.rst b/docs/architecture/architecture.rst index bf47c91c..c308a399 100755 --- a/docs/architecture/architecture.rst +++ b/docs/architecture/architecture.rst @@ -1,6 +1,8 @@ -.. SPDX-License-Identifier: CC-BY-4.0 -.. Copyright 2023 Nordix Foundation. All rights reserved. -.. Copyright 2024 OpenInfra Foundation Europe. All rights reserved. +.. This work is licensed under a Creative Commons Attribution 4.0 International License. +.. http://creativecommons.org/licenses/by/4.0 +.. Copyright 2022-2024 Nordix Foundation +.. Copyright 2024-202% OpenInfra Foundation Europe + .. _architecture: @@ -23,7 +25,7 @@ Architecture Review This picture provides a overview of ONAP's A1 Controller architecture, integration with other components and API resource/operation provided. -.. image:: ../media/ONAP-A1ControllerArchitecture.png +.. image:: ../media/ONAP-A1ControllerArchitecture-Paris.png :width: 500pt The A1 Policy Management Service provides an API for accessing of A1 Policies. The A1-PMS diff --git a/docs/guide/developer-guide.rst b/docs/guide/developer-guide.rst index 05a8281a..ef485b3e 100644 --- a/docs/guide/developer-guide.rst +++ b/docs/guide/developer-guide.rst @@ -1,7 +1,7 @@ .. This work is licensed under a Creative Commons Attribution 4.0 International License. .. http://creativecommons.org/licenses/by/4.0 -.. Copyright 2023 Nordix Foundation. All rights reserved. -.. Copyright 2024 OpenInfra Foundation Europe. All rights reserved. +.. Copyright 2022-2024 Nordix Foundation. All rights reserved. +.. Copyright 2024-2025 OpenInfra Foundation Europe. All rights reserved. .. _developer_guide: @@ -10,9 +10,11 @@ Developer Guide This document provides a quickstart for developers of the CCSDK functions for O-RAN A1 Policies. -.. image:: ../media/ONAP-A1ControllerArchitecture-NewDelhi.png +.. image:: ../media/ONAP-A1ControllerArchitecture-Paris.png :width: 500pt +Additional guides for developers can be found on the `ONAP wiki (Development Guides) <https://lf-onap.atlassian.net/wiki/spaces/DW/pages/16445127/Development+guide+for+O-RAN+A1+Policies+Non-RealTime+RIC+applications>`_. + Source tree +++++++++++ @@ -22,7 +24,8 @@ Each resource is implemented independently in a sub-directory corresponding to i A1 Policy Management Service ++++++++++++++++++++++++++++ -The ONAP CCSDK A1 Policy Management Service (A1-PMS) is a Java 17 web application built using the Spring Framework. +The ONAP CCSDK A1 Policy Management Service (A1-PMS) is a Java 17 web application built using +the Spring Framework. Using Spring Boot dependencies, it runs as a standalone application. A1 Policy Management Service provides a REST API for managing A1 Policies. It provides support for: @@ -38,7 +41,8 @@ A1 Policy Management Service provides a REST API for managing A1 Policies. It pr * Create/Modify/Delete operations for A1 Policy Instances in each near-RT RIC * Query functions to check the status of each near-RT RIC, and their A1 Policy Instances. -The A1 Policy Management Service can be accessed over the REST API. See :ref:`pms_api` for more information about the API. +The A1 Policy Management Service can be accessed over the REST APIs. See :ref:`pms_api` for more +information about the API. The configured A1 Policies are stored persistently, and can survive service restart. This state information can be stored in a persistent volume or in an S3 Object Store bucket. @@ -46,7 +50,7 @@ Dependencies ------------ This project uses various frameworks which are managed with Maven -dependency management tool (see *pom.xml* file at root level) : +dependency management tool (see *pom.xml* file at root level). For example: - Swagger annotations - `Spring Framework <https://github.com/spring-projects/spring-boot>`_ @@ -54,34 +58,39 @@ dependency management tool (see *pom.xml* file at root level) : - `Lombok <https://github.com/projectlombok/lombok>`_ to generate code, such as getters and setters - `Awaitility <https://github.com/awaitility/awaitility>`_ to test asynchronous functionality - To get a complete list of all dependencies, use command "mvn dependency:tree". Configuration ------------- -There are two configuration files for A1 Policy Management Service, *config/application_configuration.json* and *config/application.yaml* -The first (*config/application_configuration.json*) contains application-specific configuration needed by the application, such as which near-RT RICs, or controller to use. -The second (*config/application.yaml*) contains logging and security configurations. +There are two configuration files for A1 Policy Management Service, *config/application_configuration.json* +and *config/application.yaml*. +The first (*config/application_configuration.json*) contains application-specific configuration needed by +the application, such as which near-RT RICs, or controller to use. +The second (*config/application.yaml*) contains configuration options for underlying service, including +configurations for logging, tracing, security, storage, etc.. -For more information about these configuration files can be found as comments in the sample files provided with the source code, or on the `ONAP wiki <https://lf-onap.atlassian.net/wiki/spaces/DW/pages/16444961/O-RAN+A1+Policies+in+ONAP>`_ +For more information about these configuration files can be found as comments in the sample files +provided with the source code, or on the +`ONAP wiki <https://lf-onap.atlassian.net/wiki/spaces/DW/pages/16444961/O-RAN+A1+Policies+in+ONAP>`_ Static configuration - Settings that cannot be changed at runtime (*application.yaml*) -------------------------------------------------------------------------------------- The file *./config/application.yaml* is read by the application at startup. It provides the following configurable features: - * *server*; configuration for the WEB server + * *server*; configuration for the Web Server (Northbound Interface) * used port for HTTP/HTTPS, this is however not the port number visible outside the container * SSL parameters for setting up using of key store and trust store databases. - * *webclient*; configuration parameters for a web client used by the component + + * *webclient*; configuration parameters for a Web Client used by the component (Southbound Interface) * SSL parameters for setting up using of key store and trust store databases. * Usage of HTTP(S) Proxy; if configured, the proxy will be used for southbound access to the NearRT-RICs * *logging*; setting for which information is logged. - * *auth-token*; optional authorization token to use for REST call. + * *auth-token*; optional authorization token to use for REST calls. * *filepath*; the local path to a file used for dynamic configuration (if used). See next chapter. * *persistent storage* of runtime information. Configuration of A1 Policy instances is stored persistently. The media for this can be either filesystem (a persistent volume) or Amazon S3 - Cloud Object Storage. @@ -89,33 +98,40 @@ For details about the parameters in this file, see documentation in the file. Dynamic configuration - Settings that can be changed at runtime (*application_configuration.json* or REST or ConfigMap) ----------------------------------------------------------------------------------------------------------------------- -The component has configuration that can be updated in runtime. This configuration can either be loaded from a file (accessible from the container), or using the Configuration REST API. The configuration is re-read and refreshed at regular intervals if the file is changed (e.g. using K8s ConfigMap capabilities). +The component has configuration that can be updated in runtime. This configuration can either be loaded from a +file (accessible from the container), or using the Configuration REST API. The configuration is re-read and +refreshed at regular intervals if the file is changed (e.g. using K8s ConfigMap capabilities). The configuration includes: * Optional *Controller* configuration, e.g. an SDNC instance (with A1-Adapter) - * (If no 'Contoller' is configured, the A1 Policy Management Service will connect direct to near-RT RICs, bypassing the SDNC controller) + * (If no 'Controller' is configured, the A1 Policy Management Service will connect direct to near-RT RICs, bypassing the SDNC controller) * One entry for each near-RT-RIC (*ric*), which includes: * The base URL of the near-RT-RIC - * A optional list of O1 identifiers that near-RT-RIC is controlling. An application can query this service which near-RT-RIC should be addressed for which component (e.g. cells, sectors, locations, etc.). + * A optional list of O1 identifiers that near-RT-RIC is controlling. An application may query this service which near-RT-RIC should be addressed for which component (e.g. cells, sectors, locations, etc.). * An optional reference to the controller to use, or excluded if the near-RT-RIC should be accessed directly from the A1 Policy Management Service. -For details about the syntax of the file, there is an example in source code repository */config/application_configuration.json*. This file is also included in the docker container */opt/app/policy-agent/data/application_configuration.json_example*. +For details about the syntax of the file, there is an example in source code repository +*/config/application_configuration.json*. This file is also included in the docker +container */opt/app/policy-agent/data/application_configuration.json_example*. Configuring certificates ------------------------ -The A1 Policy Management Service uses the default security keystore and truststore that are included in the built container. The paths and -passwords for these stores are located in the static configuration file described above (*application.yaml*), with an example is provided in the source code repository *a1-policy-management/config/application.yaml* +The A1 Policy Management Service uses the default security keystore and truststore that are included +in the built container. The paths and passwords for these stores are located in the static configuration file +described above (*application.yaml*), with an example is provided in the source code +repository *a1-policy-management/config/application.yaml* -A default cert and truststore is also included in the A1 Policy Management Service, but should only be used for *mocking* and *testing* purposes. -(*ApplicationTest.java*). +A default cert and truststore is also included in the A1 Policy Management Service, but should only be used +for *mocking* and *testing* purposes. (ref. file: *ApplicationTest.java*). -The default keystore, truststore, and application.yaml files can be overridden by mounting new files using the the docker 'volumes' -command for 'docker-compose' or 'docker run' command. Assuming that the *keystore*, *truststore*, and *application.yaml* files are located in the same directory as 'docker-compose', +The default keystore, truststore, and application.yaml files can/should be overridden by mounting new +files using the the docker 'volumes' command for 'docker-compose' or 'docker run' command. Assuming that the +*keystore*, *truststore*, and *application.yaml* files are located in the same directory as 'docker-compose', the volumes field should have these entries: :: `volumes:` @@ -127,7 +143,7 @@ The target paths in the container should not be modified. Example 'docker run' command for mounting new files (assuming they are located in the current directory): :: - docker run -p 8081:8081 -p 8433:8433 --name=policy-agent-container --network=nonrtric-docker-net --volume "$PWD/new_keystore.jks:/opt/app/policy-agent/etc/cert/keystore.jks" --volume "$PWD/new_truststore.jks:/opt/app/policy-agent/etc/cert/truststore.jks" --volume "$PWD/new_application.yaml:/opt/app/policy-agent/config/application.yaml" onap/ccsdk-oran-a1policymanagementservice:1.5.0 + docker run -p 8081:8081 -p 8433:8433 --name=policy-agent-container --network=nonrtric-docker-net --volume "$PWD/new_keystore.jks:/opt/app/policy-agent/etc/cert/keystore.jks" --volume "$PWD/new_truststore.jks:/opt/app/policy-agent/etc/cert/truststore.jks" --volume "$PWD/new_application.yaml:/opt/app/policy-agent/config/application.yaml" onap/ccsdk-oran-a1policymanagementservice:latest A1 Adapter (Internal) +++++++++++++++++++++ @@ -146,5 +162,3 @@ In order to configure a HTTP Proxy for the A1-Adapter to use for southbound conn * Variable *a1Mediator.proxy.url* must contain the full Proxy URL After this configuration has been changed the A1 adapter needs to be either rebuilt, or restarted if the configuration is changed inside a container, or re-read by the container if externally accessible (e.g. K8s ConfigMap). - - diff --git a/docs/humaninterfaces/humaninterfaces.rst b/docs/humaninterfaces/humaninterfaces.rst index fb8635e3..1f14fd3e 100644 --- a/docs/humaninterfaces/humaninterfaces.rst +++ b/docs/humaninterfaces/humaninterfaces.rst @@ -1,6 +1,6 @@ .. SPDX-License-Identifier: CC-BY-4.0 .. Copyright 2022-2023 Nordix Foundation. All rights reserved. -.. Copyright 2024 OpenInfra Foundation Europe. All rights reserved. +.. Copyright 2024-2025 OpenInfra Foundation Europe. All rights reserved. Human Interfaces @@ -9,4 +9,4 @@ Human Interfaces The NON-RT RIC Control Panel in O-RAN-SC can be used to interact with the Policy Management Service. See `NON-RT RIC Control Panel repo <https://gerrit.o-ran-sc.org/r/admin/repos/portal/nonrtric-controlpanel>`_ from the `O-RAN-SC NONRTRIC Project <https://lf-o-ran-sc.atlassian.net/wiki/spaces/RICNR/overview>`_. -Any "REST Client" application may be used (Postman, ...) to interact with the Policy Management Service application via the :ref:`pms_api` +Any "REST Client" application may be used (e.g. Postman, ...) to interact with the Policy Management Service application via the :ref:`pms_api` diff --git a/docs/media/ONAP-A1ControllerArchitecture-NewDelhi.png b/docs/media/ONAP-A1ControllerArchitecture-NewDelhiOslo.png Binary files differindex 15580c87..15580c87 100644 --- a/docs/media/ONAP-A1ControllerArchitecture-NewDelhi.png +++ b/docs/media/ONAP-A1ControllerArchitecture-NewDelhiOslo.png diff --git a/docs/media/ONAP-A1ControllerArchitecture-Paris.png b/docs/media/ONAP-A1ControllerArchitecture-Paris.png Binary files differnew file mode 100644 index 00000000..53323a09 --- /dev/null +++ b/docs/media/ONAP-A1ControllerArchitecture-Paris.png diff --git a/docs/media/html_logo.png b/docs/media/html_logo.png Binary files differnew file mode 100644 index 00000000..3f27ba8c --- /dev/null +++ b/docs/media/html_logo.png diff --git a/docs/offeredapis/offeredapis.rst b/docs/offeredapis/offeredapis.rst index 579b4aaa..3041122a 100644 --- a/docs/offeredapis/offeredapis.rst +++ b/docs/offeredapis/offeredapis.rst @@ -1,7 +1,8 @@ -.. This work is licensed under a Creative Commons Attribution 4.0 - International License. +.. This work is licensed under a Creative Commons Attribution 4.0 International License. .. http://creativecommons.org/licenses/by/4.0 -.. Copyright 2022 Nordix Foundation +.. Copyright 2022-2024 Nordix Foundation. All rights reserved. +.. Copyright 2024-2025 OpenInfra Foundation Europe. All rights reserved. + .. _offered_apis: @@ -21,18 +22,9 @@ Overall architecture for O-RAN A1 Policy functions This picture provides a overview of ONAP's A1 Controller architecture, integration with other ONAP components and API resource/operation provided. -.. image:: ../media/ONAP-A1ControllerArchitecture.png +.. image:: ../media/ONAP-A1ControllerArchitecture-Paris.png :width: 500pt - -API Version ------------ - -APIs are described with a state version with "v" following the API Name, -e.g.: ``v2/policy``. -The schema associated with a REST API must have its version number aligned -with that of the REST API. - API Table --------- @@ -42,29 +34,34 @@ API Table .. |yaml-icon| image:: ../media/yaml_logo.png :width: 40px - +.. |html-icon| image:: ../media/html_logo.png + :width: 40px + .. csv-table:: - :header: "API name", "|swagger-icon|", "|yaml-icon|" - :widths: 10,5, 5 + :header: "API name", "|swagger-icon|", "|yaml-icon|", "|html-icon|" + :widths: 56,11,11,22 - "Older A1PolicyManagementService, ServiceRegistry, Configuration, NearRT-RIC Repository, Health Check APIs, and Admin/Actuator APIs (NBI)", ":download:`link <./swagger/pms-api.json>`", ":download:`link <./swagger/pms-api.yaml>`" - "New 'V3' A1PolicyManagementService, ServiceRegistry, Configuration, NearRT-RIC Repository, and Health Check APIs (NBI)", ":download:`link <./swagger/pms-api-v3.json>`", ":download:`link <./swagger/pms-api-v3.yaml>`" - "A1 ADAPTER API (Internal)", ":download:`link <./swagger/a1-adapter-api.json>`", ":download:`link <./swagger/a1-adapter-api.yaml>`" + "*New* **A1 Policy Management API**: A1PolicyManagementService, ServiceRegistry, Configuration, NearRT-RIC Repository, and Health Check APIs (NBI)", ":download:`link <./swagger/pms-api-v3.json>`", ":download:`link <./swagger/pms-api-v3.yaml>`", "`A1 Policy Management API <./pms-api-v3.html>`_" + "*Older* **Pre-Spec A1 Policy Management API**: Older A1PolicyManagementService, ServiceRegistry, Configuration, NearRT-RIC Repository, Health Check APIs, and Admin/Actuator APIs (NBI)", ":download:`link <./swagger/pms-api.json>`", ":download:`link <./swagger/pms-api.yaml>`", "`Pre-Spec A1 Policy Management API <./pms-api.html>`_ " + "A1 ADAPTER API (*Internal Only*)", ":download:`link <./swagger/a1-adapter-api.json>`", ":download:`link <./swagger/a1-adapter-api.yaml>`", "`A1 ADAPTER API (Internal Only) <./a1-adapter-api.html>`_" .. _pms_api: -A1 Policy Management Service API -................................ +A1 Policy Management Service APIs +................................. -The new "V3" A1 PolicyManagementService, ServiceRegistry, Configuration, NearRT-RIC Repository, and Health Check APIs (NBI) are described in more detail in `A1 Policy Management Service API (html) <./pms-api.html>`_ +| The *New* **A1 Policy Management API** includes the latest APIs (NBI) for: A1 Policy Management, Service Registry, Configuration, NearRT-RIC Repository, and Health Check. +| This A1 Policy Management API is described in more detail in: `A1 Policy Management API (html) <./pms-api-v3.html>`_ -The older A1PolicyManagementService, ServiceRegistry, Configuration, NearRT-RIC Repository, Health Check APIs, and Admin/Actuator APIs are described in more detail at `A1 Policy Management Service API "V3" (html) <./pms-api-v3.html>`_ +| The *Older* **Pre-Spec A1 Policy Management API** includes older versions of the APIs for: A1 Policy Management, Service Registry, Configuration, NearRT-RIC Repository, Health Check, and Admin/Actuator functions. +| These APIs may be deprecated in future versions. +| This *Older Pre-Spec* A1 Policy Management API is described in more detail in: `Pre-Spec A1 Policy Management API (html) <./pms-api.html>`_ .. _a1_adapter_api: A1 ADAPTER API .............. -The O-RAN A1 Adapter provides an **internal** RESTCONF API that is used by the A1 Policy Management System when accessing the A1 Interface. This API is useful for test and verification but should not be used otherwise. - -The A1 Adapter API is described in more detail in `A1 ADAPTER API (html) <./a1-adapter-api.html>`_ +| The O-RAN A1 Adapter provides an **internal** RESTCONF API that is used by the A1 Policy Management Service when accessing the A1 Interface. +| This API is useful for test and verification purposes but should not be used otherwise. +| The A1 Adapter API is described in more detail in `A1 ADAPTER API (html) <./a1-adapter-api.html>`_ diff --git a/docs/offeredapis/openapitoolgen/offeredapis/pms-api/index.html b/docs/offeredapis/openapitoolgen/offeredapis/pms-api/index.html index 38e9caed..08df1a87 100644 --- a/docs/offeredapis/openapitoolgen/offeredapis/pms-api/index.html +++ b/docs/offeredapis/openapitoolgen/offeredapis/pms-api/index.html @@ -2,7 +2,7 @@ <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> - <title>ONAP CCSDK A1 Policy Management Service</title> + <title>ONAP CCSDK - Pre-Spec A1 Policy Management API</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta charset="UTF-8" /> @@ -864,7 +864,7 @@ ul.nav-tabs { "detail" : { "type" : "string", "description" : " A human-readable explanation specific to this occurrence of the problem.", - "example" : "Policy type not found" + "example" : "A1 Policy Type not found" }, "title" : { "type" : "string", @@ -895,7 +895,7 @@ ul.nav-tabs { }, "policy_type_id" : { "type" : "string", - "description" : "Policy type identifier" + "description" : "A1 Policy Type identifier" } }, "description" : "input" @@ -952,14 +952,14 @@ ul.nav-tabs { }, "transient" : { "type" : "boolean", - "description" : "if true, the policy is deleted at RIC restart. If false, its value is maintained by this service until explicitly deleted. Default false.", + "description" : "If true, the policy is automatically deleted if the targeted Near-RT RIC restarts or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.\n", "nullable" : false, "example" : false, "default" : false }, "service_id" : { "type" : "string", - "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered.", + "description" : "The identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered. If the service is registered, the A1 Policy Instance will be subject to the same supervision rules as the the service's other policies.\n", "default" : "" }, "policy_data" : { @@ -972,7 +972,7 @@ ul.nav-tabs { }, "policytype_id" : { "type" : "string", - "description" : "identity of the policy type" + "description" : "identity of the A1 Policy Type" } }, "description" : "Information for one A1-P Policy" @@ -1009,24 +1009,24 @@ ul.nav-tabs { "properties" : { "policy_schema" : { "type" : "object", - "description" : "Policy type json schema. The schema is a json object following http://json-schema.org/draft-07/schema" + "description" : "A1 Policy Type json schema. The schema is a json object following http://json-schema.org/draft-07/schema" } }, - "description" : "Contains policy type schema definition" + "description" : "Contains A1 Policy Type schema definition" }; defs["policy_type_id_list"] = { "type" : "object", "properties" : { "policytype_ids" : { "type" : "array", - "description" : "Policy type identities", + "description" : "A1 Policy Type identities", "items" : { "type" : "string", - "description" : "Policy type identities" + "description" : "A1 Policy Type identities" } } }, - "description" : "Information about policy types" + "description" : "Information about A1 Policy Types" }; defs["ric_info"] = { "type" : "object", @@ -1050,10 +1050,10 @@ ul.nav-tabs { }, "policytype_ids" : { "type" : "array", - "description" : "supported policy types", + "description" : "supported A1 Policy Types", "items" : { "type" : "string", - "description" : "supported policy types" + "description" : "supported A1 Policy Types" } } }, @@ -1082,11 +1082,11 @@ ul.nav-tabs { }, "event_type" : { "type" : "string", - "description" : "values:\nAVAILABLE: the Near-RT RIC has become available for A1 Policy management", + "description" : "values: \n AVAILABLE: the Near-RT RIC has become available for A1 Policy management\n", "enum" : [ "AVAILABLE" ] } }, - "description" : "Information transferred as in Service callbacks (callback_url)" + "description" : "Information transferred in Service callbacks, \nif a callback URL was provided for a registered service\n" }; defs["service_registration_info"] = { "required" : [ "service_id" ], @@ -1094,7 +1094,7 @@ ul.nav-tabs { "properties" : { "callback_url" : { "type" : "string", - "description" : "callback for notifying of Near-RT RIC state changes" + "description" : "Callback for notifying of Near-RT RIC state changes" }, "service_id" : { "type" : "string", @@ -1102,7 +1102,7 @@ ul.nav-tabs { }, "keep_alive_interval_seconds" : { "type" : "integer", - "description" : "keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.", + "description" : "Keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n", "format" : "int64" } }, @@ -1240,7 +1240,7 @@ ul.nav-tabs { <div id="content"> <div id="project"> <div class="pull-left"> - <h1>ONAP CCSDK A1 Policy Management Service</h1> + <h1>ONAP CCSDK - Pre-Spec A1 Policy Management API</h1> </div> <div class="clearfix"></div> </div> @@ -1250,7 +1250,7 @@ ul.nav-tabs { <div class="app-desc">Version: 1.3.0</div> <hr> <div id="app-description" class="app-desc"> - <h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managemecnt of A1 policies. <br/>The main tasks of the service are:</p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 policies and the Near-RT RICs</li><li>Maintaining a view of supported Near-RT RIC policy types</li><li>Supervision of using services (R-APPs). When a service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2><h3>A1 Policy Management</h3><p>This is an API for management of A1 Policies.</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository</h3><p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted for one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the PMS component.</p><h3>Service Registry and Supervision</h3><p>API used for registering services that uses PMS. Each A1 policy is optionally owned by a service. PMS can supervise each registered service by a heart-beat supervision and will automatically remove policies for unavailable services. Note that a service does not need to be registered in order to create A1 Policies. This is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used for access control of A1 Policy access. If configured, an external authorization provider is requested to grant access to the A1 Policy type.</p><h3>Spring Boot Actuator</h3><p>Provides generic functions used to monitor and manage the Spring web application.</p> + <h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes an older pre-spec API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2><h3>A1 Policy Management (Older pre-spec version) </h3> <p>This is an older API for managing A1 Policies:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service .</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then its A1 Policies are removed. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used for access control of A1 Policy access. If configured, an external authorization provider is requested to grant access to the A1 Policy Type.</p><h3>Spring Boot Actuator</h3><p>Provides built-in functions used to monitor and configure the Spring web application hosting the service.</p> </div> </div> @@ -1262,12 +1262,12 @@ ul.nav-tabs { <article id="api-A1PolicyManagement-deletePolicy-0" data-group="User" data-name="deletePolicy" data-version="0"> <div class="pull-left"> <h1>deletePolicy</h1> - <p>Delete a policy</p> + <p>Delete an A1 Policy instance (deletePolicy)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Deleting the policy using the Policy's Policy ID.</p> + <p class="marked">Delete an A1 Policy instance using its policy ID.</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/a1-policy/v2/policies/{policy_id}</span></code></pre> @@ -1371,7 +1371,7 @@ public class A1PolicyManagementApiExample { A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; String *policyId = policyId_example; // (default to null) -// Delete a policy +// Delete an A1 Policy instance (deletePolicy) [apiInstance deletePolicyWith:policyId completionHandler: ^(Object output, NSError* error) { if (output) { @@ -1385,10 +1385,10 @@ String *policyId = policyId_example; // (default to null) </div> <div class="tab-pane" id="examples-A1PolicyManagement-deletePolicy-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi() var policyId = policyId_example; // {String} var callback = function(error, data, response) { @@ -1424,7 +1424,7 @@ namespace Example var policyId = policyId_example; // String | (default to null) try { - // Delete a policy + // Delete an A1 Policy instance (deletePolicy) Object result = apiInstance.deletePolicy(policyId); Debug.WriteLine(result); } catch (Exception e) { @@ -1483,7 +1483,7 @@ api_instance = openapi_client.A1PolicyManagementApi() policyId = policyId_example # String | (default to null) try: - # Delete a policy + # Delete an A1 Policy instance (deletePolicy) api_response = api_instance.delete_policy(policyId) pprint(api_response) except ApiException as e: @@ -1709,12 +1709,12 @@ pub fn main() { <article id="api-A1PolicyManagement-getPolicy-0" data-group="User" data-name="getPolicy" data-version="0"> <div class="pull-left"> <h1>getPolicy</h1> - <p></p> + <p>Get an A1 Policy instance (getPolicy)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Returns a policy</p> + <p class="marked">Get an A1 Policy instance using its policy ID</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/policies/{policy_id}</span></code></pre> @@ -1818,6 +1818,7 @@ public class A1PolicyManagementApiExample { A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; String *policyId = policyId_example; // (default to null) +// Get an A1 Policy instance (getPolicy) [apiInstance getPolicyWith:policyId completionHandler: ^(policy_info output, NSError* error) { if (output) { @@ -1831,10 +1832,10 @@ String *policyId = policyId_example; // (default to null) </div> <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi() var policyId = policyId_example; // {String} var callback = function(error, data, response) { @@ -1870,6 +1871,7 @@ namespace Example var policyId = policyId_example; // String | (default to null) try { + // Get an A1 Policy instance (getPolicy) policy_info result = apiInstance.getPolicy(policyId); Debug.WriteLine(result); } catch (Exception e) { @@ -1928,6 +1930,7 @@ api_instance = openapi_client.A1PolicyManagementApi() policyId = policyId_example # String | (default to null) try: + # Get an A1 Policy instance (getPolicy) api_response = api_instance.get_policy(policyId) pprint(api_response) except ApiException as e: @@ -2146,12 +2149,13 @@ pub fn main() { <article id="api-A1PolicyManagement-getPolicyIds-0" data-group="User" data-name="getPolicyIds" data-version="0"> <div class="pull-left"> <h1>getPolicyIds</h1> - <p>Query policy identities</p> + <p>Query A1 Policy Instances (getPolicyIds)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Returns a list of A1 policies matching given search criteria. <br>If several query parameters are defined, the policies matching all conditions are returned.</p> + <p class="marked">Retrieve a list of A1 Policy Instance IDs for policies that match given search criteria. If multiple query parameters are given, the policies matching all conditions are returned. +</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/policies</span></code></pre> @@ -2195,10 +2199,11 @@ public class A1PolicyManagementApiExample { // Create an instance of the API class A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); - String policytypeId = policytypeId_example; // String | Select policies of a given policy type identity. + String policytypeId = policytypeId_example; // String | Select policies of a given A1 Policy Type ID. String ricId = ricId_example; // String | Select policies of a given Near-RT RIC identity. - String serviceId = serviceId_example; // String | Select policies owned by a given service. - String typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>) + String serviceId = serviceId_example; // String | Select policies owned by a given service. (Both registered and unregistered services) + String typeName = typeName_example; // String | Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version') + try { policy_id_list result = apiInstance.getPolicyIds(policytypeId, ricId, serviceId, typeName); @@ -2217,10 +2222,11 @@ public class A1PolicyManagementApiExample { final api_instance = DefaultApi(); -final String policytypeId = new String(); // String | Select policies of a given policy type identity. +final String policytypeId = new String(); // String | Select policies of a given A1 Policy Type ID. final String ricId = new String(); // String | Select policies of a given Near-RT RIC identity. -final String serviceId = new String(); // String | Select policies owned by a given service. -final String typeName = new String(); // String | Select policies of types with the given type name (type identity has the format <typename_version>) +final String serviceId = new String(); // String | Select policies owned by a given service. (Both registered and unregistered services) +final String typeName = new String(); // String | Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version') + try { final result = await api_instance.getPolicyIds(policytypeId, ricId, serviceId, typeName); @@ -2238,10 +2244,11 @@ try { public class A1PolicyManagementApiExample { public static void main(String[] args) { A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); - String policytypeId = policytypeId_example; // String | Select policies of a given policy type identity. + String policytypeId = policytypeId_example; // String | Select policies of a given A1 Policy Type ID. String ricId = ricId_example; // String | Select policies of a given Near-RT RIC identity. - String serviceId = serviceId_example; // String | Select policies owned by a given service. - String typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>) + String serviceId = serviceId_example; // String | Select policies owned by a given service. (Both registered and unregistered services) + String typeName = typeName_example; // String | Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version') + try { policy_id_list result = apiInstance.getPolicyIds(policytypeId, ricId, serviceId, typeName); @@ -2262,12 +2269,13 @@ public class A1PolicyManagementApiExample { // Create an instance of the API class A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; -String *policytypeId = policytypeId_example; // Select policies of a given policy type identity. (optional) (default to null) +String *policytypeId = policytypeId_example; // Select policies of a given A1 Policy Type ID. (optional) (default to null) String *ricId = ricId_example; // Select policies of a given Near-RT RIC identity. (optional) (default to null) -String *serviceId = serviceId_example; // Select policies owned by a given service. (optional) (default to null) -String *typeName = typeName_example; // Select policies of types with the given type name (type identity has the format <typename_version>) (optional) (default to null) +String *serviceId = serviceId_example; // Select policies owned by a given service. (Both registered and unregistered services) (optional) (default to null) +String *typeName = typeName_example; // Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version') + (optional) (default to null) -// Query policy identities +// Query A1 Policy Instances (getPolicyIds) [apiInstance getPolicyIdsWith:policytypeId ricId:ricId serviceId:serviceId @@ -2284,15 +2292,16 @@ String *typeName = typeName_example; // Select policies of types with the given </div> <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi() var opts = { - 'policytypeId': policytypeId_example, // {String} Select policies of a given policy type identity. + 'policytypeId': policytypeId_example, // {String} Select policies of a given A1 Policy Type ID. 'ricId': ricId_example, // {String} Select policies of a given Near-RT RIC identity. - 'serviceId': serviceId_example, // {String} Select policies owned by a given service. - 'typeName': typeName_example // {String} Select policies of types with the given type name (type identity has the format <typename_version>) + 'serviceId': serviceId_example, // {String} Select policies owned by a given service. (Both registered and unregistered services) + 'typeName': typeName_example // {String} Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version') + }; var callback = function(error, data, response) { @@ -2325,13 +2334,14 @@ namespace Example // Create an instance of the API class var apiInstance = new A1PolicyManagementApi(); - var policytypeId = policytypeId_example; // String | Select policies of a given policy type identity. (optional) (default to null) + var policytypeId = policytypeId_example; // String | Select policies of a given A1 Policy Type ID. (optional) (default to null) var ricId = ricId_example; // String | Select policies of a given Near-RT RIC identity. (optional) (default to null) - var serviceId = serviceId_example; // String | Select policies owned by a given service. (optional) (default to null) - var typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>) (optional) (default to null) + var serviceId = serviceId_example; // String | Select policies owned by a given service. (Both registered and unregistered services) (optional) (default to null) + var typeName = typeName_example; // String | Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version') + (optional) (default to null) try { - // Query policy identities + // Query A1 Policy Instances (getPolicyIds) policy_id_list result = apiInstance.getPolicyIds(policytypeId, ricId, serviceId, typeName); Debug.WriteLine(result); } catch (Exception e) { @@ -2349,10 +2359,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi(); -$policytypeId = policytypeId_example; // String | Select policies of a given policy type identity. +$policytypeId = policytypeId_example; // String | Select policies of a given A1 Policy Type ID. $ricId = ricId_example; // String | Select policies of a given Near-RT RIC identity. -$serviceId = serviceId_example; // String | Select policies owned by a given service. -$typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>) +$serviceId = serviceId_example; // String | Select policies owned by a given service. (Both registered and unregistered services) +$typeName = typeName_example; // String | Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version') + try { $result = $api_instance->getPolicyIds($policytypeId, $ricId, $serviceId, $typeName); @@ -2370,10 +2381,11 @@ use WWW::OPenAPIClient::A1PolicyManagementApi; # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new(); -my $policytypeId = policytypeId_example; # String | Select policies of a given policy type identity. +my $policytypeId = policytypeId_example; # String | Select policies of a given A1 Policy Type ID. my $ricId = ricId_example; # String | Select policies of a given Near-RT RIC identity. -my $serviceId = serviceId_example; # String | Select policies owned by a given service. -my $typeName = typeName_example; # String | Select policies of types with the given type name (type identity has the format <typename_version>) +my $serviceId = serviceId_example; # String | Select policies owned by a given service. (Both registered and unregistered services) +my $typeName = typeName_example; # String | Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version') + eval { my $result = $api_instance->getPolicyIds(policytypeId => $policytypeId, ricId => $ricId, serviceId => $serviceId, typeName => $typeName); @@ -2393,13 +2405,14 @@ from pprint import pprint # Create an instance of the API class api_instance = openapi_client.A1PolicyManagementApi() -policytypeId = policytypeId_example # String | Select policies of a given policy type identity. (optional) (default to null) +policytypeId = policytypeId_example # String | Select policies of a given A1 Policy Type ID. (optional) (default to null) ricId = ricId_example # String | Select policies of a given Near-RT RIC identity. (optional) (default to null) -serviceId = serviceId_example # String | Select policies owned by a given service. (optional) (default to null) -typeName = typeName_example # String | Select policies of types with the given type name (type identity has the format <typename_version>) (optional) (default to null) +serviceId = serviceId_example # String | Select policies owned by a given service. (Both registered and unregistered services) (optional) (default to null) +typeName = typeName_example # String | Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version') + (optional) (default to null) try: - # Query policy identities + # Query A1 Policy Instances (getPolicyIds) api_response = api_instance.get_policy_ids(policytypeId=policytypeId, ricId=ricId, serviceId=serviceId, typeName=typeName) pprint(api_response) except ApiException as e: @@ -2453,7 +2466,7 @@ pub fn main() { </span> <div class="inner description marked"> -Select policies of a given policy type identity. +Select policies of a given A1 Policy Type ID. </div> </div> </div> @@ -2493,7 +2506,7 @@ Select policies of a given Near-RT RIC identity. </span> <div class="inner description marked"> -Select policies owned by a given service. +Select policies owned by a given service. (Both registered and unregistered services) </div> </div> </div> @@ -2513,7 +2526,8 @@ Select policies owned by a given service. </span> <div class="inner description marked"> -Select policies of types with the given type name (type identity has the format <typename_version>) +Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version') + </div> </div> </div> @@ -2681,12 +2695,13 @@ Select policies of types with the given type name (type identity has the format <article id="api-A1PolicyManagement-getPolicyInstances-0" data-group="User" data-name="getPolicyInstances" data-version="0"> <div class="pull-left"> <h1>getPolicyInstances</h1> - <p>Query for A1 policy instances</p> + <p>Query for A1 Policy instances (getPolicyInstances)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Returns a list of A1 policies matching given search criteria. <br>If several query parameters are defined, the policies matching all conditions are returned.</p> + <p class="marked">Returns a collection of A1 Policy Instance information for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned. +</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/policy-instances</span></code></pre> @@ -2730,10 +2745,10 @@ public class A1PolicyManagementApiExample { // Create an instance of the API class A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); - String policytypeId = policytypeId_example; // String | Select policies with a given type identity. + String policytypeId = policytypeId_example; // String | Select policies with a given A1 Policy Type ID. String ricId = ricId_example; // String | Select policies for a given Near-RT RIC identity. - String serviceId = serviceId_example; // String | Select policies owned by a given service. - String typeName = typeName_example; // String | Select policies of a given type name (type identity has the format <typename_version>) + String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). + String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). try { policy_info_list result = apiInstance.getPolicyInstances(policytypeId, ricId, serviceId, typeName); @@ -2752,10 +2767,10 @@ public class A1PolicyManagementApiExample { final api_instance = DefaultApi(); -final String policytypeId = new String(); // String | Select policies with a given type identity. +final String policytypeId = new String(); // String | Select policies with a given A1 Policy Type ID. final String ricId = new String(); // String | Select policies for a given Near-RT RIC identity. -final String serviceId = new String(); // String | Select policies owned by a given service. -final String typeName = new String(); // String | Select policies of a given type name (type identity has the format <typename_version>) +final String serviceId = new String(); // String | Select policies owned by a given service (registered or unregistered). +final String typeName = new String(); // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). try { final result = await api_instance.getPolicyInstances(policytypeId, ricId, serviceId, typeName); @@ -2773,10 +2788,10 @@ try { public class A1PolicyManagementApiExample { public static void main(String[] args) { A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); - String policytypeId = policytypeId_example; // String | Select policies with a given type identity. + String policytypeId = policytypeId_example; // String | Select policies with a given A1 Policy Type ID. String ricId = ricId_example; // String | Select policies for a given Near-RT RIC identity. - String serviceId = serviceId_example; // String | Select policies owned by a given service. - String typeName = typeName_example; // String | Select policies of a given type name (type identity has the format <typename_version>) + String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). + String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). try { policy_info_list result = apiInstance.getPolicyInstances(policytypeId, ricId, serviceId, typeName); @@ -2797,12 +2812,12 @@ public class A1PolicyManagementApiExample { // Create an instance of the API class A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; -String *policytypeId = policytypeId_example; // Select policies with a given type identity. (optional) (default to null) +String *policytypeId = policytypeId_example; // Select policies with a given A1 Policy Type ID. (optional) (default to null) String *ricId = ricId_example; // Select policies for a given Near-RT RIC identity. (optional) (default to null) -String *serviceId = serviceId_example; // Select policies owned by a given service. (optional) (default to null) -String *typeName = typeName_example; // Select policies of a given type name (type identity has the format <typename_version>) (optional) (default to null) +String *serviceId = serviceId_example; // Select policies owned by a given service (registered or unregistered). (optional) (default to null) +String *typeName = typeName_example; // Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null) -// Query for A1 policy instances +// Query for A1 Policy instances (getPolicyInstances) [apiInstance getPolicyInstancesWith:policytypeId ricId:ricId serviceId:serviceId @@ -2819,15 +2834,15 @@ String *typeName = typeName_example; // Select policies of a given type name (ty </div> <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyInstances-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi() var opts = { - 'policytypeId': policytypeId_example, // {String} Select policies with a given type identity. + 'policytypeId': policytypeId_example, // {String} Select policies with a given A1 Policy Type ID. 'ricId': ricId_example, // {String} Select policies for a given Near-RT RIC identity. - 'serviceId': serviceId_example, // {String} Select policies owned by a given service. - 'typeName': typeName_example // {String} Select policies of a given type name (type identity has the format <typename_version>) + 'serviceId': serviceId_example, // {String} Select policies owned by a given service (registered or unregistered). + 'typeName': typeName_example // {String} Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). }; var callback = function(error, data, response) { @@ -2860,13 +2875,13 @@ namespace Example // Create an instance of the API class var apiInstance = new A1PolicyManagementApi(); - var policytypeId = policytypeId_example; // String | Select policies with a given type identity. (optional) (default to null) + var policytypeId = policytypeId_example; // String | Select policies with a given A1 Policy Type ID. (optional) (default to null) var ricId = ricId_example; // String | Select policies for a given Near-RT RIC identity. (optional) (default to null) - var serviceId = serviceId_example; // String | Select policies owned by a given service. (optional) (default to null) - var typeName = typeName_example; // String | Select policies of a given type name (type identity has the format <typename_version>) (optional) (default to null) + var serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). (optional) (default to null) + var typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null) try { - // Query for A1 policy instances + // Query for A1 Policy instances (getPolicyInstances) policy_info_list result = apiInstance.getPolicyInstances(policytypeId, ricId, serviceId, typeName); Debug.WriteLine(result); } catch (Exception e) { @@ -2884,10 +2899,10 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi(); -$policytypeId = policytypeId_example; // String | Select policies with a given type identity. +$policytypeId = policytypeId_example; // String | Select policies with a given A1 Policy Type ID. $ricId = ricId_example; // String | Select policies for a given Near-RT RIC identity. -$serviceId = serviceId_example; // String | Select policies owned by a given service. -$typeName = typeName_example; // String | Select policies of a given type name (type identity has the format <typename_version>) +$serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). +$typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). try { $result = $api_instance->getPolicyInstances($policytypeId, $ricId, $serviceId, $typeName); @@ -2905,10 +2920,10 @@ use WWW::OPenAPIClient::A1PolicyManagementApi; # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new(); -my $policytypeId = policytypeId_example; # String | Select policies with a given type identity. +my $policytypeId = policytypeId_example; # String | Select policies with a given A1 Policy Type ID. my $ricId = ricId_example; # String | Select policies for a given Near-RT RIC identity. -my $serviceId = serviceId_example; # String | Select policies owned by a given service. -my $typeName = typeName_example; # String | Select policies of a given type name (type identity has the format <typename_version>) +my $serviceId = serviceId_example; # String | Select policies owned by a given service (registered or unregistered). +my $typeName = typeName_example; # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). eval { my $result = $api_instance->getPolicyInstances(policytypeId => $policytypeId, ricId => $ricId, serviceId => $serviceId, typeName => $typeName); @@ -2928,13 +2943,13 @@ from pprint import pprint # Create an instance of the API class api_instance = openapi_client.A1PolicyManagementApi() -policytypeId = policytypeId_example # String | Select policies with a given type identity. (optional) (default to null) +policytypeId = policytypeId_example # String | Select policies with a given A1 Policy Type ID. (optional) (default to null) ricId = ricId_example # String | Select policies for a given Near-RT RIC identity. (optional) (default to null) -serviceId = serviceId_example # String | Select policies owned by a given service. (optional) (default to null) -typeName = typeName_example # String | Select policies of a given type name (type identity has the format <typename_version>) (optional) (default to null) +serviceId = serviceId_example # String | Select policies owned by a given service (registered or unregistered). (optional) (default to null) +typeName = typeName_example # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null) try: - # Query for A1 policy instances + # Query for A1 Policy instances (getPolicyInstances) api_response = api_instance.get_policy_instances(policytypeId=policytypeId, ricId=ricId, serviceId=serviceId, typeName=typeName) pprint(api_response) except ApiException as e: @@ -2988,7 +3003,7 @@ pub fn main() { </span> <div class="inner description marked"> -Select policies with a given type identity. +Select policies with a given A1 Policy Type ID. </div> </div> </div> @@ -3028,7 +3043,7 @@ Select policies for a given Near-RT RIC identity. </span> <div class="inner description marked"> -Select policies owned by a given service. +Select policies owned by a given service (registered or unregistered). </div> </div> </div> @@ -3048,7 +3063,7 @@ Select policies owned by a given service. </span> <div class="inner description marked"> -Select policies of a given type name (type identity has the format <typename_version>) +Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). </div> </div> </div> @@ -3062,7 +3077,7 @@ Select policies of a given type name (type identity has the format <typename_ <h3 id="examples-A1PolicyManagement-getPolicyInstances-title-200"></h3> <p id="examples-A1PolicyManagement-getPolicyInstances-description-200" class="marked"></p> <script> - var responseA1PolicyManagement200_description = `OK - Returns A1 Policies which matches the criteria`; + var responseA1PolicyManagement200_description = `OK - Returns A1 Policy Instances which match the criteria`; var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n'); if (responseA1PolicyManagement200_description_break == -1) { $("#examples-A1PolicyManagement-getPolicyInstances-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); @@ -3090,7 +3105,7 @@ Select policies of a given type name (type identity has the format <typename_ <script> $(document).ready(function() { var schemaWrapper = { - "description" : "OK - Returns A1 Policies which matches the criteria", + "description" : "OK - Returns A1 Policy Instances which match the criteria", "content" : { "application/json" : { "schema" : { @@ -3143,7 +3158,7 @@ Select policies of a given type name (type identity has the format <typename_ <h3 id="examples-A1PolicyManagement-getPolicyInstances-title-404"></h3> <p id="examples-A1PolicyManagement-getPolicyInstances-description-404" class="marked"></p> <script> - var responseA1PolicyManagement404_description = `Not Found - Near-RT RIC, policy type or service not found`; + var responseA1PolicyManagement404_description = `Not Found - Near-RT RIC, A1 Policy Type or service was not found`; var responseA1PolicyManagement404_description_break = responseA1PolicyManagement404_description.indexOf('\n'); if (responseA1PolicyManagement404_description_break == -1) { $("#examples-A1PolicyManagement-getPolicyInstances-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description); @@ -3171,7 +3186,7 @@ Select policies of a given type name (type identity has the format <typename_ <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Not Found - Near-RT RIC, policy type or service not found", + "description" : "Not Found - Near-RT RIC, A1 Policy Type or service was not found", "content" : { "application/json" : { "schema" : { @@ -3223,12 +3238,12 @@ Select policies of a given type name (type identity has the format <typename_ <article id="api-A1PolicyManagement-getPolicyStatus-0" data-group="User" data-name="getPolicyStatus" data-version="0"> <div class="pull-left"> <h1>getPolicyStatus</h1> - <p></p> + <p>Get an A1 Policy Instance's status (getPolicyStatus)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Returns a policy status</p> + <p class="marked">Retrieve the status information for an A1 Policy Instance.</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/policies/{policy_id}/status</span></code></pre> @@ -3332,6 +3347,7 @@ public class A1PolicyManagementApiExample { A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; String *policyId = policyId_example; // (default to null) +// Get an A1 Policy Instance's status (getPolicyStatus) [apiInstance getPolicyStatusWith:policyId completionHandler: ^(policy_status_info output, NSError* error) { if (output) { @@ -3345,10 +3361,10 @@ String *policyId = policyId_example; // (default to null) </div> <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi() var policyId = policyId_example; // {String} var callback = function(error, data, response) { @@ -3384,6 +3400,7 @@ namespace Example var policyId = policyId_example; // String | (default to null) try { + // Get an A1 Policy Instance's status (getPolicyStatus) policy_status_info result = apiInstance.getPolicyStatus(policyId); Debug.WriteLine(result); } catch (Exception e) { @@ -3442,6 +3459,7 @@ api_instance = openapi_client.A1PolicyManagementApi() policyId = policyId_example # String | (default to null) try: + # Get an A1 Policy Instance's status (getPolicyStatus) api_response = api_instance.get_policy_status(policyId) pprint(api_response) except ApiException as e: @@ -3660,12 +3678,12 @@ pub fn main() { <article id="api-A1PolicyManagement-getPolicyTypeDefinition-0" data-group="User" data-name="getPolicyTypeDefinition" data-version="0"> <div class="pull-left"> <h1>getPolicyTypeDefinition</h1> - <p></p> + <p>Get an A1 Policy Type definition (getPolicyTypeDefinition)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Returns a policy type definition</p> + <p class="marked">Get an A1 Policy Type definition using its policy type ID</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/policy-types/{policytype_id}</span></code></pre> @@ -3769,6 +3787,7 @@ public class A1PolicyManagementApiExample { A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; String *policytypeId = policytypeId_example; // (default to null) +// Get an A1 Policy Type definition (getPolicyTypeDefinition) [apiInstance getPolicyTypeDefinitionWith:policytypeId completionHandler: ^(policy_type_definition output, NSError* error) { if (output) { @@ -3782,10 +3801,10 @@ String *policytypeId = policytypeId_example; // (default to null) </div> <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyTypeDefinition-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi() var policytypeId = policytypeId_example; // {String} var callback = function(error, data, response) { @@ -3821,6 +3840,7 @@ namespace Example var policytypeId = policytypeId_example; // String | (default to null) try { + // Get an A1 Policy Type definition (getPolicyTypeDefinition) policy_type_definition result = apiInstance.getPolicyTypeDefinition(policytypeId); Debug.WriteLine(result); } catch (Exception e) { @@ -3879,6 +3899,7 @@ api_instance = openapi_client.A1PolicyManagementApi() policytypeId = policytypeId_example # String | (default to null) try: + # Get an A1 Policy Type definition (getPolicyTypeDefinition) api_response = api_instance.get_policy_type_definition(policytypeId) pprint(api_response) except ApiException as e: @@ -3943,7 +3964,7 @@ pub fn main() { <h3 id="examples-A1PolicyManagement-getPolicyTypeDefinition-title-200"></h3> <p id="examples-A1PolicyManagement-getPolicyTypeDefinition-description-200" class="marked"></p> <script> - var responseA1PolicyManagement200_description = `OK - schema of the given policy type`; + var responseA1PolicyManagement200_description = `OK - schema of the requested A1 Policy Type`; var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n'); if (responseA1PolicyManagement200_description_break == -1) { $("#examples-A1PolicyManagement-getPolicyTypeDefinition-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); @@ -3971,7 +3992,7 @@ pub fn main() { <script> $(document).ready(function() { var schemaWrapper = { - "description" : "OK - schema of the given policy type", + "description" : "OK - schema of the requested A1 Policy Type", "content" : { "application/json" : { "schema" : { @@ -4097,12 +4118,12 @@ pub fn main() { <article id="api-A1PolicyManagement-getPolicyTypes-0" data-group="User" data-name="getPolicyTypes" data-version="0"> <div class="pull-left"> <h1>getPolicyTypes</h1> - <p></p> + <p>Get A1 Policy Types (getPolicyTypes)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Query policy type identities</p> + <p class="marked">Query A1 Policy Type identities using query parameters</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/policy-types</span></code></pre> @@ -4147,7 +4168,7 @@ public class A1PolicyManagementApiExample { // Create an instance of the API class A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); String ricId = ricId_example; // String | Select types for the given Near-RT RIC identity. - String typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>) + String typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version') String compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. try { @@ -4168,7 +4189,7 @@ public class A1PolicyManagementApiExample { final api_instance = DefaultApi(); final String ricId = new String(); // String | Select types for the given Near-RT RIC identity. -final String typeName = new String(); // String | Select types with the given type name (type identity has the format <typename_version>) +final String typeName = new String(); // String | Select types compatible with the given type name (type identity has the format 'typename_version') final String compatibleWithVersion = new String(); // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. try { @@ -4188,7 +4209,7 @@ public class A1PolicyManagementApiExample { public static void main(String[] args) { A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); String ricId = ricId_example; // String | Select types for the given Near-RT RIC identity. - String typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>) + String typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version') String compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. try { @@ -4211,9 +4232,10 @@ public class A1PolicyManagementApiExample { // Create an instance of the API class A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; String *ricId = ricId_example; // Select types for the given Near-RT RIC identity. (optional) (default to null) -String *typeName = typeName_example; // Select types with the given type name (type identity has the format <typename_version>) (optional) (default to null) +String *typeName = typeName_example; // Select types compatible with the given type name (type identity has the format 'typename_version') (optional) (default to null) String *compatibleWithVersion = compatibleWithVersion_example; // Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. (optional) (default to null) +// Get A1 Policy Types (getPolicyTypes) [apiInstance getPolicyTypesWith:ricId typeName:typeName compatibleWithVersion:compatibleWithVersion @@ -4229,13 +4251,13 @@ String *compatibleWithVersion = compatibleWithVersion_example; // Select types t </div> <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyTypes-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi() var opts = { 'ricId': ricId_example, // {String} Select types for the given Near-RT RIC identity. - 'typeName': typeName_example, // {String} Select types with the given type name (type identity has the format <typename_version>) + 'typeName': typeName_example, // {String} Select types compatible with the given type name (type identity has the format 'typename_version') 'compatibleWithVersion': compatibleWithVersion_example // {String} Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. }; @@ -4270,10 +4292,11 @@ namespace Example // Create an instance of the API class var apiInstance = new A1PolicyManagementApi(); var ricId = ricId_example; // String | Select types for the given Near-RT RIC identity. (optional) (default to null) - var typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>) (optional) (default to null) + var typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version') (optional) (default to null) var compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. (optional) (default to null) try { + // Get A1 Policy Types (getPolicyTypes) policy_type_id_list result = apiInstance.getPolicyTypes(ricId, typeName, compatibleWithVersion); Debug.WriteLine(result); } catch (Exception e) { @@ -4292,7 +4315,7 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi(); $ricId = ricId_example; // String | Select types for the given Near-RT RIC identity. -$typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>) +$typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version') $compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. try { @@ -4312,7 +4335,7 @@ use WWW::OPenAPIClient::A1PolicyManagementApi; # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new(); my $ricId = ricId_example; # String | Select types for the given Near-RT RIC identity. -my $typeName = typeName_example; # String | Select types with the given type name (type identity has the format <typename_version>) +my $typeName = typeName_example; # String | Select types compatible with the given type name (type identity has the format 'typename_version') my $compatibleWithVersion = compatibleWithVersion_example; # String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. eval { @@ -4334,10 +4357,11 @@ from pprint import pprint # Create an instance of the API class api_instance = openapi_client.A1PolicyManagementApi() ricId = ricId_example # String | Select types for the given Near-RT RIC identity. (optional) (default to null) -typeName = typeName_example # String | Select types with the given type name (type identity has the format <typename_version>) (optional) (default to null) +typeName = typeName_example # String | Select types compatible with the given type name (type identity has the format 'typename_version') (optional) (default to null) compatibleWithVersion = compatibleWithVersion_example # String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. (optional) (default to null) try: + # Get A1 Policy Types (getPolicyTypes) api_response = api_instance.get_policy_types(ricId=ricId, typeName=typeName, compatibleWithVersion=compatibleWithVersion) pprint(api_response) except ApiException as e: @@ -4410,7 +4434,7 @@ Select types for the given Near-RT RIC identity. </span> <div class="inner description marked"> -Select types with the given type name (type identity has the format <typename_version>) +Select types compatible with the given type name (type identity has the format 'typename_version') </div> </div> </div> @@ -4598,12 +4622,12 @@ Select types that are compatible with the given version. This parameter is only <article id="api-A1PolicyManagement-putPolicy-0" data-group="User" data-name="putPolicy" data-version="0"> <div class="pull-left"> <h1>putPolicy</h1> - <p></p> + <p>Create or Update an A1 Policy Instance (putPolicy)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Create or update a policy</p> + <p class="marked">Create or Update an A1 Policy Instance</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/a1-policy/v2/policies</span></code></pre> @@ -4709,6 +4733,7 @@ public class A1PolicyManagementApiExample { A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; PolicyInfo *policyInfo = ; // +// Create or Update an A1 Policy Instance (putPolicy) [apiInstance putPolicyWith:policyInfo completionHandler: ^(Object output, NSError* error) { if (output) { @@ -4722,10 +4747,10 @@ PolicyInfo *policyInfo = ; // </div> <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi() var policyInfo = ; // {PolicyInfo} var callback = function(error, data, response) { @@ -4761,6 +4786,7 @@ namespace Example var policyInfo = new PolicyInfo(); // PolicyInfo | try { + // Create or Update an A1 Policy Instance (putPolicy) Object result = apiInstance.putPolicy(policyInfo); Debug.WriteLine(result); } catch (Exception e) { @@ -4819,6 +4845,7 @@ api_instance = openapi_client.A1PolicyManagementApi() policyInfo = # PolicyInfo | try: + # Create or Update an A1 Policy Instance (putPolicy) api_response = api_instance.put_policy(policyInfo) pprint(api_response) except ApiException as e: @@ -5144,12 +5171,13 @@ $(document).ready(function() { <article id="api-AuthorizationAPI-performAccessControl-0" data-group="User" data-name="performAccessControl" data-version="0"> <div class="pull-left"> <h1>performAccessControl</h1> - <p>Request for access authorization.</p> + <p>Callout request for access authorization (performAccessControl)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">The authorization function decides if access is granted.</p> + <p class="marked">A template endpoint for callout requests to an external authorization function. The authorization function, if enabled, decides if individual operations are permitted. +</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/example-authz-check</span></code></pre> @@ -5255,7 +5283,7 @@ public class AuthorizationAPIApiExample { AuthorizationAPIApi *apiInstance = [[AuthorizationAPIApi alloc] init]; PolicyAuthorization *policyAuthorization = ; // -// Request for access authorization. +// Callout request for access authorization (performAccessControl) [apiInstance performAccessControlWith:policyAuthorization completionHandler: ^(authorization_result output, NSError* error) { if (output) { @@ -5269,10 +5297,10 @@ PolicyAuthorization *policyAuthorization = ; // </div> <div class="tab-pane" id="examples-AuthorizationAPI-performAccessControl-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.AuthorizationAPIApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.AuthorizationAPIApi() var policyAuthorization = ; // {PolicyAuthorization} var callback = function(error, data, response) { @@ -5308,7 +5336,7 @@ namespace Example var policyAuthorization = new PolicyAuthorization(); // PolicyAuthorization | try { - // Request for access authorization. + // Callout request for access authorization (performAccessControl) authorization_result result = apiInstance.performAccessControl(policyAuthorization); Debug.WriteLine(result); } catch (Exception e) { @@ -5367,7 +5395,7 @@ api_instance = openapi_client.AuthorizationAPIApi() policyAuthorization = # PolicyAuthorization | try: - # Request for access authorization. + # Callout request for access authorization (performAccessControl) api_response = api_instance.perform_access_control(policyAuthorization) pprint(api_response) except ApiException as e: @@ -5617,12 +5645,12 @@ $(document).ready(function() { <article id="api-Configuration-getConfiguration-0" data-group="User" data-name="getConfiguration" data-version="0"> <div class="pull-left"> <h1>getConfiguration</h1> - <p></p> + <p>Get the Application Configuration (getConfiguration)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Returns the contents of the application configuration file</p> + <p class="marked">Returns the entire contents of the Application Configuration.</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/configuration</span></code></pre> @@ -5722,6 +5750,7 @@ public class ConfigurationApiExample { // Create an instance of the API class ConfigurationApi *apiInstance = [[ConfigurationApi alloc] init]; +// Get the Application Configuration (getConfiguration) [apiInstance getConfigurationWithCompletionHandler: ^('String' output, NSError* error) { if (output) { @@ -5735,10 +5764,10 @@ ConfigurationApi *apiInstance = [[ConfigurationApi alloc] init]; </div> <div class="tab-pane" id="examples-Configuration-getConfiguration-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.ConfigurationApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.ConfigurationApi() var callback = function(error, data, response) { if (error) { console.error(error); @@ -5771,6 +5800,7 @@ namespace Example var apiInstance = new ConfigurationApi(); try { + // Get the Application Configuration (getConfiguration) 'String' result = apiInstance.getConfiguration(); Debug.WriteLine(result); } catch (Exception e) { @@ -5826,6 +5856,7 @@ from pprint import pprint api_instance = openapi_client.ConfigurationApi() try: + # Get the Application Configuration (getConfiguration) api_response = api_instance.get_configuration() pprint(api_response) except ApiException as e: @@ -6011,12 +6042,13 @@ pub fn main() { <article id="api-Configuration-putConfiguration-0" data-group="User" data-name="putConfiguration" data-version="0"> <div class="pull-left"> <h1>putConfiguration</h1> - <p></p> + <p>Set/Replace the Application Configuration (putConfiguration)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Replace the current configuration with the given configuration</p> + <p class="marked">Replace the current Application Configuration with a new configuration. The new configuration, if accepted, will take effect after a short delay. The new configuration must comply with the Application Configuration schema, which can be found from the the Application Documentation (Developer Guide) +</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/a1-policy/v2/configuration</span></code></pre> @@ -6122,6 +6154,7 @@ public class ConfigurationApiExample { ConfigurationApi *apiInstance = [[ConfigurationApi alloc] init]; Object *body = Object; // +// Set/Replace the Application Configuration (putConfiguration) [apiInstance putConfigurationWith:body completionHandler: ^(Object output, NSError* error) { if (output) { @@ -6135,10 +6168,10 @@ Object *body = Object; // </div> <div class="tab-pane" id="examples-Configuration-putConfiguration-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.ConfigurationApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.ConfigurationApi() var body = Object; // {Object} var callback = function(error, data, response) { @@ -6174,6 +6207,7 @@ namespace Example var body = Object; // Object | try { + // Set/Replace the Application Configuration (putConfiguration) Object result = apiInstance.putConfiguration(body); Debug.WriteLine(result); } catch (Exception e) { @@ -6232,6 +6266,7 @@ api_instance = openapi_client.ConfigurationApi() body = Object # Object | try: + # Set/Replace the Application Configuration (putConfiguration) api_response = api_instance.put_configuration(body) pprint(api_response) except ApiException as e: @@ -6481,7 +6516,7 @@ $(document).ready(function() { <article id="api-HealthCheck-getStatus-0" data-group="User" data-name="getStatus" data-version="0"> <div class="pull-left"> <h1>getStatus</h1> - <p></p> + <p>Get Status (getStatus)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> @@ -6586,6 +6621,7 @@ public class HealthCheckApiExample { // Create an instance of the API class HealthCheckApi *apiInstance = [[HealthCheckApi alloc] init]; +// Get Status (getStatus) [apiInstance getStatusWithCompletionHandler: ^(status_info output, NSError* error) { if (output) { @@ -6599,10 +6635,10 @@ HealthCheckApi *apiInstance = [[HealthCheckApi alloc] init]; </div> <div class="tab-pane" id="examples-HealthCheck-getStatus-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.HealthCheckApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.HealthCheckApi() var callback = function(error, data, response) { if (error) { console.error(error); @@ -6635,6 +6671,7 @@ namespace Example var apiInstance = new HealthCheckApi(); try { + // Get Status (getStatus) status_info result = apiInstance.getStatus(); Debug.WriteLine(result); } catch (Exception e) { @@ -6690,6 +6727,7 @@ from pprint import pprint api_instance = openapi_client.HealthCheckApi() try: + # Get Status (getStatus) api_response = api_instance.get_status() pprint(api_response) except ApiException as e: @@ -6811,7 +6849,7 @@ pub fn main() { <article id="api-HealthCheck-getStatusV1-0" data-group="User" data-name="getStatusV1" data-version="0"> <div class="pull-left"> <h1>getStatusV1</h1> - <p></p> + <p>Get Status (getStatusV1)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> @@ -6916,6 +6954,7 @@ public class HealthCheckApiExample { // Create an instance of the API class HealthCheckApi *apiInstance = [[HealthCheckApi alloc] init]; +// Get Status (getStatusV1) [apiInstance getStatusV1WithCompletionHandler: ^('String' output, NSError* error) { if (output) { @@ -6929,10 +6968,10 @@ HealthCheckApi *apiInstance = [[HealthCheckApi alloc] init]; </div> <div class="tab-pane" id="examples-HealthCheck-getStatusV1-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.HealthCheckApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.HealthCheckApi() var callback = function(error, data, response) { if (error) { console.error(error); @@ -6965,6 +7004,7 @@ namespace Example var apiInstance = new HealthCheckApi(); try { + // Get Status (getStatusV1) 'String' result = apiInstance.getStatusV1(); Debug.WriteLine(result); } catch (Exception e) { @@ -7020,6 +7060,7 @@ from pprint import pprint api_instance = openapi_client.HealthCheckApi() try: + # Get Status (getStatusV1) api_response = api_instance.get_status_v1() pprint(api_response) except ApiException as e: @@ -7139,12 +7180,13 @@ pub fn main() { <article id="api-NearRTRICRepository-getRic-0" data-group="User" data-name="getRic" data-version="0"> <div class="pull-left"> <h1>getRic</h1> - <p>Returns info of Near-RT RIC queried by the ric-id and managed-element-id</p> + <p>Get a Near-RT RIC (getRic)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">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).</p> + <p class="marked">Query information about a Near-RT RIC. Either a Near-RT RIC identity or a Managed Element identity can be specified. The intention with Managed Element identity is the ID used in O1 for accessing the traffical element (such as the ID of CU). +</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/rics/ric</span></code></pre> @@ -7189,6 +7231,7 @@ 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. try { @@ -7209,6 +7252,7 @@ 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. try { @@ -7228,6 +7272,7 @@ 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. try { @@ -7249,10 +7294,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 *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) -// Returns info of Near-RT RIC queried by the ric-id and managed-element-id +// Get a Near-RT RIC (getRic) [apiInstance getRicWith:managedElementId ricId:ricId completionHandler: ^(ric_info output, NSError* error) { @@ -7267,12 +7313,13 @@ String *ricId = ricId_example; // The identity of a Near-RT RIC to get informati </div> <div class="tab-pane" id="examples-NearRTRICRepository-getRic-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.NearRTRICRepositoryApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.NearRTRICRepositoryApi() 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. }; @@ -7306,11 +7353,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 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) try { - // Returns info of Near-RT RIC queried by the ric-id and managed-element-id + // Get a Near-RT RIC (getRic) ric_info result = apiInstance.getRic(managedElementId, ricId); Debug.WriteLine(result); } catch (Exception e) { @@ -7329,6 +7377,7 @@ 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. try { @@ -7348,6 +7397,7 @@ 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. eval { @@ -7368,11 +7418,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) +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) try: - # Returns info of Near-RT RIC queried by the ric-id and managed-element-id + # Get a Near-RT RIC (getRic) api_response = api_instance.get_ric(managedElementId=managedElementId, ricId=ricId) pprint(api_response) except ApiException as e: @@ -7425,6 +7476,7 @@ pub fn main() { <div class="inner description marked"> The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned. + </div> </div> </div> @@ -7612,12 +7664,12 @@ The identity of a Near-RT RIC to get information for. <article id="api-NearRTRICRepository-getRics-0" data-group="User" data-name="getRics" data-version="0"> <div class="pull-left"> <h1>getRics</h1> - <p>Query Near-RT RIC information</p> + <p>Get Near-RT RICs for A1 Policy Type (getRics)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">The call returns all Near-RT RICs that supports a given policy type identity</p> + <p class="marked">Get all Near-RT RICs that supports a given A1 Policy Type ID</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/rics</span></code></pre> @@ -7661,7 +7713,8 @@ public class NearRTRICRepositoryApiExample { // Create an instance of the API class NearRTRICRepositoryApi apiInstance = new NearRTRICRepositoryApi(); - String policytypeId = policytypeId_example; // String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned + String policytypeId = policytypeId_example; // String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + try { ric_info_list result = apiInstance.getRics(policytypeId); @@ -7680,7 +7733,8 @@ public class NearRTRICRepositoryApiExample { final api_instance = DefaultApi(); -final String policytypeId = new String(); // String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned +final String policytypeId = new String(); // String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + try { final result = await api_instance.getRics(policytypeId); @@ -7698,7 +7752,8 @@ try { public class NearRTRICRepositoryApiExample { public static void main(String[] args) { NearRTRICRepositoryApi apiInstance = new NearRTRICRepositoryApi(); - String policytypeId = policytypeId_example; // String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned + String policytypeId = policytypeId_example; // String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + try { ric_info_list result = apiInstance.getRics(policytypeId); @@ -7719,9 +7774,10 @@ public class NearRTRICRepositoryApiExample { // Create an instance of the API class NearRTRICRepositoryApi *apiInstance = [[NearRTRICRepositoryApi alloc] init]; -String *policytypeId = policytypeId_example; // The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned (optional) (default to null) +String *policytypeId = policytypeId_example; // The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + (optional) (default to null) -// Query Near-RT RIC information +// Get Near-RT RICs for A1 Policy Type (getRics) [apiInstance getRicsWith:policytypeId completionHandler: ^(ric_info_list output, NSError* error) { if (output) { @@ -7735,12 +7791,13 @@ String *policytypeId = policytypeId_example; // The identity of a policy type. I </div> <div class="tab-pane" id="examples-NearRTRICRepository-getRics-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.NearRTRICRepositoryApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.NearRTRICRepositoryApi() var opts = { - 'policytypeId': policytypeId_example // {String} The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned + 'policytypeId': policytypeId_example // {String} The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + }; var callback = function(error, data, response) { @@ -7773,10 +7830,11 @@ namespace Example // Create an instance of the API class var apiInstance = new NearRTRICRepositoryApi(); - var policytypeId = policytypeId_example; // String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned (optional) (default to null) + var policytypeId = policytypeId_example; // String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + (optional) (default to null) try { - // Query Near-RT RIC information + // Get Near-RT RICs for A1 Policy Type (getRics) ric_info_list result = apiInstance.getRics(policytypeId); Debug.WriteLine(result); } catch (Exception e) { @@ -7794,7 +7852,8 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\NearRTRICRepositoryApi(); -$policytypeId = policytypeId_example; // String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned +$policytypeId = policytypeId_example; // String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + try { $result = $api_instance->getRics($policytypeId); @@ -7812,7 +7871,8 @@ use WWW::OPenAPIClient::NearRTRICRepositoryApi; # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::NearRTRICRepositoryApi->new(); -my $policytypeId = policytypeId_example; # String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned +my $policytypeId = policytypeId_example; # String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + eval { my $result = $api_instance->getRics(policytypeId => $policytypeId); @@ -7832,10 +7892,11 @@ from pprint import pprint # Create an instance of the API class api_instance = openapi_client.NearRTRICRepositoryApi() -policytypeId = policytypeId_example # String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned (optional) (default to null) +policytypeId = policytypeId_example # String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + (optional) (default to null) try: - # Query Near-RT RIC information + # Get Near-RT RICs for A1 Policy Type (getRics) api_response = api_instance.get_rics(policytypeId=policytypeId) pprint(api_response) except ApiException as e: @@ -7886,7 +7947,8 @@ pub fn main() { </span> <div class="inner description marked"> -The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned +The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + </div> </div> </div> @@ -8057,12 +8119,13 @@ The identity of a policy type. If given, all Near-RT RICs supporting the policy <article id="api-ServiceRegistryAndSupervision-deleteService-0" data-group="User" data-name="deleteService" data-version="0"> <div class="pull-left"> <h1>deleteService</h1> - <p></p> + <p>Unregister a Service (deleteService)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Unregister a service</p> + <p class="marked">Unregister a registered Service using its service ID. Only registered services can be unregistered. All A1 Policy Instances for the previously registered service will be removed. +</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/a1-policy/v2/services/{service_id}</span></code></pre> @@ -8166,6 +8229,7 @@ public class ServiceRegistryAndSupervisionApiExample { ServiceRegistryAndSupervisionApi *apiInstance = [[ServiceRegistryAndSupervisionApi alloc] init]; String *serviceId = serviceId_example; // (default to null) +// Unregister a Service (deleteService) [apiInstance deleteServiceWith:serviceId completionHandler: ^(Object output, NSError* error) { if (output) { @@ -8179,10 +8243,10 @@ String *serviceId = serviceId_example; // (default to null) </div> <div class="tab-pane" id="examples-ServiceRegistryAndSupervision-deleteService-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.ServiceRegistryAndSupervisionApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.ServiceRegistryAndSupervisionApi() var serviceId = serviceId_example; // {String} var callback = function(error, data, response) { @@ -8218,6 +8282,7 @@ namespace Example var serviceId = serviceId_example; // String | (default to null) try { + // Unregister a Service (deleteService) Object result = apiInstance.deleteService(serviceId); Debug.WriteLine(result); } catch (Exception e) { @@ -8276,6 +8341,7 @@ api_instance = openapi_client.ServiceRegistryAndSupervisionApi() serviceId = serviceId_example # String | (default to null) try: + # Unregister a Service (deleteService) api_response = api_instance.delete_service(serviceId) pprint(api_response) except ApiException as e: @@ -8489,12 +8555,13 @@ pub fn main() { <article id="api-ServiceRegistryAndSupervision-getServices-0" data-group="User" data-name="getServices" data-version="0"> <div class="pull-left"> <h1>getServices</h1> - <p>Returns service information</p> + <p>Get Services (getServices)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Either information about a registered service with given identity or all registered services are returned.</p> + <p class="marked">Get information about all registered services, or a single registered service. If the service ID of a registered service is included in the query, information about that service is returned. Otherwise Information about all registered is returned. This operation does not retrieve information about unregistered services. +</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/services</span></code></pre> @@ -8538,7 +8605,7 @@ public class ServiceRegistryAndSupervisionApiExample { // Create an instance of the API class ServiceRegistryAndSupervisionApi apiInstance = new ServiceRegistryAndSupervisionApi(); - String serviceId = serviceId_example; // String | The identity of the service + String serviceId = serviceId_example; // String | The identity of the registered service try { service_status_list result = apiInstance.getServices(serviceId); @@ -8557,7 +8624,7 @@ public class ServiceRegistryAndSupervisionApiExample { final api_instance = DefaultApi(); -final String serviceId = new String(); // String | The identity of the service +final String serviceId = new String(); // String | The identity of the registered service try { final result = await api_instance.getServices(serviceId); @@ -8575,7 +8642,7 @@ try { public class ServiceRegistryAndSupervisionApiExample { public static void main(String[] args) { ServiceRegistryAndSupervisionApi apiInstance = new ServiceRegistryAndSupervisionApi(); - String serviceId = serviceId_example; // String | The identity of the service + String serviceId = serviceId_example; // String | The identity of the registered service try { service_status_list result = apiInstance.getServices(serviceId); @@ -8596,9 +8663,9 @@ public class ServiceRegistryAndSupervisionApiExample { // Create an instance of the API class ServiceRegistryAndSupervisionApi *apiInstance = [[ServiceRegistryAndSupervisionApi alloc] init]; -String *serviceId = serviceId_example; // The identity of the service (optional) (default to null) +String *serviceId = serviceId_example; // The identity of the registered service (optional) (default to null) -// Returns service information +// Get Services (getServices) [apiInstance getServicesWith:serviceId completionHandler: ^(service_status_list output, NSError* error) { if (output) { @@ -8612,12 +8679,12 @@ String *serviceId = serviceId_example; // The identity of the service (optional) </div> <div class="tab-pane" id="examples-ServiceRegistryAndSupervision-getServices-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.ServiceRegistryAndSupervisionApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.ServiceRegistryAndSupervisionApi() var opts = { - 'serviceId': serviceId_example // {String} The identity of the service + 'serviceId': serviceId_example // {String} The identity of the registered service }; var callback = function(error, data, response) { @@ -8650,10 +8717,10 @@ namespace Example // Create an instance of the API class var apiInstance = new ServiceRegistryAndSupervisionApi(); - var serviceId = serviceId_example; // String | The identity of the service (optional) (default to null) + var serviceId = serviceId_example; // String | The identity of the registered service (optional) (default to null) try { - // Returns service information + // Get Services (getServices) service_status_list result = apiInstance.getServices(serviceId); Debug.WriteLine(result); } catch (Exception e) { @@ -8671,7 +8738,7 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\ServiceRegistryAndSupervisionApi(); -$serviceId = serviceId_example; // String | The identity of the service +$serviceId = serviceId_example; // String | The identity of the registered service try { $result = $api_instance->getServices($serviceId); @@ -8689,7 +8756,7 @@ use WWW::OPenAPIClient::ServiceRegistryAndSupervisionApi; # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::ServiceRegistryAndSupervisionApi->new(); -my $serviceId = serviceId_example; # String | The identity of the service +my $serviceId = serviceId_example; # String | The identity of the registered service eval { my $result = $api_instance->getServices(serviceId => $serviceId); @@ -8709,10 +8776,10 @@ from pprint import pprint # Create an instance of the API class api_instance = openapi_client.ServiceRegistryAndSupervisionApi() -serviceId = serviceId_example # String | The identity of the service (optional) (default to null) +serviceId = serviceId_example # String | The identity of the registered service (optional) (default to null) try: - # Returns service information + # Get Services (getServices) api_response = api_instance.get_services(serviceId=serviceId) pprint(api_response) except ApiException as e: @@ -8763,7 +8830,7 @@ pub fn main() { </span> <div class="inner description marked"> -The identity of the service +The identity of the registered service </div> </div> </div> @@ -8931,12 +8998,12 @@ The identity of the service <article id="api-ServiceRegistryAndSupervision-keepAliveService-0" data-group="User" data-name="keepAliveService" data-version="0"> <div class="pull-left"> <h1>keepAliveService</h1> - <p>Heartbeat indicates that the service is running</p> + <p>Heartbeat message from a service (keepAliveService)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">A registered service should invoke this operation regularly to indicate that it is still alive. If a registered service fails to invoke this operation before the end of a timeout period the service will be deregistered and all its A1 policies wil be removed. (This timeout can be set or disabled when each service is initially registered)</p> + <p class="marked">A registered service should invoke this operation regularly to indicate that it is still alive. If a registered service fails to invoke some operation, or this operation, before the end of a timeout period the service will be deregistered and all its A1 policies wil be removed. This operation is only intended for registered services. (This timeout can be set or disabled when each service is initially registered)</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/a1-policy/v2/services/{service_id}/keepalive</span></code></pre> @@ -9040,7 +9107,7 @@ public class ServiceRegistryAndSupervisionApiExample { ServiceRegistryAndSupervisionApi *apiInstance = [[ServiceRegistryAndSupervisionApi alloc] init]; String *serviceId = serviceId_example; // (default to null) -// Heartbeat indicates that the service is running +// Heartbeat message from a service (keepAliveService) [apiInstance keepAliveServiceWith:serviceId completionHandler: ^(Object output, NSError* error) { if (output) { @@ -9054,10 +9121,10 @@ String *serviceId = serviceId_example; // (default to null) </div> <div class="tab-pane" id="examples-ServiceRegistryAndSupervision-keepAliveService-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.ServiceRegistryAndSupervisionApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.ServiceRegistryAndSupervisionApi() var serviceId = serviceId_example; // {String} var callback = function(error, data, response) { @@ -9093,7 +9160,7 @@ namespace Example var serviceId = serviceId_example; // String | (default to null) try { - // Heartbeat indicates that the service is running + // Heartbeat message from a service (keepAliveService) Object result = apiInstance.keepAliveService(serviceId); Debug.WriteLine(result); } catch (Exception e) { @@ -9152,7 +9219,7 @@ api_instance = openapi_client.ServiceRegistryAndSupervisionApi() serviceId = serviceId_example # String | (default to null) try: - # Heartbeat indicates that the service is running + # Heartbeat message from a service (keepAliveService) api_response = api_instance.keep_alive_service(serviceId) pprint(api_response) except ApiException as e: @@ -9366,12 +9433,13 @@ pub fn main() { <article id="api-ServiceRegistryAndSupervision-putService-0" data-group="User" data-name="putService" data-version="0"> <div class="pull-left"> <h1>putService</h1> - <p>Register a service</p> + <p>Register or update a Service (putService)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Registering a service is needed to:<ul><li>Get callbacks about available NearRT RICs.</li><li>Activate supervision of the service. If a service is inactive, its policies will automatically be deleted.</li></ul>Policies can be created even if the service is not registerred. This is a feature which it is optional to use.</p> + <p class="marked">Register a single service, or update a previous registtration. Service registration is required to get callbacks about available NearRT RICs and to enable supervision of the service's active status. If a registered service becomes inactive, its policies can be automatically deleted. A1 Policy instances can also be created for unregistered services. If an unregistered service is later registered, the service's policies are retained when the service becomes registered. This feature is optional to use. +</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/a1-policy/v2/services</span></code></pre> @@ -9477,7 +9545,7 @@ public class ServiceRegistryAndSupervisionApiExample { ServiceRegistryAndSupervisionApi *apiInstance = [[ServiceRegistryAndSupervisionApi alloc] init]; ServiceRegistrationInfo *serviceRegistrationInfo = ; // -// Register a service +// Register or update a Service (putService) [apiInstance putServiceWith:serviceRegistrationInfo completionHandler: ^(Object output, NSError* error) { if (output) { @@ -9491,10 +9559,10 @@ ServiceRegistrationInfo *serviceRegistrationInfo = ; // </div> <div class="tab-pane" id="examples-ServiceRegistryAndSupervision-putService-0-javascript"> - <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api'); // Create an instance of the API class -var api = new OnapCcsdkA1PolicyManagementService.ServiceRegistryAndSupervisionApi() +var api = new OnapCcsdkPreSpecA1PolicyManagementApi.ServiceRegistryAndSupervisionApi() var serviceRegistrationInfo = ; // {ServiceRegistrationInfo} var callback = function(error, data, response) { @@ -9530,7 +9598,7 @@ namespace Example var serviceRegistrationInfo = new ServiceRegistrationInfo(); // ServiceRegistrationInfo | try { - // Register a service + // Register or update a Service (putService) Object result = apiInstance.putService(serviceRegistrationInfo); Debug.WriteLine(result); } catch (Exception e) { @@ -9589,7 +9657,7 @@ api_instance = openapi_client.ServiceRegistryAndSupervisionApi() serviceRegistrationInfo = # ServiceRegistrationInfo | try: - # Register a service + # Register or update a Service (putService) api_response = api_instance.put_service(serviceRegistrationInfo) pprint(api_response) except ApiException as e: @@ -9916,7 +9984,9 @@ $(document).ready(function() { <div class="app-desc">Information URL: <a href="https://www.onap.org/">https://www.onap.org/</a></div> <div class="app-desc">Contact Info: <a href="discuss-list@onap.com">discuss-list@onap.com</a></div> </p> - <div class="license-info">Copyright (C) 2020-2023 Nordix Foundation, and Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved. Licensed under the Apache 2 License.</div> + <div class="license-info">Copyright (C) 2020-2023 Nordix Foundation, and Copyright (C) 2024-2025 OpenInfra Foundation Europe. +All rights reserved. Licensed under the Apache 2 License. +</div> <div class="license-url">http://www.apache.org/licenses/LICENSE-2.0</div> </div> </div> diff --git a/docs/offeredapis/openapitoolgen/offeredapis/pms-api/v3/custom/index.html b/docs/offeredapis/openapitoolgen/offeredapis/pms-api/v3/custom/index.html index 5213a0a3..31499b8f 100644 --- a/docs/offeredapis/openapitoolgen/offeredapis/pms-api/v3/custom/index.html +++ b/docs/offeredapis/openapitoolgen/offeredapis/pms-api/v3/custom/index.html @@ -2,7 +2,7 @@ <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> - <title>A1 policy management API</title> + <title>ONAP CCSDK - A1 Policy Management API</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta charset="UTF-8" /> @@ -844,26 +844,12 @@ ul.nav-tabs { <script> // Script section to load models into a JS Var var defs = {} - defs["AuthorizationResult"] = { - "required" : [ "result" ], - "type" : "object", - "properties" : { - "result" : { - "type" : "boolean", - "description" : "If true, the access is granted" - } - }, - "description" : "Result of authorization", - "example" : { - "result" : true - } -}; defs["ErrorInformation"] = { "type" : "object", "properties" : { "detail" : { "type" : "string", - "description" : " A human-readable explanation specific to this occurrence of the problem.", + "description" : "A human-readable explanation specific to this occurrence of the problem.", "example" : "Policy type not found" }, "title" : { @@ -873,67 +859,26 @@ ul.nav-tabs { }, "status" : { "type" : "integer", - "description" : "The HTTP status code generated by the origin server for this occurrence of the problem. ", + "description" : "The HTTP status code generated by the origin server for this occurrence of the problem.\n", "format" : "int32", "example" : 404 } }, "description" : "Problem as defined in https://tools.ietf.org/html/rfc7807" }; - defs["input"] = { - "required" : [ "accessType", "authToken", "policyTypeId" ], - "type" : "object", - "properties" : { - "accessType" : { - "type" : "string", - "description" : "Access type", - "enum" : [ "READ", "WRITE", "DELETE" ] - }, - "authToken" : { - "type" : "string", - "description" : "Authorization token" - }, - "policyTypeId" : { - "type" : "string", - "description" : "Policy type identifier" - } - }, - "description" : "input" -}; - defs["Link"] = { - "type" : "object", - "properties" : { - "templated" : { - "type" : "boolean" - }, - "href" : { - "type" : "string" - } - } -}; - defs["PolicyAuthorization"] = { - "required" : [ "input" ], - "type" : "object", - "properties" : { - "input" : { - "$ref" : "#/components/schemas/input" - } - }, - "description" : "Authorization request for A1 policy requests" -}; defs["PolicyInformation"] = { "required" : [ "nearRtRicId", "policyId" ], "type" : "object", "properties" : { "policyId" : { "type" : "string", - "description" : "Identity of the policy" + "description" : "Identity of the A1 Policy Instance" }, "nearRtRicId" : { "$ref" : "#/components/schemas/NearRtRicId" } }, - "description" : "Near-RT RIC identifiers where A1 policies exist and for each Near-RT RIC identifier the policy identifiers of those policies that exist in that Near-RT RIC" + "description" : "Information tuple for a single A1 Policy Instance. Contains the A1 Policy Instance ID, and the ID of the Near-RT RIC where the policy is created. \n" }; defs["PolicyObjectInformation"] = { "required" : [ "nearRtRicId", "policyObject", "policyTypeId" ], @@ -942,23 +887,23 @@ ul.nav-tabs { "nearRtRicId" : { "type" : "string", "description" : "Identity of the target Near-RT RIC", - "example" : "Near-RT-Ric-ID" + "example" : "Near-RT-Ric-ID1" }, "transient" : { "type" : "boolean", - "description" : "If true, the policy is deleted at RIC restart. If false, its value is maintained by this service until explicitly deleted. Default false.", + "description" : "If true, the policy is automatically deleted if the targeted Near-RT RIC restarts or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.\n", "nullable" : false, "default" : false }, "policyId" : { "type" : "string", - "description" : "The identity of the Policy. If this value is present, it must be unique; otherwise, a random UUID is generated.", - "example" : "POLICY-ID" + "description" : "An optional identity to be used for the new A1 Policy Instance. If this value is present, it must be unique. If not present the new A1 Policy Instance will be assigned a newly generated unique ID, and the new ID can be extracted from the 'Location' header in the response.\n", + "example" : "POLICY-ID1" }, "serviceId" : { "type" : "string", - "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered.", - "example" : "rApp ID", + "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered. If the service is registered, the newly created A1 Policy Instance will be subject to the same supervision rules as the the service's other policies.", + "example" : "rApp 1", "default" : "" }, "policyObject" : { @@ -966,25 +911,11 @@ ul.nav-tabs { }, "policyTypeId" : { "type" : "string", - "description" : "Identity of the policy type", - "example" : "ORAN_QOS_1.0.0(typeName_SemVersion)" - } - }, - "description" : "Information related to the creation of the policy" -}; - defs["PolicyStatusInfo"] = { - "type" : "object", - "properties" : { - "lastModified" : { - "type" : "string", - "description" : "timestamp, last modification time" - }, - "status" : { - "type" : "object", - "description" : "the Policy status" + "description" : "A1 Policy Type identity", + "example" : "ORAN_QOS_1.0.0 '(typeName_SemVersion)'" } }, - "description" : "Status for one A1-P Policy" + "description" : "Information to create an A1 Policy Instance" }; defs["PolicyTypeInformation"] = { "required" : [ "nearRtRicId", "policyTypeId" ], @@ -992,16 +923,16 @@ ul.nav-tabs { "properties" : { "policyTypeId" : { "type" : "string", - "description" : "Identity of the policy type" + "description" : "A1 Policy Type identifier" }, "nearRtRicId" : { "$ref" : "#/components/schemas/NearRtRicId" } }, - "description" : "Available policy types and for each policy type identifier the Near-RT RIC identifiers of those Near-RT RICs that support the related A1 policy type", + "description" : "A data tuple to indicate that an identified A1 Policy Type is supported at an identified Near-RT RIC.", "example" : { "policyTypeId" : "STD_QOS2_0.1.0", - "nearRtRicId" : "ricsim_g3_2" + "nearRtRicId" : "ric_g3_2" } }; defs["PolicyTypeObject"] = { @@ -1015,12 +946,12 @@ ul.nav-tabs { "$ref" : "#/components/schemas/StatusSchema" } }, - "description" : "policy type object as defined in A1TD", + "description" : "An A1 Policy Type, as defined in O-RAN Alliance A1TD", "example" : { "policySchema" : { "$schema" : "http://json-schema.org/draft-07/schema#", "title" : "STD_QOS_0_2_0", - "description" : "STD QOS policy type", + "description" : "Policy data schema for STD_QOS_0.2.0 A1 Policy Instances.", "type" : "object", "properties" : { "scope" : { @@ -1051,7 +982,7 @@ ul.nav-tabs { "statusSchema" : { "$schema" : "http://json-schema.org/draft-07/schema#", "title" : "STD_QOS_0.2.0", - "description" : "STD QOS policy type status", + "description" : "Status schema for STD_QOS_0.2.0 A1 Policy Instances.", "type" : "object", "properties" : { "enforceStatus" : { @@ -1071,26 +1002,26 @@ ul.nav-tabs { "properties" : { "type" : { "type" : "string", - "description" : "a URI reference according to IETF RFC 3986 that identifies the problem type" + "description" : "URI reference according to IETF RFC 3986 that identifies the problem type" }, "title" : { "type" : "string", - "description" : "human-readable summary of the problem type" + "description" : "Human-readable summary of the problem type" }, "status" : { "type" : "number", - "description" : "the HTTP status code" + "description" : "HTTP status code" }, "detail" : { "type" : "string", - "description" : "human-readable explanation " + "description" : "Human-readable explanation" }, "instance" : { "type" : "string", "description" : "URI reference that identifies the specific occurrence of the problem" } }, - "description" : "A problem detail to carry details in an HTTP response according to RFC 7807" + "description" : "Object to carry details about a problem in an HTTP response according to IETF RFC 7807" }; defs["RicInfo"] = { "type" : "object", @@ -1101,23 +1032,23 @@ ul.nav-tabs { }, "managedElementIds" : { "type" : "array", - "description" : "O1 identities for managed entities", + "description" : "Identities for managed entities", "items" : { "type" : "string", - "description" : "O1 identities for managed entities" + "description" : "Identity for a managed entity" } }, "state" : { "type" : "string", - "description" : "Represents the states for a Near-RT RIC", + "description" : "Represents the state of a Near-RT RIC", "enum" : [ "UNAVAILABLE", "AVAILABLE", "SYNCHRONIZING", "CONSISTENCY_CHECK" ] }, "policyTypeIds" : { "type" : "array", - "description" : "supported policy types", + "description" : "Supported A1 Policy Types", "items" : { "type" : "string", - "description" : "supported policy types" + "description" : "Supported A1 Policy Type ID" } } }, @@ -1128,13 +1059,13 @@ ul.nav-tabs { "properties" : { "rics" : { "type" : "array", - "description" : "List of Near-RT RIC information", + "description" : "List of Near-RT RIC information objects", "items" : { "$ref" : "#/components/schemas/RicInfo" } } }, - "description" : "List of Near-RT RIC information" + "description" : "Collection of Near-RT RIC information objects" }; defs["ServiceCallbackInfo"] = { "required" : [ "eventType", "ricId" ], @@ -1146,11 +1077,11 @@ ul.nav-tabs { }, "eventType" : { "type" : "string", - "description" : "values:\nAVAILABLE: the Near-RT RIC has become available for A1 Policy management", + "description" : "values: \n AVAILABLE: the Near-RT RIC has become available for A1 Policy management\n", "enum" : [ "AVAILABLE" ] } }, - "description" : "Information transferred as in Service callbacks (callback_url)" + "description" : "Information transferred in Service callbacks, \nif a callback URL was provided for a registered service\n" }; defs["ServiceRegistrationInfo"] = { "required" : [ "serviceId" ], @@ -1158,7 +1089,7 @@ ul.nav-tabs { "properties" : { "callbackUrl" : { "type" : "string", - "description" : "callback for notifying of Near-RT RIC state changes" + "description" : "Callback URL for notifying of Near-RT RIC state changes" }, "serviceId" : { "type" : "string", @@ -1166,18 +1097,18 @@ ul.nav-tabs { }, "keepAliveIntervalSeconds" : { "type" : "integer", - "description" : "keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.", + "description" : "Keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n", "format" : "int64" } }, - "description" : "Information for one service" + "description" : "Information for a service to be registered" }; defs["ServiceStatus"] = { "type" : "object", "properties" : { "callbackUrl" : { "type" : "string", - "description" : "callback for notifying of RIC synchronization" + "description" : "Callback URL for notifying of Near-RT RIC state changes" }, "serviceId" : { "type" : "string", @@ -1185,22 +1116,23 @@ ul.nav-tabs { }, "keepAliveIntervalSeconds" : { "type" : "integer", - "description" : "policy keep alive timeout", + "description" : "Keep alive interval (seconds) for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n", "format" : "int64" }, "timeSinceLastActivitySeconds" : { "type" : "integer", - "description" : "time since last invocation by the service", + "description" : "Time (seconds) since last recorded operation by the service", "format" : "int64" } - } + }, + "description" : "Information about a previously registered service" }; defs["ServiceStatusList"] = { "type" : "object", "properties" : { "serviceList" : { "type" : "array", - "description" : "List of service information", + "description" : "List of Service Status objects, describing a collection of registered services.", "items" : { "$ref" : "#/components/schemas/ServiceStatus" } @@ -1212,14 +1144,14 @@ ul.nav-tabs { "properties" : { "status" : { "type" : "string", - "description" : "status text" + "description" : "Status text" } } }; defs["NearRtRicId"] = { "type" : "string", - "description" : "Identity of the policy" + "description" : "Identity of the Near-RT RIC" }; var errs = {}; @@ -1246,12 +1178,12 @@ ul.nav-tabs { <li data-group="A1PolicyManagement" data-name="deletePolicy" class=""> <a href="#api-A1PolicyManagement-deletePolicy">deletePolicy</a> </li> - <li data-group="A1PolicyManagement" data-name="getAllPolicies" class=""> - <a href="#api-A1PolicyManagement-getAllPolicies">getAllPolicies</a> - </li> <li data-group="A1PolicyManagement" data-name="getPolicy" class=""> <a href="#api-A1PolicyManagement-getPolicy">getPolicy</a> </li> + <li data-group="A1PolicyManagement" data-name="getPolicyIds" class=""> + <a href="#api-A1PolicyManagement-getPolicyIds">getPolicyIds</a> + </li> <li data-group="A1PolicyManagement" data-name="getPolicyStatus" class=""> <a href="#api-A1PolicyManagement-getPolicyStatus">getPolicyStatus</a> </li> @@ -1261,8 +1193,8 @@ ul.nav-tabs { <li data-group="A1PolicyManagement" data-name="getPolicyTypes" class=""> <a href="#api-A1PolicyManagement-getPolicyTypes">getPolicyTypes</a> </li> - <li data-group="A1PolicyManagement" data-name="putPolicy" class=""> - <a href="#api-A1PolicyManagement-putPolicy">putPolicy</a> + <li data-group="A1PolicyManagement" data-name="updatePolicy" class=""> + <a href="#api-A1PolicyManagement-updatePolicy">updatePolicy</a> </li> </ul> </nav> @@ -1270,7 +1202,7 @@ ul.nav-tabs { <div id="content"> <div id="project"> <div class="pull-left"> - <h1>A1 policy management API</h1> + <h1>ONAP CCSDK - A1 Policy Management API</h1> </div> <div class="clearfix"></div> </div> @@ -1280,7 +1212,7 @@ ul.nav-tabs { <div class="app-desc">Version: 1.0.0</div> <hr> <div id="app-description" class="app-desc"> - <h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managemecnt of A1 policies. <br/>The main tasks of the service are:</p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 policies and the Near-RT RICs</li><li>Maintaining a view of supported Near-RT RIC policy types</li><li>Supervision of using services (R-APPs). When a service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2><h3>A1 Policy Management</h3><p>This is an API for management of A1 Policies.</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository</h3><p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted for one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the PMS component.</p><h3>Service Registry and Supervision</h3><p>API used for registering services that uses PMS. Each A1 policy is optionally owned by a service. PMS can supervise each registered service by a heart-beat supervision and will automatically remove policies for unavailable services. Note that a service does not need to be registered in order to create A1 Policies. This is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used for access control of A1 Policy access. If configured, an external authorization provider is requested to grant access to the A1 Policy type.</p> + <h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes the latest API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2> <p>Note: parts of this API are strongly based on extracts of the O-RAN Alliance R1 Interface specification for A1 Policy Management, and those parts should be considered '© O-RAN ALLIANCE - All rights reserved.'</p> <h3>A1 Policy Management</h3> <p>This is the latest API for managing A1 Policies. This API is partially compliant with O-RAN Alliance R1 Interface specifications for A1 Policy Management:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service.</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then its A1 Policies are removed. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p> </div> </div> @@ -1292,12 +1224,12 @@ ul.nav-tabs { <article id="api-A1PolicyManagement-createPolicy-0" data-group="User" data-name="createPolicy" data-version="0"> <div class="pull-left"> <h1>createPolicy</h1> - <p></p> + <p>Create an A1 Policy Instance (createPolicy)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">To create A1 policies</p> + <p class="marked">Create an A1 Policy Instance</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/policies</span></code></pre> @@ -1327,12 +1259,12 @@ ul.nav-tabs { -H "Content-Type: application/json" \ "https://example.com/a1-policy-management/v1/policies" \ -d '{ - "policyId" : "POLICY-ID", - "nearRtRicId" : "Near-RT-Ric-ID", + "policyId" : "POLICY-ID1", + "nearRtRicId" : "Near-RT-Ric-ID1", "transient" : false, "policyObject" : "{}", - "serviceId" : "rApp ID", - "policyTypeId" : "ORAN_QOS_1.0.0(typeName_SemVersion)" + "serviceId" : "rApp 1", + "policyTypeId" : "ORAN_QOS_1.0.0 '(typeName_SemVersion)'" }' </code></pre> </div> @@ -1410,6 +1342,7 @@ public class A1PolicyManagementApiExample { A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; PolicyObjectInformation *policyObjectInformation = ; // +// Create an A1 Policy Instance (createPolicy) [apiInstance createPolicyWith:policyObjectInformation completionHandler: ^(PolicyObjectInformation output, NSError* error) { if (output) { @@ -1423,10 +1356,10 @@ PolicyObjectInformation *policyObjectInformation = ; // </div> <div class="tab-pane" id="examples-A1PolicyManagement-createPolicy-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() var policyObjectInformation = ; // {PolicyObjectInformation} var callback = function(error, data, response) { @@ -1462,6 +1395,7 @@ namespace Example var policyObjectInformation = new PolicyObjectInformation(); // PolicyObjectInformation | try { + // Create an A1 Policy Instance (createPolicy) PolicyObjectInformation result = apiInstance.createPolicy(policyObjectInformation); Debug.WriteLine(result); } catch (Exception e) { @@ -1520,6 +1454,7 @@ api_instance = openapi_client.A1PolicyManagementApi() policyObjectInformation = # PolicyObjectInformation | try: + # Create an A1 Policy Instance (createPolicy) api_response = api_instance.create_policy(policyObjectInformation) pprint(api_response) except ApiException as e: @@ -1605,7 +1540,7 @@ $(document).ready(function() { <h3 id="examples-A1PolicyManagement-createPolicy-title-201"></h3> <p id="examples-A1PolicyManagement-createPolicy-description-201" class="marked"></p> <script> - var responseA1PolicyManagement201_description = `Success case 201 created`; + var responseA1PolicyManagement201_description = `Created`; var responseA1PolicyManagement201_description_break = responseA1PolicyManagement201_description.indexOf('\n'); if (responseA1PolicyManagement201_description_break == -1) { $("#examples-A1PolicyManagement-createPolicy-title-201").text("Status: 201 - " + responseA1PolicyManagement201_description); @@ -1636,16 +1571,25 @@ $(document).ready(function() { <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Success case 201 created", + "description" : "Created", "headers" : { "Location" : { - "description" : "Contains the URI of the newly created resource", + "description" : "Contains the URI of the newly created A1 Policy Instances. This URI includes the A1 Policy Instance ID for the newly created policy instance.\n", "required" : true, "style" : "simple", "explode" : false, "schema" : { "type" : "string" } + }, + "Content-Type" : { + "description" : "Media Type of the response", + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string", + "example" : "application/json" + } } }, "content" : { @@ -1703,7 +1647,14 @@ $(document).ready(function() { <td>Location</td> <td>String</td> <td></td> - <td>Contains the URI of the newly created resource</td> + <td>Contains the URI of the newly created A1 Policy Instances. This URI includes the A1 Policy Instance ID for the newly created policy instance. +</td> + </tr> + <tr> + <td>Content-Type</td> + <td>String</td> + <td></td> + <td>Media Type of the response</td> </tr> </table> </div> @@ -2432,7 +2383,7 @@ $(document).ready(function() { "example" : { "status" : 423, "title" : "Locked", - "detail" : "State is Locked in the provided request." + "detail" : "State is Locked in the provided request." } } } @@ -2476,7 +2427,7 @@ $(document).ready(function() { <h3 id="examples-A1PolicyManagement-createPolicy-title-429"></h3> <p id="examples-A1PolicyManagement-createPolicy-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { $("#examples-A1PolicyManagement-createPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); @@ -2504,7 +2455,7 @@ $(document).ready(function() { <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -2784,12 +2735,12 @@ $(document).ready(function() { <article id="api-A1PolicyManagement-deletePolicy-0" data-group="User" data-name="deletePolicy" data-version="0"> <div class="pull-left"> <h1>deletePolicy</h1> - <p>Delete a policy</p> + <p>Delete an A1 Policy instance (deletePolicy)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Deleting the policy using policyId.</p> + <p class="marked">Delete an existing A1 Policy instance using its policy ID.</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/policies/{policyId}</span></code></pre> @@ -2895,7 +2846,7 @@ A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; String *policyId = policyId_example; // (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) -// Delete a policy +// Delete an A1 Policy instance (deletePolicy) [apiInstance deletePolicyWith:policyId accept:accept completionHandler: ^(NSError* error) { @@ -2907,10 +2858,10 @@ String *accept = application/json; // Specifies the content type that the client </div> <div class="tab-pane" id="examples-A1PolicyManagement-deletePolicy-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() var policyId = policyId_example; // {String} var opts = { 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. @@ -2950,7 +2901,7 @@ namespace Example 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 { - // Delete a policy + // Delete an A1 Policy instance (deletePolicy) apiInstance.deletePolicy(policyId, accept); } catch (Exception e) { Debug.Print("Exception when calling A1PolicyManagementApi.deletePolicy: " + e.Message ); @@ -3009,7 +2960,7 @@ policyId = policyId_example # String | (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: - # Delete a policy + # Delete an A1 Policy instance (deletePolicy) api_instance.delete_policy(policyId, accept=accept) except ApiException as e: print("Exception when calling A1PolicyManagementApi->deletePolicy: %s\n" % e)</code></pre> @@ -3101,7 +3052,7 @@ Specifies the content type that the client expects to receive in response to the <h3 id="examples-A1PolicyManagement-deletePolicy-title-204"></h3> <p id="examples-A1PolicyManagement-deletePolicy-description-204" class="marked"></p> <script> - var responseA1PolicyManagement204_description = `The A1 policy was deleted`; + var responseA1PolicyManagement204_description = `No Content`; var responseA1PolicyManagement204_description_break = responseA1PolicyManagement204_description.indexOf('\n'); if (responseA1PolicyManagement204_description_break == -1) { $("#examples-A1PolicyManagement-deletePolicy-title-204").text("Status: 204 - " + responseA1PolicyManagement204_description); @@ -3124,7 +3075,7 @@ Specifies the content type that the client expects to receive in response to the <script> $(document).ready(function() { var schemaWrapper = { - "description" : "The A1 policy was deleted" + "description" : "No Content" }; var schema = findNode('schema',schemaWrapper).schema; if (!schema) { @@ -3658,7 +3609,7 @@ Specifies the content type that the client expects to receive in response to the "example" : { "status" : 423, "title" : "Locked", - "detail" : "State is Locked in the provided request." + "detail" : "State is Locked in the provided request." } } } @@ -3702,7 +3653,7 @@ Specifies the content type that the client expects to receive in response to the <h3 id="examples-A1PolicyManagement-deletePolicy-title-429"></h3> <p id="examples-A1PolicyManagement-deletePolicy-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { $("#examples-A1PolicyManagement-deletePolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); @@ -3730,7 +3681,7 @@ Specifies the content type that the client expects to receive in response to the <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -4006,46 +3957,46 @@ Specifies the content type that the client expects to receive in response to the </article> </div> <hr> - <div id="api-A1PolicyManagement-getAllPolicies"> - <article id="api-A1PolicyManagement-getAllPolicies-0" data-group="User" data-name="getAllPolicies" data-version="0"> + <div id="api-A1PolicyManagement-getPolicy"> + <article id="api-A1PolicyManagement-getPolicy-0" data-group="User" data-name="getPolicy" data-version="0"> <div class="pull-left"> - <h1>getAllPolicies</h1> - <p>Query policy identities</p> + <h1>getPolicy</h1> + <p>Get an A1 Policy's policy data (getPolicy)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Returns a list of A1 policies matching given search criteria. <br>If several query parameters are defined, the policies matching all conditions are returned.</p> + <p class="marked">Get an A1 Policy instance's policy data using its policy ID</p> <p></p> <br /> - <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies</span></code></pre> + <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies/{policyId}</span></code></pre> <p> <h3>Usage and SDK Samples</h3> </p> <ul class="nav nav-tabs nav-tabs-examples"> - <li class="active"><a href="#examples-A1PolicyManagement-getAllPolicies-0-curl">Curl</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-java">Java</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-dart">Dart</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-android">Android</a></li> - <!--<li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-groovy">Groovy</a></li>--> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-objc">Obj-C</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-javascript">JavaScript</a></li> - <!--<li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-angular">Angular</a></li>--> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-csharp">C#</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-php">PHP</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-perl">Perl</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-python">Python</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-rust">Rust</a></li> + <li class="active"><a href="#examples-A1PolicyManagement-getPolicy-0-curl">Curl</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-java">Java</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-dart">Dart</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-android">Android</a></li> + <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-groovy">Groovy</a></li>--> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-objc">Obj-C</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-javascript">JavaScript</a></li> + <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-angular">Angular</a></li>--> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-csharp">C#</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-php">PHP</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-perl">Perl</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-python">Python</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-rust">Rust</a></li> </ul> <div class="tab-content"> - <div class="tab-pane active" id="examples-A1PolicyManagement-getAllPolicies-0-curl"> + <div class="tab-pane active" id="examples-A1PolicyManagement-getPolicy-0-curl"> <pre class="prettyprint"><code class="language-bsh">curl -X GET \ -H "Accept: application/json,application/problem+json" \ - "https://example.com/a1-policy-management/v1/policies?policyTypeId=policyTypeId_example&nearRtRicId=nearRtRicId_example&serviceId=serviceId_example&typeName=typeName_example" + "https://example.com/a1-policy-management/v1/policies/{policyId}" </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-java"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-java"> <pre class="prettyprint"><code class="language-java">import org.openapitools.client.*; import org.openapitools.client.auth.*; import org.openapitools.client.model.*; @@ -4059,17 +4010,14 @@ public class A1PolicyManagementApiExample { // Create an instance of the API class A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); - String policyTypeId = policyTypeId_example; // String | Select policies of a given policy type identity. - String nearRtRicId = nearRtRicId_example; // String | Select policies of a given Near-RT RIC identity. - String serviceId = serviceId_example; // String | Select policies owned by a given service. - String typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>) + String policyId = policyId_example; // String | 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 { - array[PolicyInformation] result = apiInstance.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept); + Object result = apiInstance.getPolicy(policyId, accept); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling A1PolicyManagementApi#getAllPolicies"); + System.err.println("Exception when calling A1PolicyManagementApi#getPolicy"); e.printStackTrace(); } } @@ -4077,71 +4025,59 @@ public class A1PolicyManagementApiExample { </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-dart"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-dart"> <pre class="prettyprint"><code class="language-dart">import 'package:openapi/api.dart'; final api_instance = DefaultApi(); -final String policyTypeId = new String(); // String | Select policies of a given policy type identity. -final String nearRtRicId = new String(); // String | Select policies of a given Near-RT RIC identity. -final String serviceId = new String(); // String | Select policies owned by a given service. -final String typeName = new String(); // String | Select policies of types with the given type name (type identity has the format <typename_version>) +final String policyId = new String(); // String | 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.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept); + final result = await api_instance.getPolicy(policyId, accept); print(result); } catch (e) { - print('Exception when calling DefaultApi->getAllPolicies: $e\n'); + print('Exception when calling DefaultApi->getPolicy: $e\n'); } </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-android"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-android"> <pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.A1PolicyManagementApi; public class A1PolicyManagementApiExample { public static void main(String[] args) { A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); - String policyTypeId = policyTypeId_example; // String | Select policies of a given policy type identity. - String nearRtRicId = nearRtRicId_example; // String | Select policies of a given Near-RT RIC identity. - String serviceId = serviceId_example; // String | Select policies owned by a given service. - String typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>) + String policyId = policyId_example; // String | 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 { - array[PolicyInformation] result = apiInstance.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept); + Object result = apiInstance.getPolicy(policyId, accept); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling A1PolicyManagementApi#getAllPolicies"); + System.err.println("Exception when calling A1PolicyManagementApi#getPolicy"); e.printStackTrace(); } } }</code></pre> </div> <!-- - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-groovy"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-groovy"> <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre> </div> --> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-objc"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-objc"> <pre class="prettyprint"><code class="language-cpp"> // Create an instance of the API class A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; -String *policyTypeId = policyTypeId_example; // Select policies of a given policy type identity. (optional) (default to null) -String *nearRtRicId = nearRtRicId_example; // Select policies of a given Near-RT RIC identity. (optional) (default to null) -String *serviceId = serviceId_example; // Select policies owned by a given service. (optional) (default to null) -String *typeName = typeName_example; // Select policies of types with the given type name (type identity has the format <typename_version>) (optional) (default to null) +String *policyId = policyId_example; // (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) -// Query policy identities -[apiInstance getAllPoliciesWith:policyTypeId - nearRtRicId:nearRtRicId - serviceId:serviceId - typeName:typeName +// Get an A1 Policy's policy data (getPolicy) +[apiInstance getPolicyWith:policyId accept:accept - completionHandler: ^(array[PolicyInformation] output, NSError* error) { + completionHandler: ^(Object output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -4152,16 +4088,13 @@ String *accept = application/json; // Specifies the content type that the client </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-javascript"> + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() +var policyId = policyId_example; // {String} var opts = { - 'policyTypeId': policyTypeId_example, // {String} Select policies of a given policy type identity. - 'nearRtRicId': nearRtRicId_example, // {String} Select policies of a given Near-RT RIC identity. - 'serviceId': serviceId_example, // {String} Select policies owned by a given service. - 'typeName': typeName_example, // {String} Select policies of types with the given type name (type identity has the format <typename_version>) 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. }; @@ -4172,14 +4105,14 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -api.getAllPolicies(opts, callback); +api.getPolicy(policyId, opts, callback); </code></pre> </div> - <!--<div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-angular"> + <!--<div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-angular"> <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre> </div>--> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-csharp"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-csharp"> <pre class="prettyprint"><code class="language-cs">using System; using System.Diagnostics; using Org.OpenAPITools.Api; @@ -4188,25 +4121,22 @@ using Org.OpenAPITools.Model; namespace Example { - public class getAllPoliciesExample + public class getPolicyExample { public void main() { // Create an instance of the API class var apiInstance = new A1PolicyManagementApi(); - var policyTypeId = policyTypeId_example; // String | Select policies of a given policy type identity. (optional) (default to null) - var nearRtRicId = nearRtRicId_example; // String | Select policies of a given Near-RT RIC identity. (optional) (default to null) - var serviceId = serviceId_example; // String | Select policies owned by a given service. (optional) (default to null) - var typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>) (optional) (default to null) + var policyId = policyId_example; // String | (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 { - // Query policy identities - array[PolicyInformation] result = apiInstance.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept); + // Get an A1 Policy's policy data (getPolicy) + Object result = apiInstance.getPolicy(policyId, accept); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling A1PolicyManagementApi.getAllPolicies: " + e.Message ); + Debug.Print("Exception when calling A1PolicyManagementApi.getPolicy: " + e.Message ); } } } @@ -4214,50 +4144,44 @@ namespace Example </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-php"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-php"> <pre class="prettyprint"><code class="language-php"><?php require_once(__DIR__ . '/vendor/autoload.php'); // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi(); -$policyTypeId = policyTypeId_example; // String | Select policies of a given policy type identity. -$nearRtRicId = nearRtRicId_example; // String | Select policies of a given Near-RT RIC identity. -$serviceId = serviceId_example; // String | Select policies owned by a given service. -$typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>) +$policyId = policyId_example; // 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 { - $result = $api_instance->getAllPolicies($policyTypeId, $nearRtRicId, $serviceId, $typeName, $accept); + $result = $api_instance->getPolicy($policyId, $accept); print_r($result); } catch (Exception $e) { - echo 'Exception when calling A1PolicyManagementApi->getAllPolicies: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling A1PolicyManagementApi->getPolicy: ', $e->getMessage(), PHP_EOL; } ?></code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-perl"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-perl"> <pre class="prettyprint"><code class="language-perl">use Data::Dumper; use WWW::OPenAPIClient::Configuration; use WWW::OPenAPIClient::A1PolicyManagementApi; # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new(); -my $policyTypeId = policyTypeId_example; # String | Select policies of a given policy type identity. -my $nearRtRicId = nearRtRicId_example; # String | Select policies of a given Near-RT RIC identity. -my $serviceId = serviceId_example; # String | Select policies owned by a given service. -my $typeName = typeName_example; # String | Select policies of types with the given type name (type identity has the format <typename_version>) +my $policyId = policyId_example; # String | 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->getAllPolicies(policyTypeId => $policyTypeId, nearRtRicId => $nearRtRicId, serviceId => $serviceId, typeName => $typeName, accept => $accept); + my $result = $api_instance->getPolicy(policyId => $policyId, accept => $accept); print Dumper($result); }; if ($@) { - warn "Exception when calling A1PolicyManagementApi->getAllPolicies: $@\n"; + warn "Exception when calling A1PolicyManagementApi->getPolicy: $@\n"; }</code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-python"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-python"> <pre class="prettyprint"><code class="language-python">from __future__ import print_statement import time import openapi_client @@ -4266,32 +4190,26 @@ from pprint import pprint # Create an instance of the API class api_instance = openapi_client.A1PolicyManagementApi() -policyTypeId = policyTypeId_example # String | Select policies of a given policy type identity. (optional) (default to null) -nearRtRicId = nearRtRicId_example # String | Select policies of a given Near-RT RIC identity. (optional) (default to null) -serviceId = serviceId_example # String | Select policies owned by a given service. (optional) (default to null) -typeName = typeName_example # String | Select policies of types with the given type name (type identity has the format <typename_version>) (optional) (default to null) +policyId = policyId_example # String | (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: - # Query policy identities - api_response = api_instance.get_all_policies(policyTypeId=policyTypeId, nearRtRicId=nearRtRicId, serviceId=serviceId, typeName=typeName, accept=accept) + # Get an A1 Policy's policy data (getPolicy) + api_response = api_instance.get_policy(policyId, accept=accept) pprint(api_response) except ApiException as e: - print("Exception when calling A1PolicyManagementApi->getAllPolicies: %s\n" % e)</code></pre> + print("Exception when calling A1PolicyManagementApi->getPolicy: %s\n" % e)</code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-rust"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-rust"> <pre class="prettyprint"><code class="language-rust">extern crate A1PolicyManagementApi; pub fn main() { - let policyTypeId = policyTypeId_example; // String - let nearRtRicId = nearRtRicId_example; // String - let serviceId = serviceId_example; // String - let typeName = typeName_example; // String + let policyId = policyId_example; // String let accept = application/json; // String let mut context = A1PolicyManagementApi::Context::default(); - let result = client.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept, &context).wait(); + let result = client.getPolicy(policyId, accept, &context).wait(); println!("{:?}", result); } @@ -4306,28 +4224,27 @@ pub fn main() { <h2>Parameters</h2> - - <div class="methodsubtabletitle">Header parameters</div> + <div class="methodsubtabletitle">Path parameters</div> <table id="methodsubtable"> - <tr> - <th width="150px">Name</th> - <th>Description</th> - </tr> - <tr><td style="width:150px;">Accept</td> + <tr> + <th width="150px">Name</th> + <th>Description</th> + </tr> + <tr><td style="width:150px;">policyId*</td> <td> - <div id="d2e199_getAllPolicies_accept"> + <div id="d2e199_getPolicy_policyId"> <div class="json-schema-view"> <div class="primitive"> <span class="type"> String </span> - <div class="inner description marked"> -Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. - </div> </div> + <div class="inner required"> + Required + </div> </div> </div> </td> @@ -4335,59 +4252,17 @@ Specifies the content type that the client expects to receive in response to the </table> - - - <div class="methodsubtabletitle">Query parameters</div> + <div class="methodsubtabletitle">Header parameters</div> <table id="methodsubtable"> <tr> <th width="150px">Name</th> <th>Description</th> </tr> - <tr><td style="width:150px;">policyTypeId</td> -<td> - - - <div id="d2e199_getAllPolicies_policyTypeId"> - <div class="json-schema-view"> - <div class="primitive"> - <span class="type"> - String - </span> - - <div class="inner description marked"> -Select policies of a given policy type identity. - </div> - </div> - </div> - </div> -</td> -</tr> - - <tr><td style="width:150px;">nearRtRicId</td> -<td> - - - <div id="d2e199_getAllPolicies_nearRtRicId"> - <div class="json-schema-view"> - <div class="primitive"> - <span class="type"> - String - </span> - - <div class="inner description marked"> -Select policies of a given Near-RT RIC identity. - </div> - </div> - </div> - </div> -</td> -</tr> - - <tr><td style="width:150px;">serviceId</td> + <tr><td style="width:150px;">Accept</td> <td> - <div id="d2e199_getAllPolicies_serviceId"> + <div id="d2e199_getPolicy_accept"> <div class="json-schema-view"> <div class="primitive"> <span class="type"> @@ -4395,7 +4270,7 @@ Select policies of a given Near-RT RIC identity. </span> <div class="inner description marked"> -Select policies owned by a given service. +Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. </div> </div> </div> @@ -4403,46 +4278,29 @@ Select policies owned by a given service. </td> </tr> - <tr><td style="width:150px;">typeName</td> -<td> + </table> - <div id="d2e199_getAllPolicies_typeName"> - <div class="json-schema-view"> - <div class="primitive"> - <span class="type"> - String - </span> - <div class="inner description marked"> -Select policies of types with the given type name (type identity has the format <typename_version>) - </div> - </div> - </div> - </div> -</td> -</tr> - - </table> <h2>Responses</h2> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-200"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-200" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-200"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-200" class="marked"></p> <script> - var responseA1PolicyManagement200_description = `OK - Policy identities`; + var responseA1PolicyManagement200_description = `OK - Policy found`; var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n'); if (responseA1PolicyManagement200_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); + $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-200" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-200" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-200-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-200-schema">Schema</a> </li> @@ -4451,19 +4309,21 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-200-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-200-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-200" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-200-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-200-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-200" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { - "description" : "OK - Policy identities", + "description" : "OK - Policy found", "content" : { "application/json" : { "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/PolicyInformation" + "$ref" : "#/components/schemas/PolicyObject" + }, + "examples" : { + "policyObject" : { + "$ref" : "#/components/examples/PolicyObject" } } } @@ -4495,33 +4355,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-200-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-200'); + $('#responses-A1PolicyManagement-getPolicy-200-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-200'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-200-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-200-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-400"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-400" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-400"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-400" class="marked"></p> <script> var responseA1PolicyManagement400_description = `Bad Request`; var responseA1PolicyManagement400_description_break = responseA1PolicyManagement400_description.indexOf('\n'); if (responseA1PolicyManagement400_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description); + $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-400" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-400" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-400-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-400-schema">Schema</a> </li> @@ -4530,9 +4390,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-400-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-400-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-400" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-400-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-400-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-400" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -4571,33 +4431,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-400-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-400'); + $('#responses-A1PolicyManagement-getPolicy-400-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-400'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-400-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-400-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-401"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-401" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-401"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-401" class="marked"></p> <script> var responseA1PolicyManagement401_description = `Unauthorized`; var responseA1PolicyManagement401_description_break = responseA1PolicyManagement401_description.indexOf('\n'); if (responseA1PolicyManagement401_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description); + $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-401" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-401" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-401-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-401-schema">Schema</a> </li> @@ -4606,9 +4466,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-401-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-401-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-401" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-401-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-401-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-401" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -4647,33 +4507,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-401-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-401'); + $('#responses-A1PolicyManagement-getPolicy-401-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-401'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-401-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-401-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-403"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-403" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-403"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-403" class="marked"></p> <script> var responseA1PolicyManagement403_description = `Forbidden`; var responseA1PolicyManagement403_description_break = responseA1PolicyManagement403_description.indexOf('\n'); if (responseA1PolicyManagement403_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description); + $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-403" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-403" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-403-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-403-schema">Schema</a> </li> @@ -4682,9 +4542,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-403-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-403-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-403" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-403-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-403-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-403" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -4723,33 +4583,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-403-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-403'); + $('#responses-A1PolicyManagement-getPolicy-403-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-403'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-403-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-403-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-404"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-404" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-404"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-404" class="marked"></p> <script> var responseA1PolicyManagement404_description = `Not Found`; var responseA1PolicyManagement404_description_break = responseA1PolicyManagement404_description.indexOf('\n'); if (responseA1PolicyManagement404_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description); + $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-404" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-404" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-404-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-404-schema">Schema</a> </li> @@ -4758,9 +4618,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-404-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-404-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-404" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-404-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-404-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-404" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -4799,33 +4659,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-404-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-404'); + $('#responses-A1PolicyManagement-getPolicy-404-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-404'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-404-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-404-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-406"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-406" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-406"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-406" class="marked"></p> <script> var responseA1PolicyManagement406_description = `Not Acceptable`; var responseA1PolicyManagement406_description_break = responseA1PolicyManagement406_description.indexOf('\n'); if (responseA1PolicyManagement406_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description); + $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-406" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-406" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-406-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-406-schema">Schema</a> </li> @@ -4834,9 +4694,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-406-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-406-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-406" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-406-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-406-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-406" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -4875,33 +4735,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-406-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-406'); + $('#responses-A1PolicyManagement-getPolicy-406-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-406'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-406-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-406-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-429"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-429" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-429"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); + $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-429" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-429" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-429-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-429-schema">Schema</a> </li> @@ -4910,13 +4770,13 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-429-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-429-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-429" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-429-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-429-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-429" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -4951,33 +4811,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-429-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-429'); + $('#responses-A1PolicyManagement-getPolicy-429-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-429'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-429-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-429-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-500"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-500" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-500"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-500" class="marked"></p> <script> var responseA1PolicyManagement500_description = `Internal Server Error`; var responseA1PolicyManagement500_description_break = responseA1PolicyManagement500_description.indexOf('\n'); if (responseA1PolicyManagement500_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description); + $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-500" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-500" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-500-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-500-schema">Schema</a> </li> @@ -4986,9 +4846,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-500-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-500-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-500" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-500-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-500-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-500" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5027,33 +4887,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-500-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-500'); + $('#responses-A1PolicyManagement-getPolicy-500-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-500'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-500-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-500-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-502"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-502" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-502"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-502" class="marked"></p> <script> var responseA1PolicyManagement502_description = `Bad Gateway`; var responseA1PolicyManagement502_description_break = responseA1PolicyManagement502_description.indexOf('\n'); if (responseA1PolicyManagement502_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description); + $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-502" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-502" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-502-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-502-schema">Schema</a> </li> @@ -5062,9 +4922,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-502-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-502-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-502" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-502-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-502-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-502" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5103,33 +4963,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-502-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-502'); + $('#responses-A1PolicyManagement-getPolicy-502-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-502'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-502-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-502-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-503"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-503" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-503"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-503" class="marked"></p> <script> var responseA1PolicyManagement503_description = `Service Unavailable`; var responseA1PolicyManagement503_description_break = responseA1PolicyManagement503_description.indexOf('\n'); if (responseA1PolicyManagement503_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description); + $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-503" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-503" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-503-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-503-schema">Schema</a> </li> @@ -5138,9 +4998,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-503-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-503-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-503" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-503-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-503-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-503" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5179,59 +5039,60 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-503-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-503'); + $('#responses-A1PolicyManagement-getPolicy-503-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-503'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-503-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-503-schema-data' type='hidden' value=''></input> </div> </div> </article> </div> <hr> - <div id="api-A1PolicyManagement-getPolicy"> - <article id="api-A1PolicyManagement-getPolicy-0" data-group="User" data-name="getPolicy" data-version="0"> + <div id="api-A1PolicyManagement-getPolicyIds"> + <article id="api-A1PolicyManagement-getPolicyIds-0" data-group="User" data-name="getPolicyIds" data-version="0"> <div class="pull-left"> - <h1>getPolicy</h1> - <p></p> + <h1>getPolicyIds</h1> + <p>Query for A1 Policy instances (getPolicyIds)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Returns a policy</p> + <p class="marked">Returns a collection of A1 Policy Instance IDs for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned. +</p> <p></p> <br /> - <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies/{policyId}</span></code></pre> + <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies</span></code></pre> <p> <h3>Usage and SDK Samples</h3> </p> <ul class="nav nav-tabs nav-tabs-examples"> - <li class="active"><a href="#examples-A1PolicyManagement-getPolicy-0-curl">Curl</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-java">Java</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-dart">Dart</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-android">Android</a></li> - <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-groovy">Groovy</a></li>--> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-objc">Obj-C</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-javascript">JavaScript</a></li> - <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-angular">Angular</a></li>--> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-csharp">C#</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-php">PHP</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-perl">Perl</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-python">Python</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-rust">Rust</a></li> + <li class="active"><a href="#examples-A1PolicyManagement-getPolicyIds-0-curl">Curl</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-java">Java</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-dart">Dart</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-android">Android</a></li> + <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-groovy">Groovy</a></li>--> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-objc">Obj-C</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-javascript">JavaScript</a></li> + <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-angular">Angular</a></li>--> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-csharp">C#</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-php">PHP</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-perl">Perl</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-python">Python</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-rust">Rust</a></li> </ul> <div class="tab-content"> - <div class="tab-pane active" id="examples-A1PolicyManagement-getPolicy-0-curl"> + <div class="tab-pane active" id="examples-A1PolicyManagement-getPolicyIds-0-curl"> <pre class="prettyprint"><code class="language-bsh">curl -X GET \ -H "Accept: application/json,application/problem+json" \ - "https://example.com/a1-policy-management/v1/policies/{policyId}" + "https://example.com/a1-policy-management/v1/policies?policyTypeId=policyTypeId_example&nearRtRicId=nearRtRicId_example&serviceId=serviceId_example&typeName=typeName_example" </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-java"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-java"> <pre class="prettyprint"><code class="language-java">import org.openapitools.client.*; import org.openapitools.client.auth.*; import org.openapitools.client.model.*; @@ -5245,14 +5106,17 @@ public class A1PolicyManagementApiExample { // Create an instance of the API class A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); - String policyId = policyId_example; // String | + String policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID. + String nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity. + String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). + String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). 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 { - Object result = apiInstance.getPolicy(policyId, accept); + array[PolicyInformation] result = apiInstance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling A1PolicyManagementApi#getPolicy"); + System.err.println("Exception when calling A1PolicyManagementApi#getPolicyIds"); e.printStackTrace(); } } @@ -5260,58 +5124,71 @@ public class A1PolicyManagementApiExample { </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-dart"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-dart"> <pre class="prettyprint"><code class="language-dart">import 'package:openapi/api.dart'; final api_instance = DefaultApi(); -final String policyId = new String(); // String | +final String policyTypeId = new String(); // String | Select policies with a given A1 Policy Type ID. +final String nearRtRicId = new String(); // String | Select policies for a given Near-RT RIC identity. +final String serviceId = new String(); // String | Select policies owned by a given service (registered or unregistered). +final String typeName = new String(); // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). 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.getPolicy(policyId, accept); + final result = await api_instance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept); print(result); } catch (e) { - print('Exception when calling DefaultApi->getPolicy: $e\n'); + print('Exception when calling DefaultApi->getPolicyIds: $e\n'); } </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-android"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-android"> <pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.A1PolicyManagementApi; public class A1PolicyManagementApiExample { public static void main(String[] args) { A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); - String policyId = policyId_example; // String | + String policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID. + String nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity. + String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). + String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). 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 { - Object result = apiInstance.getPolicy(policyId, accept); + array[PolicyInformation] result = apiInstance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling A1PolicyManagementApi#getPolicy"); + System.err.println("Exception when calling A1PolicyManagementApi#getPolicyIds"); e.printStackTrace(); } } }</code></pre> </div> <!-- - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-groovy"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-groovy"> <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre> </div> --> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-objc"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-objc"> <pre class="prettyprint"><code class="language-cpp"> // Create an instance of the API class A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; -String *policyId = policyId_example; // (default to null) +String *policyTypeId = policyTypeId_example; // Select policies with a given A1 Policy Type ID. (optional) (default to null) +String *nearRtRicId = nearRtRicId_example; // Select policies for a given Near-RT RIC identity. (optional) (default to null) +String *serviceId = serviceId_example; // Select policies owned by a given service (registered or unregistered). (optional) (default to null) +String *typeName = typeName_example; // Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (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) -[apiInstance getPolicyWith:policyId +// Query for A1 Policy instances (getPolicyIds) +[apiInstance getPolicyIdsWith:policyTypeId + nearRtRicId:nearRtRicId + serviceId:serviceId + typeName:typeName accept:accept - completionHandler: ^(Object output, NSError* error) { + completionHandler: ^(array[PolicyInformation] output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -5322,13 +5199,16 @@ String *accept = application/json; // Specifies the content type that the client </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-javascript"> + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() -var policyId = policyId_example; // {String} +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() var opts = { + 'policyTypeId': policyTypeId_example, // {String} Select policies with a given A1 Policy Type ID. + 'nearRtRicId': nearRtRicId_example, // {String} Select policies for a given Near-RT RIC identity. + 'serviceId': serviceId_example, // {String} Select policies owned by a given service (registered or unregistered). + 'typeName': typeName_example, // {String} Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. }; @@ -5339,14 +5219,14 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -api.getPolicy(policyId, opts, callback); +api.getPolicyIds(opts, callback); </code></pre> </div> - <!--<div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-angular"> + <!--<div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-angular"> <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre> </div>--> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-csharp"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-csharp"> <pre class="prettyprint"><code class="language-cs">using System; using System.Diagnostics; using Org.OpenAPITools.Api; @@ -5355,21 +5235,25 @@ using Org.OpenAPITools.Model; namespace Example { - public class getPolicyExample + public class getPolicyIdsExample { public void main() { // Create an instance of the API class var apiInstance = new A1PolicyManagementApi(); - var policyId = policyId_example; // String | (default to null) + var policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID. (optional) (default to null) + var nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity. (optional) (default to null) + var serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). (optional) (default to null) + var typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (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 { - Object result = apiInstance.getPolicy(policyId, accept); + // Query for A1 Policy instances (getPolicyIds) + array[PolicyInformation] result = apiInstance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling A1PolicyManagementApi.getPolicy: " + e.Message ); + Debug.Print("Exception when calling A1PolicyManagementApi.getPolicyIds: " + e.Message ); } } } @@ -5377,44 +5261,50 @@ namespace Example </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-php"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-php"> <pre class="prettyprint"><code class="language-php"><?php require_once(__DIR__ . '/vendor/autoload.php'); // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi(); -$policyId = policyId_example; // String | +$policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID. +$nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity. +$serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). +$typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). $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->getPolicy($policyId, $accept); + $result = $api_instance->getPolicyIds($policyTypeId, $nearRtRicId, $serviceId, $typeName, $accept); print_r($result); } catch (Exception $e) { - echo 'Exception when calling A1PolicyManagementApi->getPolicy: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling A1PolicyManagementApi->getPolicyIds: ', $e->getMessage(), PHP_EOL; } ?></code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-perl"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-perl"> <pre class="prettyprint"><code class="language-perl">use Data::Dumper; use WWW::OPenAPIClient::Configuration; use WWW::OPenAPIClient::A1PolicyManagementApi; # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new(); -my $policyId = policyId_example; # String | +my $policyTypeId = policyTypeId_example; # String | Select policies with a given A1 Policy Type ID. +my $nearRtRicId = nearRtRicId_example; # String | Select policies for a given Near-RT RIC identity. +my $serviceId = serviceId_example; # String | Select policies owned by a given service (registered or unregistered). +my $typeName = typeName_example; # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). 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->getPolicy(policyId => $policyId, accept => $accept); + my $result = $api_instance->getPolicyIds(policyTypeId => $policyTypeId, nearRtRicId => $nearRtRicId, serviceId => $serviceId, typeName => $typeName, accept => $accept); print Dumper($result); }; if ($@) { - warn "Exception when calling A1PolicyManagementApi->getPolicy: $@\n"; + warn "Exception when calling A1PolicyManagementApi->getPolicyIds: $@\n"; }</code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-python"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-python"> <pre class="prettyprint"><code class="language-python">from __future__ import print_statement import time import openapi_client @@ -5423,25 +5313,32 @@ from pprint import pprint # Create an instance of the API class api_instance = openapi_client.A1PolicyManagementApi() -policyId = policyId_example # String | (default to null) +policyTypeId = policyTypeId_example # String | Select policies with a given A1 Policy Type ID. (optional) (default to null) +nearRtRicId = nearRtRicId_example # String | Select policies for a given Near-RT RIC identity. (optional) (default to null) +serviceId = serviceId_example # String | Select policies owned by a given service (registered or unregistered). (optional) (default to null) +typeName = typeName_example # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (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: - api_response = api_instance.get_policy(policyId, accept=accept) + # Query for A1 Policy instances (getPolicyIds) + api_response = api_instance.get_policy_ids(policyTypeId=policyTypeId, nearRtRicId=nearRtRicId, serviceId=serviceId, typeName=typeName, accept=accept) pprint(api_response) except ApiException as e: - print("Exception when calling A1PolicyManagementApi->getPolicy: %s\n" % e)</code></pre> + print("Exception when calling A1PolicyManagementApi->getPolicyIds: %s\n" % e)</code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-rust"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-rust"> <pre class="prettyprint"><code class="language-rust">extern crate A1PolicyManagementApi; pub fn main() { - let policyId = policyId_example; // String + let policyTypeId = policyTypeId_example; // String + let nearRtRicId = nearRtRicId_example; // String + let serviceId = serviceId_example; // String + let typeName = typeName_example; // String let accept = application/json; // String let mut context = A1PolicyManagementApi::Context::default(); - let result = client.getPolicy(policyId, accept, &context).wait(); + let result = client.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept, &context).wait(); println!("{:?}", result); } @@ -5456,27 +5353,28 @@ pub fn main() { <h2>Parameters</h2> - <div class="methodsubtabletitle">Path parameters</div> + + <div class="methodsubtabletitle">Header parameters</div> <table id="methodsubtable"> - <tr> - <th width="150px">Name</th> - <th>Description</th> - </tr> - <tr><td style="width:150px;">policyId*</td> + <tr> + <th width="150px">Name</th> + <th>Description</th> + </tr> + <tr><td style="width:150px;">Accept</td> <td> - <div id="d2e199_getPolicy_policyId"> + <div id="d2e199_getPolicyIds_accept"> <div class="json-schema-view"> <div class="primitive"> <span class="type"> String </span> + <div class="inner description marked"> +Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. + </div> </div> - <div class="inner required"> - Required - </div> </div> </div> </td> @@ -5484,17 +5382,19 @@ pub fn main() { </table> - <div class="methodsubtabletitle">Header parameters</div> + + + <div class="methodsubtabletitle">Query parameters</div> <table id="methodsubtable"> <tr> <th width="150px">Name</th> <th>Description</th> </tr> - <tr><td style="width:150px;">Accept</td> + <tr><td style="width:150px;">policyTypeId</td> <td> - <div id="d2e199_getPolicy_accept"> + <div id="d2e199_getPolicyIds_policyTypeId"> <div class="json-schema-view"> <div class="primitive"> <span class="type"> @@ -5502,7 +5402,7 @@ pub fn main() { </span> <div class="inner description marked"> -Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. +Select policies with a given A1 Policy Type ID. </div> </div> </div> @@ -5510,29 +5410,86 @@ Specifies the content type that the client expects to receive in response to the </td> </tr> - </table> + <tr><td style="width:150px;">nearRtRicId</td> +<td> + + + <div id="d2e199_getPolicyIds_nearRtRicId"> + <div class="json-schema-view"> + <div class="primitive"> + <span class="type"> + String + </span> + + <div class="inner description marked"> +Select policies for a given Near-RT RIC identity. + </div> + </div> + </div> + </div> +</td> +</tr> + + <tr><td style="width:150px;">serviceId</td> +<td> + <div id="d2e199_getPolicyIds_serviceId"> + <div class="json-schema-view"> + <div class="primitive"> + <span class="type"> + String + </span> + + <div class="inner description marked"> +Select policies owned by a given service (registered or unregistered). + </div> + </div> + </div> + </div> +</td> +</tr> + + <tr><td style="width:150px;">typeName</td> +<td> + <div id="d2e199_getPolicyIds_typeName"> + <div class="json-schema-view"> + <div class="primitive"> + <span class="type"> + String + </span> + + <div class="inner description marked"> +Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). + </div> + </div> + </div> + </div> +</td> +</tr> + + </table> + <h2>Responses</h2> - <h3 id="examples-A1PolicyManagement-getPolicy-title-200"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-200" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-200"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-200" class="marked"></p> <script> - var responseA1PolicyManagement200_description = `OK - Policy found`; + var responseA1PolicyManagement200_description = `OK - Policy identities`; var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n'); if (responseA1PolicyManagement200_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-200" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-200" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-200-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-200-schema">Schema</a> </li> @@ -5541,21 +5498,19 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-200-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-200-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-200" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-200-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-200-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-200" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { - "description" : "OK - Policy found", + "description" : "OK - Policy identities", "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/PolicyObject" - }, - "examples" : { - "policyObject" : { - "$ref" : "#/components/examples/PolicyObject" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/PolicyInformation" } } } @@ -5587,33 +5542,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-200-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-200'); + $('#responses-A1PolicyManagement-getPolicyIds-200-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-200'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-200-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-200-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-400"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-400" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-400"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-400" class="marked"></p> <script> var responseA1PolicyManagement400_description = `Bad Request`; var responseA1PolicyManagement400_description_break = responseA1PolicyManagement400_description.indexOf('\n'); if (responseA1PolicyManagement400_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-400" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-400" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-400-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-400-schema">Schema</a> </li> @@ -5622,9 +5577,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-400-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-400-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-400" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-400-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-400-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-400" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5663,33 +5618,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-400-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-400'); + $('#responses-A1PolicyManagement-getPolicyIds-400-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-400'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-400-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-400-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-401"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-401" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-401"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-401" class="marked"></p> <script> var responseA1PolicyManagement401_description = `Unauthorized`; var responseA1PolicyManagement401_description_break = responseA1PolicyManagement401_description.indexOf('\n'); if (responseA1PolicyManagement401_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-401" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-401" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-401-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-401-schema">Schema</a> </li> @@ -5698,9 +5653,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-401-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-401-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-401" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-401-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-401-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-401" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5739,33 +5694,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-401-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-401'); + $('#responses-A1PolicyManagement-getPolicyIds-401-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-401'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-401-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-401-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-403"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-403" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-403"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-403" class="marked"></p> <script> var responseA1PolicyManagement403_description = `Forbidden`; var responseA1PolicyManagement403_description_break = responseA1PolicyManagement403_description.indexOf('\n'); if (responseA1PolicyManagement403_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-403" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-403" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-403-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-403-schema">Schema</a> </li> @@ -5774,9 +5729,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-403-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-403-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-403" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-403-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-403-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-403" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5815,33 +5770,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-403-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-403'); + $('#responses-A1PolicyManagement-getPolicyIds-403-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-403'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-403-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-403-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-404"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-404" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-404"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-404" class="marked"></p> <script> var responseA1PolicyManagement404_description = `Not Found`; var responseA1PolicyManagement404_description_break = responseA1PolicyManagement404_description.indexOf('\n'); if (responseA1PolicyManagement404_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-404" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-404" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-404-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-404-schema">Schema</a> </li> @@ -5850,9 +5805,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-404-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-404-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-404" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-404-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-404-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-404" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5891,33 +5846,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-404-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-404'); + $('#responses-A1PolicyManagement-getPolicyIds-404-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-404'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-404-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-404-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-406"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-406" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-406"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-406" class="marked"></p> <script> var responseA1PolicyManagement406_description = `Not Acceptable`; var responseA1PolicyManagement406_description_break = responseA1PolicyManagement406_description.indexOf('\n'); if (responseA1PolicyManagement406_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-406" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-406" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-406-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-406-schema">Schema</a> </li> @@ -5926,9 +5881,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-406-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-406-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-406" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-406-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-406-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-406" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5967,33 +5922,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-406-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-406'); + $('#responses-A1PolicyManagement-getPolicyIds-406-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-406'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-406-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-406-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-429"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-429" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-429"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-429" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-429" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-429-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-429-schema">Schema</a> </li> @@ -6002,13 +5957,13 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-429-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-429-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-429" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-429-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-429-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-429" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -6043,33 +5998,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-429-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-429'); + $('#responses-A1PolicyManagement-getPolicyIds-429-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-429'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-429-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-429-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-500"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-500" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-500"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-500" class="marked"></p> <script> var responseA1PolicyManagement500_description = `Internal Server Error`; var responseA1PolicyManagement500_description_break = responseA1PolicyManagement500_description.indexOf('\n'); if (responseA1PolicyManagement500_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-500" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-500" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-500-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-500-schema">Schema</a> </li> @@ -6078,9 +6033,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-500-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-500-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-500" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-500-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-500-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-500" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -6119,33 +6074,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-500-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-500'); + $('#responses-A1PolicyManagement-getPolicyIds-500-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-500'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-500-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-500-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-502"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-502" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-502"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-502" class="marked"></p> <script> var responseA1PolicyManagement502_description = `Bad Gateway`; var responseA1PolicyManagement502_description_break = responseA1PolicyManagement502_description.indexOf('\n'); if (responseA1PolicyManagement502_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-502" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-502" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-502-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-502-schema">Schema</a> </li> @@ -6154,9 +6109,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-502-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-502-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-502" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-502-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-502-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-502" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -6195,33 +6150,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-502-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-502'); + $('#responses-A1PolicyManagement-getPolicyIds-502-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-502'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-502-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-502-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-503"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-503" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-503"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-503" class="marked"></p> <script> var responseA1PolicyManagement503_description = `Service Unavailable`; var responseA1PolicyManagement503_description_break = responseA1PolicyManagement503_description.indexOf('\n'); if (responseA1PolicyManagement503_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-503" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-503" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-503-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-503-schema">Schema</a> </li> @@ -6230,9 +6185,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-503-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-503-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-503" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-503-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-503-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-503" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -6271,14 +6226,14 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-503-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-503'); + $('#responses-A1PolicyManagement-getPolicyIds-503-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-503'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-503-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-503-schema-data' type='hidden' value=''></input> </div> </div> </article> @@ -6288,12 +6243,12 @@ Specifies the content type that the client expects to receive in response to the <article id="api-A1PolicyManagement-getPolicyStatus-0" data-group="User" data-name="getPolicyStatus" data-version="0"> <div class="pull-left"> <h1>getPolicyStatus</h1> - <p></p> + <p>Get an A1 Policy Instance's status (getPolicyStatus)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Query a policy status</p> + <p class="marked">Retrieve the status information for an A1 Policy Instance using its policy ID.</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies/{policyId}/status</span></code></pre> @@ -6401,6 +6356,7 @@ A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; String *policyId = policyId_example; // (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) +// Get an A1 Policy Instance's status (getPolicyStatus) [apiInstance getPolicyStatusWith:policyId accept:accept completionHandler: ^(Object output, NSError* error) { @@ -6415,10 +6371,10 @@ String *accept = application/json; // Specifies the content type that the client </div> <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() var policyId = policyId_example; // {String} var opts = { 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. @@ -6458,6 +6414,7 @@ namespace Example 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 { + // Get an A1 Policy Instance's status (getPolicyStatus) Object result = apiInstance.getPolicyStatus(policyId, accept); Debug.WriteLine(result); } catch (Exception e) { @@ -6519,6 +6476,7 @@ policyId = policyId_example # String | (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: + # Get an A1 Policy Instance's status (getPolicyStatus) api_response = api_instance.get_policy_status(policyId, accept=accept) pprint(api_response) except ApiException as e: @@ -7067,7 +7025,7 @@ Specifies the content type that the client expects to receive in response to the <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-429"></h3> <p id="examples-A1PolicyManagement-getPolicyStatus-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { $("#examples-A1PolicyManagement-getPolicyStatus-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); @@ -7095,7 +7053,7 @@ Specifies the content type that the client expects to receive in response to the <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -7375,12 +7333,12 @@ Specifies the content type that the client expects to receive in response to the <article id="api-A1PolicyManagement-getPolicyTypeDefinition-0" data-group="User" data-name="getPolicyTypeDefinition" data-version="0"> <div class="pull-left"> <h1>getPolicyTypeDefinition</h1> - <p></p> + <p>Get an A1 Policy Type definition (getPolicyTypeDefinition)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Returns a policy type definition</p> + <p class="marked">Get an A1 Policy Type definition using its policy type ID</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policy-types/{policyTypeId}</span></code></pre> @@ -7488,6 +7446,7 @@ A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; String *policyTypeId = policyTypeId_example; // (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) +// Get an A1 Policy Type definition (getPolicyTypeDefinition) [apiInstance getPolicyTypeDefinitionWith:policyTypeId accept:accept completionHandler: ^(PolicyTypeObject output, NSError* error) { @@ -7502,10 +7461,10 @@ String *accept = application/json; // Specifies the content type that the client </div> <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyTypeDefinition-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() var policyTypeId = policyTypeId_example; // {String} var opts = { 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. @@ -7545,6 +7504,7 @@ namespace Example 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 { + // Get an A1 Policy Type definition (getPolicyTypeDefinition) PolicyTypeObject result = apiInstance.getPolicyTypeDefinition(policyTypeId, accept); Debug.WriteLine(result); } catch (Exception e) { @@ -7606,6 +7566,7 @@ policyTypeId = policyTypeId_example # String | (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: + # Get an A1 Policy Type definition (getPolicyTypeDefinition) api_response = api_instance.get_policy_type_definition(policyTypeId, accept=accept) pprint(api_response) except ApiException as e: @@ -7698,7 +7659,7 @@ Specifies the content type that the client expects to receive in response to the <h3 id="examples-A1PolicyManagement-getPolicyTypeDefinition-title-200"></h3> <p id="examples-A1PolicyManagement-getPolicyTypeDefinition-description-200" class="marked"></p> <script> - var responseA1PolicyManagement200_description = `OK - schema of the given policy type`; + var responseA1PolicyManagement200_description = `OK - details and schema of the requested A1 Policy Type`; var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n'); if (responseA1PolicyManagement200_description_break == -1) { $("#examples-A1PolicyManagement-getPolicyTypeDefinition-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); @@ -7726,7 +7687,7 @@ Specifies the content type that the client expects to receive in response to the <script> $(document).ready(function() { var schemaWrapper = { - "description" : "OK - schema of the given policy type", + "description" : "OK - details and schema of the requested A1 Policy Type", "content" : { "application/json" : { "schema" : { @@ -8159,7 +8120,7 @@ Specifies the content type that the client expects to receive in response to the <h3 id="examples-A1PolicyManagement-getPolicyTypeDefinition-title-429"></h3> <p id="examples-A1PolicyManagement-getPolicyTypeDefinition-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { $("#examples-A1PolicyManagement-getPolicyTypeDefinition-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); @@ -8187,7 +8148,7 @@ Specifies the content type that the client expects to receive in response to the <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -8467,12 +8428,12 @@ Specifies the content type that the client expects to receive in response to the <article id="api-A1PolicyManagement-getPolicyTypes-0" data-group="User" data-name="getPolicyTypes" data-version="0"> <div class="pull-left"> <h1>getPolicyTypes</h1> - <p></p> + <p>Get A1 Policy Types (getPolicyTypes)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Query policy type identities</p> + <p class="marked">Query A1 Policy Type identities using query parameters</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policy-types</span></code></pre> @@ -8517,8 +8478,9 @@ public class A1PolicyManagementApiExample { // Create an instance of the API class A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); String nearRtRicId = nearRtRicId_example; // String | Select types for the given Near-RT RIC identity. - String typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>) - String compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + String typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version') + String compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + 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 { @@ -8539,8 +8501,9 @@ public class A1PolicyManagementApiExample { final api_instance = DefaultApi(); final String nearRtRicId = new String(); // String | Select types for the given Near-RT RIC identity. -final String typeName = new String(); // String | Select types with the given type name (type identity has the format <typename_version>) -final String compatibleWithVersion = new String(); // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. +final String typeName = new String(); // String | Select types compatible with the given type name (type identity has the format 'typename_version') +final String compatibleWithVersion = new String(); // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + 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 { @@ -8560,8 +8523,9 @@ public class A1PolicyManagementApiExample { public static void main(String[] args) { A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); String nearRtRicId = nearRtRicId_example; // String | Select types for the given Near-RT RIC identity. - String typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>) - String compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + String typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version') + String compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + 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 { @@ -8584,10 +8548,12 @@ public class A1PolicyManagementApiExample { // Create an instance of the API class A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; String *nearRtRicId = nearRtRicId_example; // Select types for the given Near-RT RIC identity. (optional) (default to null) -String *typeName = typeName_example; // Select types with the given type name (type identity has the format <typename_version>) (optional) (default to null) -String *compatibleWithVersion = compatibleWithVersion_example; // Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. (optional) (default to null) +String *typeName = typeName_example; // Select types compatible with the given type name (type identity has the format 'typename_version') (optional) (default to null) +String *compatibleWithVersion = compatibleWithVersion_example; // Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + (optional) (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) +// Get A1 Policy Types (getPolicyTypes) [apiInstance getPolicyTypesWith:nearRtRicId typeName:typeName compatibleWithVersion:compatibleWithVersion @@ -8604,14 +8570,15 @@ String *accept = application/json; // Specifies the content type that the client </div> <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyTypes-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() var opts = { 'nearRtRicId': nearRtRicId_example, // {String} Select types for the given Near-RT RIC identity. - 'typeName': typeName_example, // {String} Select types with the given type name (type identity has the format <typename_version>) - 'compatibleWithVersion': compatibleWithVersion_example, // {String} Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + 'typeName': typeName_example, // {String} Select types compatible with the given type name (type identity has the format 'typename_version') + 'compatibleWithVersion': compatibleWithVersion_example, // {String} Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. }; @@ -8646,11 +8613,13 @@ namespace Example // Create an instance of the API class var apiInstance = new A1PolicyManagementApi(); var nearRtRicId = nearRtRicId_example; // String | Select types for the given Near-RT RIC identity. (optional) (default to null) - var typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>) (optional) (default to null) - var compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. (optional) (default to null) + var typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version') (optional) (default to null) + var compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + (optional) (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 { + // Get A1 Policy Types (getPolicyTypes) array[PolicyTypeInformation] result = apiInstance.getPolicyTypes(nearRtRicId, typeName, compatibleWithVersion, accept); Debug.WriteLine(result); } catch (Exception e) { @@ -8669,8 +8638,9 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi(); $nearRtRicId = nearRtRicId_example; // String | Select types for the given Near-RT RIC identity. -$typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>) -$compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. +$typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version') +$compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + $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 { @@ -8690,8 +8660,9 @@ use WWW::OPenAPIClient::A1PolicyManagementApi; # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new(); my $nearRtRicId = nearRtRicId_example; # String | Select types for the given Near-RT RIC identity. -my $typeName = typeName_example; # String | Select types with the given type name (type identity has the format <typename_version>) -my $compatibleWithVersion = compatibleWithVersion_example; # String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. +my $typeName = typeName_example; # String | Select types compatible with the given type name (type identity has the format 'typename_version') +my $compatibleWithVersion = compatibleWithVersion_example; # String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + 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 { @@ -8713,11 +8684,13 @@ from pprint import pprint # Create an instance of the API class api_instance = openapi_client.A1PolicyManagementApi() nearRtRicId = nearRtRicId_example # String | Select types for the given Near-RT RIC identity. (optional) (default to null) -typeName = typeName_example # String | Select types with the given type name (type identity has the format <typename_version>) (optional) (default to null) -compatibleWithVersion = compatibleWithVersion_example # String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. (optional) (default to null) +typeName = typeName_example # String | Select types compatible with the given type name (type identity has the format 'typename_version') (optional) (default to null) +compatibleWithVersion = compatibleWithVersion_example # String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + (optional) (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: + # Get A1 Policy Types (getPolicyTypes) api_response = api_instance.get_policy_types(nearRtRicId=nearRtRicId, typeName=typeName, compatibleWithVersion=compatibleWithVersion, accept=accept) pprint(api_response) except ApiException as e: @@ -8818,7 +8791,7 @@ Select types for the given Near-RT RIC identity. </span> <div class="inner description marked"> -Select types with the given type name (type identity has the format <typename_version>) +Select types compatible with the given type name (type identity has the format 'typename_version') </div> </div> </div> @@ -8838,7 +8811,8 @@ Select types with the given type name (type identity has the format <typename </span> <div class="inner description marked"> -Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. +Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + </div> </div> </div> @@ -9316,7 +9290,7 @@ Select types that are compatible with the given version. This parameter is only <h3 id="examples-A1PolicyManagement-getPolicyTypes-title-429"></h3> <p id="examples-A1PolicyManagement-getPolicyTypes-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { $("#examples-A1PolicyManagement-getPolicyTypes-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); @@ -9344,7 +9318,7 @@ Select types that are compatible with the given version. This parameter is only <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -9620,16 +9594,16 @@ Select types that are compatible with the given version. This parameter is only </article> </div> <hr> - <div id="api-A1PolicyManagement-putPolicy"> - <article id="api-A1PolicyManagement-putPolicy-0" data-group="User" data-name="putPolicy" data-version="0"> + <div id="api-A1PolicyManagement-updatePolicy"> + <article id="api-A1PolicyManagement-updatePolicy-0" data-group="User" data-name="updatePolicy" data-version="0"> <div class="pull-left"> - <h1>putPolicy</h1> - <p></p> + <h1>updatePolicy</h1> + <p>Update an A1 Policy's policy data (updatePolicy)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">update a policy</p> + <p class="marked">Update an existing A1 Policy instance's policy data using its policy ID.</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/policies/{policyId}</span></code></pre> @@ -9637,23 +9611,23 @@ Select types that are compatible with the given version. This parameter is only <h3>Usage and SDK Samples</h3> </p> <ul class="nav nav-tabs nav-tabs-examples"> - <li class="active"><a href="#examples-A1PolicyManagement-putPolicy-0-curl">Curl</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-java">Java</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-dart">Dart</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-android">Android</a></li> - <!--<li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-groovy">Groovy</a></li>--> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-objc">Obj-C</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-javascript">JavaScript</a></li> - <!--<li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-angular">Angular</a></li>--> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-csharp">C#</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-php">PHP</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-perl">Perl</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-python">Python</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-rust">Rust</a></li> + <li class="active"><a href="#examples-A1PolicyManagement-updatePolicy-0-curl">Curl</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-java">Java</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-dart">Dart</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-android">Android</a></li> + <!--<li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-groovy">Groovy</a></li>--> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-objc">Obj-C</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-javascript">JavaScript</a></li> + <!--<li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-angular">Angular</a></li>--> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-csharp">C#</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-php">PHP</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-perl">Perl</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-python">Python</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-rust">Rust</a></li> </ul> <div class="tab-content"> - <div class="tab-pane active" id="examples-A1PolicyManagement-putPolicy-0-curl"> + <div class="tab-pane active" id="examples-A1PolicyManagement-updatePolicy-0-curl"> <pre class="prettyprint"><code class="language-bsh">curl -X PUT \ -H "Accept: application/json,application/problem+json" \ -H "Content-Type: application/json" \ @@ -9661,7 +9635,7 @@ Select types that are compatible with the given version. This parameter is only -d '' </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-java"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-java"> <pre class="prettyprint"><code class="language-java">import org.openapitools.client.*; import org.openapitools.client.auth.*; import org.openapitools.client.model.*; @@ -9679,10 +9653,10 @@ public class A1PolicyManagementApiExample { Object body = Object; // Object | try { - Object result = apiInstance.putPolicy(policyId, body); + Object result = apiInstance.updatePolicy(policyId, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling A1PolicyManagementApi#putPolicy"); + System.err.println("Exception when calling A1PolicyManagementApi#updatePolicy"); e.printStackTrace(); } } @@ -9690,7 +9664,7 @@ public class A1PolicyManagementApiExample { </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-dart"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-dart"> <pre class="prettyprint"><code class="language-dart">import 'package:openapi/api.dart'; final api_instance = DefaultApi(); @@ -9699,16 +9673,16 @@ final String policyId = new String(); // String | final Object body = new Object(); // Object | try { - final result = await api_instance.putPolicy(policyId, body); + final result = await api_instance.updatePolicy(policyId, body); print(result); } catch (e) { - print('Exception when calling DefaultApi->putPolicy: $e\n'); + print('Exception when calling DefaultApi->updatePolicy: $e\n'); } </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-android"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-android"> <pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.A1PolicyManagementApi; public class A1PolicyManagementApiExample { @@ -9718,20 +9692,20 @@ public class A1PolicyManagementApiExample { Object body = Object; // Object | try { - Object result = apiInstance.putPolicy(policyId, body); + Object result = apiInstance.updatePolicy(policyId, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling A1PolicyManagementApi#putPolicy"); + System.err.println("Exception when calling A1PolicyManagementApi#updatePolicy"); e.printStackTrace(); } } }</code></pre> </div> <!-- - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-groovy"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-groovy"> <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre> </div> --> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-objc"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-objc"> <pre class="prettyprint"><code class="language-cpp"> // Create an instance of the API class @@ -9739,7 +9713,8 @@ A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; String *policyId = policyId_example; // (default to null) Object *body = Object; // -[apiInstance putPolicyWith:policyId +// Update an A1 Policy's policy data (updatePolicy) +[apiInstance updatePolicyWith:policyId body:body completionHandler: ^(Object output, NSError* error) { if (output) { @@ -9752,11 +9727,11 @@ Object *body = Object; // </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-javascript"> + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() var policyId = policyId_example; // {String} var body = Object; // {Object} @@ -9767,14 +9742,14 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -api.putPolicy(policyId, body, callback); +api.updatePolicy(policyId, body, callback); </code></pre> </div> - <!--<div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-angular"> + <!--<div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-angular"> <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre> </div>--> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-csharp"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-csharp"> <pre class="prettyprint"><code class="language-cs">using System; using System.Diagnostics; using Org.OpenAPITools.Api; @@ -9783,7 +9758,7 @@ using Org.OpenAPITools.Model; namespace Example { - public class putPolicyExample + public class updatePolicyExample { public void main() { @@ -9794,10 +9769,11 @@ namespace Example var body = Object; // Object | try { - Object result = apiInstance.putPolicy(policyId, body); + // Update an A1 Policy's policy data (updatePolicy) + Object result = apiInstance.updatePolicy(policyId, body); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling A1PolicyManagementApi.putPolicy: " + e.Message ); + Debug.Print("Exception when calling A1PolicyManagementApi.updatePolicy: " + e.Message ); } } } @@ -9805,7 +9781,7 @@ namespace Example </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-php"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-php"> <pre class="prettyprint"><code class="language-php"><?php require_once(__DIR__ . '/vendor/autoload.php'); @@ -9815,15 +9791,15 @@ $policyId = policyId_example; // String | $body = Object; // Object | try { - $result = $api_instance->putPolicy($policyId, $body); + $result = $api_instance->updatePolicy($policyId, $body); print_r($result); } catch (Exception $e) { - echo 'Exception when calling A1PolicyManagementApi->putPolicy: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling A1PolicyManagementApi->updatePolicy: ', $e->getMessage(), PHP_EOL; } ?></code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-perl"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-perl"> <pre class="prettyprint"><code class="language-perl">use Data::Dumper; use WWW::OPenAPIClient::Configuration; use WWW::OPenAPIClient::A1PolicyManagementApi; @@ -9834,15 +9810,15 @@ my $policyId = policyId_example; # String | my $body = WWW::OPenAPIClient::Object::Object->new(); # Object | eval { - my $result = $api_instance->putPolicy(policyId => $policyId, body => $body); + my $result = $api_instance->updatePolicy(policyId => $policyId, body => $body); print Dumper($result); }; if ($@) { - warn "Exception when calling A1PolicyManagementApi->putPolicy: $@\n"; + warn "Exception when calling A1PolicyManagementApi->updatePolicy: $@\n"; }</code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-python"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-python"> <pre class="prettyprint"><code class="language-python">from __future__ import print_statement import time import openapi_client @@ -9855,13 +9831,14 @@ policyId = policyId_example # String | (default to null) body = Object # Object | try: - api_response = api_instance.put_policy(policyId, body) + # Update an A1 Policy's policy data (updatePolicy) + api_response = api_instance.update_policy(policyId, body) pprint(api_response) except ApiException as e: - print("Exception when calling A1PolicyManagementApi->putPolicy: %s\n" % e)</code></pre> + print("Exception when calling A1PolicyManagementApi->updatePolicy: %s\n" % e)</code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-rust"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-rust"> <pre class="prettyprint"><code class="language-rust">extern crate A1PolicyManagementApi; pub fn main() { @@ -9869,7 +9846,7 @@ pub fn main() { let body = Object; // Object let mut context = A1PolicyManagementApi::Context::default(); - let result = client.putPolicy(policyId, body, &context).wait(); + let result = client.updatePolicy(policyId, body, &context).wait(); println!("{:?}", result); } @@ -9894,7 +9871,7 @@ pub fn main() { <td> - <div id="d2e199_putPolicy_policyId"> + <div id="d2e199_updatePolicy_policyId"> <div class="json-schema-view"> <div class="primitive"> <span class="type"> @@ -9956,12 +9933,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_putPolicy_body'); + var result = $('#d2e199_updatePolicy_body'); result.empty(); result.append(view.render()); }); </script> -<div id="d2e199_putPolicy_body"></div> +<div id="d2e199_updatePolicy_body"></div> </td> </tr> @@ -9970,23 +9947,23 @@ $(document).ready(function() { <h2>Responses</h2> - <h3 id="examples-A1PolicyManagement-putPolicy-title-200"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-200" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-200"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-200" class="marked"></p> <script> var responseA1PolicyManagement200_description = `OK - Policy updated`; var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n'); if (responseA1PolicyManagement200_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); + $("#examples-A1PolicyManagement-updatePolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-200" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-200" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-200-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-200-schema">Schema</a> </li> @@ -9995,9 +9972,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-200-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-200-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-200" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-200-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-200-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-200" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10036,33 +10013,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-200-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-200'); + $('#responses-A1PolicyManagement-updatePolicy-200-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-200'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-200-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-200-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-400"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-400" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-400"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-400" class="marked"></p> <script> var responseA1PolicyManagement400_description = `Bad Request`; var responseA1PolicyManagement400_description_break = responseA1PolicyManagement400_description.indexOf('\n'); if (responseA1PolicyManagement400_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description); + $("#examples-A1PolicyManagement-updatePolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-400" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-400" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-400-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-400-schema">Schema</a> </li> @@ -10071,9 +10048,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-400-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-400-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-400" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-400-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-400-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-400" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10112,33 +10089,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-400-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-400'); + $('#responses-A1PolicyManagement-updatePolicy-400-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-400'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-400-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-400-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-401"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-401" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-401"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-401" class="marked"></p> <script> var responseA1PolicyManagement401_description = `Unauthorized`; var responseA1PolicyManagement401_description_break = responseA1PolicyManagement401_description.indexOf('\n'); if (responseA1PolicyManagement401_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description); + $("#examples-A1PolicyManagement-updatePolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-401" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-401" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-401-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-401-schema">Schema</a> </li> @@ -10147,9 +10124,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-401-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-401-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-401" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-401-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-401-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-401" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10188,33 +10165,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-401-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-401'); + $('#responses-A1PolicyManagement-updatePolicy-401-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-401'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-401-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-401-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-403"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-403" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-403"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-403" class="marked"></p> <script> var responseA1PolicyManagement403_description = `Forbidden`; var responseA1PolicyManagement403_description_break = responseA1PolicyManagement403_description.indexOf('\n'); if (responseA1PolicyManagement403_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description); + $("#examples-A1PolicyManagement-updatePolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-403" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-403" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-403-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-403-schema">Schema</a> </li> @@ -10223,9 +10200,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-403-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-403-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-403" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-403-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-403-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-403" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10264,33 +10241,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-403-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-403'); + $('#responses-A1PolicyManagement-updatePolicy-403-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-403'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-403-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-403-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-404"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-404" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-404"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-404" class="marked"></p> <script> var responseA1PolicyManagement404_description = `Not Found`; var responseA1PolicyManagement404_description_break = responseA1PolicyManagement404_description.indexOf('\n'); if (responseA1PolicyManagement404_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description); + $("#examples-A1PolicyManagement-updatePolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-404" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-404" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-404-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-404-schema">Schema</a> </li> @@ -10299,9 +10276,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-404-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-404-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-404" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-404-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-404-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-404" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10340,33 +10317,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-404-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-404'); + $('#responses-A1PolicyManagement-updatePolicy-404-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-404'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-404-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-404-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-406"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-406" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-406"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-406" class="marked"></p> <script> var responseA1PolicyManagement406_description = `Not Acceptable`; var responseA1PolicyManagement406_description_break = responseA1PolicyManagement406_description.indexOf('\n'); if (responseA1PolicyManagement406_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description); + $("#examples-A1PolicyManagement-updatePolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-406" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-406" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-406-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-406-schema">Schema</a> </li> @@ -10375,9 +10352,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-406-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-406-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-406" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-406-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-406-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-406" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10416,33 +10393,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-406-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-406'); + $('#responses-A1PolicyManagement-updatePolicy-406-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-406'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-406-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-406-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-411"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-411" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-411"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-411" class="marked"></p> <script> var responseA1PolicyManagement411_description = `Length Required`; var responseA1PolicyManagement411_description_break = responseA1PolicyManagement411_description.indexOf('\n'); if (responseA1PolicyManagement411_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description); + $("#examples-A1PolicyManagement-updatePolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description.substring(0, responseA1PolicyManagement411_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-411").html(responseA1PolicyManagement411_description.substring(responseA1PolicyManagement411_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description.substring(0, responseA1PolicyManagement411_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-411").html(responseA1PolicyManagement411_description.substring(responseA1PolicyManagement411_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-411" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-411" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-411-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-411-schema">Schema</a> </li> @@ -10451,9 +10428,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-411-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-411-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-411" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-411-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-411-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-411" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10492,33 +10469,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-411-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-411'); + $('#responses-A1PolicyManagement-updatePolicy-411-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-411'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-411-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-411-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-413"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-413" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-413"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-413" class="marked"></p> <script> var responseA1PolicyManagement413_description = `Payload Too Large`; var responseA1PolicyManagement413_description_break = responseA1PolicyManagement413_description.indexOf('\n'); if (responseA1PolicyManagement413_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description); + $("#examples-A1PolicyManagement-updatePolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description.substring(0, responseA1PolicyManagement413_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-413").html(responseA1PolicyManagement413_description.substring(responseA1PolicyManagement413_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description.substring(0, responseA1PolicyManagement413_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-413").html(responseA1PolicyManagement413_description.substring(responseA1PolicyManagement413_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-413" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-413" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-413-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-413-schema">Schema</a> </li> @@ -10527,9 +10504,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-413-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-413-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-413" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-413-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-413-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-413" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10568,33 +10545,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-413-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-413'); + $('#responses-A1PolicyManagement-updatePolicy-413-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-413'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-413-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-413-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-415"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-415" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-415"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-415" class="marked"></p> <script> var responseA1PolicyManagement415_description = `Unsupported Media Type`; var responseA1PolicyManagement415_description_break = responseA1PolicyManagement415_description.indexOf('\n'); if (responseA1PolicyManagement415_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description); + $("#examples-A1PolicyManagement-updatePolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description.substring(0, responseA1PolicyManagement415_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-415").html(responseA1PolicyManagement415_description.substring(responseA1PolicyManagement415_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description.substring(0, responseA1PolicyManagement415_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-415").html(responseA1PolicyManagement415_description.substring(responseA1PolicyManagement415_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-415" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-415" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-415-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-415-schema">Schema</a> </li> @@ -10603,9 +10580,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-415-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-415-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-415" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-415-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-415-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-415" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10644,33 +10621,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-415-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-415'); + $('#responses-A1PolicyManagement-updatePolicy-415-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-415'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-415-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-415-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-423"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-423" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-423"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-423" class="marked"></p> <script> var responseA1PolicyManagement423_description = `Locked - HTTP Status code which can be used when the state is Locked`; var responseA1PolicyManagement423_description_break = responseA1PolicyManagement423_description.indexOf('\n'); if (responseA1PolicyManagement423_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description); + $("#examples-A1PolicyManagement-updatePolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description.substring(0, responseA1PolicyManagement423_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-423").html(responseA1PolicyManagement423_description.substring(responseA1PolicyManagement423_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description.substring(0, responseA1PolicyManagement423_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-423").html(responseA1PolicyManagement423_description.substring(responseA1PolicyManagement423_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-423" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-423" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-423-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-423-schema">Schema</a> </li> @@ -10679,9 +10656,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-423-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-423-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-423" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-423-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-423-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-423" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10694,7 +10671,7 @@ $(document).ready(function() { "example" : { "status" : 423, "title" : "Locked", - "detail" : "State is Locked in the provided request." + "detail" : "State is Locked in the provided request." } } } @@ -10725,33 +10702,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-423-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-423'); + $('#responses-A1PolicyManagement-updatePolicy-423-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-423'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-423-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-423-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-429"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-429" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-429"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); + $("#examples-A1PolicyManagement-updatePolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-429" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-429" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-429-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-429-schema">Schema</a> </li> @@ -10760,13 +10737,13 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-429-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-429-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-429" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-429-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-429-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-429" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -10801,33 +10778,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-429-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-429'); + $('#responses-A1PolicyManagement-updatePolicy-429-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-429'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-429-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-429-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-500"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-500" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-500"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-500" class="marked"></p> <script> var responseA1PolicyManagement500_description = `Internal Server Error`; var responseA1PolicyManagement500_description_break = responseA1PolicyManagement500_description.indexOf('\n'); if (responseA1PolicyManagement500_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description); + $("#examples-A1PolicyManagement-updatePolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-500" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-500" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-500-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-500-schema">Schema</a> </li> @@ -10836,9 +10813,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-500-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-500-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-500" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-500-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-500-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-500" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10877,33 +10854,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-500-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-500'); + $('#responses-A1PolicyManagement-updatePolicy-500-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-500'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-500-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-500-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-502"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-502" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-502"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-502" class="marked"></p> <script> var responseA1PolicyManagement502_description = `Bad Gateway`; var responseA1PolicyManagement502_description_break = responseA1PolicyManagement502_description.indexOf('\n'); if (responseA1PolicyManagement502_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description); + $("#examples-A1PolicyManagement-updatePolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-502" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-502" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-502-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-502-schema">Schema</a> </li> @@ -10912,9 +10889,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-502-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-502-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-502" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-502-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-502-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-502" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10953,33 +10930,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-502-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-502'); + $('#responses-A1PolicyManagement-updatePolicy-502-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-502'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-502-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-502-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-503"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-503" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-503"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-503" class="marked"></p> <script> var responseA1PolicyManagement503_description = `Service Unavailable`; var responseA1PolicyManagement503_description_break = responseA1PolicyManagement503_description.indexOf('\n'); if (responseA1PolicyManagement503_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description); + $("#examples-A1PolicyManagement-updatePolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-503" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-503" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-503-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-503-schema">Schema</a> </li> @@ -10988,9 +10965,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-503-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-503-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-503" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-503-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-503-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-503" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -11029,14 +11006,14 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-503-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-503'); + $('#responses-A1PolicyManagement-updatePolicy-503-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-503'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-503-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-503-schema-data' type='hidden' value=''></input> </div> </div> </article> diff --git a/docs/offeredapis/openapitoolgen/offeredapis/pms-api/v3/index.html b/docs/offeredapis/openapitoolgen/offeredapis/pms-api/v3/index.html index 198ea9be..4327613c 100644 --- a/docs/offeredapis/openapitoolgen/offeredapis/pms-api/v3/index.html +++ b/docs/offeredapis/openapitoolgen/offeredapis/pms-api/v3/index.html @@ -2,7 +2,7 @@ <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> - <title>A1 policy management API</title> + <title>ONAP CCSDK - A1 Policy Management API</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta charset="UTF-8" /> @@ -844,26 +844,12 @@ ul.nav-tabs { <script> // Script section to load models into a JS Var var defs = {} - defs["AuthorizationResult"] = { - "required" : [ "result" ], - "type" : "object", - "properties" : { - "result" : { - "type" : "boolean", - "description" : "If true, the access is granted" - } - }, - "description" : "Result of authorization", - "example" : { - "result" : true - } -}; defs["ErrorInformation"] = { "type" : "object", "properties" : { "detail" : { "type" : "string", - "description" : " A human-readable explanation specific to this occurrence of the problem.", + "description" : "A human-readable explanation specific to this occurrence of the problem.", "example" : "Policy type not found" }, "title" : { @@ -873,67 +859,26 @@ ul.nav-tabs { }, "status" : { "type" : "integer", - "description" : "The HTTP status code generated by the origin server for this occurrence of the problem. ", + "description" : "The HTTP status code generated by the origin server for this occurrence of the problem.\n", "format" : "int32", "example" : 404 } }, "description" : "Problem as defined in https://tools.ietf.org/html/rfc7807" }; - defs["input"] = { - "required" : [ "accessType", "authToken", "policyTypeId" ], - "type" : "object", - "properties" : { - "accessType" : { - "type" : "string", - "description" : "Access type", - "enum" : [ "READ", "WRITE", "DELETE" ] - }, - "authToken" : { - "type" : "string", - "description" : "Authorization token" - }, - "policyTypeId" : { - "type" : "string", - "description" : "Policy type identifier" - } - }, - "description" : "input" -}; - defs["Link"] = { - "type" : "object", - "properties" : { - "templated" : { - "type" : "boolean" - }, - "href" : { - "type" : "string" - } - } -}; - defs["PolicyAuthorization"] = { - "required" : [ "input" ], - "type" : "object", - "properties" : { - "input" : { - "$ref" : "#/components/schemas/input" - } - }, - "description" : "Authorization request for A1 policy requests" -}; defs["PolicyInformation"] = { "required" : [ "nearRtRicId", "policyId" ], "type" : "object", "properties" : { "policyId" : { "type" : "string", - "description" : "Identity of the policy" + "description" : "Identity of the A1 Policy Instance" }, "nearRtRicId" : { "$ref" : "#/components/schemas/NearRtRicId" } }, - "description" : "Near-RT RIC identifiers where A1 policies exist and for each Near-RT RIC identifier the policy identifiers of those policies that exist in that Near-RT RIC" + "description" : "Information tuple for a single A1 Policy Instance. Contains the A1 Policy Instance ID, and the ID of the Near-RT RIC where the policy is created. \n" }; defs["PolicyObjectInformation"] = { "required" : [ "nearRtRicId", "policyObject", "policyTypeId" ], @@ -942,23 +887,23 @@ ul.nav-tabs { "nearRtRicId" : { "type" : "string", "description" : "Identity of the target Near-RT RIC", - "example" : "Near-RT-Ric-ID" + "example" : "Near-RT-Ric-ID1" }, "transient" : { "type" : "boolean", - "description" : "If true, the policy is deleted at RIC restart. If false, its value is maintained by this service until explicitly deleted. Default false.", + "description" : "If true, the policy is automatically deleted if the targeted Near-RT RIC restarts or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.\n", "nullable" : false, "default" : false }, "policyId" : { "type" : "string", - "description" : "The identity of the Policy. If this value is present, it must be unique; otherwise, a random UUID is generated.", - "example" : "POLICY-ID" + "description" : "An optional identity to be used for the new A1 Policy Instance. If this value is present, it must be unique. If not present the new A1 Policy Instance will be assigned a newly generated unique ID, and the new ID can be extracted from the 'Location' header in the response.\n", + "example" : "POLICY-ID1" }, "serviceId" : { "type" : "string", - "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered.", - "example" : "rApp ID", + "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered. If the service is registered, the newly created A1 Policy Instance will be subject to the same supervision rules as the the service's other policies.", + "example" : "rApp 1", "default" : "" }, "policyObject" : { @@ -966,25 +911,11 @@ ul.nav-tabs { }, "policyTypeId" : { "type" : "string", - "description" : "Identity of the policy type", - "example" : "ORAN_QOS_1.0.0(typeName_SemVersion)" + "description" : "A1 Policy Type identity", + "example" : "ORAN_QOS_1.0.0 '(typeName_SemVersion)'" } }, - "description" : "Information related to the creation of the policy" -}; - defs["PolicyStatusInfo"] = { - "type" : "object", - "properties" : { - "lastModified" : { - "type" : "string", - "description" : "timestamp, last modification time" - }, - "status" : { - "type" : "object", - "description" : "the Policy status" - } - }, - "description" : "Status for one A1-P Policy" + "description" : "Information to create an A1 Policy Instance" }; defs["PolicyTypeInformation"] = { "required" : [ "nearRtRicId", "policyTypeId" ], @@ -992,16 +923,16 @@ ul.nav-tabs { "properties" : { "policyTypeId" : { "type" : "string", - "description" : "Identity of the policy type" + "description" : "A1 Policy Type identifier" }, "nearRtRicId" : { "$ref" : "#/components/schemas/NearRtRicId" } }, - "description" : "Available policy types and for each policy type identifier the Near-RT RIC identifiers of those Near-RT RICs that support the related A1 policy type", + "description" : "A data tuple to indicate that an identified A1 Policy Type is supported at an identified Near-RT RIC.", "example" : { "policyTypeId" : "STD_QOS2_0.1.0", - "nearRtRicId" : "ricsim_g3_2" + "nearRtRicId" : "ric_g3_2" } }; defs["PolicyTypeObject"] = { @@ -1015,12 +946,12 @@ ul.nav-tabs { "$ref" : "#/components/schemas/StatusSchema" } }, - "description" : "policy type object as defined in A1TD", + "description" : "An A1 Policy Type, as defined in O-RAN Alliance A1TD", "example" : { "policySchema" : { "$schema" : "http://json-schema.org/draft-07/schema#", "title" : "STD_QOS_0_2_0", - "description" : "STD QOS policy type", + "description" : "Policy data schema for STD_QOS_0.2.0 A1 Policy Instances.", "type" : "object", "properties" : { "scope" : { @@ -1051,7 +982,7 @@ ul.nav-tabs { "statusSchema" : { "$schema" : "http://json-schema.org/draft-07/schema#", "title" : "STD_QOS_0.2.0", - "description" : "STD QOS policy type status", + "description" : "Status schema for STD_QOS_0.2.0 A1 Policy Instances.", "type" : "object", "properties" : { "enforceStatus" : { @@ -1071,26 +1002,26 @@ ul.nav-tabs { "properties" : { "type" : { "type" : "string", - "description" : "a URI reference according to IETF RFC 3986 that identifies the problem type" + "description" : "URI reference according to IETF RFC 3986 that identifies the problem type" }, "title" : { "type" : "string", - "description" : "human-readable summary of the problem type" + "description" : "Human-readable summary of the problem type" }, "status" : { "type" : "number", - "description" : "the HTTP status code" + "description" : "HTTP status code" }, "detail" : { "type" : "string", - "description" : "human-readable explanation " + "description" : "Human-readable explanation" }, "instance" : { "type" : "string", "description" : "URI reference that identifies the specific occurrence of the problem" } }, - "description" : "A problem detail to carry details in an HTTP response according to RFC 7807" + "description" : "Object to carry details about a problem in an HTTP response according to IETF RFC 7807" }; defs["RicInfo"] = { "type" : "object", @@ -1101,23 +1032,23 @@ ul.nav-tabs { }, "managedElementIds" : { "type" : "array", - "description" : "O1 identities for managed entities", + "description" : "Identities for managed entities", "items" : { "type" : "string", - "description" : "O1 identities for managed entities" + "description" : "Identity for a managed entity" } }, "state" : { "type" : "string", - "description" : "Represents the states for a Near-RT RIC", + "description" : "Represents the state of a Near-RT RIC", "enum" : [ "UNAVAILABLE", "AVAILABLE", "SYNCHRONIZING", "CONSISTENCY_CHECK" ] }, "policyTypeIds" : { "type" : "array", - "description" : "supported policy types", + "description" : "Supported A1 Policy Types", "items" : { "type" : "string", - "description" : "supported policy types" + "description" : "Supported A1 Policy Type ID" } } }, @@ -1128,13 +1059,13 @@ ul.nav-tabs { "properties" : { "rics" : { "type" : "array", - "description" : "List of Near-RT RIC information", + "description" : "List of Near-RT RIC information objects", "items" : { "$ref" : "#/components/schemas/RicInfo" } } }, - "description" : "List of Near-RT RIC information" + "description" : "Collection of Near-RT RIC information objects" }; defs["ServiceCallbackInfo"] = { "required" : [ "eventType", "ricId" ], @@ -1146,11 +1077,11 @@ ul.nav-tabs { }, "eventType" : { "type" : "string", - "description" : "values:\nAVAILABLE: the Near-RT RIC has become available for A1 Policy management", + "description" : "values: \n AVAILABLE: the Near-RT RIC has become available for A1 Policy management\n", "enum" : [ "AVAILABLE" ] } }, - "description" : "Information transferred as in Service callbacks (callback_url)" + "description" : "Information transferred in Service callbacks, \nif a callback URL was provided for a registered service\n" }; defs["ServiceRegistrationInfo"] = { "required" : [ "serviceId" ], @@ -1158,7 +1089,7 @@ ul.nav-tabs { "properties" : { "callbackUrl" : { "type" : "string", - "description" : "callback for notifying of Near-RT RIC state changes" + "description" : "Callback URL for notifying of Near-RT RIC state changes" }, "serviceId" : { "type" : "string", @@ -1166,18 +1097,18 @@ ul.nav-tabs { }, "keepAliveIntervalSeconds" : { "type" : "integer", - "description" : "keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.", + "description" : "Keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n", "format" : "int64" } }, - "description" : "Information for one service" + "description" : "Information for a service to be registered" }; defs["ServiceStatus"] = { "type" : "object", "properties" : { "callbackUrl" : { "type" : "string", - "description" : "callback for notifying of RIC synchronization" + "description" : "Callback URL for notifying of Near-RT RIC state changes" }, "serviceId" : { "type" : "string", @@ -1185,22 +1116,23 @@ ul.nav-tabs { }, "keepAliveIntervalSeconds" : { "type" : "integer", - "description" : "policy keep alive timeout", + "description" : "Keep alive interval (seconds) for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n", "format" : "int64" }, "timeSinceLastActivitySeconds" : { "type" : "integer", - "description" : "time since last invocation by the service", + "description" : "Time (seconds) since last recorded operation by the service", "format" : "int64" } - } + }, + "description" : "Information about a previously registered service" }; defs["ServiceStatusList"] = { "type" : "object", "properties" : { "serviceList" : { "type" : "array", - "description" : "List of service information", + "description" : "List of Service Status objects, describing a collection of registered services.", "items" : { "$ref" : "#/components/schemas/ServiceStatus" } @@ -1212,14 +1144,14 @@ ul.nav-tabs { "properties" : { "status" : { "type" : "string", - "description" : "status text" + "description" : "Status text" } } }; defs["NearRtRicId"] = { "type" : "string", - "description" : "Identity of the policy" + "description" : "Identity of the Near-RT RIC" }; var errs = {}; @@ -1246,12 +1178,12 @@ ul.nav-tabs { <li data-group="A1PolicyManagement" data-name="deletePolicy" class=""> <a href="#api-A1PolicyManagement-deletePolicy">deletePolicy</a> </li> - <li data-group="A1PolicyManagement" data-name="getAllPolicies" class=""> - <a href="#api-A1PolicyManagement-getAllPolicies">getAllPolicies</a> - </li> <li data-group="A1PolicyManagement" data-name="getPolicy" class=""> <a href="#api-A1PolicyManagement-getPolicy">getPolicy</a> </li> + <li data-group="A1PolicyManagement" data-name="getPolicyIds" class=""> + <a href="#api-A1PolicyManagement-getPolicyIds">getPolicyIds</a> + </li> <li data-group="A1PolicyManagement" data-name="getPolicyStatus" class=""> <a href="#api-A1PolicyManagement-getPolicyStatus">getPolicyStatus</a> </li> @@ -1261,8 +1193,8 @@ ul.nav-tabs { <li data-group="A1PolicyManagement" data-name="getPolicyTypes" class=""> <a href="#api-A1PolicyManagement-getPolicyTypes">getPolicyTypes</a> </li> - <li data-group="A1PolicyManagement" data-name="putPolicy" class=""> - <a href="#api-A1PolicyManagement-putPolicy">putPolicy</a> + <li data-group="A1PolicyManagement" data-name="updatePolicy" class=""> + <a href="#api-A1PolicyManagement-updatePolicy">updatePolicy</a> </li> <li class="nav-header" data-group="Configuration"><a href="#api-Configuration">API Methods - Configuration</a></li> <li data-group="Configuration" data-name="getConfiguration" class=""> @@ -1301,7 +1233,7 @@ ul.nav-tabs { <div id="content"> <div id="project"> <div class="pull-left"> - <h1>A1 policy management API</h1> + <h1>ONAP CCSDK - A1 Policy Management API</h1> </div> <div class="clearfix"></div> </div> @@ -1311,7 +1243,7 @@ ul.nav-tabs { <div class="app-desc">Version: 1.0.0</div> <hr> <div id="app-description" class="app-desc"> - <h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managemecnt of A1 policies. <br/>The main tasks of the service are:</p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 policies and the Near-RT RICs</li><li>Maintaining a view of supported Near-RT RIC policy types</li><li>Supervision of using services (R-APPs). When a service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2><h3>A1 Policy Management</h3><p>This is an API for management of A1 Policies.</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository</h3><p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted for one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the PMS component.</p><h3>Service Registry and Supervision</h3><p>API used for registering services that uses PMS. Each A1 policy is optionally owned by a service. PMS can supervise each registered service by a heart-beat supervision and will automatically remove policies for unavailable services. Note that a service does not need to be registered in order to create A1 Policies. This is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used for access control of A1 Policy access. If configured, an external authorization provider is requested to grant access to the A1 Policy type.</p> + <h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes the latest API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2> <p>Note: parts of this API are strongly based on extracts of the O-RAN Alliance R1 Interface specification for A1 Policy Management, and those parts should be considered '© O-RAN ALLIANCE - All rights reserved.'</p> <h3>A1 Policy Management</h3> <p>This is the latest API for managing A1 Policies. This API is partially compliant with O-RAN Alliance R1 Interface specifications for A1 Policy Management:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service.</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then its A1 Policies are removed. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p> </div> </div> @@ -1323,12 +1255,12 @@ ul.nav-tabs { <article id="api-A1PolicyManagement-createPolicy-0" data-group="User" data-name="createPolicy" data-version="0"> <div class="pull-left"> <h1>createPolicy</h1> - <p></p> + <p>Create an A1 Policy Instance (createPolicy)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">To create A1 policies</p> + <p class="marked">Create an A1 Policy Instance</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/policies</span></code></pre> @@ -1358,12 +1290,12 @@ ul.nav-tabs { -H "Content-Type: application/json" \ "https://example.com/a1-policy-management/v1/policies" \ -d '{ - "policyId" : "POLICY-ID", - "nearRtRicId" : "Near-RT-Ric-ID", + "policyId" : "POLICY-ID1", + "nearRtRicId" : "Near-RT-Ric-ID1", "transient" : false, "policyObject" : "{}", - "serviceId" : "rApp ID", - "policyTypeId" : "ORAN_QOS_1.0.0(typeName_SemVersion)" + "serviceId" : "rApp 1", + "policyTypeId" : "ORAN_QOS_1.0.0 '(typeName_SemVersion)'" }' </code></pre> </div> @@ -1441,6 +1373,7 @@ public class A1PolicyManagementApiExample { A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; PolicyObjectInformation *policyObjectInformation = ; // +// Create an A1 Policy Instance (createPolicy) [apiInstance createPolicyWith:policyObjectInformation completionHandler: ^(PolicyObjectInformation output, NSError* error) { if (output) { @@ -1454,10 +1387,10 @@ PolicyObjectInformation *policyObjectInformation = ; // </div> <div class="tab-pane" id="examples-A1PolicyManagement-createPolicy-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() var policyObjectInformation = ; // {PolicyObjectInformation} var callback = function(error, data, response) { @@ -1493,6 +1426,7 @@ namespace Example var policyObjectInformation = new PolicyObjectInformation(); // PolicyObjectInformation | try { + // Create an A1 Policy Instance (createPolicy) PolicyObjectInformation result = apiInstance.createPolicy(policyObjectInformation); Debug.WriteLine(result); } catch (Exception e) { @@ -1551,6 +1485,7 @@ api_instance = openapi_client.A1PolicyManagementApi() policyObjectInformation = # PolicyObjectInformation | try: + # Create an A1 Policy Instance (createPolicy) api_response = api_instance.create_policy(policyObjectInformation) pprint(api_response) except ApiException as e: @@ -1636,7 +1571,7 @@ $(document).ready(function() { <h3 id="examples-A1PolicyManagement-createPolicy-title-201"></h3> <p id="examples-A1PolicyManagement-createPolicy-description-201" class="marked"></p> <script> - var responseA1PolicyManagement201_description = `Success case 201 created`; + var responseA1PolicyManagement201_description = `Created`; var responseA1PolicyManagement201_description_break = responseA1PolicyManagement201_description.indexOf('\n'); if (responseA1PolicyManagement201_description_break == -1) { $("#examples-A1PolicyManagement-createPolicy-title-201").text("Status: 201 - " + responseA1PolicyManagement201_description); @@ -1667,16 +1602,25 @@ $(document).ready(function() { <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Success case 201 created", + "description" : "Created", "headers" : { "Location" : { - "description" : "Contains the URI of the newly created resource", + "description" : "Contains the URI of the newly created A1 Policy Instances. This URI includes the A1 Policy Instance ID for the newly created policy instance.\n", "required" : true, "style" : "simple", "explode" : false, "schema" : { "type" : "string" } + }, + "Content-Type" : { + "description" : "Media Type of the response", + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string", + "example" : "application/json" + } } }, "content" : { @@ -1734,7 +1678,14 @@ $(document).ready(function() { <td>Location</td> <td>String</td> <td></td> - <td>Contains the URI of the newly created resource</td> + <td>Contains the URI of the newly created A1 Policy Instances. This URI includes the A1 Policy Instance ID for the newly created policy instance. +</td> + </tr> + <tr> + <td>Content-Type</td> + <td>String</td> + <td></td> + <td>Media Type of the response</td> </tr> </table> </div> @@ -2463,7 +2414,7 @@ $(document).ready(function() { "example" : { "status" : 423, "title" : "Locked", - "detail" : "State is Locked in the provided request." + "detail" : "State is Locked in the provided request." } } } @@ -2507,7 +2458,7 @@ $(document).ready(function() { <h3 id="examples-A1PolicyManagement-createPolicy-title-429"></h3> <p id="examples-A1PolicyManagement-createPolicy-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { $("#examples-A1PolicyManagement-createPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); @@ -2535,7 +2486,7 @@ $(document).ready(function() { <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -2815,12 +2766,12 @@ $(document).ready(function() { <article id="api-A1PolicyManagement-deletePolicy-0" data-group="User" data-name="deletePolicy" data-version="0"> <div class="pull-left"> <h1>deletePolicy</h1> - <p>Delete a policy</p> + <p>Delete an A1 Policy instance (deletePolicy)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Deleting the policy using policyId.</p> + <p class="marked">Delete an existing A1 Policy instance using its policy ID.</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/policies/{policyId}</span></code></pre> @@ -2926,7 +2877,7 @@ A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; String *policyId = policyId_example; // (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) -// Delete a policy +// Delete an A1 Policy instance (deletePolicy) [apiInstance deletePolicyWith:policyId accept:accept completionHandler: ^(NSError* error) { @@ -2938,10 +2889,10 @@ String *accept = application/json; // Specifies the content type that the client </div> <div class="tab-pane" id="examples-A1PolicyManagement-deletePolicy-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() var policyId = policyId_example; // {String} var opts = { 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. @@ -2981,7 +2932,7 @@ namespace Example 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 { - // Delete a policy + // Delete an A1 Policy instance (deletePolicy) apiInstance.deletePolicy(policyId, accept); } catch (Exception e) { Debug.Print("Exception when calling A1PolicyManagementApi.deletePolicy: " + e.Message ); @@ -3040,7 +2991,7 @@ policyId = policyId_example # String | (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: - # Delete a policy + # Delete an A1 Policy instance (deletePolicy) api_instance.delete_policy(policyId, accept=accept) except ApiException as e: print("Exception when calling A1PolicyManagementApi->deletePolicy: %s\n" % e)</code></pre> @@ -3132,7 +3083,7 @@ Specifies the content type that the client expects to receive in response to the <h3 id="examples-A1PolicyManagement-deletePolicy-title-204"></h3> <p id="examples-A1PolicyManagement-deletePolicy-description-204" class="marked"></p> <script> - var responseA1PolicyManagement204_description = `The A1 policy was deleted`; + var responseA1PolicyManagement204_description = `No Content`; var responseA1PolicyManagement204_description_break = responseA1PolicyManagement204_description.indexOf('\n'); if (responseA1PolicyManagement204_description_break == -1) { $("#examples-A1PolicyManagement-deletePolicy-title-204").text("Status: 204 - " + responseA1PolicyManagement204_description); @@ -3155,7 +3106,7 @@ Specifies the content type that the client expects to receive in response to the <script> $(document).ready(function() { var schemaWrapper = { - "description" : "The A1 policy was deleted" + "description" : "No Content" }; var schema = findNode('schema',schemaWrapper).schema; if (!schema) { @@ -3689,7 +3640,7 @@ Specifies the content type that the client expects to receive in response to the "example" : { "status" : 423, "title" : "Locked", - "detail" : "State is Locked in the provided request." + "detail" : "State is Locked in the provided request." } } } @@ -3733,7 +3684,7 @@ Specifies the content type that the client expects to receive in response to the <h3 id="examples-A1PolicyManagement-deletePolicy-title-429"></h3> <p id="examples-A1PolicyManagement-deletePolicy-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { $("#examples-A1PolicyManagement-deletePolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); @@ -3761,7 +3712,7 @@ Specifies the content type that the client expects to receive in response to the <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -4037,46 +3988,46 @@ Specifies the content type that the client expects to receive in response to the </article> </div> <hr> - <div id="api-A1PolicyManagement-getAllPolicies"> - <article id="api-A1PolicyManagement-getAllPolicies-0" data-group="User" data-name="getAllPolicies" data-version="0"> + <div id="api-A1PolicyManagement-getPolicy"> + <article id="api-A1PolicyManagement-getPolicy-0" data-group="User" data-name="getPolicy" data-version="0"> <div class="pull-left"> - <h1>getAllPolicies</h1> - <p>Query policy identities</p> + <h1>getPolicy</h1> + <p>Get an A1 Policy's policy data (getPolicy)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Returns a list of A1 policies matching given search criteria. <br>If several query parameters are defined, the policies matching all conditions are returned.</p> + <p class="marked">Get an A1 Policy instance's policy data using its policy ID</p> <p></p> <br /> - <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies</span></code></pre> + <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies/{policyId}</span></code></pre> <p> <h3>Usage and SDK Samples</h3> </p> <ul class="nav nav-tabs nav-tabs-examples"> - <li class="active"><a href="#examples-A1PolicyManagement-getAllPolicies-0-curl">Curl</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-java">Java</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-dart">Dart</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-android">Android</a></li> - <!--<li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-groovy">Groovy</a></li>--> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-objc">Obj-C</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-javascript">JavaScript</a></li> - <!--<li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-angular">Angular</a></li>--> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-csharp">C#</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-php">PHP</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-perl">Perl</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-python">Python</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-rust">Rust</a></li> + <li class="active"><a href="#examples-A1PolicyManagement-getPolicy-0-curl">Curl</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-java">Java</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-dart">Dart</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-android">Android</a></li> + <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-groovy">Groovy</a></li>--> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-objc">Obj-C</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-javascript">JavaScript</a></li> + <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-angular">Angular</a></li>--> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-csharp">C#</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-php">PHP</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-perl">Perl</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-python">Python</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-rust">Rust</a></li> </ul> <div class="tab-content"> - <div class="tab-pane active" id="examples-A1PolicyManagement-getAllPolicies-0-curl"> + <div class="tab-pane active" id="examples-A1PolicyManagement-getPolicy-0-curl"> <pre class="prettyprint"><code class="language-bsh">curl -X GET \ -H "Accept: application/json,application/problem+json" \ - "https://example.com/a1-policy-management/v1/policies?policyTypeId=policyTypeId_example&nearRtRicId=nearRtRicId_example&serviceId=serviceId_example&typeName=typeName_example" + "https://example.com/a1-policy-management/v1/policies/{policyId}" </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-java"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-java"> <pre class="prettyprint"><code class="language-java">import org.openapitools.client.*; import org.openapitools.client.auth.*; import org.openapitools.client.model.*; @@ -4090,17 +4041,14 @@ public class A1PolicyManagementApiExample { // Create an instance of the API class A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); - String policyTypeId = policyTypeId_example; // String | Select policies of a given policy type identity. - String nearRtRicId = nearRtRicId_example; // String | Select policies of a given Near-RT RIC identity. - String serviceId = serviceId_example; // String | Select policies owned by a given service. - String typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>) + String policyId = policyId_example; // String | 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 { - array[PolicyInformation] result = apiInstance.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept); + Object result = apiInstance.getPolicy(policyId, accept); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling A1PolicyManagementApi#getAllPolicies"); + System.err.println("Exception when calling A1PolicyManagementApi#getPolicy"); e.printStackTrace(); } } @@ -4108,71 +4056,59 @@ public class A1PolicyManagementApiExample { </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-dart"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-dart"> <pre class="prettyprint"><code class="language-dart">import 'package:openapi/api.dart'; final api_instance = DefaultApi(); -final String policyTypeId = new String(); // String | Select policies of a given policy type identity. -final String nearRtRicId = new String(); // String | Select policies of a given Near-RT RIC identity. -final String serviceId = new String(); // String | Select policies owned by a given service. -final String typeName = new String(); // String | Select policies of types with the given type name (type identity has the format <typename_version>) +final String policyId = new String(); // String | 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.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept); + final result = await api_instance.getPolicy(policyId, accept); print(result); } catch (e) { - print('Exception when calling DefaultApi->getAllPolicies: $e\n'); + print('Exception when calling DefaultApi->getPolicy: $e\n'); } </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-android"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-android"> <pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.A1PolicyManagementApi; public class A1PolicyManagementApiExample { public static void main(String[] args) { A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); - String policyTypeId = policyTypeId_example; // String | Select policies of a given policy type identity. - String nearRtRicId = nearRtRicId_example; // String | Select policies of a given Near-RT RIC identity. - String serviceId = serviceId_example; // String | Select policies owned by a given service. - String typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>) + String policyId = policyId_example; // String | 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 { - array[PolicyInformation] result = apiInstance.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept); + Object result = apiInstance.getPolicy(policyId, accept); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling A1PolicyManagementApi#getAllPolicies"); + System.err.println("Exception when calling A1PolicyManagementApi#getPolicy"); e.printStackTrace(); } } }</code></pre> </div> <!-- - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-groovy"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-groovy"> <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre> </div> --> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-objc"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-objc"> <pre class="prettyprint"><code class="language-cpp"> // Create an instance of the API class A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; -String *policyTypeId = policyTypeId_example; // Select policies of a given policy type identity. (optional) (default to null) -String *nearRtRicId = nearRtRicId_example; // Select policies of a given Near-RT RIC identity. (optional) (default to null) -String *serviceId = serviceId_example; // Select policies owned by a given service. (optional) (default to null) -String *typeName = typeName_example; // Select policies of types with the given type name (type identity has the format <typename_version>) (optional) (default to null) +String *policyId = policyId_example; // (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) -// Query policy identities -[apiInstance getAllPoliciesWith:policyTypeId - nearRtRicId:nearRtRicId - serviceId:serviceId - typeName:typeName +// Get an A1 Policy's policy data (getPolicy) +[apiInstance getPolicyWith:policyId accept:accept - completionHandler: ^(array[PolicyInformation] output, NSError* error) { + completionHandler: ^(Object output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -4183,16 +4119,13 @@ String *accept = application/json; // Specifies the content type that the client </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-javascript"> + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() +var policyId = policyId_example; // {String} var opts = { - 'policyTypeId': policyTypeId_example, // {String} Select policies of a given policy type identity. - 'nearRtRicId': nearRtRicId_example, // {String} Select policies of a given Near-RT RIC identity. - 'serviceId': serviceId_example, // {String} Select policies owned by a given service. - 'typeName': typeName_example, // {String} Select policies of types with the given type name (type identity has the format <typename_version>) 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. }; @@ -4203,14 +4136,14 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -api.getAllPolicies(opts, callback); +api.getPolicy(policyId, opts, callback); </code></pre> </div> - <!--<div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-angular"> + <!--<div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-angular"> <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre> </div>--> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-csharp"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-csharp"> <pre class="prettyprint"><code class="language-cs">using System; using System.Diagnostics; using Org.OpenAPITools.Api; @@ -4219,25 +4152,22 @@ using Org.OpenAPITools.Model; namespace Example { - public class getAllPoliciesExample + public class getPolicyExample { public void main() { // Create an instance of the API class var apiInstance = new A1PolicyManagementApi(); - var policyTypeId = policyTypeId_example; // String | Select policies of a given policy type identity. (optional) (default to null) - var nearRtRicId = nearRtRicId_example; // String | Select policies of a given Near-RT RIC identity. (optional) (default to null) - var serviceId = serviceId_example; // String | Select policies owned by a given service. (optional) (default to null) - var typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>) (optional) (default to null) + var policyId = policyId_example; // String | (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 { - // Query policy identities - array[PolicyInformation] result = apiInstance.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept); + // Get an A1 Policy's policy data (getPolicy) + Object result = apiInstance.getPolicy(policyId, accept); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling A1PolicyManagementApi.getAllPolicies: " + e.Message ); + Debug.Print("Exception when calling A1PolicyManagementApi.getPolicy: " + e.Message ); } } } @@ -4245,50 +4175,44 @@ namespace Example </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-php"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-php"> <pre class="prettyprint"><code class="language-php"><?php require_once(__DIR__ . '/vendor/autoload.php'); // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi(); -$policyTypeId = policyTypeId_example; // String | Select policies of a given policy type identity. -$nearRtRicId = nearRtRicId_example; // String | Select policies of a given Near-RT RIC identity. -$serviceId = serviceId_example; // String | Select policies owned by a given service. -$typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>) +$policyId = policyId_example; // 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 { - $result = $api_instance->getAllPolicies($policyTypeId, $nearRtRicId, $serviceId, $typeName, $accept); + $result = $api_instance->getPolicy($policyId, $accept); print_r($result); } catch (Exception $e) { - echo 'Exception when calling A1PolicyManagementApi->getAllPolicies: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling A1PolicyManagementApi->getPolicy: ', $e->getMessage(), PHP_EOL; } ?></code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-perl"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-perl"> <pre class="prettyprint"><code class="language-perl">use Data::Dumper; use WWW::OPenAPIClient::Configuration; use WWW::OPenAPIClient::A1PolicyManagementApi; # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new(); -my $policyTypeId = policyTypeId_example; # String | Select policies of a given policy type identity. -my $nearRtRicId = nearRtRicId_example; # String | Select policies of a given Near-RT RIC identity. -my $serviceId = serviceId_example; # String | Select policies owned by a given service. -my $typeName = typeName_example; # String | Select policies of types with the given type name (type identity has the format <typename_version>) +my $policyId = policyId_example; # String | 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->getAllPolicies(policyTypeId => $policyTypeId, nearRtRicId => $nearRtRicId, serviceId => $serviceId, typeName => $typeName, accept => $accept); + my $result = $api_instance->getPolicy(policyId => $policyId, accept => $accept); print Dumper($result); }; if ($@) { - warn "Exception when calling A1PolicyManagementApi->getAllPolicies: $@\n"; + warn "Exception when calling A1PolicyManagementApi->getPolicy: $@\n"; }</code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-python"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-python"> <pre class="prettyprint"><code class="language-python">from __future__ import print_statement import time import openapi_client @@ -4297,32 +4221,26 @@ from pprint import pprint # Create an instance of the API class api_instance = openapi_client.A1PolicyManagementApi() -policyTypeId = policyTypeId_example # String | Select policies of a given policy type identity. (optional) (default to null) -nearRtRicId = nearRtRicId_example # String | Select policies of a given Near-RT RIC identity. (optional) (default to null) -serviceId = serviceId_example # String | Select policies owned by a given service. (optional) (default to null) -typeName = typeName_example # String | Select policies of types with the given type name (type identity has the format <typename_version>) (optional) (default to null) +policyId = policyId_example # String | (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: - # Query policy identities - api_response = api_instance.get_all_policies(policyTypeId=policyTypeId, nearRtRicId=nearRtRicId, serviceId=serviceId, typeName=typeName, accept=accept) + # Get an A1 Policy's policy data (getPolicy) + api_response = api_instance.get_policy(policyId, accept=accept) pprint(api_response) except ApiException as e: - print("Exception when calling A1PolicyManagementApi->getAllPolicies: %s\n" % e)</code></pre> + print("Exception when calling A1PolicyManagementApi->getPolicy: %s\n" % e)</code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-rust"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-rust"> <pre class="prettyprint"><code class="language-rust">extern crate A1PolicyManagementApi; pub fn main() { - let policyTypeId = policyTypeId_example; // String - let nearRtRicId = nearRtRicId_example; // String - let serviceId = serviceId_example; // String - let typeName = typeName_example; // String + let policyId = policyId_example; // String let accept = application/json; // String let mut context = A1PolicyManagementApi::Context::default(); - let result = client.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept, &context).wait(); + let result = client.getPolicy(policyId, accept, &context).wait(); println!("{:?}", result); } @@ -4337,28 +4255,27 @@ pub fn main() { <h2>Parameters</h2> - - <div class="methodsubtabletitle">Header parameters</div> + <div class="methodsubtabletitle">Path parameters</div> <table id="methodsubtable"> - <tr> - <th width="150px">Name</th> - <th>Description</th> - </tr> - <tr><td style="width:150px;">Accept</td> + <tr> + <th width="150px">Name</th> + <th>Description</th> + </tr> + <tr><td style="width:150px;">policyId*</td> <td> - <div id="d2e199_getAllPolicies_accept"> + <div id="d2e199_getPolicy_policyId"> <div class="json-schema-view"> <div class="primitive"> <span class="type"> String </span> - <div class="inner description marked"> -Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. - </div> </div> + <div class="inner required"> + Required + </div> </div> </div> </td> @@ -4366,59 +4283,17 @@ Specifies the content type that the client expects to receive in response to the </table> - - - <div class="methodsubtabletitle">Query parameters</div> + <div class="methodsubtabletitle">Header parameters</div> <table id="methodsubtable"> <tr> <th width="150px">Name</th> <th>Description</th> </tr> - <tr><td style="width:150px;">policyTypeId</td> -<td> - - - <div id="d2e199_getAllPolicies_policyTypeId"> - <div class="json-schema-view"> - <div class="primitive"> - <span class="type"> - String - </span> - - <div class="inner description marked"> -Select policies of a given policy type identity. - </div> - </div> - </div> - </div> -</td> -</tr> - - <tr><td style="width:150px;">nearRtRicId</td> -<td> - - - <div id="d2e199_getAllPolicies_nearRtRicId"> - <div class="json-schema-view"> - <div class="primitive"> - <span class="type"> - String - </span> - - <div class="inner description marked"> -Select policies of a given Near-RT RIC identity. - </div> - </div> - </div> - </div> -</td> -</tr> - - <tr><td style="width:150px;">serviceId</td> + <tr><td style="width:150px;">Accept</td> <td> - <div id="d2e199_getAllPolicies_serviceId"> + <div id="d2e199_getPolicy_accept"> <div class="json-schema-view"> <div class="primitive"> <span class="type"> @@ -4426,7 +4301,7 @@ Select policies of a given Near-RT RIC identity. </span> <div class="inner description marked"> -Select policies owned by a given service. +Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. </div> </div> </div> @@ -4434,46 +4309,29 @@ Select policies owned by a given service. </td> </tr> - <tr><td style="width:150px;">typeName</td> -<td> + </table> - <div id="d2e199_getAllPolicies_typeName"> - <div class="json-schema-view"> - <div class="primitive"> - <span class="type"> - String - </span> - - <div class="inner description marked"> -Select policies of types with the given type name (type identity has the format <typename_version>) - </div> - </div> - </div> - </div> -</td> -</tr> - </table> <h2>Responses</h2> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-200"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-200" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-200"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-200" class="marked"></p> <script> - var responseA1PolicyManagement200_description = `OK - Policy identities`; + var responseA1PolicyManagement200_description = `OK - Policy found`; var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n'); if (responseA1PolicyManagement200_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); + $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-200" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-200" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-200-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-200-schema">Schema</a> </li> @@ -4482,19 +4340,21 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-200-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-200-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-200" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-200-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-200-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-200" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { - "description" : "OK - Policy identities", + "description" : "OK - Policy found", "content" : { "application/json" : { "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/PolicyInformation" + "$ref" : "#/components/schemas/PolicyObject" + }, + "examples" : { + "policyObject" : { + "$ref" : "#/components/examples/PolicyObject" } } } @@ -4526,33 +4386,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-200-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-200'); + $('#responses-A1PolicyManagement-getPolicy-200-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-200'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-200-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-200-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-400"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-400" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-400"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-400" class="marked"></p> <script> var responseA1PolicyManagement400_description = `Bad Request`; var responseA1PolicyManagement400_description_break = responseA1PolicyManagement400_description.indexOf('\n'); if (responseA1PolicyManagement400_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description); + $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-400" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-400" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-400-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-400-schema">Schema</a> </li> @@ -4561,9 +4421,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-400-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-400-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-400" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-400-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-400-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-400" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -4602,33 +4462,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-400-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-400'); + $('#responses-A1PolicyManagement-getPolicy-400-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-400'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-400-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-400-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-401"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-401" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-401"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-401" class="marked"></p> <script> var responseA1PolicyManagement401_description = `Unauthorized`; var responseA1PolicyManagement401_description_break = responseA1PolicyManagement401_description.indexOf('\n'); if (responseA1PolicyManagement401_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description); + $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-401" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-401" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-401-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-401-schema">Schema</a> </li> @@ -4637,9 +4497,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-401-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-401-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-401" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-401-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-401-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-401" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -4678,33 +4538,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-401-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-401'); + $('#responses-A1PolicyManagement-getPolicy-401-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-401'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-401-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-401-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-403"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-403" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-403"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-403" class="marked"></p> <script> var responseA1PolicyManagement403_description = `Forbidden`; var responseA1PolicyManagement403_description_break = responseA1PolicyManagement403_description.indexOf('\n'); if (responseA1PolicyManagement403_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description); + $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-403" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-403" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-403-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-403-schema">Schema</a> </li> @@ -4713,9 +4573,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-403-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-403-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-403" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-403-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-403-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-403" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -4754,33 +4614,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-403-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-403'); + $('#responses-A1PolicyManagement-getPolicy-403-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-403'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-403-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-403-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-404"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-404" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-404"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-404" class="marked"></p> <script> var responseA1PolicyManagement404_description = `Not Found`; var responseA1PolicyManagement404_description_break = responseA1PolicyManagement404_description.indexOf('\n'); if (responseA1PolicyManagement404_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description); + $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-404" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-404" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-404-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-404-schema">Schema</a> </li> @@ -4789,9 +4649,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-404-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-404-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-404" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-404-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-404-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-404" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -4830,33 +4690,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-404-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-404'); + $('#responses-A1PolicyManagement-getPolicy-404-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-404'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-404-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-404-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-406"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-406" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-406"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-406" class="marked"></p> <script> var responseA1PolicyManagement406_description = `Not Acceptable`; var responseA1PolicyManagement406_description_break = responseA1PolicyManagement406_description.indexOf('\n'); if (responseA1PolicyManagement406_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description); + $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-406" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-406" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-406-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-406-schema">Schema</a> </li> @@ -4865,9 +4725,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-406-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-406-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-406" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-406-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-406-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-406" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -4906,33 +4766,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-406-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-406'); + $('#responses-A1PolicyManagement-getPolicy-406-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-406'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-406-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-406-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-429"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-429" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-429"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); + $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-429" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-429" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-429-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-429-schema">Schema</a> </li> @@ -4941,13 +4801,13 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-429-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-429-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-429" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-429-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-429-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-429" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -4982,33 +4842,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-429-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-429'); + $('#responses-A1PolicyManagement-getPolicy-429-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-429'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-429-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-429-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-500"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-500" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-500"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-500" class="marked"></p> <script> var responseA1PolicyManagement500_description = `Internal Server Error`; var responseA1PolicyManagement500_description_break = responseA1PolicyManagement500_description.indexOf('\n'); if (responseA1PolicyManagement500_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description); + $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-500" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-500" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-500-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-500-schema">Schema</a> </li> @@ -5017,9 +4877,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-500-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-500-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-500" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-500-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-500-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-500" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5058,33 +4918,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-500-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-500'); + $('#responses-A1PolicyManagement-getPolicy-500-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-500'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-500-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-500-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-502"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-502" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-502"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-502" class="marked"></p> <script> var responseA1PolicyManagement502_description = `Bad Gateway`; var responseA1PolicyManagement502_description_break = responseA1PolicyManagement502_description.indexOf('\n'); if (responseA1PolicyManagement502_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description); + $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-502" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-502" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-502-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-502-schema">Schema</a> </li> @@ -5093,9 +4953,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-502-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-502-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-502" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-502-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-502-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-502" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5134,33 +4994,33 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-502-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-502'); + $('#responses-A1PolicyManagement-getPolicy-502-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-502'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-502-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-502-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getAllPolicies-title-503"></h3> - <p id="examples-A1PolicyManagement-getAllPolicies-description-503" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicy-title-503"></h3> + <p id="examples-A1PolicyManagement-getPolicy-description-503" class="marked"></p> <script> var responseA1PolicyManagement503_description = `Service Unavailable`; var responseA1PolicyManagement503_description_break = responseA1PolicyManagement503_description.indexOf('\n'); if (responseA1PolicyManagement503_description_break == -1) { - $("#examples-A1PolicyManagement-getAllPolicies-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description); + $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description); } else { - $("#examples-A1PolicyManagement-getAllPolicies-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break)); - $("#examples-A1PolicyManagement-getAllPolicies-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break)); + $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break)); + $("#examples-A1PolicyManagement-getPolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getAllPolicies-503" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicy-503" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-503-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-503-schema">Schema</a> </li> @@ -5169,9 +5029,9 @@ Select policies of types with the given type name (type identity has the format </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-503-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-503-schema"> - <div id="responses-A1PolicyManagement-getAllPolicies-schema-503" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-503-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-503-schema"> + <div id="responses-A1PolicyManagement-getPolicy-schema-503" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5210,59 +5070,60 @@ Select policies of types with the given type name (type identity has the format } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getAllPolicies-503-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-503'); + $('#responses-A1PolicyManagement-getPolicy-503-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicy-schema-503'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getAllPolicies-503-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicy-503-schema-data' type='hidden' value=''></input> </div> </div> </article> </div> <hr> - <div id="api-A1PolicyManagement-getPolicy"> - <article id="api-A1PolicyManagement-getPolicy-0" data-group="User" data-name="getPolicy" data-version="0"> + <div id="api-A1PolicyManagement-getPolicyIds"> + <article id="api-A1PolicyManagement-getPolicyIds-0" data-group="User" data-name="getPolicyIds" data-version="0"> <div class="pull-left"> - <h1>getPolicy</h1> - <p></p> + <h1>getPolicyIds</h1> + <p>Query for A1 Policy instances (getPolicyIds)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Returns a policy</p> + <p class="marked">Returns a collection of A1 Policy Instance IDs for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned. +</p> <p></p> <br /> - <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies/{policyId}</span></code></pre> + <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies</span></code></pre> <p> <h3>Usage and SDK Samples</h3> </p> <ul class="nav nav-tabs nav-tabs-examples"> - <li class="active"><a href="#examples-A1PolicyManagement-getPolicy-0-curl">Curl</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-java">Java</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-dart">Dart</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-android">Android</a></li> - <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-groovy">Groovy</a></li>--> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-objc">Obj-C</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-javascript">JavaScript</a></li> - <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-angular">Angular</a></li>--> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-csharp">C#</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-php">PHP</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-perl">Perl</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-python">Python</a></li> - <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-rust">Rust</a></li> + <li class="active"><a href="#examples-A1PolicyManagement-getPolicyIds-0-curl">Curl</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-java">Java</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-dart">Dart</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-android">Android</a></li> + <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-groovy">Groovy</a></li>--> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-objc">Obj-C</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-javascript">JavaScript</a></li> + <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-angular">Angular</a></li>--> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-csharp">C#</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-php">PHP</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-perl">Perl</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-python">Python</a></li> + <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-rust">Rust</a></li> </ul> <div class="tab-content"> - <div class="tab-pane active" id="examples-A1PolicyManagement-getPolicy-0-curl"> + <div class="tab-pane active" id="examples-A1PolicyManagement-getPolicyIds-0-curl"> <pre class="prettyprint"><code class="language-bsh">curl -X GET \ -H "Accept: application/json,application/problem+json" \ - "https://example.com/a1-policy-management/v1/policies/{policyId}" + "https://example.com/a1-policy-management/v1/policies?policyTypeId=policyTypeId_example&nearRtRicId=nearRtRicId_example&serviceId=serviceId_example&typeName=typeName_example" </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-java"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-java"> <pre class="prettyprint"><code class="language-java">import org.openapitools.client.*; import org.openapitools.client.auth.*; import org.openapitools.client.model.*; @@ -5276,14 +5137,17 @@ public class A1PolicyManagementApiExample { // Create an instance of the API class A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); - String policyId = policyId_example; // String | + String policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID. + String nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity. + String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). + String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). 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 { - Object result = apiInstance.getPolicy(policyId, accept); + array[PolicyInformation] result = apiInstance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling A1PolicyManagementApi#getPolicy"); + System.err.println("Exception when calling A1PolicyManagementApi#getPolicyIds"); e.printStackTrace(); } } @@ -5291,58 +5155,71 @@ public class A1PolicyManagementApiExample { </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-dart"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-dart"> <pre class="prettyprint"><code class="language-dart">import 'package:openapi/api.dart'; final api_instance = DefaultApi(); -final String policyId = new String(); // String | +final String policyTypeId = new String(); // String | Select policies with a given A1 Policy Type ID. +final String nearRtRicId = new String(); // String | Select policies for a given Near-RT RIC identity. +final String serviceId = new String(); // String | Select policies owned by a given service (registered or unregistered). +final String typeName = new String(); // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). 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.getPolicy(policyId, accept); + final result = await api_instance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept); print(result); } catch (e) { - print('Exception when calling DefaultApi->getPolicy: $e\n'); + print('Exception when calling DefaultApi->getPolicyIds: $e\n'); } </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-android"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-android"> <pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.A1PolicyManagementApi; public class A1PolicyManagementApiExample { public static void main(String[] args) { A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); - String policyId = policyId_example; // String | + String policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID. + String nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity. + String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). + String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). 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 { - Object result = apiInstance.getPolicy(policyId, accept); + array[PolicyInformation] result = apiInstance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling A1PolicyManagementApi#getPolicy"); + System.err.println("Exception when calling A1PolicyManagementApi#getPolicyIds"); e.printStackTrace(); } } }</code></pre> </div> <!-- - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-groovy"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-groovy"> <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre> </div> --> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-objc"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-objc"> <pre class="prettyprint"><code class="language-cpp"> // Create an instance of the API class A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; -String *policyId = policyId_example; // (default to null) +String *policyTypeId = policyTypeId_example; // Select policies with a given A1 Policy Type ID. (optional) (default to null) +String *nearRtRicId = nearRtRicId_example; // Select policies for a given Near-RT RIC identity. (optional) (default to null) +String *serviceId = serviceId_example; // Select policies owned by a given service (registered or unregistered). (optional) (default to null) +String *typeName = typeName_example; // Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (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) -[apiInstance getPolicyWith:policyId +// Query for A1 Policy instances (getPolicyIds) +[apiInstance getPolicyIdsWith:policyTypeId + nearRtRicId:nearRtRicId + serviceId:serviceId + typeName:typeName accept:accept - completionHandler: ^(Object output, NSError* error) { + completionHandler: ^(array[PolicyInformation] output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -5353,13 +5230,16 @@ String *accept = application/json; // Specifies the content type that the client </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-javascript"> + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() -var policyId = policyId_example; // {String} +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() var opts = { + 'policyTypeId': policyTypeId_example, // {String} Select policies with a given A1 Policy Type ID. + 'nearRtRicId': nearRtRicId_example, // {String} Select policies for a given Near-RT RIC identity. + 'serviceId': serviceId_example, // {String} Select policies owned by a given service (registered or unregistered). + 'typeName': typeName_example, // {String} Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. }; @@ -5370,14 +5250,14 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -api.getPolicy(policyId, opts, callback); +api.getPolicyIds(opts, callback); </code></pre> </div> - <!--<div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-angular"> + <!--<div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-angular"> <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre> </div>--> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-csharp"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-csharp"> <pre class="prettyprint"><code class="language-cs">using System; using System.Diagnostics; using Org.OpenAPITools.Api; @@ -5386,21 +5266,25 @@ using Org.OpenAPITools.Model; namespace Example { - public class getPolicyExample + public class getPolicyIdsExample { public void main() { // Create an instance of the API class var apiInstance = new A1PolicyManagementApi(); - var policyId = policyId_example; // String | (default to null) + var policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID. (optional) (default to null) + var nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity. (optional) (default to null) + var serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). (optional) (default to null) + var typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (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 { - Object result = apiInstance.getPolicy(policyId, accept); + // Query for A1 Policy instances (getPolicyIds) + array[PolicyInformation] result = apiInstance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling A1PolicyManagementApi.getPolicy: " + e.Message ); + Debug.Print("Exception when calling A1PolicyManagementApi.getPolicyIds: " + e.Message ); } } } @@ -5408,44 +5292,50 @@ namespace Example </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-php"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-php"> <pre class="prettyprint"><code class="language-php"><?php require_once(__DIR__ . '/vendor/autoload.php'); // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi(); -$policyId = policyId_example; // String | +$policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID. +$nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity. +$serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). +$typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). $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->getPolicy($policyId, $accept); + $result = $api_instance->getPolicyIds($policyTypeId, $nearRtRicId, $serviceId, $typeName, $accept); print_r($result); } catch (Exception $e) { - echo 'Exception when calling A1PolicyManagementApi->getPolicy: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling A1PolicyManagementApi->getPolicyIds: ', $e->getMessage(), PHP_EOL; } ?></code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-perl"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-perl"> <pre class="prettyprint"><code class="language-perl">use Data::Dumper; use WWW::OPenAPIClient::Configuration; use WWW::OPenAPIClient::A1PolicyManagementApi; # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new(); -my $policyId = policyId_example; # String | +my $policyTypeId = policyTypeId_example; # String | Select policies with a given A1 Policy Type ID. +my $nearRtRicId = nearRtRicId_example; # String | Select policies for a given Near-RT RIC identity. +my $serviceId = serviceId_example; # String | Select policies owned by a given service (registered or unregistered). +my $typeName = typeName_example; # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). 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->getPolicy(policyId => $policyId, accept => $accept); + my $result = $api_instance->getPolicyIds(policyTypeId => $policyTypeId, nearRtRicId => $nearRtRicId, serviceId => $serviceId, typeName => $typeName, accept => $accept); print Dumper($result); }; if ($@) { - warn "Exception when calling A1PolicyManagementApi->getPolicy: $@\n"; + warn "Exception when calling A1PolicyManagementApi->getPolicyIds: $@\n"; }</code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-python"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-python"> <pre class="prettyprint"><code class="language-python">from __future__ import print_statement import time import openapi_client @@ -5454,25 +5344,32 @@ from pprint import pprint # Create an instance of the API class api_instance = openapi_client.A1PolicyManagementApi() -policyId = policyId_example # String | (default to null) +policyTypeId = policyTypeId_example # String | Select policies with a given A1 Policy Type ID. (optional) (default to null) +nearRtRicId = nearRtRicId_example # String | Select policies for a given Near-RT RIC identity. (optional) (default to null) +serviceId = serviceId_example # String | Select policies owned by a given service (registered or unregistered). (optional) (default to null) +typeName = typeName_example # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (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: - api_response = api_instance.get_policy(policyId, accept=accept) + # Query for A1 Policy instances (getPolicyIds) + api_response = api_instance.get_policy_ids(policyTypeId=policyTypeId, nearRtRicId=nearRtRicId, serviceId=serviceId, typeName=typeName, accept=accept) pprint(api_response) except ApiException as e: - print("Exception when calling A1PolicyManagementApi->getPolicy: %s\n" % e)</code></pre> + print("Exception when calling A1PolicyManagementApi->getPolicyIds: %s\n" % e)</code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-rust"> + <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-rust"> <pre class="prettyprint"><code class="language-rust">extern crate A1PolicyManagementApi; pub fn main() { - let policyId = policyId_example; // String + let policyTypeId = policyTypeId_example; // String + let nearRtRicId = nearRtRicId_example; // String + let serviceId = serviceId_example; // String + let typeName = typeName_example; // String let accept = application/json; // String let mut context = A1PolicyManagementApi::Context::default(); - let result = client.getPolicy(policyId, accept, &context).wait(); + let result = client.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept, &context).wait(); println!("{:?}", result); } @@ -5487,27 +5384,28 @@ pub fn main() { <h2>Parameters</h2> - <div class="methodsubtabletitle">Path parameters</div> + + <div class="methodsubtabletitle">Header parameters</div> <table id="methodsubtable"> - <tr> - <th width="150px">Name</th> - <th>Description</th> - </tr> - <tr><td style="width:150px;">policyId*</td> + <tr> + <th width="150px">Name</th> + <th>Description</th> + </tr> + <tr><td style="width:150px;">Accept</td> <td> - <div id="d2e199_getPolicy_policyId"> + <div id="d2e199_getPolicyIds_accept"> <div class="json-schema-view"> <div class="primitive"> <span class="type"> String </span> + <div class="inner description marked"> +Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. + </div> </div> - <div class="inner required"> - Required - </div> </div> </div> </td> @@ -5515,17 +5413,19 @@ pub fn main() { </table> - <div class="methodsubtabletitle">Header parameters</div> + + + <div class="methodsubtabletitle">Query parameters</div> <table id="methodsubtable"> <tr> <th width="150px">Name</th> <th>Description</th> </tr> - <tr><td style="width:150px;">Accept</td> + <tr><td style="width:150px;">policyTypeId</td> <td> - <div id="d2e199_getPolicy_accept"> + <div id="d2e199_getPolicyIds_policyTypeId"> <div class="json-schema-view"> <div class="primitive"> <span class="type"> @@ -5533,7 +5433,7 @@ pub fn main() { </span> <div class="inner description marked"> -Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. +Select policies with a given A1 Policy Type ID. </div> </div> </div> @@ -5541,29 +5441,86 @@ Specifies the content type that the client expects to receive in response to the </td> </tr> - </table> + <tr><td style="width:150px;">nearRtRicId</td> +<td> + <div id="d2e199_getPolicyIds_nearRtRicId"> + <div class="json-schema-view"> + <div class="primitive"> + <span class="type"> + String + </span> + <div class="inner description marked"> +Select policies for a given Near-RT RIC identity. + </div> + </div> + </div> + </div> +</td> +</tr> + + <tr><td style="width:150px;">serviceId</td> +<td> + + + <div id="d2e199_getPolicyIds_serviceId"> + <div class="json-schema-view"> + <div class="primitive"> + <span class="type"> + String + </span> + + <div class="inner description marked"> +Select policies owned by a given service (registered or unregistered). + </div> + </div> + </div> + </div> +</td> +</tr> + + <tr><td style="width:150px;">typeName</td> +<td> + + + <div id="d2e199_getPolicyIds_typeName"> + <div class="json-schema-view"> + <div class="primitive"> + <span class="type"> + String + </span> + + <div class="inner description marked"> +Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). + </div> + </div> + </div> + </div> +</td> +</tr> + + </table> <h2>Responses</h2> - <h3 id="examples-A1PolicyManagement-getPolicy-title-200"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-200" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-200"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-200" class="marked"></p> <script> - var responseA1PolicyManagement200_description = `OK - Policy found`; + var responseA1PolicyManagement200_description = `OK - Policy identities`; var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n'); if (responseA1PolicyManagement200_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-200" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-200" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-200-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-200-schema">Schema</a> </li> @@ -5572,21 +5529,19 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-200-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-200-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-200" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-200-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-200-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-200" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { - "description" : "OK - Policy found", + "description" : "OK - Policy identities", "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/PolicyObject" - }, - "examples" : { - "policyObject" : { - "$ref" : "#/components/examples/PolicyObject" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/PolicyInformation" } } } @@ -5618,33 +5573,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-200-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-200'); + $('#responses-A1PolicyManagement-getPolicyIds-200-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-200'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-200-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-200-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-400"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-400" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-400"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-400" class="marked"></p> <script> var responseA1PolicyManagement400_description = `Bad Request`; var responseA1PolicyManagement400_description_break = responseA1PolicyManagement400_description.indexOf('\n'); if (responseA1PolicyManagement400_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-400" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-400" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-400-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-400-schema">Schema</a> </li> @@ -5653,9 +5608,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-400-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-400-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-400" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-400-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-400-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-400" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5694,33 +5649,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-400-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-400'); + $('#responses-A1PolicyManagement-getPolicyIds-400-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-400'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-400-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-400-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-401"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-401" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-401"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-401" class="marked"></p> <script> var responseA1PolicyManagement401_description = `Unauthorized`; var responseA1PolicyManagement401_description_break = responseA1PolicyManagement401_description.indexOf('\n'); if (responseA1PolicyManagement401_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-401" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-401" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-401-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-401-schema">Schema</a> </li> @@ -5729,9 +5684,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-401-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-401-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-401" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-401-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-401-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-401" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5770,33 +5725,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-401-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-401'); + $('#responses-A1PolicyManagement-getPolicyIds-401-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-401'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-401-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-401-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-403"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-403" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-403"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-403" class="marked"></p> <script> var responseA1PolicyManagement403_description = `Forbidden`; var responseA1PolicyManagement403_description_break = responseA1PolicyManagement403_description.indexOf('\n'); if (responseA1PolicyManagement403_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-403" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-403" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-403-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-403-schema">Schema</a> </li> @@ -5805,9 +5760,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-403-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-403-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-403" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-403-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-403-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-403" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5846,33 +5801,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-403-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-403'); + $('#responses-A1PolicyManagement-getPolicyIds-403-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-403'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-403-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-403-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-404"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-404" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-404"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-404" class="marked"></p> <script> var responseA1PolicyManagement404_description = `Not Found`; var responseA1PolicyManagement404_description_break = responseA1PolicyManagement404_description.indexOf('\n'); if (responseA1PolicyManagement404_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-404" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-404" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-404-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-404-schema">Schema</a> </li> @@ -5881,9 +5836,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-404-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-404-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-404" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-404-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-404-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-404" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5922,33 +5877,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-404-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-404'); + $('#responses-A1PolicyManagement-getPolicyIds-404-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-404'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-404-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-404-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-406"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-406" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-406"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-406" class="marked"></p> <script> var responseA1PolicyManagement406_description = `Not Acceptable`; var responseA1PolicyManagement406_description_break = responseA1PolicyManagement406_description.indexOf('\n'); if (responseA1PolicyManagement406_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-406" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-406" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-406-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-406-schema">Schema</a> </li> @@ -5957,9 +5912,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-406-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-406-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-406" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-406-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-406-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-406" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -5998,33 +5953,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-406-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-406'); + $('#responses-A1PolicyManagement-getPolicyIds-406-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-406'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-406-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-406-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-429"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-429" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-429"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-429" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-429" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-429-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-429-schema">Schema</a> </li> @@ -6033,13 +5988,13 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-429-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-429-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-429" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-429-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-429-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-429" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -6074,33 +6029,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-429-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-429'); + $('#responses-A1PolicyManagement-getPolicyIds-429-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-429'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-429-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-429-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-500"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-500" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-500"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-500" class="marked"></p> <script> var responseA1PolicyManagement500_description = `Internal Server Error`; var responseA1PolicyManagement500_description_break = responseA1PolicyManagement500_description.indexOf('\n'); if (responseA1PolicyManagement500_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-500" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-500" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-500-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-500-schema">Schema</a> </li> @@ -6109,9 +6064,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-500-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-500-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-500" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-500-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-500-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-500" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -6150,33 +6105,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-500-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-500'); + $('#responses-A1PolicyManagement-getPolicyIds-500-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-500'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-500-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-500-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-502"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-502" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-502"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-502" class="marked"></p> <script> var responseA1PolicyManagement502_description = `Bad Gateway`; var responseA1PolicyManagement502_description_break = responseA1PolicyManagement502_description.indexOf('\n'); if (responseA1PolicyManagement502_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-502" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-502" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-502-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-502-schema">Schema</a> </li> @@ -6185,9 +6140,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-502-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-502-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-502" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-502-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-502-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-502" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -6226,33 +6181,33 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-502-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-502'); + $('#responses-A1PolicyManagement-getPolicyIds-502-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-502'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-502-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-502-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-getPolicy-title-503"></h3> - <p id="examples-A1PolicyManagement-getPolicy-description-503" class="marked"></p> + <h3 id="examples-A1PolicyManagement-getPolicyIds-title-503"></h3> + <p id="examples-A1PolicyManagement-getPolicyIds-description-503" class="marked"></p> <script> var responseA1PolicyManagement503_description = `Service Unavailable`; var responseA1PolicyManagement503_description_break = responseA1PolicyManagement503_description.indexOf('\n'); if (responseA1PolicyManagement503_description_break == -1) { - $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description); + $("#examples-A1PolicyManagement-getPolicyIds-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description); } else { - $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break)); - $("#examples-A1PolicyManagement-getPolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break)); + $("#examples-A1PolicyManagement-getPolicyIds-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-getPolicy-503" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-getPolicyIds-503" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-503-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-503-schema">Schema</a> </li> @@ -6261,9 +6216,9 @@ Specifies the content type that the client expects to receive in response to the </ul> - <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-503-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-503-schema"> - <div id="responses-A1PolicyManagement-getPolicy-schema-503" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-503-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-503-schema"> + <div id="responses-A1PolicyManagement-getPolicyIds-schema-503" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -6302,14 +6257,14 @@ Specifies the content type that the client expects to receive in response to the } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-getPolicy-503-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-getPolicy-schema-503'); + $('#responses-A1PolicyManagement-getPolicyIds-503-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-503'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-getPolicy-503-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-getPolicyIds-503-schema-data' type='hidden' value=''></input> </div> </div> </article> @@ -6319,12 +6274,12 @@ Specifies the content type that the client expects to receive in response to the <article id="api-A1PolicyManagement-getPolicyStatus-0" data-group="User" data-name="getPolicyStatus" data-version="0"> <div class="pull-left"> <h1>getPolicyStatus</h1> - <p></p> + <p>Get an A1 Policy Instance's status (getPolicyStatus)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Query a policy status</p> + <p class="marked">Retrieve the status information for an A1 Policy Instance using its policy ID.</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies/{policyId}/status</span></code></pre> @@ -6432,6 +6387,7 @@ A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; String *policyId = policyId_example; // (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) +// Get an A1 Policy Instance's status (getPolicyStatus) [apiInstance getPolicyStatusWith:policyId accept:accept completionHandler: ^(Object output, NSError* error) { @@ -6446,10 +6402,10 @@ String *accept = application/json; // Specifies the content type that the client </div> <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() var policyId = policyId_example; // {String} var opts = { 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. @@ -6489,6 +6445,7 @@ namespace Example 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 { + // Get an A1 Policy Instance's status (getPolicyStatus) Object result = apiInstance.getPolicyStatus(policyId, accept); Debug.WriteLine(result); } catch (Exception e) { @@ -6550,6 +6507,7 @@ policyId = policyId_example # String | (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: + # Get an A1 Policy Instance's status (getPolicyStatus) api_response = api_instance.get_policy_status(policyId, accept=accept) pprint(api_response) except ApiException as e: @@ -7098,7 +7056,7 @@ Specifies the content type that the client expects to receive in response to the <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-429"></h3> <p id="examples-A1PolicyManagement-getPolicyStatus-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { $("#examples-A1PolicyManagement-getPolicyStatus-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); @@ -7126,7 +7084,7 @@ Specifies the content type that the client expects to receive in response to the <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -7406,12 +7364,12 @@ Specifies the content type that the client expects to receive in response to the <article id="api-A1PolicyManagement-getPolicyTypeDefinition-0" data-group="User" data-name="getPolicyTypeDefinition" data-version="0"> <div class="pull-left"> <h1>getPolicyTypeDefinition</h1> - <p></p> + <p>Get an A1 Policy Type definition (getPolicyTypeDefinition)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Returns a policy type definition</p> + <p class="marked">Get an A1 Policy Type definition using its policy type ID</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policy-types/{policyTypeId}</span></code></pre> @@ -7519,6 +7477,7 @@ A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; String *policyTypeId = policyTypeId_example; // (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) +// Get an A1 Policy Type definition (getPolicyTypeDefinition) [apiInstance getPolicyTypeDefinitionWith:policyTypeId accept:accept completionHandler: ^(PolicyTypeObject output, NSError* error) { @@ -7533,10 +7492,10 @@ String *accept = application/json; // Specifies the content type that the client </div> <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyTypeDefinition-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() var policyTypeId = policyTypeId_example; // {String} var opts = { 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. @@ -7576,6 +7535,7 @@ namespace Example 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 { + // Get an A1 Policy Type definition (getPolicyTypeDefinition) PolicyTypeObject result = apiInstance.getPolicyTypeDefinition(policyTypeId, accept); Debug.WriteLine(result); } catch (Exception e) { @@ -7637,6 +7597,7 @@ policyTypeId = policyTypeId_example # String | (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: + # Get an A1 Policy Type definition (getPolicyTypeDefinition) api_response = api_instance.get_policy_type_definition(policyTypeId, accept=accept) pprint(api_response) except ApiException as e: @@ -7729,7 +7690,7 @@ Specifies the content type that the client expects to receive in response to the <h3 id="examples-A1PolicyManagement-getPolicyTypeDefinition-title-200"></h3> <p id="examples-A1PolicyManagement-getPolicyTypeDefinition-description-200" class="marked"></p> <script> - var responseA1PolicyManagement200_description = `OK - schema of the given policy type`; + var responseA1PolicyManagement200_description = `OK - details and schema of the requested A1 Policy Type`; var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n'); if (responseA1PolicyManagement200_description_break == -1) { $("#examples-A1PolicyManagement-getPolicyTypeDefinition-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); @@ -7757,7 +7718,7 @@ Specifies the content type that the client expects to receive in response to the <script> $(document).ready(function() { var schemaWrapper = { - "description" : "OK - schema of the given policy type", + "description" : "OK - details and schema of the requested A1 Policy Type", "content" : { "application/json" : { "schema" : { @@ -8190,7 +8151,7 @@ Specifies the content type that the client expects to receive in response to the <h3 id="examples-A1PolicyManagement-getPolicyTypeDefinition-title-429"></h3> <p id="examples-A1PolicyManagement-getPolicyTypeDefinition-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { $("#examples-A1PolicyManagement-getPolicyTypeDefinition-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); @@ -8218,7 +8179,7 @@ Specifies the content type that the client expects to receive in response to the <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -8498,12 +8459,12 @@ Specifies the content type that the client expects to receive in response to the <article id="api-A1PolicyManagement-getPolicyTypes-0" data-group="User" data-name="getPolicyTypes" data-version="0"> <div class="pull-left"> <h1>getPolicyTypes</h1> - <p></p> + <p>Get A1 Policy Types (getPolicyTypes)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Query policy type identities</p> + <p class="marked">Query A1 Policy Type identities using query parameters</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policy-types</span></code></pre> @@ -8548,8 +8509,9 @@ public class A1PolicyManagementApiExample { // Create an instance of the API class A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); String nearRtRicId = nearRtRicId_example; // String | Select types for the given Near-RT RIC identity. - String typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>) - String compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + String typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version') + String compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + 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 { @@ -8570,8 +8532,9 @@ public class A1PolicyManagementApiExample { final api_instance = DefaultApi(); final String nearRtRicId = new String(); // String | Select types for the given Near-RT RIC identity. -final String typeName = new String(); // String | Select types with the given type name (type identity has the format <typename_version>) -final String compatibleWithVersion = new String(); // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. +final String typeName = new String(); // String | Select types compatible with the given type name (type identity has the format 'typename_version') +final String compatibleWithVersion = new String(); // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + 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 { @@ -8591,8 +8554,9 @@ public class A1PolicyManagementApiExample { public static void main(String[] args) { A1PolicyManagementApi apiInstance = new A1PolicyManagementApi(); String nearRtRicId = nearRtRicId_example; // String | Select types for the given Near-RT RIC identity. - String typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>) - String compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + String typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version') + String compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + 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 { @@ -8615,10 +8579,12 @@ public class A1PolicyManagementApiExample { // Create an instance of the API class A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; String *nearRtRicId = nearRtRicId_example; // Select types for the given Near-RT RIC identity. (optional) (default to null) -String *typeName = typeName_example; // Select types with the given type name (type identity has the format <typename_version>) (optional) (default to null) -String *compatibleWithVersion = compatibleWithVersion_example; // Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. (optional) (default to null) +String *typeName = typeName_example; // Select types compatible with the given type name (type identity has the format 'typename_version') (optional) (default to null) +String *compatibleWithVersion = compatibleWithVersion_example; // Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + (optional) (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) +// Get A1 Policy Types (getPolicyTypes) [apiInstance getPolicyTypesWith:nearRtRicId typeName:typeName compatibleWithVersion:compatibleWithVersion @@ -8635,14 +8601,15 @@ String *accept = application/json; // Specifies the content type that the client </div> <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyTypes-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() var opts = { 'nearRtRicId': nearRtRicId_example, // {String} Select types for the given Near-RT RIC identity. - 'typeName': typeName_example, // {String} Select types with the given type name (type identity has the format <typename_version>) - 'compatibleWithVersion': compatibleWithVersion_example, // {String} Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + 'typeName': typeName_example, // {String} Select types compatible with the given type name (type identity has the format 'typename_version') + 'compatibleWithVersion': compatibleWithVersion_example, // {String} Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. }; @@ -8677,11 +8644,13 @@ namespace Example // Create an instance of the API class var apiInstance = new A1PolicyManagementApi(); var nearRtRicId = nearRtRicId_example; // String | Select types for the given Near-RT RIC identity. (optional) (default to null) - var typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>) (optional) (default to null) - var compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. (optional) (default to null) + var typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version') (optional) (default to null) + var compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + (optional) (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 { + // Get A1 Policy Types (getPolicyTypes) array[PolicyTypeInformation] result = apiInstance.getPolicyTypes(nearRtRicId, typeName, compatibleWithVersion, accept); Debug.WriteLine(result); } catch (Exception e) { @@ -8700,8 +8669,9 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi(); $nearRtRicId = nearRtRicId_example; // String | Select types for the given Near-RT RIC identity. -$typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>) -$compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. +$typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version') +$compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + $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 { @@ -8721,8 +8691,9 @@ use WWW::OPenAPIClient::A1PolicyManagementApi; # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new(); my $nearRtRicId = nearRtRicId_example; # String | Select types for the given Near-RT RIC identity. -my $typeName = typeName_example; # String | Select types with the given type name (type identity has the format <typename_version>) -my $compatibleWithVersion = compatibleWithVersion_example; # String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. +my $typeName = typeName_example; # String | Select types compatible with the given type name (type identity has the format 'typename_version') +my $compatibleWithVersion = compatibleWithVersion_example; # String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + 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 { @@ -8744,11 +8715,13 @@ from pprint import pprint # Create an instance of the API class api_instance = openapi_client.A1PolicyManagementApi() nearRtRicId = nearRtRicId_example # String | Select types for the given Near-RT RIC identity. (optional) (default to null) -typeName = typeName_example # String | Select types with the given type name (type identity has the format <typename_version>) (optional) (default to null) -compatibleWithVersion = compatibleWithVersion_example # String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. (optional) (default to null) +typeName = typeName_example # String | Select types compatible with the given type name (type identity has the format 'typename_version') (optional) (default to null) +compatibleWithVersion = compatibleWithVersion_example # String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + (optional) (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: + # Get A1 Policy Types (getPolicyTypes) api_response = api_instance.get_policy_types(nearRtRicId=nearRtRicId, typeName=typeName, compatibleWithVersion=compatibleWithVersion, accept=accept) pprint(api_response) except ApiException as e: @@ -8849,7 +8822,7 @@ Select types for the given Near-RT RIC identity. </span> <div class="inner description marked"> -Select types with the given type name (type identity has the format <typename_version>) +Select types compatible with the given type name (type identity has the format 'typename_version') </div> </div> </div> @@ -8869,7 +8842,8 @@ Select types with the given type name (type identity has the format <typename </span> <div class="inner description marked"> -Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. +Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. + </div> </div> </div> @@ -9347,7 +9321,7 @@ Select types that are compatible with the given version. This parameter is only <h3 id="examples-A1PolicyManagement-getPolicyTypes-title-429"></h3> <p id="examples-A1PolicyManagement-getPolicyTypes-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { $("#examples-A1PolicyManagement-getPolicyTypes-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); @@ -9375,7 +9349,7 @@ Select types that are compatible with the given version. This parameter is only <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -9651,16 +9625,16 @@ Select types that are compatible with the given version. This parameter is only </article> </div> <hr> - <div id="api-A1PolicyManagement-putPolicy"> - <article id="api-A1PolicyManagement-putPolicy-0" data-group="User" data-name="putPolicy" data-version="0"> + <div id="api-A1PolicyManagement-updatePolicy"> + <article id="api-A1PolicyManagement-updatePolicy-0" data-group="User" data-name="updatePolicy" data-version="0"> <div class="pull-left"> - <h1>putPolicy</h1> - <p></p> + <h1>updatePolicy</h1> + <p>Update an A1 Policy's policy data (updatePolicy)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">update a policy</p> + <p class="marked">Update an existing A1 Policy instance's policy data using its policy ID.</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/policies/{policyId}</span></code></pre> @@ -9668,23 +9642,23 @@ Select types that are compatible with the given version. This parameter is only <h3>Usage and SDK Samples</h3> </p> <ul class="nav nav-tabs nav-tabs-examples"> - <li class="active"><a href="#examples-A1PolicyManagement-putPolicy-0-curl">Curl</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-java">Java</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-dart">Dart</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-android">Android</a></li> - <!--<li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-groovy">Groovy</a></li>--> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-objc">Obj-C</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-javascript">JavaScript</a></li> - <!--<li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-angular">Angular</a></li>--> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-csharp">C#</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-php">PHP</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-perl">Perl</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-python">Python</a></li> - <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-rust">Rust</a></li> + <li class="active"><a href="#examples-A1PolicyManagement-updatePolicy-0-curl">Curl</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-java">Java</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-dart">Dart</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-android">Android</a></li> + <!--<li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-groovy">Groovy</a></li>--> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-objc">Obj-C</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-javascript">JavaScript</a></li> + <!--<li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-angular">Angular</a></li>--> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-csharp">C#</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-php">PHP</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-perl">Perl</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-python">Python</a></li> + <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-rust">Rust</a></li> </ul> <div class="tab-content"> - <div class="tab-pane active" id="examples-A1PolicyManagement-putPolicy-0-curl"> + <div class="tab-pane active" id="examples-A1PolicyManagement-updatePolicy-0-curl"> <pre class="prettyprint"><code class="language-bsh">curl -X PUT \ -H "Accept: application/json,application/problem+json" \ -H "Content-Type: application/json" \ @@ -9692,7 +9666,7 @@ Select types that are compatible with the given version. This parameter is only -d '' </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-java"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-java"> <pre class="prettyprint"><code class="language-java">import org.openapitools.client.*; import org.openapitools.client.auth.*; import org.openapitools.client.model.*; @@ -9710,10 +9684,10 @@ public class A1PolicyManagementApiExample { Object body = Object; // Object | try { - Object result = apiInstance.putPolicy(policyId, body); + Object result = apiInstance.updatePolicy(policyId, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling A1PolicyManagementApi#putPolicy"); + System.err.println("Exception when calling A1PolicyManagementApi#updatePolicy"); e.printStackTrace(); } } @@ -9721,7 +9695,7 @@ public class A1PolicyManagementApiExample { </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-dart"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-dart"> <pre class="prettyprint"><code class="language-dart">import 'package:openapi/api.dart'; final api_instance = DefaultApi(); @@ -9730,16 +9704,16 @@ final String policyId = new String(); // String | final Object body = new Object(); // Object | try { - final result = await api_instance.putPolicy(policyId, body); + final result = await api_instance.updatePolicy(policyId, body); print(result); } catch (e) { - print('Exception when calling DefaultApi->putPolicy: $e\n'); + print('Exception when calling DefaultApi->updatePolicy: $e\n'); } </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-android"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-android"> <pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.A1PolicyManagementApi; public class A1PolicyManagementApiExample { @@ -9749,20 +9723,20 @@ public class A1PolicyManagementApiExample { Object body = Object; // Object | try { - Object result = apiInstance.putPolicy(policyId, body); + Object result = apiInstance.updatePolicy(policyId, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling A1PolicyManagementApi#putPolicy"); + System.err.println("Exception when calling A1PolicyManagementApi#updatePolicy"); e.printStackTrace(); } } }</code></pre> </div> <!-- - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-groovy"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-groovy"> <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre> </div> --> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-objc"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-objc"> <pre class="prettyprint"><code class="language-cpp"> // Create an instance of the API class @@ -9770,7 +9744,8 @@ A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init]; String *policyId = policyId_example; // (default to null) Object *body = Object; // -[apiInstance putPolicyWith:policyId +// Update an A1 Policy's policy data (updatePolicy) +[apiInstance updatePolicyWith:policyId body:body completionHandler: ^(Object output, NSError* error) { if (output) { @@ -9783,11 +9758,11 @@ Object *body = Object; // </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-javascript"> + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.A1PolicyManagementApi() +var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi() var policyId = policyId_example; // {String} var body = Object; // {Object} @@ -9798,14 +9773,14 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -api.putPolicy(policyId, body, callback); +api.updatePolicy(policyId, body, callback); </code></pre> </div> - <!--<div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-angular"> + <!--<div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-angular"> <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre> </div>--> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-csharp"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-csharp"> <pre class="prettyprint"><code class="language-cs">using System; using System.Diagnostics; using Org.OpenAPITools.Api; @@ -9814,7 +9789,7 @@ using Org.OpenAPITools.Model; namespace Example { - public class putPolicyExample + public class updatePolicyExample { public void main() { @@ -9825,10 +9800,11 @@ namespace Example var body = Object; // Object | try { - Object result = apiInstance.putPolicy(policyId, body); + // Update an A1 Policy's policy data (updatePolicy) + Object result = apiInstance.updatePolicy(policyId, body); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling A1PolicyManagementApi.putPolicy: " + e.Message ); + Debug.Print("Exception when calling A1PolicyManagementApi.updatePolicy: " + e.Message ); } } } @@ -9836,7 +9812,7 @@ namespace Example </code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-php"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-php"> <pre class="prettyprint"><code class="language-php"><?php require_once(__DIR__ . '/vendor/autoload.php'); @@ -9846,15 +9822,15 @@ $policyId = policyId_example; // String | $body = Object; // Object | try { - $result = $api_instance->putPolicy($policyId, $body); + $result = $api_instance->updatePolicy($policyId, $body); print_r($result); } catch (Exception $e) { - echo 'Exception when calling A1PolicyManagementApi->putPolicy: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling A1PolicyManagementApi->updatePolicy: ', $e->getMessage(), PHP_EOL; } ?></code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-perl"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-perl"> <pre class="prettyprint"><code class="language-perl">use Data::Dumper; use WWW::OPenAPIClient::Configuration; use WWW::OPenAPIClient::A1PolicyManagementApi; @@ -9865,15 +9841,15 @@ my $policyId = policyId_example; # String | my $body = WWW::OPenAPIClient::Object::Object->new(); # Object | eval { - my $result = $api_instance->putPolicy(policyId => $policyId, body => $body); + my $result = $api_instance->updatePolicy(policyId => $policyId, body => $body); print Dumper($result); }; if ($@) { - warn "Exception when calling A1PolicyManagementApi->putPolicy: $@\n"; + warn "Exception when calling A1PolicyManagementApi->updatePolicy: $@\n"; }</code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-python"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-python"> <pre class="prettyprint"><code class="language-python">from __future__ import print_statement import time import openapi_client @@ -9886,13 +9862,14 @@ policyId = policyId_example # String | (default to null) body = Object # Object | try: - api_response = api_instance.put_policy(policyId, body) + # Update an A1 Policy's policy data (updatePolicy) + api_response = api_instance.update_policy(policyId, body) pprint(api_response) except ApiException as e: - print("Exception when calling A1PolicyManagementApi->putPolicy: %s\n" % e)</code></pre> + print("Exception when calling A1PolicyManagementApi->updatePolicy: %s\n" % e)</code></pre> </div> - <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-rust"> + <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-rust"> <pre class="prettyprint"><code class="language-rust">extern crate A1PolicyManagementApi; pub fn main() { @@ -9900,7 +9877,7 @@ pub fn main() { let body = Object; // Object let mut context = A1PolicyManagementApi::Context::default(); - let result = client.putPolicy(policyId, body, &context).wait(); + let result = client.updatePolicy(policyId, body, &context).wait(); println!("{:?}", result); } @@ -9925,7 +9902,7 @@ pub fn main() { <td> - <div id="d2e199_putPolicy_policyId"> + <div id="d2e199_updatePolicy_policyId"> <div class="json-schema-view"> <div class="primitive"> <span class="type"> @@ -9987,12 +9964,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_putPolicy_body'); + var result = $('#d2e199_updatePolicy_body'); result.empty(); result.append(view.render()); }); </script> -<div id="d2e199_putPolicy_body"></div> +<div id="d2e199_updatePolicy_body"></div> </td> </tr> @@ -10001,23 +9978,23 @@ $(document).ready(function() { <h2>Responses</h2> - <h3 id="examples-A1PolicyManagement-putPolicy-title-200"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-200" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-200"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-200" class="marked"></p> <script> var responseA1PolicyManagement200_description = `OK - Policy updated`; var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n'); if (responseA1PolicyManagement200_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); + $("#examples-A1PolicyManagement-updatePolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-200" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-200" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-200-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-200-schema">Schema</a> </li> @@ -10026,9 +10003,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-200-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-200-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-200" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-200-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-200-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-200" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10067,33 +10044,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-200-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-200'); + $('#responses-A1PolicyManagement-updatePolicy-200-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-200'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-200-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-200-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-400"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-400" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-400"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-400" class="marked"></p> <script> var responseA1PolicyManagement400_description = `Bad Request`; var responseA1PolicyManagement400_description_break = responseA1PolicyManagement400_description.indexOf('\n'); if (responseA1PolicyManagement400_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description); + $("#examples-A1PolicyManagement-updatePolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-400" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-400" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-400-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-400-schema">Schema</a> </li> @@ -10102,9 +10079,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-400-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-400-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-400" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-400-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-400-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-400" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10143,33 +10120,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-400-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-400'); + $('#responses-A1PolicyManagement-updatePolicy-400-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-400'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-400-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-400-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-401"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-401" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-401"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-401" class="marked"></p> <script> var responseA1PolicyManagement401_description = `Unauthorized`; var responseA1PolicyManagement401_description_break = responseA1PolicyManagement401_description.indexOf('\n'); if (responseA1PolicyManagement401_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description); + $("#examples-A1PolicyManagement-updatePolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-401" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-401" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-401-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-401-schema">Schema</a> </li> @@ -10178,9 +10155,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-401-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-401-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-401" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-401-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-401-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-401" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10219,33 +10196,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-401-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-401'); + $('#responses-A1PolicyManagement-updatePolicy-401-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-401'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-401-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-401-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-403"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-403" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-403"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-403" class="marked"></p> <script> var responseA1PolicyManagement403_description = `Forbidden`; var responseA1PolicyManagement403_description_break = responseA1PolicyManagement403_description.indexOf('\n'); if (responseA1PolicyManagement403_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description); + $("#examples-A1PolicyManagement-updatePolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-403" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-403" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-403-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-403-schema">Schema</a> </li> @@ -10254,9 +10231,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-403-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-403-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-403" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-403-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-403-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-403" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10295,33 +10272,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-403-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-403'); + $('#responses-A1PolicyManagement-updatePolicy-403-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-403'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-403-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-403-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-404"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-404" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-404"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-404" class="marked"></p> <script> var responseA1PolicyManagement404_description = `Not Found`; var responseA1PolicyManagement404_description_break = responseA1PolicyManagement404_description.indexOf('\n'); if (responseA1PolicyManagement404_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description); + $("#examples-A1PolicyManagement-updatePolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-404" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-404" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-404-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-404-schema">Schema</a> </li> @@ -10330,9 +10307,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-404-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-404-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-404" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-404-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-404-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-404" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10371,33 +10348,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-404-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-404'); + $('#responses-A1PolicyManagement-updatePolicy-404-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-404'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-404-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-404-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-406"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-406" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-406"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-406" class="marked"></p> <script> var responseA1PolicyManagement406_description = `Not Acceptable`; var responseA1PolicyManagement406_description_break = responseA1PolicyManagement406_description.indexOf('\n'); if (responseA1PolicyManagement406_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description); + $("#examples-A1PolicyManagement-updatePolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-406" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-406" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-406-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-406-schema">Schema</a> </li> @@ -10406,9 +10383,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-406-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-406-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-406" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-406-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-406-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-406" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10447,33 +10424,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-406-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-406'); + $('#responses-A1PolicyManagement-updatePolicy-406-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-406'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-406-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-406-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-411"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-411" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-411"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-411" class="marked"></p> <script> var responseA1PolicyManagement411_description = `Length Required`; var responseA1PolicyManagement411_description_break = responseA1PolicyManagement411_description.indexOf('\n'); if (responseA1PolicyManagement411_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description); + $("#examples-A1PolicyManagement-updatePolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description.substring(0, responseA1PolicyManagement411_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-411").html(responseA1PolicyManagement411_description.substring(responseA1PolicyManagement411_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description.substring(0, responseA1PolicyManagement411_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-411").html(responseA1PolicyManagement411_description.substring(responseA1PolicyManagement411_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-411" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-411" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-411-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-411-schema">Schema</a> </li> @@ -10482,9 +10459,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-411-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-411-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-411" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-411-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-411-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-411" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10523,33 +10500,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-411-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-411'); + $('#responses-A1PolicyManagement-updatePolicy-411-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-411'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-411-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-411-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-413"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-413" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-413"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-413" class="marked"></p> <script> var responseA1PolicyManagement413_description = `Payload Too Large`; var responseA1PolicyManagement413_description_break = responseA1PolicyManagement413_description.indexOf('\n'); if (responseA1PolicyManagement413_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description); + $("#examples-A1PolicyManagement-updatePolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description.substring(0, responseA1PolicyManagement413_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-413").html(responseA1PolicyManagement413_description.substring(responseA1PolicyManagement413_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description.substring(0, responseA1PolicyManagement413_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-413").html(responseA1PolicyManagement413_description.substring(responseA1PolicyManagement413_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-413" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-413" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-413-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-413-schema">Schema</a> </li> @@ -10558,9 +10535,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-413-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-413-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-413" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-413-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-413-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-413" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10599,33 +10576,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-413-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-413'); + $('#responses-A1PolicyManagement-updatePolicy-413-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-413'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-413-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-413-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-415"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-415" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-415"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-415" class="marked"></p> <script> var responseA1PolicyManagement415_description = `Unsupported Media Type`; var responseA1PolicyManagement415_description_break = responseA1PolicyManagement415_description.indexOf('\n'); if (responseA1PolicyManagement415_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description); + $("#examples-A1PolicyManagement-updatePolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description.substring(0, responseA1PolicyManagement415_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-415").html(responseA1PolicyManagement415_description.substring(responseA1PolicyManagement415_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description.substring(0, responseA1PolicyManagement415_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-415").html(responseA1PolicyManagement415_description.substring(responseA1PolicyManagement415_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-415" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-415" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-415-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-415-schema">Schema</a> </li> @@ -10634,9 +10611,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-415-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-415-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-415" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-415-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-415-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-415" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10675,33 +10652,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-415-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-415'); + $('#responses-A1PolicyManagement-updatePolicy-415-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-415'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-415-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-415-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-423"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-423" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-423"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-423" class="marked"></p> <script> var responseA1PolicyManagement423_description = `Locked - HTTP Status code which can be used when the state is Locked`; var responseA1PolicyManagement423_description_break = responseA1PolicyManagement423_description.indexOf('\n'); if (responseA1PolicyManagement423_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description); + $("#examples-A1PolicyManagement-updatePolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description.substring(0, responseA1PolicyManagement423_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-423").html(responseA1PolicyManagement423_description.substring(responseA1PolicyManagement423_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description.substring(0, responseA1PolicyManagement423_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-423").html(responseA1PolicyManagement423_description.substring(responseA1PolicyManagement423_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-423" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-423" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-423-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-423-schema">Schema</a> </li> @@ -10710,9 +10687,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-423-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-423-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-423" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-423-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-423-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-423" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10725,7 +10702,7 @@ $(document).ready(function() { "example" : { "status" : 423, "title" : "Locked", - "detail" : "State is Locked in the provided request." + "detail" : "State is Locked in the provided request." } } } @@ -10756,33 +10733,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-423-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-423'); + $('#responses-A1PolicyManagement-updatePolicy-423-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-423'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-423-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-423-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-429"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-429" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-429"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-429" class="marked"></p> <script> - var responseA1PolicyManagement429_description = `Too Many Request`; + var responseA1PolicyManagement429_description = `Too Many Requests`; var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n'); if (responseA1PolicyManagement429_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); + $("#examples-A1PolicyManagement-updatePolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-429" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-429" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-429-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-429-schema">Schema</a> </li> @@ -10791,13 +10768,13 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-429-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-429-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-429" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-429-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-429-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-429" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { - "description" : "Too Many Request", + "description" : "Too Many Requests", "content" : { "application/problem+json" : { "schema" : { @@ -10832,33 +10809,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-429-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-429'); + $('#responses-A1PolicyManagement-updatePolicy-429-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-429'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-429-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-429-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-500"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-500" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-500"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-500" class="marked"></p> <script> var responseA1PolicyManagement500_description = `Internal Server Error`; var responseA1PolicyManagement500_description_break = responseA1PolicyManagement500_description.indexOf('\n'); if (responseA1PolicyManagement500_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description); + $("#examples-A1PolicyManagement-updatePolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-500" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-500" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-500-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-500-schema">Schema</a> </li> @@ -10867,9 +10844,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-500-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-500-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-500" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-500-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-500-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-500" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10908,33 +10885,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-500-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-500'); + $('#responses-A1PolicyManagement-updatePolicy-500-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-500'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-500-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-500-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-502"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-502" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-502"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-502" class="marked"></p> <script> var responseA1PolicyManagement502_description = `Bad Gateway`; var responseA1PolicyManagement502_description_break = responseA1PolicyManagement502_description.indexOf('\n'); if (responseA1PolicyManagement502_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description); + $("#examples-A1PolicyManagement-updatePolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-502" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-502" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-502-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-502-schema">Schema</a> </li> @@ -10943,9 +10920,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-502-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-502-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-502" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-502-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-502-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-502" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -10984,33 +10961,33 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-502-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-502'); + $('#responses-A1PolicyManagement-updatePolicy-502-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-502'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-502-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-502-schema-data' type='hidden' value=''></input> </div> </div> - <h3 id="examples-A1PolicyManagement-putPolicy-title-503"></h3> - <p id="examples-A1PolicyManagement-putPolicy-description-503" class="marked"></p> + <h3 id="examples-A1PolicyManagement-updatePolicy-title-503"></h3> + <p id="examples-A1PolicyManagement-updatePolicy-description-503" class="marked"></p> <script> var responseA1PolicyManagement503_description = `Service Unavailable`; var responseA1PolicyManagement503_description_break = responseA1PolicyManagement503_description.indexOf('\n'); if (responseA1PolicyManagement503_description_break == -1) { - $("#examples-A1PolicyManagement-putPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description); + $("#examples-A1PolicyManagement-updatePolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description); } else { - $("#examples-A1PolicyManagement-putPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break)); - $("#examples-A1PolicyManagement-putPolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break)); + $("#examples-A1PolicyManagement-updatePolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break)); } </script> - <ul id="responses-detail-A1PolicyManagement-putPolicy-503" class="nav nav-tabs nav-tabs-examples" > + <ul id="responses-detail-A1PolicyManagement-updatePolicy-503" class="nav nav-tabs nav-tabs-examples" > <li class="active"> - <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-503-schema">Schema</a> + <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-503-schema">Schema</a> </li> @@ -11019,9 +10996,9 @@ $(document).ready(function() { </ul> - <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-503-wrapper" style='margin-bottom: 10px;'> - <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-503-schema"> - <div id="responses-A1PolicyManagement-putPolicy-schema-503" class="exampleStyle"> + <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-503-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-503-schema"> + <div id="responses-A1PolicyManagement-updatePolicy-schema-503" class="exampleStyle"> <script> $(document).ready(function() { var schemaWrapper = { @@ -11060,14 +11037,14 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema, 3); - $('#responses-A1PolicyManagement-putPolicy-503-schema-data').val(JSON.stringify(schema)); - var result = $('#responses-A1PolicyManagement-putPolicy-schema-503'); + $('#responses-A1PolicyManagement-updatePolicy-503-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-A1PolicyManagement-updatePolicy-schema-503'); result.empty(); result.append(view.render()); }); </script> </div> - <input id='responses-A1PolicyManagement-putPolicy-503-schema-data' type='hidden' value=''></input> + <input id='responses-A1PolicyManagement-updatePolicy-503-schema-data' type='hidden' value=''></input> </div> </div> </article> @@ -11080,12 +11057,12 @@ $(document).ready(function() { <article id="api-Configuration-getConfiguration-0" data-group="User" data-name="getConfiguration" data-version="0"> <div class="pull-left"> <h1>getConfiguration</h1> - <p></p> + <p>Get the Application Configuration (getConfiguration)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Returns the contents of the application configuration</p> + <p class="marked">Returns the entire contents of the Application Configuration.</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/configuration</span></code></pre> @@ -11185,6 +11162,7 @@ public class ConfigurationApiExample { // Create an instance of the API class ConfigurationApi *apiInstance = [[ConfigurationApi alloc] init]; +// Get the Application Configuration (getConfiguration) [apiInstance getConfigurationWithCompletionHandler: ^('String' output, NSError* error) { if (output) { @@ -11198,10 +11176,10 @@ ConfigurationApi *apiInstance = [[ConfigurationApi alloc] init]; </div> <div class="tab-pane" id="examples-Configuration-getConfiguration-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.ConfigurationApi() +var api = new OnapCcsdkA1PolicyManagementApi.ConfigurationApi() var callback = function(error, data, response) { if (error) { console.error(error); @@ -11234,6 +11212,7 @@ namespace Example var apiInstance = new ConfigurationApi(); try { + // Get the Application Configuration (getConfiguration) 'String' result = apiInstance.getConfiguration(); Debug.WriteLine(result); } catch (Exception e) { @@ -11289,6 +11268,7 @@ from pprint import pprint api_instance = openapi_client.ConfigurationApi() try: + # Get the Application Configuration (getConfiguration) api_response = api_instance.get_configuration() pprint(api_response) except ApiException as e: @@ -11481,12 +11461,13 @@ pub fn main() { <article id="api-Configuration-putConfiguration-0" data-group="User" data-name="putConfiguration" data-version="0"> <div class="pull-left"> <h1>putConfiguration</h1> - <p></p> + <p>Set/Replace the Application Configuration (putConfiguration)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Replace the current configuration file with the given configuration</p> + <p class="marked">Replace the current Application Configuration with a new configuration. The new configuration, if accepted, will take effect after a short delay. The new configuration must comply with the Application Configuration schema, which can be found from the the Application Documentation (Developer Guide) +</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/configuration</span></code></pre> @@ -11512,7 +11493,7 @@ pub fn main() { <div class="tab-content"> <div class="tab-pane active" id="examples-Configuration-putConfiguration-0-curl"> <pre class="prettyprint"><code class="language-bsh">curl -X PUT \ - -H "Accept: */*,application/problem+json" \ + -H "Accept: application/json,application/problem+json" \ -H "Content-Type: application/json" \ "https://example.com/a1-policy-management/v1/configuration" \ -d '' @@ -11592,6 +11573,7 @@ public class ConfigurationApiExample { ConfigurationApi *apiInstance = [[ConfigurationApi alloc] init]; Object *body = Object; // +// Set/Replace the Application Configuration (putConfiguration) [apiInstance putConfigurationWith:body completionHandler: ^(Object output, NSError* error) { if (output) { @@ -11605,10 +11587,10 @@ Object *body = Object; // </div> <div class="tab-pane" id="examples-Configuration-putConfiguration-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.ConfigurationApi() +var api = new OnapCcsdkA1PolicyManagementApi.ConfigurationApi() var body = Object; // {Object} var callback = function(error, data, response) { @@ -11644,6 +11626,7 @@ namespace Example var body = Object; // Object | try { + // Set/Replace the Application Configuration (putConfiguration) Object result = apiInstance.putConfiguration(body); Debug.WriteLine(result); } catch (Exception e) { @@ -11702,6 +11685,7 @@ api_instance = openapi_client.ConfigurationApi() body = Object # Object | try: + # Set/Replace the Application Configuration (putConfiguration) api_response = api_instance.put_configuration(body) pprint(api_response) except ApiException as e: @@ -11817,7 +11801,7 @@ $(document).ready(function() { var schemaWrapper = { "description" : "OK - Configuration updated", "content" : { - "*/*" : { + "application/json" : { "schema" : { "$ref" : "#/components/schemas/void" } @@ -11946,7 +11930,7 @@ $(document).ready(function() { <article id="api-HealthCheck-getStatus-0" data-group="User" data-name="getStatus" data-version="0"> <div class="pull-left"> <h1>getStatus</h1> - <p></p> + <p>Get Status (getStatus)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> @@ -11977,7 +11961,7 @@ $(document).ready(function() { <div class="tab-content"> <div class="tab-pane active" id="examples-HealthCheck-getStatus-0-curl"> <pre class="prettyprint"><code class="language-bsh">curl -X GET \ - -H "Accept: application/json" \ + -H "Accept: application/json,application/problem+json" \ "https://example.com/a1-policy-management/v1/status" </code></pre> </div> @@ -12051,6 +12035,7 @@ public class HealthCheckApiExample { // Create an instance of the API class HealthCheckApi *apiInstance = [[HealthCheckApi alloc] init]; +// Get Status (getStatus) [apiInstance getStatusWithCompletionHandler: ^(StatusInfo output, NSError* error) { if (output) { @@ -12064,10 +12049,10 @@ HealthCheckApi *apiInstance = [[HealthCheckApi alloc] init]; </div> <div class="tab-pane" id="examples-HealthCheck-getStatus-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.HealthCheckApi() +var api = new OnapCcsdkA1PolicyManagementApi.HealthCheckApi() var callback = function(error, data, response) { if (error) { console.error(error); @@ -12100,6 +12085,7 @@ namespace Example var apiInstance = new HealthCheckApi(); try { + // Get Status (getStatus) StatusInfo result = apiInstance.getStatus(); Debug.WriteLine(result); } catch (Exception e) { @@ -12155,6 +12141,7 @@ from pprint import pprint api_instance = openapi_client.HealthCheckApi() try: + # Get Status (getStatus) api_response = api_instance.get_status() pprint(api_response) except ApiException as e: @@ -12269,6 +12256,82 @@ pub fn main() { <input id='responses-HealthCheck-getStatus-200-schema-data' type='hidden' value=''></input> </div> </div> + <h3 id="examples-HealthCheck-getStatus-title-404"></h3> + <p id="examples-HealthCheck-getStatus-description-404" class="marked"></p> + <script> + var responseHealthCheck404_description = `Not Found`; + var responseHealthCheck404_description_break = responseHealthCheck404_description.indexOf('\n'); + if (responseHealthCheck404_description_break == -1) { + $("#examples-HealthCheck-getStatus-title-404").text("Status: 404 - " + responseHealthCheck404_description); + } else { + $("#examples-HealthCheck-getStatus-title-404").text("Status: 404 - " + responseHealthCheck404_description.substring(0, responseHealthCheck404_description_break)); + $("#examples-HealthCheck-getStatus-description-404").html(responseHealthCheck404_description.substring(responseHealthCheck404_description_break)); + } + </script> + + + <ul id="responses-detail-HealthCheck-getStatus-404" class="nav nav-tabs nav-tabs-examples" > + <li class="active"> + <a data-toggle="tab" href="#responses-HealthCheck-getStatus-404-schema">Schema</a> + </li> + + + + + </ul> + + + <div class="tab-content" id="responses-HealthCheck-getStatus-404-wrapper" style='margin-bottom: 10px;'> + <div class="tab-pane active" id="responses-HealthCheck-getStatus-404-schema"> + <div id="responses-HealthCheck-getStatus-schema-404" class="exampleStyle"> + <script> + $(document).ready(function() { + var schemaWrapper = { + "description" : "Not Found", + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + } + } +}; + var schema = findNode('schema',schemaWrapper).schema; + if (!schema) { + schema = schemaWrapper.schema; + } + if (schema == null) { + return; + } + if (schema.$ref != null) { + schema = defsParser.$refs.get(schema.$ref); + if (schema.properties != null) { + Object.keys(schema.properties).forEach( (item) => { + if (schema.properties[item].$ref != null) { + schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref); + } + }); + } + } else if (schema.items != null && schema.items.$ref != null) { + schema.items = defsParser.$refs.get(schema.items.$ref); + } else { + schemaWrapper.definitions = Object.assign({}, defs); + $RefParser.dereference(schemaWrapper).catch(function(err) { + console.log(err); + }); + } + + var view = new JSONSchemaView(schema, 3); + $('#responses-HealthCheck-getStatus-404-schema-data').val(JSON.stringify(schema)); + var result = $('#responses-HealthCheck-getStatus-schema-404'); + result.empty(); + result.append(view.render()); + }); + </script> + </div> + <input id='responses-HealthCheck-getStatus-404-schema-data' type='hidden' value=''></input> + </div> + </div> </article> </div> <hr> @@ -12279,12 +12342,12 @@ pub fn main() { <article id="api-NearRTRICRepository-getRic-0" data-group="User" data-name="getRic" data-version="0"> <div class="pull-left"> <h1>getRic</h1> - <p>Returns info for one Near-RT RIC</p> + <p>Get a Near-RT RIC (getRic)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">A ricId path parameter must be specified to retrieve associated ric infomation</p> + <p class="marked">Get information about a Near-RT RIC</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/rics/{ricId}</span></code></pre> @@ -12392,7 +12455,7 @@ NearRTRICRepositoryApi *apiInstance = [[NearRTRICRepositoryApi alloc] init]; 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 +// Get a Near-RT RIC (getRic) [apiInstance getRicWith:ricId accept:accept completionHandler: ^(RicInfo output, NSError* error) { @@ -12407,10 +12470,10 @@ String *accept = application/json; // Specifies the content type that the client </div> <div class="tab-pane" id="examples-NearRTRICRepository-getRic-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.NearRTRICRepositoryApi() +var api = new OnapCcsdkA1PolicyManagementApi.NearRTRICRepositoryApi() var ricId = ricId_example; // {String} The identity of a Near-RT RIC to get information for. var opts = { 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. @@ -12450,7 +12513,7 @@ namespace Example 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 + // Get a Near-RT RIC (getRic) RicInfo result = apiInstance.getRic(ricId, accept); Debug.WriteLine(result); } catch (Exception e) { @@ -12512,7 +12575,7 @@ ricId = ricId_example # String | The identity of a Near-RT RIC to get informatio 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 + # Get a Near-RT RIC (getRic) api_response = api_instance.get_ric(ricId, accept=accept) pprint(api_response) except ApiException as e: @@ -12769,12 +12832,12 @@ Specifies the content type that the client expects to receive in response to the <article id="api-NearRTRICRepository-getRics-0" data-group="User" data-name="getRics" data-version="0"> <div class="pull-left"> <h1>getRics</h1> - <p>Query Near-RT RIC information</p> + <p>Get Near-RT RICs for A1 Policy Type (getRics)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">The call returns all Near-RT RICs that supports a given policy type identity</p> + <p class="marked">Get all Near-RT RICs that supports a given A1 Policy Type ID</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/rics</span></code></pre> @@ -12818,7 +12881,8 @@ public class NearRTRICRepositoryApiExample { // Create an instance of the API class NearRTRICRepositoryApi apiInstance = new NearRTRICRepositoryApi(); - String policyTypeId = policyTypeId_example; // String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned + String policyTypeId = policyTypeId_example; // String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + 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 { @@ -12838,7 +12902,8 @@ public class NearRTRICRepositoryApiExample { final api_instance = DefaultApi(); -final String policyTypeId = new String(); // String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned +final String policyTypeId = new String(); // String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + 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 { @@ -12857,7 +12922,8 @@ try { public class NearRTRICRepositoryApiExample { public static void main(String[] args) { NearRTRICRepositoryApi apiInstance = new NearRTRICRepositoryApi(); - String policyTypeId = policyTypeId_example; // String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned + String policyTypeId = policyTypeId_example; // String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + 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 { @@ -12879,10 +12945,11 @@ public class NearRTRICRepositoryApiExample { // Create an instance of the API class NearRTRICRepositoryApi *apiInstance = [[NearRTRICRepositoryApi alloc] init]; -String *policyTypeId = policyTypeId_example; // The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned (optional) (default to null) +String *policyTypeId = policyTypeId_example; // The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + (optional) (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) -// Query Near-RT RIC information +// Get Near-RT RICs for A1 Policy Type (getRics) [apiInstance getRicsWith:policyTypeId accept:accept completionHandler: ^(RicInfoList output, NSError* error) { @@ -12897,12 +12964,13 @@ String *accept = application/json; // Specifies the content type that the client </div> <div class="tab-pane" id="examples-NearRTRICRepository-getRics-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.NearRTRICRepositoryApi() +var api = new OnapCcsdkA1PolicyManagementApi.NearRTRICRepositoryApi() var opts = { - 'policyTypeId': policyTypeId_example, // {String} The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned + 'policyTypeId': policyTypeId_example, // {String} The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. }; @@ -12936,11 +13004,12 @@ namespace Example // Create an instance of the API class var apiInstance = new NearRTRICRepositoryApi(); - var policyTypeId = policyTypeId_example; // String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned (optional) (default to null) + var policyTypeId = policyTypeId_example; // String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + (optional) (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 { - // Query Near-RT RIC information + // Get Near-RT RICs for A1 Policy Type (getRics) RicInfoList result = apiInstance.getRics(policyTypeId, accept); Debug.WriteLine(result); } catch (Exception e) { @@ -12958,7 +13027,8 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\NearRTRICRepositoryApi(); -$policyTypeId = policyTypeId_example; // String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned +$policyTypeId = policyTypeId_example; // String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + $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 { @@ -12977,7 +13047,8 @@ use WWW::OPenAPIClient::NearRTRICRepositoryApi; # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::NearRTRICRepositoryApi->new(); -my $policyTypeId = policyTypeId_example; # String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned +my $policyTypeId = policyTypeId_example; # String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + 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 { @@ -12998,11 +13069,12 @@ from pprint import pprint # Create an instance of the API class api_instance = openapi_client.NearRTRICRepositoryApi() -policyTypeId = policyTypeId_example # String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned (optional) (default to null) +policyTypeId = policyTypeId_example # String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + (optional) (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: - # Query Near-RT RIC information + # Get Near-RT RICs for A1 Policy Type (getRics) api_response = api_instance.get_rics(policyTypeId=policyTypeId, accept=accept) pprint(api_response) except ApiException as e: @@ -13081,7 +13153,8 @@ Specifies the content type that the client expects to receive in response to the </span> <div class="inner description marked"> -The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned +The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned. + </div> </div> </div> @@ -13259,12 +13332,13 @@ The identity of a policy type. If given, all Near-RT RICs supporting the policy <article id="api-ServiceRegistryAndSupervision-deleteService-0" data-group="User" data-name="deleteService" data-version="0"> <div class="pull-left"> <h1>deleteService</h1> - <p></p> + <p>Unregister a Service (deleteService)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Unregister a service</p> + <p class="marked">Unregister a registered Service using its service ID. Only registered services can be unregistered. All A1 Policy Instances for the previously registered service will be removed. +</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/services/{serviceId}</span></code></pre> @@ -13290,7 +13364,7 @@ The identity of a policy type. If given, all Near-RT RICs supporting the policy <div class="tab-content"> <div class="tab-pane active" id="examples-ServiceRegistryAndSupervision-deleteService-0-curl"> <pre class="prettyprint"><code class="language-bsh">curl -X DELETE \ - -H "Accept: */*,application/problem+json" \ + -H "Accept: application/json,application/problem+json" \ "https://example.com/a1-policy-management/v1/services/{serviceId}" </code></pre> </div> @@ -13372,6 +13446,7 @@ ServiceRegistryAndSupervisionApi *apiInstance = [[ServiceRegistryAndSupervisionA String *serviceId = serviceId_example; // (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) +// Unregister a Service (deleteService) [apiInstance deleteServiceWith:serviceId accept:accept completionHandler: ^(Object output, NSError* error) { @@ -13386,10 +13461,10 @@ String *accept = application/json; // Specifies the content type that the client </div> <div class="tab-pane" id="examples-ServiceRegistryAndSupervision-deleteService-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.ServiceRegistryAndSupervisionApi() +var api = new OnapCcsdkA1PolicyManagementApi.ServiceRegistryAndSupervisionApi() var serviceId = serviceId_example; // {String} var opts = { 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. @@ -13429,6 +13504,7 @@ namespace Example 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 { + // Unregister a Service (deleteService) Object result = apiInstance.deleteService(serviceId, accept); Debug.WriteLine(result); } catch (Exception e) { @@ -13490,6 +13566,7 @@ serviceId = serviceId_example # String | (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: + # Unregister a Service (deleteService) api_response = api_instance.delete_service(serviceId, accept=accept) pprint(api_response) except ApiException as e: @@ -13612,7 +13689,7 @@ Specifies the content type that the client expects to receive in response to the var schemaWrapper = { "description" : "No Content - Service unregistered", "content" : { - "*/*" : { + "application/json" : { "schema" : { "type" : "object" } @@ -13738,12 +13815,13 @@ Specifies the content type that the client expects to receive in response to the <article id="api-ServiceRegistryAndSupervision-getServices-0" data-group="User" data-name="getServices" data-version="0"> <div class="pull-left"> <h1>getServices</h1> - <p>Returns service information</p> + <p>Get Services (getServices)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Either information about a registered service with given identity or all registered services are returned.</p> + <p class="marked">Get information about all registered services, or a single registered service. If the service ID of a registered service is included in the query, information about that service is returned. Otherwise Information about all registered is returned. This operation does not retrieve information about unregistered services. +</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/services</span></code></pre> @@ -13787,7 +13865,7 @@ public class ServiceRegistryAndSupervisionApiExample { // Create an instance of the API class ServiceRegistryAndSupervisionApi apiInstance = new ServiceRegistryAndSupervisionApi(); - String serviceId = serviceId_example; // String | The identity of the service + String serviceId = serviceId_example; // String | The identity of the registered service 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 { @@ -13807,7 +13885,7 @@ public class ServiceRegistryAndSupervisionApiExample { final api_instance = DefaultApi(); -final String serviceId = new String(); // String | The identity of the service +final String serviceId = new String(); // String | The identity of the registered service 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 { @@ -13826,7 +13904,7 @@ try { public class ServiceRegistryAndSupervisionApiExample { public static void main(String[] args) { ServiceRegistryAndSupervisionApi apiInstance = new ServiceRegistryAndSupervisionApi(); - String serviceId = serviceId_example; // String | The identity of the service + String serviceId = serviceId_example; // String | The identity of the registered service 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 { @@ -13848,10 +13926,10 @@ public class ServiceRegistryAndSupervisionApiExample { // Create an instance of the API class ServiceRegistryAndSupervisionApi *apiInstance = [[ServiceRegistryAndSupervisionApi alloc] init]; -String *serviceId = serviceId_example; // The identity of the service (optional) (default to null) +String *serviceId = serviceId_example; // The identity of the registered service (optional) (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 service information +// Get Services (getServices) [apiInstance getServicesWith:serviceId accept:accept completionHandler: ^(ServiceStatusList output, NSError* error) { @@ -13866,12 +13944,12 @@ String *accept = application/json; // Specifies the content type that the client </div> <div class="tab-pane" id="examples-ServiceRegistryAndSupervision-getServices-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.ServiceRegistryAndSupervisionApi() +var api = new OnapCcsdkA1PolicyManagementApi.ServiceRegistryAndSupervisionApi() var opts = { - 'serviceId': serviceId_example, // {String} The identity of the service + 'serviceId': serviceId_example, // {String} The identity of the registered service 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. }; @@ -13905,11 +13983,11 @@ namespace Example // Create an instance of the API class var apiInstance = new ServiceRegistryAndSupervisionApi(); - var serviceId = serviceId_example; // String | The identity of the service (optional) (default to null) + var serviceId = serviceId_example; // String | The identity of the registered service (optional) (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 service information + // Get Services (getServices) ServiceStatusList result = apiInstance.getServices(serviceId, accept); Debug.WriteLine(result); } catch (Exception e) { @@ -13927,7 +14005,7 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\ServiceRegistryAndSupervisionApi(); -$serviceId = serviceId_example; // String | The identity of the service +$serviceId = serviceId_example; // String | The identity of the registered service $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 { @@ -13946,7 +14024,7 @@ use WWW::OPenAPIClient::ServiceRegistryAndSupervisionApi; # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::ServiceRegistryAndSupervisionApi->new(); -my $serviceId = serviceId_example; # String | The identity of the service +my $serviceId = serviceId_example; # String | The identity of the registered service 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 { @@ -13967,11 +14045,11 @@ from pprint import pprint # Create an instance of the API class api_instance = openapi_client.ServiceRegistryAndSupervisionApi() -serviceId = serviceId_example # String | The identity of the service (optional) (default to null) +serviceId = serviceId_example # String | The identity of the registered service (optional) (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 service information + # Get Services (getServices) api_response = api_instance.get_services(serviceId=serviceId, accept=accept) pprint(api_response) except ApiException as e: @@ -14050,7 +14128,7 @@ Specifies the content type that the client expects to receive in response to the </span> <div class="inner description marked"> -The identity of the service +The identity of the registered service </div> </div> </div> @@ -14225,12 +14303,12 @@ The identity of the service <article id="api-ServiceRegistryAndSupervision-keepAliveService-0" data-group="User" data-name="keepAliveService" data-version="0"> <div class="pull-left"> <h1>keepAliveService</h1> - <p>Heartbeat indicates that the service is running</p> + <p>Heartbeat message from a service (keepAliveService)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">A registered service should invoke this operation regularly to indicate that it is still alive. If a registered service fails to invoke this operation before the end of a timeout period the service will be deregistered and all its A1 policies wil be removed. (This timeout can be set or disabled when each service is initially registered)</p> + <p class="marked">A registered service should invoke this operation regularly to indicate that it is still alive. If a registered service fails to invoke some operation, or this operation, before the end of a timeout period the service will be deregistered and all its A1 policies wil be removed. This operation is only intended for registered services. (This timeout can be set or disabled when each service is initially registered)</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/services/{serviceId}/keepalive</span></code></pre> @@ -14256,7 +14334,7 @@ The identity of the service <div class="tab-content"> <div class="tab-pane active" id="examples-ServiceRegistryAndSupervision-keepAliveService-0-curl"> <pre class="prettyprint"><code class="language-bsh">curl -X PUT \ - -H "Accept: */*,application/problem+json" \ + -H "Accept: application/json,application/problem+json" \ -H "Content-Type: application/json" \ "https://example.com/a1-policy-management/v1/services/{serviceId}/keepalive" \ -d '' @@ -14344,7 +14422,7 @@ String *serviceId = serviceId_example; // (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) String *body = body_example; // (optional) -// Heartbeat indicates that the service is running +// Heartbeat message from a service (keepAliveService) [apiInstance keepAliveServiceWith:serviceId accept:accept body:body @@ -14360,10 +14438,10 @@ String *body = body_example; // (optional) </div> <div class="tab-pane" id="examples-ServiceRegistryAndSupervision-keepAliveService-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.ServiceRegistryAndSupervisionApi() +var api = new OnapCcsdkA1PolicyManagementApi.ServiceRegistryAndSupervisionApi() var serviceId = serviceId_example; // {String} var opts = { 'accept': application/json, // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. @@ -14405,7 +14483,7 @@ namespace Example var body = body_example; // String | (optional) try { - // Heartbeat indicates that the service is running + // Heartbeat message from a service (keepAliveService) Object result = apiInstance.keepAliveService(serviceId, accept, body); Debug.WriteLine(result); } catch (Exception e) { @@ -14470,7 +14548,7 @@ accept = application/json # String | Specifies the content type that the client body = body_example # String | (optional) try: - # Heartbeat indicates that the service is running + # Heartbeat message from a service (keepAliveService) api_response = api_instance.keep_alive_service(serviceId, accept=accept, body=body) pprint(api_response) except ApiException as e: @@ -14642,7 +14720,7 @@ $(document).ready(function() { var schemaWrapper = { "description" : "OK - Service supervision timer refreshed, OK", "content" : { - "*/*" : { + "application/json" : { "schema" : { "type" : "object" } @@ -14768,12 +14846,13 @@ $(document).ready(function() { <article id="api-ServiceRegistryAndSupervision-putService-0" data-group="User" data-name="putService" data-version="0"> <div class="pull-left"> <h1>putService</h1> - <p>Register a service</p> + <p>Register or update a Service (putService)</p> </div> <div class="pull-right"></div> <div class="clearfix"></div> <p></p> - <p class="marked">Registering a service is needed to:<ul><li>Get callbacks about available NearRT RICs.</li><li>Activate supervision of the service. If a service is inactive, its policies will automatically be deleted.</li></ul>Policies can be created even if the service is not registerred. This is a feature which it is optional to use.</p> + <p class="marked">Register a single service, or update a previous registration. Service registration is required to get callbacks about available NearRT RICs and to enable supervision of the service's active status. If a registered service becomes inactive, its policies can be automatically deleted. A1 Policy instances can also be created for unregistered services. If an unregistered service is later registered, the service's policies are retained when the service becomes registered. This feature is optional to use. +</p> <p></p> <br /> <pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/services</span></code></pre> @@ -14799,7 +14878,7 @@ $(document).ready(function() { <div class="tab-content"> <div class="tab-pane active" id="examples-ServiceRegistryAndSupervision-putService-0-curl"> <pre class="prettyprint"><code class="language-bsh">curl -X PUT \ - -H "Accept: */*,application/problem+json" \ + -H "Accept: application/json,application/problem+json" \ -H "Content-Type: application/json" \ "https://example.com/a1-policy-management/v1/services" \ -d '{ @@ -14883,7 +14962,7 @@ public class ServiceRegistryAndSupervisionApiExample { ServiceRegistryAndSupervisionApi *apiInstance = [[ServiceRegistryAndSupervisionApi alloc] init]; ServiceRegistrationInfo *serviceRegistrationInfo = ; // -// Register a service +// Register or update a Service (putService) [apiInstance putServiceWith:serviceRegistrationInfo completionHandler: ^(Object output, NSError* error) { if (output) { @@ -14897,10 +14976,10 @@ ServiceRegistrationInfo *serviceRegistrationInfo = ; // </div> <div class="tab-pane" id="examples-ServiceRegistryAndSupervision-putService-0-javascript"> - <pre class="prettyprint"><code class="language-js">var A1PolicyManagementApi = require('a1_policy_management_api'); + <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api'); // Create an instance of the API class -var api = new A1PolicyManagementApi.ServiceRegistryAndSupervisionApi() +var api = new OnapCcsdkA1PolicyManagementApi.ServiceRegistryAndSupervisionApi() var serviceRegistrationInfo = ; // {ServiceRegistrationInfo} var callback = function(error, data, response) { @@ -14936,7 +15015,7 @@ namespace Example var serviceRegistrationInfo = new ServiceRegistrationInfo(); // ServiceRegistrationInfo | try { - // Register a service + // Register or update a Service (putService) Object result = apiInstance.putService(serviceRegistrationInfo); Debug.WriteLine(result); } catch (Exception e) { @@ -14995,7 +15074,7 @@ api_instance = openapi_client.ServiceRegistryAndSupervisionApi() serviceRegistrationInfo = # ServiceRegistrationInfo | try: - # Register a service + # Register or update a Service (putService) api_response = api_instance.put_service(serviceRegistrationInfo) pprint(api_response) except ApiException as e: @@ -15111,7 +15190,7 @@ $(document).ready(function() { var schemaWrapper = { "description" : "OK - Service updated", "content" : { - "*/*" : { + "application/json" : { "schema" : { "type" : "object" } @@ -15187,7 +15266,7 @@ $(document).ready(function() { var schemaWrapper = { "description" : "Created - Service created", "content" : { - "*/*" : { + "application/json" : { "schema" : { "type" : "object" } diff --git a/docs/offeredapis/swagger/custom/a1pms-api-custom-v3.json b/docs/offeredapis/swagger/custom/a1pms-api-custom-v3.json index 9514db8d..07f2ac42 100644 --- a/docs/offeredapis/swagger/custom/a1pms-api-custom-v3.json +++ b/docs/offeredapis/swagger/custom/a1pms-api-custom-v3.json @@ -5,39 +5,43 @@ "email" : "discuss-list@onap.com", "url" : "https://www.onap.org/" }, - "description" : "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managemecnt of A1 policies. <br/>The main tasks of the service are:</p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 policies and the Near-RT RICs</li><li>Maintaining a view of supported Near-RT RIC policy types</li><li>Supervision of using services (R-APPs). When a service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2><h3>A1 Policy Management</h3><p>This is an API for management of A1 Policies.</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository</h3><p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted for one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the PMS component.</p><h3>Service Registry and Supervision</h3><p>API used for registering services that uses PMS. Each A1 policy is optionally owned by a service. PMS can supervise each registered service by a heart-beat supervision and will automatically remove policies for unavailable services. Note that a service does not need to be registered in order to create A1 Policies. This is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used for access control of A1 Policy access. If configured, an external authorization provider is requested to grant access to the A1 Policy type.</p>", + "description" : "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes the latest API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2> <p>Note: parts of this API are strongly based on extracts of the O-RAN Alliance R1 Interface specification for A1 Policy Management, and those parts should be considered '© O-RAN ALLIANCE - All rights reserved.'</p> <h3>A1 Policy Management</h3> <p>This is the latest API for managing A1 Policies. This API is partially compliant with O-RAN Alliance R1 Interface specifications for A1 Policy Management:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service.</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then its A1 Policies are removed. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p>", "license" : { "name" : "Copyright (C) 2024 - 2025 OpenInfra Foundation Europe. Licensed under the Apache 2 License.", "url" : "http://www.apache.org/licenses/LICENSE-2.0" }, - "title" : "A1 policy management API", + "title" : "ONAP CCSDK - A1 Policy Management API", "version" : "1.0.0", - "x-api-id" : "a31c510b-20e6-4a08-af16-368c44d7fba8", + "x-api-id" : "e9776a07-0813-4fca-9801-6f892f0a7c13", "x-audience" : "external-public" }, + "externalDocs" : { + "description" : "Based on parts of O-RAN ALLIANCE specification: O-RAN.WG2.R1AP-v07.00", + "url" : "https://www.o-ran.org/specifications" + }, "servers" : [ { "url" : "{apiRoot}/a1-policy-management/v1", "variables" : { "apiRoot" : { "default" : "https://example.com", - "description" : "This is the Host:Port or Address where the A1-Policy Management Service can be accessed. Note: This URL path format aligns with the O-RAN Alliance (r) R1-AP specifiactions for A1 Policy Management" + "description" : "This is the Host:Port or Address where the A1-Policy Management Service can be accessed. Note: This URL path format aligns with the O-RAN Alliance R1-AP specifications for A1 Policy Management" } } } ], "tags" : [ { - "description" : "**(Newer Version)** API used to create polices, Policy Instances and get them as individual using an ID or get all policies/Instances.", + "description" : "API used to get, create, update and delete A1 Policy Instances. Also used to query A1 Policy Types.\n", "name" : "A1 Policy Management" }, { - "description" : "API used to get the NearRT-RIC for the managed element.", + "description" : "API used to get information about registered Near-RT RICs.\n", "name" : "NearRT-RIC Repository" }, { - "description" : "API used to keep the service Alive with in the timeout period", + "description" : "API used to manage registered service, and control their keep-alive status via heart-beat messages.\n", "name" : "Service Registry and Supervision" }, { - "description" : "API used to get the health status and statistics of this service", + "description" : "API used to get the health status and statistics of this service.\n", "name" : "Health Check" }, { - "description" : "API used to create or fetch the application configuration.", + "description" : "API used to create or fetch the application configuration.\n", "name" : "Configuration" } ], "paths" : { @@ -60,14 +64,25 @@ } }, "description" : "OK- Service is living Ok" + }, + "404" : { + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + } + }, + "description" : "Not Found" } }, + "summary" : "Get Status (getStatus)", "tags" : [ "Health Check" ] } }, "/rics/{ricId}" : { "get" : { - "description" : "A ricId path parameter must be specified to retrieve associated ric infomation", + "description" : "Get information about a Near-RT RIC", "operationId" : "getRic", "parameters" : [ { "description" : "The identity of a Near-RT RIC to get information for.", @@ -79,7 +94,7 @@ "nullable" : false, "type" : "string" }, - "style" : "form" + "style" : "simple" }, { "description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.", "explode" : false, @@ -119,16 +134,16 @@ "description" : "Not Found" } }, - "summary" : "Returns info for one Near-RT RIC", + "summary" : "Get a Near-RT RIC (getRic)", "tags" : [ "NearRT-RIC Repository" ] } }, "/rics" : { "get" : { - "description" : "The call returns all Near-RT RICs that supports a given policy type identity", + "description" : "Get all Near-RT RICs that supports a given A1 Policy Type ID", "operationId" : "getRics", "parameters" : [ { - "description" : "The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned", + "description" : "The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.\n", "explode" : true, "in" : "query", "name" : "policyTypeId", @@ -176,13 +191,13 @@ "description" : "Not Found" } }, - "summary" : "Query Near-RT RIC information", + "summary" : "Get Near-RT RICs for A1 Policy Type (getRics)", "tags" : [ "NearRT-RIC Repository" ] } }, "/policy-types" : { "get" : { - "description" : "Query policy type identities", + "description" : "Query A1 Policy Type identities using query parameters", "operationId" : "getPolicyTypes", "parameters" : [ { "description" : "Select types for the given Near-RT RIC identity.", @@ -195,7 +210,7 @@ }, "style" : "form" }, { - "description" : "Select types with the given type name (type identity has the format <typename_version>)", + "description" : "Select types compatible with the given type name (type identity has the format 'typename_version')", "explode" : true, "in" : "query", "name" : "typeName", @@ -205,7 +220,7 @@ }, "style" : "form" }, { - "description" : "Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order.", + "description" : "Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order.\n", "explode" : true, "in" : "query", "name" : "compatibleWithVersion", @@ -303,7 +318,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -336,12 +351,13 @@ "description" : "Service Unavailable" } }, + "summary" : "Get A1 Policy Types (getPolicyTypes)", "tags" : [ "A1 Policy Management" ] } }, "/policy-types/{policyTypeId}" : { "get" : { - "description" : "Returns a policy type definition", + "description" : "Get an A1 Policy Type definition using its policy type ID", "operationId" : "getPolicyTypeDefinition", "parameters" : [ { "explode" : false, @@ -378,7 +394,7 @@ } } }, - "description" : "OK - schema of the given policy type" + "description" : "OK - details and schema of the requested A1 Policy Type" }, "400" : { "content" : { @@ -438,7 +454,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -471,12 +487,13 @@ "description" : "Service Unavailable" } }, + "summary" : "Get an A1 Policy Type definition (getPolicyTypeDefinition)", "tags" : [ "A1 Policy Management" ] } }, "/policies/{policyId}" : { "delete" : { - "description" : "Deleting the policy using policyId.", + "description" : "Delete an existing A1 Policy instance using its policy ID.", "operationId" : "deletePolicy", "parameters" : [ { "explode" : false, @@ -501,7 +518,7 @@ } ], "responses" : { "204" : { - "description" : "The A1 policy was deleted" + "description" : "No Content" }, "400" : { "content" : { @@ -569,7 +586,7 @@ "example" : { "status" : 423, "title" : "Locked", - "detail" : "State is Locked in the provided request." + "detail" : "State is Locked in the provided request." }, "schema" : { "$ref" : "#/components/schemas/ErrorInformation" @@ -586,7 +603,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -619,11 +636,11 @@ "description" : "Service Unavailable" } }, - "summary" : "Delete a policy", + "summary" : "Delete an A1 Policy instance (deletePolicy)", "tags" : [ "A1 Policy Management" ] }, "get" : { - "description" : "Returns a policy", + "description" : "Get an A1 Policy instance's policy data using its policy ID", "operationId" : "getPolicy", "parameters" : [ { "explode" : false, @@ -720,7 +737,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -753,11 +770,12 @@ "description" : "Service Unavailable" } }, + "summary" : "Get an A1 Policy's policy data (getPolicy)", "tags" : [ "A1 Policy Management" ] }, "put" : { - "description" : "update a policy", - "operationId" : "putPolicy", + "description" : "Update an existing A1 Policy instance's policy data using its policy ID.", + "operationId" : "updatePolicy", "parameters" : [ { "explode" : false, "in" : "path", @@ -880,7 +898,7 @@ "example" : { "status" : 423, "title" : "Locked", - "detail" : "State is Locked in the provided request." + "detail" : "State is Locked in the provided request." }, "schema" : { "$ref" : "#/components/schemas/ErrorInformation" @@ -897,7 +915,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -930,12 +948,13 @@ "description" : "Service Unavailable" } }, + "summary" : "Update an A1 Policy's policy data (updatePolicy)", "tags" : [ "A1 Policy Management" ] } }, "/policies/{policyId}/status" : { "get" : { - "description" : "Query a policy status", + "description" : "Retrieve the status information for an A1 Policy Instance using its policy ID.", "operationId" : "getPolicyStatus", "parameters" : [ { "explode" : false, @@ -1027,7 +1046,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -1060,15 +1079,16 @@ "description" : "Service Unavailable" } }, + "summary" : "Get an A1 Policy Instance's status (getPolicyStatus)", "tags" : [ "A1 Policy Management" ] } }, "/policies" : { "get" : { - "description" : "Returns a list of A1 policies matching given search criteria. <br>If several query parameters are defined, the policies matching all conditions are returned.", - "operationId" : "getAllPolicies", + "description" : "Returns a collection of A1 Policy Instance IDs for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned.\n", + "operationId" : "getPolicyIds", "parameters" : [ { - "description" : "Select policies of a given policy type identity.", + "description" : "Select policies with a given A1 Policy Type ID.", "explode" : true, "in" : "query", "name" : "policyTypeId", @@ -1078,7 +1098,7 @@ }, "style" : "form" }, { - "description" : "Select policies of a given Near-RT RIC identity.", + "description" : "Select policies for a given Near-RT RIC identity.", "explode" : true, "in" : "query", "name" : "nearRtRicId", @@ -1088,7 +1108,7 @@ }, "style" : "form" }, { - "description" : "Select policies owned by a given service.", + "description" : "Select policies owned by a given service (registered or unregistered).", "explode" : true, "in" : "query", "name" : "serviceId", @@ -1098,7 +1118,7 @@ }, "style" : "form" }, { - "description" : "Select policies of types with the given type name (type identity has the format <typename_version>)", + "description" : "Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').", "explode" : true, "in" : "query", "name" : "typeName", @@ -1191,7 +1211,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -1224,11 +1244,11 @@ "description" : "Service Unavailable" } }, - "summary" : "Query policy identities", + "summary" : "Query for A1 Policy instances (getPolicyIds)", "tags" : [ "A1 Policy Management" ] }, "post" : { - "description" : "To create A1 policies", + "description" : "Create an A1 Policy Instance", "operationId" : "createPolicy", "requestBody" : { "content" : { @@ -1249,16 +1269,25 @@ } } }, - "description" : "Success case 201 created", + "description" : "Created", "headers" : { "Location" : { - "description" : "Contains the URI of the newly created resource", + "description" : "Contains the URI of the newly created A1 Policy Instances. This URI includes the A1 Policy Instance ID for the newly created policy instance.\n", "explode" : false, "required" : true, "schema" : { "type" : "string" }, "style" : "simple" + }, + "Content-Type" : { + "description" : "Media Type of the response", + "explode" : false, + "schema" : { + "example" : "application/json", + "type" : "string" + }, + "style" : "simple" } } }, @@ -1358,7 +1387,7 @@ "example" : { "status" : 423, "title" : "Locked", - "detail" : "State is Locked in the provided request." + "detail" : "State is Locked in the provided request." }, "schema" : { "$ref" : "#/components/schemas/ErrorInformation" @@ -1375,7 +1404,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -1408,12 +1437,13 @@ "description" : "Service Unavailable" } }, + "summary" : "Create an A1 Policy Instance (createPolicy)", "tags" : [ "A1 Policy Management" ] } }, "/configuration" : { "get" : { - "description" : "Returns the contents of the application configuration", + "description" : "Returns the entire contents of the Application Configuration.", "operationId" : "getConfiguration", "responses" : { "200" : { @@ -1437,10 +1467,11 @@ "description" : "Not Found" } }, + "summary" : "Get the Application Configuration (getConfiguration)", "tags" : [ "Configuration" ] }, "put" : { - "description" : "Replace the current configuration file with the given configuration", + "description" : "Replace the current Application Configuration with a new configuration. The new configuration, if accepted, will take effect after a short delay. The new configuration must comply with the Application Configuration schema, which can be found from the the Application Documentation (Developer Guide) \n", "operationId" : "putConfiguration", "requestBody" : { "content" : { @@ -1455,7 +1486,7 @@ "responses" : { "200" : { "content" : { - "*/*" : { + "application/json" : { "schema" : { "$ref" : "#/components/schemas/void" } @@ -1474,12 +1505,13 @@ "description" : "Bad Request" } }, + "summary" : "Set/Replace the Application Configuration (putConfiguration)", "tags" : [ "Configuration" ] } }, "/services/{serviceId}/keepalive" : { "put" : { - "description" : "A registered service should invoke this operation regularly to indicate that it is still alive. If a registered service fails to invoke this operation before the end of a timeout period the service will be deregistered and all its A1 policies wil be removed. (This timeout can be set or disabled when each service is initially registered)", + "description" : "A registered service should invoke this operation regularly to indicate that it is still alive. If a registered service fails to invoke some operation, or this operation, before the end of a timeout period the service will be deregistered and all its A1 policies wil be removed. This operation is only intended for registered services. (This timeout can be set or disabled when each service is initially registered)", "operationId" : "keepAliveService", "parameters" : [ { "explode" : false, @@ -1515,7 +1547,7 @@ "responses" : { "200" : { "content" : { - "*/*" : { + "application/json" : { "schema" : { "type" : "object" } @@ -1534,16 +1566,16 @@ "description" : "Not Found" } }, - "summary" : "Heartbeat indicates that the service is running", + "summary" : "Heartbeat message from a service (keepAliveService)", "tags" : [ "Service Registry and Supervision" ] } }, "/services" : { "get" : { - "description" : "Either information about a registered service with given identity or all registered services are returned.", + "description" : "Get information about all registered services, or a single registered service. If the service ID of a registered service is included in the query, information about that service is returned. Otherwise Information about all registered is returned. This operation does not retrieve information about unregistered services.\n", "operationId" : "getServices", "parameters" : [ { - "description" : "The identity of the service", + "description" : "The identity of the registered service", "explode" : true, "in" : "query", "name" : "serviceId", @@ -1591,7 +1623,7 @@ "description" : "Not Found" } }, - "summary" : "Returns service information", + "summary" : "Get Services (getServices)", "tags" : [ "Service Registry and Supervision" ] }, "put" : { @@ -1599,7 +1631,7 @@ "RICStatus" : { "{$request.body#/callback_url}" : { "post" : { - "description" : "The URL to this call is registered at Service registration. <br>Callouts to indicate status changes relevant for Services. Note that these calls are called by A1-PMS and they are not provided.", + "description" : "Callouts to indicate Near-RT RIC status changes relevant for Services. \nThe URL invoked by this callback is provided at Service registration.\n", "operationId" : "serviceCallback", "requestBody" : { "content" : { @@ -1633,12 +1665,13 @@ "description" : "Not Found" } }, - "summary" : "Callback for Near-RT RIC status." + "summary" : "Callback for Near-RT RIC status (serviceCallback)", + "tags" : [ "Service Registry and Supervision" ] } } } }, - "description" : "Registering a service is needed to:<ul><li>Get callbacks about available NearRT RICs.</li><li>Activate supervision of the service. If a service is inactive, its policies will automatically be deleted.</li></ul>Policies can be created even if the service is not registerred. This is a feature which it is optional to use.", + "description" : "Register a single service, or update a previous registration. Service registration is required to get callbacks about available NearRT RICs and to enable supervision of the service's active status. If a registered service becomes inactive, its policies can be automatically deleted. A1 Policy instances can also be created for unregistered services. If an unregistered service is later registered, the service's policies are retained when the service becomes registered. This feature is optional to use.\n", "operationId" : "putService", "requestBody" : { "content" : { @@ -1653,7 +1686,7 @@ "responses" : { "200" : { "content" : { - "*/*" : { + "application/json" : { "schema" : { "type" : "object" } @@ -1663,7 +1696,7 @@ }, "201" : { "content" : { - "*/*" : { + "application/json" : { "schema" : { "type" : "object" } @@ -1682,13 +1715,13 @@ "description" : "Bad Request" } }, - "summary" : "Register a service", + "summary" : "Register or update a Service (putService)", "tags" : [ "Service Registry and Supervision" ] } }, "/services/{serviceId}" : { "delete" : { - "description" : "Unregister a service", + "description" : "Unregister a registered Service using its service ID. Only registered services can be unregistered. All A1 Policy Instances for the previously registered service will be removed.\n", "operationId" : "deleteService", "parameters" : [ { "explode" : false, @@ -1714,7 +1747,7 @@ "responses" : { "204" : { "content" : { - "*/*" : { + "application/json" : { "schema" : { "type" : "object" } @@ -1733,6 +1766,7 @@ "description" : "Not Found" } }, + "summary" : "Unregister a Service (deleteService)", "tags" : [ "Service Registry and Supervision" ] } } @@ -1743,29 +1777,18 @@ "description" : "List of service information", "value" : { "serviceList" : [ { - "callbackUrl" : "callbackUrl", - "serviceId" : "serviceId", + "callbackUrl" : "http://callback.url", + "serviceId" : "serviceId1", "keepAliveIntervalSeconds" : 0, "timeSinceLastActivitySeconds" : 6 }, { - "callbackUrl" : "callbackUrl", - "serviceId" : "serviceId", - "keepAliveIntervalSeconds" : 0, - "timeSinceLastActivitySeconds" : 6 + "callbackUrl" : "http://callback.url", + "serviceId" : "serviceId2", + "keepAliveIntervalSeconds" : 500, + "timeSinceLastActivitySeconds" : 401 } ] } }, - "PolicyStatusInfo" : { - "description" : "Status for one A1-P Policy", - "value" : { - "lastModified" : "last_modified", - "status" : { - "value" : { - "status" : "status" - } - } - } - }, "StatusInfo" : { "value" : { "status" : "status" @@ -1773,24 +1796,24 @@ }, "RicInfo" : { "value" : { - "ricId" : "ricId", - "managedElementIds" : [ "managedElementId", "managedElementId" ], + "ricId" : "ricId1", + "managedElementIds" : [ "managedElementId1", "managedElementId2" ], "state" : "UNAVAILABLE", - "policyTypeIds" : [ "policyTypeId", "policyTypeId" ] + "policyTypeIds" : [ "policyTypeId1", "policyTypeId2" ] } }, "RicInfoList" : { "value" : { "rics" : [ { - "ricId" : "ricId", - "managedElementIds" : [ "managedElementId", "managedElementId" ], + "ricId" : "ricId1", + "managedElementIds" : [ "managedElementId1", "managedElementId2" ], "state" : "UNAVAILABLE", - "policyTypeIds" : [ "policyTypeId", "policyTypeId" ] + "policyTypeIds" : [ "policyTypeId1", "policyTypeId2" ] }, { - "ricId" : "ricId", - "managedElementIds" : [ "managedElementId", "managedElementId" ], + "ricId" : "ricId2", + "managedElementIds" : [ "managedElementId3", "managedElementId4" ], "state" : "UNAVAILABLE", - "policyTypeIds" : [ "policyTypeId", "policyTypeId" ] + "policyTypeIds" : [ "policyTypeId3", "policyTypeId4" ] } ] } }, @@ -1839,16 +1862,16 @@ "PolicyTypeInformation" : { "value" : [ { "policyTypeId" : "STD_QOS2_0.1.0", - "nearRtRicId" : "ricsim_g3_2" + "nearRtRicId" : "ric_g3_2" }, { "policyTypeId" : "STD_QOS_0_2_0", - "nearRtRicId" : "ricsim_g3_2" + "nearRtRicId" : "ric_g3_2" }, { "policyTypeId" : "STD_QOS2_0.1.0", - "nearRtRicId" : "ricsim_g3_1" + "nearRtRicId" : "ric_g3_1" }, { "policyTypeId" : "STD_QOS_0_2_0", - "nearRtRicId" : "ricsim_g3_1" + "nearRtRicId" : "ric_g3_1" } ] }, "PolicyTypeObject" : { @@ -1996,7 +2019,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -2034,7 +2057,7 @@ "example" : { "status" : 423, "title" : "Locked", - "detail" : "State is Locked in the provided request." + "detail" : "State is Locked in the provided request." }, "schema" : { "$ref" : "#/components/schemas/ErrorInformation" @@ -2046,14 +2069,14 @@ }, "schemas" : { "PolicyTypeInformation" : { - "description" : "Available policy types and for each policy type identifier the Near-RT RIC identifiers of those Near-RT RICs that support the related A1 policy type", + "description" : "A data tuple to indicate that an identified A1 Policy Type is supported at an identified Near-RT RIC.", "example" : { "policyTypeId" : "STD_QOS2_0.1.0", - "nearRtRicId" : "ricsim_g3_2" + "nearRtRicId" : "ric_g3_2" }, "properties" : { "policyTypeId" : { - "description" : "Identity of the policy type", + "description" : "A1 Policy Type identifier", "type" : "string" }, "nearRtRicId" : { @@ -2064,36 +2087,36 @@ "type" : "object" }, "PolicyObjectInformation" : { - "description" : "Information related to the creation of the policy", + "description" : "Information to create an A1 Policy Instance", "properties" : { "nearRtRicId" : { "description" : "Identity of the target Near-RT RIC", - "example" : "Near-RT-Ric-ID", + "example" : "Near-RT-Ric-ID1", "type" : "string" }, "transient" : { "default" : false, - "description" : "If true, the policy is deleted at RIC restart. If false, its value is maintained by this service until explicitly deleted. Default false.", + "description" : "If true, the policy is automatically deleted if the targeted Near-RT RIC restarts or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.\n", "nullable" : false, "type" : "boolean" }, "policyId" : { - "description" : "The identity of the Policy. If this value is present, it must be unique; otherwise, a random UUID is generated.", - "example" : "POLICY-ID", + "description" : "An optional identity to be used for the new A1 Policy Instance. If this value is present, it must be unique. If not present the new A1 Policy Instance will be assigned a newly generated unique ID, and the new ID can be extracted from the 'Location' header in the response.\n", + "example" : "POLICY-ID1", "type" : "string" }, "serviceId" : { "default" : "", - "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered.", - "example" : "rApp ID", + "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered. If the service is registered, the newly created A1 Policy Instance will be subject to the same supervision rules as the the service's other policies.", + "example" : "rApp 1", "type" : "string" }, "policyObject" : { "$ref" : "#/components/schemas/PolicyObject" }, "policyTypeId" : { - "description" : "Identity of the policy type", - "example" : "ORAN_QOS_1.0.0(typeName_SemVersion)", + "description" : "A1 Policy Type identity", + "example" : "ORAN_QOS_1.0.0 '(typeName_SemVersion)'", "type" : "string" } }, @@ -2104,7 +2127,7 @@ "description" : "Problem as defined in https://tools.ietf.org/html/rfc7807", "properties" : { "detail" : { - "description" : " A human-readable explanation specific to this occurrence of the problem.", + "description" : "A human-readable explanation specific to this occurrence of the problem.", "example" : "Policy type not found", "type" : "string" }, @@ -2114,7 +2137,7 @@ "type" : "string" }, "status" : { - "description" : "The HTTP status code generated by the origin server for this occurrence of the problem. ", + "description" : "The HTTP status code generated by the origin server for this occurrence of the problem.\n", "example" : 404, "format" : "int32", "type" : "integer" @@ -2123,16 +2146,16 @@ "type" : "object" }, "PolicyObject" : { - "description" : "Policy Object is a JSON representation of an A1 policy", + "description" : "Policy Object is a JSON representation policy data for an A1 Policy Instance. The schema for this policy data is defined in the corresponding A1 Policy Type. \n", "type" : "object" }, "PolicyTypeObject" : { - "description" : "policy type object as defined in A1TD", + "description" : "An A1 Policy Type, as defined in O-RAN Alliance A1TD", "example" : { "policySchema" : { "$schema" : "http://json-schema.org/draft-07/schema#", "title" : "STD_QOS_0_2_0", - "description" : "STD QOS policy type", + "description" : "Policy data schema for STD_QOS_0.2.0 A1 Policy Instances.", "type" : "object", "properties" : { "scope" : { @@ -2163,7 +2186,7 @@ "statusSchema" : { "$schema" : "http://json-schema.org/draft-07/schema#", "title" : "STD_QOS_0.2.0", - "description" : "STD QOS policy type status", + "description" : "Status schema for STD_QOS_0.2.0 A1 Policy Instances.", "type" : "object", "properties" : { "enforceStatus" : { @@ -2189,15 +2212,15 @@ "type" : "object" }, "PolicySchema" : { - "description" : "The schemas are policy type specific", + "description" : "A schema to define the policy data contents of A1 Policy Instances. Policy data schemas are Policy Type specific. All A1 Policy Instances of an A1 Policy Type should comply with the type's policy data schema.\n", "type" : "object" }, "StatusSchema" : { - "description" : "The optional schema for policy status", + "description" : "A schema to define the contents of the status information for A1 Policy Instances. Status schemas are Policy Type specific. All status information for all A1 Policy Instances of an A1 Policy Type should comply with the type's status schema.\n", "type" : "object" }, "PolicyStatusObject" : { - "description" : "A generic policy status object that can be used to transport any policy status. Additionally, a policy status shall be valid according to the schema of its specific policy type.", + "description" : "A generic policy status object that can be used to transport any policy status. Additionally, a schema for policy status can be defined in the corresponding A1 Policy Type.\n", "type" : "object" }, "void" : { @@ -2207,26 +2230,12 @@ "StatusInfo" : { "properties" : { "status" : { - "description" : "status text", + "description" : "Status text", "type" : "string" } }, "type" : "object" }, - "AuthorizationResult" : { - "description" : "Result of authorization", - "example" : { - "result" : true - }, - "properties" : { - "result" : { - "description" : "If true, the access is granted", - "type" : "boolean" - } - }, - "required" : [ "result" ], - "type" : "object" - }, "RicInfo" : { "description" : "Information for a Near-RT RIC", "properties" : { @@ -2235,22 +2244,22 @@ "type" : "string" }, "managedElementIds" : { - "description" : "O1 identities for managed entities", + "description" : "Identities for managed entities", "items" : { - "description" : "O1 identities for managed entities", + "description" : "Identity for a managed entity", "type" : "string" }, "type" : "array" }, "state" : { - "description" : "Represents the states for a Near-RT RIC", + "description" : "Represents the state of a Near-RT RIC", "enum" : [ "UNAVAILABLE", "AVAILABLE", "SYNCHRONIZING", "CONSISTENCY_CHECK" ], "type" : "string" }, "policyTypeIds" : { - "description" : "supported policy types", + "description" : "Supported A1 Policy Types", "items" : { - "description" : "supported policy types", + "description" : "Supported A1 Policy Type ID", "type" : "string" }, "type" : "array" @@ -2259,10 +2268,10 @@ "type" : "object" }, "ServiceRegistrationInfo" : { - "description" : "Information for one service", + "description" : "Information for a service to be registered", "properties" : { "callbackUrl" : { - "description" : "callback for notifying of Near-RT RIC state changes", + "description" : "Callback URL for notifying of Near-RT RIC state changes", "type" : "string" }, "serviceId" : { @@ -2270,7 +2279,7 @@ "type" : "string" }, "keepAliveIntervalSeconds" : { - "description" : "keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.", + "description" : "Keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n", "format" : "int64", "type" : "integer" } @@ -2278,24 +2287,11 @@ "required" : [ "serviceId" ], "type" : "object" }, - "PolicyStatusInfo" : { - "description" : "Status for one A1-P Policy", - "properties" : { - "lastModified" : { - "description" : "timestamp, last modification time", - "type" : "string" - }, - "status" : { - "description" : "the Policy status", - "type" : "object" - } - }, - "type" : "object" - }, "ServiceStatus" : { + "description" : "Information about a previously registered service", "properties" : { "callbackUrl" : { - "description" : "callback for notifying of RIC synchronization", + "description" : "Callback URL for notifying of Near-RT RIC state changes", "type" : "string" }, "serviceId" : { @@ -2303,12 +2299,12 @@ "type" : "string" }, "keepAliveIntervalSeconds" : { - "description" : "policy keep alive timeout", + "description" : "Keep alive interval (seconds) for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n", "format" : "int64", "type" : "integer" }, "timeSinceLastActivitySeconds" : { - "description" : "time since last invocation by the service", + "description" : "Time (seconds) since last recorded operation by the service", "format" : "int64", "type" : "integer" } @@ -2316,10 +2312,10 @@ "type" : "object" }, "RicInfoList" : { - "description" : "List of Near-RT RIC information", + "description" : "Collection of Near-RT RIC information objects", "properties" : { "rics" : { - "description" : "List of Near-RT RIC information", + "description" : "List of Near-RT RIC information objects", "items" : { "$ref" : "#/components/schemas/RicInfo" }, @@ -2328,45 +2324,15 @@ }, "type" : "object" }, - "input" : { - "description" : "input", - "properties" : { - "accessType" : { - "description" : "Access type", - "enum" : [ "READ", "WRITE", "DELETE" ], - "type" : "string" - }, - "authToken" : { - "description" : "Authorization token", - "type" : "string" - }, - "policyTypeId" : { - "description" : "Policy type identifier", - "type" : "string" - } - }, - "required" : [ "accessType", "authToken", "policyTypeId" ], - "type" : "object" - }, - "PolicyAuthorization" : { - "description" : "Authorization request for A1 policy requests", - "properties" : { - "input" : { - "$ref" : "#/components/schemas/input" - } - }, - "required" : [ "input" ], - "type" : "object" - }, "NearRtRicId" : { - "description" : "Identity of the policy", + "description" : "Identity of the Near-RT RIC", "type" : "string" }, "PolicyInformation" : { - "description" : "Near-RT RIC identifiers where A1 policies exist and for each Near-RT RIC identifier the policy identifiers of those policies that exist in that Near-RT RIC", + "description" : "Information tuple for a single A1 Policy Instance. Contains the A1 Policy Instance ID, and the ID of the Near-RT RIC where the policy is created. \n", "properties" : { "policyId" : { - "description" : "Identity of the policy", + "description" : "Identity of the A1 Policy Instance", "type" : "string" }, "nearRtRicId" : { @@ -2379,7 +2345,7 @@ "ServiceStatusList" : { "properties" : { "serviceList" : { - "description" : "List of service information", + "description" : "List of Service Status objects, describing a collection of registered services.", "items" : { "$ref" : "#/components/schemas/ServiceStatus" }, @@ -2389,14 +2355,14 @@ "type" : "object" }, "ServiceCallbackInfo" : { - "description" : "Information transferred as in Service callbacks (callback_url)", + "description" : "Information transferred in Service callbacks, \nif a callback URL was provided for a registered service\n", "properties" : { "ricId" : { "description" : "Identity of a Near-RT RIC", "type" : "string" }, "eventType" : { - "description" : "values:\nAVAILABLE: the Near-RT RIC has become available for A1 Policy management", + "description" : "values: \n AVAILABLE: the Near-RT RIC has become available for A1 Policy management\n", "enum" : [ "AVAILABLE" ], "type" : "string" } @@ -2404,34 +2370,23 @@ "required" : [ "eventType", "ricId" ], "type" : "object" }, - "Link" : { - "properties" : { - "templated" : { - "type" : "boolean" - }, - "href" : { - "type" : "string" - } - }, - "type" : "object" - }, "ProblemDetails" : { - "description" : "A problem detail to carry details in an HTTP response according to RFC 7807", + "description" : "Object to carry details about a problem in an HTTP response according to IETF RFC 7807", "properties" : { "type" : { - "description" : "a URI reference according to IETF RFC 3986 that identifies the problem type", + "description" : "URI reference according to IETF RFC 3986 that identifies the problem type", "type" : "string" }, "title" : { - "description" : "human-readable summary of the problem type", + "description" : "Human-readable summary of the problem type", "type" : "string" }, "status" : { - "description" : "the HTTP status code", + "description" : "HTTP status code", "type" : "number" }, "detail" : { - "description" : "human-readable explanation ", + "description" : "Human-readable explanation", "type" : "string" }, "instance" : { diff --git a/docs/offeredapis/swagger/pms-api-v3.json b/docs/offeredapis/swagger/pms-api-v3.json index 9514db8d..07f2ac42 100644 --- a/docs/offeredapis/swagger/pms-api-v3.json +++ b/docs/offeredapis/swagger/pms-api-v3.json @@ -5,39 +5,43 @@ "email" : "discuss-list@onap.com", "url" : "https://www.onap.org/" }, - "description" : "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managemecnt of A1 policies. <br/>The main tasks of the service are:</p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 policies and the Near-RT RICs</li><li>Maintaining a view of supported Near-RT RIC policy types</li><li>Supervision of using services (R-APPs). When a service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2><h3>A1 Policy Management</h3><p>This is an API for management of A1 Policies.</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository</h3><p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted for one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the PMS component.</p><h3>Service Registry and Supervision</h3><p>API used for registering services that uses PMS. Each A1 policy is optionally owned by a service. PMS can supervise each registered service by a heart-beat supervision and will automatically remove policies for unavailable services. Note that a service does not need to be registered in order to create A1 Policies. This is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used for access control of A1 Policy access. If configured, an external authorization provider is requested to grant access to the A1 Policy type.</p>", + "description" : "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes the latest API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2> <p>Note: parts of this API are strongly based on extracts of the O-RAN Alliance R1 Interface specification for A1 Policy Management, and those parts should be considered '© O-RAN ALLIANCE - All rights reserved.'</p> <h3>A1 Policy Management</h3> <p>This is the latest API for managing A1 Policies. This API is partially compliant with O-RAN Alliance R1 Interface specifications for A1 Policy Management:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service.</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then its A1 Policies are removed. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p>", "license" : { "name" : "Copyright (C) 2024 - 2025 OpenInfra Foundation Europe. Licensed under the Apache 2 License.", "url" : "http://www.apache.org/licenses/LICENSE-2.0" }, - "title" : "A1 policy management API", + "title" : "ONAP CCSDK - A1 Policy Management API", "version" : "1.0.0", - "x-api-id" : "a31c510b-20e6-4a08-af16-368c44d7fba8", + "x-api-id" : "e9776a07-0813-4fca-9801-6f892f0a7c13", "x-audience" : "external-public" }, + "externalDocs" : { + "description" : "Based on parts of O-RAN ALLIANCE specification: O-RAN.WG2.R1AP-v07.00", + "url" : "https://www.o-ran.org/specifications" + }, "servers" : [ { "url" : "{apiRoot}/a1-policy-management/v1", "variables" : { "apiRoot" : { "default" : "https://example.com", - "description" : "This is the Host:Port or Address where the A1-Policy Management Service can be accessed. Note: This URL path format aligns with the O-RAN Alliance (r) R1-AP specifiactions for A1 Policy Management" + "description" : "This is the Host:Port or Address where the A1-Policy Management Service can be accessed. Note: This URL path format aligns with the O-RAN Alliance R1-AP specifications for A1 Policy Management" } } } ], "tags" : [ { - "description" : "**(Newer Version)** API used to create polices, Policy Instances and get them as individual using an ID or get all policies/Instances.", + "description" : "API used to get, create, update and delete A1 Policy Instances. Also used to query A1 Policy Types.\n", "name" : "A1 Policy Management" }, { - "description" : "API used to get the NearRT-RIC for the managed element.", + "description" : "API used to get information about registered Near-RT RICs.\n", "name" : "NearRT-RIC Repository" }, { - "description" : "API used to keep the service Alive with in the timeout period", + "description" : "API used to manage registered service, and control their keep-alive status via heart-beat messages.\n", "name" : "Service Registry and Supervision" }, { - "description" : "API used to get the health status and statistics of this service", + "description" : "API used to get the health status and statistics of this service.\n", "name" : "Health Check" }, { - "description" : "API used to create or fetch the application configuration.", + "description" : "API used to create or fetch the application configuration.\n", "name" : "Configuration" } ], "paths" : { @@ -60,14 +64,25 @@ } }, "description" : "OK- Service is living Ok" + }, + "404" : { + "content" : { + "application/problem+json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + } + }, + "description" : "Not Found" } }, + "summary" : "Get Status (getStatus)", "tags" : [ "Health Check" ] } }, "/rics/{ricId}" : { "get" : { - "description" : "A ricId path parameter must be specified to retrieve associated ric infomation", + "description" : "Get information about a Near-RT RIC", "operationId" : "getRic", "parameters" : [ { "description" : "The identity of a Near-RT RIC to get information for.", @@ -79,7 +94,7 @@ "nullable" : false, "type" : "string" }, - "style" : "form" + "style" : "simple" }, { "description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.", "explode" : false, @@ -119,16 +134,16 @@ "description" : "Not Found" } }, - "summary" : "Returns info for one Near-RT RIC", + "summary" : "Get a Near-RT RIC (getRic)", "tags" : [ "NearRT-RIC Repository" ] } }, "/rics" : { "get" : { - "description" : "The call returns all Near-RT RICs that supports a given policy type identity", + "description" : "Get all Near-RT RICs that supports a given A1 Policy Type ID", "operationId" : "getRics", "parameters" : [ { - "description" : "The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned", + "description" : "The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.\n", "explode" : true, "in" : "query", "name" : "policyTypeId", @@ -176,13 +191,13 @@ "description" : "Not Found" } }, - "summary" : "Query Near-RT RIC information", + "summary" : "Get Near-RT RICs for A1 Policy Type (getRics)", "tags" : [ "NearRT-RIC Repository" ] } }, "/policy-types" : { "get" : { - "description" : "Query policy type identities", + "description" : "Query A1 Policy Type identities using query parameters", "operationId" : "getPolicyTypes", "parameters" : [ { "description" : "Select types for the given Near-RT RIC identity.", @@ -195,7 +210,7 @@ }, "style" : "form" }, { - "description" : "Select types with the given type name (type identity has the format <typename_version>)", + "description" : "Select types compatible with the given type name (type identity has the format 'typename_version')", "explode" : true, "in" : "query", "name" : "typeName", @@ -205,7 +220,7 @@ }, "style" : "form" }, { - "description" : "Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order.", + "description" : "Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order.\n", "explode" : true, "in" : "query", "name" : "compatibleWithVersion", @@ -303,7 +318,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -336,12 +351,13 @@ "description" : "Service Unavailable" } }, + "summary" : "Get A1 Policy Types (getPolicyTypes)", "tags" : [ "A1 Policy Management" ] } }, "/policy-types/{policyTypeId}" : { "get" : { - "description" : "Returns a policy type definition", + "description" : "Get an A1 Policy Type definition using its policy type ID", "operationId" : "getPolicyTypeDefinition", "parameters" : [ { "explode" : false, @@ -378,7 +394,7 @@ } } }, - "description" : "OK - schema of the given policy type" + "description" : "OK - details and schema of the requested A1 Policy Type" }, "400" : { "content" : { @@ -438,7 +454,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -471,12 +487,13 @@ "description" : "Service Unavailable" } }, + "summary" : "Get an A1 Policy Type definition (getPolicyTypeDefinition)", "tags" : [ "A1 Policy Management" ] } }, "/policies/{policyId}" : { "delete" : { - "description" : "Deleting the policy using policyId.", + "description" : "Delete an existing A1 Policy instance using its policy ID.", "operationId" : "deletePolicy", "parameters" : [ { "explode" : false, @@ -501,7 +518,7 @@ } ], "responses" : { "204" : { - "description" : "The A1 policy was deleted" + "description" : "No Content" }, "400" : { "content" : { @@ -569,7 +586,7 @@ "example" : { "status" : 423, "title" : "Locked", - "detail" : "State is Locked in the provided request." + "detail" : "State is Locked in the provided request." }, "schema" : { "$ref" : "#/components/schemas/ErrorInformation" @@ -586,7 +603,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -619,11 +636,11 @@ "description" : "Service Unavailable" } }, - "summary" : "Delete a policy", + "summary" : "Delete an A1 Policy instance (deletePolicy)", "tags" : [ "A1 Policy Management" ] }, "get" : { - "description" : "Returns a policy", + "description" : "Get an A1 Policy instance's policy data using its policy ID", "operationId" : "getPolicy", "parameters" : [ { "explode" : false, @@ -720,7 +737,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -753,11 +770,12 @@ "description" : "Service Unavailable" } }, + "summary" : "Get an A1 Policy's policy data (getPolicy)", "tags" : [ "A1 Policy Management" ] }, "put" : { - "description" : "update a policy", - "operationId" : "putPolicy", + "description" : "Update an existing A1 Policy instance's policy data using its policy ID.", + "operationId" : "updatePolicy", "parameters" : [ { "explode" : false, "in" : "path", @@ -880,7 +898,7 @@ "example" : { "status" : 423, "title" : "Locked", - "detail" : "State is Locked in the provided request." + "detail" : "State is Locked in the provided request." }, "schema" : { "$ref" : "#/components/schemas/ErrorInformation" @@ -897,7 +915,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -930,12 +948,13 @@ "description" : "Service Unavailable" } }, + "summary" : "Update an A1 Policy's policy data (updatePolicy)", "tags" : [ "A1 Policy Management" ] } }, "/policies/{policyId}/status" : { "get" : { - "description" : "Query a policy status", + "description" : "Retrieve the status information for an A1 Policy Instance using its policy ID.", "operationId" : "getPolicyStatus", "parameters" : [ { "explode" : false, @@ -1027,7 +1046,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -1060,15 +1079,16 @@ "description" : "Service Unavailable" } }, + "summary" : "Get an A1 Policy Instance's status (getPolicyStatus)", "tags" : [ "A1 Policy Management" ] } }, "/policies" : { "get" : { - "description" : "Returns a list of A1 policies matching given search criteria. <br>If several query parameters are defined, the policies matching all conditions are returned.", - "operationId" : "getAllPolicies", + "description" : "Returns a collection of A1 Policy Instance IDs for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned.\n", + "operationId" : "getPolicyIds", "parameters" : [ { - "description" : "Select policies of a given policy type identity.", + "description" : "Select policies with a given A1 Policy Type ID.", "explode" : true, "in" : "query", "name" : "policyTypeId", @@ -1078,7 +1098,7 @@ }, "style" : "form" }, { - "description" : "Select policies of a given Near-RT RIC identity.", + "description" : "Select policies for a given Near-RT RIC identity.", "explode" : true, "in" : "query", "name" : "nearRtRicId", @@ -1088,7 +1108,7 @@ }, "style" : "form" }, { - "description" : "Select policies owned by a given service.", + "description" : "Select policies owned by a given service (registered or unregistered).", "explode" : true, "in" : "query", "name" : "serviceId", @@ -1098,7 +1118,7 @@ }, "style" : "form" }, { - "description" : "Select policies of types with the given type name (type identity has the format <typename_version>)", + "description" : "Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').", "explode" : true, "in" : "query", "name" : "typeName", @@ -1191,7 +1211,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -1224,11 +1244,11 @@ "description" : "Service Unavailable" } }, - "summary" : "Query policy identities", + "summary" : "Query for A1 Policy instances (getPolicyIds)", "tags" : [ "A1 Policy Management" ] }, "post" : { - "description" : "To create A1 policies", + "description" : "Create an A1 Policy Instance", "operationId" : "createPolicy", "requestBody" : { "content" : { @@ -1249,16 +1269,25 @@ } } }, - "description" : "Success case 201 created", + "description" : "Created", "headers" : { "Location" : { - "description" : "Contains the URI of the newly created resource", + "description" : "Contains the URI of the newly created A1 Policy Instances. This URI includes the A1 Policy Instance ID for the newly created policy instance.\n", "explode" : false, "required" : true, "schema" : { "type" : "string" }, "style" : "simple" + }, + "Content-Type" : { + "description" : "Media Type of the response", + "explode" : false, + "schema" : { + "example" : "application/json", + "type" : "string" + }, + "style" : "simple" } } }, @@ -1358,7 +1387,7 @@ "example" : { "status" : 423, "title" : "Locked", - "detail" : "State is Locked in the provided request." + "detail" : "State is Locked in the provided request." }, "schema" : { "$ref" : "#/components/schemas/ErrorInformation" @@ -1375,7 +1404,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -1408,12 +1437,13 @@ "description" : "Service Unavailable" } }, + "summary" : "Create an A1 Policy Instance (createPolicy)", "tags" : [ "A1 Policy Management" ] } }, "/configuration" : { "get" : { - "description" : "Returns the contents of the application configuration", + "description" : "Returns the entire contents of the Application Configuration.", "operationId" : "getConfiguration", "responses" : { "200" : { @@ -1437,10 +1467,11 @@ "description" : "Not Found" } }, + "summary" : "Get the Application Configuration (getConfiguration)", "tags" : [ "Configuration" ] }, "put" : { - "description" : "Replace the current configuration file with the given configuration", + "description" : "Replace the current Application Configuration with a new configuration. The new configuration, if accepted, will take effect after a short delay. The new configuration must comply with the Application Configuration schema, which can be found from the the Application Documentation (Developer Guide) \n", "operationId" : "putConfiguration", "requestBody" : { "content" : { @@ -1455,7 +1486,7 @@ "responses" : { "200" : { "content" : { - "*/*" : { + "application/json" : { "schema" : { "$ref" : "#/components/schemas/void" } @@ -1474,12 +1505,13 @@ "description" : "Bad Request" } }, + "summary" : "Set/Replace the Application Configuration (putConfiguration)", "tags" : [ "Configuration" ] } }, "/services/{serviceId}/keepalive" : { "put" : { - "description" : "A registered service should invoke this operation regularly to indicate that it is still alive. If a registered service fails to invoke this operation before the end of a timeout period the service will be deregistered and all its A1 policies wil be removed. (This timeout can be set or disabled when each service is initially registered)", + "description" : "A registered service should invoke this operation regularly to indicate that it is still alive. If a registered service fails to invoke some operation, or this operation, before the end of a timeout period the service will be deregistered and all its A1 policies wil be removed. This operation is only intended for registered services. (This timeout can be set or disabled when each service is initially registered)", "operationId" : "keepAliveService", "parameters" : [ { "explode" : false, @@ -1515,7 +1547,7 @@ "responses" : { "200" : { "content" : { - "*/*" : { + "application/json" : { "schema" : { "type" : "object" } @@ -1534,16 +1566,16 @@ "description" : "Not Found" } }, - "summary" : "Heartbeat indicates that the service is running", + "summary" : "Heartbeat message from a service (keepAliveService)", "tags" : [ "Service Registry and Supervision" ] } }, "/services" : { "get" : { - "description" : "Either information about a registered service with given identity or all registered services are returned.", + "description" : "Get information about all registered services, or a single registered service. If the service ID of a registered service is included in the query, information about that service is returned. Otherwise Information about all registered is returned. This operation does not retrieve information about unregistered services.\n", "operationId" : "getServices", "parameters" : [ { - "description" : "The identity of the service", + "description" : "The identity of the registered service", "explode" : true, "in" : "query", "name" : "serviceId", @@ -1591,7 +1623,7 @@ "description" : "Not Found" } }, - "summary" : "Returns service information", + "summary" : "Get Services (getServices)", "tags" : [ "Service Registry and Supervision" ] }, "put" : { @@ -1599,7 +1631,7 @@ "RICStatus" : { "{$request.body#/callback_url}" : { "post" : { - "description" : "The URL to this call is registered at Service registration. <br>Callouts to indicate status changes relevant for Services. Note that these calls are called by A1-PMS and they are not provided.", + "description" : "Callouts to indicate Near-RT RIC status changes relevant for Services. \nThe URL invoked by this callback is provided at Service registration.\n", "operationId" : "serviceCallback", "requestBody" : { "content" : { @@ -1633,12 +1665,13 @@ "description" : "Not Found" } }, - "summary" : "Callback for Near-RT RIC status." + "summary" : "Callback for Near-RT RIC status (serviceCallback)", + "tags" : [ "Service Registry and Supervision" ] } } } }, - "description" : "Registering a service is needed to:<ul><li>Get callbacks about available NearRT RICs.</li><li>Activate supervision of the service. If a service is inactive, its policies will automatically be deleted.</li></ul>Policies can be created even if the service is not registerred. This is a feature which it is optional to use.", + "description" : "Register a single service, or update a previous registration. Service registration is required to get callbacks about available NearRT RICs and to enable supervision of the service's active status. If a registered service becomes inactive, its policies can be automatically deleted. A1 Policy instances can also be created for unregistered services. If an unregistered service is later registered, the service's policies are retained when the service becomes registered. This feature is optional to use.\n", "operationId" : "putService", "requestBody" : { "content" : { @@ -1653,7 +1686,7 @@ "responses" : { "200" : { "content" : { - "*/*" : { + "application/json" : { "schema" : { "type" : "object" } @@ -1663,7 +1696,7 @@ }, "201" : { "content" : { - "*/*" : { + "application/json" : { "schema" : { "type" : "object" } @@ -1682,13 +1715,13 @@ "description" : "Bad Request" } }, - "summary" : "Register a service", + "summary" : "Register or update a Service (putService)", "tags" : [ "Service Registry and Supervision" ] } }, "/services/{serviceId}" : { "delete" : { - "description" : "Unregister a service", + "description" : "Unregister a registered Service using its service ID. Only registered services can be unregistered. All A1 Policy Instances for the previously registered service will be removed.\n", "operationId" : "deleteService", "parameters" : [ { "explode" : false, @@ -1714,7 +1747,7 @@ "responses" : { "204" : { "content" : { - "*/*" : { + "application/json" : { "schema" : { "type" : "object" } @@ -1733,6 +1766,7 @@ "description" : "Not Found" } }, + "summary" : "Unregister a Service (deleteService)", "tags" : [ "Service Registry and Supervision" ] } } @@ -1743,29 +1777,18 @@ "description" : "List of service information", "value" : { "serviceList" : [ { - "callbackUrl" : "callbackUrl", - "serviceId" : "serviceId", + "callbackUrl" : "http://callback.url", + "serviceId" : "serviceId1", "keepAliveIntervalSeconds" : 0, "timeSinceLastActivitySeconds" : 6 }, { - "callbackUrl" : "callbackUrl", - "serviceId" : "serviceId", - "keepAliveIntervalSeconds" : 0, - "timeSinceLastActivitySeconds" : 6 + "callbackUrl" : "http://callback.url", + "serviceId" : "serviceId2", + "keepAliveIntervalSeconds" : 500, + "timeSinceLastActivitySeconds" : 401 } ] } }, - "PolicyStatusInfo" : { - "description" : "Status for one A1-P Policy", - "value" : { - "lastModified" : "last_modified", - "status" : { - "value" : { - "status" : "status" - } - } - } - }, "StatusInfo" : { "value" : { "status" : "status" @@ -1773,24 +1796,24 @@ }, "RicInfo" : { "value" : { - "ricId" : "ricId", - "managedElementIds" : [ "managedElementId", "managedElementId" ], + "ricId" : "ricId1", + "managedElementIds" : [ "managedElementId1", "managedElementId2" ], "state" : "UNAVAILABLE", - "policyTypeIds" : [ "policyTypeId", "policyTypeId" ] + "policyTypeIds" : [ "policyTypeId1", "policyTypeId2" ] } }, "RicInfoList" : { "value" : { "rics" : [ { - "ricId" : "ricId", - "managedElementIds" : [ "managedElementId", "managedElementId" ], + "ricId" : "ricId1", + "managedElementIds" : [ "managedElementId1", "managedElementId2" ], "state" : "UNAVAILABLE", - "policyTypeIds" : [ "policyTypeId", "policyTypeId" ] + "policyTypeIds" : [ "policyTypeId1", "policyTypeId2" ] }, { - "ricId" : "ricId", - "managedElementIds" : [ "managedElementId", "managedElementId" ], + "ricId" : "ricId2", + "managedElementIds" : [ "managedElementId3", "managedElementId4" ], "state" : "UNAVAILABLE", - "policyTypeIds" : [ "policyTypeId", "policyTypeId" ] + "policyTypeIds" : [ "policyTypeId3", "policyTypeId4" ] } ] } }, @@ -1839,16 +1862,16 @@ "PolicyTypeInformation" : { "value" : [ { "policyTypeId" : "STD_QOS2_0.1.0", - "nearRtRicId" : "ricsim_g3_2" + "nearRtRicId" : "ric_g3_2" }, { "policyTypeId" : "STD_QOS_0_2_0", - "nearRtRicId" : "ricsim_g3_2" + "nearRtRicId" : "ric_g3_2" }, { "policyTypeId" : "STD_QOS2_0.1.0", - "nearRtRicId" : "ricsim_g3_1" + "nearRtRicId" : "ric_g3_1" }, { "policyTypeId" : "STD_QOS_0_2_0", - "nearRtRicId" : "ricsim_g3_1" + "nearRtRicId" : "ric_g3_1" } ] }, "PolicyTypeObject" : { @@ -1996,7 +2019,7 @@ } } }, - "description" : "Too Many Request" + "description" : "Too Many Requests" }, "500" : { "content" : { @@ -2034,7 +2057,7 @@ "example" : { "status" : 423, "title" : "Locked", - "detail" : "State is Locked in the provided request." + "detail" : "State is Locked in the provided request." }, "schema" : { "$ref" : "#/components/schemas/ErrorInformation" @@ -2046,14 +2069,14 @@ }, "schemas" : { "PolicyTypeInformation" : { - "description" : "Available policy types and for each policy type identifier the Near-RT RIC identifiers of those Near-RT RICs that support the related A1 policy type", + "description" : "A data tuple to indicate that an identified A1 Policy Type is supported at an identified Near-RT RIC.", "example" : { "policyTypeId" : "STD_QOS2_0.1.0", - "nearRtRicId" : "ricsim_g3_2" + "nearRtRicId" : "ric_g3_2" }, "properties" : { "policyTypeId" : { - "description" : "Identity of the policy type", + "description" : "A1 Policy Type identifier", "type" : "string" }, "nearRtRicId" : { @@ -2064,36 +2087,36 @@ "type" : "object" }, "PolicyObjectInformation" : { - "description" : "Information related to the creation of the policy", + "description" : "Information to create an A1 Policy Instance", "properties" : { "nearRtRicId" : { "description" : "Identity of the target Near-RT RIC", - "example" : "Near-RT-Ric-ID", + "example" : "Near-RT-Ric-ID1", "type" : "string" }, "transient" : { "default" : false, - "description" : "If true, the policy is deleted at RIC restart. If false, its value is maintained by this service until explicitly deleted. Default false.", + "description" : "If true, the policy is automatically deleted if the targeted Near-RT RIC restarts or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.\n", "nullable" : false, "type" : "boolean" }, "policyId" : { - "description" : "The identity of the Policy. If this value is present, it must be unique; otherwise, a random UUID is generated.", - "example" : "POLICY-ID", + "description" : "An optional identity to be used for the new A1 Policy Instance. If this value is present, it must be unique. If not present the new A1 Policy Instance will be assigned a newly generated unique ID, and the new ID can be extracted from the 'Location' header in the response.\n", + "example" : "POLICY-ID1", "type" : "string" }, "serviceId" : { "default" : "", - "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered.", - "example" : "rApp ID", + "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered. If the service is registered, the newly created A1 Policy Instance will be subject to the same supervision rules as the the service's other policies.", + "example" : "rApp 1", "type" : "string" }, "policyObject" : { "$ref" : "#/components/schemas/PolicyObject" }, "policyTypeId" : { - "description" : "Identity of the policy type", - "example" : "ORAN_QOS_1.0.0(typeName_SemVersion)", + "description" : "A1 Policy Type identity", + "example" : "ORAN_QOS_1.0.0 '(typeName_SemVersion)'", "type" : "string" } }, @@ -2104,7 +2127,7 @@ "description" : "Problem as defined in https://tools.ietf.org/html/rfc7807", "properties" : { "detail" : { - "description" : " A human-readable explanation specific to this occurrence of the problem.", + "description" : "A human-readable explanation specific to this occurrence of the problem.", "example" : "Policy type not found", "type" : "string" }, @@ -2114,7 +2137,7 @@ "type" : "string" }, "status" : { - "description" : "The HTTP status code generated by the origin server for this occurrence of the problem. ", + "description" : "The HTTP status code generated by the origin server for this occurrence of the problem.\n", "example" : 404, "format" : "int32", "type" : "integer" @@ -2123,16 +2146,16 @@ "type" : "object" }, "PolicyObject" : { - "description" : "Policy Object is a JSON representation of an A1 policy", + "description" : "Policy Object is a JSON representation policy data for an A1 Policy Instance. The schema for this policy data is defined in the corresponding A1 Policy Type. \n", "type" : "object" }, "PolicyTypeObject" : { - "description" : "policy type object as defined in A1TD", + "description" : "An A1 Policy Type, as defined in O-RAN Alliance A1TD", "example" : { "policySchema" : { "$schema" : "http://json-schema.org/draft-07/schema#", "title" : "STD_QOS_0_2_0", - "description" : "STD QOS policy type", + "description" : "Policy data schema for STD_QOS_0.2.0 A1 Policy Instances.", "type" : "object", "properties" : { "scope" : { @@ -2163,7 +2186,7 @@ "statusSchema" : { "$schema" : "http://json-schema.org/draft-07/schema#", "title" : "STD_QOS_0.2.0", - "description" : "STD QOS policy type status", + "description" : "Status schema for STD_QOS_0.2.0 A1 Policy Instances.", "type" : "object", "properties" : { "enforceStatus" : { @@ -2189,15 +2212,15 @@ "type" : "object" }, "PolicySchema" : { - "description" : "The schemas are policy type specific", + "description" : "A schema to define the policy data contents of A1 Policy Instances. Policy data schemas are Policy Type specific. All A1 Policy Instances of an A1 Policy Type should comply with the type's policy data schema.\n", "type" : "object" }, "StatusSchema" : { - "description" : "The optional schema for policy status", + "description" : "A schema to define the contents of the status information for A1 Policy Instances. Status schemas are Policy Type specific. All status information for all A1 Policy Instances of an A1 Policy Type should comply with the type's status schema.\n", "type" : "object" }, "PolicyStatusObject" : { - "description" : "A generic policy status object that can be used to transport any policy status. Additionally, a policy status shall be valid according to the schema of its specific policy type.", + "description" : "A generic policy status object that can be used to transport any policy status. Additionally, a schema for policy status can be defined in the corresponding A1 Policy Type.\n", "type" : "object" }, "void" : { @@ -2207,26 +2230,12 @@ "StatusInfo" : { "properties" : { "status" : { - "description" : "status text", + "description" : "Status text", "type" : "string" } }, "type" : "object" }, - "AuthorizationResult" : { - "description" : "Result of authorization", - "example" : { - "result" : true - }, - "properties" : { - "result" : { - "description" : "If true, the access is granted", - "type" : "boolean" - } - }, - "required" : [ "result" ], - "type" : "object" - }, "RicInfo" : { "description" : "Information for a Near-RT RIC", "properties" : { @@ -2235,22 +2244,22 @@ "type" : "string" }, "managedElementIds" : { - "description" : "O1 identities for managed entities", + "description" : "Identities for managed entities", "items" : { - "description" : "O1 identities for managed entities", + "description" : "Identity for a managed entity", "type" : "string" }, "type" : "array" }, "state" : { - "description" : "Represents the states for a Near-RT RIC", + "description" : "Represents the state of a Near-RT RIC", "enum" : [ "UNAVAILABLE", "AVAILABLE", "SYNCHRONIZING", "CONSISTENCY_CHECK" ], "type" : "string" }, "policyTypeIds" : { - "description" : "supported policy types", + "description" : "Supported A1 Policy Types", "items" : { - "description" : "supported policy types", + "description" : "Supported A1 Policy Type ID", "type" : "string" }, "type" : "array" @@ -2259,10 +2268,10 @@ "type" : "object" }, "ServiceRegistrationInfo" : { - "description" : "Information for one service", + "description" : "Information for a service to be registered", "properties" : { "callbackUrl" : { - "description" : "callback for notifying of Near-RT RIC state changes", + "description" : "Callback URL for notifying of Near-RT RIC state changes", "type" : "string" }, "serviceId" : { @@ -2270,7 +2279,7 @@ "type" : "string" }, "keepAliveIntervalSeconds" : { - "description" : "keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.", + "description" : "Keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n", "format" : "int64", "type" : "integer" } @@ -2278,24 +2287,11 @@ "required" : [ "serviceId" ], "type" : "object" }, - "PolicyStatusInfo" : { - "description" : "Status for one A1-P Policy", - "properties" : { - "lastModified" : { - "description" : "timestamp, last modification time", - "type" : "string" - }, - "status" : { - "description" : "the Policy status", - "type" : "object" - } - }, - "type" : "object" - }, "ServiceStatus" : { + "description" : "Information about a previously registered service", "properties" : { "callbackUrl" : { - "description" : "callback for notifying of RIC synchronization", + "description" : "Callback URL for notifying of Near-RT RIC state changes", "type" : "string" }, "serviceId" : { @@ -2303,12 +2299,12 @@ "type" : "string" }, "keepAliveIntervalSeconds" : { - "description" : "policy keep alive timeout", + "description" : "Keep alive interval (seconds) for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n", "format" : "int64", "type" : "integer" }, "timeSinceLastActivitySeconds" : { - "description" : "time since last invocation by the service", + "description" : "Time (seconds) since last recorded operation by the service", "format" : "int64", "type" : "integer" } @@ -2316,10 +2312,10 @@ "type" : "object" }, "RicInfoList" : { - "description" : "List of Near-RT RIC information", + "description" : "Collection of Near-RT RIC information objects", "properties" : { "rics" : { - "description" : "List of Near-RT RIC information", + "description" : "List of Near-RT RIC information objects", "items" : { "$ref" : "#/components/schemas/RicInfo" }, @@ -2328,45 +2324,15 @@ }, "type" : "object" }, - "input" : { - "description" : "input", - "properties" : { - "accessType" : { - "description" : "Access type", - "enum" : [ "READ", "WRITE", "DELETE" ], - "type" : "string" - }, - "authToken" : { - "description" : "Authorization token", - "type" : "string" - }, - "policyTypeId" : { - "description" : "Policy type identifier", - "type" : "string" - } - }, - "required" : [ "accessType", "authToken", "policyTypeId" ], - "type" : "object" - }, - "PolicyAuthorization" : { - "description" : "Authorization request for A1 policy requests", - "properties" : { - "input" : { - "$ref" : "#/components/schemas/input" - } - }, - "required" : [ "input" ], - "type" : "object" - }, "NearRtRicId" : { - "description" : "Identity of the policy", + "description" : "Identity of the Near-RT RIC", "type" : "string" }, "PolicyInformation" : { - "description" : "Near-RT RIC identifiers where A1 policies exist and for each Near-RT RIC identifier the policy identifiers of those policies that exist in that Near-RT RIC", + "description" : "Information tuple for a single A1 Policy Instance. Contains the A1 Policy Instance ID, and the ID of the Near-RT RIC where the policy is created. \n", "properties" : { "policyId" : { - "description" : "Identity of the policy", + "description" : "Identity of the A1 Policy Instance", "type" : "string" }, "nearRtRicId" : { @@ -2379,7 +2345,7 @@ "ServiceStatusList" : { "properties" : { "serviceList" : { - "description" : "List of service information", + "description" : "List of Service Status objects, describing a collection of registered services.", "items" : { "$ref" : "#/components/schemas/ServiceStatus" }, @@ -2389,14 +2355,14 @@ "type" : "object" }, "ServiceCallbackInfo" : { - "description" : "Information transferred as in Service callbacks (callback_url)", + "description" : "Information transferred in Service callbacks, \nif a callback URL was provided for a registered service\n", "properties" : { "ricId" : { "description" : "Identity of a Near-RT RIC", "type" : "string" }, "eventType" : { - "description" : "values:\nAVAILABLE: the Near-RT RIC has become available for A1 Policy management", + "description" : "values: \n AVAILABLE: the Near-RT RIC has become available for A1 Policy management\n", "enum" : [ "AVAILABLE" ], "type" : "string" } @@ -2404,34 +2370,23 @@ "required" : [ "eventType", "ricId" ], "type" : "object" }, - "Link" : { - "properties" : { - "templated" : { - "type" : "boolean" - }, - "href" : { - "type" : "string" - } - }, - "type" : "object" - }, "ProblemDetails" : { - "description" : "A problem detail to carry details in an HTTP response according to RFC 7807", + "description" : "Object to carry details about a problem in an HTTP response according to IETF RFC 7807", "properties" : { "type" : { - "description" : "a URI reference according to IETF RFC 3986 that identifies the problem type", + "description" : "URI reference according to IETF RFC 3986 that identifies the problem type", "type" : "string" }, "title" : { - "description" : "human-readable summary of the problem type", + "description" : "Human-readable summary of the problem type", "type" : "string" }, "status" : { - "description" : "the HTTP status code", + "description" : "HTTP status code", "type" : "number" }, "detail" : { - "description" : "human-readable explanation ", + "description" : "Human-readable explanation", "type" : "string" }, "instance" : { diff --git a/docs/offeredapis/swagger/pms-api-v3.yaml b/docs/offeredapis/swagger/pms-api-v3.yaml index c97336ed..9570cd46 100644 --- a/docs/offeredapis/swagger/pms-api-v3.yaml +++ b/docs/offeredapis/swagger/pms-api-v3.yaml @@ -1,5 +1,6 @@ # ============LICENSE_START======================================================= -# Copyright (C) 2024 - 2025 OpenInfra Foundation Europe. All rights reserved. +# Copyright (C) 2020-2023 Nordix Foundation. All rights reserved. +# Copyright (C) 2023-2025 OpenInfra Foundation Europe. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -18,62 +19,76 @@ openapi: 3.0.3 info: - title: 'A1 policy management API' + title: ONAP CCSDK - A1 Policy Management API version: 1.0.0 - x-api-id: a31c510b-20e6-4a08-af16-368c44d7fba8 + x-api-id: e9776a07-0813-4fca-9801-6f892f0a7c13 x-audience: external-public description: "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service\ - \ provides a REST API for managemecnt of A1 policies. <br/>The main tasks of the\ - \ service are:</p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring\ - \ and maintaining consistency of the SMO view of A1 policies and the Near-RT RICs</li><li>Maintaining\ - \ a view of supported Near-RT RIC policy types</li><li>Supervision of using services\ - \ (R-APPs). When a service is unavailable, its policies are removed.</li></ul><h2>APIs\ - \ provided or defined by the service</h2><h3>A1 Policy Management</h3><p>This\ - \ is an API for management of A1 Policies.</p><ul><li>A1 Policy retrieval, creation,\ - \ modification and deletion.</li><li>Retrieval of supported A1 Policy types for\ - \ a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management\ - \ of configuration</h3><p>API for updating and retrieval of the component configuration.\ - \ Note that there other ways to maintain the configuration.</p><h3>Service callbacks</h3><p>These\ - \ are endpoints that are invoked by this service. The callbacks are registered\ - \ in this service at service registration.</p><h3>NearRT-RIC Repository</h3><p>This\ - \ is an API that provides support for looking up a NearRT-RIC. Each A1 policy\ - \ is targeted for one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision\ - \ of the PMS component.</p><h3>Service Registry and Supervision</h3><p>API used\ - \ for registering services that uses PMS. Each A1 policy is optionally owned by\ - \ a service. PMS can supervise each registered service by a heart-beat supervision\ - \ and will automatically remove policies for unavailable services. Note that a\ - \ service does not need to be registered in order to create A1 Policies. This\ - \ is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used\ - \ for access control of A1 Policy access. If configured, an external authorization\ - \ provider is requested to grant access to the A1 Policy type.</p>" + \ provides a REST API for managing A1 policies. <br/>This document describes the latest API set + \ to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring\ + \ and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining\ + \ a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services\ + \ (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs\ + \ provided or defined by the service</h2>\ + \ <p>Note: parts of this API are strongly based on extracts of the O-RAN Alliance R1 Interface specification\ + \ for A1 Policy Management, and those parts should be considered '© O-RAN ALLIANCE - All rights reserved.'</p>\ + \ <h3>A1 Policy Management</h3>\ + \ <p>This is the latest API for managing A1 Policies. This API is partially compliant with O-RAN\ + \ Alliance R1 Interface specifications for A1 Policy Management:</p><ul><li>A1 Policy retrieval, creation,\ + \ modification and deletion.</li><li>Retrieval of supported A1 Policy Types for\ + \ a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management\ + \ of configuration</h3><p>API for updating and retrieval of the component configuration.\ + \ Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These\ + \ are endpoints that are invoked by this service. The callbacks are registered\ + \ in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3>\ + \ <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy\ + \ is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision\ + \ of the A1 Policy Management Service.</p><h3>Service Registry and Supervision</h3>\ + \ <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner.\ + \ If the owner service is registered, then the service can be monitored by a heart-beat supervision\ + \ mechanism, and if the registered service becomes unavailable, then its A1 Policies are removed. Note \ + \ that services do not need to be registered to create A1 Policies, but unregistered services are not \ + \ supervised. This is a feature that is optional to use.</p>" license: name: Copyright (C) 2024 - 2025 OpenInfra Foundation Europe. Licensed under the Apache 2 License. url: http://www.apache.org/licenses/LICENSE-2.0 contact: url: https://www.onap.org/ email: discuss-list@onap.com +externalDocs: + description: 'Based on parts of O-RAN ALLIANCE specification: O-RAN.WG2.R1AP-v07.00' + url: 'https://www.o-ran.org/specifications' servers: - url: '{apiRoot}/a1-policy-management/v1' variables: apiRoot: default: 'https://example.com' description: 'This is the Host:Port or Address where the A1-Policy Management Service can be accessed. - Note: This URL path format aligns with the O-RAN Alliance (r) R1-AP specifiactions for A1 Policy Management' + Note: This URL path format aligns with the O-RAN Alliance R1-AP specifications for A1 Policy Management' tags: - name: A1 Policy Management - description: "**(Newer Version)** API used to create polices, Policy Instances and get \ them as individual using an ID or get all policies/Instances." + description: > + API used to get, create, update and delete A1 Policy Instances. Also used to query A1 Policy Types. - name: NearRT-RIC Repository - description: "API used to get the NearRT-RIC for the managed element." + description: > + API used to get information about registered Near-RT RICs. - name: Service Registry and Supervision - description: "API used to keep the service Alive with in the timeout period" + description: > + API used to manage registered service, and control their keep-alive status via heart-beat messages. - name: Health Check - description: "API used to get the health status and statistics of this service" + description: > + API used to get the health status and statistics of this service. - name: Configuration - description: "API used to create or fetch the application configuration." + description: > + API used to create or fetch the application configuration. paths: /status: get: operationId: getStatus + description: Returns status and statistics of this service + summary: Get Status (getStatus) + tags: + - Health Check responses: "200": content: @@ -84,13 +99,15 @@ paths: status_info: $ref: '#/components/examples/StatusInfo' description: OK- Service is living Ok - description: Returns status and statistics of this service - tags: - - Health Check + "404": + $ref: '#/components/responses/404' /rics/{ricId}: get: - description: A ricId path parameter must be specified to retrieve associated ric infomation operationId: getRic + description: Get information about a Near-RT RIC + summary: Get a Near-RT RIC (getRic) + tags: + - NearRT-RIC Repository parameters: - description: The identity of a Near-RT RIC to get information for. explode: true @@ -100,7 +117,6 @@ paths: schema: type: string nullable: false - style: form - description: Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. in: header @@ -120,16 +136,17 @@ paths: description: OK - Near-RT RIC is found OK "404": $ref: '#/components/responses/404' - summary: Returns info for one Near-RT RIC - tags: - - NearRT-RIC Repository /rics: get: - description: The call returns all Near-RT RICs that supports a given policy - type identity operationId: getRics + description: Get all Near-RT RICs that supports a given A1 Policy Type ID + summary: Get Near-RT RICs for A1 Policy Type (getRics) + tags: + - NearRT-RIC Repository parameters: - - description: "The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned" + - description: > + The identity of an A1 Policy Type. If given, all Near-RT RICs supporting + the A1 Policy Type are returned. explode: true in: query name: policyTypeId @@ -156,12 +173,13 @@ paths: description: OK "404": $ref: '#/components/responses/404' - summary: Query Near-RT RIC information - tags: - - NearRT-RIC Repository /policy-types: get: + description: Query A1 Policy Type identities using query parameters operationId: getPolicyTypes + summary: Get A1 Policy Types (getPolicyTypes) + tags: + - A1 Policy Management parameters: - description: Select types for the given Near-RT RIC identity. explode: true @@ -171,8 +189,7 @@ paths: schema: type: string style: form - - description: Select types with the given type name (type identity has the - format <typename_version>) + - description: Select types compatible with the given type name (type identity has the format 'typename_version') explode: true in: query name: typeName @@ -180,8 +197,9 @@ paths: schema: type: string style: form - - description: Select types that are compatible with the given version. This - parameter is only applicable in conjunction with type_name. As an example + - description: > + Select types that are compatible with the given version. This + parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. explode: true @@ -228,12 +246,13 @@ paths: $ref: '#/components/responses/502' '503': $ref: '#/components/responses/503' - description: Query policy type identities - tags: - - A1 Policy Management /policy-types/{policyTypeId}: get: operationId: getPolicyTypeDefinition + description: Get an A1 Policy Type definition using its policy type ID + summary: Get an A1 Policy Type definition (getPolicyTypeDefinition) + tags: + - A1 Policy Management parameters: - explode: false in: path @@ -258,7 +277,7 @@ paths: examples: PolicyTypeObject: $ref: '#/components/examples/PolicyTypeObject' - description: OK - schema of the given policy type + description: OK - details and schema of the requested A1 Policy Type '400': $ref: '#/components/responses/400' '401': @@ -277,12 +296,13 @@ paths: $ref: '#/components/responses/502' '503': $ref: '#/components/responses/503' - description: Returns a policy type definition - tags: - - A1 Policy Management /policies/{policyId}: put: - operationId: putPolicy + operationId: updatePolicy + description: Update an existing A1 Policy instance's policy data using its policy ID. + summary: Update an A1 Policy's policy data (updatePolicy) + tags: + - A1 Policy Management parameters: - name: policyId in: path @@ -331,12 +351,12 @@ paths: $ref: '#/components/responses/502' '503': $ref: '#/components/responses/503' - description: update a policy - tags: - - A1 Policy Management delete: - description: Deleting the policy using policyId. operationId: deletePolicy + description: Delete an existing A1 Policy instance using its policy ID. + summary: Delete an A1 Policy instance (deletePolicy) + tags: + - A1 Policy Management parameters: - explode: false in: path @@ -354,7 +374,7 @@ paths: example: application/json responses: '204': - description: 'The A1 policy was deleted' + description: 'No Content' '400': $ref: '#/components/responses/400' '401': @@ -377,11 +397,12 @@ paths: $ref: '#/components/responses/502' '503': $ref: '#/components/responses/503' - summary: Delete a policy - tags: - - A1 Policy Management get: operationId: getPolicy + description: Get an A1 Policy instance's policy data using its policy ID + summary: Get an A1 Policy's policy data (getPolicy) + tags: + - A1 Policy Management parameters: - explode: false in: path @@ -425,12 +446,13 @@ paths: $ref: '#/components/responses/502' '503': $ref: '#/components/responses/503' - description: Returns a policy - tags: - - A1 Policy Management /policies/{policyId}/status: get: operationId: getPolicyStatus + description: Retrieve the status information for an A1 Policy Instance using its policy ID. + summary: Get an A1 Policy Instance's status (getPolicyStatus) + tags: + - A1 Policy Management parameters: - explode: false in: path @@ -471,18 +493,17 @@ paths: $ref: '#/components/responses/502' '503': $ref: '#/components/responses/503' - description: 'Query a policy status' - tags: - - A1 Policy Management - /policies: get: - description: "Returns a list of A1 policies matching given search criteria.\ - \ <br>If several query parameters are defined, the policies matching all conditions\ - \ are returned." - operationId: getAllPolicies + operationId: getPolicyIds + description: > + Returns a collection of A1 Policy Instance IDs for policies that match given search criteria. + If several query parameters are defined, the policies matching all conditions are returned. + summary: Query for A1 Policy instances (getPolicyIds) + tags: + - A1 Policy Management parameters: - - description: Select policies of a given policy type identity. + - description: Select policies with a given A1 Policy Type ID. explode: true in: query name: policyTypeId @@ -490,7 +511,7 @@ paths: schema: type: string style: form - - description: Select policies of a given Near-RT RIC identity. + - description: Select policies for a given Near-RT RIC identity. explode: true in: query name: nearRtRicId @@ -498,7 +519,7 @@ paths: schema: type: string style: form - - description: Select policies owned by a given service. + - description: Select policies owned by a given service (registered or unregistered). explode: true in: query name: serviceId @@ -506,8 +527,7 @@ paths: schema: type: string style: form - - description: Select policies of types with the given type name (type identity - has the format <typename_version>) + - description: Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). explode: true in: query name: typeName @@ -549,11 +569,12 @@ paths: $ref: '#/components/responses/502' '503': $ref: '#/components/responses/503' - summary: Query policy identities - tags: - - A1 Policy Management post: operationId: createPolicy + description: Create an A1 Policy Instance + summary: Create an A1 Policy Instance (createPolicy) + tags: + - A1 Policy Management requestBody: required: true content: @@ -562,17 +583,26 @@ paths: $ref: '#/components/schemas/PolicyObjectInformation' responses: '201': - description: 'Success case 201 created' + description: 'Created' content: application/json: schema: $ref: '#/components/schemas/PolicyObjectInformation' headers: Location: - description: 'Contains the URI of the newly created resource' + description: > + Contains the URI of the newly created A1 Policy Instances. + This URI includes the A1 Policy Instance ID for the newly + created policy instance. required: true schema: type: string + Content-Type: + description: 'Media Type of the response' + schema: + type: string + example: application/json + '400': $ref: '#/components/responses/400' '401': @@ -601,12 +631,13 @@ paths: $ref: '#/components/responses/502' '503': $ref: '#/components/responses/503' - description: 'To create A1 policies' - tags: - - A1 Policy Management /configuration: get: operationId: getConfiguration + description: Returns the entire contents of the Application Configuration. + tags: + - Configuration + summary: Get the Application Configuration (getConfiguration) responses: "200": content: @@ -616,12 +647,16 @@ paths: description: OK - Application configuration received "404": $ref: '#/components/responses/404' - - description: Returns the contents of the application configuration - tags: - - Configuration put: operationId: putConfiguration + description: > + Replace the current Application Configuration with a new configuration. + The new configuration, if accepted, will take effect after a short delay. + The new configuration must comply with the Application Configuration schema, + which can be found from the the Application Documentation (Developer Guide) + tags: + - Configuration + summary: Set/Replace the Application Configuration (putConfiguration) requestBody: content: application/json: @@ -631,23 +666,23 @@ paths: responses: "200": content: - '*/*': + 'application/json': schema: $ref: '#/components/schemas/void' description: OK - Configuration updated "400": $ref: '#/components/responses/400' - description: Replace the current configuration file with the given configuration - tags: - - Configuration /services/{serviceId}/keepalive: put: - description: A registered service should invoke this operation regularly to - indicate that it is still alive. If a registered service fails to invoke this - operation before the end of a timeout period the service will be deregistered - and all its A1 policies wil be removed. (This timeout can be set or disabled - when each service is initially registered) operationId: keepAliveService + description: A registered service should invoke this operation regularly to + indicate that it is still alive. If a registered service fails to invoke some operation, + or this operation, before the end of a timeout period the service will be deregistered + and all its A1 policies wil be removed. This operation is only intended for registered + services. (This timeout can be set or disabled when each service is initially registered) + summary: Heartbeat message from a service (keepAliveService) + tags: + - Service Registry and Supervision parameters: - explode: false in: path @@ -672,22 +707,25 @@ paths: responses: "200": content: - '*/*': + 'application/json': schema: type: object - description: "OK - Service supervision timer refreshed, OK" + description: OK - Service supervision timer refreshed, OK "404": $ref: '#/components/responses/404' - summary: Heartbeat indicates that the service is running - tags: - - Service Registry and Supervision /services: get: - description: Either information about a registered service with given identity - or all registered services are returned. operationId: getServices + description: > + Get information about all registered services, or a single registered service. + If the service ID of a registered service is included in the query, information about that + service is returned. Otherwise Information about all registered is returned. + This operation does not retrieve information about unregistered services. + summary: Get Services (getServices) + tags: + - Service Registry and Supervision parameters: - - description: The identity of the service + - description: The identity of the registered service explode: true in: query name: serviceId @@ -714,16 +752,19 @@ paths: description: OK "404": $ref: '#/components/responses/404' - summary: Returns service information - tags: - - Service Registry and Supervision put: - description: "Registering a service is needed to:<ul><li>Get callbacks about\ - \ available NearRT RICs.</li><li>Activate supervision of the service. If a\ - \ service is inactive, its policies will automatically be deleted.</li></ul>Policies\ - \ can be created even if the service is not registerred. This is a feature\ - \ which it is optional to use." operationId: putService + description: > + Register a single service, or update a previous registration. + Service registration is required to get callbacks about available NearRT RICs + and to enable supervision of the service's active status. If a registered + service becomes inactive, its policies can be automatically deleted. + A1 Policy instances can also be created for unregistered services. + If an unregistered service is later registered, the service's policies are + retained when the service becomes registered. This feature is optional to use. + summary: Register or update a Service (putService) + tags: + - Service Registry and Supervision requestBody: content: application/json: @@ -733,27 +774,29 @@ paths: responses: "200": content: - '*/*': + 'application/json': schema: type: object description: OK - Service updated "201": content: - '*/*': + 'application/json': schema: type: object description: Created - Service created "400": $ref: '#/components/responses/400' - summary: Register a service - tags: - - Service Registry and Supervision callbacks: RICStatus: "{$request.body#/callback_url}": post: - description: 'The URL to this call is registered at Service registration. <br>Callouts to indicate status changes relevant for Services. Note that these calls are called by A1-PMS and they are not provided.' operationId: serviceCallback + description: | + Callouts to indicate Near-RT RIC status changes relevant for Services. + The URL invoked by this callback is provided at Service registration. + summary: Callback for Near-RT RIC status (serviceCallback) + tags: + - Service Registry and Supervision requestBody: content: application/json: @@ -769,10 +812,16 @@ paths: description: OK "404": $ref: '#/components/responses/404' - summary: "Callback for Near-RT RIC status." /services/{serviceId}: delete: operationId: deleteService + description: > + Unregister a registered Service using its service ID. + Only registered services can be unregistered. All A1 Policy Instances + for the previously registered service will be removed. + tags: + - Service Registry and Supervision + summary: Unregister a Service (deleteService) parameters: - explode: false in: path @@ -791,68 +840,60 @@ paths: responses: "204": content: - '*/*': + 'application/json': schema: type: object description: No Content - Service unregistered "404": $ref: '#/components/responses/404' - description: Unregister a service - tags: - - Service Registry and Supervision + components: + examples: ServiceStatusList: description: List of service information value: serviceList: - - callbackUrl: callbackUrl - serviceId: serviceId - keepAliveIntervalSeconds: 0 - timeSinceLastActivitySeconds: 6 - - callbackUrl: callbackUrl - serviceId: serviceId + - callbackUrl: http://callback.url + serviceId: serviceId1 keepAliveIntervalSeconds: 0 timeSinceLastActivitySeconds: 6 - PolicyStatusInfo: - description: Status for one A1-P Policy - value: - lastModified: last_modified - status: - value: - status: status + - callbackUrl: http://callback.url + serviceId: serviceId2 + keepAliveIntervalSeconds: 500 + timeSinceLastActivitySeconds: 401 StatusInfo: value: status: status RicInfo: value: - ricId: ricId + ricId: ricId1 managedElementIds: - - managedElementId - - managedElementId + - managedElementId1 + - managedElementId2 state: UNAVAILABLE policyTypeIds: - - policyTypeId - - policyTypeId + - policyTypeId1 + - policyTypeId2 RicInfoList: value: rics: - - ricId: ricId + - ricId: ricId1 managedElementIds: - - managedElementId - - managedElementId + - managedElementId1 + - managedElementId2 state: UNAVAILABLE policyTypeIds: - - policyTypeId - - policyTypeId - - ricId: ricId + - policyTypeId1 + - policyTypeId2 + - ricId: ricId2 managedElementIds: - - managedElementId - - managedElementId + - managedElementId3 + - managedElementId4 state: UNAVAILABLE policyTypeIds: - - policyTypeId - - policyTypeId + - policyTypeId3 + - policyTypeId4 PolicyObject: value: scope: @@ -884,13 +925,13 @@ components: PolicyTypeInformation: value: - policyTypeId: STD_QOS2_0.1.0 - nearRtRicId: ricsim_g3_2 + nearRtRicId: ric_g3_2 - policyTypeId: STD_QOS_0_2_0 - nearRtRicId: ricsim_g3_2 + nearRtRicId: ric_g3_2 - policyTypeId: STD_QOS2_0.1.0 - nearRtRicId: ricsim_g3_1 + nearRtRicId: ric_g3_1 - policyTypeId: STD_QOS_0_2_0 - nearRtRicId: ricsim_g3_1 + nearRtRicId: ric_g3_1 PolicyTypeObject: value: policySchema: @@ -918,16 +959,15 @@ components: additionalProperties: false required: - priorityLevel + schemas: PolicyTypeInformation: description: >- - Available policy types and for each policy type identifier the Near-RT - RIC identifiers of those Near-RT RICs that support the related A1 policy - type + A data tuple to indicate that an identified A1 Policy Type is supported at an identified Near-RT RIC. type: object properties: policyTypeId: - description: Identity of the policy type + description: A1 Policy Type identifier type: string nearRtRicId: $ref: '#/components/schemas/NearRtRicId' @@ -936,42 +976,50 @@ components: - nearRtRicId example: policyTypeId: STD_QOS2_0.1.0 - nearRtRicId: ricsim_g3_2 + nearRtRicId: ric_g3_2 PolicyObjectInformation: - description: Information related to the creation of the policy + description: Information to create an A1 Policy Instance type: object properties: nearRtRicId: description: Identity of the target Near-RT RIC type: string example: - 'Near-RT-Ric-ID' + 'Near-RT-Ric-ID1' transient: default: false - description: "If true, the policy is deleted at RIC restart. If false, its\ - \ value is maintained by this service until explicitly deleted. Default\ - \ false." + description: > + If true, the policy is automatically deleted if the targeted Near-RT RIC restarts + or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted + Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and + must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false. nullable: false type: boolean policyId: - description: The identity of the Policy. If this value is present, it must be unique; otherwise, a random UUID is generated. + description: > + An optional identity to be used for the new A1 Policy Instance. + If this value is present, it must be unique. If not present the new A1 + Policy Instance will be assigned a newly generated unique ID, and the + new ID can be extracted from the 'Location' header in the response. type: string example: - 'POLICY-ID' + 'POLICY-ID1' serviceId: description: the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated - to a service). Note that the service does not need to be registered. + to a service). Note that the service does not need to be registered. + If the service is registered, the newly created A1 Policy Instance will be + subject to the same supervision rules as the the service's other policies. type: string example: - 'rApp ID' + 'rApp 1' default: "" policyObject: $ref: '#/components/schemas/PolicyObject' policyTypeId: - description: Identity of the policy type + description: A1 Policy Type identity type: string - example: 'ORAN_QOS_1.0.0(typeName_SemVersion)' + example: ORAN_QOS_1.0.0 '(typeName_SemVersion)' required: - nearRtRicId - policyObject @@ -980,26 +1028,27 @@ components: description: Problem as defined in https://tools.ietf.org/html/rfc7807 properties: detail: - description: ' A human-readable explanation specific to this occurrence - of the problem.' + description: A human-readable explanation specific to this occurrence of the problem. example: Policy type not found type: string title: - description: 'A specific error name' + description: A specific error name type: string example: Not Found status: - description: 'The HTTP status code generated by the origin server for this - occurrence of the problem. ' + description: | + The HTTP status code generated by the origin server for this occurrence of the problem. example: 404 format: int32 type: integer type: object PolicyObject: - description: 'Policy Object is a JSON representation of an A1 policy' + description: > + Policy Object is a JSON representation policy data for an A1 Policy Instance. + The schema for this policy data is defined in the corresponding A1 Policy Type. type: object PolicyTypeObject: - description: 'policy type object as defined in A1TD' + description: An A1 Policy Type, as defined in O-RAN Alliance A1TD type: object properties: policySchema: @@ -1007,12 +1056,12 @@ components: statusSchema: $ref: '#/components/schemas/StatusSchema' required: - - "policySchema" + - policySchema example: policySchema: "$schema": http://json-schema.org/draft-07/schema# title: STD_QOS_0_2_0 - description: STD QOS policy type + description: Policy data schema for STD_QOS_0.2.0 A1 Policy Instances. type: object properties: scope: @@ -1037,7 +1086,7 @@ components: statusSchema: "$schema": http://json-schema.org/draft-07/schema# title: STD_QOS_0.2.0 - description: STD QOS policy type status + description: Status schema for STD_QOS_0.2.0 A1 Policy Instances. type: object properties: enforceStatus: @@ -1048,13 +1097,22 @@ components: required: - enforceStatus PolicySchema: - description: 'The schemas are policy type specific' + description: > + A schema to define the policy data contents of A1 Policy Instances. + Policy data schemas are Policy Type specific. + All A1 Policy Instances of an A1 Policy Type should comply with the type's policy data schema. type: object StatusSchema: - description: 'The optional schema for policy status' + description: > + A schema to define the contents of the status information for A1 Policy Instances. + Status schemas are Policy Type specific. + All status information for all A1 Policy Instances of an A1 Policy Type should comply + with the type's status schema. type: object PolicyStatusObject: - description: 'A generic policy status object that can be used to transport any policy status. Additionally, a policy status shall be valid according to the schema of its specific policy type.' + description: > + A generic policy status object that can be used to transport any policy status. + Additionally, a schema for policy status can be defined in the corresponding A1 Policy Type. type: object void: description: Void/empty @@ -1062,20 +1120,9 @@ components: StatusInfo: properties: status: - description: status text + description: Status text type: string type: object - AuthorizationResult: - description: Result of authorization - example: - result: true - properties: - result: - description: "If true, the access is granted" - type: boolean - required: - - result - type: object RicInfo: description: Information for a Near-RT RIC properties: @@ -1083,13 +1130,13 @@ components: description: Identity of the Near-RT RIC type: string managedElementIds: - description: O1 identities for managed entities + description: Identities for managed entities items: - description: O1 identities for managed entities + description: Identity for a managed entity type: string type: array state: - description: Represents the states for a Near-RT RIC + description: Represents the state of a Near-RT RIC enum: - UNAVAILABLE - AVAILABLE @@ -1097,111 +1144,80 @@ components: - CONSISTENCY_CHECK type: string policyTypeIds: - description: supported policy types + description: Supported A1 Policy Types items: - description: supported policy types + description: Supported A1 Policy Type ID type: string type: array type: object ServiceRegistrationInfo: - description: Information for one service + description: Information for a service to be registered properties: callbackUrl: - description: callback for notifying of Near-RT RIC state changes + description: Callback URL for notifying of Near-RT RIC state changes type: string serviceId: description: Identity of the service type: string keepAliveIntervalSeconds: - description: "keep alive interval for the service. This is used to enable\ - \ optional heartbeat supervision of the service. If set (> 0) the registered\ - \ service should regularly invoke a 'keepalive' REST call. When a service\ - \ fails to invoke this 'keepalive' call within the configured time, the\ - \ service is considered unavailable. An unavailable service will be automatically\ - \ deregistered and its policies will be deleted. Value 0 means timeout\ - \ supervision is disabled." + description: > + Keep alive interval for the service. This is used to enable + optional heartbeat supervision of the service. If set (> 0) the registered + service should regularly invoke a 'keepalive' REST call. When a service + fails to invoke this 'keepalive' call within the configured time, the + service is considered unavailable. An unavailable service will be automatically + deregistered and its policies will be deleted. Value 0 means timeout + supervision is disabled. format: int64 type: integer required: - serviceId type: object - PolicyStatusInfo: - description: Status for one A1-P Policy - properties: - lastModified: - description: "timestamp, last modification time" - type: string - status: - description: the Policy status - type: object - type: object ServiceStatus: + description: Information about a previously registered service properties: callbackUrl: - description: callback for notifying of RIC synchronization + description: Callback URL for notifying of Near-RT RIC state changes type: string serviceId: description: Identity of the service type: string keepAliveIntervalSeconds: - description: policy keep alive timeout + description: > + Keep alive interval (seconds) for the service. This is used to enable + optional heartbeat supervision of the service. If set (> 0) the registered + service should regularly invoke a 'keepalive' REST call. When a service + fails to invoke this 'keepalive' call within the configured time, the + service is considered unavailable. An unavailable service will be automatically + deregistered and its policies will be deleted. Value 0 means timeout + supervision is disabled. format: int64 type: integer timeSinceLastActivitySeconds: - description: time since last invocation by the service + description: Time (seconds) since last recorded operation by the service format: int64 type: integer type: object RicInfoList: - description: List of Near-RT RIC information + description: Collection of Near-RT RIC information objects properties: rics: - description: List of Near-RT RIC information + description: List of Near-RT RIC information objects items: $ref: '#/components/schemas/RicInfo' type: array type: object - input: - description: input - properties: - accessType: - description: Access type - enum: - - READ - - WRITE - - DELETE - type: string - authToken: - description: Authorization token - type: string - policyTypeId: - description: Policy type identifier - type: string - required: - - accessType - - authToken - - policyTypeId - type: object - PolicyAuthorization: - description: Authorization request for A1 policy requests - properties: - input: - $ref: '#/components/schemas/input' - required: - - input - type: object NearRtRicId: - description: Identity of the policy + description: Identity of the Near-RT RIC type: string PolicyInformation: - description: >- - Near-RT RIC identifiers where A1 policies exist and for each Near-RT RIC - identifier the policy identifiers of those policies that exist in that - Near-RT RIC + description: > + Information tuple for a single A1 Policy Instance. + Contains the A1 Policy Instance ID, and the ID of the Near-RT RIC where the policy is created. type: object properties: policyId: - description: Identity of the policy + description: Identity of the A1 Policy Instance type: string nearRtRicId: $ref: '#/components/schemas/NearRtRicId' @@ -1211,20 +1227,23 @@ components: ServiceStatusList: properties: serviceList: - description: List of service information + description: List of Service Status objects, describing a collection of registered services. items: $ref: '#/components/schemas/ServiceStatus' type: array type: object ServiceCallbackInfo: - description: Information transferred as in Service callbacks (callback_url) + description: | + Information transferred in Service callbacks, + if a callback URL was provided for a registered service properties: ricId: description: Identity of a Near-RT RIC type: string eventType: - description: "values:\nAVAILABLE: the Near-RT RIC has become available\ - \ for A1 Policy management" + description: > + values: + AVAILABLE: the Near-RT RIC has become available for A1 Policy management enum: - AVAILABLE type: string @@ -1232,36 +1251,26 @@ components: - eventType - ricId type: object - Link: - properties: - templated: - type: boolean - href: - type: string - type: object ProblemDetails: - description: >- - A problem detail to carry details in an HTTP response according to RFC - 7807 + description: Object to carry details about a problem in an HTTP response according to IETF RFC 7807 type: object properties: type: - description: >- - a URI reference according to IETF RFC 3986 that identifies the - problem type + description: URI reference according to IETF RFC 3986 that identifies the problem type type: string title: - description: human-readable summary of the problem type + description: Human-readable summary of the problem type type: string status: - description: the HTTP status code + description: HTTP status code type: number detail: - description: 'human-readable explanation ' + description: Human-readable explanation type: string instance: description: URI reference that identifies the specific occurrence of the problem type: string + responses: '400': description: Bad Request @@ -1324,7 +1333,7 @@ components: schema: $ref: '#/components/schemas/ProblemDetails' '429': - description: Too Many Request + description: Too Many Requests content: application/problem+json: schema: @@ -1348,7 +1357,7 @@ components: schema: $ref: '#/components/schemas/ProblemDetails' Locked: - description: "Locked - HTTP Status code which can be used when the state is Locked" + description: Locked - HTTP Status code which can be used when the state is Locked content: application/problem+json: schema: @@ -1356,4 +1365,4 @@ components: example: status: 423 title: Locked - detail: State is Locked in the provided request. + detail: State is Locked in the provided request. diff --git a/docs/offeredapis/swagger/pms-api.json b/docs/offeredapis/swagger/pms-api.json index 036e7fea..8434ba94 100644 --- a/docs/offeredapis/swagger/pms-api.json +++ b/docs/offeredapis/swagger/pms-api.json @@ -3,14 +3,15 @@ "info" : { "contact" : { "email" : "discuss-list@onap.com", + "name" : "ONAP CCSDK Project", "url" : "https://www.onap.org/" }, - "description" : "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managemecnt of A1 policies. <br/>The main tasks of the service are:</p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 policies and the Near-RT RICs</li><li>Maintaining a view of supported Near-RT RIC policy types</li><li>Supervision of using services (R-APPs). When a service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2><h3>A1 Policy Management</h3><p>This is an API for management of A1 Policies.</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository</h3><p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted for one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the PMS component.</p><h3>Service Registry and Supervision</h3><p>API used for registering services that uses PMS. Each A1 policy is optionally owned by a service. PMS can supervise each registered service by a heart-beat supervision and will automatically remove policies for unavailable services. Note that a service does not need to be registered in order to create A1 Policies. This is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used for access control of A1 Policy access. If configured, an external authorization provider is requested to grant access to the A1 Policy type.</p><h3>Spring Boot Actuator</h3><p>Provides generic functions used to monitor and manage the Spring web application.</p>", + "description" : "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes an older pre-spec API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2><h3>A1 Policy Management (Older pre-spec version) </h3> <p>This is an older API for managing A1 Policies:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service .</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then its A1 Policies are removed. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used for access control of A1 Policy access. If configured, an external authorization provider is requested to grant access to the A1 Policy Type.</p><h3>Spring Boot Actuator</h3><p>Provides built-in functions used to monitor and configure the Spring web application hosting the service.</p>", "license" : { - "name" : "Copyright (C) 2020-2023 Nordix Foundation, and Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved. Licensed under the Apache 2 License.", + "name" : "Copyright (C) 2020-2023 Nordix Foundation, and Copyright (C) 2024-2025 OpenInfra Foundation Europe. \nAll rights reserved. Licensed under the Apache 2 License.\n", "url" : "http://www.apache.org/licenses/LICENSE-2.0" }, - "title" : "ONAP CCSDK A1 Policy Management Service", + "title" : "ONAP CCSDK - Pre-Spec A1 Policy Management API", "version" : "1.3.0", "x-api-id" : "a31c510b-20e6-4a08-af16-368c44d7fba8", "x-audience" : "external-public" @@ -19,189 +20,53 @@ "url" : "/" } ], "tags" : [ { - "description" : "Older API used to create polices, Policy Instances and get them as individual using an ID or get all policies/Instances.", - "name" : "A1 Policy Management (Older version)" + "description" : "Older pre-spec API used to get, create, update and delete A1 Policy Instances. Also used to query A1 Policy Types.\n", + "name" : "A1 Policy Management" }, { - "description" : "API used to get the NearRT-RIC for the managed element.", + "description" : "Older API used to get information about registered Near-RT RICs.\n", "name" : "NearRT-RIC Repository" }, { - "description" : "API used to keep the service Alive with in the timeout period", + "description" : "Older API used to manage registered service, and control their keep-alive status via heart-beat messages.\n", "name" : "Service Registry and Supervision" }, { - "description" : "API used to get the health status and statistics of this service", + "description" : "API used to get the health status and statistics of this service\n", "name" : "Health Check" }, { - "description" : "Callouts to indicate status schanges relevant for Services. <br> Note that these calls are called by A1-PMS, not provided.", - "name" : "Service callbacks" + "description" : "Callout to registered services to indicate a status changes for a Near-RT RIC. Note that these operations are called by the A1 Policy Management Service, not provided.\n", + "name" : "Service Callbacks" }, { - "description" : "API used for authorization of information A1 policy access (this is provided by an authorization producer such as OPA). <br> Note that this API is called by A1-PMS, it is not provided.", + "description" : "API used for authorization of information A1 policy access (this is provided by an authorization producer such as OPA). Note that these operations are called by the A1 Policy Management Service, not provided.\n", "name" : "Authorization API" }, { - "description" : "API used to create or fetch the application configuration.", + "description" : "API used to create or fetch the application configuration.\n", "name" : "Configuration" }, { - "description" : "Monitor and interact", + "description" : "API used to monitor and configure the A1-PMS Springboot Service.\n", "externalDocs" : { "description" : "Spring Boot Actuator Web API Documentation", - "url" : "https://docs.spring.io/spring-boot/docs/current/actuator-api/html/" + "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html" }, - "name" : "Actuator" + "name" : "Actuator API" } ], "paths" : { - "/a1-policy/v2/policy-instances" : { - "get" : { - "description" : "Returns a list of A1 policies matching given search criteria. <br>If several query parameters are defined, the policies matching all conditions are returned.", - "operationId" : "getPolicyInstances", - "parameters" : [ { - "description" : "Select policies with a given type identity.", - "explode" : true, - "in" : "query", - "name" : "policytype_id", - "required" : false, - "schema" : { - "type" : "string" - }, - "style" : "form" - }, { - "description" : "Select policies for a given Near-RT RIC identity.", - "explode" : true, - "in" : "query", - "name" : "ric_id", - "required" : false, - "schema" : { - "type" : "string" - }, - "style" : "form" - }, { - "description" : "Select policies owned by a given service.", - "explode" : true, - "in" : "query", - "name" : "service_id", - "required" : false, - "schema" : { - "type" : "string" - }, - "style" : "form" - }, { - "description" : "Select policies of a given type name (type identity has the format <typename_version>)", - "explode" : true, - "in" : "query", - "name" : "type_name", - "required" : false, - "schema" : { - "type" : "string" - }, - "style" : "form" - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "policy_info_list" : { - "$ref" : "#/components/examples/policy_info_list" - } - }, - "schema" : { - "$ref" : "#/components/schemas/policy_info_list" - } - } - }, - "description" : "OK - Returns A1 Policies which matches the criteria" - }, - "404" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/error_information" - } - } - }, - "description" : "Not Found - Near-RT RIC, policy type or service not found" - } - }, - "summary" : "Query for A1 policy instances", - "tags" : [ "A1 Policy Management" ] - } - }, - "/example-authz-check" : { - "post" : { - "description" : "The authorization function decides if access is granted.", - "operationId" : "performAccessControl", - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/policy_authorization" - } - } - }, - "required" : true - }, - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/authorization_result" - } - } - }, - "description" : "OK" - }, - "403" : { - "content" : { - "application/problem+json" : { - "example" : { - "status" : 403, - "title" : "Forbidden", - "detail" : "Your role does not allow to perform this action. Contact System Administrator to change your access rights." - }, - "schema" : { - "$ref" : "#/components/schemas/error_information" - } - } - }, - "description" : "Forbidden" - } - }, - "summary" : "Request for access authorization.", - "tags" : [ "Authorization API" ] - } - }, - "/actuator/threaddump" : { + "/status" : { "get" : { - "operationId" : "threaddump", + "description" : "Returns status and statistics of this service", + "operationId" : "getStatusV1", "responses" : { "200" : { "content" : { - "text/plain;charset=UTF-8" : { - "schema" : { - "type" : "object" - } - }, - "application/vnd.spring-boot.actuator.v3+json" : { - "schema" : { - "type" : "object" - } - }, - "application/json" : { - "schema" : { - "type" : "object" - } - }, - "application/vnd.spring-boot.actuator.v2+json" : { + "*/*" : { "schema" : { - "type" : "object" + "type" : "string" } } }, - "description" : "OK" + "description" : "OK - Service is living" } }, - "summary" : "Actuator web endpoint 'threaddump'", - "tags" : [ "Actuator" ], - "x-internal" : true + "summary" : "Get Status (getStatusV1)", + "tags" : [ "Health Check" ] } }, "/a1-policy/v2/status" : { @@ -225,75 +90,16 @@ "description" : "OK- Service is living Ok" } }, + "summary" : "Get Status (getStatus)", "tags" : [ "Health Check" ] } }, - "/actuator/loggers" : { - "get" : { - "operationId" : "loggers", - "responses" : { - "200" : { - "content" : { - "application/vnd.spring-boot.actuator.v3+json" : { - "schema" : { - "type" : "object" - } - }, - "application/json" : { - "schema" : { - "type" : "object" - } - }, - "application/vnd.spring-boot.actuator.v2+json" : { - "schema" : { - "type" : "object" - } - } - }, - "description" : "OK" - } - }, - "summary" : "Actuator web endpoint 'loggers'", - "tags" : [ "Actuator" ], - "x-internal" : true - } - }, - "/actuator/health/**" : { - "get" : { - "operationId" : "health-path", - "responses" : { - "200" : { - "content" : { - "application/vnd.spring-boot.actuator.v3+json" : { - "schema" : { - "type" : "object" - } - }, - "application/json" : { - "schema" : { - "type" : "object" - } - }, - "application/vnd.spring-boot.actuator.v2+json" : { - "schema" : { - "type" : "object" - } - } - }, - "description" : "OK" - } - }, - "summary" : "Actuator web endpoint 'health-path'", - "tags" : [ "Actuator" ], - "x-internal" : true - } - }, "/a1-policy/v2/rics/ric" : { "get" : { - "description" : "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).", + "description" : "Query information about a Near-RT RIC. Either a Near-RT RIC identity or a Managed Element identity can be specified. The intention with Managed Element identity is the ID used in O1 for accessing the traffical element (such as the ID of CU).\n", "operationId" : "getRic", "parameters" : [ { - "description" : "The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.", + "description" : "The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.\n", "explode" : true, "in" : "query", "name" : "managed_element_id", @@ -338,43 +144,13 @@ "description" : "Not Found" } }, - "summary" : "Returns info of Near-RT RIC queried by the ric-id and managed-element-id", + "summary" : "Get a Near-RT RIC (getRic)", "tags" : [ "NearRT-RIC Repository" ] } }, - "/actuator/shutdown" : { - "post" : { - "operationId" : "shutdown", - "responses" : { - "200" : { - "content" : { - "application/vnd.spring-boot.actuator.v3+json" : { - "schema" : { - "type" : "object" - } - }, - "application/json" : { - "schema" : { - "type" : "object" - } - }, - "application/vnd.spring-boot.actuator.v2+json" : { - "schema" : { - "type" : "object" - } - } - }, - "description" : "OK" - } - }, - "summary" : "Actuator web endpoint 'shutdown'", - "tags" : [ "Actuator" ], - "x-internal" : true - } - }, "/a1-policy/v2/policy-types" : { "get" : { - "description" : "Query policy type identities", + "description" : "Query A1 Policy Type identities using query parameters", "operationId" : "getPolicyTypes", "parameters" : [ { "description" : "Select types for the given Near-RT RIC identity.", @@ -387,7 +163,7 @@ }, "style" : "form" }, { - "description" : "Select types with the given type name (type identity has the format <typename_version>)", + "description" : "Select types compatible with the given type name (type identity has the format 'typename_version')", "explode" : true, "in" : "query", "name" : "type_name", @@ -432,12 +208,13 @@ "description" : "Not Found" } }, + "summary" : "Get A1 Policy Types (getPolicyTypes)", "tags" : [ "A1 Policy Management" ] } }, "/a1-policy/v2/policies/{policy_id}" : { "delete" : { - "description" : "Deleting the policy using the Policy's Policy ID.", + "description" : "Delete an A1 Policy instance using its policy ID.", "operationId" : "deletePolicy", "parameters" : [ { "explode" : false, @@ -476,11 +253,11 @@ "description" : "Locked - HTTP Status code which can be used when the state is Locked" } }, - "summary" : "Delete a policy", + "summary" : "Delete an A1 Policy instance (deletePolicy)", "tags" : [ "A1 Policy Management" ] }, "get" : { - "description" : "Returns a policy", + "description" : "Get an A1 Policy instance using its policy ID", "operationId" : "getPolicy", "parameters" : [ { "explode" : false, @@ -517,247 +294,13 @@ "description" : "Not Found" } }, + "summary" : "Get an A1 Policy instance (getPolicy)", "tags" : [ "A1 Policy Management" ] } }, - "/actuator/metrics/{requiredMetricName}" : { - "get" : { - "operationId" : "metrics-requiredMetricName", - "parameters" : [ { - "explode" : false, - "in" : "path", - "name" : "requiredMetricName", - "required" : true, - "schema" : { - "type" : "string" - }, - "style" : "simple" - } ], - "responses" : { - "200" : { - "content" : { - "application/vnd.spring-boot.actuator.v3+json" : { - "schema" : { - "type" : "object" - } - }, - "application/json" : { - "schema" : { - "type" : "object" - } - }, - "application/vnd.spring-boot.actuator.v2+json" : { - "schema" : { - "type" : "object" - } - } - }, - "description" : "OK" - } - }, - "summary" : "Actuator web endpoint 'metrics-requiredMetricName'", - "tags" : [ "Actuator" ], - "x-internal" : true - } - }, - "/a1-policy/v2/configuration" : { - "get" : { - "description" : "Returns the contents of the application configuration file", - "operationId" : "getConfiguration", - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "type" : "string" - } - } - }, - "description" : "OK - Configuration" - }, - "404" : { - "content" : { - "application/problem+json" : { - "example" : [ ] - } - }, - "description" : "Not Found" - } - }, - "tags" : [ "Configuration" ] - }, - "put" : { - "description" : "Replace the current configuration with the given configuration", - "operationId" : "putConfiguration", - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "type" : "object" - } - } - }, - "required" : true - }, - "responses" : { - "200" : { - "content" : { - "*/*" : { - "schema" : { - "$ref" : "#/components/schemas/void" - } - } - }, - "description" : "OK - Configuration updated" - }, - "400" : { - "content" : { - "application/problem+json" : { - "example" : { - "status" : 400, - "title" : "Bad Request", - "detail" : "The provided request is not valid." - }, - "schema" : { - "$ref" : "#/components/schemas/error_information" - } - } - }, - "description" : "Bad Request" - } - }, - "tags" : [ "Configuration" ] - } - }, - "/actuator" : { - "get" : { - "operationId" : "links", - "responses" : { - "200" : { - "content" : { - "application/vnd.spring-boot.actuator.v3+json" : { - "schema" : { - "additionalProperties" : { - "additionalProperties" : { - "$ref" : "#/components/schemas/Link" - }, - "type" : "object" - }, - "type" : "object" - } - }, - "application/json" : { - "schema" : { - "additionalProperties" : { - "additionalProperties" : { - "$ref" : "#/components/schemas/Link" - }, - "type" : "object" - }, - "type" : "object" - } - }, - "application/vnd.spring-boot.actuator.v2+json" : { - "schema" : { - "additionalProperties" : { - "additionalProperties" : { - "$ref" : "#/components/schemas/Link" - }, - "type" : "object" - }, - "type" : "object" - } - } - }, - "description" : "OK" - } - }, - "summary" : "Actuator root web endpoint", - "tags" : [ "Actuator" ], - "x-internal" : true - } - }, - "/actuator/loggers/{name}" : { - "get" : { - "operationId" : "loggers-name", - "parameters" : [ { - "explode" : false, - "in" : "path", - "name" : "name", - "required" : true, - "schema" : { - "type" : "string" - }, - "style" : "simple" - } ], - "responses" : { - "200" : { - "content" : { - "application/vnd.spring-boot.actuator.v3+json" : { - "schema" : { - "type" : "object" - } - }, - "application/json" : { - "schema" : { - "type" : "object" - } - }, - "application/vnd.spring-boot.actuator.v2+json" : { - "schema" : { - "type" : "object" - } - } - }, - "description" : "OK" - } - }, - "summary" : "Actuator web endpoint 'loggers-name'", - "tags" : [ "Actuator" ], - "x-internal" : true - }, - "post" : { - "operationId" : "loggers-name_2", - "parameters" : [ { - "explode" : false, - "in" : "path", - "name" : "name", - "required" : true, - "schema" : { - "type" : "string" - }, - "style" : "simple" - } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "enum" : [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL", "OFF" ], - "type" : "string" - } - } - } - }, - "responses" : { - "200" : { - "content" : { - "*/*" : { - "schema" : { - "type" : "object" - } - } - }, - "description" : "OK" - } - }, - "summary" : "Actuator web endpoint 'loggers-name'", - "tags" : [ "Actuator" ], - "x-internal" : true - } - }, "/a1-policy/v2/services/{service_id}/keepalive" : { "put" : { - "description" : "A registered service should invoke this operation regularly to indicate that it is still alive. If a registered service fails to invoke this operation before the end of a timeout period the service will be deregistered and all its A1 policies wil be removed. (This timeout can be set or disabled when each service is initially registered)", + "description" : "A registered service should invoke this operation regularly to indicate that it is still alive. If a registered service fails to invoke some operation, or this operation, before the end of a timeout period the service will be deregistered and all its A1 policies wil be removed. This operation is only intended for registered services. (This timeout can be set or disabled when each service is initially registered)", "operationId" : "keepAliveService", "parameters" : [ { "explode" : false, @@ -789,46 +332,16 @@ "description" : "Not Found" } }, - "summary" : "Heartbeat indicates that the service is running", + "summary" : "Heartbeat message from a service (keepAliveService)", "tags" : [ "Service Registry and Supervision" ] } }, - "/actuator/metrics" : { - "get" : { - "operationId" : "metrics", - "responses" : { - "200" : { - "content" : { - "application/vnd.spring-boot.actuator.v3+json" : { - "schema" : { - "type" : "object" - } - }, - "application/json" : { - "schema" : { - "type" : "object" - } - }, - "application/vnd.spring-boot.actuator.v2+json" : { - "schema" : { - "type" : "object" - } - } - }, - "description" : "OK" - } - }, - "summary" : "Actuator web endpoint 'metrics'", - "tags" : [ "Actuator" ], - "x-internal" : true - } - }, "/a1-policy/v2/rics" : { "get" : { - "description" : "The call returns all Near-RT RICs that supports a given policy type identity", + "description" : "Get all Near-RT RICs that supports a given A1 Policy Type ID", "operationId" : "getRics", "parameters" : [ { - "description" : "The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned", + "description" : "The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.\n", "explode" : true, "in" : "query", "name" : "policytype_id", @@ -863,16 +376,16 @@ "description" : "Not Found" } }, - "summary" : "Query Near-RT RIC information", + "summary" : "Get Near-RT RICs for A1 Policy Type (getRics)", "tags" : [ "NearRT-RIC Repository" ] } }, "/a1-policy/v2/services" : { "get" : { - "description" : "Either information about a registered service with given identity or all registered services are returned.", + "description" : "Get information about all registered services, or a single registered service. If the service ID of a registered service is included in the query, information about that service is returned. Otherwise Information about all registered is returned. This operation does not retrieve information about unregistered services.\n", "operationId" : "getServices", "parameters" : [ { - "description" : "The identity of the service", + "description" : "The identity of the registered service", "explode" : true, "in" : "query", "name" : "service_id", @@ -907,7 +420,7 @@ "description" : "Not Found" } }, - "summary" : "Returns service information", + "summary" : "Get Services (getServices)", "tags" : [ "Service Registry and Supervision" ] }, "put" : { @@ -915,7 +428,7 @@ "RICStatus" : { "{$request.body#/callback_url}" : { "post" : { - "description" : "The URL to this call is registered at Service registration.", + "description" : "Callouts to indicate Near-RT RIC status changes relevant for Services. \nThe URL invoked by this callback is provided at Service registration.\n", "operationId" : "serviceCallback", "requestBody" : { "content" : { @@ -947,13 +460,13 @@ "description" : "Not Found" } }, - "summary" : "Callback for Near-RT RIC status", - "tags" : [ "Service callbacks" ] + "summary" : "Callback for Near-RT RIC status (serviceCallback)", + "tags" : [ "Service Registry and Supervision", "Service Callbacks" ] } } } }, - "description" : "Registering a service is needed to:<ul><li>Get callbacks about available NearRT RICs.</li><li>Activate supervision of the service. If a service is inactive, its policies will automatically be deleted.</li></ul>Policies can be created even if the service is not registerred. This is a feature which it is optional to use.", + "description" : "Register a single service, or update a previous registtration. Service registration is required to get callbacks about available NearRT RICs and to enable supervision of the service's active status. If a registered service becomes inactive, its policies can be automatically deleted. A1 Policy instances can also be created for unregistered services. If an unregistered service is later registered, the service's policies are retained when the service becomes registered. This feature is optional to use.\n", "operationId" : "putService", "requestBody" : { "content" : { @@ -1002,62 +515,13 @@ "description" : "Bad Request" } }, - "summary" : "Register a service", + "summary" : "Register or update a Service (putService)", "tags" : [ "Service Registry and Supervision" ] } }, - "/actuator/info" : { - "get" : { - "operationId" : "info", - "responses" : { - "200" : { - "content" : { - "application/vnd.spring-boot.actuator.v3+json" : { - "schema" : { - "type" : "object" - } - }, - "application/json" : { - "schema" : { - "type" : "object" - } - }, - "application/vnd.spring-boot.actuator.v2+json" : { - "schema" : { - "type" : "object" - } - } - }, - "description" : "OK" - } - }, - "summary" : "Actuator web endpoint 'info'", - "tags" : [ "Actuator" ], - "x-internal" : true - } - }, - "/status" : { - "get" : { - "description" : "Returns status and statistics of this service", - "operationId" : "getStatusV1", - "responses" : { - "200" : { - "content" : { - "*/*" : { - "schema" : { - "type" : "string" - } - } - }, - "description" : "OK - Service is living" - } - }, - "tags" : [ "Health Check" ] - } - }, "/a1-policy/v2/policy-types/{policytype_id}" : { "get" : { - "description" : "Returns a policy type definition", + "description" : "Get an A1 Policy Type definition using its policy type ID", "operationId" : "getPolicyTypeDefinition", "parameters" : [ { "explode" : false, @@ -1083,7 +547,7 @@ } } }, - "description" : "OK - schema of the given policy type" + "description" : "OK - schema of the requested A1 Policy Type" }, "404" : { "content" : { @@ -1094,65 +558,16 @@ "description" : "Not Found" } }, + "summary" : "Get an A1 Policy Type definition (getPolicyTypeDefinition)", "tags" : [ "A1 Policy Management" ] } }, - "/actuator/logfile" : { - "get" : { - "operationId" : "logfile", - "responses" : { - "200" : { - "content" : { - "text/plain;charset=UTF-8" : { - "schema" : { - "type" : "object" - } - } - }, - "description" : "OK" - } - }, - "summary" : "Actuator web endpoint 'logfile'", - "tags" : [ "Actuator" ], - "x-internal" : true - } - }, - "/actuator/health" : { - "get" : { - "operationId" : "health", - "responses" : { - "200" : { - "content" : { - "application/vnd.spring-boot.actuator.v3+json" : { - "schema" : { - "type" : "object" - } - }, - "application/json" : { - "schema" : { - "type" : "object" - } - }, - "application/vnd.spring-boot.actuator.v2+json" : { - "schema" : { - "type" : "object" - } - } - }, - "description" : "OK" - } - }, - "summary" : "Actuator web endpoint 'health'", - "tags" : [ "Actuator" ], - "x-internal" : true - } - }, "/a1-policy/v2/policies" : { "get" : { - "description" : "Returns a list of A1 policies matching given search criteria. <br>If several query parameters are defined, the policies matching all conditions are returned.", + "description" : "Retrieve a list of A1 Policy Instance IDs for policies that match given search criteria. If multiple query parameters are given, the policies matching all conditions are returned.\n", "operationId" : "getPolicyIds", "parameters" : [ { - "description" : "Select policies of a given policy type identity.", + "description" : "Select policies of a given A1 Policy Type ID.", "explode" : true, "in" : "query", "name" : "policytype_id", @@ -1172,7 +587,7 @@ }, "style" : "form" }, { - "description" : "Select policies owned by a given service.", + "description" : "Select policies owned by a given service. (Both registered and unregistered services)", "explode" : true, "in" : "query", "name" : "service_id", @@ -1182,7 +597,7 @@ }, "style" : "form" }, { - "description" : "Select policies of types with the given type name (type identity has the format <typename_version>)", + "description" : "Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version')\n", "explode" : true, "in" : "query", "name" : "type_name", @@ -1217,11 +632,11 @@ "description" : "Not Found" } }, - "summary" : "Query policy identities", + "summary" : "Query A1 Policy Instances (getPolicyIds)", "tags" : [ "A1 Policy Management" ] }, "put" : { - "description" : "Create or update a policy", + "description" : "Create or Update an A1 Policy Instance", "operationId" : "putPolicy", "requestBody" : { "content" : { @@ -1270,12 +685,89 @@ "description" : "Locked - HTTP Status code which can be used when the state is Locked" } }, + "summary" : "Create or Update an A1 Policy Instance (putPolicy)", + "tags" : [ "A1 Policy Management" ] + } + }, + "/a1-policy/v2/policy-instances" : { + "get" : { + "description" : "Returns a collection of A1 Policy Instance information for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned.\n", + "operationId" : "getPolicyInstances", + "parameters" : [ { + "description" : "Select policies with a given A1 Policy Type ID.", + "explode" : true, + "in" : "query", + "name" : "policytype_id", + "required" : false, + "schema" : { + "type" : "string" + }, + "style" : "form" + }, { + "description" : "Select policies for a given Near-RT RIC identity.", + "explode" : true, + "in" : "query", + "name" : "ric_id", + "required" : false, + "schema" : { + "type" : "string" + }, + "style" : "form" + }, { + "description" : "Select policies owned by a given service (registered or unregistered).", + "explode" : true, + "in" : "query", + "name" : "service_id", + "required" : false, + "schema" : { + "type" : "string" + }, + "style" : "form" + }, { + "description" : "Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').", + "explode" : true, + "in" : "query", + "name" : "type_name", + "required" : false, + "schema" : { + "type" : "string" + }, + "style" : "form" + } ], + "responses" : { + "200" : { + "content" : { + "application/json" : { + "examples" : { + "policy_info_list" : { + "$ref" : "#/components/examples/policy_info_list" + } + }, + "schema" : { + "$ref" : "#/components/schemas/policy_info_list" + } + } + }, + "description" : "OK - Returns A1 Policy Instances which match the criteria" + }, + "404" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/error_information" + } + } + }, + "description" : "Not Found - Near-RT RIC, A1 Policy Type or service was not found" + } + }, + "summary" : "Query for A1 Policy instances (getPolicyInstances)", "tags" : [ "A1 Policy Management" ] } }, "/a1-policy/v2/services/{service_id}" : { "delete" : { - "description" : "Unregister a service", + "description" : "Unregister a registered Service using its service ID. Only registered services can be unregistered. All A1 Policy Instances for the previously registered service will be removed.\n", "operationId" : "deleteService", "parameters" : [ { "explode" : false, @@ -1307,12 +799,230 @@ "description" : "Not Found" } }, + "summary" : "Unregister a Service (deleteService)", "tags" : [ "Service Registry and Supervision" ] } }, + "/a1-policy/v2/policies/{policy_id}/status" : { + "get" : { + "description" : "Retrieve the status information for an A1 Policy Instance.", + "operationId" : "getPolicyStatus", + "parameters" : [ { + "explode" : false, + "in" : "path", + "name" : "policy_id", + "required" : true, + "schema" : { + "type" : "string" + }, + "style" : "simple" + } ], + "responses" : { + "200" : { + "content" : { + "application/json" : { + "examples" : { + "policy_status_info" : { + "$ref" : "#/components/examples/policy_status_info" + } + }, + "schema" : { + "$ref" : "#/components/schemas/policy_status_info" + } + } + }, + "description" : "OK - Policy status" + }, + "404" : { + "content" : { + "application/problem+json" : { + "example" : [ ] + } + }, + "description" : "Not Found" + } + }, + "summary" : "Get an A1 Policy Instance's status (getPolicyStatus)", + "tags" : [ "A1 Policy Management" ] + } + }, + "/a1-policy/v2/configuration" : { + "get" : { + "description" : "Returns the entire contents of the Application Configuration.", + "operationId" : "getConfiguration", + "responses" : { + "200" : { + "content" : { + "application/json" : { + "schema" : { + "type" : "string" + } + } + }, + "description" : "OK - Configuration" + }, + "404" : { + "content" : { + "application/problem+json" : { + "example" : [ ] + } + }, + "description" : "Not Found" + } + }, + "summary" : "Get the Application Configuration (getConfiguration)", + "tags" : [ "Configuration" ] + }, + "put" : { + "description" : "Replace the current Application Configuration with a new configuration. The new configuration, if accepted, will take effect after a short delay. The new configuration must comply with the Application Configuration schema, which can be found from the the Application Documentation (Developer Guide) \n", + "operationId" : "putConfiguration", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "type" : "object" + } + } + }, + "required" : true + }, + "responses" : { + "200" : { + "content" : { + "*/*" : { + "schema" : { + "$ref" : "#/components/schemas/void" + } + } + }, + "description" : "OK - Configuration updated" + }, + "400" : { + "content" : { + "application/problem+json" : { + "example" : { + "status" : 400, + "title" : "Bad Request", + "detail" : "The provided request is not valid." + }, + "schema" : { + "$ref" : "#/components/schemas/error_information" + } + } + }, + "description" : "Bad Request" + } + }, + "summary" : "Set/Replace the Application Configuration (putConfiguration)", + "tags" : [ "Configuration" ] + } + }, + "/example-authz-check" : { + "post" : { + "description" : "A template endpoint for callout requests to an external authorization function. The authorization function, if enabled, decides if individual operations are permitted.\n", + "operationId" : "performAccessControl", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/policy_authorization" + } + } + }, + "required" : true + }, + "responses" : { + "200" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/authorization_result" + } + } + }, + "description" : "OK" + }, + "403" : { + "content" : { + "application/problem+json" : { + "example" : { + "status" : 403, + "title" : "Forbidden", + "detail" : "Your role does not allow to perform this action. Contact System Administrator to change your access rights." + }, + "schema" : { + "$ref" : "#/components/schemas/error_information" + } + } + }, + "description" : "Forbidden" + } + }, + "summary" : "Callout request for access authorization (performAccessControl)", + "tags" : [ "Authorization API" ] + } + }, + "/actuator" : { + "get" : { + "description" : "A1-PMS Springboot Service Actuator web endpoint. Returns a set of links to available/enabled actuator endpoints.\n", + "externalDocs" : { + "description" : "Spring Boot Actuator Web API Documentation", + "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html" + }, + "operationId" : "actuatorLinks", + "responses" : { + "200" : { + "content" : { + "application/vnd.spring-boot.actuator.v3+json" : { + "schema" : { + "additionalProperties" : { + "additionalProperties" : { + "$ref" : "#/components/schemas/Link" + }, + "type" : "object" + }, + "type" : "object" + } + }, + "application/json" : { + "schema" : { + "additionalProperties" : { + "additionalProperties" : { + "$ref" : "#/components/schemas/Link" + }, + "type" : "object" + }, + "type" : "object" + } + }, + "application/vnd.spring-boot.actuator.v2+json" : { + "schema" : { + "additionalProperties" : { + "additionalProperties" : { + "$ref" : "#/components/schemas/Link" + }, + "type" : "object" + }, + "type" : "object" + } + } + }, + "description" : "OK" + } + }, + "summary" : "Actuator endpoint - Root (actuatorLinks)", + "tags" : [ "Actuator API" ], + "x-internal" : true + } + }, "/actuator/heapdump" : { "get" : { - "operationId" : "heapdump", + "description" : "A1-PMS Springboot Service Actuator web endpoint - HeapDump. \n", + "externalDocs" : { + "description" : "Spring Boot Actuator Web API Documentation", + "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html" + }, + "operationId" : "actuatorHeapdump", "responses" : { "200" : { "content" : { @@ -1325,19 +1035,133 @@ "description" : "OK" } }, - "summary" : "Actuator web endpoint 'heapdump'", - "tags" : [ "Actuator" ], + "summary" : "Actuator endpoint - Heapdump (actuatorHeapdump)", + "tags" : [ "Actuator API" ], "x-internal" : true } }, - "/a1-policy/v2/policies/{policy_id}/status" : { + "/actuator/info" : { "get" : { - "description" : "Returns a policy status", - "operationId" : "getPolicyStatus", + "description" : "A1-PMS Springboot Service Actuator web endpoint - Info. \n", + "externalDocs" : { + "description" : "Spring Boot Actuator Web API Documentation", + "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html" + }, + "operationId" : "actuatorInfo", + "responses" : { + "200" : { + "content" : { + "application/vnd.spring-boot.actuator.v3+json" : { + "schema" : { + "type" : "object" + } + }, + "application/json" : { + "schema" : { + "type" : "object" + } + }, + "application/vnd.spring-boot.actuator.v2+json" : { + "schema" : { + "type" : "object" + } + } + }, + "description" : "OK" + } + }, + "summary" : "Actuator endpoint - Info (actuatorInfo)", + "tags" : [ "Actuator API" ], + "x-internal" : true + } + }, + "/actuator/threaddump" : { + "get" : { + "description" : "A1-PMS Springboot Service Actuator web endpoint - ThreadDump. \n", + "externalDocs" : { + "description" : "Spring Boot Actuator Web API Documentation", + "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html" + }, + "operationId" : "actuatorThreaddump", + "responses" : { + "200" : { + "content" : { + "text/plain;charset=UTF-8" : { + "schema" : { + "type" : "object" + } + }, + "application/vnd.spring-boot.actuator.v3+json" : { + "schema" : { + "type" : "object" + } + }, + "application/json" : { + "schema" : { + "type" : "object" + } + }, + "application/vnd.spring-boot.actuator.v2+json" : { + "schema" : { + "type" : "object" + } + } + }, + "description" : "OK" + } + }, + "summary" : "Actuator endpoint - Threaddump (actuatorThreaddump)", + "tags" : [ "Actuator API" ], + "x-internal" : true + } + }, + "/actuator/loggers" : { + "get" : { + "description" : "A1-PMS Springboot Service Actuator web endpoint - Get a list of Loggers. \n", + "externalDocs" : { + "description" : "Spring Boot Actuator Web API Documentation", + "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html" + }, + "operationId" : "actuatorLoggers", + "responses" : { + "200" : { + "content" : { + "application/vnd.spring-boot.actuator.v3+json" : { + "schema" : { + "type" : "object" + } + }, + "application/json" : { + "schema" : { + "type" : "object" + } + }, + "application/vnd.spring-boot.actuator.v2+json" : { + "schema" : { + "type" : "object" + } + } + }, + "description" : "OK" + } + }, + "summary" : "Actuator endpoint - Get Loggers (actuatorLoggers)", + "tags" : [ "Actuator API" ], + "x-internal" : true + } + }, + "/actuator/loggers/{name}" : { + "get" : { + "description" : "A1-PMS Springboot Service Actuator web endpoint - Get a single named Logger. \n", + "externalDocs" : { + "description" : "Spring Boot Actuator Web API Documentation", + "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html" + }, + "operationId" : "actuatorGetLogger", "parameters" : [ { "explode" : false, "in" : "path", - "name" : "policy_id", + "name" : "name", "required" : true, "schema" : { "type" : "string" @@ -1347,29 +1171,280 @@ "responses" : { "200" : { "content" : { + "application/vnd.spring-boot.actuator.v3+json" : { + "schema" : { + "type" : "object" + } + }, "application/json" : { - "examples" : { - "policy_status_info" : { - "$ref" : "#/components/examples/policy_status_info" - } - }, "schema" : { - "$ref" : "#/components/schemas/policy_status_info" + "type" : "object" + } + }, + "application/vnd.spring-boot.actuator.v2+json" : { + "schema" : { + "type" : "object" } } }, - "description" : "OK - Policy status" + "description" : "OK" + } + }, + "summary" : "Actuator endpoint - Get Logger (actuatorGetLogger)", + "tags" : [ "Actuator API" ], + "x-internal" : true + }, + "post" : { + "description" : "A1-PMS Springboot Service Actuator web endpoint - Create or Update single named Logger. \n", + "externalDocs" : { + "description" : "Spring Boot Actuator Web API Documentation", + "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html" + }, + "operationId" : "actuatorSetlogger", + "parameters" : [ { + "explode" : false, + "in" : "path", + "name" : "name", + "required" : true, + "schema" : { + "type" : "string" }, - "404" : { + "style" : "simple" + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "enum" : [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL", "OFF" ], + "type" : "string" + } + } + } + }, + "responses" : { + "200" : { "content" : { - "application/problem+json" : { - "example" : [ ] + "*/*" : { + "schema" : { + "type" : "object" + } } }, - "description" : "Not Found" + "description" : "OK" } }, - "tags" : [ "A1 Policy Management" ] + "summary" : "Actuator endpoint - Set Logger (actuatorSetlogger)", + "tags" : [ "Actuator API" ], + "x-internal" : true + } + }, + "/actuator/logfile" : { + "get" : { + "description" : "A1-PMS Springboot Service Actuator web endpoint - Get the Log file. \n", + "externalDocs" : { + "description" : "Spring Boot Actuator Web API Documentation", + "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html" + }, + "operationId" : "actuatorGetLogFile", + "responses" : { + "200" : { + "content" : { + "text/plain;charset=UTF-8" : { + "schema" : { + "type" : "object" + } + } + }, + "description" : "OK" + } + }, + "summary" : "Actuator endpoint - Log File (actuatorGetLogFile)", + "tags" : [ "Actuator API" ], + "x-internal" : true + } + }, + "/actuator/health" : { + "get" : { + "description" : "A1-PMS Springboot Service Actuator web endpoint - Health Check. \n", + "externalDocs" : { + "description" : "Spring Boot Actuator Web API Documentation", + "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html" + }, + "operationId" : "actuatorHealth", + "responses" : { + "200" : { + "content" : { + "application/vnd.spring-boot.actuator.v3+json" : { + "schema" : { + "type" : "object" + } + }, + "application/json" : { + "schema" : { + "type" : "object" + } + }, + "application/vnd.spring-boot.actuator.v2+json" : { + "schema" : { + "type" : "object" + } + } + }, + "description" : "OK" + } + }, + "summary" : "Actuator endpoint - Health (actuatorHealth)", + "tags" : [ "Actuator API" ], + "x-internal" : true + } + }, + "/actuator/health/**" : { + "get" : { + "description" : "A1-PMS Springboot Service Actuator web endpoint - Health Status for an Application Component. \n", + "externalDocs" : { + "description" : "Spring Boot Actuator Web API Documentation", + "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html" + }, + "operationId" : "actuatorHealthComponent", + "responses" : { + "200" : { + "content" : { + "application/vnd.spring-boot.actuator.v3+json" : { + "schema" : { + "type" : "object" + } + }, + "application/json" : { + "schema" : { + "type" : "object" + } + }, + "application/vnd.spring-boot.actuator.v2+json" : { + "schema" : { + "type" : "object" + } + } + }, + "description" : "OK" + } + }, + "summary" : "Actuator endpoint - Component Health (actuatorHealthComponent)", + "tags" : [ "Actuator API" ], + "x-internal" : true + } + }, + "/actuator/shutdown" : { + "post" : { + "description" : "A1-PMS Springboot Service Actuator web endpoint - Shutdown the Application. \n", + "externalDocs" : { + "description" : "Spring Boot Actuator Web API Documentation", + "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html" + }, + "operationId" : "actuatorShutdown", + "responses" : { + "200" : { + "content" : { + "application/vnd.spring-boot.actuator.v3+json" : { + "schema" : { + "type" : "object" + } + }, + "application/json" : { + "schema" : { + "type" : "object" + } + }, + "application/vnd.spring-boot.actuator.v2+json" : { + "schema" : { + "type" : "object" + } + } + }, + "description" : "OK" + } + }, + "summary" : "Actuator endpoint - Shutdown (actuatorShutdown)", + "tags" : [ "Actuator API" ], + "x-internal" : true + } + }, + "/actuator/metrics" : { + "get" : { + "description" : "A1-PMS Springboot Service Actuator web endpoint - Get a list of Application metrics names. \n", + "externalDocs" : { + "description" : "Spring Boot Actuator Web API Documentation", + "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html" + }, + "operationId" : "actuatorMetrics", + "responses" : { + "200" : { + "content" : { + "application/vnd.spring-boot.actuator.v3+json" : { + "schema" : { + "type" : "object" + } + }, + "application/json" : { + "schema" : { + "type" : "object" + } + }, + "application/vnd.spring-boot.actuator.v2+json" : { + "schema" : { + "type" : "object" + } + } + }, + "description" : "OK" + } + }, + "summary" : "Actuator endpoint - Metrics (actuatorMetrics)", + "tags" : [ "Actuator API" ], + "x-internal" : true + } + }, + "/actuator/metrics/{requiredMetricName}" : { + "get" : { + "description" : "A1-PMS Springboot Service Actuator web endpoint - Get the value for a named Application metric. \n", + "externalDocs" : { + "description" : "Spring Boot Actuator Web API Documentation", + "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html" + }, + "operationId" : "actuatorGetMetric", + "parameters" : [ { + "explode" : false, + "in" : "path", + "name" : "requiredMetricName", + "required" : true, + "schema" : { + "type" : "string" + }, + "style" : "simple" + } ], + "responses" : { + "200" : { + "content" : { + "application/vnd.spring-boot.actuator.v3+json" : { + "schema" : { + "type" : "object" + } + }, + "application/json" : { + "schema" : { + "type" : "object" + } + }, + "application/vnd.spring-boot.actuator.v2+json" : { + "schema" : { + "type" : "object" + } + } + }, + "description" : "OK" + } + }, + "summary" : "Actuator endpoint - Get Metric (actuatorGetMetric)", + "x-internal" : true } } }, @@ -1401,48 +1476,48 @@ } }, "policy_type_definition" : { - "description" : "Schema of the given Policy type", + "description" : "Schema of the given A1 Policy Type", "value" : { "policy_schema" : "{}" } }, "policy_type_id_list" : { - "description" : "Array of policy type id's", + "description" : "Array of A1 Policy Type id's", "value" : { "policy_type_id_list" : [ "policytype_id", "policytype_id" ] } }, "policy_info" : { - "description" : "Policy information of one A1-P policy", + "description" : "Information for an A1 Policy Instance", "value" : { - "ric_id" : "ric_id", - "policy_id" : "policy_id", + "ric_id" : "ric_id1", + "policy_id" : "policy_id1", "transient" : false, - "service_id" : "service_id", + "service_id" : "service_id1", "policy_data" : "{}", "status_notification_uri" : "status_notification_uri", - "policytype_id" : "policytype_id" + "policytype_id" : "policytype_id1" } }, "policy_info_list" : { "description" : "List of policy information", "value" : { "policies" : [ { - "ric_id" : "ric_id", - "policy_id" : "policy_id", + "ric_id" : "ric_id1", + "policy_id" : "policy_id1", "transient" : false, - "service_id" : "service_id", + "service_id" : "service_id1", "policy_data" : "{}", "status_notification_uri" : "status_notification_uri", - "policytype_id" : "policytype_id" + "policytype_id" : "policytype_id1" }, { - "ric_id" : "ric_id", - "policy_id" : "policy_id", - "transient" : false, - "service_id" : "service_id", + "ric_id" : "ric_id2", + "policy_id" : "policy_id2", + "transient" : true, + "service_id" : "service_id2", "policy_data" : "{}", "status_notification_uri" : "status_notification_uri", - "policytype_id" : "policytype_id" + "policytype_id" : "policytype_id2" } ] } }, @@ -1549,10 +1624,10 @@ }, "schemas" : { "policy_type_definition" : { - "description" : "Contains policy type schema definition", + "description" : "Contains A1 Policy Type schema definition", "properties" : { "policy_schema" : { - "description" : "Policy type json schema. The schema is a json object following http://json-schema.org/draft-07/schema", + "description" : "A1 Policy Type json schema. The schema is a json object following http://json-schema.org/draft-07/schema", "type" : "object" } }, @@ -1563,7 +1638,7 @@ "properties" : { "detail" : { "description" : " A human-readable explanation specific to this occurrence of the problem.", - "example" : "Policy type not found", + "example" : "A1 Policy Type not found", "type" : "string" }, "title" : { @@ -1628,9 +1703,9 @@ "type" : "string" }, "policytype_ids" : { - "description" : "supported policy types", + "description" : "supported A1 Policy Types", "items" : { - "description" : "supported policy types", + "description" : "supported A1 Policy Types", "type" : "string" }, "type" : "array" @@ -1642,7 +1717,7 @@ "description" : "Information for one service", "properties" : { "callback_url" : { - "description" : "callback for notifying of Near-RT RIC state changes", + "description" : "Callback for notifying of Near-RT RIC state changes", "type" : "string" }, "service_id" : { @@ -1650,7 +1725,7 @@ "type" : "string" }, "keep_alive_interval_seconds" : { - "description" : "keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.", + "description" : "Keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n", "format" : "int64", "type" : "integer" } @@ -1734,7 +1809,7 @@ "type" : "string" }, "policy_type_id" : { - "description" : "Policy type identifier", + "description" : "A1 Policy Type identifier", "type" : "string" } }, @@ -1752,12 +1827,12 @@ "type" : "object" }, "policy_type_id_list" : { - "description" : "Information about policy types", + "description" : "Information about A1 Policy Types", "properties" : { "policytype_ids" : { - "description" : "Policy type identities", + "description" : "A1 Policy Type identities", "items" : { - "description" : "Policy type identities", + "description" : "A1 Policy Type identities", "type" : "string" }, "type" : "array" @@ -1778,14 +1853,14 @@ }, "transient" : { "default" : false, - "description" : "if true, the policy is deleted at RIC restart. If false, its value is maintained by this service until explicitly deleted. Default false.", + "description" : "If true, the policy is automatically deleted if the targeted Near-RT RIC restarts or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.\n", "example" : false, "nullable" : false, "type" : "boolean" }, "service_id" : { "default" : "", - "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered.", + "description" : "The identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered. If the service is registered, the A1 Policy Instance will be subject to the same supervision rules as the the service's other policies.\n", "type" : "string" }, "policy_data" : { @@ -1797,7 +1872,7 @@ "type" : "string" }, "policytype_id" : { - "description" : "identity of the policy type", + "description" : "identity of the A1 Policy Type", "type" : "string" } }, @@ -1834,14 +1909,14 @@ "type" : "object" }, "service_callback_info_v2" : { - "description" : "Information transferred as in Service callbacks (callback_url)", + "description" : "Information transferred in Service callbacks, \nif a callback URL was provided for a registered service\n", "properties" : { "ric_id" : { "description" : "identity of a Near-RT RIC", "type" : "string" }, "event_type" : { - "description" : "values:\nAVAILABLE: the Near-RT RIC has become available for A1 Policy management", + "description" : "values: \n AVAILABLE: the Near-RT RIC has become available for A1 Policy management\n", "enum" : [ "AVAILABLE" ], "type" : "string" } diff --git a/docs/offeredapis/swagger/pms-api.yaml b/docs/offeredapis/swagger/pms-api.yaml index 421201e9..c8c1b089 100644 --- a/docs/offeredapis/swagger/pms-api.yaml +++ b/docs/offeredapis/swagger/pms-api.yaml @@ -1,6 +1,6 @@ +# ============LICENSE_START======================================================= +# Copyright (C) 2020-2023 Nordix Foundation. All rights reserved. # Copyright (C) 2023-2025 OpenInfra Foundation Europe. All rights reserved. -# Modifications Copyright (C) 2021 Pantheon.tech -# Modifications Copyright (C) 2021 Bell Canada # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,174 +22,98 @@ info: x-api-id: a31c510b-20e6-4a08-af16-368c44d7fba8 x-audience: external-public description: "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service\ - \ provides a REST API for managemecnt of A1 policies. <br/>The main tasks of the\ - \ service are:</p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring\ - \ and maintaining consistency of the SMO view of A1 policies and the Near-RT RICs</li><li>Maintaining\ - \ a view of supported Near-RT RIC policy types</li><li>Supervision of using services\ - \ (R-APPs). When a service is unavailable, its policies are removed.</li></ul><h2>APIs\ - \ provided or defined by the service</h2><h3>A1 Policy Management</h3><p>This\ - \ is an API for management of A1 Policies.</p><ul><li>A1 Policy retrieval, creation,\ - \ modification and deletion.</li><li>Retrieval of supported A1 Policy types for\ + \ provides a REST API for managing A1 policies. <br/>This document describes an older pre-spec API set + \ to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring\ + \ and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining\ + \ a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services\ + \ (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs\ + \ provided or defined by the service</h2><h3>A1 Policy Management (Older pre-spec version) </h3>\ + \ <p>This is an older API for managing A1 Policies:</p><ul><li>A1 Policy retrieval, creation,\ + \ modification and deletion.</li><li>Retrieval of supported A1 Policy Types for\ \ a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management\ \ of configuration</h3><p>API for updating and retrieval of the component configuration.\ - \ Note that there other ways to maintain the configuration.</p><h3>Service callbacks</h3><p>These\ + \ Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These\ \ are endpoints that are invoked by this service. The callbacks are registered\ - \ in this service at service registration.</p><h3>NearRT-RIC Repository</h3><p>This\ - \ is an API that provides support for looking up a NearRT-RIC. Each A1 policy\ - \ is targeted for one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision\ - \ of the PMS component.</p><h3>Service Registry and Supervision</h3><p>API used\ - \ for registering services that uses PMS. Each A1 policy is optionally owned by\ - \ a service. PMS can supervise each registered service by a heart-beat supervision\ - \ and will automatically remove policies for unavailable services. Note that a\ - \ service does not need to be registered in order to create A1 Policies. This\ - \ is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used\ + \ in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3>\ + \ <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy\ + \ is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision\ + \ of the A1 Policy Management Service .</p><h3>Service Registry and Supervision</h3>\ + \ <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner.\ + \ If the owner service is registered, then the service can be monitored by a heart-beat supervision\ + \ mechanism, and if the registered service becomes unavailable, then its A1 Policies are removed. Note \ + \ that services do not need to be registered to create A1 Policies, but unregistered services are not \ + \ supervised. This is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used\ \ for access control of A1 Policy access. If configured, an external authorization\ - \ provider is requested to grant access to the A1 Policy type.</p><h3>Spring Boot\ - \ Actuator</h3><p>Provides generic functions used to monitor and manage the Spring\ - \ web application.</p>" + \ provider is requested to grant access to the A1 Policy Type.</p><h3>Spring Boot\ + \ Actuator</h3><p>Provides built-in functions used to monitor and configure the Spring\ + \ web application hosting the service.</p>" license: - name: Copyright (C) 2020-2023 Nordix Foundation, and Copyright (C) 2024-2025 OpenInfra Foundation Europe. + name: | + Copyright (C) 2020-2023 Nordix Foundation, and Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved. Licensed under the Apache 2 License. url: http://www.apache.org/licenses/LICENSE-2.0 - title: ONAP CCSDK A1 Policy Management Service + title: ONAP CCSDK - Pre-Spec A1 Policy Management API version: 1.3.0 contact: + name: ONAP CCSDK Project url: https://www.onap.org/ email: discuss-list@onap.com servers: - url: / tags: - - name: A1 Policy Management (Older version) - description: "Older API used to create polices, Policy Instances and get them as individual - using an ID or get all policies/Instances." + - name: A1 Policy Management + description: > + Older pre-spec API used to get, create, update and delete A1 Policy Instances. Also used to query A1 Policy Types. - name: NearRT-RIC Repository - description: "API used to get the NearRT-RIC for the managed element." + description: > + Older API used to get information about registered Near-RT RICs. - name: Service Registry and Supervision - description: "API used to keep the service Alive with in the timeout period" + description: > + Older API used to manage registered service, and control their keep-alive status via heart-beat messages. - name: Health Check - description: "API used to get the health status and statistics of this service" - - name: Service callbacks - description: "Callouts to indicate status schanges relevant for Services. - <br> Note that these calls are called by A1-PMS, not provided." + description: > + API used to get the health status and statistics of this service + - name: Service Callbacks + description: > + Callout to registered services to indicate a status changes for a Near-RT RIC. + Note that these operations are called by the A1 Policy Management Service, not provided. - name: Authorization API - description: "API used for authorization of information A1 policy access (this is - provided by an authorization producer such as OPA). <br> Note that this API is called - by A1-PMS, it is not provided." + description: > + API used for authorization of information A1 policy access (this is + provided by an authorization producer such as OPA). + Note that these operations are called by the A1 Policy Management Service, not provided. - name: Configuration - description: "API used to create or fetch the application configuration." - - name: Actuator - description: Monitor and interact + description: > + API used to create or fetch the application configuration. + - name: Actuator API + description: > + API used to monitor and configure the A1-PMS Springboot Service. externalDocs: description: Spring Boot Actuator Web API Documentation - url: https://docs.spring.io/spring-boot/docs/current/actuator-api/html/ + url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html + paths: - /a1-policy/v2/policy-instances: + /status: get: - description: "Returns a list of A1 policies matching given search criteria.\ - \ <br>If several query parameters are defined, the policies matching all conditions\ - \ are returned." - operationId: getPolicyInstances - parameters: - - description: Select policies with a given type identity. - explode: true - in: query - name: policytype_id - required: false - schema: - type: string - style: form - - description: Select policies for a given Near-RT RIC identity. - explode: true - in: query - name: ric_id - required: false - schema: - type: string - style: form - - description: Select policies owned by a given service. - explode: true - in: query - name: service_id - required: false - schema: - type: string - style: form - - description: Select policies of a given type name (type identity has the format - <typename_version>) - explode: true - in: query - name: type_name - required: false - schema: - type: string - style: form - responses: - "200": - content: - application/json: - examples: - policy_info_list: - $ref: '#/components/examples/policy_info_list' - schema: - $ref: '#/components/schemas/policy_info_list' - description: OK - Returns A1 Policies which matches the criteria - "404": - content: - application/json: - schema: - $ref: '#/components/schemas/error_information' - description: "Not Found - Near-RT RIC, policy type or service not found" - summary: Query for A1 policy instances - tags: - - A1 Policy Management - /example-authz-check: - post: - description: The authorization function decides if access is granted. - operationId: performAccessControl - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/policy_authorization' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/authorization_result' - description: OK - "403": - $ref: '#/components/responses/Forbidden' - summary: Request for access authorization. + operationId: getStatusV1 + description: Returns status and statistics of this service + summary: Get Status (getStatusV1) tags: - - Authorization API - /actuator/threaddump: - get: - x-internal: true - operationId: threaddump + - Health Check responses: "200": content: - text/plain;charset=UTF-8: - schema: - type: object - application/vnd.spring-boot.actuator.v3+json: - schema: - type: object - application/json: - schema: - type: object - application/vnd.spring-boot.actuator.v2+json: + '*/*': schema: - type: object - description: OK - summary: Actuator web endpoint 'threaddump' - tags: - - Actuator + type: string + description: OK - Service is living /a1-policy/v2/status: get: operationId: getStatus + description: Returns status and statistics of this service + summary: Get Status (getStatus) + tags: + - Health Check responses: "200": content: @@ -200,58 +124,19 @@ paths: status_info: $ref: '#/components/examples/status_info' description: OK- Service is living Ok - description: Returns status and statistics of this service - tags: - - Health Check - /actuator/loggers: - get: - x-internal: true - operationId: loggers - responses: - "200": - content: - application/vnd.spring-boot.actuator.v3+json: - schema: - type: object - application/json: - schema: - type: object - application/vnd.spring-boot.actuator.v2+json: - schema: - type: object - description: OK - summary: Actuator web endpoint 'loggers' - tags: - - Actuator - /actuator/health/**: - get: - x-internal: true - operationId: health-path - responses: - "200": - content: - application/vnd.spring-boot.actuator.v3+json: - schema: - type: object - application/json: - schema: - type: object - application/vnd.spring-boot.actuator.v2+json: - schema: - type: object - description: OK - summary: Actuator web endpoint 'health-path' - tags: - - Actuator /a1-policy/v2/rics/ric: get: - description: 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 + description: > + Query information about a Near-RT RIC. Either a Near-RT RIC identity or a Managed Element + identity can be specified. The intention with Managed Element identity is the ID used in O1 for accessing the traffical element (such as the ID of CU). operationId: getRic + summary: Get a Near-RT RIC (getRic) + tags: + - NearRT-RIC Repository parameters: - - description: "The identity of a Managed Element. If given, the Near-RT RIC\ - \ managing the ME is returned." + - description: > + The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned. explode: true in: query name: managed_element_id @@ -280,32 +165,13 @@ paths: "404": $ref: '#/components/responses/NotFound' description: NotFound - Requested NearRT-RIC Not Found - summary: Returns info of Near-RT RIC queried by the ric-id and managed-element-id - tags: - - NearRT-RIC Repository - /actuator/shutdown: - post: - x-internal: true - operationId: shutdown - responses: - "200": - content: - application/vnd.spring-boot.actuator.v3+json: - schema: - type: object - application/json: - schema: - type: object - application/vnd.spring-boot.actuator.v2+json: - schema: - type: object - description: OK - summary: Actuator web endpoint 'shutdown' - tags: - - Actuator /a1-policy/v2/policy-types: get: operationId: getPolicyTypes + description: Query A1 Policy Type identities using query parameters + summary: Get A1 Policy Types (getPolicyTypes) + tags: + - A1 Policy Management parameters: - description: Select types for the given Near-RT RIC identity. explode: true @@ -315,8 +181,8 @@ paths: schema: type: string style: form - - description: Select types with the given type name (type identity has the - format <typename_version>) + - description: Select types compatible with the given type name (type identity has the + format 'typename_version') explode: true in: query name: type_name @@ -348,13 +214,13 @@ paths: "404": $ref: '#/components/responses/NotFound' description: 'Not Found - Requested Policy Type IDs Not Found' - description: Query policy type identities - tags: - - A1 Policy Management /a1-policy/v2/policies/{policy_id}: delete: - description: Deleting the policy using the Policy's Policy ID. + description: Delete an A1 Policy instance using its policy ID. operationId: deletePolicy + summary: Delete an A1 Policy instance (deletePolicy) + tags: + - A1 Policy Management parameters: - explode: false in: path @@ -373,11 +239,12 @@ paths: "423": $ref: '#/components/responses/Locked' description: 'The requested policy using policy_id is Locked' - summary: Delete a policy - tags: - - A1 Policy Management get: + description: Get an A1 Policy instance using its policy ID operationId: getPolicy + summary: Get an A1 Policy instance (getPolicy) + tags: + - A1 Policy Management parameters: - explode: false in: path @@ -399,175 +266,17 @@ paths: "404": $ref: '#/components/responses/NotFound' description: 'Not Found - Requested Policy using policy_id is not found' - description: Returns a policy - tags: - - A1 Policy Management - /actuator/metrics/{requiredMetricName}: - get: - x-internal: true - operationId: metrics-requiredMetricName - parameters: - - explode: false - in: path - name: requiredMetricName - required: true - schema: - type: string - style: simple - responses: - "200": - content: - application/vnd.spring-boot.actuator.v3+json: - schema: - type: object - application/json: - schema: - type: object - application/vnd.spring-boot.actuator.v2+json: - schema: - type: object - description: OK - summary: Actuator web endpoint 'metrics-requiredMetricName' - tags: - - Actuator - /a1-policy/v2/configuration: - get: - operationId: getConfiguration - responses: - "200": - content: - application/json: - schema: - type: string - description: OK - Configuration - "404": - $ref: '#/components/responses/NotFound' - description: Not Found - Configuration is not found or readable - description: Returns the contents of the application configuration file - tags: - - Configuration - put: - operationId: putConfiguration - requestBody: - content: - application/json: - schema: - type: object - required: true - responses: - "200": - content: - '*/*': - schema: - $ref: '#/components/schemas/void' - description: OK - Configuration updated - "400": - $ref: '#/components/responses/BadRequest' - description: Replace the current configuration with the given configuration - tags: - - Configuration - /actuator: - get: - x-internal: true - operationId: links - responses: - "200": - content: - application/vnd.spring-boot.actuator.v3+json: - schema: - additionalProperties: - additionalProperties: - $ref: '#/components/schemas/Link' - type: object - type: object - application/json: - schema: - additionalProperties: - additionalProperties: - $ref: '#/components/schemas/Link' - type: object - type: object - application/vnd.spring-boot.actuator.v2+json: - schema: - additionalProperties: - additionalProperties: - $ref: '#/components/schemas/Link' - type: object - type: object - description: OK - summary: Actuator root web endpoint - tags: - - Actuator - /actuator/loggers/{name}: - get: - x-internal: true - operationId: loggers-name - parameters: - - explode: false - in: path - name: name - required: true - schema: - type: string - style: simple - responses: - "200": - content: - application/vnd.spring-boot.actuator.v3+json: - schema: - type: object - application/json: - schema: - type: object - application/vnd.spring-boot.actuator.v2+json: - schema: - type: object - description: OK - summary: Actuator web endpoint 'loggers-name' - tags: - - Actuator - post: - x-internal: true - operationId: loggers-name_2 - parameters: - - explode: false - in: path - name: name - required: true - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - enum: - - TRACE - - DEBUG - - INFO - - WARN - - ERROR - - FATAL - - "OFF" - type: string - responses: - "200": - content: - '*/*': - schema: - type: object - description: OK - summary: Actuator web endpoint 'loggers-name' - tags: - - Actuator /a1-policy/v2/services/{service_id}/keepalive: put: description: A registered service should invoke this operation regularly to - indicate that it is still alive. If a registered service fails to invoke this - operation before the end of a timeout period the service will be deregistered - and all its A1 policies wil be removed. (This timeout can be set or disabled - when each service is initially registered) + indicate that it is still alive. If a registered service fails to invoke some operation, + or this operation, before the end of a timeout period the service will be deregistered + and all its A1 policies wil be removed. This operation is only intended for registered + services. (This timeout can be set or disabled when each service is initially registered) operationId: keepAliveService + summary: Heartbeat message from a service (keepAliveService) + tags: + - Service Registry and Supervision parameters: - explode: false in: path @@ -582,40 +291,20 @@ paths: '*/*': schema: type: object - description: "OK - Service supervision timer refreshed, OK" + description: OK - Service supervision timer refreshed, OK "404": $ref: '#/components/responses/NotFound' - summary: Heartbeat indicates that the service is running - tags: - - Service Registry and Supervision - /actuator/metrics: - get: - x-internal: true - operationId: metrics - responses: - "200": - content: - application/vnd.spring-boot.actuator.v3+json: - schema: - type: object - application/json: - schema: - type: object - application/vnd.spring-boot.actuator.v2+json: - schema: - type: object - description: OK - summary: Actuator web endpoint 'metrics' - tags: - - Actuator /a1-policy/v2/rics: get: - description: The call returns all Near-RT RICs that supports a given policy - type identity + description: Get all Near-RT RICs that supports a given A1 Policy Type ID operationId: getRics + summary: Get Near-RT RICs for A1 Policy Type (getRics) + tags: + - NearRT-RIC Repository parameters: - - description: "The identity of a policy type. If given, all Near-RT RICs supporting\ - \ the policy type are returned" + - description: > + The identity of an A1 Policy Type. If given, all Near-RT RICs supporting + the A1 Policy Type are returned. explode: true in: query name: policytype_id @@ -635,16 +324,19 @@ paths: description: OK "404": $ref: '#/components/responses/NotFound' - summary: Query Near-RT RIC information - tags: - - NearRT-RIC Repository /a1-policy/v2/services: get: - description: Either information about a registered service with given identity - or all registered services are returned. + description: > + Get information about all registered services, or a single registered service. + If the service ID of a registered service is included in the query, information about that + service is returned. Otherwise Information about all registered is returned. + This operation does not retrieve information about unregistered services. operationId: getServices + summary: Get Services (getServices) + tags: + - Service Registry and Supervision parameters: - - description: The identity of the service + - description: The identity of the registered service explode: true in: query name: service_id @@ -664,16 +356,19 @@ paths: description: OK "404": $ref: '#/components/responses/NotFound' - summary: Returns service information - tags: - - Service Registry and Supervision put: - description: "Registering a service is needed to:<ul><li>Get callbacks about\ - \ available NearRT RICs.</li><li>Activate supervision of the service. If a\ - \ service is inactive, its policies will automatically be deleted.</li></ul>Policies\ - \ can be created even if the service is not registerred. This is a feature\ - \ which it is optional to use." + description: > + Register a single service, or update a previous registtration. + Service registration is required to get callbacks about available NearRT RICs + and to enable supervision of the service's active status. If a registered + service becomes inactive, its policies can be automatically deleted. + A1 Policy instances can also be created for unregistered services. + If an unregistered service is later registered, the service's policies are + retained when the service becomes registered. This feature is optional to use. operationId: putService + summary: Register or update a Service (putService) + tags: + - Service Registry and Supervision requestBody: content: application/json: @@ -695,15 +390,18 @@ paths: description: Created - Service created "400": $ref: '#/components/responses/BadRequest' - summary: Register a service - tags: - - Service Registry and Supervision callbacks: RICStatus: "{$request.body#/callback_url}": post: - description: The URL to this call is registered at Service registration. + description: | + Callouts to indicate Near-RT RIC status changes relevant for Services. + The URL invoked by this callback is provided at Service registration. operationId: serviceCallback + summary: Callback for Near-RT RIC status (serviceCallback) + tags: + - Service Registry and Supervision + - Service Callbacks requestBody: content: application/json: @@ -719,45 +417,13 @@ paths: description: OK "404": $ref: '#/components/responses/NotFound' - summary: Callback for Near-RT RIC status - tags: - - Service callbacks - /actuator/info: - get: - x-internal: true - operationId: info - responses: - "200": - content: - application/vnd.spring-boot.actuator.v3+json: - schema: - type: object - application/json: - schema: - type: object - application/vnd.spring-boot.actuator.v2+json: - schema: - type: object - description: OK - summary: Actuator web endpoint 'info' - tags: - - Actuator - /status: - get: - operationId: getStatusV1 - responses: - "200": - content: - '*/*': - schema: - type: string - description: OK - Service is living - description: Returns status and statistics of this service - tags: - - Health Check /a1-policy/v2/policy-types/{policytype_id}: get: + description: Get an A1 Policy Type definition using its policy type ID operationId: getPolicyTypeDefinition + summary: Get an A1 Policy Type definition (getPolicyTypeDefinition) + tags: + - A1 Policy Management parameters: - explode: false in: path @@ -775,54 +441,20 @@ paths: examples: policy_type_definition: $ref: '#/components/examples/policy_type_definition' - description: OK - schema of the given policy type + description: OK - schema of the requested A1 Policy Type "404": $ref: '#/components/responses/NotFound' - description: Returns a policy type definition - tags: - - A1 Policy Management - /actuator/logfile: - get: - x-internal: true - operationId: logfile - responses: - "200": - content: - text/plain;charset=UTF-8: - schema: - type: object - description: OK - summary: Actuator web endpoint 'logfile' - tags: - - Actuator - /actuator/health: - get: - x-internal: true - operationId: health - responses: - "200": - content: - application/vnd.spring-boot.actuator.v3+json: - schema: - type: object - application/json: - schema: - type: object - application/vnd.spring-boot.actuator.v2+json: - schema: - type: object - description: OK - summary: Actuator web endpoint 'health' - tags: - - Actuator /a1-policy/v2/policies: get: - description: "Returns a list of A1 policies matching given search criteria.\ - \ <br>If several query parameters are defined, the policies matching all conditions\ - \ are returned." + description: > + Retrieve a list of A1 Policy Instance IDs for policies that match given search criteria. + If multiple query parameters are given, the policies matching all conditions are returned. operationId: getPolicyIds + summary: Query A1 Policy Instances (getPolicyIds) + tags: + - A1 Policy Management parameters: - - description: Select policies of a given policy type identity. + - description: Select policies of a given A1 Policy Type ID. explode: true in: query name: policytype_id @@ -838,7 +470,7 @@ paths: schema: type: string style: form - - description: Select policies owned by a given service. + - description: Select policies owned by a given service. (Both registered and unregistered services) explode: true in: query name: service_id @@ -846,8 +478,9 @@ paths: schema: type: string style: form - - description: Select policies of types with the given type name (type identity - has the format <typename_version>) + - description: > + Select policies of types with the given A1 Policy Type name + (type names have the format 'typename_version') explode: true in: query name: type_name @@ -867,11 +500,12 @@ paths: description: OK - Policy identities "404": $ref: '#/components/responses/NotFound' - summary: Query policy identities + put: + description: Create or Update an A1 Policy Instance tags: - A1 Policy Management - put: operationId: putPolicy + summary: Create or Update an A1 Policy Instance (putPolicy) requestBody: content: application/json: @@ -893,12 +527,74 @@ paths: description: Created - Policy created "423": $ref: '#/components/responses/Locked' - description: Create or update a policy + /a1-policy/v2/policy-instances: + get: + description: > + Returns a collection of A1 Policy Instance information for policies that match given search criteria. + If several query parameters are defined, the policies matching all conditions are returned. + operationId: getPolicyInstances + summary: Query for A1 Policy instances (getPolicyInstances) tags: - A1 Policy Management + parameters: + - description: Select policies with a given A1 Policy Type ID. + explode: true + in: query + name: policytype_id + required: false + schema: + type: string + style: form + - description: Select policies for a given Near-RT RIC identity. + explode: true + in: query + name: ric_id + required: false + schema: + type: string + style: form + - description: Select policies owned by a given service (registered or unregistered). + explode: true + in: query + name: service_id + required: false + schema: + type: string + style: form + - description: Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). + explode: true + in: query + name: type_name + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + examples: + policy_info_list: + $ref: '#/components/examples/policy_info_list' + schema: + $ref: '#/components/schemas/policy_info_list' + description: OK - Returns A1 Policy Instances which match the criteria + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/error_information' + description: Not Found - Near-RT RIC, A1 Policy Type or service was not found /a1-policy/v2/services/{service_id}: delete: + description: > + Unregister a registered Service using its service ID. + Only registered services can be unregistered. All A1 Policy Instances + for the previously registered service will be removed. + tags: + - Service Registry and Supervision operationId: deleteService + summary: Unregister a Service (deleteService) parameters: - explode: false in: path @@ -916,13 +612,149 @@ paths: description: No Content - Service unregistered "404": $ref: '#/components/responses/NotFound' - description: Unregister a service + /a1-policy/v2/policies/{policy_id}/status: + get: + description: Retrieve the status information for an A1 Policy Instance. tags: - - Service Registry and Supervision + - A1 Policy Management + operationId: getPolicyStatus + summary: Get an A1 Policy Instance's status (getPolicyStatus) + parameters: + - explode: false + in: path + name: policy_id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/policy_status_info' + examples: + policy_status_info: + $ref: '#/components/examples/policy_status_info' + description: OK - Policy status + "404": + $ref: '#/components/responses/NotFound' + /a1-policy/v2/configuration: + get: + description: Returns the entire contents of the Application Configuration. + tags: + - Configuration + operationId: getConfiguration + summary: Get the Application Configuration (getConfiguration) + responses: + "200": + content: + application/json: + schema: + type: string + description: OK - Configuration + "404": + $ref: '#/components/responses/NotFound' + description: Not Found - Configuration is not found or is not readable + put: + description: > + Replace the current Application Configuration with a new configuration. + The new configuration, if accepted, will take effect after a short delay. + The new configuration must comply with the Application Configuration schema, + which can be found from the the Application Documentation (Developer Guide) + tags: + - Configuration + operationId: putConfiguration + summary: Set/Replace the Application Configuration (putConfiguration) + requestBody: + content: + application/json: + schema: + type: object + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/void' + description: OK - Configuration updated + "400": + $ref: '#/components/responses/BadRequest' + /example-authz-check: + post: + description: > + A template endpoint for callout requests to an external authorization function. + The authorization function, if enabled, decides if individual operations are permitted. + operationId: performAccessControl + summary: Callout request for access authorization (performAccessControl) + tags: + - Authorization API + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/policy_authorization' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/authorization_result' + description: OK + "403": + $ref: '#/components/responses/Forbidden' + /actuator: + get: + x-internal: true + operationId: actuatorLinks + description: > + A1-PMS Springboot Service Actuator web endpoint. + Returns a set of links to available/enabled actuator endpoints. + externalDocs: + description: Spring Boot Actuator Web API Documentation + url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html + summary: Actuator endpoint - Root (actuatorLinks) + tags: + - Actuator API + responses: + "200": + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + additionalProperties: + additionalProperties: + $ref: '#/components/schemas/Link' + type: object + type: object + application/json: + schema: + additionalProperties: + additionalProperties: + $ref: '#/components/schemas/Link' + type: object + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + additionalProperties: + additionalProperties: + $ref: '#/components/schemas/Link' + type: object + type: object + description: OK /actuator/heapdump: get: x-internal: true - operationId: heapdump + operationId: actuatorHeapdump + description: > + A1-PMS Springboot Service Actuator web endpoint - HeapDump. + externalDocs: + description: Spring Boot Actuator Web API Documentation + url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html + summary: Actuator endpoint - Heapdump (actuatorHeapdump) + tags: + - Actuator API responses: "200": content: @@ -930,16 +762,100 @@ paths: schema: type: object description: OK - summary: Actuator web endpoint 'heapdump' + /actuator/info: + get: + x-internal: true + operationId: actuatorInfo + description: > + A1-PMS Springboot Service Actuator web endpoint - Info. + externalDocs: + description: Spring Boot Actuator Web API Documentation + url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html + summary: Actuator endpoint - Info (actuatorInfo) tags: - - Actuator - /a1-policy/v2/policies/{policy_id}/status: + - Actuator API + responses: + "200": + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + description: OK + /actuator/threaddump: get: - operationId: getPolicyStatus + x-internal: true + operationId: actuatorThreaddump + description: > + A1-PMS Springboot Service Actuator web endpoint - ThreadDump. + externalDocs: + description: Spring Boot Actuator Web API Documentation + url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html + summary: Actuator endpoint - Threaddump (actuatorThreaddump) + tags: + - Actuator API + responses: + "200": + content: + text/plain;charset=UTF-8: + schema: + type: object + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + description: OK + /actuator/loggers: + get: + x-internal: true + operationId: actuatorLoggers + description: > + A1-PMS Springboot Service Actuator web endpoint - Get a list of Loggers. + externalDocs: + description: Spring Boot Actuator Web API Documentation + url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html + summary: Actuator endpoint - Get Loggers (actuatorLoggers) + tags: + - Actuator API + responses: + "200": + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + description: OK + /actuator/loggers/{name}: + get: + x-internal: true + operationId: actuatorGetLogger + description: > + A1-PMS Springboot Service Actuator web endpoint - Get a single named Logger. + externalDocs: + description: Spring Boot Actuator Web API Documentation + url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html + summary: Actuator endpoint - Get Logger (actuatorGetLogger) + tags: + - Actuator API parameters: - explode: false in: path - name: policy_id + name: name required: true schema: type: string @@ -947,22 +863,211 @@ paths: responses: "200": content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object application/json: schema: - $ref: '#/components/schemas/policy_status_info' - examples: - policy_status_info: - $ref: '#/components/examples/policy_status_info' - description: OK - Policy status - "404": - $ref: '#/components/responses/NotFound' - description: Returns a policy status + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + description: OK + post: + x-internal: true + operationId: actuatorSetlogger + description: > + A1-PMS Springboot Service Actuator web endpoint - Create or Update single named Logger. + externalDocs: + description: Spring Boot Actuator Web API Documentation + url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html + summary: Actuator endpoint - Set Logger (actuatorSetlogger) tags: - - A1 Policy Management + - Actuator API + parameters: + - explode: false + in: path + name: name + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + enum: + - TRACE + - DEBUG + - INFO + - WARN + - ERROR + - FATAL + - "OFF" + type: string + responses: + "200": + content: + '*/*': + schema: + type: object + description: OK + /actuator/logfile: + get: + x-internal: true + operationId: actuatorGetLogFile + description: > + A1-PMS Springboot Service Actuator web endpoint - Get the Log file. + externalDocs: + description: Spring Boot Actuator Web API Documentation + url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html + summary: Actuator endpoint - Log File (actuatorGetLogFile) + tags: + - Actuator API + responses: + "200": + content: + text/plain;charset=UTF-8: + schema: + type: object + description: OK + /actuator/health: + get: + x-internal: true + operationId: actuatorHealth + description: > + A1-PMS Springboot Service Actuator web endpoint - Health Check. + externalDocs: + description: Spring Boot Actuator Web API Documentation + url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html + summary: Actuator endpoint - Health (actuatorHealth) + tags: + - Actuator API + responses: + "200": + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + description: OK + /actuator/health/**: + get: + x-internal: true + operationId: actuatorHealthComponent + description: > + A1-PMS Springboot Service Actuator web endpoint - Health Status for an Application Component. + externalDocs: + description: Spring Boot Actuator Web API Documentation + url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html + summary: Actuator endpoint - Component Health (actuatorHealthComponent) + tags: + - Actuator API + responses: + "200": + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + description: OK + /actuator/shutdown: + post: + x-internal: true + operationId: actuatorShutdown + description: > + A1-PMS Springboot Service Actuator web endpoint - Shutdown the Application. + externalDocs: + description: Spring Boot Actuator Web API Documentation + url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html + summary: Actuator endpoint - Shutdown (actuatorShutdown) + tags: + - Actuator API + responses: + "200": + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + description: OK + /actuator/metrics: + get: + x-internal: true + operationId: actuatorMetrics + description: > + A1-PMS Springboot Service Actuator web endpoint - Get a list of Application metrics names. + externalDocs: + description: Spring Boot Actuator Web API Documentation + url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html + summary: Actuator endpoint - Metrics (actuatorMetrics) + tags: + - Actuator API + responses: + "200": + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + description: OK + /actuator/metrics/{requiredMetricName}: + get: + x-internal: true + operationId: actuatorGetMetric + description: > + A1-PMS Springboot Service Actuator web endpoint - Get the value for a named Application metric. + externalDocs: + description: Spring Boot Actuator Web API Documentation + url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html + summary: Actuator endpoint - Get Metric (actuatorGetMetric) + parameters: + - explode: false + in: path + name: requiredMetricName + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + description: OK + components: + responses: Locked: - description: "Locked - HTTP Status code which can be used when the state is Locked" + description: Locked - HTTP Status code which can be used when the state is Locked content: application/problem+json: schema: @@ -1020,43 +1125,43 @@ components: keep_alive_interval_seconds: 0 time_since_last_activity_seconds: 6 policy_type_definition: - description: Schema of the given Policy type + description: Schema of the given A1 Policy Type value: policy_schema: "{}" policy_type_id_list: - description: Array of policy type id's + description: Array of A1 Policy Type id's value: policy_type_id_list: - policytype_id - policytype_id policy_info: - description: Policy information of one A1-P policy + description: Information for an A1 Policy Instance value: - ric_id: ric_id - policy_id: policy_id + ric_id: ric_id1 + policy_id: policy_id1 transient: false - service_id: service_id + service_id: service_id1 policy_data: "{}" status_notification_uri: status_notification_uri - policytype_id: policytype_id + policytype_id: policytype_id1 policy_info_list: description: List of policy information value: policies: - - ric_id: ric_id - policy_id: policy_id + - ric_id: ric_id1 + policy_id: policy_id1 transient: false - service_id: service_id + service_id: service_id1 policy_data: "{}" status_notification_uri: status_notification_uri - policytype_id: policytype_id - - ric_id: ric_id - policy_id: policy_id - transient: false - service_id: service_id + policytype_id: policytype_id1 + - ric_id: ric_id2 + policy_id: policy_id2 + transient: true + service_id: service_id2 policy_data: "{}" status_notification_uri: status_notification_uri - policytype_id: policytype_id + policytype_id: policytype_id2 policy_id_list: description: A list of policy identities value: @@ -1105,11 +1210,11 @@ components: schemas: policy_type_definition: - description: Contains policy type schema definition + description: Contains A1 Policy Type schema definition type: object properties: policy_schema: - description: Policy type json schema. The schema is a json object following + description: A1 Policy Type json schema. The schema is a json object following http://json-schema.org/draft-07/schema type: object error_information: @@ -1118,7 +1223,7 @@ components: detail: description: ' A human-readable explanation specific to this occurrence of the problem.' - example: Policy type not found + example: A1 Policy Type not found type: string title: description: 'A specific error name' @@ -1146,7 +1251,7 @@ components: result: true properties: result: - description: "If true, the access is granted" + description: If true, the access is granted type: boolean required: - result @@ -1172,9 +1277,9 @@ components: - CONSISTENCY_CHECK type: string policytype_ids: - description: supported policy types + description: supported A1 Policy Types items: - description: supported policy types + description: supported A1 Policy Types type: string type: array type: object @@ -1182,19 +1287,20 @@ components: description: Information for one service properties: callback_url: - description: callback for notifying of Near-RT RIC state changes + description: Callback for notifying of Near-RT RIC state changes type: string service_id: description: identity of the service type: string keep_alive_interval_seconds: - description: "keep alive interval for the service. This is used to enable\ - \ optional heartbeat supervision of the service. If set (> 0) the registered\ - \ service should regularly invoke a 'keepalive' REST call. When a service\ - \ fails to invoke this 'keepalive' call within the configured time, the\ - \ service is considered unavailable. An unavailable service will be automatically\ - \ deregistered and its policies will be deleted. Value 0 means timeout\ - \ supervision is disabled." + description: > + Keep alive interval for the service. This is used to enable + optional heartbeat supervision of the service. If set (> 0) the registered + service should regularly invoke a 'keepalive' REST call. When a service + fails to invoke this 'keepalive' call within the configured time, the + service is considered unavailable. An unavailable service will be automatically + deregistered and its policies will be deleted. Value 0 means timeout + supervision is disabled. format: int64 type: integer required: @@ -1213,7 +1319,7 @@ components: description: Status for one A1-P Policy properties: last_modified: - description: "timestamp, last modification time" + description: timestamp, last modification time type: string status: description: the Policy status @@ -1259,7 +1365,7 @@ components: description: Authorization token type: string policy_type_id: - description: Policy type identifier + description: A1 Policy Type identifier type: string required: - access_type @@ -1275,12 +1381,12 @@ components: - input type: object policy_type_id_list: - description: Information about policy types + description: Information about A1 Policy Types properties: policytype_ids: - description: Policy type identities + description: A1 Policy Type identities items: - description: Policy type identities + description: A1 Policy Type identities type: string type: array type: object @@ -1295,16 +1401,21 @@ components: type: string transient: default: false - description: "if true, the policy is deleted at RIC restart. If false, its\ - \ value is maintained by this service until explicitly deleted. Default\ - \ false." + description: > + If true, the policy is automatically deleted if the targeted Near-RT RIC restarts + or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted + Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and + must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false. example: false nullable: false type: boolean service_id: - description: the identity of the service owning the policy. This can be + description: > + The identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated - to a service). Note that the service does not need to be registered. + to a service). Note that the service does not need to be registered. + If the service is registered, the A1 Policy Instance will be + subject to the same supervision rules as the the service's other policies. type: string default: "" policy_data: @@ -1314,7 +1425,7 @@ components: description: Callback URI for policy status updates type: string policytype_id: - description: identity of the policy type + description: identity of the A1 Policy Type type: string required: - ric_id @@ -1345,14 +1456,17 @@ components: type: array type: object service_callback_info_v2: - description: Information transferred as in Service callbacks (callback_url) + description: | + Information transferred in Service callbacks, + if a callback URL was provided for a registered service properties: ric_id: description: identity of a Near-RT RIC type: string event_type: - description: "values:\nAVAILABLE: the Near-RT RIC has become available\ - \ for A1 Policy management" + description: > + values: + AVAILABLE: the Near-RT RIC has become available for A1 Policy management enum: - AVAILABLE type: string |