diff --git a/specification/cognitiveservices/data-plane/Face/preview/v1.0-preview/Face.json b/specification/cognitiveservices/data-plane/Face/preview/v1.0-preview/Face.json index 4909f1dceda4..59fd678268e5 100644 --- a/specification/cognitiveservices/data-plane/Face/preview/v1.0-preview/Face.json +++ b/specification/cognitiveservices/data-plane/Face/preview/v1.0-preview/Face.json @@ -4652,7 +4652,8 @@ "description": "Face list object.", "type": "object", "required": [ - "faceListId" + "faceListId", + "name" ], "properties": { "faceListId": { @@ -4661,16 +4662,25 @@ "maxLength": 64, "pattern": "^[a-z0-9-_]+$" }, + "name": { + "type": "string", + "description": "User defined name, maximum length is 128.", + "maxLength": 128, + "minLength": 1 + }, + "userData": { + "type": "string", + "description": "User specified data. Length should not exceed 16KB.", + "maxLength": 16384 + }, + "recognitionModel": { + "$ref": "#/definitions/RecognitionModel" + }, "persistedFaces": { "description": "Persisted faces within the face list.", "$ref": "#/definitions/PersistedFaces" } - }, - "allOf": [ - { - "$ref": "#/definitions/MetaDataContract" - } - ] + } }, "FaceLists": { "type": "array", @@ -4682,7 +4692,8 @@ "PersonGroup": { "type": "object", "required": [ - "personGroupId" + "personGroupId", + "name" ], "description": "Person group object.", "properties": { @@ -4691,13 +4702,22 @@ "type": "string", "maxLength": 64, "pattern": "^[a-z0-9-_]+$" + }, + "name": { + "type": "string", + "description": "User defined name, maximum length is 128.", + "maxLength": 128, + "minLength": 1 + }, + "userData": { + "type": "string", + "description": "User specified data. Length should not exceed 16KB.", + "maxLength": 16384 + }, + "recognitionModel": { + "$ref": "#/definitions/RecognitionModel" } - }, - "allOf": [ - { - "$ref": "#/definitions/MetaDataContract" - } - ] + } }, "PersonGroups": { "type": "array", @@ -4771,7 +4791,8 @@ "description": "Large face list object.", "type": "object", "required": [ - "largeFaceListId" + "largeFaceListId", + "name" ], "properties": { "largeFaceListId": { @@ -4779,13 +4800,22 @@ "description": "LargeFaceListId of the target large face list.", "maxLength": 64, "pattern": "^[a-z0-9-_]+$" + }, + "name": { + "type": "string", + "description": "User defined name, maximum length is 128.", + "maxLength": 128, + "minLength": 1 + }, + "userData": { + "type": "string", + "description": "User specified data. Length should not exceed 16KB.", + "maxLength": 16384 + }, + "recognitionModel": { + "$ref": "#/definitions/RecognitionModel" } - }, - "allOf": [ - { - "$ref": "#/definitions/MetaDataContract" - } - ] + } }, "LargeFaceLists": { "type": "array", @@ -4797,7 +4827,8 @@ "LargePersonGroup": { "type": "object", "required": [ - "largePersonGroupId" + "largePersonGroupId", + "name" ], "description": "Large person group object.", "properties": { @@ -4806,13 +4837,22 @@ "type": "string", "maxLength": 64, "pattern": "^[a-z0-9-_]+$" + }, + "name": { + "type": "string", + "description": "User defined name, maximum length is 128.", + "maxLength": 128, + "minLength": 1 + }, + "userData": { + "type": "string", + "description": "User specified data. Length should not exceed 16KB.", + "maxLength": 16384 + }, + "recognitionModel": { + "$ref": "#/definitions/RecognitionModel" } - }, - "allOf": [ - { - "$ref": "#/definitions/MetaDataContract" - } - ] + } }, "LargePersonGroups": { "type": "array", diff --git a/specification/cognitiveservices/data-plane/Face/preview/v1.0-preview/examples/GetPersonGroupPersistedFace.json b/specification/cognitiveservices/data-plane/Face/preview/v1.0-preview/examples/GetPersonGroupPersistedFace.json index 0c88343b90a9..10197c4e9ea9 100644 --- a/specification/cognitiveservices/data-plane/Face/preview/v1.0-preview/examples/GetPersonGroupPersistedFace.json +++ b/specification/cognitiveservices/data-plane/Face/preview/v1.0-preview/examples/GetPersonGroupPersistedFace.json @@ -4,8 +4,8 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "{API key}", "personGroupId": "abc", - "personId": "foobar", - "persistedFaceId": "asd" + "personId": "B8D802CF-DD8F-4E61-B15C-9E6C5844CCBA", + "persistedFaceId": "015839fb-fbd9-4f79-ace9-7675fc2f1dd9" }, "responses": { "200": { diff --git a/specification/cognitiveservices/data-plane/Face/stable/v1.0/Face.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/Face.json index 7b70564c1388..1f45ce26c4c5 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/Face.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/Face.json @@ -3727,7 +3727,8 @@ "description": "Face list object.", "type": "object", "required": [ - "faceListId" + "faceListId", + "name" ], "properties": { "faceListId": { @@ -3736,16 +3737,25 @@ "maxLength": 64, "pattern": "^[a-z0-9-_]+$" }, + "name": { + "type": "string", + "description": "User defined name, maximum length is 128.", + "maxLength": 128, + "minLength": 1 + }, + "userData": { + "type": "string", + "description": "User specified data. Length should not exceed 16KB.", + "maxLength": 16384 + }, + "recognitionModel": { + "$ref": "#/definitions/RecognitionModel" + }, "persistedFaces": { "description": "Persisted faces within the face list.", "$ref": "#/definitions/PersistedFaces" } - }, - "allOf": [ - { - "$ref": "#/definitions/MetaDataContract" - } - ] + } }, "FaceLists": { "type": "array", @@ -3757,7 +3767,8 @@ "PersonGroup": { "type": "object", "required": [ - "personGroupId" + "personGroupId", + "name" ], "description": "Person group object.", "properties": { @@ -3766,13 +3777,22 @@ "type": "string", "maxLength": 64, "pattern": "^[a-z0-9-_]+$" + }, + "name": { + "type": "string", + "description": "User defined name, maximum length is 128.", + "maxLength": 128, + "minLength": 1 + }, + "userData": { + "type": "string", + "description": "User specified data. Length should not exceed 16KB.", + "maxLength": 16384 + }, + "recognitionModel": { + "$ref": "#/definitions/RecognitionModel" } - }, - "allOf": [ - { - "$ref": "#/definitions/MetaDataContract" - } - ] + } }, "PersonGroups": { "type": "array", @@ -3846,7 +3866,8 @@ "description": "Large face list object.", "type": "object", "required": [ - "largeFaceListId" + "largeFaceListId", + "name" ], "properties": { "largeFaceListId": { @@ -3854,13 +3875,22 @@ "description": "LargeFaceListId of the target large face list.", "maxLength": 64, "pattern": "^[a-z0-9-_]+$" + }, + "name": { + "type": "string", + "description": "User defined name, maximum length is 128.", + "maxLength": 128, + "minLength": 1 + }, + "userData": { + "type": "string", + "description": "User specified data. Length should not exceed 16KB.", + "maxLength": 16384 + }, + "recognitionModel": { + "$ref": "#/definitions/RecognitionModel" } - }, - "allOf": [ - { - "$ref": "#/definitions/MetaDataContract" - } - ] + } }, "LargeFaceLists": { "type": "array", @@ -3872,7 +3902,8 @@ "LargePersonGroup": { "type": "object", "required": [ - "largePersonGroupId" + "largePersonGroupId", + "name" ], "description": "Large person group object.", "properties": { @@ -3881,13 +3912,22 @@ "type": "string", "maxLength": 64, "pattern": "^[a-z0-9-_]+$" + }, + "name": { + "type": "string", + "description": "User defined name, maximum length is 128.", + "maxLength": 128, + "minLength": 1 + }, + "userData": { + "type": "string", + "description": "User specified data. Length should not exceed 16KB.", + "maxLength": 16384 + }, + "recognitionModel": { + "$ref": "#/definitions/RecognitionModel" } - }, - "allOf": [ - { - "$ref": "#/definitions/MetaDataContract" - } - ] + } }, "LargePersonGroups": { "type": "array", diff --git a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/GetPersonGroupPersistedFace.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/GetPersonGroupPersistedFace.json index 0c88343b90a9..10197c4e9ea9 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/GetPersonGroupPersistedFace.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/GetPersonGroupPersistedFace.json @@ -4,8 +4,8 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "{API key}", "personGroupId": "abc", - "personId": "foobar", - "persistedFaceId": "asd" + "personId": "B8D802CF-DD8F-4E61-B15C-9E6C5844CCBA", + "persistedFaceId": "015839fb-fbd9-4f79-ace9-7675fc2f1dd9" }, "responses": { "200": {