Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/services/cognitiveServicesFace/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ summary: *content
---
**This SDK will be deprecated next year and will be replaced by a new TypeScript-based isomorphic SDK (found at https://github.com/Azure/azure-sdk-for-js) which works on Node.js and browsers.**
## Microsoft Azure SDK for Node.js - FaceClient

This project provides a Node.js package for accessing Azure. Right now it supports:
- **Node.js version 6.x.x or higher**

Expand All @@ -19,7 +20,7 @@ npm install azure-cognitiveservices-face

### How to use

#### Authentication, client creation and list personGroupPerson as an example.
#### Authentication, client creation, and list personGroupPerson as an example.

```javascript
const msRest = require("ms-rest");
Expand All @@ -31,13 +32,15 @@ const client = new FaceClient(creds, subscriptionId);
const personGroupId = "testpersonGroupId";
const start = "teststart";
const top = 1;

client.personGroupPerson.list(personGroupId, start, top).then((result) => {
console.log("The result is:");
console.log(result);
}).catch((err) => {
console.log('An error occurred:');
console.dir(err, {depth: null, colors: true});
});
```

### Related projects

Expand Down
2 changes: 1 addition & 1 deletion lib/services/cognitiveServicesFace/lib/models/faceList.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class FaceList extends models['NameAndUserDataContract'] {
serializedName: 'faceListId',
constraints: {
MaxLength: 64,
Pattern: '^[a-z0-9-_]+$'
Pattern: /^[a-z0-9-_]+$/
},
type: {
name: 'String'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class FindSimilarRequest {
serializedName: 'faceListId',
constraints: {
MaxLength: 64,
Pattern: '^[a-z0-9-_]+$'
Pattern: /^[a-z0-9-_]+$/
},
type: {
name: 'String'
Expand All @@ -81,7 +81,7 @@ class FindSimilarRequest {
serializedName: 'largeFaceListId',
constraints: {
MaxLength: 64,
Pattern: '^[a-z0-9-_]+$'
Pattern: /^[a-z0-9-_]+$/
},
type: {
name: 'String'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class IdentifyRequest {
serializedName: 'personGroupId',
constraints: {
MaxLength: 64,
Pattern: '^[a-z0-9-_]+$'
Pattern: /^[a-z0-9-_]+$/
},
type: {
name: 'String'
Expand All @@ -84,7 +84,7 @@ class IdentifyRequest {
serializedName: 'largePersonGroupId',
constraints: {
MaxLength: 64,
Pattern: '^[a-z0-9-_]+$'
Pattern: /^[a-z0-9-_]+$/
},
type: {
name: 'String'
Expand Down
Loading