Interface operation feature enhancements
[sdc.git] / catalog-be / src / main / resources / config / error-configuration.yaml
index b0f2e21..ff86aff 100644 (file)
@@ -105,6 +105,12 @@ errors:
         message: "Error: Invalid userId '%1'.",
         messageId: "SVC4008"
     }
+#---------SVC4009-----------------------------
+    USER_DEFINED: {
+        code: 400,
+        message: "Error: User Defined '%1'.",
+        messageId: "SVC4009"
+    }
 #---------SVC4049------------------------------
 # %1 - service/resource
     COMPONENT_MISSING_CONTACT: {
@@ -350,7 +356,7 @@ errors:
 # %2  - resource/service
     COMPONENT_IN_USE: {
         code: 403,
-        message: "Error: Requested '%1' %2 is in use by another user.",
+        message: "Error: '%1' %2 is still held by previous action. Please try again later.",
         messageId: "SVC4086"
     }
 #-----------SVC4087---------------------------
@@ -575,13 +581,6 @@ errors:
         message: "Error: Invalid distribution environment.",
         messageId: "SVC4138"
     }
-#---------SVC4139------------------------------
-# %1 - service name
-    DISTRIBUTION_ARTIFACT_NOT_FOUND: {
-        code: 409,
-        message: "Error: Service '%1' cannot be distributed due to missing deployment artifacts.",
-        messageId: "SVC4139"
-    }
 #---------SVC4200------------------------------
 # %1 - Service/Resource
 # %2 - max icon name length
@@ -2032,55 +2031,145 @@ errors:
         messageId: "SVC4694"
     }
 #---------SVC4695-----------------------------
-# %1 - Interface operation type
-    INTERFACE_OPERATION_TYPE_ALREADY_IN_USE: {
-      code: 400,
-      message: "Error: Interface Operation type %1 already in use",
+# %1 - Interface Operation Name
+    INTERFACE_OPERATION_NAME_ALREADY_IN_USE: {
+      code: 409,
+      message: "Error: Interface Operation name '%1' already in use, Your current changes will not be saved.",
       messageId: "SVC4695"
     }
 #---------SVC4696-----------------------------
-# %1 - workflow operation type
-    INTERFACE_OPERATION_TYPE_INVALID: {
+# %1 - Interface Operation Name
+    INTERFACE_OPERATION_NAME_INVALID: {
       code: 400,
-      message: "Error: Interface Operation type %1 is Invalid, Operation type should not contain
-                       special character, space, numbers  and  should not be greater than 200 characters ",
+      message: "Error: Interface Operation name '%1' is Invalid, Operation name should not contain special character, space and should not be greater than 200 characters.",
       messageId: "SVC4696"
     }
 #---------SVC4697-----------------------------
-    INTERFACE_OPERATION_TYPE_MANDATORY: {
-      code: 404,
-      message: "Error: Interface Operation type is mandatory, Operation type can't be empty",
+    INTERFACE_OPERATION_NAME_MANDATORY: {
+      code: 400,
+      message: "Error: Interface Operation name is mandatory, Operation name can't be empty.",
       messageId: "SVC4697"
     }
 #---------SVC4698-----------------------------
-# %1 - workflow operation description
-    INTERFACE_OPERATION_DESCRIPTION_MAX_LENGTH: {
+# %1 - Interface type
+    INTERFACE_OPERATION_INVALID_FOR_LOCAL_TYPE: {
       code: 400,
-      message: "Error: Interface Operation description %1 is invalid, maximum 200 characters allowed",
+      message: "Error: Invalid input, only one operation is allowed in local interface type '%1'.",
       messageId: "SVC4698"
     }
 #---------SVC4699-----------------------------
-    INTERFACE_OPERATION_INPUT_NAME_INVALID: {
+# %1 - Interface Operation input parameter name
+    INTERFACE_OPERATION_INPUT_NAME_ALREADY_IN_USE: {
       code: 400,
-      message: "Error: Interface Operation input parameter names %1 are invalid ,Input parameters name should be unique",
+      message: "Error: Interface Operation input parameter name '%1' already in use, Your current changes will not be saved.",
       messageId: "SVC4699"
     }
 #---------SVC4700-----------------------------
-    INTERFACE_OPERATION_OUTPUT_NAME_INVALID: {
-      code: 400,
-      message: "Error: Interface Operation output parameters invalid, should be unique and mandatory",
-      messageId: "SVC4700"
+    INTERFACE_OPERATION_INPUT_NAME_MANDATORY: {
+        code: 400,
+        message: "Error: Interface operation input parameter name should not be empty.",
+        messageId: "SVC4700"
     }
 #---------SVC4701-----------------------------
-# %1 - resource Id
+# %1 - component Id
     INTERFACE_OPERATION_NOT_FOUND: {
       code: 404,
-      message: "Error: Interface operations not found in the resource %1",
+      message: "Error: Interface operation not found in the component '%1'.",
       messageId: "SVC4701"
     }
-#---------SVC46702-----------------------------
+#---------SVC4702-----------------------------
     INTERFACE_OPERATION_NOT_DELETED: {
-      code: 404,
+      code: 400,
       message: "Error: Failed to delete interface operation.",
       messageId: "SVC4702"
     }
+#-----------SVC4692---------------------------
+    RESOURCE_LIFECYCLE_STATE_NOT_VALID: {
+        code: 400,
+        message: "Error: Lifecycle state %1 is not valid for resource",
+        messageId: "SVC4692"
+    }
+#-----------SVC4693---------------------------
+#%1 - component name
+    COMPONENT_IS_ARCHIVED: {
+        code: 400,
+        message: "Error: Component %1 is arhived",
+        messageId: "SVC4693"
+    }
+#-----------SVC4703---------------------------
+#%1 - component name
+    COMPONENT_IS_NOT_HIHGEST_CERTIFIED: {
+        code: 400,
+        message: "Error: Component %1 is not highest certified",
+        messageId: "SVC4703"
+    }
+#---------SVC4704------------------------------
+# %1 - "service"/"VF"
+# %2 - "Resource name"
+    ARCHIVED_ORIGINS_FOUND: {
+        code: 403,
+        message: "Error: Action is not permitted as your '%1' '%2' includes archived resources",
+        messageId: "SVC4704"
+    }
+#---------SVC4705------------------------------
+# %1-artifact name
+    ARTIFACT_PAYLOAD_EMPTY: {
+        code: 400,
+        message: "Error: Invalid content. Uploaded file %1 is empty. Please retry with the correct file.",
+        messageId: "SVC4705"
+    }
+#---------SVC4706------------------------------
+# %1-input(s) name(s) string
+    INPUTS_NOT_FOUND: {
+        code: 400,
+        message: "Error: missing input value(s) %1.",
+        messageId: "SVC4706"
+    }
+    #---------SVC4707-----------------------------
+# %1 – asset type [service / resource ]
+# %2 – main asset uuid
+    ERROR_DURING_CSAR_CREATION: {
+      code: 404,
+      message: "Error: CSAR packaging failed for %1 %2.",
+      messageId: "SVC4706"
+    }
+#---------SVC4708-----------------------------
+# %1 - Interface Operation input property name, component type
+    INTERFACE_OPERATION_INPUT_PROPERTY_NOT_FOUND_IN_COMPONENT: {
+        code: 404,
+        message: "Error: Interface operation input parameter property '%1' not found in '%2' input properties.",
+        messageId: "SVC4708"
+    }
+#---------SVC4709-----------------------------
+# %1 - Interface Operation output parameter name
+    INTERFACE_OPERATION_OUTPUT_NAME_ALREADY_IN_USE: {
+        code: 400,
+        message: "Error: Interface Operation output parameter name '%1' already in use, Your current changes will not be saved.",
+        messageId: "SVC4708"
+    }
+#---------SVC4710-----------------------------
+    INTERFACE_OPERATION_OUTPUT_NAME_MANDATORY: {
+        code: 400,
+        message: "Error: Interface operation output parameter name should not be empty.",
+        messageId: "SVC4710"
+    }
+#---------SVC4711-----------------------------
+# %1 - interface Id
+    INTERFACE_NOT_FOUND_IN_COMPONENT: {
+      code: 404,
+      message: "Error: Interface not found in the component '%1'.",
+      messageId: "SVC4711"
+    }
+#---------SVC4712-----------------------------
+    INTERFACE_LIFECYCLE_TYPES_NOT_FOUND: {
+        code: 404,
+        message: "Error: Interface Lifecycle types not found.",
+        messageId: "SVC4712"
+    }
+#---------SVC4713-----------------------------
+# %1 - Interface Operation Name
+    INTERFACE_OPERATION_INVALID_FOR_GLOBAL_TYPE: {
+        code: 400,
+        message: "Error: Invalid input, only pre-defined operation names are allowed in global interface type '%1'",
+        messageId: "SVC4713"
+    }
\ No newline at end of file