Changing implementation for url to align with the latest specification.
Change-Id: I2f71c507d5f8f51496f0788504020bb98264fc5f
Signed-off-by: naman.gupta <naman.gupta@samsung.com>
"version": "2.1.0"
},
"paths": {
- "/a1-p/healthcheck": {
+ "/A1-P/v2/healthcheck": {
"get": {
"description": "Perform a healthcheck on a1\n",
"tags": [
}
}
},
- "/a1-p/policytypes": {
+ "/A1-P/v2/policytypes": {
"get": {
"description": "Get a list of all registered policy type ids",
"produces": [
}
}
},
- "/a1-p/policytypes/{policy_type_id}": {
+ "/A1-P/v2/policytypes/{policy_type_id}": {
"get": {
"description": "Get this policy type\n",
"produces": [
}
]
},
- "/a1-p/policytypes/{policy_type_id}/policies": {
+ "/A1-P/v2/policytypes/{policy_type_id}/policies": {
"get": {
"description": "get a list of all policy instance ids for this policy type id",
"produces": [
}
]
},
- "/a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id}": {
+ "/A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id}": {
"get": {
"description": "Retrieve the policy instance\n",
"produces": [
}
]
},
- "/a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id}/status": {
+ "/A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id}/status": {
"get": {
"description": "Retrieve the policy instance status across all handlers of the policy If this endpoint returns successfully (200), it is either IN EFFECT or NOT IN EFFECT. IN EFFECT is returned if at least one policy handler in the RIC is implementing the policy NOT IN EFFECT is returned otherwise If a policy instance is successfully deleted, this endpoint will return a 404 (not a 200)\n",
"produces": [
"version": "2.1.0"
},
"paths": {
- "/a1-p/healthcheck": {
+ "/A1-P/v2/healthcheck": {
"get": {
"description": "Perform a healthcheck on a1\n",
"tags": [
}
}
},
- "/a1-p/policytypes": {
+ "/A1-P/v2/policytypes": {
"get": {
"description": "Get a list of all registered policy type ids",
"produces": [
}
}
},
- "/a1-p/policytypes/{policy_type_id}": {
+ "/A1-P/v2/policytypes/{policy_type_id}": {
"get": {
"description": "Get this policy type\n",
"produces": [
}
]
},
- "/a1-p/policytypes/{policy_type_id}/policies": {
+ "/A1-P/v2/policytypes/{policy_type_id}/policies": {
"get": {
"description": "get a list of all policy instance ids for this policy type id",
"produces": [
}
]
},
- "/a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id}": {
+ "/A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id}": {
"get": {
"description": "Retrieve the policy instance\n",
"produces": [
}
]
},
- "/a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id}/status": {
+ "/A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id}/status": {
"get": {
"description": "Retrieve the policy instance status across all handlers of the policy If this endpoint returns successfully (200), it is either IN EFFECT or NOT IN EFFECT. IN EFFECT is returned if at least one policy handler in the RIC is implementing the policy NOT IN EFFECT is returned otherwise If a policy instance is successfully deleted, this endpoint will return a 404 (not a 200)\n",
"produces": [
if o.handlers["PUT"] == nil {
o.handlers["PUT"] = make(map[string]http.Handler)
}
- o.handlers["PUT"]["/a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id}"] = a1_mediator.NewA1ControllerCreateOrReplacePolicyInstance(o.context, o.A1MediatorA1ControllerCreateOrReplacePolicyInstanceHandler)
+ o.handlers["PUT"]["/A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id}"] = a1_mediator.NewA1ControllerCreateOrReplacePolicyInstance(o.context, o.A1MediatorA1ControllerCreateOrReplacePolicyInstanceHandler)
if o.handlers["PUT"] == nil {
o.handlers["PUT"] = make(map[string]http.Handler)
}
- o.handlers["PUT"]["/a1-p/policytypes/{policy_type_id}"] = a1_mediator.NewA1ControllerCreatePolicyType(o.context, o.A1MediatorA1ControllerCreatePolicyTypeHandler)
+ o.handlers["PUT"]["/A1-P/v2/policytypes/{policy_type_id}"] = a1_mediator.NewA1ControllerCreatePolicyType(o.context, o.A1MediatorA1ControllerCreatePolicyTypeHandler)
if o.handlers["POST"] == nil {
o.handlers["POST"] = make(map[string]http.Handler)
}
if o.handlers["DELETE"] == nil {
o.handlers["DELETE"] = make(map[string]http.Handler)
}
- o.handlers["DELETE"]["/a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id}"] = a1_mediator.NewA1ControllerDeletePolicyInstance(o.context, o.A1MediatorA1ControllerDeletePolicyInstanceHandler)
+ o.handlers["DELETE"]["/A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id}"] = a1_mediator.NewA1ControllerDeletePolicyInstance(o.context, o.A1MediatorA1ControllerDeletePolicyInstanceHandler)
if o.handlers["DELETE"] == nil {
o.handlers["DELETE"] = make(map[string]http.Handler)
}
- o.handlers["DELETE"]["/a1-p/policytypes/{policy_type_id}"] = a1_mediator.NewA1ControllerDeletePolicyType(o.context, o.A1MediatorA1ControllerDeletePolicyTypeHandler)
+ o.handlers["DELETE"]["/A1-P/v2/policytypes/{policy_type_id}"] = a1_mediator.NewA1ControllerDeletePolicyType(o.context, o.A1MediatorA1ControllerDeletePolicyTypeHandler)
if o.handlers["GET"] == nil {
o.handlers["GET"] = make(map[string]http.Handler)
}
- o.handlers["GET"]["/a1-p/policytypes/{policy_type_id}/policies"] = a1_mediator.NewA1ControllerGetAllInstancesForType(o.context, o.A1MediatorA1ControllerGetAllInstancesForTypeHandler)
+ o.handlers["GET"]["/A1-P/v2/policytypes/{policy_type_id}/policies"] = a1_mediator.NewA1ControllerGetAllInstancesForType(o.context, o.A1MediatorA1ControllerGetAllInstancesForTypeHandler)
if o.handlers["GET"] == nil {
o.handlers["GET"] = make(map[string]http.Handler)
}
- o.handlers["GET"]["/a1-p/policytypes"] = a1_mediator.NewA1ControllerGetAllPolicyTypes(o.context, o.A1MediatorA1ControllerGetAllPolicyTypesHandler)
+ o.handlers["GET"]["/A1-P/v2/policytypes"] = a1_mediator.NewA1ControllerGetAllPolicyTypes(o.context, o.A1MediatorA1ControllerGetAllPolicyTypesHandler)
if o.handlers["GET"] == nil {
o.handlers["GET"] = make(map[string]http.Handler)
}
- o.handlers["GET"]["/a1-p/healthcheck"] = a1_mediator.NewA1ControllerGetHealthcheck(o.context, o.A1MediatorA1ControllerGetHealthcheckHandler)
+ o.handlers["GET"]["/A1-P/v2/healthcheck"] = a1_mediator.NewA1ControllerGetHealthcheck(o.context, o.A1MediatorA1ControllerGetHealthcheckHandler)
if o.handlers["GET"] == nil {
o.handlers["GET"] = make(map[string]http.Handler)
}
- o.handlers["GET"]["/a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id}"] = a1_mediator.NewA1ControllerGetPolicyInstance(o.context, o.A1MediatorA1ControllerGetPolicyInstanceHandler)
+ o.handlers["GET"]["/A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id}"] = a1_mediator.NewA1ControllerGetPolicyInstance(o.context, o.A1MediatorA1ControllerGetPolicyInstanceHandler)
if o.handlers["GET"] == nil {
o.handlers["GET"] = make(map[string]http.Handler)
}
- o.handlers["GET"]["/a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id}/status"] = a1_mediator.NewA1ControllerGetPolicyInstanceStatus(o.context, o.A1MediatorA1ControllerGetPolicyInstanceStatusHandler)
+ o.handlers["GET"]["/A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id}/status"] = a1_mediator.NewA1ControllerGetPolicyInstanceStatus(o.context, o.A1MediatorA1ControllerGetPolicyInstanceStatusHandler)
if o.handlers["GET"] == nil {
o.handlers["GET"] = make(map[string]http.Handler)
}
- o.handlers["GET"]["/a1-p/policytypes/{policy_type_id}"] = a1_mediator.NewA1ControllerGetPolicyType(o.context, o.A1MediatorA1ControllerGetPolicyTypeHandler)
+ o.handlers["GET"]["/A1-P/v2/policytypes/{policy_type_id}"] = a1_mediator.NewA1ControllerGetPolicyType(o.context, o.A1MediatorA1ControllerGetPolicyTypeHandler)
}
// Serve creates a http handler to serve the API over HTTP
return &A1ControllerCreateOrReplacePolicyInstance{Context: ctx, Handler: handler}
}
-/* A1ControllerCreateOrReplacePolicyInstance swagger:route PUT /a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id} A1 Mediator a1ControllerCreateOrReplacePolicyInstance
+/* A1ControllerCreateOrReplacePolicyInstance swagger:route PUT /A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id} A1 Mediator a1ControllerCreateOrReplacePolicyInstance
Create or replace a policy instance of type policy_type_id. The schema of the PUT body is defined by the create_schema field of the policy type.
func (o *A1ControllerCreateOrReplacePolicyInstanceURL) Build() (*url.URL, error) {
var _result url.URL
- var _path = "/a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id}"
+ var _path = "/A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id}"
policyInstanceID := o.PolicyInstanceID
if policyInstanceID != "" {
return &A1ControllerCreatePolicyType{Context: ctx, Handler: handler}
}
-/* A1ControllerCreatePolicyType swagger:route PUT /a1-p/policytypes/{policy_type_id} A1 Mediator a1ControllerCreatePolicyType
+/* A1ControllerCreatePolicyType swagger:route PUT /A1-P/v2/policytypes/{policy_type_id} A1 Mediator a1ControllerCreatePolicyType
Create a new policy type . Replace is not currently allowed; to replace, for now do a DELETE and then a PUT again.
func (o *A1ControllerCreatePolicyTypeURL) Build() (*url.URL, error) {
var _result url.URL
- var _path = "/a1-p/policytypes/{policy_type_id}"
+ var _path = "/A1-P/v2/policytypes/{policy_type_id}"
policyTypeID := swag.FormatInt64(o.PolicyTypeID)
if policyTypeID != "" {
return &A1ControllerDeletePolicyInstance{Context: ctx, Handler: handler}
}
-/* A1ControllerDeletePolicyInstance swagger:route DELETE /a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id} A1 Mediator a1ControllerDeletePolicyInstance
+/* A1ControllerDeletePolicyInstance swagger:route DELETE /A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id} A1 Mediator a1ControllerDeletePolicyInstance
Delete this policy instance
func (o *A1ControllerDeletePolicyInstanceURL) Build() (*url.URL, error) {
var _result url.URL
- var _path = "/a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id}"
+ var _path = "/A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id}"
policyInstanceID := o.PolicyInstanceID
if policyInstanceID != "" {
return &A1ControllerDeletePolicyType{Context: ctx, Handler: handler}
}
-/* A1ControllerDeletePolicyType swagger:route DELETE /a1-p/policytypes/{policy_type_id} A1 Mediator a1ControllerDeletePolicyType
+/* A1ControllerDeletePolicyType swagger:route DELETE /A1-P/v2/policytypes/{policy_type_id} A1 Mediator a1ControllerDeletePolicyType
Delete this policy type. Can only be performed if there are no instances of this type
func (o *A1ControllerDeletePolicyTypeURL) Build() (*url.URL, error) {
var _result url.URL
- var _path = "/a1-p/policytypes/{policy_type_id}"
+ var _path = "/A1-P/v2/policytypes/{policy_type_id}"
policyTypeID := swag.FormatInt64(o.PolicyTypeID)
if policyTypeID != "" {
return &A1ControllerGetAllInstancesForType{Context: ctx, Handler: handler}
}
-/* A1ControllerGetAllInstancesForType swagger:route GET /a1-p/policytypes/{policy_type_id}/policies A1 Mediator a1ControllerGetAllInstancesForType
+/* A1ControllerGetAllInstancesForType swagger:route GET /A1-P/v2/policytypes/{policy_type_id}/policies A1 Mediator a1ControllerGetAllInstancesForType
get a list of all policy instance ids for this policy type id
func (o *A1ControllerGetAllInstancesForTypeURL) Build() (*url.URL, error) {
var _result url.URL
- var _path = "/a1-p/policytypes/{policy_type_id}/policies"
+ var _path = "/A1-P/v2/policytypes/{policy_type_id}/policies"
policyTypeID := swag.FormatInt64(o.PolicyTypeID)
if policyTypeID != "" {
return &A1ControllerGetAllPolicyTypes{Context: ctx, Handler: handler}
}
-/* A1ControllerGetAllPolicyTypes swagger:route GET /a1-p/policytypes A1 Mediator a1ControllerGetAllPolicyTypes
+/* A1ControllerGetAllPolicyTypes swagger:route GET /A1-P/v2/policytypes A1 Mediator a1ControllerGetAllPolicyTypes
Get a list of all registered policy type ids
func (o *A1ControllerGetAllPolicyTypesURL) Build() (*url.URL, error) {
var _result url.URL
- var _path = "/a1-p/policytypes"
+ var _path = "/A1-P/v2/policytypes"
_basePath := o._basePath
_result.Path = golangswaggerpaths.Join(_basePath, _path)
return &A1ControllerGetHealthcheck{Context: ctx, Handler: handler}
}
-/* A1ControllerGetHealthcheck swagger:route GET /a1-p/healthcheck A1 Mediator a1ControllerGetHealthcheck
+/* A1ControllerGetHealthcheck swagger:route GET /A1-P/v2/healthcheck A1 Mediator a1ControllerGetHealthcheck
Perform a healthcheck on a1
func (o *A1ControllerGetHealthcheckURL) Build() (*url.URL, error) {
var _result url.URL
- var _path = "/a1-p/healthcheck"
+ var _path = "/A1-P/v2/healthcheck"
_basePath := o._basePath
_result.Path = golangswaggerpaths.Join(_basePath, _path)
return &A1ControllerGetPolicyInstance{Context: ctx, Handler: handler}
}
-/* A1ControllerGetPolicyInstance swagger:route GET /a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id} A1 Mediator a1ControllerGetPolicyInstance
+/* A1ControllerGetPolicyInstance swagger:route GET /A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id} A1 Mediator a1ControllerGetPolicyInstance
Retrieve the policy instance
return &A1ControllerGetPolicyInstanceStatus{Context: ctx, Handler: handler}
}
-/* A1ControllerGetPolicyInstanceStatus swagger:route GET /a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id}/status A1 Mediator a1ControllerGetPolicyInstanceStatus
+/* A1ControllerGetPolicyInstanceStatus swagger:route GET /A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id}/status A1 Mediator a1ControllerGetPolicyInstanceStatus
Retrieve the policy instance status across all handlers of the policy If this endpoint returns successfully (200), it is either IN EFFECT or NOT IN EFFECT. IN EFFECT is returned if at least one policy handler in the RIC is implementing the policy NOT IN EFFECT is returned otherwise If a policy instance is successfully deleted, this endpoint will return a 404 (not a 200)
func (o *A1ControllerGetPolicyInstanceStatusURL) Build() (*url.URL, error) {
var _result url.URL
- var _path = "/a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id}/status"
+ var _path = "/A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id}/status"
policyInstanceID := o.PolicyInstanceID
if policyInstanceID != "" {
func (o *A1ControllerGetPolicyInstanceURL) Build() (*url.URL, error) {
var _result url.URL
- var _path = "/a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id}"
+ var _path = "/A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id}"
policyInstanceID := o.PolicyInstanceID
if policyInstanceID != "" {
return &A1ControllerGetPolicyType{Context: ctx, Handler: handler}
}
-/* A1ControllerGetPolicyType swagger:route GET /a1-p/policytypes/{policy_type_id} A1 Mediator a1ControllerGetPolicyType
+/* A1ControllerGetPolicyType swagger:route GET /A1-P/v2/policytypes/{policy_type_id} A1 Mediator a1ControllerGetPolicyType
Get this policy type
func (o *A1ControllerGetPolicyTypeURL) Build() (*url.URL, error) {
var _result url.URL
- var _path = "/a1-p/policytypes/{policy_type_id}"
+ var _path = "/A1-P/v2/policytypes/{policy_type_id}"
policyTypeID := swag.FormatInt64(o.PolicyTypeID)
if policyTypeID != "" {