Skip to content

Commit

Permalink
Updates for Face PersonDirectory (Azure#21831)
Browse files Browse the repository at this point in the history
* Updates for Face PersonDirectory

Add parameter descriptions, and add flatten flags for currently
nested request body.

* Another description update

* More
  • Loading branch information
msyache authored and kayousef committed Dec 21, 2022
1 parent 3d0f3c6 commit 90ac749
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2543,11 +2543,13 @@
"in": "query",
"name": "start",
"format": "uuid",
"description": "List persons from the least personId greater than the \"start\". It contains no more than 64 characters. Default is empty.",
"type": "string"
},
{
"in": "query",
"name": "top",
"description": "The number of persons to list, ranging in [1, 1000]. Default is 1000.",
"type": "string"
}
],
Expand Down Expand Up @@ -2591,6 +2593,7 @@
"in": "body",
"name": "body",
"required": true,
"x-ms-client-flatten": true,
"schema": {
"$ref": "#/definitions/EnrollmentRequest"
}
Expand Down Expand Up @@ -2640,6 +2643,7 @@
{
"in": "path",
"name": "personId",
"description": "Person id to update.",
"required": true,
"format": "uuid",
"type": "string"
Expand All @@ -2648,6 +2652,7 @@
"in": "body",
"name": "body",
"required": true,
"x-ms-client-flatten": true,
"schema": {
"$ref": "#/definitions/EnrollmentRequest"
}
Expand Down Expand Up @@ -2683,6 +2688,7 @@
{
"in": "path",
"name": "personId",
"description": "Person id to delete.",
"required": true,
"format": "uuid",
"type": "string"
Expand Down Expand Up @@ -3023,8 +3029,9 @@
{
"in": "body",
"name": "body",
"description": "Target person face id to update.",
"description": "Target person face to update.",
"required": true,
"x-ms-client-flatten": true,
"schema": {
"$ref": "#/definitions/PersistedFaceWithType"
}
Expand Down Expand Up @@ -3074,6 +3081,7 @@
"name": "body",
"description": "",
"required": true,
"x-ms-client-flatten": true,
"schema": {
"$ref": "#/definitions/DynamicPersonGroupCreateRequest"
}
Expand Down Expand Up @@ -3130,6 +3138,7 @@
"name": "body",
"description": "",
"required": true,
"x-ms-client-flatten": true,
"schema": {
"$ref": "#/definitions/DynamicPersonGroupUpdateRequest"
}
Expand Down Expand Up @@ -5253,13 +5262,16 @@
"personId": {
"format": "uuid",
"type": "string",
"description": "Person id.",
"x-nullable": false
},
"name": {
"type": "string"
"type": "string",
"description": "User defined name, maximum length is 128."
},
"userData": {
"type": "string"
"type": "string",
"description": "User specified data. Length should not exceed 16KB."
}
}
},
Expand All @@ -5277,10 +5289,12 @@
"type": "object",
"properties": {
"name": {
"type": "string"
"type": "string",
"description": "User defined name, maximum length is 128."
},
"userData": {
"type": "string"
"type": "string",
"description": "User specified data. Length should not exceed 16KB."
}
}
},
Expand Down Expand Up @@ -5333,7 +5347,8 @@
"ir_detection_01",
"expression_01"
],
"type": "string"
"type": "string",
"description": "Detection model used when extracting the face."
},
"PersistedFaceWithType": {
"type": "object",
Expand All @@ -5358,13 +5373,16 @@
"type": "object",
"properties": {
"name": {
"type": "string"
"type": "string",
"description": "User defined name, maximum length is 128."
},
"userData": {
"type": "string"
"type": "string",
"description": "User specified data. Length should not exceed 16KB."
},
"addPersonIds": {
"type": "array",
"description": "Person ids to add to the dynamic person group.",
"items": {
"format": "uuid",
"type": "string",
Expand All @@ -5376,25 +5394,29 @@
"DynamicPersonGroupUpdateRequest": {
"type": "object",
"properties": {
"removePersonIds": {
"type": "array",
"items": {
"type": "string"
}
},
"name": {
"type": "string"
"type": "string",
"description": "User defined name, maximum length is 128."
},
"userData": {
"type": "string"
"type": "string",
"description": "User specified data. Length should not exceed 16KB."
},
"addPersonIds": {
"type": "array",
"description": "Person ids to add to the dynamic person group.",
"items": {
"format": "uuid",
"type": "string",
"x-nullable": false
}
},
"removePersonIds": {
"type": "array",
"description": "Person ids to remove from the dynamic person group.",
"items": {
"type": "string"
}
}
}
},
Expand Down Expand Up @@ -5663,7 +5685,7 @@
"name": "returnFaceId",
"in": "query",
"x-ms-parameter-location": "method",
"description": "A value indicating whether the operation should return faceIds of detected faces. Detecting with this value set to true requires additional permissions.",
"description": "A value indicating whether the operation should return faceIds of detected faces. Detecting with this value set to true requires additional access approvals at https://aka.ms/facerecognition.",
"type": "boolean"
},
"returnFaceLandmarks": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4490,7 +4490,7 @@
"name": "returnFaceId",
"in": "query",
"x-ms-parameter-location": "method",
"description": "A value indicating whether the operation should return faceIds of detected faces. Detecting with this value set to true requires additional permissions.",
"description": "A value indicating whether the operation should return faceIds of detected faces. Detecting with this value set to true requires additional access approvals at https://aka.ms/facerecognition.",
"type": "boolean"
},
"returnFaceLandmarks": {
Expand Down

0 comments on commit 90ac749

Please sign in to comment.