aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlapentafd <francesco.lapenta@est.tech>2025-01-20 12:24:34 +0000
committerSaul Gill <saul.gill@est.tech>2025-03-03 15:59:48 +0000
commit1a93ad4c8fd793406c6d4828dee15ae3b49c0d8f (patch)
treee06f81c3a8460f9249a92e82a44da0766914482f
parentaaec2b107b6d72513969d8acf3868a5adb098c3f (diff)
Fix OpenAPI definitions (v3) and examples
- Added /policies/{policyId}/status endpoint - Creation of PolicyTypeObject, and used it instead of PolicyObject for /policy-types Issue-ID: CCSDK-4076 Change-Id: Ie4311d64cdbaa0c34f9c2d2c9e1de7fbc2248311 Signed-off-by: lapentafd <francesco.lapenta@est.tech> (cherry picked from commit c816596509144b1c2b8775471bc82610c77895e4)
-rw-r--r--a1-policy-management/api/offeredapis/openapitoolgen/offeredapis/pms-api/index.html1442
-rw-r--r--a1-policy-management/api/offeredapis/openapitoolgen/offeredapis/pms-api/v3/custom/index.html3713
-rw-r--r--a1-policy-management/api/offeredapis/openapitoolgen/offeredapis/pms-api/v3/index.html4139
-rw-r--r--a1-policy-management/api/offeredapis/swagger/a1pms-api-v3.json331
-rw-r--r--a1-policy-management/api/offeredapis/swagger/pms-api-v3.json331
-rw-r--r--a1-policy-management/api/offeredapis/swagger/pms-api-v3.yaml169
-rw-r--r--a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v3/PolicyControllerV3.java11
-rw-r--r--a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/service/v3/PolicyService.java39
-rw-r--r--a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v3/PolicyControllerV3Test.java27
-rw-r--r--a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/service/v3/PolicyServiceTest.java24
-rw-r--r--docs/offeredapis/openapitoolgen/offeredapis/pms-api/v3/custom/index.html3713
-rw-r--r--docs/offeredapis/openapitoolgen/offeredapis/pms-api/v3/index.html4139
-rw-r--r--docs/offeredapis/swagger/a1pms-api-v3.json331
-rw-r--r--docs/offeredapis/swagger/pms-api-v3.json331
-rw-r--r--docs/offeredapis/swagger/pms-api-v3.yaml169
15 files changed, 13519 insertions, 5390 deletions
diff --git a/a1-policy-management/api/offeredapis/openapitoolgen/offeredapis/pms-api/index.html b/a1-policy-management/api/offeredapis/openapitoolgen/offeredapis/pms-api/index.html
index 247549a3..9580d539 100644
--- a/a1-policy-management/api/offeredapis/openapitoolgen/offeredapis/pms-api/index.html
+++ b/a1-policy-management/api/offeredapis/openapitoolgen/offeredapis/pms-api/index.html
@@ -844,313 +844,313 @@ ul.nav-tabs {
<script>
// Script section to load models into a JS Var
var defs = {}
- defs["authorization_result"] = {
- "required" : [ "result" ],
- "type" : "object",
- "properties" : {
- "result" : {
- "type" : "boolean",
- "description" : "If true, the access is granted"
- }
- },
- "description" : "Result of authorization",
- "example" : {
- "result" : true
- }
+ defs["authorization_result"] = {
+ "required" : [ "result" ],
+ "type" : "object",
+ "properties" : {
+ "result" : {
+ "type" : "boolean",
+ "description" : "If true, the access is granted"
+ }
+ },
+ "description" : "Result of authorization",
+ "example" : {
+ "result" : true
+ }
};
- defs["error_information"] = {
- "type" : "object",
- "properties" : {
- "detail" : {
- "type" : "string",
- "description" : " A human-readable explanation specific to this occurrence of the problem.",
- "example" : "Policy type not found"
- },
- "title" : {
- "type" : "string",
- "description" : "A specific error name",
- "example" : "Not Found"
- },
- "status" : {
- "type" : "integer",
- "description" : "The HTTP status code generated by the origin server for this occurrence of the problem. ",
- "format" : "int32",
- "example" : 404
- }
- },
- "description" : "Problem as defined in https://tools.ietf.org/html/rfc7807"
+ defs["error_information"] = {
+ "type" : "object",
+ "properties" : {
+ "detail" : {
+ "type" : "string",
+ "description" : " A human-readable explanation specific to this occurrence of the problem.",
+ "example" : "Policy type not found"
+ },
+ "title" : {
+ "type" : "string",
+ "description" : "A specific error name",
+ "example" : "Not Found"
+ },
+ "status" : {
+ "type" : "integer",
+ "description" : "The HTTP status code generated by the origin server for this occurrence of the problem. ",
+ "format" : "int32",
+ "example" : 404
+ }
+ },
+ "description" : "Problem as defined in https://tools.ietf.org/html/rfc7807"
};
- defs["input"] = {
- "required" : [ "access_type", "auth_token", "policy_type_id" ],
- "type" : "object",
- "properties" : {
- "access_type" : {
- "type" : "string",
- "description" : "Access type",
- "enum" : [ "READ", "WRITE", "DELETE" ]
- },
- "auth_token" : {
- "type" : "string",
- "description" : "Authorization token"
- },
- "policy_type_id" : {
- "type" : "string",
- "description" : "Policy type identifier"
- }
- },
- "description" : "input"
+ defs["input"] = {
+ "required" : [ "access_type", "auth_token", "policy_type_id" ],
+ "type" : "object",
+ "properties" : {
+ "access_type" : {
+ "type" : "string",
+ "description" : "Access type",
+ "enum" : [ "READ", "WRITE", "DELETE" ]
+ },
+ "auth_token" : {
+ "type" : "string",
+ "description" : "Authorization token"
+ },
+ "policy_type_id" : {
+ "type" : "string",
+ "description" : "Policy type identifier"
+ }
+ },
+ "description" : "input"
};
- defs["Link"] = {
- "type" : "object",
- "properties" : {
- "templated" : {
- "type" : "boolean"
- },
- "href" : {
- "type" : "string"
- }
- }
+ defs["Link"] = {
+ "type" : "object",
+ "properties" : {
+ "templated" : {
+ "type" : "boolean"
+ },
+ "href" : {
+ "type" : "string"
+ }
+ }
};
- defs["policy_authorization"] = {
- "required" : [ "input" ],
- "type" : "object",
- "properties" : {
- "input" : {
- "$ref" : "#/components/schemas/input"
- }
- },
- "description" : "Authorization request for A1 policy requests"
+ defs["policy_authorization"] = {
+ "required" : [ "input" ],
+ "type" : "object",
+ "properties" : {
+ "input" : {
+ "$ref" : "#/components/schemas/input"
+ }
+ },
+ "description" : "Authorization request for A1 policy requests"
};
- defs["policy_id_list"] = {
- "type" : "object",
- "properties" : {
- "policy_ids" : {
- "type" : "array",
- "description" : "Policy identities",
- "items" : {
- "type" : "string",
- "description" : "Policy identities"
- }
- }
- },
- "description" : "A list of policy identities",
- "example" : {
- "policy_ids" : [ "policy_ids", "policy_ids" ]
- }
+ defs["policy_id_list"] = {
+ "type" : "object",
+ "properties" : {
+ "policy_ids" : {
+ "type" : "array",
+ "description" : "Policy identities",
+ "items" : {
+ "type" : "string",
+ "description" : "Policy identities"
+ }
+ }
+ },
+ "description" : "A list of policy identities",
+ "example" : {
+ "policy_ids" : [ "policy_ids", "policy_ids" ]
+ }
};
- defs["policy_info"] = {
- "required" : [ "policy_data", "policy_id", "policytype_id", "ric_id" ],
- "type" : "object",
- "properties" : {
- "ric_id" : {
- "type" : "string",
- "description" : "identity of the target Near-RT RIC"
- },
- "policy_id" : {
- "type" : "string",
- "description" : "identity of the policy"
- },
- "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.",
- "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.",
- "default" : ""
- },
- "policy_data" : {
- "type" : "object",
- "description" : "the configuration of the policy"
- },
- "status_notification_uri" : {
- "type" : "string",
- "description" : "Callback URI for policy status updates"
- },
- "policytype_id" : {
- "type" : "string",
- "description" : "identity of the policy type"
- }
- },
- "description" : "Information for one A1-P Policy"
+ defs["policy_info"] = {
+ "required" : [ "policy_data", "policy_id", "policytype_id", "ric_id" ],
+ "type" : "object",
+ "properties" : {
+ "ric_id" : {
+ "type" : "string",
+ "description" : "identity of the target Near-RT RIC"
+ },
+ "policy_id" : {
+ "type" : "string",
+ "description" : "identity of the policy"
+ },
+ "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.",
+ "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.",
+ "default" : ""
+ },
+ "policy_data" : {
+ "type" : "object",
+ "description" : "the configuration of the policy"
+ },
+ "status_notification_uri" : {
+ "type" : "string",
+ "description" : "Callback URI for policy status updates"
+ },
+ "policytype_id" : {
+ "type" : "string",
+ "description" : "identity of the policy type"
+ }
+ },
+ "description" : "Information for one A1-P Policy"
};
- defs["policy_info_list"] = {
- "type" : "object",
- "properties" : {
- "policies" : {
- "type" : "array",
- "description" : "List of policy information",
- "items" : {
- "$ref" : "#/components/schemas/policy_info"
- }
- }
- },
- "description" : "List of policy information"
+ defs["policy_info_list"] = {
+ "type" : "object",
+ "properties" : {
+ "policies" : {
+ "type" : "array",
+ "description" : "List of policy information",
+ "items" : {
+ "$ref" : "#/components/schemas/policy_info"
+ }
+ }
+ },
+ "description" : "List of policy information"
};
- defs["policy_status_info"] = {
- "type" : "object",
- "properties" : {
- "last_modified" : {
- "type" : "string",
- "description" : "timestamp, last modification time"
- },
- "status" : {
- "type" : "object",
- "description" : "the Policy status"
- }
- },
- "description" : "Status for one A1-P Policy"
+ defs["policy_status_info"] = {
+ "type" : "object",
+ "properties" : {
+ "last_modified" : {
+ "type" : "string",
+ "description" : "timestamp, last modification time"
+ },
+ "status" : {
+ "type" : "object",
+ "description" : "the Policy status"
+ }
+ },
+ "description" : "Status for one A1-P Policy"
};
- defs["policy_type_definition"] = {
- "type" : "object",
- "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" : "Contains policy type schema definition"
+ defs["policy_type_definition"] = {
+ "type" : "object",
+ "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" : "Contains policy type schema definition"
};
- defs["policy_type_id_list"] = {
- "type" : "object",
- "properties" : {
- "policytype_ids" : {
- "type" : "array",
- "description" : "Policy type identities",
- "items" : {
- "type" : "string",
- "description" : "Policy type identities"
- }
- }
- },
- "description" : "Information about policy types"
+ defs["policy_type_id_list"] = {
+ "type" : "object",
+ "properties" : {
+ "policytype_ids" : {
+ "type" : "array",
+ "description" : "Policy type identities",
+ "items" : {
+ "type" : "string",
+ "description" : "Policy type identities"
+ }
+ }
+ },
+ "description" : "Information about policy types"
};
- defs["ric_info"] = {
- "type" : "object",
- "properties" : {
- "ric_id" : {
- "type" : "string",
- "description" : "identity of the Near-RT RIC"
- },
- "managed_element_ids" : {
- "type" : "array",
- "description" : "O1 identities for managed entities",
- "items" : {
- "type" : "string",
- "description" : "O1 identities for managed entities"
- }
- },
- "state" : {
- "type" : "string",
- "description" : "Represents the states for a Near-RT RIC",
- "enum" : [ "UNAVAILABLE", "AVAILABLE", "SYNCHRONIZING", "CONSISTENCY_CHECK" ]
- },
- "policytype_ids" : {
- "type" : "array",
- "description" : "supported policy types",
- "items" : {
- "type" : "string",
- "description" : "supported policy types"
- }
- }
- },
- "description" : "Information for a Near-RT RIC"
+ defs["ric_info"] = {
+ "type" : "object",
+ "properties" : {
+ "ric_id" : {
+ "type" : "string",
+ "description" : "identity of the Near-RT RIC"
+ },
+ "managed_element_ids" : {
+ "type" : "array",
+ "description" : "O1 identities for managed entities",
+ "items" : {
+ "type" : "string",
+ "description" : "O1 identities for managed entities"
+ }
+ },
+ "state" : {
+ "type" : "string",
+ "description" : "Represents the states for a Near-RT RIC",
+ "enum" : [ "UNAVAILABLE", "AVAILABLE", "SYNCHRONIZING", "CONSISTENCY_CHECK" ]
+ },
+ "policytype_ids" : {
+ "type" : "array",
+ "description" : "supported policy types",
+ "items" : {
+ "type" : "string",
+ "description" : "supported policy types"
+ }
+ }
+ },
+ "description" : "Information for a Near-RT RIC"
};
- defs["ric_info_list"] = {
- "type" : "object",
- "properties" : {
- "rics" : {
- "type" : "array",
- "description" : "List of Near-RT RIC information",
- "items" : {
- "$ref" : "#/components/schemas/ric_info"
- }
- }
- },
- "description" : "List of Near-RT RIC information"
+ defs["ric_info_list"] = {
+ "type" : "object",
+ "properties" : {
+ "rics" : {
+ "type" : "array",
+ "description" : "List of Near-RT RIC information",
+ "items" : {
+ "$ref" : "#/components/schemas/ric_info"
+ }
+ }
+ },
+ "description" : "List of Near-RT RIC information"
};
- defs["service_callback_info_v2"] = {
- "required" : [ "event_type", "ric_id" ],
- "type" : "object",
- "properties" : {
- "ric_id" : {
- "type" : "string",
- "description" : "identity of a Near-RT RIC"
- },
- "event_type" : {
- "type" : "string",
- "description" : "values:\nAVAILABLE: the Near-RT RIC has become available for A1 Policy management",
- "enum" : [ "AVAILABLE" ]
- }
- },
- "description" : "Information transferred as in Service callbacks (callback_url)"
+ defs["service_callback_info_v2"] = {
+ "required" : [ "event_type", "ric_id" ],
+ "type" : "object",
+ "properties" : {
+ "ric_id" : {
+ "type" : "string",
+ "description" : "identity of a Near-RT RIC"
+ },
+ "event_type" : {
+ "type" : "string",
+ "description" : "values:\nAVAILABLE: the Near-RT RIC has become available for A1 Policy management",
+ "enum" : [ "AVAILABLE" ]
+ }
+ },
+ "description" : "Information transferred as in Service callbacks (callback_url)"
};
- defs["service_registration_info"] = {
- "required" : [ "service_id" ],
- "type" : "object",
- "properties" : {
- "callback_url" : {
- "type" : "string",
- "description" : "callback for notifying of Near-RT RIC state changes"
- },
- "service_id" : {
- "type" : "string",
- "description" : "identity of the service"
- },
- "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.",
- "format" : "int64"
- }
- },
- "description" : "Information for one service"
+ defs["service_registration_info"] = {
+ "required" : [ "service_id" ],
+ "type" : "object",
+ "properties" : {
+ "callback_url" : {
+ "type" : "string",
+ "description" : "callback for notifying of Near-RT RIC state changes"
+ },
+ "service_id" : {
+ "type" : "string",
+ "description" : "identity of the service"
+ },
+ "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.",
+ "format" : "int64"
+ }
+ },
+ "description" : "Information for one service"
};
- defs["service_status"] = {
- "type" : "object",
- "properties" : {
- "callback_url" : {
- "type" : "string",
- "description" : "callback for notifying of RIC synchronization"
- },
- "service_id" : {
- "type" : "string",
- "description" : "identity of the service"
- },
- "keep_alive_interval_seconds" : {
- "type" : "integer",
- "description" : "policy keep alive timeout",
- "format" : "int64"
- },
- "time_since_last_activity_seconds" : {
- "type" : "integer",
- "description" : "time since last invocation by the service",
- "format" : "int64"
- }
- }
+ defs["service_status"] = {
+ "type" : "object",
+ "properties" : {
+ "callback_url" : {
+ "type" : "string",
+ "description" : "callback for notifying of RIC synchronization"
+ },
+ "service_id" : {
+ "type" : "string",
+ "description" : "identity of the service"
+ },
+ "keep_alive_interval_seconds" : {
+ "type" : "integer",
+ "description" : "policy keep alive timeout",
+ "format" : "int64"
+ },
+ "time_since_last_activity_seconds" : {
+ "type" : "integer",
+ "description" : "time since last invocation by the service",
+ "format" : "int64"
+ }
+ }
};
- defs["service_status_list"] = {
- "type" : "object",
- "properties" : {
- "service_list" : {
- "type" : "array",
- "description" : "List of service information",
- "items" : {
- "$ref" : "#/components/schemas/service_status"
- }
- }
- }
+ defs["service_status_list"] = {
+ "type" : "object",
+ "properties" : {
+ "service_list" : {
+ "type" : "array",
+ "description" : "List of service information",
+ "items" : {
+ "$ref" : "#/components/schemas/service_status"
+ }
+ }
+ }
};
- defs["status_info"] = {
- "type" : "object",
- "properties" : {
- "status" : {
- "type" : "string",
- "description" : "status text"
- }
- }
+ defs["status_info"] = {
+ "type" : "object",
+ "properties" : {
+ "status" : {
+ "type" : "string",
+ "description" : "status text"
+ }
+ }
};
@@ -1575,15 +1575,15 @@ pub fn main() {
<div id="responses-A1PolicyManagement-deletePolicy-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Policy deleted",
- "content" : {
- "*/*" : {
- "schema" : {
- "$ref" : "#/components/schemas/void"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Policy deleted",
+ "content" : {
+ "*/*" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/void"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -1651,20 +1651,20 @@ pub fn main() {
<div id="responses-A1PolicyManagement-deletePolicy-schema-423" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Locked - HTTP Status code which can be used when the state is Locked",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/error_information"
- },
- "example" : {
- "status" : 423,
- "title" : "Locked",
- "detail" : "Requested resource is in a locked state."
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Locked - HTTP Status code which can be used when the state is Locked",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/error_information"
+ },
+ "example" : {
+ "status" : 423,
+ "title" : "Locked",
+ "detail" : "Requested resource is in a locked state."
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2019,20 +2019,20 @@ pub fn main() {
<div id="responses-A1PolicyManagement-getPolicy-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Policy found",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/policy_info"
- },
- "examples" : {
- "policy_info" : {
- "$ref" : "#/components/examples/policy_info"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Policy found",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/policy_info"
+ },
+ "examples" : {
+ "policy_info" : {
+ "$ref" : "#/components/examples/policy_info"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2095,13 +2095,13 @@ pub fn main() {
<div id="responses-A1PolicyManagement-getPolicy-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "example" : [ ]
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "example" : [ ]
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2554,20 +2554,20 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getPolicyIds-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Policy identities",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/policy_id_list"
- },
- "examples" : {
- "policy_id_list" : {
- "$ref" : "#/components/examples/policy_id_list"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Policy identities",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/policy_id_list"
+ },
+ "examples" : {
+ "policy_id_list" : {
+ "$ref" : "#/components/examples/policy_id_list"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2630,13 +2630,13 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getPolicyIds-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "example" : [ ]
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "example" : [ ]
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3089,20 +3089,20 @@ Select policies of a given type name (type identity has the format &lt;typename_
<div id="responses-A1PolicyManagement-getPolicyInstances-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Returns A1 Policies which matches the criteria",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/policy_info_list"
- },
- "examples" : {
- "policy_info_list" : {
- "$ref" : "#/components/examples/policy_info_list"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Returns A1 Policies which matches the criteria",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/policy_info_list"
+ },
+ "examples" : {
+ "policy_info_list" : {
+ "$ref" : "#/components/examples/policy_info_list"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3170,15 +3170,15 @@ Select policies of a given type name (type identity has the format &lt;typename_
<div id="responses-A1PolicyManagement-getPolicyInstances-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found - Near-RT RIC, policy type or service not found",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/error_information"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found - Near-RT RIC, policy type or service not found",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/error_information"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3533,20 +3533,20 @@ pub fn main() {
<div id="responses-A1PolicyManagement-getPolicyStatus-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Policy status",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/policy_status_info"
- },
- "examples" : {
- "policy_status_info" : {
- "$ref" : "#/components/examples/policy_status_info"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Policy status",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/policy_status_info"
+ },
+ "examples" : {
+ "policy_status_info" : {
+ "$ref" : "#/components/examples/policy_status_info"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3609,13 +3609,13 @@ pub fn main() {
<div id="responses-A1PolicyManagement-getPolicyStatus-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "example" : [ ]
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "example" : [ ]
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3970,20 +3970,20 @@ pub fn main() {
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - schema of the given policy type",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/policy_type_definition"
- },
- "examples" : {
- "policy_type_definition" : {
- "$ref" : "#/components/examples/policy_type_definition"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - schema of the given policy type",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/policy_type_definition"
+ },
+ "examples" : {
+ "policy_type_definition" : {
+ "$ref" : "#/components/examples/policy_type_definition"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4046,13 +4046,13 @@ pub fn main() {
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "example" : [ ]
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "example" : [ ]
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4471,20 +4471,20 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Policy Type IDs Found",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/policy_type_id_list"
- },
- "examples" : {
- "policy_type_id_list" : {
- "$ref" : "#/components/examples/policy_type_id_list"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Policy Type IDs Found",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/policy_type_id_list"
+ },
+ "examples" : {
+ "policy_type_id_list" : {
+ "$ref" : "#/components/examples/policy_type_id_list"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4547,13 +4547,13 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "example" : [ ]
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "example" : [ ]
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4860,15 +4860,15 @@ pub fn main() {
<p class="marked"></p>
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/policy_info"
- }
- }
- },
- "required" : true
+ var schemaWrapper = {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/policy_info"
+ }
+ }
+ },
+ "required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
@@ -4931,15 +4931,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Policy updated",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/void"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Policy updated",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/void"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5007,15 +5007,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-201" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Created - Policy created",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/void"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Created - Policy created",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/void"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5083,20 +5083,20 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-423" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Locked - HTTP Status code which can be used when the state is Locked",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/error_information"
- },
- "example" : {
- "status" : 423,
- "title" : "Locked",
- "detail" : "Requested resource is in a locked state."
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Locked - HTTP Status code which can be used when the state is Locked",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/error_information"
+ },
+ "example" : {
+ "status" : 423,
+ "title" : "Locked",
+ "detail" : "Requested resource is in a locked state."
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5409,15 +5409,15 @@ pub fn main() {
<p class="marked"></p>
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/policy_authorization"
- }
- }
- },
- "required" : true
+ var schemaWrapper = {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/policy_authorization"
+ }
+ }
+ },
+ "required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
@@ -5480,15 +5480,15 @@ $(document).ready(function() {
<div id="responses-AuthorizationAPI-performAccessControl-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/authorization_result"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/authorization_result"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5556,20 +5556,20 @@ $(document).ready(function() {
<div id="responses-AuthorizationAPI-performAccessControl-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Forbidden",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/error_information"
- },
- "example" : {
- "status" : 403,
- "title" : "Forbidden",
- "detail" : "Your role does not allow to perform this action. Contact System Administrator to change your access rights."
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/error_information"
+ },
+ "example" : {
+ "status" : 403,
+ "title" : "Forbidden",
+ "detail" : "Your role does not allow to perform this action. Contact System Administrator to change your access rights."
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5889,15 +5889,15 @@ pub fn main() {
<div id="responses-Configuration-getConfiguration-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Configuration",
- "content" : {
- "application/json" : {
- "schema" : {
- "type" : "string"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Configuration",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "string"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5960,13 +5960,13 @@ pub fn main() {
<div id="responses-Configuration-getConfiguration-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "example" : [ ]
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "example" : [ ]
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6273,15 +6273,15 @@ pub fn main() {
<p class="marked"></p>
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "content" : {
- "application/json" : {
- "schema" : {
- "type" : "object"
- }
- }
- },
- "required" : true
+ var schemaWrapper = {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ },
+ "required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
@@ -6344,15 +6344,15 @@ $(document).ready(function() {
<div id="responses-Configuration-putConfiguration-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Configuration updated",
- "content" : {
- "*/*" : {
- "schema" : {
- "$ref" : "#/components/schemas/void"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Configuration updated",
+ "content" : {
+ "*/*" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/void"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6420,20 +6420,20 @@ $(document).ready(function() {
<div id="responses-Configuration-putConfiguration-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/error_information"
- },
- "example" : {
- "status" : 400,
- "title" : "Bad Request",
- "detail" : "The provided request is not valid."
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/error_information"
+ },
+ "example" : {
+ "status" : 400,
+ "title" : "Bad Request",
+ "detail" : "The provided request is not valid."
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6753,20 +6753,20 @@ pub fn main() {
<div id="responses-HealthCheck-getStatus-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK- Service is living Ok",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/status_info"
- },
- "examples" : {
- "status_info" : {
- "$ref" : "#/components/examples/status_info"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK- Service is living Ok",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/status_info"
+ },
+ "examples" : {
+ "status_info" : {
+ "$ref" : "#/components/examples/status_info"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7083,15 +7083,15 @@ pub fn main() {
<div id="responses-HealthCheck-getStatusV1-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Service is living",
- "content" : {
- "*/*" : {
- "schema" : {
- "type" : "string"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Service is living",
+ "content" : {
+ "*/*" : {
+ "schema" : {
+ "type" : "string"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7485,20 +7485,20 @@ The identity of a Near-RT RIC to get information for.
<div id="responses-NearRTRICRepository-getRic-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Near-RT RIC is found",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ric_info"
- },
- "examples" : {
- "ric_info" : {
- "$ref" : "#/components/examples/ric_info"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Near-RT RIC is found",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ric_info"
+ },
+ "examples" : {
+ "ric_info" : {
+ "$ref" : "#/components/examples/ric_info"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7561,13 +7561,13 @@ The identity of a Near-RT RIC to get information for.
<div id="responses-NearRTRICRepository-getRic-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "example" : [ ]
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "example" : [ ]
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7927,20 +7927,20 @@ The identity of a policy type. If given, all Near-RT RICs supporting the policy
<div id="responses-NearRTRICRepository-getRics-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ric_info_list"
- },
- "examples" : {
- "ric_info_list" : {
- "$ref" : "#/components/examples/ric_info_list"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ric_info_list"
+ },
+ "examples" : {
+ "ric_info_list" : {
+ "$ref" : "#/components/examples/ric_info_list"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8003,13 +8003,13 @@ The identity of a policy type. If given, all Near-RT RICs supporting the policy
<div id="responses-NearRTRICRepository-getRics-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "example" : [ ]
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "example" : [ ]
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8367,15 +8367,15 @@ pub fn main() {
<div id="responses-ServiceRegistryAndSupervision-deleteService-schema-204" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "No Content - Service unregistered",
- "content" : {
- "*/*" : {
- "schema" : {
- "type" : "object"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "No Content - Service unregistered",
+ "content" : {
+ "*/*" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8438,13 +8438,13 @@ pub fn main() {
<div id="responses-ServiceRegistryAndSupervision-deleteService-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "example" : [ ]
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "example" : [ ]
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8804,20 +8804,20 @@ The identity of the service
<div id="responses-ServiceRegistryAndSupervision-getServices-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/service_status_list"
- },
- "examples" : {
- "service_status_list" : {
- "$ref" : "#/components/examples/service_status_list"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/service_status_list"
+ },
+ "examples" : {
+ "service_status_list" : {
+ "$ref" : "#/components/examples/service_status_list"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8880,13 +8880,13 @@ The identity of the service
<div id="responses-ServiceRegistryAndSupervision-getServices-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "example" : [ ]
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "example" : [ ]
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -9244,15 +9244,15 @@ pub fn main() {
<div id="responses-ServiceRegistryAndSupervision-keepAliveService-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Service supervision timer refreshed, OK",
- "content" : {
- "*/*" : {
- "schema" : {
- "type" : "object"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Service supervision timer refreshed, OK",
+ "content" : {
+ "*/*" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -9315,13 +9315,13 @@ pub fn main() {
<div id="responses-ServiceRegistryAndSupervision-keepAliveService-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "example" : [ ]
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "example" : [ ]
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -9631,15 +9631,15 @@ pub fn main() {
<p class="marked"></p>
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/service_registration_info"
- }
- }
- },
- "required" : true
+ var schemaWrapper = {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/service_registration_info"
+ }
+ }
+ },
+ "required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
@@ -9702,15 +9702,15 @@ $(document).ready(function() {
<div id="responses-ServiceRegistryAndSupervision-putService-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Service updated",
- "content" : {
- "*/*" : {
- "schema" : {
- "type" : "object"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Service updated",
+ "content" : {
+ "*/*" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -9778,15 +9778,15 @@ $(document).ready(function() {
<div id="responses-ServiceRegistryAndSupervision-putService-schema-201" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Created - Service created",
- "content" : {
- "*/*" : {
- "schema" : {
- "type" : "object"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Created - Service created",
+ "content" : {
+ "*/*" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -9854,20 +9854,20 @@ $(document).ready(function() {
<div id="responses-ServiceRegistryAndSupervision-putService-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/error_information"
- },
- "example" : {
- "status" : 400,
- "title" : "Bad Request",
- "detail" : "The provided request is not valid."
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/error_information"
+ },
+ "example" : {
+ "status" : 400,
+ "title" : "Bad Request",
+ "detail" : "The provided request is not valid."
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
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 db610793..2defcfbe 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
@@ -844,315 +844,381 @@ 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["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.",
- "example" : "Policy type not found"
- },
- "title" : {
- "type" : "string",
- "description" : "A specific error name",
- "example" : "Not Found"
- },
- "status" : {
- "type" : "integer",
- "description" : "The HTTP status code generated by the origin server for this occurrence of the problem. ",
- "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["ErrorInformation"] = {
+ "type" : "object",
+ "properties" : {
+ "detail" : {
+ "type" : "string",
+ "description" : " A human-readable explanation specific to this occurrence of the problem.",
+ "example" : "Policy type not found"
+ },
+ "title" : {
+ "type" : "string",
+ "description" : "A specific error name",
+ "example" : "Not Found"
+ },
+ "status" : {
+ "type" : "integer",
+ "description" : "The HTTP status code generated by the origin server for this occurrence of the problem. ",
+ "format" : "int32",
+ "example" : 404
+ }
+ },
+ "description" : "Problem as defined in https://tools.ietf.org/html/rfc7807"
};
- 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"
- },
- "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"
-};
- defs["PolicyObjectInformation"] = {
- "required" : [ "nearRtRicId", "policyObject", "policyTypeId" ],
- "type" : "object",
- "properties" : {
- "nearRtRicId" : {
- "type" : "string",
- "description" : "identity of the target Near-RT RIC",
- "example" : "Near-RT-Ric-ID"
- },
- "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.",
- "nullable" : false,
- "default" : false
- },
- "policyId" : {
- "type" : "string",
- "description" : "identity of the Policy",
- "example" : "POLICY-ID"
- },
- "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"
- },
- "policyObject" : {
- "$ref" : "#/components/schemas/PolicyObject"
- },
- "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" : "Status for one A1-P Policy"
-};
- defs["PolicyTypeInformation"] = {
- "required" : [ "nearRtRicId", "policyTypeId" ],
- "type" : "object",
- "properties" : {
- "policyTypeId" : {
- "type" : "string",
- "description" : "Identity of the policy type"
- },
- "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"
-};
- defs["ProblemDetails"] = {
- "type" : "object",
- "properties" : {
- "type" : {
- "type" : "string",
- "description" : "a URI reference according to IETF RFC 3986 that identifies the problem type"
- },
- "title" : {
- "type" : "string",
- "description" : "human-readable summary of the problem type"
- },
- "status" : {
- "type" : "number",
- "description" : "the HTTP status code"
- },
- "detail" : {
- "type" : "string",
- "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"
-};
- defs["RicInfo"] = {
- "type" : "object",
- "properties" : {
- "ricId" : {
- "type" : "string",
- "description" : "identity of the Near-RT RIC"
- },
- "managedElementIds" : {
- "type" : "array",
- "description" : "O1 identities for managed entities",
- "items" : {
- "type" : "string",
- "description" : "O1 identities for managed entities"
- }
- },
- "state" : {
- "type" : "string",
- "description" : "Represents the states for a Near-RT RIC",
- "enum" : [ "UNAVAILABLE", "AVAILABLE", "SYNCHRONIZING", "CONSISTENCY_CHECK" ]
- },
- "policyTypeIds" : {
- "type" : "array",
- "description" : "supported policy types",
- "items" : {
- "type" : "string",
- "description" : "supported policy types"
- }
- }
- },
- "description" : "Information for a Near-RT RIC"
-};
- defs["RicInfoList"] = {
- "type" : "object",
- "properties" : {
- "rics" : {
- "type" : "array",
- "description" : "List of Near-RT RIC information",
- "items" : {
- "$ref" : "#/components/schemas/RicInfo"
- }
- }
- },
- "description" : "List of Near-RT RIC information"
-};
- defs["ServiceCallbackInfo"] = {
- "required" : [ "eventType", "ricId" ],
- "type" : "object",
- "properties" : {
- "ricId" : {
- "type" : "string",
- "description" : "identity of a Near-RT RIC"
- },
- "eventType" : {
- "type" : "string",
- "description" : "values:\nAVAILABLE: the Near-RT RIC has become available for A1 Policy management",
- "enum" : [ "AVAILABLE" ]
- }
- },
- "description" : "Information transferred as in Service callbacks (callback_url)"
-};
- defs["ServiceRegistrationInfo"] = {
- "required" : [ "serviceId" ],
- "type" : "object",
- "properties" : {
- "callbackUrl" : {
- "type" : "string",
- "description" : "callback for notifying of Near-RT RIC state changes"
- },
- "serviceId" : {
- "type" : "string",
- "description" : "identity of the service"
- },
- "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.",
- "format" : "int64"
- }
- },
- "description" : "Information for one service"
-};
- defs["ServiceStatus"] = {
- "type" : "object",
- "properties" : {
- "callbackUrl" : {
- "type" : "string",
- "description" : "callback for notifying of RIC synchronization"
- },
- "serviceId" : {
- "type" : "string",
- "description" : "identity of the service"
- },
- "keepAliveIntervalSeconds" : {
- "type" : "integer",
- "description" : "policy keep alive timeout",
- "format" : "int64"
- },
- "timeSinceLastActivitySeconds" : {
- "type" : "integer",
- "description" : "time since last invocation by the service",
- "format" : "int64"
- }
- }
+ 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["ServiceStatusList"] = {
- "type" : "object",
- "properties" : {
- "serviceList" : {
- "type" : "array",
- "description" : "List of service information",
- "items" : {
- "$ref" : "#/components/schemas/ServiceStatus"
- }
- }
- }
+ defs["Link"] = {
+ "type" : "object",
+ "properties" : {
+ "templated" : {
+ "type" : "boolean"
+ },
+ "href" : {
+ "type" : "string"
+ }
+ }
};
- defs["StatusInfo"] = {
- "type" : "object",
- "properties" : {
- "status" : {
- "type" : "string",
- "description" : "status text"
- }
- }
+ 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"
+ },
+ "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"
+};
+ defs["PolicyObjectInformation"] = {
+ "required" : [ "nearRtRicId", "policyObject", "policyTypeId" ],
+ "type" : "object",
+ "properties" : {
+ "nearRtRicId" : {
+ "type" : "string",
+ "description" : "identity of the target Near-RT RIC",
+ "example" : "Near-RT-Ric-ID"
+ },
+ "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.",
+ "nullable" : false,
+ "default" : false
+ },
+ "policyId" : {
+ "type" : "string",
+ "description" : "identity of the Policy",
+ "example" : "POLICY-ID"
+ },
+ "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"
+ },
+ "policyObject" : {
+ "$ref" : "#/components/schemas/PolicyObject"
+ },
+ "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" : "Status for one A1-P Policy"
+};
+ defs["PolicyTypeInformation"] = {
+ "required" : [ "nearRtRicId", "policyTypeId" ],
+ "type" : "object",
+ "properties" : {
+ "policyTypeId" : {
+ "type" : "string",
+ "description" : "Identity of the policy type"
+ },
+ "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",
+ "example" : {
+ "policyTypeId" : "STD_QOS2_0.1.0",
+ "nearRtRicId" : "ricsim_g3_2"
+ }
+};
+ defs["PolicyTypeObject"] = {
+ "required" : [ "policySchema" ],
+ "type" : "object",
+ "properties" : {
+ "policySchema" : {
+ "$ref" : "#/components/schemas/PolicySchema"
+ },
+ "statusSchema" : {
+ "$ref" : "#/components/schemas/StatusSchema"
+ }
+ },
+ "description" : "policy type object as defined in A1TD",
+ "example" : {
+ "policySchema" : {
+ "$schema" : "http://json-schema.org/draft-07/schema#",
+ "title" : "STD_QOS_0_2_0",
+ "description" : "STD QOS policy type",
+ "type" : "object",
+ "properties" : {
+ "scope" : {
+ "type" : "object",
+ "properties" : {
+ "ueId" : {
+ "type" : "string"
+ },
+ "qosId" : {
+ "type" : "string"
+ }
+ },
+ "additionalProperties" : false,
+ "required" : [ "ueId", "qosId" ]
+ },
+ "qosObjectives" : {
+ "type" : "object",
+ "properties" : {
+ "priorityLevel" : {
+ "type" : "number"
+ }
+ },
+ "additionalProperties" : false,
+ "required" : [ "priorityLevel" ]
+ }
+ }
+ },
+ "statusSchema" : {
+ "$schema" : "http://json-schema.org/draft-07/schema#",
+ "title" : "STD_QOS_0.2.0",
+ "description" : "STD QOS policy type status",
+ "type" : "object",
+ "properties" : {
+ "enforceStatus" : {
+ "type" : "string"
+ },
+ "enforceReason" : {
+ "type" : "string"
+ },
+ "additionalProperties" : false,
+ "required" : [ "enforceStatus" ]
+ }
+ }
+ }
+};
+ defs["ProblemDetails"] = {
+ "type" : "object",
+ "properties" : {
+ "type" : {
+ "type" : "string",
+ "description" : "a URI reference according to IETF RFC 3986 that identifies the problem type"
+ },
+ "title" : {
+ "type" : "string",
+ "description" : "human-readable summary of the problem type"
+ },
+ "status" : {
+ "type" : "number",
+ "description" : "the HTTP status code"
+ },
+ "detail" : {
+ "type" : "string",
+ "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"
+};
+ defs["RicInfo"] = {
+ "type" : "object",
+ "properties" : {
+ "ricId" : {
+ "type" : "string",
+ "description" : "identity of the Near-RT RIC"
+ },
+ "managedElementIds" : {
+ "type" : "array",
+ "description" : "O1 identities for managed entities",
+ "items" : {
+ "type" : "string",
+ "description" : "O1 identities for managed entities"
+ }
+ },
+ "state" : {
+ "type" : "string",
+ "description" : "Represents the states for a Near-RT RIC",
+ "enum" : [ "UNAVAILABLE", "AVAILABLE", "SYNCHRONIZING", "CONSISTENCY_CHECK" ]
+ },
+ "policyTypeIds" : {
+ "type" : "array",
+ "description" : "supported policy types",
+ "items" : {
+ "type" : "string",
+ "description" : "supported policy types"
+ }
+ }
+ },
+ "description" : "Information for a Near-RT RIC"
+};
+ defs["RicInfoList"] = {
+ "type" : "object",
+ "properties" : {
+ "rics" : {
+ "type" : "array",
+ "description" : "List of Near-RT RIC information",
+ "items" : {
+ "$ref" : "#/components/schemas/RicInfo"
+ }
+ }
+ },
+ "description" : "List of Near-RT RIC information"
+};
+ defs["ServiceCallbackInfo"] = {
+ "required" : [ "eventType", "ricId" ],
+ "type" : "object",
+ "properties" : {
+ "ricId" : {
+ "type" : "string",
+ "description" : "identity of a Near-RT RIC"
+ },
+ "eventType" : {
+ "type" : "string",
+ "description" : "values:\nAVAILABLE: the Near-RT RIC has become available for A1 Policy management",
+ "enum" : [ "AVAILABLE" ]
+ }
+ },
+ "description" : "Information transferred as in Service callbacks (callback_url)"
+};
+ defs["ServiceRegistrationInfo"] = {
+ "required" : [ "serviceId" ],
+ "type" : "object",
+ "properties" : {
+ "callbackUrl" : {
+ "type" : "string",
+ "description" : "callback for notifying of Near-RT RIC state changes"
+ },
+ "serviceId" : {
+ "type" : "string",
+ "description" : "identity of the service"
+ },
+ "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.",
+ "format" : "int64"
+ }
+ },
+ "description" : "Information for one service"
+};
+ defs["ServiceStatus"] = {
+ "type" : "object",
+ "properties" : {
+ "callbackUrl" : {
+ "type" : "string",
+ "description" : "callback for notifying of RIC synchronization"
+ },
+ "serviceId" : {
+ "type" : "string",
+ "description" : "identity of the service"
+ },
+ "keepAliveIntervalSeconds" : {
+ "type" : "integer",
+ "description" : "policy keep alive timeout",
+ "format" : "int64"
+ },
+ "timeSinceLastActivitySeconds" : {
+ "type" : "integer",
+ "description" : "time since last invocation by the service",
+ "format" : "int64"
+ }
+ }
+};
+ defs["ServiceStatusList"] = {
+ "type" : "object",
+ "properties" : {
+ "serviceList" : {
+ "type" : "array",
+ "description" : "List of service information",
+ "items" : {
+ "$ref" : "#/components/schemas/ServiceStatus"
+ }
+ }
+ }
+};
+ defs["StatusInfo"] = {
+ "type" : "object",
+ "properties" : {
+ "status" : {
+ "type" : "string",
+ "description" : "status text"
+ }
+ }
};
- defs["NearRtRicId"] = {
- "type" : "string",
- "description" : "Identity of the policy"
+ defs["NearRtRicId"] = {
+ "type" : "string",
+ "description" : "Identity of the policy"
};
var errs = {};
@@ -1185,6 +1251,9 @@ ul.nav-tabs {
<li data-group="A1PolicyManagement" data-name="getPolicy" class="">
<a href="#api-A1PolicyManagement-getPolicy">getPolicy</a>
</li>
+ <li data-group="A1PolicyManagement" data-name="getPolicyStatus" class="">
+ <a href="#api-A1PolicyManagement-getPolicyStatus">getPolicyStatus</a>
+ </li>
<li data-group="A1PolicyManagement" data-name="getPolicyTypeDefinition" class="">
<a href="#api-A1PolicyManagement-getPolicyTypeDefinition">getPolicyTypeDefinition</a>
</li>
@@ -1256,13 +1325,13 @@ ul.nav-tabs {
-H "Accept: application/json,application/problem+json" \
-H "Content-Type: application/json" \
"https://example.com/a1-policy-management/v1/policies" \
- -d '{
- &quot;policyId&quot; : &quot;POLICY-ID&quot;,
- &quot;nearRtRicId&quot; : &quot;Near-RT-Ric-ID&quot;,
- &quot;transient&quot; : false,
- &quot;policyObject&quot; : &quot;{}&quot;,
- &quot;serviceId&quot; : &quot;rApp ID&quot;,
- &quot;policyTypeId&quot; : &quot;ORAN_QOS_1.0.0(typeName_SemVersion)&quot;
+ -d '{
+ &quot;policyId&quot; : &quot;POLICY-ID&quot;,
+ &quot;nearRtRicId&quot; : &quot;Near-RT-Ric-ID&quot;,
+ &quot;transient&quot; : false,
+ &quot;policyObject&quot; : &quot;{}&quot;,
+ &quot;serviceId&quot; : &quot;rApp ID&quot;,
+ &quot;policyTypeId&quot; : &quot;ORAN_QOS_1.0.0(typeName_SemVersion)&quot;
}'
</code></pre>
</div>
@@ -1491,15 +1560,15 @@ pub fn main() {
<p class="marked"></p>
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/PolicyObjectInformation"
- }
- }
- },
- "required" : true
+ var schemaWrapper = {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyObjectInformation"
+ }
+ }
+ },
+ "required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
@@ -1565,26 +1634,26 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-201" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Success case 201 created",
- "headers" : {
- "Location" : {
- "description" : "Contains the URI of the newly created resource",
- "required" : true,
- "style" : "simple",
- "explode" : false,
- "schema" : {
- "type" : "string"
- }
- }
- },
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/PolicyObjectInformation"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Success case 201 created",
+ "headers" : {
+ "Location" : {
+ "description" : "Contains the URI of the newly created resource",
+ "required" : true,
+ "style" : "simple",
+ "explode" : false,
+ "schema" : {
+ "type" : "string"
+ }
+ }
+ },
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyObjectInformation"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -1668,15 +1737,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -1744,15 +1813,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unauthorized",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -1820,15 +1889,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Forbidden",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -1896,15 +1965,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -1942,6 +2011,82 @@ $(document).ready(function() {
<input id='responses-A1PolicyManagement-createPolicy-404-schema-data' type='hidden' value=''></input>
</div>
</div>
+ <h3 id="examples-A1PolicyManagement-createPolicy-title-405"></h3>
+ <p id="examples-A1PolicyManagement-createPolicy-description-405" class="marked"></p>
+ <script>
+ var responseA1PolicyManagement405_description = `Method Not Allowed`;
+ var responseA1PolicyManagement405_description_break = responseA1PolicyManagement405_description.indexOf('\n');
+ if (responseA1PolicyManagement405_description_break == -1) {
+ $("#examples-A1PolicyManagement-createPolicy-title-405").text("Status: 405 - " + responseA1PolicyManagement405_description);
+ } else {
+ $("#examples-A1PolicyManagement-createPolicy-title-405").text("Status: 405 - " + responseA1PolicyManagement405_description.substring(0, responseA1PolicyManagement405_description_break));
+ $("#examples-A1PolicyManagement-createPolicy-description-405").html(responseA1PolicyManagement405_description.substring(responseA1PolicyManagement405_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-createPolicy-405" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-createPolicy-405-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-createPolicy-405-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-createPolicy-405-schema">
+ <div id="responses-A1PolicyManagement-createPolicy-schema-405" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Method Not Allowed",
+ "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-A1PolicyManagement-createPolicy-405-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-createPolicy-schema-405');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-createPolicy-405-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
<h3 id="examples-A1PolicyManagement-createPolicy-title-406"></h3>
<p id="examples-A1PolicyManagement-createPolicy-description-406" class="marked"></p>
<script>
@@ -1972,15 +2117,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Acceptable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2018,6 +2163,234 @@ $(document).ready(function() {
<input id='responses-A1PolicyManagement-createPolicy-406-schema-data' type='hidden' value=''></input>
</div>
</div>
+ <h3 id="examples-A1PolicyManagement-createPolicy-title-409"></h3>
+ <p id="examples-A1PolicyManagement-createPolicy-description-409" class="marked"></p>
+ <script>
+ var responseA1PolicyManagement409_description = `Conflict`;
+ var responseA1PolicyManagement409_description_break = responseA1PolicyManagement409_description.indexOf('\n');
+ if (responseA1PolicyManagement409_description_break == -1) {
+ $("#examples-A1PolicyManagement-createPolicy-title-409").text("Status: 409 - " + responseA1PolicyManagement409_description);
+ } else {
+ $("#examples-A1PolicyManagement-createPolicy-title-409").text("Status: 409 - " + responseA1PolicyManagement409_description.substring(0, responseA1PolicyManagement409_description_break));
+ $("#examples-A1PolicyManagement-createPolicy-description-409").html(responseA1PolicyManagement409_description.substring(responseA1PolicyManagement409_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-createPolicy-409" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-createPolicy-409-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-createPolicy-409-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-createPolicy-409-schema">
+ <div id="responses-A1PolicyManagement-createPolicy-schema-409" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Conflict",
+ "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-A1PolicyManagement-createPolicy-409-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-createPolicy-schema-409');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-createPolicy-409-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-createPolicy-title-413"></h3>
+ <p id="examples-A1PolicyManagement-createPolicy-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-createPolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description);
+ } else {
+ $("#examples-A1PolicyManagement-createPolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description.substring(0, responseA1PolicyManagement413_description_break));
+ $("#examples-A1PolicyManagement-createPolicy-description-413").html(responseA1PolicyManagement413_description.substring(responseA1PolicyManagement413_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-createPolicy-413" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-createPolicy-413-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-createPolicy-413-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-createPolicy-413-schema">
+ <div id="responses-A1PolicyManagement-createPolicy-schema-413" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Payload Too Large",
+ "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-A1PolicyManagement-createPolicy-413-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-createPolicy-schema-413');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-createPolicy-413-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-createPolicy-title-415"></h3>
+ <p id="examples-A1PolicyManagement-createPolicy-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-createPolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description);
+ } else {
+ $("#examples-A1PolicyManagement-createPolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description.substring(0, responseA1PolicyManagement415_description_break));
+ $("#examples-A1PolicyManagement-createPolicy-description-415").html(responseA1PolicyManagement415_description.substring(responseA1PolicyManagement415_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-createPolicy-415" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-createPolicy-415-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-createPolicy-415-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-createPolicy-415-schema">
+ <div id="responses-A1PolicyManagement-createPolicy-schema-415" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Unsupported Media Type",
+ "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-A1PolicyManagement-createPolicy-415-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-createPolicy-schema-415');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-createPolicy-415-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
<h3 id="examples-A1PolicyManagement-createPolicy-title-423"></h3>
<p id="examples-A1PolicyManagement-createPolicy-description-423" class="marked"></p>
<script>
@@ -2048,20 +2421,20 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-423" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Locked - HTTP Status code which can be used when the state is Locked",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ErrorInformation"
- },
- "example" : {
- "status" : 423,
- "title" : "Locked",
- "detail" : "State is Locked in the provided request."
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Locked - HTTP Status code which can be used when the state is Locked",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ErrorInformation"
+ },
+ "example" : {
+ "status" : 423,
+ "title" : "Locked",
+ "detail" : "State is Locked in the provided request."
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2129,15 +2502,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Too Many Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2205,15 +2578,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Internal Server Error",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2281,15 +2654,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Gateway",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2357,15 +2730,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Service Unavailable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2727,7 +3100,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 created A1 policy was deleted`;
+ var responseA1PolicyManagement204_description = `The A1 policy was deleted`;
var responseA1PolicyManagement204_description_break = responseA1PolicyManagement204_description.indexOf('\n');
if (responseA1PolicyManagement204_description_break == -1) {
$("#examples-A1PolicyManagement-deletePolicy-title-204").text("Status: 204 - " + responseA1PolicyManagement204_description);
@@ -2749,8 +3122,8 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-204" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "The created A1 policy was deleted"
+ var schemaWrapper = {
+ "description" : "The A1 policy was deleted"
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2818,15 +3191,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2894,15 +3267,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unauthorized",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2970,15 +3343,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Forbidden",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3046,15 +3419,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3092,6 +3465,158 @@ Specifies the content type that the client expects to receive in response to the
<input id='responses-A1PolicyManagement-deletePolicy-404-schema-data' type='hidden' value=''></input>
</div>
</div>
+ <h3 id="examples-A1PolicyManagement-deletePolicy-title-405"></h3>
+ <p id="examples-A1PolicyManagement-deletePolicy-description-405" class="marked"></p>
+ <script>
+ var responseA1PolicyManagement405_description = `Method Not Allowed`;
+ var responseA1PolicyManagement405_description_break = responseA1PolicyManagement405_description.indexOf('\n');
+ if (responseA1PolicyManagement405_description_break == -1) {
+ $("#examples-A1PolicyManagement-deletePolicy-title-405").text("Status: 405 - " + responseA1PolicyManagement405_description);
+ } else {
+ $("#examples-A1PolicyManagement-deletePolicy-title-405").text("Status: 405 - " + responseA1PolicyManagement405_description.substring(0, responseA1PolicyManagement405_description_break));
+ $("#examples-A1PolicyManagement-deletePolicy-description-405").html(responseA1PolicyManagement405_description.substring(responseA1PolicyManagement405_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-deletePolicy-405" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-deletePolicy-405-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-deletePolicy-405-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-deletePolicy-405-schema">
+ <div id="responses-A1PolicyManagement-deletePolicy-schema-405" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Method Not Allowed",
+ "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-A1PolicyManagement-deletePolicy-405-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-deletePolicy-schema-405');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-deletePolicy-405-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-deletePolicy-title-406"></h3>
+ <p id="examples-A1PolicyManagement-deletePolicy-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-deletePolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
+ } else {
+ $("#examples-A1PolicyManagement-deletePolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-deletePolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-deletePolicy-406" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-deletePolicy-406-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-deletePolicy-406-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-deletePolicy-406-schema">
+ <div id="responses-A1PolicyManagement-deletePolicy-schema-406" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "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-A1PolicyManagement-deletePolicy-406-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-deletePolicy-schema-406');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-deletePolicy-406-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
<h3 id="examples-A1PolicyManagement-deletePolicy-title-423"></h3>
<p id="examples-A1PolicyManagement-deletePolicy-description-423" class="marked"></p>
<script>
@@ -3122,20 +3647,20 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-423" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Locked - HTTP Status code which can be used when the state is Locked",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ErrorInformation"
- },
- "example" : {
- "status" : 423,
- "title" : "Locked",
- "detail" : "State is Locked in the provided request."
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Locked - HTTP Status code which can be used when the state is Locked",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ErrorInformation"
+ },
+ "example" : {
+ "status" : 423,
+ "title" : "Locked",
+ "detail" : "State is Locked in the provided request."
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3203,15 +3728,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Too Many Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3279,15 +3804,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Internal Server Error",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3355,15 +3880,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Gateway",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3431,15 +3956,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Service Unavailable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3930,18 +4455,18 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Policy identities",
- "content" : {
- "application/json" : {
- "schema" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/PolicyInformation"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Policy identities",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/PolicyInformation"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4009,15 +4534,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4085,15 +4610,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unauthorized",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4161,15 +4686,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Forbidden",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4237,15 +4762,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4313,15 +4838,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Acceptable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4389,15 +4914,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Too Many Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4465,15 +4990,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Internal Server Error",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4541,15 +5066,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Gateway",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4617,15 +5142,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Service Unavailable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5020,20 +5545,20 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Policy found",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/PolicyObject"
- },
- "examples" : {
- "policyObject" : {
- "$ref" : "#/components/examples/PolicyObject"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Policy found",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyObject"
+ },
+ "examples" : {
+ "policyObject" : {
+ "$ref" : "#/components/examples/PolicyObject"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5101,15 +5626,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5177,15 +5702,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unauthorized",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5253,15 +5778,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Forbidden",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5329,15 +5854,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5405,15 +5930,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Acceptable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5481,15 +6006,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Too Many Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5557,15 +6082,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Internal Server Error",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5633,15 +6158,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Gateway",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5709,15 +6234,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Service Unavailable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5758,6 +6283,1093 @@ Specifies the content type that the client expects to receive in response to the
</article>
</div>
<hr>
+ <div id="api-A1PolicyManagement-getPolicyStatus">
+ <article id="api-A1PolicyManagement-getPolicyStatus-0" data-group="User" data-name="getPolicyStatus" data-version="0">
+ <div class="pull-left">
+ <h1>getPolicyStatus</h1>
+ <p></p>
+ </div>
+ <div class="pull-right"></div>
+ <div class="clearfix"></div>
+ <p></p>
+ <p class="marked">Query a policy status</p>
+ <p></p>
+ <br />
+ <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies/{policyId}/status</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-getPolicyStatus-0-curl">Curl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-java">Java</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-dart">Dart</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-android">Android</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-groovy">Groovy</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-objc">Obj-C</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-javascript">JavaScript</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-angular">Angular</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-csharp">C#</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-php">PHP</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-perl">Perl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-python">Python</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-rust">Rust</a></li>
+ </ul>
+
+ <div class="tab-content">
+ <div class="tab-pane active" id="examples-A1PolicyManagement-getPolicyStatus-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}/status"
+</code></pre>
+ </div>
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-java">
+ <pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.A1PolicyManagementApi;
+
+import java.io.File;
+import java.util.*;
+
+public class A1PolicyManagementApiExample {
+ public static void main(String[] args) {
+
+ // Create an instance of the API class
+ A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
+ 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 {
+ Object result = apiInstance.getPolicyStatus(policyId, accept);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling A1PolicyManagementApi#getPolicyStatus");
+ e.printStackTrace();
+ }
+ }
+}
+</code></pre>
+ </div>
+
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-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 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.getPolicyStatus(policyId, accept);
+ print(result);
+} catch (e) {
+ print('Exception when calling DefaultApi->getPolicyStatus: $e\n');
+}
+
+</code></pre>
+ </div>
+
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-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 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.getPolicyStatus(policyId, accept);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling A1PolicyManagementApi#getPolicyStatus");
+ e.printStackTrace();
+ }
+ }
+}</code></pre>
+ </div>
+ <!--
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-groovy">
+ <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
+ </div> -->
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-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 *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 getPolicyStatusWith:policyId
+ accept:accept
+ completionHandler: ^(Object output, NSError* error) {
+ if (output) {
+ NSLog(@"%@", output);
+ }
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+}];
+</code></pre>
+ </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');
+
+// Create an instance of the API class
+var api = new A1PolicyManagementApi.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.
+};
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+api.getPolicyStatus(policyId, opts, callback);
+</code></pre>
+ </div>
+
+ <!--<div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-angular">
+ <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
+ </div>-->
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-csharp">
+ <pre class="prettyprint"><code class="language-cs">using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class getPolicyStatusExample
+ {
+ public void main()
+ {
+
+ // Create an instance of the API class
+ var apiInstance = new A1PolicyManagementApi();
+ 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 {
+ Object result = apiInstance.getPolicyStatus(policyId, accept);
+ Debug.WriteLine(result);
+ } catch (Exception e) {
+ Debug.Print("Exception when calling A1PolicyManagementApi.getPolicyStatus: " + e.Message );
+ }
+ }
+ }
+}
+</code></pre>
+ </div>
+
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-php">
+ <pre class="prettyprint"><code class="language-php"><&#63;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 |
+$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->getPolicyStatus($policyId, $accept);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling A1PolicyManagementApi->getPolicyStatus: ', $e->getMessage(), PHP_EOL;
+}
+?></code></pre>
+ </div>
+
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-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 $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->getPolicyStatus(policyId => $policyId, accept => $accept);
+ print Dumper($result);
+};
+if ($@) {
+ warn "Exception when calling A1PolicyManagementApi->getPolicyStatus: $@\n";
+}</code></pre>
+ </div>
+
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-python">
+ <pre class="prettyprint"><code class="language-python">from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.A1PolicyManagementApi()
+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:
+ api_response = api_instance.get_policy_status(policyId, accept=accept)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling A1PolicyManagementApi->getPolicyStatus: %s\n" % e)</code></pre>
+ </div>
+
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-rust">
+ <pre class="prettyprint"><code class="language-rust">extern crate A1PolicyManagementApi;
+
+pub fn main() {
+ let policyId = policyId_example; // String
+ let accept = application/json; // String
+
+ let mut context = A1PolicyManagementApi::Context::default();
+ let result = client.getPolicyStatus(policyId, accept, &context).wait();
+
+ println!("{:?}", result);
+}
+</code></pre>
+ </div>
+ </div>
+
+ <h2>Scopes</h2>
+ <table>
+
+ </table>
+
+ <h2>Parameters</h2>
+
+ <div class="methodsubtabletitle">Path parameters</div>
+ <table id="methodsubtable">
+ <tr>
+ <th width="150px">Name</th>
+ <th>Description</th>
+ </tr>
+ <tr><td style="width:150px;">policyId*</td>
+<td>
+
+
+ <div id="d2e199_getPolicyStatus_policyId">
+ <div class="json-schema-view">
+ <div class="primitive">
+ <span class="type">
+ String
+ </span>
+
+ </div>
+ <div class="inner required">
+ Required
+ </div>
+ </div>
+ </div>
+</td>
+</tr>
+
+ </table>
+
+ <div class="methodsubtabletitle">Header parameters</div>
+ <table id="methodsubtable">
+ <tr>
+ <th width="150px">Name</th>
+ <th>Description</th>
+ </tr>
+ <tr><td style="width:150px;">Accept</td>
+<td>
+
+
+ <div id="d2e199_getPolicyStatus_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>
+ </div>
+</td>
+</tr>
+
+ </table>
+
+
+
+
+ <h2>Responses</h2>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-200"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-description-200" class="marked"></p>
+ <script>
+ var responseA1PolicyManagement200_description = `OK`;
+ var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n');
+ if (responseA1PolicyManagement200_description_break == -1) {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-200" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-200-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-200-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-200-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-200" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "OK",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyStatusObject"
+ }
+ }
+ }
+};
+ 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-A1PolicyManagement-getPolicyStatus-200-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-200');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-200-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-400"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-400" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-400-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-400-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-400-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-400" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "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-A1PolicyManagement-getPolicyStatus-400-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-400');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-400-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-401"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-401" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-401-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-401-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-401-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-401" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "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-A1PolicyManagement-getPolicyStatus-401-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-401');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-401-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-403"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-403" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-403-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-403-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-403-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-403" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "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-A1PolicyManagement-getPolicyStatus-403-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-403');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-403-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-404"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-404" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-404-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-404-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-404-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-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-A1PolicyManagement-getPolicyStatus-404-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-404');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-404-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-406"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-406" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-406-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-406-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-406-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-406" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "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-A1PolicyManagement-getPolicyStatus-406-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-406');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-406-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <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_break = responseA1PolicyManagement429_description.indexOf('\n');
+ if (responseA1PolicyManagement429_description_break == -1) {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-429" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-429-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-429-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-429-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-429" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "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-A1PolicyManagement-getPolicyStatus-429-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-429');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-429-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-500"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-500" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-500-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-500-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-500-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-500" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "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-A1PolicyManagement-getPolicyStatus-500-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-500');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-500-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-502"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-502" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-502-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-502-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-502-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-502" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "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-A1PolicyManagement-getPolicyStatus-502-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-502');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-502-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-503"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-503" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-503-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-503-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-503-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-503" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "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-A1PolicyManagement-getPolicyStatus-503-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-503');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-503-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ </article>
+ </div>
+ <hr>
<div id="api-A1PolicyManagement-getPolicyTypeDefinition">
<article id="api-A1PolicyManagement-getPolicyTypeDefinition-0" data-group="User" data-name="getPolicyTypeDefinition" data-version="0">
<div class="pull-left">
@@ -5815,7 +7427,7 @@ public class A1PolicyManagementApiExample {
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.getPolicyTypeDefinition(policyTypeId, accept);
+ PolicyTypeObject result = apiInstance.getPolicyTypeDefinition(policyTypeId, accept);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling A1PolicyManagementApi#getPolicyTypeDefinition");
@@ -5854,7 +7466,7 @@ public class A1PolicyManagementApiExample {
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.getPolicyTypeDefinition(policyTypeId, accept);
+ PolicyTypeObject result = apiInstance.getPolicyTypeDefinition(policyTypeId, accept);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling A1PolicyManagementApi#getPolicyTypeDefinition");
@@ -5877,7 +7489,7 @@ String *accept = application/json; // Specifies the content type that the client
[apiInstance getPolicyTypeDefinitionWith:policyTypeId
accept:accept
- completionHandler: ^(Object output, NSError* error) {
+ completionHandler: ^(PolicyTypeObject output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -5932,7 +7544,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 {
- Object result = apiInstance.getPolicyTypeDefinition(policyTypeId, accept);
+ PolicyTypeObject result = apiInstance.getPolicyTypeDefinition(policyTypeId, accept);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling A1PolicyManagementApi.getPolicyTypeDefinition: " + e.Message );
@@ -6112,20 +7724,20 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - schema of the given policy type",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/PolicyObject"
- },
- "examples" : {
- "policyObject" : {
- "$ref" : "#/components/examples/PolicyObject"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - schema of the given policy type",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyTypeObject"
+ },
+ "examples" : {
+ "PolicyTypeObject" : {
+ "$ref" : "#/components/examples/PolicyTypeObject"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6193,15 +7805,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6269,15 +7881,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unauthorized",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6345,15 +7957,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Forbidden",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6421,15 +8033,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6497,15 +8109,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Acceptable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6573,15 +8185,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Too Many Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6649,15 +8261,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Internal Server Error",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6725,15 +8337,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Gateway",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6801,15 +8413,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Service Unavailable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7266,18 +8878,23 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Policy Type IDs found Ok",
- "content" : {
- "application/json" : {
- "schema" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/PolicyTypeInformation"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Policy Type IDs found Ok",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/PolicyTypeInformation"
+ }
+ },
+ "examples" : {
+ "PolicyTypeInformation" : {
+ "$ref" : "#/components/examples/PolicyTypeInformation"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7345,15 +8962,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7421,15 +9038,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unauthorized",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7497,15 +9114,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Forbidden",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7573,15 +9190,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7649,15 +9266,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Acceptable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7725,15 +9342,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Too Many Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7801,15 +9418,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Internal Server Error",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7877,15 +9494,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Gateway",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7953,15 +9570,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Service Unavailable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8306,20 +9923,20 @@ pub fn main() {
<p class="marked"></p>
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/PolicyObject"
- },
- "examples" : {
- "policyObject" : {
- "$ref" : "#/components/examples/PolicyObject"
- }
- }
- }
- },
- "required" : true
+ var schemaWrapper = {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyObject"
+ },
+ "examples" : {
+ "policyObject" : {
+ "$ref" : "#/components/examples/PolicyObject"
+ }
+ }
+ }
+ },
+ "required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
@@ -8382,15 +9999,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Policy updated",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/PolicyObject"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Policy updated",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyObject"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8458,15 +10075,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8534,15 +10151,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unauthorized",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8610,15 +10227,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Forbidden",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8686,15 +10303,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8762,15 +10379,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Acceptable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8838,15 +10455,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-411" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Length Required",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Length Required",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8914,15 +10531,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-413" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Payload Too Large",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Payload Too Large",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8990,15 +10607,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-415" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unsupported Media Type",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unsupported Media Type",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -9066,20 +10683,20 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-423" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Locked - HTTP Status code which can be used when the state is Locked",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ErrorInformation"
- },
- "example" : {
- "status" : 423,
- "title" : "Locked",
- "detail" : "State is Locked in the provided request."
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Locked - HTTP Status code which can be used when the state is Locked",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ErrorInformation"
+ },
+ "example" : {
+ "status" : 423,
+ "title" : "Locked",
+ "detail" : "State is Locked in the provided request."
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -9147,15 +10764,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Too Many Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -9223,15 +10840,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Internal Server Error",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -9299,15 +10916,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Gateway",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -9375,15 +10992,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Service Unavailable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
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 6404c064..0e7aaa76 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
@@ -844,315 +844,381 @@ 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["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.",
- "example" : "Policy type not found"
- },
- "title" : {
- "type" : "string",
- "description" : "A specific error name",
- "example" : "Not Found"
- },
- "status" : {
- "type" : "integer",
- "description" : "The HTTP status code generated by the origin server for this occurrence of the problem. ",
- "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["ErrorInformation"] = {
+ "type" : "object",
+ "properties" : {
+ "detail" : {
+ "type" : "string",
+ "description" : " A human-readable explanation specific to this occurrence of the problem.",
+ "example" : "Policy type not found"
+ },
+ "title" : {
+ "type" : "string",
+ "description" : "A specific error name",
+ "example" : "Not Found"
+ },
+ "status" : {
+ "type" : "integer",
+ "description" : "The HTTP status code generated by the origin server for this occurrence of the problem. ",
+ "format" : "int32",
+ "example" : 404
+ }
+ },
+ "description" : "Problem as defined in https://tools.ietf.org/html/rfc7807"
};
- 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"
- },
- "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"
-};
- defs["PolicyObjectInformation"] = {
- "required" : [ "nearRtRicId", "policyObject", "policyTypeId" ],
- "type" : "object",
- "properties" : {
- "nearRtRicId" : {
- "type" : "string",
- "description" : "identity of the target Near-RT RIC",
- "example" : "Near-RT-Ric-ID"
- },
- "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.",
- "nullable" : false,
- "default" : false
- },
- "policyId" : {
- "type" : "string",
- "description" : "identity of the Policy",
- "example" : "POLICY-ID"
- },
- "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"
- },
- "policyObject" : {
- "$ref" : "#/components/schemas/PolicyObject"
- },
- "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" : "Status for one A1-P Policy"
-};
- defs["PolicyTypeInformation"] = {
- "required" : [ "nearRtRicId", "policyTypeId" ],
- "type" : "object",
- "properties" : {
- "policyTypeId" : {
- "type" : "string",
- "description" : "Identity of the policy type"
- },
- "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"
-};
- defs["ProblemDetails"] = {
- "type" : "object",
- "properties" : {
- "type" : {
- "type" : "string",
- "description" : "a URI reference according to IETF RFC 3986 that identifies the problem type"
- },
- "title" : {
- "type" : "string",
- "description" : "human-readable summary of the problem type"
- },
- "status" : {
- "type" : "number",
- "description" : "the HTTP status code"
- },
- "detail" : {
- "type" : "string",
- "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"
-};
- defs["RicInfo"] = {
- "type" : "object",
- "properties" : {
- "ricId" : {
- "type" : "string",
- "description" : "identity of the Near-RT RIC"
- },
- "managedElementIds" : {
- "type" : "array",
- "description" : "O1 identities for managed entities",
- "items" : {
- "type" : "string",
- "description" : "O1 identities for managed entities"
- }
- },
- "state" : {
- "type" : "string",
- "description" : "Represents the states for a Near-RT RIC",
- "enum" : [ "UNAVAILABLE", "AVAILABLE", "SYNCHRONIZING", "CONSISTENCY_CHECK" ]
- },
- "policyTypeIds" : {
- "type" : "array",
- "description" : "supported policy types",
- "items" : {
- "type" : "string",
- "description" : "supported policy types"
- }
- }
- },
- "description" : "Information for a Near-RT RIC"
-};
- defs["RicInfoList"] = {
- "type" : "object",
- "properties" : {
- "rics" : {
- "type" : "array",
- "description" : "List of Near-RT RIC information",
- "items" : {
- "$ref" : "#/components/schemas/RicInfo"
- }
- }
- },
- "description" : "List of Near-RT RIC information"
-};
- defs["ServiceCallbackInfo"] = {
- "required" : [ "eventType", "ricId" ],
- "type" : "object",
- "properties" : {
- "ricId" : {
- "type" : "string",
- "description" : "identity of a Near-RT RIC"
- },
- "eventType" : {
- "type" : "string",
- "description" : "values:\nAVAILABLE: the Near-RT RIC has become available for A1 Policy management",
- "enum" : [ "AVAILABLE" ]
- }
- },
- "description" : "Information transferred as in Service callbacks (callback_url)"
-};
- defs["ServiceRegistrationInfo"] = {
- "required" : [ "serviceId" ],
- "type" : "object",
- "properties" : {
- "callbackUrl" : {
- "type" : "string",
- "description" : "callback for notifying of Near-RT RIC state changes"
- },
- "serviceId" : {
- "type" : "string",
- "description" : "identity of the service"
- },
- "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.",
- "format" : "int64"
- }
- },
- "description" : "Information for one service"
-};
- defs["ServiceStatus"] = {
- "type" : "object",
- "properties" : {
- "callbackUrl" : {
- "type" : "string",
- "description" : "callback for notifying of RIC synchronization"
- },
- "serviceId" : {
- "type" : "string",
- "description" : "identity of the service"
- },
- "keepAliveIntervalSeconds" : {
- "type" : "integer",
- "description" : "policy keep alive timeout",
- "format" : "int64"
- },
- "timeSinceLastActivitySeconds" : {
- "type" : "integer",
- "description" : "time since last invocation by the service",
- "format" : "int64"
- }
- }
+ 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["ServiceStatusList"] = {
- "type" : "object",
- "properties" : {
- "serviceList" : {
- "type" : "array",
- "description" : "List of service information",
- "items" : {
- "$ref" : "#/components/schemas/ServiceStatus"
- }
- }
- }
+ defs["Link"] = {
+ "type" : "object",
+ "properties" : {
+ "templated" : {
+ "type" : "boolean"
+ },
+ "href" : {
+ "type" : "string"
+ }
+ }
};
- defs["StatusInfo"] = {
- "type" : "object",
- "properties" : {
- "status" : {
- "type" : "string",
- "description" : "status text"
- }
- }
+ 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"
+ },
+ "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"
+};
+ defs["PolicyObjectInformation"] = {
+ "required" : [ "nearRtRicId", "policyObject", "policyTypeId" ],
+ "type" : "object",
+ "properties" : {
+ "nearRtRicId" : {
+ "type" : "string",
+ "description" : "identity of the target Near-RT RIC",
+ "example" : "Near-RT-Ric-ID"
+ },
+ "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.",
+ "nullable" : false,
+ "default" : false
+ },
+ "policyId" : {
+ "type" : "string",
+ "description" : "identity of the Policy",
+ "example" : "POLICY-ID"
+ },
+ "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"
+ },
+ "policyObject" : {
+ "$ref" : "#/components/schemas/PolicyObject"
+ },
+ "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" : "Status for one A1-P Policy"
+};
+ defs["PolicyTypeInformation"] = {
+ "required" : [ "nearRtRicId", "policyTypeId" ],
+ "type" : "object",
+ "properties" : {
+ "policyTypeId" : {
+ "type" : "string",
+ "description" : "Identity of the policy type"
+ },
+ "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",
+ "example" : {
+ "policyTypeId" : "STD_QOS2_0.1.0",
+ "nearRtRicId" : "ricsim_g3_2"
+ }
+};
+ defs["PolicyTypeObject"] = {
+ "required" : [ "policySchema" ],
+ "type" : "object",
+ "properties" : {
+ "policySchema" : {
+ "$ref" : "#/components/schemas/PolicySchema"
+ },
+ "statusSchema" : {
+ "$ref" : "#/components/schemas/StatusSchema"
+ }
+ },
+ "description" : "policy type object as defined in A1TD",
+ "example" : {
+ "policySchema" : {
+ "$schema" : "http://json-schema.org/draft-07/schema#",
+ "title" : "STD_QOS_0_2_0",
+ "description" : "STD QOS policy type",
+ "type" : "object",
+ "properties" : {
+ "scope" : {
+ "type" : "object",
+ "properties" : {
+ "ueId" : {
+ "type" : "string"
+ },
+ "qosId" : {
+ "type" : "string"
+ }
+ },
+ "additionalProperties" : false,
+ "required" : [ "ueId", "qosId" ]
+ },
+ "qosObjectives" : {
+ "type" : "object",
+ "properties" : {
+ "priorityLevel" : {
+ "type" : "number"
+ }
+ },
+ "additionalProperties" : false,
+ "required" : [ "priorityLevel" ]
+ }
+ }
+ },
+ "statusSchema" : {
+ "$schema" : "http://json-schema.org/draft-07/schema#",
+ "title" : "STD_QOS_0.2.0",
+ "description" : "STD QOS policy type status",
+ "type" : "object",
+ "properties" : {
+ "enforceStatus" : {
+ "type" : "string"
+ },
+ "enforceReason" : {
+ "type" : "string"
+ },
+ "additionalProperties" : false,
+ "required" : [ "enforceStatus" ]
+ }
+ }
+ }
+};
+ defs["ProblemDetails"] = {
+ "type" : "object",
+ "properties" : {
+ "type" : {
+ "type" : "string",
+ "description" : "a URI reference according to IETF RFC 3986 that identifies the problem type"
+ },
+ "title" : {
+ "type" : "string",
+ "description" : "human-readable summary of the problem type"
+ },
+ "status" : {
+ "type" : "number",
+ "description" : "the HTTP status code"
+ },
+ "detail" : {
+ "type" : "string",
+ "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"
+};
+ defs["RicInfo"] = {
+ "type" : "object",
+ "properties" : {
+ "ricId" : {
+ "type" : "string",
+ "description" : "identity of the Near-RT RIC"
+ },
+ "managedElementIds" : {
+ "type" : "array",
+ "description" : "O1 identities for managed entities",
+ "items" : {
+ "type" : "string",
+ "description" : "O1 identities for managed entities"
+ }
+ },
+ "state" : {
+ "type" : "string",
+ "description" : "Represents the states for a Near-RT RIC",
+ "enum" : [ "UNAVAILABLE", "AVAILABLE", "SYNCHRONIZING", "CONSISTENCY_CHECK" ]
+ },
+ "policyTypeIds" : {
+ "type" : "array",
+ "description" : "supported policy types",
+ "items" : {
+ "type" : "string",
+ "description" : "supported policy types"
+ }
+ }
+ },
+ "description" : "Information for a Near-RT RIC"
+};
+ defs["RicInfoList"] = {
+ "type" : "object",
+ "properties" : {
+ "rics" : {
+ "type" : "array",
+ "description" : "List of Near-RT RIC information",
+ "items" : {
+ "$ref" : "#/components/schemas/RicInfo"
+ }
+ }
+ },
+ "description" : "List of Near-RT RIC information"
+};
+ defs["ServiceCallbackInfo"] = {
+ "required" : [ "eventType", "ricId" ],
+ "type" : "object",
+ "properties" : {
+ "ricId" : {
+ "type" : "string",
+ "description" : "identity of a Near-RT RIC"
+ },
+ "eventType" : {
+ "type" : "string",
+ "description" : "values:\nAVAILABLE: the Near-RT RIC has become available for A1 Policy management",
+ "enum" : [ "AVAILABLE" ]
+ }
+ },
+ "description" : "Information transferred as in Service callbacks (callback_url)"
+};
+ defs["ServiceRegistrationInfo"] = {
+ "required" : [ "serviceId" ],
+ "type" : "object",
+ "properties" : {
+ "callbackUrl" : {
+ "type" : "string",
+ "description" : "callback for notifying of Near-RT RIC state changes"
+ },
+ "serviceId" : {
+ "type" : "string",
+ "description" : "identity of the service"
+ },
+ "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.",
+ "format" : "int64"
+ }
+ },
+ "description" : "Information for one service"
+};
+ defs["ServiceStatus"] = {
+ "type" : "object",
+ "properties" : {
+ "callbackUrl" : {
+ "type" : "string",
+ "description" : "callback for notifying of RIC synchronization"
+ },
+ "serviceId" : {
+ "type" : "string",
+ "description" : "identity of the service"
+ },
+ "keepAliveIntervalSeconds" : {
+ "type" : "integer",
+ "description" : "policy keep alive timeout",
+ "format" : "int64"
+ },
+ "timeSinceLastActivitySeconds" : {
+ "type" : "integer",
+ "description" : "time since last invocation by the service",
+ "format" : "int64"
+ }
+ }
+};
+ defs["ServiceStatusList"] = {
+ "type" : "object",
+ "properties" : {
+ "serviceList" : {
+ "type" : "array",
+ "description" : "List of service information",
+ "items" : {
+ "$ref" : "#/components/schemas/ServiceStatus"
+ }
+ }
+ }
+};
+ defs["StatusInfo"] = {
+ "type" : "object",
+ "properties" : {
+ "status" : {
+ "type" : "string",
+ "description" : "status text"
+ }
+ }
};
- defs["NearRtRicId"] = {
- "type" : "string",
- "description" : "Identity of the policy"
+ defs["NearRtRicId"] = {
+ "type" : "string",
+ "description" : "Identity of the policy"
};
var errs = {};
@@ -1185,6 +1251,9 @@ ul.nav-tabs {
<li data-group="A1PolicyManagement" data-name="getPolicy" class="">
<a href="#api-A1PolicyManagement-getPolicy">getPolicy</a>
</li>
+ <li data-group="A1PolicyManagement" data-name="getPolicyStatus" class="">
+ <a href="#api-A1PolicyManagement-getPolicyStatus">getPolicyStatus</a>
+ </li>
<li data-group="A1PolicyManagement" data-name="getPolicyTypeDefinition" class="">
<a href="#api-A1PolicyManagement-getPolicyTypeDefinition">getPolicyTypeDefinition</a>
</li>
@@ -1287,13 +1356,13 @@ ul.nav-tabs {
-H "Accept: application/json,application/problem+json" \
-H "Content-Type: application/json" \
"https://example.com/a1-policy-management/v1/policies" \
- -d '{
- &quot;policyId&quot; : &quot;POLICY-ID&quot;,
- &quot;nearRtRicId&quot; : &quot;Near-RT-Ric-ID&quot;,
- &quot;transient&quot; : false,
- &quot;policyObject&quot; : &quot;{}&quot;,
- &quot;serviceId&quot; : &quot;rApp ID&quot;,
- &quot;policyTypeId&quot; : &quot;ORAN_QOS_1.0.0(typeName_SemVersion)&quot;
+ -d '{
+ &quot;policyId&quot; : &quot;POLICY-ID&quot;,
+ &quot;nearRtRicId&quot; : &quot;Near-RT-Ric-ID&quot;,
+ &quot;transient&quot; : false,
+ &quot;policyObject&quot; : &quot;{}&quot;,
+ &quot;serviceId&quot; : &quot;rApp ID&quot;,
+ &quot;policyTypeId&quot; : &quot;ORAN_QOS_1.0.0(typeName_SemVersion)&quot;
}'
</code></pre>
</div>
@@ -1522,15 +1591,15 @@ pub fn main() {
<p class="marked"></p>
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/PolicyObjectInformation"
- }
- }
- },
- "required" : true
+ var schemaWrapper = {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyObjectInformation"
+ }
+ }
+ },
+ "required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
@@ -1596,26 +1665,26 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-201" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Success case 201 created",
- "headers" : {
- "Location" : {
- "description" : "Contains the URI of the newly created resource",
- "required" : true,
- "style" : "simple",
- "explode" : false,
- "schema" : {
- "type" : "string"
- }
- }
- },
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/PolicyObjectInformation"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Success case 201 created",
+ "headers" : {
+ "Location" : {
+ "description" : "Contains the URI of the newly created resource",
+ "required" : true,
+ "style" : "simple",
+ "explode" : false,
+ "schema" : {
+ "type" : "string"
+ }
+ }
+ },
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyObjectInformation"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -1699,15 +1768,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -1775,15 +1844,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unauthorized",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -1851,15 +1920,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Forbidden",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -1927,15 +1996,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -1973,6 +2042,82 @@ $(document).ready(function() {
<input id='responses-A1PolicyManagement-createPolicy-404-schema-data' type='hidden' value=''></input>
</div>
</div>
+ <h3 id="examples-A1PolicyManagement-createPolicy-title-405"></h3>
+ <p id="examples-A1PolicyManagement-createPolicy-description-405" class="marked"></p>
+ <script>
+ var responseA1PolicyManagement405_description = `Method Not Allowed`;
+ var responseA1PolicyManagement405_description_break = responseA1PolicyManagement405_description.indexOf('\n');
+ if (responseA1PolicyManagement405_description_break == -1) {
+ $("#examples-A1PolicyManagement-createPolicy-title-405").text("Status: 405 - " + responseA1PolicyManagement405_description);
+ } else {
+ $("#examples-A1PolicyManagement-createPolicy-title-405").text("Status: 405 - " + responseA1PolicyManagement405_description.substring(0, responseA1PolicyManagement405_description_break));
+ $("#examples-A1PolicyManagement-createPolicy-description-405").html(responseA1PolicyManagement405_description.substring(responseA1PolicyManagement405_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-createPolicy-405" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-createPolicy-405-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-createPolicy-405-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-createPolicy-405-schema">
+ <div id="responses-A1PolicyManagement-createPolicy-schema-405" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Method Not Allowed",
+ "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-A1PolicyManagement-createPolicy-405-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-createPolicy-schema-405');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-createPolicy-405-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
<h3 id="examples-A1PolicyManagement-createPolicy-title-406"></h3>
<p id="examples-A1PolicyManagement-createPolicy-description-406" class="marked"></p>
<script>
@@ -2003,15 +2148,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Acceptable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2049,6 +2194,234 @@ $(document).ready(function() {
<input id='responses-A1PolicyManagement-createPolicy-406-schema-data' type='hidden' value=''></input>
</div>
</div>
+ <h3 id="examples-A1PolicyManagement-createPolicy-title-409"></h3>
+ <p id="examples-A1PolicyManagement-createPolicy-description-409" class="marked"></p>
+ <script>
+ var responseA1PolicyManagement409_description = `Conflict`;
+ var responseA1PolicyManagement409_description_break = responseA1PolicyManagement409_description.indexOf('\n');
+ if (responseA1PolicyManagement409_description_break == -1) {
+ $("#examples-A1PolicyManagement-createPolicy-title-409").text("Status: 409 - " + responseA1PolicyManagement409_description);
+ } else {
+ $("#examples-A1PolicyManagement-createPolicy-title-409").text("Status: 409 - " + responseA1PolicyManagement409_description.substring(0, responseA1PolicyManagement409_description_break));
+ $("#examples-A1PolicyManagement-createPolicy-description-409").html(responseA1PolicyManagement409_description.substring(responseA1PolicyManagement409_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-createPolicy-409" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-createPolicy-409-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-createPolicy-409-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-createPolicy-409-schema">
+ <div id="responses-A1PolicyManagement-createPolicy-schema-409" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Conflict",
+ "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-A1PolicyManagement-createPolicy-409-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-createPolicy-schema-409');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-createPolicy-409-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-createPolicy-title-413"></h3>
+ <p id="examples-A1PolicyManagement-createPolicy-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-createPolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description);
+ } else {
+ $("#examples-A1PolicyManagement-createPolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description.substring(0, responseA1PolicyManagement413_description_break));
+ $("#examples-A1PolicyManagement-createPolicy-description-413").html(responseA1PolicyManagement413_description.substring(responseA1PolicyManagement413_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-createPolicy-413" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-createPolicy-413-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-createPolicy-413-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-createPolicy-413-schema">
+ <div id="responses-A1PolicyManagement-createPolicy-schema-413" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Payload Too Large",
+ "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-A1PolicyManagement-createPolicy-413-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-createPolicy-schema-413');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-createPolicy-413-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-createPolicy-title-415"></h3>
+ <p id="examples-A1PolicyManagement-createPolicy-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-createPolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description);
+ } else {
+ $("#examples-A1PolicyManagement-createPolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description.substring(0, responseA1PolicyManagement415_description_break));
+ $("#examples-A1PolicyManagement-createPolicy-description-415").html(responseA1PolicyManagement415_description.substring(responseA1PolicyManagement415_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-createPolicy-415" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-createPolicy-415-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-createPolicy-415-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-createPolicy-415-schema">
+ <div id="responses-A1PolicyManagement-createPolicy-schema-415" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Unsupported Media Type",
+ "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-A1PolicyManagement-createPolicy-415-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-createPolicy-schema-415');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-createPolicy-415-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
<h3 id="examples-A1PolicyManagement-createPolicy-title-423"></h3>
<p id="examples-A1PolicyManagement-createPolicy-description-423" class="marked"></p>
<script>
@@ -2079,20 +2452,20 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-423" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Locked - HTTP Status code which can be used when the state is Locked",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ErrorInformation"
- },
- "example" : {
- "status" : 423,
- "title" : "Locked",
- "detail" : "State is Locked in the provided request."
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Locked - HTTP Status code which can be used when the state is Locked",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ErrorInformation"
+ },
+ "example" : {
+ "status" : 423,
+ "title" : "Locked",
+ "detail" : "State is Locked in the provided request."
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2160,15 +2533,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Too Many Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2236,15 +2609,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Internal Server Error",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2312,15 +2685,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Gateway",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2388,15 +2761,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Service Unavailable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2758,7 +3131,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 created A1 policy was deleted`;
+ var responseA1PolicyManagement204_description = `The A1 policy was deleted`;
var responseA1PolicyManagement204_description_break = responseA1PolicyManagement204_description.indexOf('\n');
if (responseA1PolicyManagement204_description_break == -1) {
$("#examples-A1PolicyManagement-deletePolicy-title-204").text("Status: 204 - " + responseA1PolicyManagement204_description);
@@ -2780,8 +3153,8 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-204" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "The created A1 policy was deleted"
+ var schemaWrapper = {
+ "description" : "The A1 policy was deleted"
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2849,15 +3222,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2925,15 +3298,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unauthorized",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3001,15 +3374,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Forbidden",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3077,15 +3450,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3123,6 +3496,158 @@ Specifies the content type that the client expects to receive in response to the
<input id='responses-A1PolicyManagement-deletePolicy-404-schema-data' type='hidden' value=''></input>
</div>
</div>
+ <h3 id="examples-A1PolicyManagement-deletePolicy-title-405"></h3>
+ <p id="examples-A1PolicyManagement-deletePolicy-description-405" class="marked"></p>
+ <script>
+ var responseA1PolicyManagement405_description = `Method Not Allowed`;
+ var responseA1PolicyManagement405_description_break = responseA1PolicyManagement405_description.indexOf('\n');
+ if (responseA1PolicyManagement405_description_break == -1) {
+ $("#examples-A1PolicyManagement-deletePolicy-title-405").text("Status: 405 - " + responseA1PolicyManagement405_description);
+ } else {
+ $("#examples-A1PolicyManagement-deletePolicy-title-405").text("Status: 405 - " + responseA1PolicyManagement405_description.substring(0, responseA1PolicyManagement405_description_break));
+ $("#examples-A1PolicyManagement-deletePolicy-description-405").html(responseA1PolicyManagement405_description.substring(responseA1PolicyManagement405_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-deletePolicy-405" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-deletePolicy-405-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-deletePolicy-405-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-deletePolicy-405-schema">
+ <div id="responses-A1PolicyManagement-deletePolicy-schema-405" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Method Not Allowed",
+ "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-A1PolicyManagement-deletePolicy-405-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-deletePolicy-schema-405');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-deletePolicy-405-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-deletePolicy-title-406"></h3>
+ <p id="examples-A1PolicyManagement-deletePolicy-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-deletePolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
+ } else {
+ $("#examples-A1PolicyManagement-deletePolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-deletePolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-deletePolicy-406" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-deletePolicy-406-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-deletePolicy-406-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-deletePolicy-406-schema">
+ <div id="responses-A1PolicyManagement-deletePolicy-schema-406" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "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-A1PolicyManagement-deletePolicy-406-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-deletePolicy-schema-406');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-deletePolicy-406-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
<h3 id="examples-A1PolicyManagement-deletePolicy-title-423"></h3>
<p id="examples-A1PolicyManagement-deletePolicy-description-423" class="marked"></p>
<script>
@@ -3153,20 +3678,20 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-423" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Locked - HTTP Status code which can be used when the state is Locked",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ErrorInformation"
- },
- "example" : {
- "status" : 423,
- "title" : "Locked",
- "detail" : "State is Locked in the provided request."
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Locked - HTTP Status code which can be used when the state is Locked",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ErrorInformation"
+ },
+ "example" : {
+ "status" : 423,
+ "title" : "Locked",
+ "detail" : "State is Locked in the provided request."
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3234,15 +3759,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Too Many Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3310,15 +3835,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Internal Server Error",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3386,15 +3911,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Gateway",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3462,15 +3987,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Service Unavailable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3961,18 +4486,18 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Policy identities",
- "content" : {
- "application/json" : {
- "schema" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/PolicyInformation"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Policy identities",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/PolicyInformation"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4040,15 +4565,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4116,15 +4641,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unauthorized",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4192,15 +4717,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Forbidden",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4268,15 +4793,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4344,15 +4869,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Acceptable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4420,15 +4945,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Too Many Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4496,15 +5021,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Internal Server Error",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4572,15 +5097,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Gateway",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4648,15 +5173,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Service Unavailable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5051,20 +5576,20 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Policy found",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/PolicyObject"
- },
- "examples" : {
- "policyObject" : {
- "$ref" : "#/components/examples/PolicyObject"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Policy found",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyObject"
+ },
+ "examples" : {
+ "policyObject" : {
+ "$ref" : "#/components/examples/PolicyObject"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5132,15 +5657,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5208,15 +5733,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unauthorized",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5284,15 +5809,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Forbidden",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5360,15 +5885,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5436,15 +5961,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Acceptable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5512,15 +6037,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Too Many Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5588,15 +6113,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Internal Server Error",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5664,15 +6189,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Gateway",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5740,15 +6265,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Service Unavailable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5789,6 +6314,1093 @@ Specifies the content type that the client expects to receive in response to the
</article>
</div>
<hr>
+ <div id="api-A1PolicyManagement-getPolicyStatus">
+ <article id="api-A1PolicyManagement-getPolicyStatus-0" data-group="User" data-name="getPolicyStatus" data-version="0">
+ <div class="pull-left">
+ <h1>getPolicyStatus</h1>
+ <p></p>
+ </div>
+ <div class="pull-right"></div>
+ <div class="clearfix"></div>
+ <p></p>
+ <p class="marked">Query a policy status</p>
+ <p></p>
+ <br />
+ <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies/{policyId}/status</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-getPolicyStatus-0-curl">Curl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-java">Java</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-dart">Dart</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-android">Android</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-groovy">Groovy</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-objc">Obj-C</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-javascript">JavaScript</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-angular">Angular</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-csharp">C#</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-php">PHP</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-perl">Perl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-python">Python</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-rust">Rust</a></li>
+ </ul>
+
+ <div class="tab-content">
+ <div class="tab-pane active" id="examples-A1PolicyManagement-getPolicyStatus-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}/status"
+</code></pre>
+ </div>
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-java">
+ <pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.A1PolicyManagementApi;
+
+import java.io.File;
+import java.util.*;
+
+public class A1PolicyManagementApiExample {
+ public static void main(String[] args) {
+
+ // Create an instance of the API class
+ A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
+ 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 {
+ Object result = apiInstance.getPolicyStatus(policyId, accept);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling A1PolicyManagementApi#getPolicyStatus");
+ e.printStackTrace();
+ }
+ }
+}
+</code></pre>
+ </div>
+
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-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 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.getPolicyStatus(policyId, accept);
+ print(result);
+} catch (e) {
+ print('Exception when calling DefaultApi->getPolicyStatus: $e\n');
+}
+
+</code></pre>
+ </div>
+
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-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 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.getPolicyStatus(policyId, accept);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling A1PolicyManagementApi#getPolicyStatus");
+ e.printStackTrace();
+ }
+ }
+}</code></pre>
+ </div>
+ <!--
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-groovy">
+ <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
+ </div> -->
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-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 *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 getPolicyStatusWith:policyId
+ accept:accept
+ completionHandler: ^(Object output, NSError* error) {
+ if (output) {
+ NSLog(@"%@", output);
+ }
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+}];
+</code></pre>
+ </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');
+
+// Create an instance of the API class
+var api = new A1PolicyManagementApi.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.
+};
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+api.getPolicyStatus(policyId, opts, callback);
+</code></pre>
+ </div>
+
+ <!--<div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-angular">
+ <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
+ </div>-->
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-csharp">
+ <pre class="prettyprint"><code class="language-cs">using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class getPolicyStatusExample
+ {
+ public void main()
+ {
+
+ // Create an instance of the API class
+ var apiInstance = new A1PolicyManagementApi();
+ 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 {
+ Object result = apiInstance.getPolicyStatus(policyId, accept);
+ Debug.WriteLine(result);
+ } catch (Exception e) {
+ Debug.Print("Exception when calling A1PolicyManagementApi.getPolicyStatus: " + e.Message );
+ }
+ }
+ }
+}
+</code></pre>
+ </div>
+
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-php">
+ <pre class="prettyprint"><code class="language-php"><&#63;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 |
+$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->getPolicyStatus($policyId, $accept);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling A1PolicyManagementApi->getPolicyStatus: ', $e->getMessage(), PHP_EOL;
+}
+?></code></pre>
+ </div>
+
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-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 $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->getPolicyStatus(policyId => $policyId, accept => $accept);
+ print Dumper($result);
+};
+if ($@) {
+ warn "Exception when calling A1PolicyManagementApi->getPolicyStatus: $@\n";
+}</code></pre>
+ </div>
+
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-python">
+ <pre class="prettyprint"><code class="language-python">from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.A1PolicyManagementApi()
+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:
+ api_response = api_instance.get_policy_status(policyId, accept=accept)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling A1PolicyManagementApi->getPolicyStatus: %s\n" % e)</code></pre>
+ </div>
+
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-rust">
+ <pre class="prettyprint"><code class="language-rust">extern crate A1PolicyManagementApi;
+
+pub fn main() {
+ let policyId = policyId_example; // String
+ let accept = application/json; // String
+
+ let mut context = A1PolicyManagementApi::Context::default();
+ let result = client.getPolicyStatus(policyId, accept, &context).wait();
+
+ println!("{:?}", result);
+}
+</code></pre>
+ </div>
+ </div>
+
+ <h2>Scopes</h2>
+ <table>
+
+ </table>
+
+ <h2>Parameters</h2>
+
+ <div class="methodsubtabletitle">Path parameters</div>
+ <table id="methodsubtable">
+ <tr>
+ <th width="150px">Name</th>
+ <th>Description</th>
+ </tr>
+ <tr><td style="width:150px;">policyId*</td>
+<td>
+
+
+ <div id="d2e199_getPolicyStatus_policyId">
+ <div class="json-schema-view">
+ <div class="primitive">
+ <span class="type">
+ String
+ </span>
+
+ </div>
+ <div class="inner required">
+ Required
+ </div>
+ </div>
+ </div>
+</td>
+</tr>
+
+ </table>
+
+ <div class="methodsubtabletitle">Header parameters</div>
+ <table id="methodsubtable">
+ <tr>
+ <th width="150px">Name</th>
+ <th>Description</th>
+ </tr>
+ <tr><td style="width:150px;">Accept</td>
+<td>
+
+
+ <div id="d2e199_getPolicyStatus_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>
+ </div>
+</td>
+</tr>
+
+ </table>
+
+
+
+
+ <h2>Responses</h2>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-200"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-description-200" class="marked"></p>
+ <script>
+ var responseA1PolicyManagement200_description = `OK`;
+ var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n');
+ if (responseA1PolicyManagement200_description_break == -1) {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-200" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-200-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-200-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-200-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-200" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "OK",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyStatusObject"
+ }
+ }
+ }
+};
+ 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-A1PolicyManagement-getPolicyStatus-200-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-200');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-200-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-400"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-400" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-400-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-400-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-400-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-400" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "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-A1PolicyManagement-getPolicyStatus-400-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-400');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-400-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-401"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-401" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-401-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-401-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-401-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-401" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "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-A1PolicyManagement-getPolicyStatus-401-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-401');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-401-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-403"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-403" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-403-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-403-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-403-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-403" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "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-A1PolicyManagement-getPolicyStatus-403-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-403');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-403-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-404"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-404" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-404-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-404-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-404-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-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-A1PolicyManagement-getPolicyStatus-404-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-404');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-404-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-406"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-406" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-406-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-406-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-406-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-406" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "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-A1PolicyManagement-getPolicyStatus-406-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-406');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-406-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <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_break = responseA1PolicyManagement429_description.indexOf('\n');
+ if (responseA1PolicyManagement429_description_break == -1) {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-429" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-429-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-429-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-429-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-429" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "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-A1PolicyManagement-getPolicyStatus-429-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-429');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-429-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-500"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-500" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-500-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-500-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-500-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-500" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "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-A1PolicyManagement-getPolicyStatus-500-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-500');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-500-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-502"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-502" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-502-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-502-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-502-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-502" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "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-A1PolicyManagement-getPolicyStatus-502-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-502');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-502-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-503"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-503" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-503-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-503-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-503-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-503" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "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-A1PolicyManagement-getPolicyStatus-503-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-503');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-503-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ </article>
+ </div>
+ <hr>
<div id="api-A1PolicyManagement-getPolicyTypeDefinition">
<article id="api-A1PolicyManagement-getPolicyTypeDefinition-0" data-group="User" data-name="getPolicyTypeDefinition" data-version="0">
<div class="pull-left">
@@ -5846,7 +7458,7 @@ public class A1PolicyManagementApiExample {
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.getPolicyTypeDefinition(policyTypeId, accept);
+ PolicyTypeObject result = apiInstance.getPolicyTypeDefinition(policyTypeId, accept);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling A1PolicyManagementApi#getPolicyTypeDefinition");
@@ -5885,7 +7497,7 @@ public class A1PolicyManagementApiExample {
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.getPolicyTypeDefinition(policyTypeId, accept);
+ PolicyTypeObject result = apiInstance.getPolicyTypeDefinition(policyTypeId, accept);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling A1PolicyManagementApi#getPolicyTypeDefinition");
@@ -5908,7 +7520,7 @@ String *accept = application/json; // Specifies the content type that the client
[apiInstance getPolicyTypeDefinitionWith:policyTypeId
accept:accept
- completionHandler: ^(Object output, NSError* error) {
+ completionHandler: ^(PolicyTypeObject output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -5963,7 +7575,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 {
- Object result = apiInstance.getPolicyTypeDefinition(policyTypeId, accept);
+ PolicyTypeObject result = apiInstance.getPolicyTypeDefinition(policyTypeId, accept);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling A1PolicyManagementApi.getPolicyTypeDefinition: " + e.Message );
@@ -6143,20 +7755,20 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - schema of the given policy type",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/PolicyObject"
- },
- "examples" : {
- "policyObject" : {
- "$ref" : "#/components/examples/PolicyObject"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - schema of the given policy type",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyTypeObject"
+ },
+ "examples" : {
+ "PolicyTypeObject" : {
+ "$ref" : "#/components/examples/PolicyTypeObject"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6224,15 +7836,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6300,15 +7912,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unauthorized",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6376,15 +7988,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Forbidden",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6452,15 +8064,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6528,15 +8140,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Acceptable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6604,15 +8216,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Too Many Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6680,15 +8292,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Internal Server Error",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6756,15 +8368,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Gateway",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6832,15 +8444,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Service Unavailable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7297,18 +8909,23 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Policy Type IDs found Ok",
- "content" : {
- "application/json" : {
- "schema" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/PolicyTypeInformation"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Policy Type IDs found Ok",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/PolicyTypeInformation"
+ }
+ },
+ "examples" : {
+ "PolicyTypeInformation" : {
+ "$ref" : "#/components/examples/PolicyTypeInformation"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7376,15 +8993,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7452,15 +9069,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unauthorized",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7528,15 +9145,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Forbidden",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7604,15 +9221,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7680,15 +9297,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Acceptable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7756,15 +9373,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Too Many Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7832,15 +9449,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Internal Server Error",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7908,15 +9525,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Gateway",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7984,15 +9601,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Service Unavailable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8337,20 +9954,20 @@ pub fn main() {
<p class="marked"></p>
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/PolicyObject"
- },
- "examples" : {
- "policyObject" : {
- "$ref" : "#/components/examples/PolicyObject"
- }
- }
- }
- },
- "required" : true
+ var schemaWrapper = {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyObject"
+ },
+ "examples" : {
+ "policyObject" : {
+ "$ref" : "#/components/examples/PolicyObject"
+ }
+ }
+ }
+ },
+ "required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
@@ -8413,15 +10030,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Policy updated",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/PolicyObject"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Policy updated",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyObject"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8489,15 +10106,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8565,15 +10182,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unauthorized",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8641,15 +10258,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Forbidden",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8717,15 +10334,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8793,15 +10410,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Acceptable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8869,15 +10486,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-411" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Length Required",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Length Required",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8945,15 +10562,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-413" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Payload Too Large",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Payload Too Large",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -9021,15 +10638,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-415" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unsupported Media Type",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unsupported Media Type",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -9097,20 +10714,20 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-423" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Locked - HTTP Status code which can be used when the state is Locked",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ErrorInformation"
- },
- "example" : {
- "status" : 423,
- "title" : "Locked",
- "detail" : "State is Locked in the provided request."
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Locked - HTTP Status code which can be used when the state is Locked",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ErrorInformation"
+ },
+ "example" : {
+ "status" : 423,
+ "title" : "Locked",
+ "detail" : "State is Locked in the provided request."
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -9178,15 +10795,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Too Many Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -9254,15 +10871,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Internal Server Error",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -9330,15 +10947,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Gateway",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -9406,15 +11023,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Service Unavailable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -9734,15 +11351,15 @@ pub fn main() {
<div id="responses-Configuration-getConfiguration-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Application configuration received",
- "content" : {
- "application/json" : {
- "schema" : {
- "type" : "string"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Application configuration received",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "string"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -9810,15 +11427,15 @@ pub fn main() {
<div id="responses-Configuration-getConfiguration-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -10125,15 +11742,15 @@ pub fn main() {
<p class="marked"></p>
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "content" : {
- "application/json" : {
- "schema" : {
- "type" : "object"
- }
- }
- },
- "required" : true
+ var schemaWrapper = {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ },
+ "required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
@@ -10196,15 +11813,15 @@ $(document).ready(function() {
<div id="responses-Configuration-putConfiguration-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Configuration updated",
- "content" : {
- "*/*" : {
- "schema" : {
- "$ref" : "#/components/schemas/void"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Configuration updated",
+ "content" : {
+ "*/*" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/void"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -10272,15 +11889,15 @@ $(document).ready(function() {
<div id="responses-Configuration-putConfiguration-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -10600,20 +12217,20 @@ pub fn main() {
<div id="responses-HealthCheck-getStatus-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK- Service is living Ok",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/StatusInfo"
- },
- "examples" : {
- "status_info" : {
- "$ref" : "#/components/examples/StatusInfo"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK- Service is living Ok",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/StatusInfo"
+ },
+ "examples" : {
+ "status_info" : {
+ "$ref" : "#/components/examples/StatusInfo"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -11045,20 +12662,20 @@ The identity of a Near-RT RIC to get information for.
<div id="responses-NearRTRICRepository-getRic-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Near-RT RIC is found OK",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/RicInfo"
- },
- "examples" : {
- "ric_info" : {
- "$ref" : "#/components/examples/RicInfo"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Near-RT RIC is found OK",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/RicInfo"
+ },
+ "examples" : {
+ "ric_info" : {
+ "$ref" : "#/components/examples/RicInfo"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -11126,15 +12743,15 @@ The identity of a Near-RT RIC to get information for.
<div id="responses-NearRTRICRepository-getRic-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -11532,20 +13149,20 @@ The identity of a policy type. If given, all Near-RT RICs supporting the policy
<div id="responses-NearRTRICRepository-getRics-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/RicInfoList"
- },
- "examples" : {
- "ric_info_list" : {
- "$ref" : "#/components/examples/RicInfoList"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/RicInfoList"
+ },
+ "examples" : {
+ "ric_info_list" : {
+ "$ref" : "#/components/examples/RicInfoList"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -11613,15 +13230,15 @@ The identity of a policy type. If given, all Near-RT RICs supporting the policy
<div id="responses-NearRTRICRepository-getRics-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -12019,15 +13636,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-ServiceRegistryAndSupervision-deleteService-schema-204" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "No Content - Service unregistered",
- "content" : {
- "*/*" : {
- "schema" : {
- "type" : "object"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "No Content - Service unregistered",
+ "content" : {
+ "*/*" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -12095,15 +13712,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-ServiceRegistryAndSupervision-deleteService-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -12501,20 +14118,20 @@ The identity of the service
<div id="responses-ServiceRegistryAndSupervision-getServices-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ServiceStatusList"
- },
- "examples" : {
- "service_status_list" : {
- "$ref" : "#/components/examples/ServiceStatusList"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ServiceStatusList"
+ },
+ "examples" : {
+ "service_status_list" : {
+ "$ref" : "#/components/examples/ServiceStatusList"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -12582,15 +14199,15 @@ The identity of the service
<div id="responses-ServiceRegistryAndSupervision-getServices-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -12978,15 +14595,15 @@ Specifies the content type that the client expects to receive in response to the
<p class="marked"></p>
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "content" : {
- "application/json" : {
- "schema" : {
- "type" : "string"
- }
- }
- },
- "required" : false
+ var schemaWrapper = {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "string"
+ }
+ }
+ },
+ "required" : false
};
var schema = findNode('schema',schemaWrapper).schema;
@@ -13049,15 +14666,15 @@ $(document).ready(function() {
<div id="responses-ServiceRegistryAndSupervision-keepAliveService-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Service supervision timer refreshed, OK",
- "content" : {
- "*/*" : {
- "schema" : {
- "type" : "object"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Service supervision timer refreshed, OK",
+ "content" : {
+ "*/*" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -13125,15 +14742,15 @@ $(document).ready(function() {
<div id="responses-ServiceRegistryAndSupervision-keepAliveService-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -13212,10 +14829,10 @@ $(document).ready(function() {
-H "Accept: */*,application/problem+json" \
-H "Content-Type: application/json" \
"https://example.com/a1-policy-management/v1/services" \
- -d '{
- &quot;keepAliveIntervalSeconds&quot; : 0,
- &quot;callbackUrl&quot; : &quot;callbackUrl&quot;,
- &quot;serviceId&quot; : &quot;serviceId&quot;
+ -d '{
+ &quot;keepAliveIntervalSeconds&quot; : 0,
+ &quot;callbackUrl&quot; : &quot;callbackUrl&quot;,
+ &quot;serviceId&quot; : &quot;serviceId&quot;
}'
</code></pre>
</div>
@@ -13447,15 +15064,15 @@ pub fn main() {
<p class="marked"></p>
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ServiceRegistrationInfo"
- }
- }
- },
- "required" : true
+ var schemaWrapper = {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ServiceRegistrationInfo"
+ }
+ }
+ },
+ "required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
@@ -13518,15 +15135,15 @@ $(document).ready(function() {
<div id="responses-ServiceRegistryAndSupervision-putService-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Service updated",
- "content" : {
- "*/*" : {
- "schema" : {
- "type" : "object"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Service updated",
+ "content" : {
+ "*/*" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -13594,15 +15211,15 @@ $(document).ready(function() {
<div id="responses-ServiceRegistryAndSupervision-putService-schema-201" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Created - Service created",
- "content" : {
- "*/*" : {
- "schema" : {
- "type" : "object"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Created - Service created",
+ "content" : {
+ "*/*" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -13670,15 +15287,15 @@ $(document).ready(function() {
<div id="responses-ServiceRegistryAndSupervision-putService-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
diff --git a/a1-policy-management/api/offeredapis/swagger/a1pms-api-v3.json b/a1-policy-management/api/offeredapis/swagger/a1pms-api-v3.json
index c844073a..d8d3041e 100644
--- a/a1-policy-management/api/offeredapis/swagger/a1pms-api-v3.json
+++ b/a1-policy-management/api/offeredapis/swagger/a1pms-api-v3.json
@@ -241,6 +241,11 @@
"200" : {
"content" : {
"application/json" : {
+ "examples" : {
+ "PolicyTypeInformation" : {
+ "$ref" : "#/components/examples/PolicyTypeInformation"
+ }
+ },
"schema" : {
"items" : {
"$ref" : "#/components/schemas/PolicyTypeInformation"
@@ -375,12 +380,12 @@
"content" : {
"application/json" : {
"examples" : {
- "policyObject" : {
- "$ref" : "#/components/examples/PolicyObject"
+ "PolicyTypeObject" : {
+ "$ref" : "#/components/examples/PolicyTypeObject"
}
},
"schema" : {
- "$ref" : "#/components/schemas/PolicyObject"
+ "$ref" : "#/components/schemas/PolicyTypeObject"
}
}
},
@@ -507,7 +512,7 @@
} ],
"responses" : {
"204" : {
- "description" : "The created A1 policy was deleted"
+ "description" : "The A1 policy was deleted"
},
"400" : {
"content" : {
@@ -549,6 +554,26 @@
},
"description" : "Not Found"
},
+ "405" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Method Not Allowed"
+ },
+ "406" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Not Acceptable"
+ },
"423" : {
"content" : {
"application/problem+json" : {
@@ -919,6 +944,136 @@
"tags" : [ "A1 Policy Management" ]
}
},
+ "/policies/{policyId}/status" : {
+ "get" : {
+ "description" : "Query a policy status",
+ "operationId" : "getPolicyStatus",
+ "parameters" : [ {
+ "explode" : false,
+ "in" : "path",
+ "name" : "policyId",
+ "required" : true,
+ "schema" : {
+ "type" : "string"
+ },
+ "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,
+ "in" : "header",
+ "name" : "Accept",
+ "required" : false,
+ "schema" : {
+ "example" : "application/json",
+ "type" : "string"
+ },
+ "style" : "simple"
+ } ],
+ "responses" : {
+ "200" : {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyStatusObject"
+ }
+ }
+ },
+ "description" : "OK"
+ },
+ "400" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Bad Request"
+ },
+ "401" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Unauthorized"
+ },
+ "403" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Forbidden"
+ },
+ "404" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Not Found"
+ },
+ "406" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Not Acceptable"
+ },
+ "429" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Too Many Request"
+ },
+ "500" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Internal Server Error"
+ },
+ "502" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Bad Gateway"
+ },
+ "503" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Service Unavailable"
+ }
+ },
+ "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.",
@@ -1158,6 +1313,16 @@
},
"description" : "Not Found"
},
+ "405" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Method Not Allowed"
+ },
"406" : {
"content" : {
"application/problem+json" : {
@@ -1168,6 +1333,36 @@
},
"description" : "Not Acceptable"
},
+ "409" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Conflict"
+ },
+ "413" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Payload Too Large"
+ },
+ "415" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Unsupported Media Type"
+ },
"423" : {
"content" : {
"application/problem+json" : {
@@ -1652,6 +1847,56 @@
"pdb" : 50
}
}
+ },
+ "PolicyTypeInformation" : {
+ "value" : [ {
+ "policyTypeId" : "STD_QOS2_0.1.0",
+ "nearRtRicId" : "ricsim_g3_2"
+ }, {
+ "policyTypeId" : "STD_QOS_0_2_0",
+ "nearRtRicId" : "ricsim_g3_2"
+ }, {
+ "policyTypeId" : "STD_QOS2_0.1.0",
+ "nearRtRicId" : "ricsim_g3_1"
+ }, {
+ "policyTypeId" : "STD_QOS_0_2_0",
+ "nearRtRicId" : "ricsim_g3_1"
+ } ]
+ },
+ "PolicyTypeObject" : {
+ "value" : {
+ "policySchema" : {
+ "$schema" : "http://json-schema.org/draft-07/schema#",
+ "title" : "STD_QOS_0_2_0",
+ "description" : "STD QOS2 policy type",
+ "type" : "object",
+ "properties" : {
+ "scope" : {
+ "type" : "object",
+ "properties" : {
+ "ueId" : {
+ "type" : "string"
+ },
+ "qosId" : {
+ "type" : "string"
+ }
+ },
+ "additionalProperties" : false,
+ "required" : [ "ueId", "qosId" ]
+ },
+ "qosObjectives" : {
+ "type" : "object",
+ "properties" : {
+ "priorityLevel" : {
+ "type" : "number"
+ }
+ },
+ "additionalProperties" : false,
+ "required" : [ "priorityLevel" ]
+ }
+ }
+ }
+ }
}
},
"responses" : {
@@ -1814,6 +2059,10 @@
"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",
+ "example" : {
+ "policyTypeId" : "STD_QOS2_0.1.0",
+ "nearRtRicId" : "ricsim_g3_2"
+ },
"properties" : {
"policyTypeId" : {
"description" : "Identity of the policy type",
@@ -1888,6 +2137,80 @@
"description" : "Policy Object is a JSON representation of an A1 policy",
"type" : "object"
},
+ "PolicyTypeObject" : {
+ "description" : "policy type object as defined in A1TD",
+ "example" : {
+ "policySchema" : {
+ "$schema" : "http://json-schema.org/draft-07/schema#",
+ "title" : "STD_QOS_0_2_0",
+ "description" : "STD QOS policy type",
+ "type" : "object",
+ "properties" : {
+ "scope" : {
+ "type" : "object",
+ "properties" : {
+ "ueId" : {
+ "type" : "string"
+ },
+ "qosId" : {
+ "type" : "string"
+ }
+ },
+ "additionalProperties" : false,
+ "required" : [ "ueId", "qosId" ]
+ },
+ "qosObjectives" : {
+ "type" : "object",
+ "properties" : {
+ "priorityLevel" : {
+ "type" : "number"
+ }
+ },
+ "additionalProperties" : false,
+ "required" : [ "priorityLevel" ]
+ }
+ }
+ },
+ "statusSchema" : {
+ "$schema" : "http://json-schema.org/draft-07/schema#",
+ "title" : "STD_QOS_0.2.0",
+ "description" : "STD QOS policy type status",
+ "type" : "object",
+ "properties" : {
+ "enforceStatus" : {
+ "type" : "string"
+ },
+ "enforceReason" : {
+ "type" : "string"
+ },
+ "additionalProperties" : false,
+ "required" : [ "enforceStatus" ]
+ }
+ }
+ },
+ "properties" : {
+ "policySchema" : {
+ "$ref" : "#/components/schemas/PolicySchema"
+ },
+ "statusSchema" : {
+ "$ref" : "#/components/schemas/StatusSchema"
+ }
+ },
+ "required" : [ "policySchema" ],
+ "type" : "object"
+ },
+ "PolicySchema" : {
+ "description" : "The schemas are policy type specific",
+ "type" : "object"
+ },
+ "StatusSchema" : {
+ "description" : "The optional schema for policy status",
+ "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.",
+ "type" : "object"
+ },
"void" : {
"description" : "Void/empty",
"type" : "object"
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 c844073a..d8d3041e 100644
--- a/a1-policy-management/api/offeredapis/swagger/pms-api-v3.json
+++ b/a1-policy-management/api/offeredapis/swagger/pms-api-v3.json
@@ -241,6 +241,11 @@
"200" : {
"content" : {
"application/json" : {
+ "examples" : {
+ "PolicyTypeInformation" : {
+ "$ref" : "#/components/examples/PolicyTypeInformation"
+ }
+ },
"schema" : {
"items" : {
"$ref" : "#/components/schemas/PolicyTypeInformation"
@@ -375,12 +380,12 @@
"content" : {
"application/json" : {
"examples" : {
- "policyObject" : {
- "$ref" : "#/components/examples/PolicyObject"
+ "PolicyTypeObject" : {
+ "$ref" : "#/components/examples/PolicyTypeObject"
}
},
"schema" : {
- "$ref" : "#/components/schemas/PolicyObject"
+ "$ref" : "#/components/schemas/PolicyTypeObject"
}
}
},
@@ -507,7 +512,7 @@
} ],
"responses" : {
"204" : {
- "description" : "The created A1 policy was deleted"
+ "description" : "The A1 policy was deleted"
},
"400" : {
"content" : {
@@ -549,6 +554,26 @@
},
"description" : "Not Found"
},
+ "405" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Method Not Allowed"
+ },
+ "406" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Not Acceptable"
+ },
"423" : {
"content" : {
"application/problem+json" : {
@@ -919,6 +944,136 @@
"tags" : [ "A1 Policy Management" ]
}
},
+ "/policies/{policyId}/status" : {
+ "get" : {
+ "description" : "Query a policy status",
+ "operationId" : "getPolicyStatus",
+ "parameters" : [ {
+ "explode" : false,
+ "in" : "path",
+ "name" : "policyId",
+ "required" : true,
+ "schema" : {
+ "type" : "string"
+ },
+ "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,
+ "in" : "header",
+ "name" : "Accept",
+ "required" : false,
+ "schema" : {
+ "example" : "application/json",
+ "type" : "string"
+ },
+ "style" : "simple"
+ } ],
+ "responses" : {
+ "200" : {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyStatusObject"
+ }
+ }
+ },
+ "description" : "OK"
+ },
+ "400" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Bad Request"
+ },
+ "401" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Unauthorized"
+ },
+ "403" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Forbidden"
+ },
+ "404" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Not Found"
+ },
+ "406" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Not Acceptable"
+ },
+ "429" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Too Many Request"
+ },
+ "500" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Internal Server Error"
+ },
+ "502" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Bad Gateway"
+ },
+ "503" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Service Unavailable"
+ }
+ },
+ "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.",
@@ -1158,6 +1313,16 @@
},
"description" : "Not Found"
},
+ "405" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Method Not Allowed"
+ },
"406" : {
"content" : {
"application/problem+json" : {
@@ -1168,6 +1333,36 @@
},
"description" : "Not Acceptable"
},
+ "409" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Conflict"
+ },
+ "413" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Payload Too Large"
+ },
+ "415" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Unsupported Media Type"
+ },
"423" : {
"content" : {
"application/problem+json" : {
@@ -1652,6 +1847,56 @@
"pdb" : 50
}
}
+ },
+ "PolicyTypeInformation" : {
+ "value" : [ {
+ "policyTypeId" : "STD_QOS2_0.1.0",
+ "nearRtRicId" : "ricsim_g3_2"
+ }, {
+ "policyTypeId" : "STD_QOS_0_2_0",
+ "nearRtRicId" : "ricsim_g3_2"
+ }, {
+ "policyTypeId" : "STD_QOS2_0.1.0",
+ "nearRtRicId" : "ricsim_g3_1"
+ }, {
+ "policyTypeId" : "STD_QOS_0_2_0",
+ "nearRtRicId" : "ricsim_g3_1"
+ } ]
+ },
+ "PolicyTypeObject" : {
+ "value" : {
+ "policySchema" : {
+ "$schema" : "http://json-schema.org/draft-07/schema#",
+ "title" : "STD_QOS_0_2_0",
+ "description" : "STD QOS2 policy type",
+ "type" : "object",
+ "properties" : {
+ "scope" : {
+ "type" : "object",
+ "properties" : {
+ "ueId" : {
+ "type" : "string"
+ },
+ "qosId" : {
+ "type" : "string"
+ }
+ },
+ "additionalProperties" : false,
+ "required" : [ "ueId", "qosId" ]
+ },
+ "qosObjectives" : {
+ "type" : "object",
+ "properties" : {
+ "priorityLevel" : {
+ "type" : "number"
+ }
+ },
+ "additionalProperties" : false,
+ "required" : [ "priorityLevel" ]
+ }
+ }
+ }
+ }
}
},
"responses" : {
@@ -1814,6 +2059,10 @@
"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",
+ "example" : {
+ "policyTypeId" : "STD_QOS2_0.1.0",
+ "nearRtRicId" : "ricsim_g3_2"
+ },
"properties" : {
"policyTypeId" : {
"description" : "Identity of the policy type",
@@ -1888,6 +2137,80 @@
"description" : "Policy Object is a JSON representation of an A1 policy",
"type" : "object"
},
+ "PolicyTypeObject" : {
+ "description" : "policy type object as defined in A1TD",
+ "example" : {
+ "policySchema" : {
+ "$schema" : "http://json-schema.org/draft-07/schema#",
+ "title" : "STD_QOS_0_2_0",
+ "description" : "STD QOS policy type",
+ "type" : "object",
+ "properties" : {
+ "scope" : {
+ "type" : "object",
+ "properties" : {
+ "ueId" : {
+ "type" : "string"
+ },
+ "qosId" : {
+ "type" : "string"
+ }
+ },
+ "additionalProperties" : false,
+ "required" : [ "ueId", "qosId" ]
+ },
+ "qosObjectives" : {
+ "type" : "object",
+ "properties" : {
+ "priorityLevel" : {
+ "type" : "number"
+ }
+ },
+ "additionalProperties" : false,
+ "required" : [ "priorityLevel" ]
+ }
+ }
+ },
+ "statusSchema" : {
+ "$schema" : "http://json-schema.org/draft-07/schema#",
+ "title" : "STD_QOS_0.2.0",
+ "description" : "STD QOS policy type status",
+ "type" : "object",
+ "properties" : {
+ "enforceStatus" : {
+ "type" : "string"
+ },
+ "enforceReason" : {
+ "type" : "string"
+ },
+ "additionalProperties" : false,
+ "required" : [ "enforceStatus" ]
+ }
+ }
+ },
+ "properties" : {
+ "policySchema" : {
+ "$ref" : "#/components/schemas/PolicySchema"
+ },
+ "statusSchema" : {
+ "$ref" : "#/components/schemas/StatusSchema"
+ }
+ },
+ "required" : [ "policySchema" ],
+ "type" : "object"
+ },
+ "PolicySchema" : {
+ "description" : "The schemas are policy type specific",
+ "type" : "object"
+ },
+ "StatusSchema" : {
+ "description" : "The optional schema for policy status",
+ "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.",
+ "type" : "object"
+ },
"void" : {
"description" : "Void/empty",
"type" : "object"
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 46f881e5..8bcfdf4b 100644
--- a/a1-policy-management/api/offeredapis/swagger/pms-api-v3.yaml
+++ b/a1-policy-management/api/offeredapis/swagger/pms-api-v3.yaml
@@ -215,7 +215,9 @@ paths:
items:
$ref: '#/components/schemas/PolicyTypeInformation'
type: array
-
+ examples:
+ PolicyTypeInformation:
+ $ref: '#/components/examples/PolicyTypeInformation'
description: OK - Policy Type IDs found Ok
'400':
$ref: '#/components/responses/400'
@@ -261,10 +263,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PolicyObject'
+ $ref: '#/components/schemas/PolicyTypeObject'
examples:
- policyObject:
- $ref: '#/components/examples/PolicyObject'
+ PolicyTypeObject:
+ $ref: '#/components/examples/PolicyTypeObject'
description: OK - schema of the given policy type
'400':
$ref: '#/components/responses/400'
@@ -361,7 +363,7 @@ paths:
example: application/json
responses:
'204':
- description: 'The created A1 policy was deleted'
+ description: 'The A1 policy was deleted'
'400':
$ref: '#/components/responses/400'
'401':
@@ -370,6 +372,10 @@ paths:
$ref: '#/components/responses/403'
'404':
$ref: '#/components/responses/404'
+ '405':
+ $ref: '#/components/responses/405'
+ '406':
+ $ref: '#/components/responses/406'
'423':
$ref: '#/components/responses/Locked'
'429':
@@ -431,6 +437,53 @@ paths:
description: Returns a policy
tags:
- A1 Policy Management
+ /policies/{policyId}/status:
+ get:
+ operationId: getPolicyStatus
+ parameters:
+ - explode: false
+ in: path
+ name: policyId
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: Specifies the content type that the client expects to receive in response to the request.
+ Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ type: string
+ example: application/json
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PolicyStatusObject'
+ description: OK
+ '400':
+ $ref: '#/components/responses/400'
+ '401':
+ $ref: '#/components/responses/401'
+ '403':
+ $ref: '#/components/responses/403'
+ '404':
+ $ref: '#/components/responses/404'
+ '406':
+ $ref: '#/components/responses/406'
+ '429':
+ $ref: '#/components/responses/429'
+ '500':
+ $ref: '#/components/responses/500'
+ '502':
+ $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.\
@@ -537,8 +590,16 @@ paths:
$ref: '#/components/responses/403'
'404':
$ref: '#/components/responses/404'
+ '405':
+ $ref: '#/components/responses/405'
'406':
$ref: '#/components/responses/406'
+ '409':
+ $ref: '#/components/responses/409'
+ '413':
+ $ref: '#/components/responses/413'
+ '415':
+ $ref: '#/components/responses/415'
'423':
$ref: '#/components/responses/Locked'
'429':
@@ -831,6 +892,43 @@ components:
mfbr: 200
priorityLevel: 3
pdb: 50
+ PolicyTypeInformation:
+ value:
+ - policyTypeId: STD_QOS2_0.1.0
+ nearRtRicId: ricsim_g3_2
+ - policyTypeId: STD_QOS_0_2_0
+ nearRtRicId: ricsim_g3_2
+ - policyTypeId: STD_QOS2_0.1.0
+ nearRtRicId: ricsim_g3_1
+ - policyTypeId: STD_QOS_0_2_0
+ nearRtRicId: ricsim_g3_1
+ PolicyTypeObject:
+ value:
+ policySchema:
+ "$schema": http://json-schema.org/draft-07/schema#
+ title: STD_QOS_0_2_0
+ description: STD QOS2 policy type
+ type: object
+ properties:
+ scope:
+ type: object
+ properties:
+ ueId:
+ type: string
+ qosId:
+ type: string
+ additionalProperties: false
+ required:
+ - ueId
+ - qosId
+ qosObjectives:
+ type: object
+ properties:
+ priorityLevel:
+ type: number
+ additionalProperties: false
+ required:
+ - priorityLevel
schemas:
PolicyTypeInformation:
description: >-
@@ -847,6 +945,9 @@ components:
required:
- policyTypeId
- nearRtRicId
+ example:
+ policyTypeId: STD_QOS2_0.1.0
+ nearRtRicId: ricsim_g3_2
PolicyObjectInformation:
description: Information related to the creation of the policy
type: object
@@ -907,6 +1008,64 @@ components:
PolicyObject:
description: 'Policy Object is a JSON representation of an A1 policy'
type: object
+ PolicyTypeObject:
+ description: 'policy type object as defined in A1TD'
+ type: object
+ properties:
+ policySchema:
+ $ref: '#/components/schemas/PolicySchema'
+ statusSchema:
+ $ref: '#/components/schemas/StatusSchema'
+ required:
+ - "policySchema"
+ example:
+ policySchema:
+ "$schema": http://json-schema.org/draft-07/schema#
+ title: STD_QOS_0_2_0
+ description: STD QOS policy type
+ type: object
+ properties:
+ scope:
+ type: object
+ properties:
+ ueId:
+ type: string
+ qosId:
+ type: string
+ additionalProperties: false
+ required:
+ - ueId
+ - qosId
+ qosObjectives:
+ type: object
+ properties:
+ priorityLevel:
+ type: number
+ additionalProperties: false
+ required:
+ - priorityLevel
+ statusSchema:
+ "$schema": http://json-schema.org/draft-07/schema#
+ title: STD_QOS_0.2.0
+ description: STD QOS policy type status
+ type: object
+ properties:
+ enforceStatus:
+ type: string
+ enforceReason:
+ type: string
+ additionalProperties: false
+ required:
+ - enforceStatus
+ PolicySchema:
+ description: 'The schemas are policy type specific'
+ type: object
+ StatusSchema:
+ description: 'The optional schema for policy status'
+ 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.'
+ type: object
void:
description: Void/empty
type: object
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 1ff85773..5034f84f 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
@@ -2,7 +2,7 @@
* ========================LICENSE_START=================================
* ONAP : ccsdk oran
* ======================================================================
- * 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.
@@ -28,6 +28,7 @@ import org.onap.ccsdk.oran.a1policymanagementservice.controllers.v2.PolicyContro
import org.onap.ccsdk.oran.a1policymanagementservice.models.v3.PolicyInformation;
import org.onap.ccsdk.oran.a1policymanagementservice.models.v3.PolicyObjectInformation;
import org.onap.ccsdk.oran.a1policymanagementservice.models.v3.PolicyTypeInformation;
+import org.onap.ccsdk.oran.a1policymanagementservice.models.v3.PolicyTypeObject;
import org.onap.ccsdk.oran.a1policymanagementservice.service.v3.ErrorHandlingService;
import org.onap.ccsdk.oran.a1policymanagementservice.service.v3.PolicyService;
import org.springframework.http.ResponseEntity;
@@ -75,7 +76,7 @@ public class PolicyControllerV3 implements A1PolicyManagementApi {
}
@Override
- public Mono<ResponseEntity<Object>> getPolicyTypeDefinition(String policyTypeId, String accept, ServerWebExchange exchange) throws Exception {
+ public Mono<ResponseEntity<PolicyTypeObject>> getPolicyTypeDefinition(String policyTypeId, String accept, ServerWebExchange exchange) throws Exception {
return policyService.getPolicyTypeDefinitionService(policyTypeId)
.doOnError(errorHandlingService::handleError);
}
@@ -91,4 +92,10 @@ public class PolicyControllerV3 implements A1PolicyManagementApi {
return body.flatMap(payload -> policyService.putPolicyService(policyId, payload, exchange))
.doOnError(errorHandlingService::handleError);
}
+
+ @Override
+ public Mono<ResponseEntity<Object>> getPolicyStatus(String policyId, String accept, ServerWebExchange exchange) throws Exception {
+ return policyService.getPolicyStatus(policyId, exchange)
+ .doOnError(errorHandlingService::handleError);
+ }
}
diff --git a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/service/v3/PolicyService.java b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/service/v3/PolicyService.java
index 6d59d386..d5432873 100644
--- a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/service/v3/PolicyService.java
+++ b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/service/v3/PolicyService.java
@@ -2,7 +2,7 @@
* ========================LICENSE_START=================================
* ONAP : ccsdk oran
* ======================================================================
- * 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.
@@ -21,6 +21,7 @@
package org.onap.ccsdk.oran.a1policymanagementservice.service.v3;
import com.google.gson.Gson;
+import com.google.gson.JsonSyntaxException;
import lombok.RequiredArgsConstructor;
import org.onap.ccsdk.oran.a1policymanagementservice.clients.A1ClientFactory;
import org.onap.ccsdk.oran.a1policymanagementservice.controllers.authorization.PolicyAuthorizationRequest.Input.AccessType;
@@ -30,6 +31,7 @@ import org.onap.ccsdk.oran.a1policymanagementservice.exceptions.ServiceException
import org.onap.ccsdk.oran.a1policymanagementservice.models.v3.PolicyInformation;
import org.onap.ccsdk.oran.a1policymanagementservice.models.v3.PolicyObjectInformation;
import org.onap.ccsdk.oran.a1policymanagementservice.models.v3.PolicyTypeInformation;
+import org.onap.ccsdk.oran.a1policymanagementservice.models.v3.PolicyTypeObject;
import org.onap.ccsdk.oran.a1policymanagementservice.repository.*;
import org.onap.ccsdk.oran.a1policymanagementservice.util.v3.Helper;
import org.slf4j.Logger;
@@ -166,12 +168,20 @@ public class PolicyService {
.doOnError(errorHandlingService::handleError);
}
- public Mono<ResponseEntity<Object>> getPolicyTypeDefinitionService(String policyTypeId)
+ public Mono<ResponseEntity<PolicyTypeObject>> getPolicyTypeDefinitionService(String policyTypeId)
throws EntityNotFoundException{
PolicyType singlePolicyType = policyTypes.get(policyTypeId);
if (singlePolicyType == null)
throw new EntityNotFoundException("PolicyType not found with ID: " + policyTypeId);
- return Mono.just(new ResponseEntity<Object>(singlePolicyType.getSchema(), HttpStatus.OK));
+
+ PolicyTypeObject policyTypeObject = new PolicyTypeObject();
+ try {
+ policyTypeObject.setPolicySchema(gson.fromJson(singlePolicyType.getSchema(), Object.class));
+ } catch (JsonSyntaxException e) {
+ throw new RuntimeException("Failed to deserialize policy schema", e);
+ }
+
+ return Mono.just(new ResponseEntity<PolicyTypeObject>(policyTypeObject, HttpStatus.OK));
}
public Mono<ResponseEntity<Void>> deletePolicyService(String policyId, ServerWebExchange serverWebExchange)
@@ -198,4 +208,27 @@ public class PolicyService {
.map(successResponse -> new ResponseEntity<Void>(HttpStatus.NO_CONTENT))
.doOnError(errorHandlingService::handleError);
}
+
+ private Mono<String> getStatus(Policy policy, Lock.Grant grant) {
+ return helper.checkRicStateIdle(policy.getRic())
+ .doOnError(errorHandlingService::handleError)
+ .flatMap(a1ClientFactory::createA1Client)
+ .flatMap(a1Client -> a1Client.getPolicyStatus(policy))
+ .doOnError(errorHandlingService::handleError)
+ .doFinally(releaseLock -> grant.unlockBlocking())
+ .doOnError(errorHandlingService::handleError);
+ }
+
+ public Mono<ResponseEntity<Object>> getPolicyStatus(String policyId, ServerWebExchange exchange) throws Exception {
+ Policy policy = policies.getPolicy(policyId);
+
+ return authorizationService.authCheck(exchange, policy, AccessType.READ)
+ .doOnError(errorHandlingService::handleError)
+ .flatMap(policyLock -> policy.getRic().getLock().lock(Lock.LockType.SHARED, "getStatus"))
+ .doOnError(errorHandlingService::handleError)
+ .flatMap(grant -> getStatus(policy, grant))
+ .doOnError(errorHandlingService::handleError)
+ .map(successResponse -> new ResponseEntity<Object>(successResponse, HttpStatus.OK))
+ .doOnError(errorHandlingService::handleError);
+ }
}
diff --git a/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v3/PolicyControllerV3Test.java b/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v3/PolicyControllerV3Test.java
index 6c597856..97695bc9 100644
--- a/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v3/PolicyControllerV3Test.java
+++ b/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v3/PolicyControllerV3Test.java
@@ -2,7 +2,7 @@
* ========================LICENSE_START=================================
* ONAP : ccsdk oran
* ======================================================================
- * 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.
@@ -20,7 +20,6 @@
package org.onap.ccsdk.oran.a1policymanagementservice.controllers.v3;
-import com.google.gson.Gson;
import org.junit.jupiter.api.*;
import org.onap.ccsdk.oran.a1policymanagementservice.clients.SecurityContext;
import org.onap.ccsdk.oran.a1policymanagementservice.config.TestConfig;
@@ -38,12 +37,12 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
-import org.springframework.boot.test.mock.mockito.SpyBean;
import org.springframework.boot.test.web.server.LocalServerPort;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.TestPropertySource;
+import org.springframework.test.context.bean.override.mockito.MockitoSpyBean;
import org.springframework.util.FileSystemUtils;
import reactor.core.publisher.Mono;
@@ -98,13 +97,10 @@ class PolicyControllerV3Test {
@Autowired
private OpenPolicyAgentSimulatorController openPolicyAgentSimulatorController;
- @Autowired
- private Gson gson;
-
@LocalServerPort
private int port;
- @SpyBean
+ @MockitoSpyBean
private Helper helper;
@BeforeEach
@@ -313,4 +309,19 @@ class PolicyControllerV3Test {
testHelperTest.testSuccessResponse(responseMonoGet, HttpStatus.OK, responseBody ->
responseBody.contains("{\"scope\":{\"ueId\":\"ue5200\",\"qosId\":\"qos5200\"},\"qosObjectives\":{\"priorityLevel\":5200.0}"));
}
-} \ No newline at end of file
+
+ @Test
+ @DisplayName("test get Policy Status")
+ void testGetPolicyStatus() throws Exception {
+ String nonRtRicId = "ric.1";
+ String policyTypeName = "type1_1.2.3";
+ String url = "/policies";
+ String policyId = "policyOne";
+ testHelperTest.addPolicyType(policyTypeName, nonRtRicId);
+ String policyBodyForPost = testHelperTest.postPolicyBody(nonRtRicId, policyTypeName, policyId);
+ testHelperTest.restClientV3().postForEntity(url, policyBodyForPost).block();
+ Mono<ResponseEntity<String>> responseMonoGet = testHelperTest.restClientV3().getForEntity(url+"/"+ policyId +"/status");
+ testHelperTest.testSuccessResponse(responseMonoGet, HttpStatus.OK, responseBody ->
+ responseBody.contains("OK"));
+ }
+}
diff --git a/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/service/v3/PolicyServiceTest.java b/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/service/v3/PolicyServiceTest.java
index 95c77a08..02667718 100644
--- a/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/service/v3/PolicyServiceTest.java
+++ b/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/service/v3/PolicyServiceTest.java
@@ -2,7 +2,7 @@
* ========================LICENSE_START=================================
* ONAP : ccsdk oran
* ======================================================================
- * 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.
@@ -32,22 +32,22 @@ import org.onap.ccsdk.oran.a1policymanagementservice.exceptions.ServiceException
import org.onap.ccsdk.oran.a1policymanagementservice.models.v3.PolicyInformation;
import org.onap.ccsdk.oran.a1policymanagementservice.models.v3.PolicyObjectInformation;
import org.onap.ccsdk.oran.a1policymanagementservice.models.v3.PolicyTypeInformation;
+import org.onap.ccsdk.oran.a1policymanagementservice.models.v3.PolicyTypeObject;
import org.onap.ccsdk.oran.a1policymanagementservice.repository.Policies;
import org.onap.ccsdk.oran.a1policymanagementservice.repository.Policy;
import org.onap.ccsdk.oran.a1policymanagementservice.repository.PolicyType;
import org.onap.ccsdk.oran.a1policymanagementservice.repository.Rics;
import org.onap.ccsdk.oran.a1policymanagementservice.util.v3.Helper;
-import org.onap.ccsdk.oran.a1policymanagementservice.utils.MockA1ClientFactory;
import org.onap.ccsdk.oran.a1policymanagementservice.utils.v3.TestHelperTest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
-import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.TestPropertySource;
+import org.springframework.test.context.bean.override.mockito.MockitoBean;
import org.springframework.util.FileSystemUtils;
import org.springframework.web.server.ServerWebExchange;
import org.springframework.web.server.adapter.DefaultServerWebExchange;
@@ -88,16 +88,13 @@ class PolicyServiceTest {
@Autowired
private TestHelperTest testHelperTest;
- @MockBean
+ @MockitoBean
private Helper helper;
- @MockBean
+ @MockitoBean
private AuthorizationService authorizationService;
@Autowired
- private MockA1ClientFactory a1ClientFactory;
-
- @Autowired
private Gson gson;
@AfterEach
@@ -316,11 +313,14 @@ class PolicyServiceTest {
String policyTypeName = "uri_type_123";
String nonRtRicId = "Ric_347";
PolicyType addedPolicyType = testHelperTest.addPolicyType(policyTypeName, nonRtRicId);
- Mono<ResponseEntity<Object>> responseEntityMono = policyService.getPolicyTypeDefinitionService(policyTypeName);
+ Mono<ResponseEntity<PolicyTypeObject>> responseEntityMono = policyService.getPolicyTypeDefinitionService(policyTypeName);
testHelperTest.testSuccessResponse(responseEntityMono, HttpStatus.OK, responseBody -> {
- if (responseBody instanceof String returnPolicyType)
- return returnPolicyType.contains(addedPolicyType.getSchema());
- return false;
+ try {
+ Object expectedSchema = gson.fromJson(addedPolicyType.getSchema(), Object.class);
+ return responseBody.getPolicySchema().equals(expectedSchema);
+ } catch (Exception e) {
+ return false;
+ }
});
}
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 db610793..2defcfbe 100644
--- a/docs/offeredapis/openapitoolgen/offeredapis/pms-api/v3/custom/index.html
+++ b/docs/offeredapis/openapitoolgen/offeredapis/pms-api/v3/custom/index.html
@@ -844,315 +844,381 @@ 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["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.",
- "example" : "Policy type not found"
- },
- "title" : {
- "type" : "string",
- "description" : "A specific error name",
- "example" : "Not Found"
- },
- "status" : {
- "type" : "integer",
- "description" : "The HTTP status code generated by the origin server for this occurrence of the problem. ",
- "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["ErrorInformation"] = {
+ "type" : "object",
+ "properties" : {
+ "detail" : {
+ "type" : "string",
+ "description" : " A human-readable explanation specific to this occurrence of the problem.",
+ "example" : "Policy type not found"
+ },
+ "title" : {
+ "type" : "string",
+ "description" : "A specific error name",
+ "example" : "Not Found"
+ },
+ "status" : {
+ "type" : "integer",
+ "description" : "The HTTP status code generated by the origin server for this occurrence of the problem. ",
+ "format" : "int32",
+ "example" : 404
+ }
+ },
+ "description" : "Problem as defined in https://tools.ietf.org/html/rfc7807"
};
- 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"
- },
- "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"
-};
- defs["PolicyObjectInformation"] = {
- "required" : [ "nearRtRicId", "policyObject", "policyTypeId" ],
- "type" : "object",
- "properties" : {
- "nearRtRicId" : {
- "type" : "string",
- "description" : "identity of the target Near-RT RIC",
- "example" : "Near-RT-Ric-ID"
- },
- "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.",
- "nullable" : false,
- "default" : false
- },
- "policyId" : {
- "type" : "string",
- "description" : "identity of the Policy",
- "example" : "POLICY-ID"
- },
- "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"
- },
- "policyObject" : {
- "$ref" : "#/components/schemas/PolicyObject"
- },
- "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" : "Status for one A1-P Policy"
-};
- defs["PolicyTypeInformation"] = {
- "required" : [ "nearRtRicId", "policyTypeId" ],
- "type" : "object",
- "properties" : {
- "policyTypeId" : {
- "type" : "string",
- "description" : "Identity of the policy type"
- },
- "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"
-};
- defs["ProblemDetails"] = {
- "type" : "object",
- "properties" : {
- "type" : {
- "type" : "string",
- "description" : "a URI reference according to IETF RFC 3986 that identifies the problem type"
- },
- "title" : {
- "type" : "string",
- "description" : "human-readable summary of the problem type"
- },
- "status" : {
- "type" : "number",
- "description" : "the HTTP status code"
- },
- "detail" : {
- "type" : "string",
- "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"
-};
- defs["RicInfo"] = {
- "type" : "object",
- "properties" : {
- "ricId" : {
- "type" : "string",
- "description" : "identity of the Near-RT RIC"
- },
- "managedElementIds" : {
- "type" : "array",
- "description" : "O1 identities for managed entities",
- "items" : {
- "type" : "string",
- "description" : "O1 identities for managed entities"
- }
- },
- "state" : {
- "type" : "string",
- "description" : "Represents the states for a Near-RT RIC",
- "enum" : [ "UNAVAILABLE", "AVAILABLE", "SYNCHRONIZING", "CONSISTENCY_CHECK" ]
- },
- "policyTypeIds" : {
- "type" : "array",
- "description" : "supported policy types",
- "items" : {
- "type" : "string",
- "description" : "supported policy types"
- }
- }
- },
- "description" : "Information for a Near-RT RIC"
-};
- defs["RicInfoList"] = {
- "type" : "object",
- "properties" : {
- "rics" : {
- "type" : "array",
- "description" : "List of Near-RT RIC information",
- "items" : {
- "$ref" : "#/components/schemas/RicInfo"
- }
- }
- },
- "description" : "List of Near-RT RIC information"
-};
- defs["ServiceCallbackInfo"] = {
- "required" : [ "eventType", "ricId" ],
- "type" : "object",
- "properties" : {
- "ricId" : {
- "type" : "string",
- "description" : "identity of a Near-RT RIC"
- },
- "eventType" : {
- "type" : "string",
- "description" : "values:\nAVAILABLE: the Near-RT RIC has become available for A1 Policy management",
- "enum" : [ "AVAILABLE" ]
- }
- },
- "description" : "Information transferred as in Service callbacks (callback_url)"
-};
- defs["ServiceRegistrationInfo"] = {
- "required" : [ "serviceId" ],
- "type" : "object",
- "properties" : {
- "callbackUrl" : {
- "type" : "string",
- "description" : "callback for notifying of Near-RT RIC state changes"
- },
- "serviceId" : {
- "type" : "string",
- "description" : "identity of the service"
- },
- "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.",
- "format" : "int64"
- }
- },
- "description" : "Information for one service"
-};
- defs["ServiceStatus"] = {
- "type" : "object",
- "properties" : {
- "callbackUrl" : {
- "type" : "string",
- "description" : "callback for notifying of RIC synchronization"
- },
- "serviceId" : {
- "type" : "string",
- "description" : "identity of the service"
- },
- "keepAliveIntervalSeconds" : {
- "type" : "integer",
- "description" : "policy keep alive timeout",
- "format" : "int64"
- },
- "timeSinceLastActivitySeconds" : {
- "type" : "integer",
- "description" : "time since last invocation by the service",
- "format" : "int64"
- }
- }
+ 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["ServiceStatusList"] = {
- "type" : "object",
- "properties" : {
- "serviceList" : {
- "type" : "array",
- "description" : "List of service information",
- "items" : {
- "$ref" : "#/components/schemas/ServiceStatus"
- }
- }
- }
+ defs["Link"] = {
+ "type" : "object",
+ "properties" : {
+ "templated" : {
+ "type" : "boolean"
+ },
+ "href" : {
+ "type" : "string"
+ }
+ }
};
- defs["StatusInfo"] = {
- "type" : "object",
- "properties" : {
- "status" : {
- "type" : "string",
- "description" : "status text"
- }
- }
+ 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"
+ },
+ "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"
+};
+ defs["PolicyObjectInformation"] = {
+ "required" : [ "nearRtRicId", "policyObject", "policyTypeId" ],
+ "type" : "object",
+ "properties" : {
+ "nearRtRicId" : {
+ "type" : "string",
+ "description" : "identity of the target Near-RT RIC",
+ "example" : "Near-RT-Ric-ID"
+ },
+ "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.",
+ "nullable" : false,
+ "default" : false
+ },
+ "policyId" : {
+ "type" : "string",
+ "description" : "identity of the Policy",
+ "example" : "POLICY-ID"
+ },
+ "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"
+ },
+ "policyObject" : {
+ "$ref" : "#/components/schemas/PolicyObject"
+ },
+ "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" : "Status for one A1-P Policy"
+};
+ defs["PolicyTypeInformation"] = {
+ "required" : [ "nearRtRicId", "policyTypeId" ],
+ "type" : "object",
+ "properties" : {
+ "policyTypeId" : {
+ "type" : "string",
+ "description" : "Identity of the policy type"
+ },
+ "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",
+ "example" : {
+ "policyTypeId" : "STD_QOS2_0.1.0",
+ "nearRtRicId" : "ricsim_g3_2"
+ }
+};
+ defs["PolicyTypeObject"] = {
+ "required" : [ "policySchema" ],
+ "type" : "object",
+ "properties" : {
+ "policySchema" : {
+ "$ref" : "#/components/schemas/PolicySchema"
+ },
+ "statusSchema" : {
+ "$ref" : "#/components/schemas/StatusSchema"
+ }
+ },
+ "description" : "policy type object as defined in A1TD",
+ "example" : {
+ "policySchema" : {
+ "$schema" : "http://json-schema.org/draft-07/schema#",
+ "title" : "STD_QOS_0_2_0",
+ "description" : "STD QOS policy type",
+ "type" : "object",
+ "properties" : {
+ "scope" : {
+ "type" : "object",
+ "properties" : {
+ "ueId" : {
+ "type" : "string"
+ },
+ "qosId" : {
+ "type" : "string"
+ }
+ },
+ "additionalProperties" : false,
+ "required" : [ "ueId", "qosId" ]
+ },
+ "qosObjectives" : {
+ "type" : "object",
+ "properties" : {
+ "priorityLevel" : {
+ "type" : "number"
+ }
+ },
+ "additionalProperties" : false,
+ "required" : [ "priorityLevel" ]
+ }
+ }
+ },
+ "statusSchema" : {
+ "$schema" : "http://json-schema.org/draft-07/schema#",
+ "title" : "STD_QOS_0.2.0",
+ "description" : "STD QOS policy type status",
+ "type" : "object",
+ "properties" : {
+ "enforceStatus" : {
+ "type" : "string"
+ },
+ "enforceReason" : {
+ "type" : "string"
+ },
+ "additionalProperties" : false,
+ "required" : [ "enforceStatus" ]
+ }
+ }
+ }
+};
+ defs["ProblemDetails"] = {
+ "type" : "object",
+ "properties" : {
+ "type" : {
+ "type" : "string",
+ "description" : "a URI reference according to IETF RFC 3986 that identifies the problem type"
+ },
+ "title" : {
+ "type" : "string",
+ "description" : "human-readable summary of the problem type"
+ },
+ "status" : {
+ "type" : "number",
+ "description" : "the HTTP status code"
+ },
+ "detail" : {
+ "type" : "string",
+ "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"
+};
+ defs["RicInfo"] = {
+ "type" : "object",
+ "properties" : {
+ "ricId" : {
+ "type" : "string",
+ "description" : "identity of the Near-RT RIC"
+ },
+ "managedElementIds" : {
+ "type" : "array",
+ "description" : "O1 identities for managed entities",
+ "items" : {
+ "type" : "string",
+ "description" : "O1 identities for managed entities"
+ }
+ },
+ "state" : {
+ "type" : "string",
+ "description" : "Represents the states for a Near-RT RIC",
+ "enum" : [ "UNAVAILABLE", "AVAILABLE", "SYNCHRONIZING", "CONSISTENCY_CHECK" ]
+ },
+ "policyTypeIds" : {
+ "type" : "array",
+ "description" : "supported policy types",
+ "items" : {
+ "type" : "string",
+ "description" : "supported policy types"
+ }
+ }
+ },
+ "description" : "Information for a Near-RT RIC"
+};
+ defs["RicInfoList"] = {
+ "type" : "object",
+ "properties" : {
+ "rics" : {
+ "type" : "array",
+ "description" : "List of Near-RT RIC information",
+ "items" : {
+ "$ref" : "#/components/schemas/RicInfo"
+ }
+ }
+ },
+ "description" : "List of Near-RT RIC information"
+};
+ defs["ServiceCallbackInfo"] = {
+ "required" : [ "eventType", "ricId" ],
+ "type" : "object",
+ "properties" : {
+ "ricId" : {
+ "type" : "string",
+ "description" : "identity of a Near-RT RIC"
+ },
+ "eventType" : {
+ "type" : "string",
+ "description" : "values:\nAVAILABLE: the Near-RT RIC has become available for A1 Policy management",
+ "enum" : [ "AVAILABLE" ]
+ }
+ },
+ "description" : "Information transferred as in Service callbacks (callback_url)"
+};
+ defs["ServiceRegistrationInfo"] = {
+ "required" : [ "serviceId" ],
+ "type" : "object",
+ "properties" : {
+ "callbackUrl" : {
+ "type" : "string",
+ "description" : "callback for notifying of Near-RT RIC state changes"
+ },
+ "serviceId" : {
+ "type" : "string",
+ "description" : "identity of the service"
+ },
+ "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.",
+ "format" : "int64"
+ }
+ },
+ "description" : "Information for one service"
+};
+ defs["ServiceStatus"] = {
+ "type" : "object",
+ "properties" : {
+ "callbackUrl" : {
+ "type" : "string",
+ "description" : "callback for notifying of RIC synchronization"
+ },
+ "serviceId" : {
+ "type" : "string",
+ "description" : "identity of the service"
+ },
+ "keepAliveIntervalSeconds" : {
+ "type" : "integer",
+ "description" : "policy keep alive timeout",
+ "format" : "int64"
+ },
+ "timeSinceLastActivitySeconds" : {
+ "type" : "integer",
+ "description" : "time since last invocation by the service",
+ "format" : "int64"
+ }
+ }
+};
+ defs["ServiceStatusList"] = {
+ "type" : "object",
+ "properties" : {
+ "serviceList" : {
+ "type" : "array",
+ "description" : "List of service information",
+ "items" : {
+ "$ref" : "#/components/schemas/ServiceStatus"
+ }
+ }
+ }
+};
+ defs["StatusInfo"] = {
+ "type" : "object",
+ "properties" : {
+ "status" : {
+ "type" : "string",
+ "description" : "status text"
+ }
+ }
};
- defs["NearRtRicId"] = {
- "type" : "string",
- "description" : "Identity of the policy"
+ defs["NearRtRicId"] = {
+ "type" : "string",
+ "description" : "Identity of the policy"
};
var errs = {};
@@ -1185,6 +1251,9 @@ ul.nav-tabs {
<li data-group="A1PolicyManagement" data-name="getPolicy" class="">
<a href="#api-A1PolicyManagement-getPolicy">getPolicy</a>
</li>
+ <li data-group="A1PolicyManagement" data-name="getPolicyStatus" class="">
+ <a href="#api-A1PolicyManagement-getPolicyStatus">getPolicyStatus</a>
+ </li>
<li data-group="A1PolicyManagement" data-name="getPolicyTypeDefinition" class="">
<a href="#api-A1PolicyManagement-getPolicyTypeDefinition">getPolicyTypeDefinition</a>
</li>
@@ -1256,13 +1325,13 @@ ul.nav-tabs {
-H "Accept: application/json,application/problem+json" \
-H "Content-Type: application/json" \
"https://example.com/a1-policy-management/v1/policies" \
- -d '{
- &quot;policyId&quot; : &quot;POLICY-ID&quot;,
- &quot;nearRtRicId&quot; : &quot;Near-RT-Ric-ID&quot;,
- &quot;transient&quot; : false,
- &quot;policyObject&quot; : &quot;{}&quot;,
- &quot;serviceId&quot; : &quot;rApp ID&quot;,
- &quot;policyTypeId&quot; : &quot;ORAN_QOS_1.0.0(typeName_SemVersion)&quot;
+ -d '{
+ &quot;policyId&quot; : &quot;POLICY-ID&quot;,
+ &quot;nearRtRicId&quot; : &quot;Near-RT-Ric-ID&quot;,
+ &quot;transient&quot; : false,
+ &quot;policyObject&quot; : &quot;{}&quot;,
+ &quot;serviceId&quot; : &quot;rApp ID&quot;,
+ &quot;policyTypeId&quot; : &quot;ORAN_QOS_1.0.0(typeName_SemVersion)&quot;
}'
</code></pre>
</div>
@@ -1491,15 +1560,15 @@ pub fn main() {
<p class="marked"></p>
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/PolicyObjectInformation"
- }
- }
- },
- "required" : true
+ var schemaWrapper = {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyObjectInformation"
+ }
+ }
+ },
+ "required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
@@ -1565,26 +1634,26 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-201" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Success case 201 created",
- "headers" : {
- "Location" : {
- "description" : "Contains the URI of the newly created resource",
- "required" : true,
- "style" : "simple",
- "explode" : false,
- "schema" : {
- "type" : "string"
- }
- }
- },
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/PolicyObjectInformation"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Success case 201 created",
+ "headers" : {
+ "Location" : {
+ "description" : "Contains the URI of the newly created resource",
+ "required" : true,
+ "style" : "simple",
+ "explode" : false,
+ "schema" : {
+ "type" : "string"
+ }
+ }
+ },
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyObjectInformation"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -1668,15 +1737,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -1744,15 +1813,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unauthorized",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -1820,15 +1889,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Forbidden",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -1896,15 +1965,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -1942,6 +2011,82 @@ $(document).ready(function() {
<input id='responses-A1PolicyManagement-createPolicy-404-schema-data' type='hidden' value=''></input>
</div>
</div>
+ <h3 id="examples-A1PolicyManagement-createPolicy-title-405"></h3>
+ <p id="examples-A1PolicyManagement-createPolicy-description-405" class="marked"></p>
+ <script>
+ var responseA1PolicyManagement405_description = `Method Not Allowed`;
+ var responseA1PolicyManagement405_description_break = responseA1PolicyManagement405_description.indexOf('\n');
+ if (responseA1PolicyManagement405_description_break == -1) {
+ $("#examples-A1PolicyManagement-createPolicy-title-405").text("Status: 405 - " + responseA1PolicyManagement405_description);
+ } else {
+ $("#examples-A1PolicyManagement-createPolicy-title-405").text("Status: 405 - " + responseA1PolicyManagement405_description.substring(0, responseA1PolicyManagement405_description_break));
+ $("#examples-A1PolicyManagement-createPolicy-description-405").html(responseA1PolicyManagement405_description.substring(responseA1PolicyManagement405_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-createPolicy-405" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-createPolicy-405-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-createPolicy-405-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-createPolicy-405-schema">
+ <div id="responses-A1PolicyManagement-createPolicy-schema-405" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Method Not Allowed",
+ "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-A1PolicyManagement-createPolicy-405-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-createPolicy-schema-405');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-createPolicy-405-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
<h3 id="examples-A1PolicyManagement-createPolicy-title-406"></h3>
<p id="examples-A1PolicyManagement-createPolicy-description-406" class="marked"></p>
<script>
@@ -1972,15 +2117,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Acceptable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2018,6 +2163,234 @@ $(document).ready(function() {
<input id='responses-A1PolicyManagement-createPolicy-406-schema-data' type='hidden' value=''></input>
</div>
</div>
+ <h3 id="examples-A1PolicyManagement-createPolicy-title-409"></h3>
+ <p id="examples-A1PolicyManagement-createPolicy-description-409" class="marked"></p>
+ <script>
+ var responseA1PolicyManagement409_description = `Conflict`;
+ var responseA1PolicyManagement409_description_break = responseA1PolicyManagement409_description.indexOf('\n');
+ if (responseA1PolicyManagement409_description_break == -1) {
+ $("#examples-A1PolicyManagement-createPolicy-title-409").text("Status: 409 - " + responseA1PolicyManagement409_description);
+ } else {
+ $("#examples-A1PolicyManagement-createPolicy-title-409").text("Status: 409 - " + responseA1PolicyManagement409_description.substring(0, responseA1PolicyManagement409_description_break));
+ $("#examples-A1PolicyManagement-createPolicy-description-409").html(responseA1PolicyManagement409_description.substring(responseA1PolicyManagement409_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-createPolicy-409" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-createPolicy-409-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-createPolicy-409-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-createPolicy-409-schema">
+ <div id="responses-A1PolicyManagement-createPolicy-schema-409" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Conflict",
+ "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-A1PolicyManagement-createPolicy-409-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-createPolicy-schema-409');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-createPolicy-409-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-createPolicy-title-413"></h3>
+ <p id="examples-A1PolicyManagement-createPolicy-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-createPolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description);
+ } else {
+ $("#examples-A1PolicyManagement-createPolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description.substring(0, responseA1PolicyManagement413_description_break));
+ $("#examples-A1PolicyManagement-createPolicy-description-413").html(responseA1PolicyManagement413_description.substring(responseA1PolicyManagement413_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-createPolicy-413" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-createPolicy-413-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-createPolicy-413-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-createPolicy-413-schema">
+ <div id="responses-A1PolicyManagement-createPolicy-schema-413" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Payload Too Large",
+ "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-A1PolicyManagement-createPolicy-413-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-createPolicy-schema-413');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-createPolicy-413-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-createPolicy-title-415"></h3>
+ <p id="examples-A1PolicyManagement-createPolicy-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-createPolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description);
+ } else {
+ $("#examples-A1PolicyManagement-createPolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description.substring(0, responseA1PolicyManagement415_description_break));
+ $("#examples-A1PolicyManagement-createPolicy-description-415").html(responseA1PolicyManagement415_description.substring(responseA1PolicyManagement415_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-createPolicy-415" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-createPolicy-415-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-createPolicy-415-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-createPolicy-415-schema">
+ <div id="responses-A1PolicyManagement-createPolicy-schema-415" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Unsupported Media Type",
+ "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-A1PolicyManagement-createPolicy-415-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-createPolicy-schema-415');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-createPolicy-415-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
<h3 id="examples-A1PolicyManagement-createPolicy-title-423"></h3>
<p id="examples-A1PolicyManagement-createPolicy-description-423" class="marked"></p>
<script>
@@ -2048,20 +2421,20 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-423" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Locked - HTTP Status code which can be used when the state is Locked",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ErrorInformation"
- },
- "example" : {
- "status" : 423,
- "title" : "Locked",
- "detail" : "State is Locked in the provided request."
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Locked - HTTP Status code which can be used when the state is Locked",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ErrorInformation"
+ },
+ "example" : {
+ "status" : 423,
+ "title" : "Locked",
+ "detail" : "State is Locked in the provided request."
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2129,15 +2502,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Too Many Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2205,15 +2578,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Internal Server Error",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2281,15 +2654,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Gateway",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2357,15 +2730,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Service Unavailable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2727,7 +3100,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 created A1 policy was deleted`;
+ var responseA1PolicyManagement204_description = `The A1 policy was deleted`;
var responseA1PolicyManagement204_description_break = responseA1PolicyManagement204_description.indexOf('\n');
if (responseA1PolicyManagement204_description_break == -1) {
$("#examples-A1PolicyManagement-deletePolicy-title-204").text("Status: 204 - " + responseA1PolicyManagement204_description);
@@ -2749,8 +3122,8 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-204" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "The created A1 policy was deleted"
+ var schemaWrapper = {
+ "description" : "The A1 policy was deleted"
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2818,15 +3191,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2894,15 +3267,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unauthorized",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2970,15 +3343,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Forbidden",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3046,15 +3419,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3092,6 +3465,158 @@ Specifies the content type that the client expects to receive in response to the
<input id='responses-A1PolicyManagement-deletePolicy-404-schema-data' type='hidden' value=''></input>
</div>
</div>
+ <h3 id="examples-A1PolicyManagement-deletePolicy-title-405"></h3>
+ <p id="examples-A1PolicyManagement-deletePolicy-description-405" class="marked"></p>
+ <script>
+ var responseA1PolicyManagement405_description = `Method Not Allowed`;
+ var responseA1PolicyManagement405_description_break = responseA1PolicyManagement405_description.indexOf('\n');
+ if (responseA1PolicyManagement405_description_break == -1) {
+ $("#examples-A1PolicyManagement-deletePolicy-title-405").text("Status: 405 - " + responseA1PolicyManagement405_description);
+ } else {
+ $("#examples-A1PolicyManagement-deletePolicy-title-405").text("Status: 405 - " + responseA1PolicyManagement405_description.substring(0, responseA1PolicyManagement405_description_break));
+ $("#examples-A1PolicyManagement-deletePolicy-description-405").html(responseA1PolicyManagement405_description.substring(responseA1PolicyManagement405_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-deletePolicy-405" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-deletePolicy-405-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-deletePolicy-405-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-deletePolicy-405-schema">
+ <div id="responses-A1PolicyManagement-deletePolicy-schema-405" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Method Not Allowed",
+ "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-A1PolicyManagement-deletePolicy-405-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-deletePolicy-schema-405');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-deletePolicy-405-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-deletePolicy-title-406"></h3>
+ <p id="examples-A1PolicyManagement-deletePolicy-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-deletePolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
+ } else {
+ $("#examples-A1PolicyManagement-deletePolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-deletePolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-deletePolicy-406" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-deletePolicy-406-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-deletePolicy-406-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-deletePolicy-406-schema">
+ <div id="responses-A1PolicyManagement-deletePolicy-schema-406" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "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-A1PolicyManagement-deletePolicy-406-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-deletePolicy-schema-406');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-deletePolicy-406-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
<h3 id="examples-A1PolicyManagement-deletePolicy-title-423"></h3>
<p id="examples-A1PolicyManagement-deletePolicy-description-423" class="marked"></p>
<script>
@@ -3122,20 +3647,20 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-423" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Locked - HTTP Status code which can be used when the state is Locked",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ErrorInformation"
- },
- "example" : {
- "status" : 423,
- "title" : "Locked",
- "detail" : "State is Locked in the provided request."
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Locked - HTTP Status code which can be used when the state is Locked",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ErrorInformation"
+ },
+ "example" : {
+ "status" : 423,
+ "title" : "Locked",
+ "detail" : "State is Locked in the provided request."
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3203,15 +3728,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Too Many Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3279,15 +3804,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Internal Server Error",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3355,15 +3880,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Gateway",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3431,15 +3956,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Service Unavailable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3930,18 +4455,18 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Policy identities",
- "content" : {
- "application/json" : {
- "schema" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/PolicyInformation"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Policy identities",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/PolicyInformation"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4009,15 +4534,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4085,15 +4610,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unauthorized",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4161,15 +4686,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Forbidden",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4237,15 +4762,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4313,15 +4838,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Acceptable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4389,15 +4914,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Too Many Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4465,15 +4990,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Internal Server Error",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4541,15 +5066,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Gateway",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4617,15 +5142,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Service Unavailable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5020,20 +5545,20 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Policy found",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/PolicyObject"
- },
- "examples" : {
- "policyObject" : {
- "$ref" : "#/components/examples/PolicyObject"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Policy found",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyObject"
+ },
+ "examples" : {
+ "policyObject" : {
+ "$ref" : "#/components/examples/PolicyObject"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5101,15 +5626,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5177,15 +5702,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unauthorized",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5253,15 +5778,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Forbidden",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5329,15 +5854,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5405,15 +5930,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Acceptable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5481,15 +6006,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Too Many Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5557,15 +6082,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Internal Server Error",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5633,15 +6158,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Gateway",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5709,15 +6234,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Service Unavailable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5758,6 +6283,1093 @@ Specifies the content type that the client expects to receive in response to the
</article>
</div>
<hr>
+ <div id="api-A1PolicyManagement-getPolicyStatus">
+ <article id="api-A1PolicyManagement-getPolicyStatus-0" data-group="User" data-name="getPolicyStatus" data-version="0">
+ <div class="pull-left">
+ <h1>getPolicyStatus</h1>
+ <p></p>
+ </div>
+ <div class="pull-right"></div>
+ <div class="clearfix"></div>
+ <p></p>
+ <p class="marked">Query a policy status</p>
+ <p></p>
+ <br />
+ <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies/{policyId}/status</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-getPolicyStatus-0-curl">Curl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-java">Java</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-dart">Dart</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-android">Android</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-groovy">Groovy</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-objc">Obj-C</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-javascript">JavaScript</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-angular">Angular</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-csharp">C#</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-php">PHP</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-perl">Perl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-python">Python</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-rust">Rust</a></li>
+ </ul>
+
+ <div class="tab-content">
+ <div class="tab-pane active" id="examples-A1PolicyManagement-getPolicyStatus-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}/status"
+</code></pre>
+ </div>
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-java">
+ <pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.A1PolicyManagementApi;
+
+import java.io.File;
+import java.util.*;
+
+public class A1PolicyManagementApiExample {
+ public static void main(String[] args) {
+
+ // Create an instance of the API class
+ A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
+ 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 {
+ Object result = apiInstance.getPolicyStatus(policyId, accept);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling A1PolicyManagementApi#getPolicyStatus");
+ e.printStackTrace();
+ }
+ }
+}
+</code></pre>
+ </div>
+
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-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 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.getPolicyStatus(policyId, accept);
+ print(result);
+} catch (e) {
+ print('Exception when calling DefaultApi->getPolicyStatus: $e\n');
+}
+
+</code></pre>
+ </div>
+
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-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 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.getPolicyStatus(policyId, accept);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling A1PolicyManagementApi#getPolicyStatus");
+ e.printStackTrace();
+ }
+ }
+}</code></pre>
+ </div>
+ <!--
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-groovy">
+ <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
+ </div> -->
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-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 *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 getPolicyStatusWith:policyId
+ accept:accept
+ completionHandler: ^(Object output, NSError* error) {
+ if (output) {
+ NSLog(@"%@", output);
+ }
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+}];
+</code></pre>
+ </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');
+
+// Create an instance of the API class
+var api = new A1PolicyManagementApi.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.
+};
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+api.getPolicyStatus(policyId, opts, callback);
+</code></pre>
+ </div>
+
+ <!--<div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-angular">
+ <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
+ </div>-->
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-csharp">
+ <pre class="prettyprint"><code class="language-cs">using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class getPolicyStatusExample
+ {
+ public void main()
+ {
+
+ // Create an instance of the API class
+ var apiInstance = new A1PolicyManagementApi();
+ 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 {
+ Object result = apiInstance.getPolicyStatus(policyId, accept);
+ Debug.WriteLine(result);
+ } catch (Exception e) {
+ Debug.Print("Exception when calling A1PolicyManagementApi.getPolicyStatus: " + e.Message );
+ }
+ }
+ }
+}
+</code></pre>
+ </div>
+
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-php">
+ <pre class="prettyprint"><code class="language-php"><&#63;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 |
+$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->getPolicyStatus($policyId, $accept);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling A1PolicyManagementApi->getPolicyStatus: ', $e->getMessage(), PHP_EOL;
+}
+?></code></pre>
+ </div>
+
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-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 $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->getPolicyStatus(policyId => $policyId, accept => $accept);
+ print Dumper($result);
+};
+if ($@) {
+ warn "Exception when calling A1PolicyManagementApi->getPolicyStatus: $@\n";
+}</code></pre>
+ </div>
+
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-python">
+ <pre class="prettyprint"><code class="language-python">from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.A1PolicyManagementApi()
+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:
+ api_response = api_instance.get_policy_status(policyId, accept=accept)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling A1PolicyManagementApi->getPolicyStatus: %s\n" % e)</code></pre>
+ </div>
+
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-rust">
+ <pre class="prettyprint"><code class="language-rust">extern crate A1PolicyManagementApi;
+
+pub fn main() {
+ let policyId = policyId_example; // String
+ let accept = application/json; // String
+
+ let mut context = A1PolicyManagementApi::Context::default();
+ let result = client.getPolicyStatus(policyId, accept, &context).wait();
+
+ println!("{:?}", result);
+}
+</code></pre>
+ </div>
+ </div>
+
+ <h2>Scopes</h2>
+ <table>
+
+ </table>
+
+ <h2>Parameters</h2>
+
+ <div class="methodsubtabletitle">Path parameters</div>
+ <table id="methodsubtable">
+ <tr>
+ <th width="150px">Name</th>
+ <th>Description</th>
+ </tr>
+ <tr><td style="width:150px;">policyId*</td>
+<td>
+
+
+ <div id="d2e199_getPolicyStatus_policyId">
+ <div class="json-schema-view">
+ <div class="primitive">
+ <span class="type">
+ String
+ </span>
+
+ </div>
+ <div class="inner required">
+ Required
+ </div>
+ </div>
+ </div>
+</td>
+</tr>
+
+ </table>
+
+ <div class="methodsubtabletitle">Header parameters</div>
+ <table id="methodsubtable">
+ <tr>
+ <th width="150px">Name</th>
+ <th>Description</th>
+ </tr>
+ <tr><td style="width:150px;">Accept</td>
+<td>
+
+
+ <div id="d2e199_getPolicyStatus_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>
+ </div>
+</td>
+</tr>
+
+ </table>
+
+
+
+
+ <h2>Responses</h2>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-200"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-description-200" class="marked"></p>
+ <script>
+ var responseA1PolicyManagement200_description = `OK`;
+ var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n');
+ if (responseA1PolicyManagement200_description_break == -1) {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-200" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-200-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-200-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-200-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-200" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "OK",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyStatusObject"
+ }
+ }
+ }
+};
+ 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-A1PolicyManagement-getPolicyStatus-200-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-200');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-200-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-400"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-400" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-400-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-400-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-400-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-400" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "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-A1PolicyManagement-getPolicyStatus-400-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-400');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-400-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-401"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-401" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-401-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-401-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-401-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-401" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "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-A1PolicyManagement-getPolicyStatus-401-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-401');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-401-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-403"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-403" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-403-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-403-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-403-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-403" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "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-A1PolicyManagement-getPolicyStatus-403-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-403');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-403-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-404"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-404" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-404-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-404-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-404-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-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-A1PolicyManagement-getPolicyStatus-404-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-404');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-404-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-406"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-406" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-406-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-406-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-406-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-406" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "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-A1PolicyManagement-getPolicyStatus-406-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-406');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-406-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <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_break = responseA1PolicyManagement429_description.indexOf('\n');
+ if (responseA1PolicyManagement429_description_break == -1) {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-429" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-429-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-429-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-429-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-429" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "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-A1PolicyManagement-getPolicyStatus-429-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-429');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-429-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-500"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-500" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-500-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-500-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-500-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-500" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "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-A1PolicyManagement-getPolicyStatus-500-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-500');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-500-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-502"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-502" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-502-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-502-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-502-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-502" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "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-A1PolicyManagement-getPolicyStatus-502-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-502');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-502-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-503"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-503" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-503-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-503-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-503-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-503" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "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-A1PolicyManagement-getPolicyStatus-503-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-503');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-503-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ </article>
+ </div>
+ <hr>
<div id="api-A1PolicyManagement-getPolicyTypeDefinition">
<article id="api-A1PolicyManagement-getPolicyTypeDefinition-0" data-group="User" data-name="getPolicyTypeDefinition" data-version="0">
<div class="pull-left">
@@ -5815,7 +7427,7 @@ public class A1PolicyManagementApiExample {
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.getPolicyTypeDefinition(policyTypeId, accept);
+ PolicyTypeObject result = apiInstance.getPolicyTypeDefinition(policyTypeId, accept);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling A1PolicyManagementApi#getPolicyTypeDefinition");
@@ -5854,7 +7466,7 @@ public class A1PolicyManagementApiExample {
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.getPolicyTypeDefinition(policyTypeId, accept);
+ PolicyTypeObject result = apiInstance.getPolicyTypeDefinition(policyTypeId, accept);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling A1PolicyManagementApi#getPolicyTypeDefinition");
@@ -5877,7 +7489,7 @@ String *accept = application/json; // Specifies the content type that the client
[apiInstance getPolicyTypeDefinitionWith:policyTypeId
accept:accept
- completionHandler: ^(Object output, NSError* error) {
+ completionHandler: ^(PolicyTypeObject output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -5932,7 +7544,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 {
- Object result = apiInstance.getPolicyTypeDefinition(policyTypeId, accept);
+ PolicyTypeObject result = apiInstance.getPolicyTypeDefinition(policyTypeId, accept);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling A1PolicyManagementApi.getPolicyTypeDefinition: " + e.Message );
@@ -6112,20 +7724,20 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - schema of the given policy type",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/PolicyObject"
- },
- "examples" : {
- "policyObject" : {
- "$ref" : "#/components/examples/PolicyObject"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - schema of the given policy type",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyTypeObject"
+ },
+ "examples" : {
+ "PolicyTypeObject" : {
+ "$ref" : "#/components/examples/PolicyTypeObject"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6193,15 +7805,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6269,15 +7881,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unauthorized",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6345,15 +7957,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Forbidden",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6421,15 +8033,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6497,15 +8109,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Acceptable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6573,15 +8185,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Too Many Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6649,15 +8261,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Internal Server Error",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6725,15 +8337,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Gateway",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6801,15 +8413,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Service Unavailable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7266,18 +8878,23 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Policy Type IDs found Ok",
- "content" : {
- "application/json" : {
- "schema" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/PolicyTypeInformation"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Policy Type IDs found Ok",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/PolicyTypeInformation"
+ }
+ },
+ "examples" : {
+ "PolicyTypeInformation" : {
+ "$ref" : "#/components/examples/PolicyTypeInformation"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7345,15 +8962,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7421,15 +9038,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unauthorized",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7497,15 +9114,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Forbidden",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7573,15 +9190,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7649,15 +9266,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Acceptable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7725,15 +9342,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Too Many Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7801,15 +9418,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Internal Server Error",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7877,15 +9494,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Gateway",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7953,15 +9570,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Service Unavailable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8306,20 +9923,20 @@ pub fn main() {
<p class="marked"></p>
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/PolicyObject"
- },
- "examples" : {
- "policyObject" : {
- "$ref" : "#/components/examples/PolicyObject"
- }
- }
- }
- },
- "required" : true
+ var schemaWrapper = {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyObject"
+ },
+ "examples" : {
+ "policyObject" : {
+ "$ref" : "#/components/examples/PolicyObject"
+ }
+ }
+ }
+ },
+ "required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
@@ -8382,15 +9999,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Policy updated",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/PolicyObject"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Policy updated",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyObject"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8458,15 +10075,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8534,15 +10151,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unauthorized",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8610,15 +10227,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Forbidden",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8686,15 +10303,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8762,15 +10379,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Acceptable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8838,15 +10455,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-411" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Length Required",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Length Required",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8914,15 +10531,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-413" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Payload Too Large",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Payload Too Large",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8990,15 +10607,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-415" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unsupported Media Type",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unsupported Media Type",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -9066,20 +10683,20 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-423" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Locked - HTTP Status code which can be used when the state is Locked",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ErrorInformation"
- },
- "example" : {
- "status" : 423,
- "title" : "Locked",
- "detail" : "State is Locked in the provided request."
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Locked - HTTP Status code which can be used when the state is Locked",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ErrorInformation"
+ },
+ "example" : {
+ "status" : 423,
+ "title" : "Locked",
+ "detail" : "State is Locked in the provided request."
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -9147,15 +10764,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Too Many Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -9223,15 +10840,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Internal Server Error",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -9299,15 +10916,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Gateway",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -9375,15 +10992,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Service Unavailable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
diff --git a/docs/offeredapis/openapitoolgen/offeredapis/pms-api/v3/index.html b/docs/offeredapis/openapitoolgen/offeredapis/pms-api/v3/index.html
index 6404c064..0e7aaa76 100644
--- a/docs/offeredapis/openapitoolgen/offeredapis/pms-api/v3/index.html
+++ b/docs/offeredapis/openapitoolgen/offeredapis/pms-api/v3/index.html
@@ -844,315 +844,381 @@ 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["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.",
- "example" : "Policy type not found"
- },
- "title" : {
- "type" : "string",
- "description" : "A specific error name",
- "example" : "Not Found"
- },
- "status" : {
- "type" : "integer",
- "description" : "The HTTP status code generated by the origin server for this occurrence of the problem. ",
- "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["ErrorInformation"] = {
+ "type" : "object",
+ "properties" : {
+ "detail" : {
+ "type" : "string",
+ "description" : " A human-readable explanation specific to this occurrence of the problem.",
+ "example" : "Policy type not found"
+ },
+ "title" : {
+ "type" : "string",
+ "description" : "A specific error name",
+ "example" : "Not Found"
+ },
+ "status" : {
+ "type" : "integer",
+ "description" : "The HTTP status code generated by the origin server for this occurrence of the problem. ",
+ "format" : "int32",
+ "example" : 404
+ }
+ },
+ "description" : "Problem as defined in https://tools.ietf.org/html/rfc7807"
};
- 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"
- },
- "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"
-};
- defs["PolicyObjectInformation"] = {
- "required" : [ "nearRtRicId", "policyObject", "policyTypeId" ],
- "type" : "object",
- "properties" : {
- "nearRtRicId" : {
- "type" : "string",
- "description" : "identity of the target Near-RT RIC",
- "example" : "Near-RT-Ric-ID"
- },
- "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.",
- "nullable" : false,
- "default" : false
- },
- "policyId" : {
- "type" : "string",
- "description" : "identity of the Policy",
- "example" : "POLICY-ID"
- },
- "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"
- },
- "policyObject" : {
- "$ref" : "#/components/schemas/PolicyObject"
- },
- "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" : "Status for one A1-P Policy"
-};
- defs["PolicyTypeInformation"] = {
- "required" : [ "nearRtRicId", "policyTypeId" ],
- "type" : "object",
- "properties" : {
- "policyTypeId" : {
- "type" : "string",
- "description" : "Identity of the policy type"
- },
- "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"
-};
- defs["ProblemDetails"] = {
- "type" : "object",
- "properties" : {
- "type" : {
- "type" : "string",
- "description" : "a URI reference according to IETF RFC 3986 that identifies the problem type"
- },
- "title" : {
- "type" : "string",
- "description" : "human-readable summary of the problem type"
- },
- "status" : {
- "type" : "number",
- "description" : "the HTTP status code"
- },
- "detail" : {
- "type" : "string",
- "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"
-};
- defs["RicInfo"] = {
- "type" : "object",
- "properties" : {
- "ricId" : {
- "type" : "string",
- "description" : "identity of the Near-RT RIC"
- },
- "managedElementIds" : {
- "type" : "array",
- "description" : "O1 identities for managed entities",
- "items" : {
- "type" : "string",
- "description" : "O1 identities for managed entities"
- }
- },
- "state" : {
- "type" : "string",
- "description" : "Represents the states for a Near-RT RIC",
- "enum" : [ "UNAVAILABLE", "AVAILABLE", "SYNCHRONIZING", "CONSISTENCY_CHECK" ]
- },
- "policyTypeIds" : {
- "type" : "array",
- "description" : "supported policy types",
- "items" : {
- "type" : "string",
- "description" : "supported policy types"
- }
- }
- },
- "description" : "Information for a Near-RT RIC"
-};
- defs["RicInfoList"] = {
- "type" : "object",
- "properties" : {
- "rics" : {
- "type" : "array",
- "description" : "List of Near-RT RIC information",
- "items" : {
- "$ref" : "#/components/schemas/RicInfo"
- }
- }
- },
- "description" : "List of Near-RT RIC information"
-};
- defs["ServiceCallbackInfo"] = {
- "required" : [ "eventType", "ricId" ],
- "type" : "object",
- "properties" : {
- "ricId" : {
- "type" : "string",
- "description" : "identity of a Near-RT RIC"
- },
- "eventType" : {
- "type" : "string",
- "description" : "values:\nAVAILABLE: the Near-RT RIC has become available for A1 Policy management",
- "enum" : [ "AVAILABLE" ]
- }
- },
- "description" : "Information transferred as in Service callbacks (callback_url)"
-};
- defs["ServiceRegistrationInfo"] = {
- "required" : [ "serviceId" ],
- "type" : "object",
- "properties" : {
- "callbackUrl" : {
- "type" : "string",
- "description" : "callback for notifying of Near-RT RIC state changes"
- },
- "serviceId" : {
- "type" : "string",
- "description" : "identity of the service"
- },
- "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.",
- "format" : "int64"
- }
- },
- "description" : "Information for one service"
-};
- defs["ServiceStatus"] = {
- "type" : "object",
- "properties" : {
- "callbackUrl" : {
- "type" : "string",
- "description" : "callback for notifying of RIC synchronization"
- },
- "serviceId" : {
- "type" : "string",
- "description" : "identity of the service"
- },
- "keepAliveIntervalSeconds" : {
- "type" : "integer",
- "description" : "policy keep alive timeout",
- "format" : "int64"
- },
- "timeSinceLastActivitySeconds" : {
- "type" : "integer",
- "description" : "time since last invocation by the service",
- "format" : "int64"
- }
- }
+ 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["ServiceStatusList"] = {
- "type" : "object",
- "properties" : {
- "serviceList" : {
- "type" : "array",
- "description" : "List of service information",
- "items" : {
- "$ref" : "#/components/schemas/ServiceStatus"
- }
- }
- }
+ defs["Link"] = {
+ "type" : "object",
+ "properties" : {
+ "templated" : {
+ "type" : "boolean"
+ },
+ "href" : {
+ "type" : "string"
+ }
+ }
};
- defs["StatusInfo"] = {
- "type" : "object",
- "properties" : {
- "status" : {
- "type" : "string",
- "description" : "status text"
- }
- }
+ 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"
+ },
+ "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"
+};
+ defs["PolicyObjectInformation"] = {
+ "required" : [ "nearRtRicId", "policyObject", "policyTypeId" ],
+ "type" : "object",
+ "properties" : {
+ "nearRtRicId" : {
+ "type" : "string",
+ "description" : "identity of the target Near-RT RIC",
+ "example" : "Near-RT-Ric-ID"
+ },
+ "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.",
+ "nullable" : false,
+ "default" : false
+ },
+ "policyId" : {
+ "type" : "string",
+ "description" : "identity of the Policy",
+ "example" : "POLICY-ID"
+ },
+ "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"
+ },
+ "policyObject" : {
+ "$ref" : "#/components/schemas/PolicyObject"
+ },
+ "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" : "Status for one A1-P Policy"
+};
+ defs["PolicyTypeInformation"] = {
+ "required" : [ "nearRtRicId", "policyTypeId" ],
+ "type" : "object",
+ "properties" : {
+ "policyTypeId" : {
+ "type" : "string",
+ "description" : "Identity of the policy type"
+ },
+ "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",
+ "example" : {
+ "policyTypeId" : "STD_QOS2_0.1.0",
+ "nearRtRicId" : "ricsim_g3_2"
+ }
+};
+ defs["PolicyTypeObject"] = {
+ "required" : [ "policySchema" ],
+ "type" : "object",
+ "properties" : {
+ "policySchema" : {
+ "$ref" : "#/components/schemas/PolicySchema"
+ },
+ "statusSchema" : {
+ "$ref" : "#/components/schemas/StatusSchema"
+ }
+ },
+ "description" : "policy type object as defined in A1TD",
+ "example" : {
+ "policySchema" : {
+ "$schema" : "http://json-schema.org/draft-07/schema#",
+ "title" : "STD_QOS_0_2_0",
+ "description" : "STD QOS policy type",
+ "type" : "object",
+ "properties" : {
+ "scope" : {
+ "type" : "object",
+ "properties" : {
+ "ueId" : {
+ "type" : "string"
+ },
+ "qosId" : {
+ "type" : "string"
+ }
+ },
+ "additionalProperties" : false,
+ "required" : [ "ueId", "qosId" ]
+ },
+ "qosObjectives" : {
+ "type" : "object",
+ "properties" : {
+ "priorityLevel" : {
+ "type" : "number"
+ }
+ },
+ "additionalProperties" : false,
+ "required" : [ "priorityLevel" ]
+ }
+ }
+ },
+ "statusSchema" : {
+ "$schema" : "http://json-schema.org/draft-07/schema#",
+ "title" : "STD_QOS_0.2.0",
+ "description" : "STD QOS policy type status",
+ "type" : "object",
+ "properties" : {
+ "enforceStatus" : {
+ "type" : "string"
+ },
+ "enforceReason" : {
+ "type" : "string"
+ },
+ "additionalProperties" : false,
+ "required" : [ "enforceStatus" ]
+ }
+ }
+ }
+};
+ defs["ProblemDetails"] = {
+ "type" : "object",
+ "properties" : {
+ "type" : {
+ "type" : "string",
+ "description" : "a URI reference according to IETF RFC 3986 that identifies the problem type"
+ },
+ "title" : {
+ "type" : "string",
+ "description" : "human-readable summary of the problem type"
+ },
+ "status" : {
+ "type" : "number",
+ "description" : "the HTTP status code"
+ },
+ "detail" : {
+ "type" : "string",
+ "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"
+};
+ defs["RicInfo"] = {
+ "type" : "object",
+ "properties" : {
+ "ricId" : {
+ "type" : "string",
+ "description" : "identity of the Near-RT RIC"
+ },
+ "managedElementIds" : {
+ "type" : "array",
+ "description" : "O1 identities for managed entities",
+ "items" : {
+ "type" : "string",
+ "description" : "O1 identities for managed entities"
+ }
+ },
+ "state" : {
+ "type" : "string",
+ "description" : "Represents the states for a Near-RT RIC",
+ "enum" : [ "UNAVAILABLE", "AVAILABLE", "SYNCHRONIZING", "CONSISTENCY_CHECK" ]
+ },
+ "policyTypeIds" : {
+ "type" : "array",
+ "description" : "supported policy types",
+ "items" : {
+ "type" : "string",
+ "description" : "supported policy types"
+ }
+ }
+ },
+ "description" : "Information for a Near-RT RIC"
+};
+ defs["RicInfoList"] = {
+ "type" : "object",
+ "properties" : {
+ "rics" : {
+ "type" : "array",
+ "description" : "List of Near-RT RIC information",
+ "items" : {
+ "$ref" : "#/components/schemas/RicInfo"
+ }
+ }
+ },
+ "description" : "List of Near-RT RIC information"
+};
+ defs["ServiceCallbackInfo"] = {
+ "required" : [ "eventType", "ricId" ],
+ "type" : "object",
+ "properties" : {
+ "ricId" : {
+ "type" : "string",
+ "description" : "identity of a Near-RT RIC"
+ },
+ "eventType" : {
+ "type" : "string",
+ "description" : "values:\nAVAILABLE: the Near-RT RIC has become available for A1 Policy management",
+ "enum" : [ "AVAILABLE" ]
+ }
+ },
+ "description" : "Information transferred as in Service callbacks (callback_url)"
+};
+ defs["ServiceRegistrationInfo"] = {
+ "required" : [ "serviceId" ],
+ "type" : "object",
+ "properties" : {
+ "callbackUrl" : {
+ "type" : "string",
+ "description" : "callback for notifying of Near-RT RIC state changes"
+ },
+ "serviceId" : {
+ "type" : "string",
+ "description" : "identity of the service"
+ },
+ "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.",
+ "format" : "int64"
+ }
+ },
+ "description" : "Information for one service"
+};
+ defs["ServiceStatus"] = {
+ "type" : "object",
+ "properties" : {
+ "callbackUrl" : {
+ "type" : "string",
+ "description" : "callback for notifying of RIC synchronization"
+ },
+ "serviceId" : {
+ "type" : "string",
+ "description" : "identity of the service"
+ },
+ "keepAliveIntervalSeconds" : {
+ "type" : "integer",
+ "description" : "policy keep alive timeout",
+ "format" : "int64"
+ },
+ "timeSinceLastActivitySeconds" : {
+ "type" : "integer",
+ "description" : "time since last invocation by the service",
+ "format" : "int64"
+ }
+ }
+};
+ defs["ServiceStatusList"] = {
+ "type" : "object",
+ "properties" : {
+ "serviceList" : {
+ "type" : "array",
+ "description" : "List of service information",
+ "items" : {
+ "$ref" : "#/components/schemas/ServiceStatus"
+ }
+ }
+ }
+};
+ defs["StatusInfo"] = {
+ "type" : "object",
+ "properties" : {
+ "status" : {
+ "type" : "string",
+ "description" : "status text"
+ }
+ }
};
- defs["NearRtRicId"] = {
- "type" : "string",
- "description" : "Identity of the policy"
+ defs["NearRtRicId"] = {
+ "type" : "string",
+ "description" : "Identity of the policy"
};
var errs = {};
@@ -1185,6 +1251,9 @@ ul.nav-tabs {
<li data-group="A1PolicyManagement" data-name="getPolicy" class="">
<a href="#api-A1PolicyManagement-getPolicy">getPolicy</a>
</li>
+ <li data-group="A1PolicyManagement" data-name="getPolicyStatus" class="">
+ <a href="#api-A1PolicyManagement-getPolicyStatus">getPolicyStatus</a>
+ </li>
<li data-group="A1PolicyManagement" data-name="getPolicyTypeDefinition" class="">
<a href="#api-A1PolicyManagement-getPolicyTypeDefinition">getPolicyTypeDefinition</a>
</li>
@@ -1287,13 +1356,13 @@ ul.nav-tabs {
-H "Accept: application/json,application/problem+json" \
-H "Content-Type: application/json" \
"https://example.com/a1-policy-management/v1/policies" \
- -d '{
- &quot;policyId&quot; : &quot;POLICY-ID&quot;,
- &quot;nearRtRicId&quot; : &quot;Near-RT-Ric-ID&quot;,
- &quot;transient&quot; : false,
- &quot;policyObject&quot; : &quot;{}&quot;,
- &quot;serviceId&quot; : &quot;rApp ID&quot;,
- &quot;policyTypeId&quot; : &quot;ORAN_QOS_1.0.0(typeName_SemVersion)&quot;
+ -d '{
+ &quot;policyId&quot; : &quot;POLICY-ID&quot;,
+ &quot;nearRtRicId&quot; : &quot;Near-RT-Ric-ID&quot;,
+ &quot;transient&quot; : false,
+ &quot;policyObject&quot; : &quot;{}&quot;,
+ &quot;serviceId&quot; : &quot;rApp ID&quot;,
+ &quot;policyTypeId&quot; : &quot;ORAN_QOS_1.0.0(typeName_SemVersion)&quot;
}'
</code></pre>
</div>
@@ -1522,15 +1591,15 @@ pub fn main() {
<p class="marked"></p>
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/PolicyObjectInformation"
- }
- }
- },
- "required" : true
+ var schemaWrapper = {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyObjectInformation"
+ }
+ }
+ },
+ "required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
@@ -1596,26 +1665,26 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-201" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Success case 201 created",
- "headers" : {
- "Location" : {
- "description" : "Contains the URI of the newly created resource",
- "required" : true,
- "style" : "simple",
- "explode" : false,
- "schema" : {
- "type" : "string"
- }
- }
- },
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/PolicyObjectInformation"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Success case 201 created",
+ "headers" : {
+ "Location" : {
+ "description" : "Contains the URI of the newly created resource",
+ "required" : true,
+ "style" : "simple",
+ "explode" : false,
+ "schema" : {
+ "type" : "string"
+ }
+ }
+ },
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyObjectInformation"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -1699,15 +1768,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -1775,15 +1844,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unauthorized",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -1851,15 +1920,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Forbidden",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -1927,15 +1996,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -1973,6 +2042,82 @@ $(document).ready(function() {
<input id='responses-A1PolicyManagement-createPolicy-404-schema-data' type='hidden' value=''></input>
</div>
</div>
+ <h3 id="examples-A1PolicyManagement-createPolicy-title-405"></h3>
+ <p id="examples-A1PolicyManagement-createPolicy-description-405" class="marked"></p>
+ <script>
+ var responseA1PolicyManagement405_description = `Method Not Allowed`;
+ var responseA1PolicyManagement405_description_break = responseA1PolicyManagement405_description.indexOf('\n');
+ if (responseA1PolicyManagement405_description_break == -1) {
+ $("#examples-A1PolicyManagement-createPolicy-title-405").text("Status: 405 - " + responseA1PolicyManagement405_description);
+ } else {
+ $("#examples-A1PolicyManagement-createPolicy-title-405").text("Status: 405 - " + responseA1PolicyManagement405_description.substring(0, responseA1PolicyManagement405_description_break));
+ $("#examples-A1PolicyManagement-createPolicy-description-405").html(responseA1PolicyManagement405_description.substring(responseA1PolicyManagement405_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-createPolicy-405" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-createPolicy-405-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-createPolicy-405-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-createPolicy-405-schema">
+ <div id="responses-A1PolicyManagement-createPolicy-schema-405" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Method Not Allowed",
+ "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-A1PolicyManagement-createPolicy-405-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-createPolicy-schema-405');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-createPolicy-405-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
<h3 id="examples-A1PolicyManagement-createPolicy-title-406"></h3>
<p id="examples-A1PolicyManagement-createPolicy-description-406" class="marked"></p>
<script>
@@ -2003,15 +2148,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Acceptable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2049,6 +2194,234 @@ $(document).ready(function() {
<input id='responses-A1PolicyManagement-createPolicy-406-schema-data' type='hidden' value=''></input>
</div>
</div>
+ <h3 id="examples-A1PolicyManagement-createPolicy-title-409"></h3>
+ <p id="examples-A1PolicyManagement-createPolicy-description-409" class="marked"></p>
+ <script>
+ var responseA1PolicyManagement409_description = `Conflict`;
+ var responseA1PolicyManagement409_description_break = responseA1PolicyManagement409_description.indexOf('\n');
+ if (responseA1PolicyManagement409_description_break == -1) {
+ $("#examples-A1PolicyManagement-createPolicy-title-409").text("Status: 409 - " + responseA1PolicyManagement409_description);
+ } else {
+ $("#examples-A1PolicyManagement-createPolicy-title-409").text("Status: 409 - " + responseA1PolicyManagement409_description.substring(0, responseA1PolicyManagement409_description_break));
+ $("#examples-A1PolicyManagement-createPolicy-description-409").html(responseA1PolicyManagement409_description.substring(responseA1PolicyManagement409_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-createPolicy-409" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-createPolicy-409-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-createPolicy-409-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-createPolicy-409-schema">
+ <div id="responses-A1PolicyManagement-createPolicy-schema-409" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Conflict",
+ "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-A1PolicyManagement-createPolicy-409-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-createPolicy-schema-409');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-createPolicy-409-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-createPolicy-title-413"></h3>
+ <p id="examples-A1PolicyManagement-createPolicy-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-createPolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description);
+ } else {
+ $("#examples-A1PolicyManagement-createPolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description.substring(0, responseA1PolicyManagement413_description_break));
+ $("#examples-A1PolicyManagement-createPolicy-description-413").html(responseA1PolicyManagement413_description.substring(responseA1PolicyManagement413_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-createPolicy-413" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-createPolicy-413-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-createPolicy-413-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-createPolicy-413-schema">
+ <div id="responses-A1PolicyManagement-createPolicy-schema-413" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Payload Too Large",
+ "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-A1PolicyManagement-createPolicy-413-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-createPolicy-schema-413');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-createPolicy-413-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-createPolicy-title-415"></h3>
+ <p id="examples-A1PolicyManagement-createPolicy-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-createPolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description);
+ } else {
+ $("#examples-A1PolicyManagement-createPolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description.substring(0, responseA1PolicyManagement415_description_break));
+ $("#examples-A1PolicyManagement-createPolicy-description-415").html(responseA1PolicyManagement415_description.substring(responseA1PolicyManagement415_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-createPolicy-415" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-createPolicy-415-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-createPolicy-415-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-createPolicy-415-schema">
+ <div id="responses-A1PolicyManagement-createPolicy-schema-415" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Unsupported Media Type",
+ "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-A1PolicyManagement-createPolicy-415-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-createPolicy-schema-415');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-createPolicy-415-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
<h3 id="examples-A1PolicyManagement-createPolicy-title-423"></h3>
<p id="examples-A1PolicyManagement-createPolicy-description-423" class="marked"></p>
<script>
@@ -2079,20 +2452,20 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-423" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Locked - HTTP Status code which can be used when the state is Locked",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ErrorInformation"
- },
- "example" : {
- "status" : 423,
- "title" : "Locked",
- "detail" : "State is Locked in the provided request."
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Locked - HTTP Status code which can be used when the state is Locked",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ErrorInformation"
+ },
+ "example" : {
+ "status" : 423,
+ "title" : "Locked",
+ "detail" : "State is Locked in the provided request."
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2160,15 +2533,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Too Many Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2236,15 +2609,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Internal Server Error",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2312,15 +2685,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Gateway",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2388,15 +2761,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-createPolicy-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Service Unavailable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2758,7 +3131,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 created A1 policy was deleted`;
+ var responseA1PolicyManagement204_description = `The A1 policy was deleted`;
var responseA1PolicyManagement204_description_break = responseA1PolicyManagement204_description.indexOf('\n');
if (responseA1PolicyManagement204_description_break == -1) {
$("#examples-A1PolicyManagement-deletePolicy-title-204").text("Status: 204 - " + responseA1PolicyManagement204_description);
@@ -2780,8 +3153,8 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-204" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "The created A1 policy was deleted"
+ var schemaWrapper = {
+ "description" : "The A1 policy was deleted"
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2849,15 +3222,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -2925,15 +3298,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unauthorized",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3001,15 +3374,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Forbidden",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3077,15 +3450,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3123,6 +3496,158 @@ Specifies the content type that the client expects to receive in response to the
<input id='responses-A1PolicyManagement-deletePolicy-404-schema-data' type='hidden' value=''></input>
</div>
</div>
+ <h3 id="examples-A1PolicyManagement-deletePolicy-title-405"></h3>
+ <p id="examples-A1PolicyManagement-deletePolicy-description-405" class="marked"></p>
+ <script>
+ var responseA1PolicyManagement405_description = `Method Not Allowed`;
+ var responseA1PolicyManagement405_description_break = responseA1PolicyManagement405_description.indexOf('\n');
+ if (responseA1PolicyManagement405_description_break == -1) {
+ $("#examples-A1PolicyManagement-deletePolicy-title-405").text("Status: 405 - " + responseA1PolicyManagement405_description);
+ } else {
+ $("#examples-A1PolicyManagement-deletePolicy-title-405").text("Status: 405 - " + responseA1PolicyManagement405_description.substring(0, responseA1PolicyManagement405_description_break));
+ $("#examples-A1PolicyManagement-deletePolicy-description-405").html(responseA1PolicyManagement405_description.substring(responseA1PolicyManagement405_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-deletePolicy-405" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-deletePolicy-405-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-deletePolicy-405-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-deletePolicy-405-schema">
+ <div id="responses-A1PolicyManagement-deletePolicy-schema-405" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Method Not Allowed",
+ "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-A1PolicyManagement-deletePolicy-405-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-deletePolicy-schema-405');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-deletePolicy-405-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-deletePolicy-title-406"></h3>
+ <p id="examples-A1PolicyManagement-deletePolicy-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-deletePolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
+ } else {
+ $("#examples-A1PolicyManagement-deletePolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-deletePolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-deletePolicy-406" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-deletePolicy-406-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-deletePolicy-406-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-deletePolicy-406-schema">
+ <div id="responses-A1PolicyManagement-deletePolicy-schema-406" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "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-A1PolicyManagement-deletePolicy-406-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-deletePolicy-schema-406');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-deletePolicy-406-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
<h3 id="examples-A1PolicyManagement-deletePolicy-title-423"></h3>
<p id="examples-A1PolicyManagement-deletePolicy-description-423" class="marked"></p>
<script>
@@ -3153,20 +3678,20 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-423" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Locked - HTTP Status code which can be used when the state is Locked",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ErrorInformation"
- },
- "example" : {
- "status" : 423,
- "title" : "Locked",
- "detail" : "State is Locked in the provided request."
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Locked - HTTP Status code which can be used when the state is Locked",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ErrorInformation"
+ },
+ "example" : {
+ "status" : 423,
+ "title" : "Locked",
+ "detail" : "State is Locked in the provided request."
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3234,15 +3759,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Too Many Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3310,15 +3835,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Internal Server Error",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3386,15 +3911,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Gateway",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3462,15 +3987,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-deletePolicy-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Service Unavailable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -3961,18 +4486,18 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Policy identities",
- "content" : {
- "application/json" : {
- "schema" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/PolicyInformation"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Policy identities",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/PolicyInformation"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4040,15 +4565,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4116,15 +4641,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unauthorized",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4192,15 +4717,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Forbidden",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4268,15 +4793,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4344,15 +4869,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Acceptable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4420,15 +4945,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Too Many Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4496,15 +5021,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Internal Server Error",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4572,15 +5097,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Gateway",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -4648,15 +5173,15 @@ Select policies of types with the given type name (type identity has the format
<div id="responses-A1PolicyManagement-getAllPolicies-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Service Unavailable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5051,20 +5576,20 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Policy found",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/PolicyObject"
- },
- "examples" : {
- "policyObject" : {
- "$ref" : "#/components/examples/PolicyObject"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Policy found",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyObject"
+ },
+ "examples" : {
+ "policyObject" : {
+ "$ref" : "#/components/examples/PolicyObject"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5132,15 +5657,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5208,15 +5733,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unauthorized",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5284,15 +5809,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Forbidden",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5360,15 +5885,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5436,15 +5961,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Acceptable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5512,15 +6037,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Too Many Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5588,15 +6113,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Internal Server Error",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5664,15 +6189,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Gateway",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5740,15 +6265,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicy-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Service Unavailable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -5789,6 +6314,1093 @@ Specifies the content type that the client expects to receive in response to the
</article>
</div>
<hr>
+ <div id="api-A1PolicyManagement-getPolicyStatus">
+ <article id="api-A1PolicyManagement-getPolicyStatus-0" data-group="User" data-name="getPolicyStatus" data-version="0">
+ <div class="pull-left">
+ <h1>getPolicyStatus</h1>
+ <p></p>
+ </div>
+ <div class="pull-right"></div>
+ <div class="clearfix"></div>
+ <p></p>
+ <p class="marked">Query a policy status</p>
+ <p></p>
+ <br />
+ <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies/{policyId}/status</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-getPolicyStatus-0-curl">Curl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-java">Java</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-dart">Dart</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-android">Android</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-groovy">Groovy</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-objc">Obj-C</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-javascript">JavaScript</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-angular">Angular</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-csharp">C#</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-php">PHP</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-perl">Perl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-python">Python</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyStatus-0-rust">Rust</a></li>
+ </ul>
+
+ <div class="tab-content">
+ <div class="tab-pane active" id="examples-A1PolicyManagement-getPolicyStatus-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}/status"
+</code></pre>
+ </div>
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-java">
+ <pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.A1PolicyManagementApi;
+
+import java.io.File;
+import java.util.*;
+
+public class A1PolicyManagementApiExample {
+ public static void main(String[] args) {
+
+ // Create an instance of the API class
+ A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
+ 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 {
+ Object result = apiInstance.getPolicyStatus(policyId, accept);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling A1PolicyManagementApi#getPolicyStatus");
+ e.printStackTrace();
+ }
+ }
+}
+</code></pre>
+ </div>
+
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-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 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.getPolicyStatus(policyId, accept);
+ print(result);
+} catch (e) {
+ print('Exception when calling DefaultApi->getPolicyStatus: $e\n');
+}
+
+</code></pre>
+ </div>
+
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-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 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.getPolicyStatus(policyId, accept);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling A1PolicyManagementApi#getPolicyStatus");
+ e.printStackTrace();
+ }
+ }
+}</code></pre>
+ </div>
+ <!--
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-groovy">
+ <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
+ </div> -->
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-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 *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 getPolicyStatusWith:policyId
+ accept:accept
+ completionHandler: ^(Object output, NSError* error) {
+ if (output) {
+ NSLog(@"%@", output);
+ }
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+}];
+</code></pre>
+ </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');
+
+// Create an instance of the API class
+var api = new A1PolicyManagementApi.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.
+};
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+api.getPolicyStatus(policyId, opts, callback);
+</code></pre>
+ </div>
+
+ <!--<div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-angular">
+ <pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
+ </div>-->
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-csharp">
+ <pre class="prettyprint"><code class="language-cs">using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class getPolicyStatusExample
+ {
+ public void main()
+ {
+
+ // Create an instance of the API class
+ var apiInstance = new A1PolicyManagementApi();
+ 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 {
+ Object result = apiInstance.getPolicyStatus(policyId, accept);
+ Debug.WriteLine(result);
+ } catch (Exception e) {
+ Debug.Print("Exception when calling A1PolicyManagementApi.getPolicyStatus: " + e.Message );
+ }
+ }
+ }
+}
+</code></pre>
+ </div>
+
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-php">
+ <pre class="prettyprint"><code class="language-php"><&#63;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 |
+$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->getPolicyStatus($policyId, $accept);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling A1PolicyManagementApi->getPolicyStatus: ', $e->getMessage(), PHP_EOL;
+}
+?></code></pre>
+ </div>
+
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-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 $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->getPolicyStatus(policyId => $policyId, accept => $accept);
+ print Dumper($result);
+};
+if ($@) {
+ warn "Exception when calling A1PolicyManagementApi->getPolicyStatus: $@\n";
+}</code></pre>
+ </div>
+
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-python">
+ <pre class="prettyprint"><code class="language-python">from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.A1PolicyManagementApi()
+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:
+ api_response = api_instance.get_policy_status(policyId, accept=accept)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling A1PolicyManagementApi->getPolicyStatus: %s\n" % e)</code></pre>
+ </div>
+
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-rust">
+ <pre class="prettyprint"><code class="language-rust">extern crate A1PolicyManagementApi;
+
+pub fn main() {
+ let policyId = policyId_example; // String
+ let accept = application/json; // String
+
+ let mut context = A1PolicyManagementApi::Context::default();
+ let result = client.getPolicyStatus(policyId, accept, &context).wait();
+
+ println!("{:?}", result);
+}
+</code></pre>
+ </div>
+ </div>
+
+ <h2>Scopes</h2>
+ <table>
+
+ </table>
+
+ <h2>Parameters</h2>
+
+ <div class="methodsubtabletitle">Path parameters</div>
+ <table id="methodsubtable">
+ <tr>
+ <th width="150px">Name</th>
+ <th>Description</th>
+ </tr>
+ <tr><td style="width:150px;">policyId*</td>
+<td>
+
+
+ <div id="d2e199_getPolicyStatus_policyId">
+ <div class="json-schema-view">
+ <div class="primitive">
+ <span class="type">
+ String
+ </span>
+
+ </div>
+ <div class="inner required">
+ Required
+ </div>
+ </div>
+ </div>
+</td>
+</tr>
+
+ </table>
+
+ <div class="methodsubtabletitle">Header parameters</div>
+ <table id="methodsubtable">
+ <tr>
+ <th width="150px">Name</th>
+ <th>Description</th>
+ </tr>
+ <tr><td style="width:150px;">Accept</td>
+<td>
+
+
+ <div id="d2e199_getPolicyStatus_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>
+ </div>
+</td>
+</tr>
+
+ </table>
+
+
+
+
+ <h2>Responses</h2>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-200"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-description-200" class="marked"></p>
+ <script>
+ var responseA1PolicyManagement200_description = `OK`;
+ var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n');
+ if (responseA1PolicyManagement200_description_break == -1) {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-200" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-200-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-200-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-200-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-200" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "OK",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyStatusObject"
+ }
+ }
+ }
+};
+ 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-A1PolicyManagement-getPolicyStatus-200-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-200');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-200-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-400"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-400" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-400-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-400-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-400-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-400" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "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-A1PolicyManagement-getPolicyStatus-400-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-400');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-400-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-401"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-401" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-401-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-401-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-401-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-401" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "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-A1PolicyManagement-getPolicyStatus-401-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-401');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-401-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-403"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-403" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-403-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-403-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-403-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-403" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "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-A1PolicyManagement-getPolicyStatus-403-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-403');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-403-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-404"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-404" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-404-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-404-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-404-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-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-A1PolicyManagement-getPolicyStatus-404-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-404');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-404-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-406"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-406" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-406-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-406-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-406-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-406" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "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-A1PolicyManagement-getPolicyStatus-406-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-406');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-406-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <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_break = responseA1PolicyManagement429_description.indexOf('\n');
+ if (responseA1PolicyManagement429_description_break == -1) {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-429" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-429-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-429-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-429-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-429" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "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-A1PolicyManagement-getPolicyStatus-429-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-429');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-429-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-500"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-500" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-500-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-500-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-500-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-500" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "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-A1PolicyManagement-getPolicyStatus-500-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-500');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-500-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-502"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-502" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-502-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-502-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-502-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-502" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "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-A1PolicyManagement-getPolicyStatus-502-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-502');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-502-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ <h3 id="examples-A1PolicyManagement-getPolicyStatus-title-503"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyStatus-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-getPolicyStatus-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description);
+ } else {
+ $("#examples-A1PolicyManagement-getPolicyStatus-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break));
+ $("#examples-A1PolicyManagement-getPolicyStatus-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break));
+ }
+ </script>
+
+
+ <ul id="responses-detail-A1PolicyManagement-getPolicyStatus-503" class="nav nav-tabs nav-tabs-examples" >
+ <li class="active">
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyStatus-503-schema">Schema</a>
+ </li>
+
+
+
+
+ </ul>
+
+
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyStatus-503-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyStatus-503-schema">
+ <div id="responses-A1PolicyManagement-getPolicyStatus-schema-503" class="exampleStyle">
+ <script>
+ $(document).ready(function() {
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "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-A1PolicyManagement-getPolicyStatus-503-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyStatus-schema-503');
+ result.empty();
+ result.append(view.render());
+ });
+ </script>
+ </div>
+ <input id='responses-A1PolicyManagement-getPolicyStatus-503-schema-data' type='hidden' value=''></input>
+ </div>
+ </div>
+ </article>
+ </div>
+ <hr>
<div id="api-A1PolicyManagement-getPolicyTypeDefinition">
<article id="api-A1PolicyManagement-getPolicyTypeDefinition-0" data-group="User" data-name="getPolicyTypeDefinition" data-version="0">
<div class="pull-left">
@@ -5846,7 +7458,7 @@ public class A1PolicyManagementApiExample {
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.getPolicyTypeDefinition(policyTypeId, accept);
+ PolicyTypeObject result = apiInstance.getPolicyTypeDefinition(policyTypeId, accept);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling A1PolicyManagementApi#getPolicyTypeDefinition");
@@ -5885,7 +7497,7 @@ public class A1PolicyManagementApiExample {
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.getPolicyTypeDefinition(policyTypeId, accept);
+ PolicyTypeObject result = apiInstance.getPolicyTypeDefinition(policyTypeId, accept);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling A1PolicyManagementApi#getPolicyTypeDefinition");
@@ -5908,7 +7520,7 @@ String *accept = application/json; // Specifies the content type that the client
[apiInstance getPolicyTypeDefinitionWith:policyTypeId
accept:accept
- completionHandler: ^(Object output, NSError* error) {
+ completionHandler: ^(PolicyTypeObject output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -5963,7 +7575,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 {
- Object result = apiInstance.getPolicyTypeDefinition(policyTypeId, accept);
+ PolicyTypeObject result = apiInstance.getPolicyTypeDefinition(policyTypeId, accept);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling A1PolicyManagementApi.getPolicyTypeDefinition: " + e.Message );
@@ -6143,20 +7755,20 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - schema of the given policy type",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/PolicyObject"
- },
- "examples" : {
- "policyObject" : {
- "$ref" : "#/components/examples/PolicyObject"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - schema of the given policy type",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyTypeObject"
+ },
+ "examples" : {
+ "PolicyTypeObject" : {
+ "$ref" : "#/components/examples/PolicyTypeObject"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6224,15 +7836,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6300,15 +7912,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unauthorized",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6376,15 +7988,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Forbidden",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6452,15 +8064,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6528,15 +8140,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Acceptable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6604,15 +8216,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Too Many Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6680,15 +8292,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Internal Server Error",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6756,15 +8368,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Gateway",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -6832,15 +8444,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-A1PolicyManagement-getPolicyTypeDefinition-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Service Unavailable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7297,18 +8909,23 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Policy Type IDs found Ok",
- "content" : {
- "application/json" : {
- "schema" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/PolicyTypeInformation"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Policy Type IDs found Ok",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/PolicyTypeInformation"
+ }
+ },
+ "examples" : {
+ "PolicyTypeInformation" : {
+ "$ref" : "#/components/examples/PolicyTypeInformation"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7376,15 +8993,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7452,15 +9069,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unauthorized",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7528,15 +9145,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Forbidden",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7604,15 +9221,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7680,15 +9297,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Acceptable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7756,15 +9373,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Too Many Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7832,15 +9449,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Internal Server Error",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7908,15 +9525,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Gateway",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -7984,15 +9601,15 @@ Select types that are compatible with the given version. This parameter is only
<div id="responses-A1PolicyManagement-getPolicyTypes-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Service Unavailable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8337,20 +9954,20 @@ pub fn main() {
<p class="marked"></p>
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/PolicyObject"
- },
- "examples" : {
- "policyObject" : {
- "$ref" : "#/components/examples/PolicyObject"
- }
- }
- }
- },
- "required" : true
+ var schemaWrapper = {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyObject"
+ },
+ "examples" : {
+ "policyObject" : {
+ "$ref" : "#/components/examples/PolicyObject"
+ }
+ }
+ }
+ },
+ "required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
@@ -8413,15 +10030,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Policy updated",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/PolicyObject"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Policy updated",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyObject"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8489,15 +10106,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8565,15 +10182,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unauthorized",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unauthorized",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8641,15 +10258,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Forbidden",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Forbidden",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8717,15 +10334,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8793,15 +10410,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Acceptable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Acceptable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8869,15 +10486,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-411" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Length Required",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Length Required",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -8945,15 +10562,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-413" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Payload Too Large",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Payload Too Large",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -9021,15 +10638,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-415" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Unsupported Media Type",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Unsupported Media Type",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -9097,20 +10714,20 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-423" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Locked - HTTP Status code which can be used when the state is Locked",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ErrorInformation"
- },
- "example" : {
- "status" : 423,
- "title" : "Locked",
- "detail" : "State is Locked in the provided request."
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Locked - HTTP Status code which can be used when the state is Locked",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ErrorInformation"
+ },
+ "example" : {
+ "status" : 423,
+ "title" : "Locked",
+ "detail" : "State is Locked in the provided request."
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -9178,15 +10795,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Too Many Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Too Many Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -9254,15 +10871,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Internal Server Error",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Internal Server Error",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -9330,15 +10947,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Gateway",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Gateway",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -9406,15 +11023,15 @@ $(document).ready(function() {
<div id="responses-A1PolicyManagement-putPolicy-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Service Unavailable",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Service Unavailable",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -9734,15 +11351,15 @@ pub fn main() {
<div id="responses-Configuration-getConfiguration-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Application configuration received",
- "content" : {
- "application/json" : {
- "schema" : {
- "type" : "string"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Application configuration received",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "string"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -9810,15 +11427,15 @@ pub fn main() {
<div id="responses-Configuration-getConfiguration-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -10125,15 +11742,15 @@ pub fn main() {
<p class="marked"></p>
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "content" : {
- "application/json" : {
- "schema" : {
- "type" : "object"
- }
- }
- },
- "required" : true
+ var schemaWrapper = {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ },
+ "required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
@@ -10196,15 +11813,15 @@ $(document).ready(function() {
<div id="responses-Configuration-putConfiguration-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Configuration updated",
- "content" : {
- "*/*" : {
- "schema" : {
- "$ref" : "#/components/schemas/void"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Configuration updated",
+ "content" : {
+ "*/*" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/void"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -10272,15 +11889,15 @@ $(document).ready(function() {
<div id="responses-Configuration-putConfiguration-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -10600,20 +12217,20 @@ pub fn main() {
<div id="responses-HealthCheck-getStatus-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK- Service is living Ok",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/StatusInfo"
- },
- "examples" : {
- "status_info" : {
- "$ref" : "#/components/examples/StatusInfo"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK- Service is living Ok",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/StatusInfo"
+ },
+ "examples" : {
+ "status_info" : {
+ "$ref" : "#/components/examples/StatusInfo"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -11045,20 +12662,20 @@ The identity of a Near-RT RIC to get information for.
<div id="responses-NearRTRICRepository-getRic-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Near-RT RIC is found OK",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/RicInfo"
- },
- "examples" : {
- "ric_info" : {
- "$ref" : "#/components/examples/RicInfo"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Near-RT RIC is found OK",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/RicInfo"
+ },
+ "examples" : {
+ "ric_info" : {
+ "$ref" : "#/components/examples/RicInfo"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -11126,15 +12743,15 @@ The identity of a Near-RT RIC to get information for.
<div id="responses-NearRTRICRepository-getRic-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -11532,20 +13149,20 @@ The identity of a policy type. If given, all Near-RT RICs supporting the policy
<div id="responses-NearRTRICRepository-getRics-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/RicInfoList"
- },
- "examples" : {
- "ric_info_list" : {
- "$ref" : "#/components/examples/RicInfoList"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/RicInfoList"
+ },
+ "examples" : {
+ "ric_info_list" : {
+ "$ref" : "#/components/examples/RicInfoList"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -11613,15 +13230,15 @@ The identity of a policy type. If given, all Near-RT RICs supporting the policy
<div id="responses-NearRTRICRepository-getRics-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -12019,15 +13636,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-ServiceRegistryAndSupervision-deleteService-schema-204" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "No Content - Service unregistered",
- "content" : {
- "*/*" : {
- "schema" : {
- "type" : "object"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "No Content - Service unregistered",
+ "content" : {
+ "*/*" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -12095,15 +13712,15 @@ Specifies the content type that the client expects to receive in response to the
<div id="responses-ServiceRegistryAndSupervision-deleteService-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -12501,20 +14118,20 @@ The identity of the service
<div id="responses-ServiceRegistryAndSupervision-getServices-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK",
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ServiceStatusList"
- },
- "examples" : {
- "service_status_list" : {
- "$ref" : "#/components/examples/ServiceStatusList"
- }
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ServiceStatusList"
+ },
+ "examples" : {
+ "service_status_list" : {
+ "$ref" : "#/components/examples/ServiceStatusList"
+ }
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -12582,15 +14199,15 @@ The identity of the service
<div id="responses-ServiceRegistryAndSupervision-getServices-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -12978,15 +14595,15 @@ Specifies the content type that the client expects to receive in response to the
<p class="marked"></p>
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "content" : {
- "application/json" : {
- "schema" : {
- "type" : "string"
- }
- }
- },
- "required" : false
+ var schemaWrapper = {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "string"
+ }
+ }
+ },
+ "required" : false
};
var schema = findNode('schema',schemaWrapper).schema;
@@ -13049,15 +14666,15 @@ $(document).ready(function() {
<div id="responses-ServiceRegistryAndSupervision-keepAliveService-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Service supervision timer refreshed, OK",
- "content" : {
- "*/*" : {
- "schema" : {
- "type" : "object"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Service supervision timer refreshed, OK",
+ "content" : {
+ "*/*" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -13125,15 +14742,15 @@ $(document).ready(function() {
<div id="responses-ServiceRegistryAndSupervision-keepAliveService-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Not Found",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Not Found",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -13212,10 +14829,10 @@ $(document).ready(function() {
-H "Accept: */*,application/problem+json" \
-H "Content-Type: application/json" \
"https://example.com/a1-policy-management/v1/services" \
- -d '{
- &quot;keepAliveIntervalSeconds&quot; : 0,
- &quot;callbackUrl&quot; : &quot;callbackUrl&quot;,
- &quot;serviceId&quot; : &quot;serviceId&quot;
+ -d '{
+ &quot;keepAliveIntervalSeconds&quot; : 0,
+ &quot;callbackUrl&quot; : &quot;callbackUrl&quot;,
+ &quot;serviceId&quot; : &quot;serviceId&quot;
}'
</code></pre>
</div>
@@ -13447,15 +15064,15 @@ pub fn main() {
<p class="marked"></p>
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ServiceRegistrationInfo"
- }
- }
- },
- "required" : true
+ var schemaWrapper = {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ServiceRegistrationInfo"
+ }
+ }
+ },
+ "required" : true
};
var schema = findNode('schema',schemaWrapper).schema;
@@ -13518,15 +15135,15 @@ $(document).ready(function() {
<div id="responses-ServiceRegistryAndSupervision-putService-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "OK - Service updated",
- "content" : {
- "*/*" : {
- "schema" : {
- "type" : "object"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "OK - Service updated",
+ "content" : {
+ "*/*" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -13594,15 +15211,15 @@ $(document).ready(function() {
<div id="responses-ServiceRegistryAndSupervision-putService-schema-201" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Created - Service created",
- "content" : {
- "*/*" : {
- "schema" : {
- "type" : "object"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Created - Service created",
+ "content" : {
+ "*/*" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
@@ -13670,15 +15287,15 @@ $(document).ready(function() {
<div id="responses-ServiceRegistryAndSupervision-putService-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
- var schemaWrapper = {
- "description" : "Bad Request",
- "content" : {
- "application/problem+json" : {
- "schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
- }
- }
- }
+ var schemaWrapper = {
+ "description" : "Bad Request",
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ }
};
var schema = findNode('schema',schemaWrapper).schema;
if (!schema) {
diff --git a/docs/offeredapis/swagger/a1pms-api-v3.json b/docs/offeredapis/swagger/a1pms-api-v3.json
index c844073a..d8d3041e 100644
--- a/docs/offeredapis/swagger/a1pms-api-v3.json
+++ b/docs/offeredapis/swagger/a1pms-api-v3.json
@@ -241,6 +241,11 @@
"200" : {
"content" : {
"application/json" : {
+ "examples" : {
+ "PolicyTypeInformation" : {
+ "$ref" : "#/components/examples/PolicyTypeInformation"
+ }
+ },
"schema" : {
"items" : {
"$ref" : "#/components/schemas/PolicyTypeInformation"
@@ -375,12 +380,12 @@
"content" : {
"application/json" : {
"examples" : {
- "policyObject" : {
- "$ref" : "#/components/examples/PolicyObject"
+ "PolicyTypeObject" : {
+ "$ref" : "#/components/examples/PolicyTypeObject"
}
},
"schema" : {
- "$ref" : "#/components/schemas/PolicyObject"
+ "$ref" : "#/components/schemas/PolicyTypeObject"
}
}
},
@@ -507,7 +512,7 @@
} ],
"responses" : {
"204" : {
- "description" : "The created A1 policy was deleted"
+ "description" : "The A1 policy was deleted"
},
"400" : {
"content" : {
@@ -549,6 +554,26 @@
},
"description" : "Not Found"
},
+ "405" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Method Not Allowed"
+ },
+ "406" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Not Acceptable"
+ },
"423" : {
"content" : {
"application/problem+json" : {
@@ -919,6 +944,136 @@
"tags" : [ "A1 Policy Management" ]
}
},
+ "/policies/{policyId}/status" : {
+ "get" : {
+ "description" : "Query a policy status",
+ "operationId" : "getPolicyStatus",
+ "parameters" : [ {
+ "explode" : false,
+ "in" : "path",
+ "name" : "policyId",
+ "required" : true,
+ "schema" : {
+ "type" : "string"
+ },
+ "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,
+ "in" : "header",
+ "name" : "Accept",
+ "required" : false,
+ "schema" : {
+ "example" : "application/json",
+ "type" : "string"
+ },
+ "style" : "simple"
+ } ],
+ "responses" : {
+ "200" : {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyStatusObject"
+ }
+ }
+ },
+ "description" : "OK"
+ },
+ "400" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Bad Request"
+ },
+ "401" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Unauthorized"
+ },
+ "403" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Forbidden"
+ },
+ "404" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Not Found"
+ },
+ "406" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Not Acceptable"
+ },
+ "429" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Too Many Request"
+ },
+ "500" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Internal Server Error"
+ },
+ "502" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Bad Gateway"
+ },
+ "503" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Service Unavailable"
+ }
+ },
+ "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.",
@@ -1158,6 +1313,16 @@
},
"description" : "Not Found"
},
+ "405" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Method Not Allowed"
+ },
"406" : {
"content" : {
"application/problem+json" : {
@@ -1168,6 +1333,36 @@
},
"description" : "Not Acceptable"
},
+ "409" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Conflict"
+ },
+ "413" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Payload Too Large"
+ },
+ "415" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Unsupported Media Type"
+ },
"423" : {
"content" : {
"application/problem+json" : {
@@ -1652,6 +1847,56 @@
"pdb" : 50
}
}
+ },
+ "PolicyTypeInformation" : {
+ "value" : [ {
+ "policyTypeId" : "STD_QOS2_0.1.0",
+ "nearRtRicId" : "ricsim_g3_2"
+ }, {
+ "policyTypeId" : "STD_QOS_0_2_0",
+ "nearRtRicId" : "ricsim_g3_2"
+ }, {
+ "policyTypeId" : "STD_QOS2_0.1.0",
+ "nearRtRicId" : "ricsim_g3_1"
+ }, {
+ "policyTypeId" : "STD_QOS_0_2_0",
+ "nearRtRicId" : "ricsim_g3_1"
+ } ]
+ },
+ "PolicyTypeObject" : {
+ "value" : {
+ "policySchema" : {
+ "$schema" : "http://json-schema.org/draft-07/schema#",
+ "title" : "STD_QOS_0_2_0",
+ "description" : "STD QOS2 policy type",
+ "type" : "object",
+ "properties" : {
+ "scope" : {
+ "type" : "object",
+ "properties" : {
+ "ueId" : {
+ "type" : "string"
+ },
+ "qosId" : {
+ "type" : "string"
+ }
+ },
+ "additionalProperties" : false,
+ "required" : [ "ueId", "qosId" ]
+ },
+ "qosObjectives" : {
+ "type" : "object",
+ "properties" : {
+ "priorityLevel" : {
+ "type" : "number"
+ }
+ },
+ "additionalProperties" : false,
+ "required" : [ "priorityLevel" ]
+ }
+ }
+ }
+ }
}
},
"responses" : {
@@ -1814,6 +2059,10 @@
"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",
+ "example" : {
+ "policyTypeId" : "STD_QOS2_0.1.0",
+ "nearRtRicId" : "ricsim_g3_2"
+ },
"properties" : {
"policyTypeId" : {
"description" : "Identity of the policy type",
@@ -1888,6 +2137,80 @@
"description" : "Policy Object is a JSON representation of an A1 policy",
"type" : "object"
},
+ "PolicyTypeObject" : {
+ "description" : "policy type object as defined in A1TD",
+ "example" : {
+ "policySchema" : {
+ "$schema" : "http://json-schema.org/draft-07/schema#",
+ "title" : "STD_QOS_0_2_0",
+ "description" : "STD QOS policy type",
+ "type" : "object",
+ "properties" : {
+ "scope" : {
+ "type" : "object",
+ "properties" : {
+ "ueId" : {
+ "type" : "string"
+ },
+ "qosId" : {
+ "type" : "string"
+ }
+ },
+ "additionalProperties" : false,
+ "required" : [ "ueId", "qosId" ]
+ },
+ "qosObjectives" : {
+ "type" : "object",
+ "properties" : {
+ "priorityLevel" : {
+ "type" : "number"
+ }
+ },
+ "additionalProperties" : false,
+ "required" : [ "priorityLevel" ]
+ }
+ }
+ },
+ "statusSchema" : {
+ "$schema" : "http://json-schema.org/draft-07/schema#",
+ "title" : "STD_QOS_0.2.0",
+ "description" : "STD QOS policy type status",
+ "type" : "object",
+ "properties" : {
+ "enforceStatus" : {
+ "type" : "string"
+ },
+ "enforceReason" : {
+ "type" : "string"
+ },
+ "additionalProperties" : false,
+ "required" : [ "enforceStatus" ]
+ }
+ }
+ },
+ "properties" : {
+ "policySchema" : {
+ "$ref" : "#/components/schemas/PolicySchema"
+ },
+ "statusSchema" : {
+ "$ref" : "#/components/schemas/StatusSchema"
+ }
+ },
+ "required" : [ "policySchema" ],
+ "type" : "object"
+ },
+ "PolicySchema" : {
+ "description" : "The schemas are policy type specific",
+ "type" : "object"
+ },
+ "StatusSchema" : {
+ "description" : "The optional schema for policy status",
+ "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.",
+ "type" : "object"
+ },
"void" : {
"description" : "Void/empty",
"type" : "object"
diff --git a/docs/offeredapis/swagger/pms-api-v3.json b/docs/offeredapis/swagger/pms-api-v3.json
index c844073a..d8d3041e 100644
--- a/docs/offeredapis/swagger/pms-api-v3.json
+++ b/docs/offeredapis/swagger/pms-api-v3.json
@@ -241,6 +241,11 @@
"200" : {
"content" : {
"application/json" : {
+ "examples" : {
+ "PolicyTypeInformation" : {
+ "$ref" : "#/components/examples/PolicyTypeInformation"
+ }
+ },
"schema" : {
"items" : {
"$ref" : "#/components/schemas/PolicyTypeInformation"
@@ -375,12 +380,12 @@
"content" : {
"application/json" : {
"examples" : {
- "policyObject" : {
- "$ref" : "#/components/examples/PolicyObject"
+ "PolicyTypeObject" : {
+ "$ref" : "#/components/examples/PolicyTypeObject"
}
},
"schema" : {
- "$ref" : "#/components/schemas/PolicyObject"
+ "$ref" : "#/components/schemas/PolicyTypeObject"
}
}
},
@@ -507,7 +512,7 @@
} ],
"responses" : {
"204" : {
- "description" : "The created A1 policy was deleted"
+ "description" : "The A1 policy was deleted"
},
"400" : {
"content" : {
@@ -549,6 +554,26 @@
},
"description" : "Not Found"
},
+ "405" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Method Not Allowed"
+ },
+ "406" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Not Acceptable"
+ },
"423" : {
"content" : {
"application/problem+json" : {
@@ -919,6 +944,136 @@
"tags" : [ "A1 Policy Management" ]
}
},
+ "/policies/{policyId}/status" : {
+ "get" : {
+ "description" : "Query a policy status",
+ "operationId" : "getPolicyStatus",
+ "parameters" : [ {
+ "explode" : false,
+ "in" : "path",
+ "name" : "policyId",
+ "required" : true,
+ "schema" : {
+ "type" : "string"
+ },
+ "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,
+ "in" : "header",
+ "name" : "Accept",
+ "required" : false,
+ "schema" : {
+ "example" : "application/json",
+ "type" : "string"
+ },
+ "style" : "simple"
+ } ],
+ "responses" : {
+ "200" : {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/PolicyStatusObject"
+ }
+ }
+ },
+ "description" : "OK"
+ },
+ "400" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Bad Request"
+ },
+ "401" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Unauthorized"
+ },
+ "403" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Forbidden"
+ },
+ "404" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Not Found"
+ },
+ "406" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Not Acceptable"
+ },
+ "429" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Too Many Request"
+ },
+ "500" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Internal Server Error"
+ },
+ "502" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Bad Gateway"
+ },
+ "503" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Service Unavailable"
+ }
+ },
+ "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.",
@@ -1158,6 +1313,16 @@
},
"description" : "Not Found"
},
+ "405" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Method Not Allowed"
+ },
"406" : {
"content" : {
"application/problem+json" : {
@@ -1168,6 +1333,36 @@
},
"description" : "Not Acceptable"
},
+ "409" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Conflict"
+ },
+ "413" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Payload Too Large"
+ },
+ "415" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Unsupported Media Type"
+ },
"423" : {
"content" : {
"application/problem+json" : {
@@ -1652,6 +1847,56 @@
"pdb" : 50
}
}
+ },
+ "PolicyTypeInformation" : {
+ "value" : [ {
+ "policyTypeId" : "STD_QOS2_0.1.0",
+ "nearRtRicId" : "ricsim_g3_2"
+ }, {
+ "policyTypeId" : "STD_QOS_0_2_0",
+ "nearRtRicId" : "ricsim_g3_2"
+ }, {
+ "policyTypeId" : "STD_QOS2_0.1.0",
+ "nearRtRicId" : "ricsim_g3_1"
+ }, {
+ "policyTypeId" : "STD_QOS_0_2_0",
+ "nearRtRicId" : "ricsim_g3_1"
+ } ]
+ },
+ "PolicyTypeObject" : {
+ "value" : {
+ "policySchema" : {
+ "$schema" : "http://json-schema.org/draft-07/schema#",
+ "title" : "STD_QOS_0_2_0",
+ "description" : "STD QOS2 policy type",
+ "type" : "object",
+ "properties" : {
+ "scope" : {
+ "type" : "object",
+ "properties" : {
+ "ueId" : {
+ "type" : "string"
+ },
+ "qosId" : {
+ "type" : "string"
+ }
+ },
+ "additionalProperties" : false,
+ "required" : [ "ueId", "qosId" ]
+ },
+ "qosObjectives" : {
+ "type" : "object",
+ "properties" : {
+ "priorityLevel" : {
+ "type" : "number"
+ }
+ },
+ "additionalProperties" : false,
+ "required" : [ "priorityLevel" ]
+ }
+ }
+ }
+ }
}
},
"responses" : {
@@ -1814,6 +2059,10 @@
"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",
+ "example" : {
+ "policyTypeId" : "STD_QOS2_0.1.0",
+ "nearRtRicId" : "ricsim_g3_2"
+ },
"properties" : {
"policyTypeId" : {
"description" : "Identity of the policy type",
@@ -1888,6 +2137,80 @@
"description" : "Policy Object is a JSON representation of an A1 policy",
"type" : "object"
},
+ "PolicyTypeObject" : {
+ "description" : "policy type object as defined in A1TD",
+ "example" : {
+ "policySchema" : {
+ "$schema" : "http://json-schema.org/draft-07/schema#",
+ "title" : "STD_QOS_0_2_0",
+ "description" : "STD QOS policy type",
+ "type" : "object",
+ "properties" : {
+ "scope" : {
+ "type" : "object",
+ "properties" : {
+ "ueId" : {
+ "type" : "string"
+ },
+ "qosId" : {
+ "type" : "string"
+ }
+ },
+ "additionalProperties" : false,
+ "required" : [ "ueId", "qosId" ]
+ },
+ "qosObjectives" : {
+ "type" : "object",
+ "properties" : {
+ "priorityLevel" : {
+ "type" : "number"
+ }
+ },
+ "additionalProperties" : false,
+ "required" : [ "priorityLevel" ]
+ }
+ }
+ },
+ "statusSchema" : {
+ "$schema" : "http://json-schema.org/draft-07/schema#",
+ "title" : "STD_QOS_0.2.0",
+ "description" : "STD QOS policy type status",
+ "type" : "object",
+ "properties" : {
+ "enforceStatus" : {
+ "type" : "string"
+ },
+ "enforceReason" : {
+ "type" : "string"
+ },
+ "additionalProperties" : false,
+ "required" : [ "enforceStatus" ]
+ }
+ }
+ },
+ "properties" : {
+ "policySchema" : {
+ "$ref" : "#/components/schemas/PolicySchema"
+ },
+ "statusSchema" : {
+ "$ref" : "#/components/schemas/StatusSchema"
+ }
+ },
+ "required" : [ "policySchema" ],
+ "type" : "object"
+ },
+ "PolicySchema" : {
+ "description" : "The schemas are policy type specific",
+ "type" : "object"
+ },
+ "StatusSchema" : {
+ "description" : "The optional schema for policy status",
+ "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.",
+ "type" : "object"
+ },
"void" : {
"description" : "Void/empty",
"type" : "object"
diff --git a/docs/offeredapis/swagger/pms-api-v3.yaml b/docs/offeredapis/swagger/pms-api-v3.yaml
index 46f881e5..8bcfdf4b 100644
--- a/docs/offeredapis/swagger/pms-api-v3.yaml
+++ b/docs/offeredapis/swagger/pms-api-v3.yaml
@@ -215,7 +215,9 @@ paths:
items:
$ref: '#/components/schemas/PolicyTypeInformation'
type: array
-
+ examples:
+ PolicyTypeInformation:
+ $ref: '#/components/examples/PolicyTypeInformation'
description: OK - Policy Type IDs found Ok
'400':
$ref: '#/components/responses/400'
@@ -261,10 +263,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PolicyObject'
+ $ref: '#/components/schemas/PolicyTypeObject'
examples:
- policyObject:
- $ref: '#/components/examples/PolicyObject'
+ PolicyTypeObject:
+ $ref: '#/components/examples/PolicyTypeObject'
description: OK - schema of the given policy type
'400':
$ref: '#/components/responses/400'
@@ -361,7 +363,7 @@ paths:
example: application/json
responses:
'204':
- description: 'The created A1 policy was deleted'
+ description: 'The A1 policy was deleted'
'400':
$ref: '#/components/responses/400'
'401':
@@ -370,6 +372,10 @@ paths:
$ref: '#/components/responses/403'
'404':
$ref: '#/components/responses/404'
+ '405':
+ $ref: '#/components/responses/405'
+ '406':
+ $ref: '#/components/responses/406'
'423':
$ref: '#/components/responses/Locked'
'429':
@@ -431,6 +437,53 @@ paths:
description: Returns a policy
tags:
- A1 Policy Management
+ /policies/{policyId}/status:
+ get:
+ operationId: getPolicyStatus
+ parameters:
+ - explode: false
+ in: path
+ name: policyId
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: Specifies the content type that the client expects to receive in response to the request.
+ Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ type: string
+ example: application/json
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PolicyStatusObject'
+ description: OK
+ '400':
+ $ref: '#/components/responses/400'
+ '401':
+ $ref: '#/components/responses/401'
+ '403':
+ $ref: '#/components/responses/403'
+ '404':
+ $ref: '#/components/responses/404'
+ '406':
+ $ref: '#/components/responses/406'
+ '429':
+ $ref: '#/components/responses/429'
+ '500':
+ $ref: '#/components/responses/500'
+ '502':
+ $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.\
@@ -537,8 +590,16 @@ paths:
$ref: '#/components/responses/403'
'404':
$ref: '#/components/responses/404'
+ '405':
+ $ref: '#/components/responses/405'
'406':
$ref: '#/components/responses/406'
+ '409':
+ $ref: '#/components/responses/409'
+ '413':
+ $ref: '#/components/responses/413'
+ '415':
+ $ref: '#/components/responses/415'
'423':
$ref: '#/components/responses/Locked'
'429':
@@ -831,6 +892,43 @@ components:
mfbr: 200
priorityLevel: 3
pdb: 50
+ PolicyTypeInformation:
+ value:
+ - policyTypeId: STD_QOS2_0.1.0
+ nearRtRicId: ricsim_g3_2
+ - policyTypeId: STD_QOS_0_2_0
+ nearRtRicId: ricsim_g3_2
+ - policyTypeId: STD_QOS2_0.1.0
+ nearRtRicId: ricsim_g3_1
+ - policyTypeId: STD_QOS_0_2_0
+ nearRtRicId: ricsim_g3_1
+ PolicyTypeObject:
+ value:
+ policySchema:
+ "$schema": http://json-schema.org/draft-07/schema#
+ title: STD_QOS_0_2_0
+ description: STD QOS2 policy type
+ type: object
+ properties:
+ scope:
+ type: object
+ properties:
+ ueId:
+ type: string
+ qosId:
+ type: string
+ additionalProperties: false
+ required:
+ - ueId
+ - qosId
+ qosObjectives:
+ type: object
+ properties:
+ priorityLevel:
+ type: number
+ additionalProperties: false
+ required:
+ - priorityLevel
schemas:
PolicyTypeInformation:
description: >-
@@ -847,6 +945,9 @@ components:
required:
- policyTypeId
- nearRtRicId
+ example:
+ policyTypeId: STD_QOS2_0.1.0
+ nearRtRicId: ricsim_g3_2
PolicyObjectInformation:
description: Information related to the creation of the policy
type: object
@@ -907,6 +1008,64 @@ components:
PolicyObject:
description: 'Policy Object is a JSON representation of an A1 policy'
type: object
+ PolicyTypeObject:
+ description: 'policy type object as defined in A1TD'
+ type: object
+ properties:
+ policySchema:
+ $ref: '#/components/schemas/PolicySchema'
+ statusSchema:
+ $ref: '#/components/schemas/StatusSchema'
+ required:
+ - "policySchema"
+ example:
+ policySchema:
+ "$schema": http://json-schema.org/draft-07/schema#
+ title: STD_QOS_0_2_0
+ description: STD QOS policy type
+ type: object
+ properties:
+ scope:
+ type: object
+ properties:
+ ueId:
+ type: string
+ qosId:
+ type: string
+ additionalProperties: false
+ required:
+ - ueId
+ - qosId
+ qosObjectives:
+ type: object
+ properties:
+ priorityLevel:
+ type: number
+ additionalProperties: false
+ required:
+ - priorityLevel
+ statusSchema:
+ "$schema": http://json-schema.org/draft-07/schema#
+ title: STD_QOS_0.2.0
+ description: STD QOS policy type status
+ type: object
+ properties:
+ enforceStatus:
+ type: string
+ enforceReason:
+ type: string
+ additionalProperties: false
+ required:
+ - enforceStatus
+ PolicySchema:
+ description: 'The schemas are policy type specific'
+ type: object
+ StatusSchema:
+ description: 'The optional schema for policy status'
+ 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.'
+ type: object
void:
description: Void/empty
type: object