diff --git a/sdk/cognitiveservices/Vision.Face/CHANGELOG.md b/sdk/cognitiveservices/Vision.Face/CHANGELOG.md index dc8e3495a510..d22ebd0d61dd 100644 --- a/sdk/cognitiveservices/Vision.Face/CHANGELOG.md +++ b/sdk/cognitiveservices/Vision.Face/CHANGELOG.md @@ -1,15 +1,8 @@ # Release History -## 2.8.0-preview.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Key Bugs Fixed - -### Fixed - +## 2.8.0-publicpreview.preview.1 (2021-11-15) +- Add support for new detection attribute `qualityForRecognition` +- Adjusted version name to highlight preview endpoint status ## 2.8.0-preview.1 (2021-07-21) diff --git a/sdk/cognitiveservices/Vision.Face/src/Generated/FaceListOperations.cs b/sdk/cognitiveservices/Vision.Face/src/Generated/FaceListOperations.cs index fca90c9f7e99..d33e19170fcb 100644 --- a/sdk/cognitiveservices/Vision.Face/src/Generated/FaceListOperations.cs +++ b/sdk/cognitiveservices/Vision.Face/src/Generated/FaceListOperations.cs @@ -114,7 +114,7 @@ public FaceListOperations(FaceClient client) /// /// A response object containing the response body and response headers. /// - public async Task CreateWithHttpMessagesAsync(string faceListId, string name = default(string), string userData = default(string), string recognitionModel = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task CreateWithHttpMessagesAsync(string faceListId, string name, string userData = default(string), string recognitionModel = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.Endpoint == null) { @@ -135,12 +135,20 @@ public FaceListOperations(FaceClient client) throw new ValidationException(ValidationRules.Pattern, "faceListId", "^[a-z0-9-_]+$"); } } + if (name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } if (name != null) { if (name.Length > 128) { throw new ValidationException(ValidationRules.MaxLength, "name", 128); } + if (name.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "name", 1); + } } if (userData != null) { diff --git a/sdk/cognitiveservices/Vision.Face/src/Generated/FaceListOperationsExtensions.cs b/sdk/cognitiveservices/Vision.Face/src/Generated/FaceListOperationsExtensions.cs index b2752e1041f5..5a2dc8815e82 100644 --- a/sdk/cognitiveservices/Vision.Face/src/Generated/FaceListOperationsExtensions.cs +++ b/sdk/cognitiveservices/Vision.Face/src/Generated/FaceListOperationsExtensions.cs @@ -74,7 +74,7 @@ public static partial class FaceListOperationsExtensions /// /// The cancellation token. /// - public static async Task CreateAsync(this IFaceListOperations operations, string faceListId, string name = default(string), string userData = default(string), string recognitionModel = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateAsync(this IFaceListOperations operations, string faceListId, string name, string userData = default(string), string recognitionModel = default(string), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.CreateWithHttpMessagesAsync(faceListId, name, userData, recognitionModel, null, cancellationToken).ConfigureAwait(false)).Dispose(); } diff --git a/sdk/cognitiveservices/Vision.Face/src/Generated/FaceOperations.cs b/sdk/cognitiveservices/Vision.Face/src/Generated/FaceOperations.cs index 27ce9b0523d9..1833eaf8e487 100644 --- a/sdk/cognitiveservices/Vision.Face/src/Generated/FaceOperations.cs +++ b/sdk/cognitiveservices/Vision.Face/src/Generated/FaceOperations.cs @@ -554,7 +554,8 @@ public FaceOperations(FaceClient client) /// should not be provided at the same time. /// /// - /// The range of maxNumOfCandidatesReturned is between 1 and 5 (default is 1). + /// The range of maxNumOfCandidatesReturned is between 1 and 100 (default is + /// 1). /// /// /// Confidence threshold of identification, used to judge whether one face @@ -639,9 +640,9 @@ public FaceOperations(FaceClient client) throw new ValidationException(ValidationRules.MaxItems, "personIds", 30); } } - if (maxNumOfCandidatesReturned > 5) + if (maxNumOfCandidatesReturned > 100) { - throw new ValidationException(ValidationRules.InclusiveMaximum, "maxNumOfCandidatesReturned", 5); + throw new ValidationException(ValidationRules.InclusiveMaximum, "maxNumOfCandidatesReturned", 100); } if (maxNumOfCandidatesReturned < 1) { @@ -966,8 +967,9 @@ public FaceOperations(FaceClient client) /// faceIdTimeToLive after the original detection call. /// * Optional parameters include faceId, landmarks, and attributes. Attributes /// include age, gender, headPose, smile, facialHair, glasses, emotion, hair, - /// makeup, occlusion, accessories, blur, exposure, noise, and mask. Some of - /// the results returned for specific attributes may not be highly accurate. + /// makeup, occlusion, accessories, blur, exposure, noise, mask, and + /// qualityForRecognition. Some of the results returned for specific attributes + /// may not be highly accurate. /// * JPEG, PNG, GIF (the first frame), and BMP format are supported. The /// allowed image file size is from 1KB to 6MB. /// * Up to 100 faces can be returned for an image. Faces are ranked by face @@ -1012,10 +1014,13 @@ public FaceOperations(FaceClient client) /// comma-separated string like "returnFaceAttributes=age,gender". The /// available attributes depends on the 'detectionModel' specified. /// 'detection_01' supports age, gender, headPose, smile, facialHair, glasses, - /// emotion, hair, makeup, occlusion, accessories, blur, exposure, and noise. - /// While 'detection_02' does not support any attributes and 'detection_03' - /// only supports mask. Note that each face attribute analysis has additional - /// computational and time cost. + /// emotion, hair, makeup, occlusion, accessories, blur, exposure, noise, and + /// qualityForRecognition. While 'detection_02' does not support any attributes + /// and 'detection_03' only supports mask and qualityForRecognition. + /// Additionally, qualityForRecognition is only supported when the + /// 'recognitionModel' is specified as 'recognition_03' or 'recognition_04'. + /// Note that each face attribute analysis has additional computational and + /// time cost. /// /// /// Name of recognition model. Recognition model is used when the face features @@ -1465,8 +1470,9 @@ public FaceOperations(FaceClient client) /// faceIdTimeToLive after the original detection call. /// * Optional parameters include faceId, landmarks, and attributes. Attributes /// include age, gender, headPose, smile, facialHair, glasses, emotion, hair, - /// makeup, occlusion, accessories, blur, exposure, noise, and mask. Some of - /// the results returned for specific attributes may not be highly accurate. + /// makeup, occlusion, accessories, blur, exposure, noise, mask, and + /// qualityForRecognition. Some of the results returned for specific attributes + /// may not be highly accurate. /// * JPEG, PNG, GIF (the first frame), and BMP format are supported. The /// allowed image file size is from 1KB to 6MB. /// * Up to 100 faces can be returned for an image. Faces are ranked by face @@ -1510,10 +1516,13 @@ public FaceOperations(FaceClient client) /// comma-separated string like "returnFaceAttributes=age,gender". The /// available attributes depends on the 'detectionModel' specified. /// 'detection_01' supports age, gender, headPose, smile, facialHair, glasses, - /// emotion, hair, makeup, occlusion, accessories, blur, exposure, and noise. - /// While 'detection_02' does not support any attributes and 'detection_03' - /// only supports mask. Note that each face attribute analysis has additional - /// computational and time cost. + /// emotion, hair, makeup, occlusion, accessories, blur, exposure, noise, and + /// qualityForRecognition. While 'detection_02' does not support any attributes + /// and 'detection_03' only supports mask and qualityForRecognition. + /// Additionally, qualityForRecognition is only supported when the + /// 'recognitionModel' is specified as 'recognition_03' or 'recognition_04'. + /// Note that each face attribute analysis has additional computational and + /// time cost. /// /// /// Name of recognition model. Recognition model is used when the face features diff --git a/sdk/cognitiveservices/Vision.Face/src/Generated/FaceOperationsExtensions.cs b/sdk/cognitiveservices/Vision.Face/src/Generated/FaceOperationsExtensions.cs index 162be40b1f2c..fde03d71bd26 100644 --- a/sdk/cognitiveservices/Vision.Face/src/Generated/FaceOperationsExtensions.cs +++ b/sdk/cognitiveservices/Vision.Face/src/Generated/FaceOperationsExtensions.cs @@ -198,7 +198,8 @@ public static partial class FaceOperationsExtensions /// should not be provided at the same time. /// /// - /// The range of maxNumOfCandidatesReturned is between 1 and 5 (default is 1). + /// The range of maxNumOfCandidatesReturned is between 1 and 100 (default is + /// 1). /// /// /// Confidence threshold of identification, used to judge whether one face @@ -266,8 +267,9 @@ public static partial class FaceOperationsExtensions /// faceIdTimeToLive after the original detection call. /// * Optional parameters include faceId, landmarks, and attributes. Attributes /// include age, gender, headPose, smile, facialHair, glasses, emotion, hair, - /// makeup, occlusion, accessories, blur, exposure, noise, and mask. Some of - /// the results returned for specific attributes may not be highly accurate. + /// makeup, occlusion, accessories, blur, exposure, noise, mask, and + /// qualityForRecognition. Some of the results returned for specific attributes + /// may not be highly accurate. /// * JPEG, PNG, GIF (the first frame), and BMP format are supported. The /// allowed image file size is from 1KB to 6MB. /// * Up to 100 faces can be returned for an image. Faces are ranked by face @@ -315,10 +317,13 @@ public static partial class FaceOperationsExtensions /// comma-separated string like "returnFaceAttributes=age,gender". The /// available attributes depends on the 'detectionModel' specified. /// 'detection_01' supports age, gender, headPose, smile, facialHair, glasses, - /// emotion, hair, makeup, occlusion, accessories, blur, exposure, and noise. - /// While 'detection_02' does not support any attributes and 'detection_03' - /// only supports mask. Note that each face attribute analysis has additional - /// computational and time cost. + /// emotion, hair, makeup, occlusion, accessories, blur, exposure, noise, and + /// qualityForRecognition. While 'detection_02' does not support any attributes + /// and 'detection_03' only supports mask and qualityForRecognition. + /// Additionally, qualityForRecognition is only supported when the + /// 'recognitionModel' is specified as 'recognition_03' or 'recognition_04'. + /// Note that each face attribute analysis has additional computational and + /// time cost. /// /// /// Name of recognition model. Recognition model is used when the face features @@ -410,8 +415,9 @@ public static partial class FaceOperationsExtensions /// faceIdTimeToLive after the original detection call. /// * Optional parameters include faceId, landmarks, and attributes. Attributes /// include age, gender, headPose, smile, facialHair, glasses, emotion, hair, - /// makeup, occlusion, accessories, blur, exposure, noise, and mask. Some of - /// the results returned for specific attributes may not be highly accurate. + /// makeup, occlusion, accessories, blur, exposure, noise, mask, and + /// qualityForRecognition. Some of the results returned for specific attributes + /// may not be highly accurate. /// * JPEG, PNG, GIF (the first frame), and BMP format are supported. The /// allowed image file size is from 1KB to 6MB. /// * Up to 100 faces can be returned for an image. Faces are ranked by face @@ -458,10 +464,13 @@ public static partial class FaceOperationsExtensions /// comma-separated string like "returnFaceAttributes=age,gender". The /// available attributes depends on the 'detectionModel' specified. /// 'detection_01' supports age, gender, headPose, smile, facialHair, glasses, - /// emotion, hair, makeup, occlusion, accessories, blur, exposure, and noise. - /// While 'detection_02' does not support any attributes and 'detection_03' - /// only supports mask. Note that each face attribute analysis has additional - /// computational and time cost. + /// emotion, hair, makeup, occlusion, accessories, blur, exposure, noise, and + /// qualityForRecognition. While 'detection_02' does not support any attributes + /// and 'detection_03' only supports mask and qualityForRecognition. + /// Additionally, qualityForRecognition is only supported when the + /// 'recognitionModel' is specified as 'recognition_03' or 'recognition_04'. + /// Note that each face attribute analysis has additional computational and + /// time cost. /// /// /// Name of recognition model. Recognition model is used when the face features diff --git a/sdk/cognitiveservices/Vision.Face/src/Generated/IFaceListOperations.cs b/sdk/cognitiveservices/Vision.Face/src/Generated/IFaceListOperations.cs index 34500b125423..445ab7da2266 100644 --- a/sdk/cognitiveservices/Vision.Face/src/Generated/IFaceListOperations.cs +++ b/sdk/cognitiveservices/Vision.Face/src/Generated/IFaceListOperations.cs @@ -85,7 +85,7 @@ public partial interface IFaceListOperations /// /// Thrown when a required parameter is null /// - Task CreateWithHttpMessagesAsync(string faceListId, string name = default(string), string userData = default(string), string recognitionModel = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task CreateWithHttpMessagesAsync(string faceListId, string name, string userData = default(string), string recognitionModel = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a face list’s faceListId, name, userData, recognitionModel /// and faces in the face list. diff --git a/sdk/cognitiveservices/Vision.Face/src/Generated/IFaceOperations.cs b/sdk/cognitiveservices/Vision.Face/src/Generated/IFaceOperations.cs index a281a4844400..f9e94325bb01 100644 --- a/sdk/cognitiveservices/Vision.Face/src/Generated/IFaceOperations.cs +++ b/sdk/cognitiveservices/Vision.Face/src/Generated/IFaceOperations.cs @@ -213,8 +213,8 @@ public partial interface IFaceOperations /// same time. /// /// - /// The range of maxNumOfCandidatesReturned is between 1 and 5 (default - /// is 1). + /// The range of maxNumOfCandidatesReturned is between 1 and 100 + /// (default is 1). /// /// /// Confidence threshold of identification, used to judge whether one @@ -290,8 +290,9 @@ public partial interface IFaceOperations /// * Optional parameters include faceId, landmarks, and attributes. /// Attributes include age, gender, headPose, smile, facialHair, /// glasses, emotion, hair, makeup, occlusion, accessories, blur, - /// exposure, noise, and mask. Some of the results returned for - /// specific attributes may not be highly accurate. + /// exposure, noise, mask, and qualityForRecognition. Some of the + /// results returned for specific attributes may not be highly + /// accurate. /// * JPEG, PNG, GIF (the first frame), and BMP format are supported. /// The allowed image file size is from 1KB to 6MB. /// * Up to 100 faces can be returned for an image. Faces are ranked by @@ -341,9 +342,12 @@ public partial interface IFaceOperations /// available attributes depends on the 'detectionModel' specified. /// 'detection_01' supports age, gender, headPose, smile, facialHair, /// glasses, emotion, hair, makeup, occlusion, accessories, blur, - /// exposure, and noise. While 'detection_02' does not support any - /// attributes and 'detection_03' only supports mask. Note that each - /// face attribute analysis has additional computational and time cost. + /// exposure, noise, and qualityForRecognition. While 'detection_02' + /// does not support any attributes and 'detection_03' only supports + /// mask and qualityForRecognition. Additionally, qualityForRecognition + /// is only supported when the 'recognitionModel' is specified as + /// 'recognition_03' or 'recognition_04'. Note that each face attribute + /// analysis has additional computational and time cost. /// /// /// Name of recognition model. Recognition model is used when the face @@ -445,8 +449,9 @@ public partial interface IFaceOperations /// * Optional parameters include faceId, landmarks, and attributes. /// Attributes include age, gender, headPose, smile, facialHair, /// glasses, emotion, hair, makeup, occlusion, accessories, blur, - /// exposure, noise, and mask. Some of the results returned for - /// specific attributes may not be highly accurate. + /// exposure, noise, mask, and qualityForRecognition. Some of the + /// results returned for specific attributes may not be highly + /// accurate. /// * JPEG, PNG, GIF (the first frame), and BMP format are supported. /// The allowed image file size is from 1KB to 6MB. /// * Up to 100 faces can be returned for an image. Faces are ranked by @@ -495,9 +500,12 @@ public partial interface IFaceOperations /// available attributes depends on the 'detectionModel' specified. /// 'detection_01' supports age, gender, headPose, smile, facialHair, /// glasses, emotion, hair, makeup, occlusion, accessories, blur, - /// exposure, and noise. While 'detection_02' does not support any - /// attributes and 'detection_03' only supports mask. Note that each - /// face attribute analysis has additional computational and time cost. + /// exposure, noise, and qualityForRecognition. While 'detection_02' + /// does not support any attributes and 'detection_03' only supports + /// mask and qualityForRecognition. Additionally, qualityForRecognition + /// is only supported when the 'recognitionModel' is specified as + /// 'recognition_03' or 'recognition_04'. Note that each face attribute + /// analysis has additional computational and time cost. /// /// /// Name of recognition model. Recognition model is used when the face diff --git a/sdk/cognitiveservices/Vision.Face/src/Generated/ILargeFaceListOperations.cs b/sdk/cognitiveservices/Vision.Face/src/Generated/ILargeFaceListOperations.cs index 6b9fc2867153..60492bbbd7ff 100644 --- a/sdk/cognitiveservices/Vision.Face/src/Generated/ILargeFaceListOperations.cs +++ b/sdk/cognitiveservices/Vision.Face/src/Generated/ILargeFaceListOperations.cs @@ -88,7 +88,7 @@ public partial interface ILargeFaceListOperations /// /// Thrown when a required parameter is null /// - Task CreateWithHttpMessagesAsync(string largeFaceListId, string name = default(string), string userData = default(string), string recognitionModel = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task CreateWithHttpMessagesAsync(string largeFaceListId, string name, string userData = default(string), string recognitionModel = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a large face list’s largeFaceListId, name, userData and /// recognitionModel. @@ -212,6 +212,14 @@ public partial interface ILargeFaceListOperations /// A value indicating whether the operation should return /// 'recognitionModel' in response. /// + /// + /// Starting large face list id to return (used to list a range of + /// large face lists). + /// + /// + /// Number of large face lists to return starting with the large face + /// list id indicated by the 'start' parameter. + /// /// /// The headers that will be added to request. /// @@ -227,7 +235,7 @@ public partial interface ILargeFaceListOperations /// /// Thrown when a required parameter is null /// - Task>> ListWithHttpMessagesAsync(bool? returnRecognitionModel = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListWithHttpMessagesAsync(bool? returnRecognitionModel = false, string start = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Queue a large face list training task, the training task may not be /// started immediately. diff --git a/sdk/cognitiveservices/Vision.Face/src/Generated/ILargePersonGroupOperations.cs b/sdk/cognitiveservices/Vision.Face/src/Generated/ILargePersonGroupOperations.cs index e1813ad30de8..7f0d70635200 100644 --- a/sdk/cognitiveservices/Vision.Face/src/Generated/ILargePersonGroupOperations.cs +++ b/sdk/cognitiveservices/Vision.Face/src/Generated/ILargePersonGroupOperations.cs @@ -83,7 +83,7 @@ public partial interface ILargePersonGroupOperations /// /// Thrown when a required parameter is null /// - Task CreateWithHttpMessagesAsync(string largePersonGroupId, string name = default(string), string userData = default(string), string recognitionModel = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task CreateWithHttpMessagesAsync(string largePersonGroupId, string name, string userData = default(string), string recognitionModel = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Delete an existing large person group. Persisted face features of /// all people in the large person group will also be deleted. diff --git a/sdk/cognitiveservices/Vision.Face/src/Generated/IPersonGroupOperations.cs b/sdk/cognitiveservices/Vision.Face/src/Generated/IPersonGroupOperations.cs index 1a8f49300593..36c4c3e7c566 100644 --- a/sdk/cognitiveservices/Vision.Face/src/Generated/IPersonGroupOperations.cs +++ b/sdk/cognitiveservices/Vision.Face/src/Generated/IPersonGroupOperations.cs @@ -83,7 +83,7 @@ public partial interface IPersonGroupOperations /// /// Thrown when a required parameter is null /// - Task CreateWithHttpMessagesAsync(string personGroupId, string name = default(string), string userData = default(string), string recognitionModel = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task CreateWithHttpMessagesAsync(string personGroupId, string name, string userData = default(string), string recognitionModel = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Delete an existing person group. Persisted face features of all /// people in the person group will also be deleted. diff --git a/sdk/cognitiveservices/Vision.Face/src/Generated/LargeFaceListOperations.cs b/sdk/cognitiveservices/Vision.Face/src/Generated/LargeFaceListOperations.cs index 9a23246a6504..87b65e6778e3 100644 --- a/sdk/cognitiveservices/Vision.Face/src/Generated/LargeFaceListOperations.cs +++ b/sdk/cognitiveservices/Vision.Face/src/Generated/LargeFaceListOperations.cs @@ -118,7 +118,7 @@ public LargeFaceListOperations(FaceClient client) /// /// A response object containing the response body and response headers. /// - public async Task CreateWithHttpMessagesAsync(string largeFaceListId, string name = default(string), string userData = default(string), string recognitionModel = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task CreateWithHttpMessagesAsync(string largeFaceListId, string name, string userData = default(string), string recognitionModel = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.Endpoint == null) { @@ -139,12 +139,20 @@ public LargeFaceListOperations(FaceClient client) throw new ValidationException(ValidationRules.Pattern, "largeFaceListId", "^[a-z0-9-_]+$"); } } + if (name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } if (name != null) { if (name.Length > 128) { throw new ValidationException(ValidationRules.MaxLength, "name", 128); } + if (name.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "name", 1); + } } if (userData != null) { @@ -952,6 +960,14 @@ public LargeFaceListOperations(FaceClient client) /// A value indicating whether the operation should return 'recognitionModel' /// in response. /// + /// + /// Starting large face list id to return (used to list a range of large face + /// lists). + /// + /// + /// Number of large face lists to return starting with the large face list id + /// indicated by the 'start' parameter. + /// /// /// Headers that will be added to request. /// @@ -973,12 +989,20 @@ public LargeFaceListOperations(FaceClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(bool? returnRecognitionModel = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(bool? returnRecognitionModel = false, string start = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.Endpoint == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); } + if (top > 1000) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "top", 1000); + } + if (top < 1) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "top", 1); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -987,6 +1011,8 @@ public LargeFaceListOperations(FaceClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("returnRecognitionModel", returnRecognitionModel); + tracingParameters.Add("start", start); + tracingParameters.Add("top", top); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); } @@ -999,6 +1025,14 @@ public LargeFaceListOperations(FaceClient client) { _queryParameters.Add(string.Format("returnRecognitionModel={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(returnRecognitionModel, Client.SerializationSettings).Trim('"')))); } + if (start != null) + { + _queryParameters.Add(string.Format("start={0}", System.Uri.EscapeDataString(start))); + } + if (top != null) + { + _queryParameters.Add(string.Format("top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"')))); + } if (_queryParameters.Count > 0) { _url += "?" + string.Join("&", _queryParameters); diff --git a/sdk/cognitiveservices/Vision.Face/src/Generated/LargeFaceListOperationsExtensions.cs b/sdk/cognitiveservices/Vision.Face/src/Generated/LargeFaceListOperationsExtensions.cs index dbc4f17de01d..c41f97283ccc 100644 --- a/sdk/cognitiveservices/Vision.Face/src/Generated/LargeFaceListOperationsExtensions.cs +++ b/sdk/cognitiveservices/Vision.Face/src/Generated/LargeFaceListOperationsExtensions.cs @@ -78,7 +78,7 @@ public static partial class LargeFaceListOperationsExtensions /// /// The cancellation token. /// - public static async Task CreateAsync(this ILargeFaceListOperations operations, string largeFaceListId, string name = default(string), string userData = default(string), string recognitionModel = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateAsync(this ILargeFaceListOperations operations, string largeFaceListId, string name, string userData = default(string), string recognitionModel = default(string), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.CreateWithHttpMessagesAsync(largeFaceListId, name, userData, recognitionModel, null, cancellationToken).ConfigureAwait(false)).Dispose(); } @@ -196,12 +196,20 @@ public static partial class LargeFaceListOperationsExtensions /// A value indicating whether the operation should return 'recognitionModel' /// in response. /// + /// + /// Starting large face list id to return (used to list a range of large face + /// lists). + /// + /// + /// Number of large face lists to return starting with the large face list id + /// indicated by the 'start' parameter. + /// /// /// The cancellation token. /// - public static async Task> ListAsync(this ILargeFaceListOperations operations, bool? returnRecognitionModel = false, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAsync(this ILargeFaceListOperations operations, bool? returnRecognitionModel = false, string start = default(string), int? top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(returnRecognitionModel, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(returnRecognitionModel, start, top, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/cognitiveservices/Vision.Face/src/Generated/LargePersonGroupOperations.cs b/sdk/cognitiveservices/Vision.Face/src/Generated/LargePersonGroupOperations.cs index 292b0c76ad05..95500d2f9176 100644 --- a/sdk/cognitiveservices/Vision.Face/src/Generated/LargePersonGroupOperations.cs +++ b/sdk/cognitiveservices/Vision.Face/src/Generated/LargePersonGroupOperations.cs @@ -114,7 +114,7 @@ public LargePersonGroupOperations(FaceClient client) /// /// A response object containing the response body and response headers. /// - public async Task CreateWithHttpMessagesAsync(string largePersonGroupId, string name = default(string), string userData = default(string), string recognitionModel = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task CreateWithHttpMessagesAsync(string largePersonGroupId, string name, string userData = default(string), string recognitionModel = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.Endpoint == null) { @@ -135,12 +135,20 @@ public LargePersonGroupOperations(FaceClient client) throw new ValidationException(ValidationRules.Pattern, "largePersonGroupId", "^[a-z0-9-_]+$"); } } + if (name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } if (name != null) { if (name.Length > 128) { throw new ValidationException(ValidationRules.MaxLength, "name", 128); } + if (name.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "name", 1); + } } if (userData != null) { diff --git a/sdk/cognitiveservices/Vision.Face/src/Generated/LargePersonGroupOperationsExtensions.cs b/sdk/cognitiveservices/Vision.Face/src/Generated/LargePersonGroupOperationsExtensions.cs index 33c23e8cae79..4cf9bd31dcad 100644 --- a/sdk/cognitiveservices/Vision.Face/src/Generated/LargePersonGroupOperationsExtensions.cs +++ b/sdk/cognitiveservices/Vision.Face/src/Generated/LargePersonGroupOperationsExtensions.cs @@ -73,7 +73,7 @@ public static partial class LargePersonGroupOperationsExtensions /// /// The cancellation token. /// - public static async Task CreateAsync(this ILargePersonGroupOperations operations, string largePersonGroupId, string name = default(string), string userData = default(string), string recognitionModel = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateAsync(this ILargePersonGroupOperations operations, string largePersonGroupId, string name, string userData = default(string), string recognitionModel = default(string), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.CreateWithHttpMessagesAsync(largePersonGroupId, name, userData, recognitionModel, null, cancellationToken).ConfigureAwait(false)).Dispose(); } diff --git a/sdk/cognitiveservices/Vision.Face/src/Generated/Models/FaceAttributeType.cs b/sdk/cognitiveservices/Vision.Face/src/Generated/Models/FaceAttributeType.cs index ac89ad267019..ac5177ef6b16 100644 --- a/sdk/cognitiveservices/Vision.Face/src/Generated/Models/FaceAttributeType.cs +++ b/sdk/cognitiveservices/Vision.Face/src/Generated/Models/FaceAttributeType.cs @@ -50,7 +50,9 @@ public enum FaceAttributeType [EnumMember(Value = "noise")] Noise, [EnumMember(Value = "mask")] - Mask + Mask, + [EnumMember(Value = "qualityForRecognition")] + QualityForRecognition } internal static class FaceAttributeTypeEnumExtension { @@ -93,6 +95,8 @@ internal static string ToSerializedValue(this FaceAttributeType value) return "noise"; case FaceAttributeType.Mask: return "mask"; + case FaceAttributeType.QualityForRecognition: + return "qualityForRecognition"; } return null; } @@ -131,6 +135,8 @@ internal static string ToSerializedValue(this FaceAttributeType value) return FaceAttributeType.Noise; case "mask": return FaceAttributeType.Mask; + case "qualityForRecognition": + return FaceAttributeType.QualityForRecognition; } return null; } diff --git a/sdk/cognitiveservices/Vision.Face/src/Generated/Models/FaceAttributes.cs b/sdk/cognitiveservices/Vision.Face/src/Generated/Models/FaceAttributes.cs index 9f468c35e89f..eee6feff1546 100644 --- a/sdk/cognitiveservices/Vision.Face/src/Generated/Models/FaceAttributes.cs +++ b/sdk/cognitiveservices/Vision.Face/src/Generated/Models/FaceAttributes.cs @@ -60,7 +60,11 @@ public FaceAttributes() /// image. /// Properties describing the presence of a mask on /// a given face. - public FaceAttributes(double? age = default(double?), Gender? gender = default(Gender?), double? smile = default(double?), FacialHair facialHair = default(FacialHair), GlassesType? glasses = default(GlassesType?), HeadPose headPose = default(HeadPose), Emotion emotion = default(Emotion), Hair hair = default(Hair), Makeup makeup = default(Makeup), Occlusion occlusion = default(Occlusion), IList accessories = default(IList), Blur blur = default(Blur), Exposure exposure = default(Exposure), Noise noise = default(Noise), Mask mask = default(Mask)) + /// Properties describing the + /// overall image quality regarding whether the image being used in the + /// detection is of sufficient quality to attempt face recognition on. + /// Possible values include: 'Low', 'Medium', 'High' + public FaceAttributes(double? age = default(double?), Gender? gender = default(Gender?), double? smile = default(double?), FacialHair facialHair = default(FacialHair), GlassesType? glasses = default(GlassesType?), HeadPose headPose = default(HeadPose), Emotion emotion = default(Emotion), Hair hair = default(Hair), Makeup makeup = default(Makeup), Occlusion occlusion = default(Occlusion), IList accessories = default(IList), Blur blur = default(Blur), Exposure exposure = default(Exposure), Noise noise = default(Noise), Mask mask = default(Mask), QualityForRecognition? qualityForRecognition = default(QualityForRecognition?)) { Age = age; Gender = gender; @@ -77,6 +81,7 @@ public FaceAttributes() Exposure = exposure; Noise = noise; Mask = mask; + QualityForRecognition = qualityForRecognition; CustomInit(); } @@ -182,5 +187,14 @@ public FaceAttributes() [JsonProperty(PropertyName = "mask")] public Mask Mask { get; set; } + /// + /// Gets or sets properties describing the overall image quality + /// regarding whether the image being used in the detection is of + /// sufficient quality to attempt face recognition on. Possible values + /// include: 'Low', 'Medium', 'High' + /// + [JsonProperty(PropertyName = "qualityForRecognition")] + public QualityForRecognition? QualityForRecognition { get; set; } + } } diff --git a/sdk/cognitiveservices/Vision.Face/src/Generated/Models/FaceList.cs b/sdk/cognitiveservices/Vision.Face/src/Generated/Models/FaceList.cs index 2047e6b3f527..988a89615fc9 100644 --- a/sdk/cognitiveservices/Vision.Face/src/Generated/Models/FaceList.cs +++ b/sdk/cognitiveservices/Vision.Face/src/Generated/Models/FaceList.cs @@ -32,10 +32,10 @@ public FaceList() /// /// Initializes a new instance of the FaceList class. /// - /// FaceListId of the target face - /// list. /// User defined name, maximum length is /// 128. + /// FaceListId of the target face + /// list. /// User specified data. Length should not /// exceed 16KB. /// Possible values include: @@ -43,7 +43,7 @@ public FaceList() /// 'recognition_04' /// Persisted faces within the face /// list. - public FaceList(string faceListId, string name = default(string), string userData = default(string), string recognitionModel = default(string), IList persistedFaces = default(IList)) + public FaceList(string name, string faceListId, string userData = default(string), string recognitionModel = default(string), IList persistedFaces = default(IList)) : base(name, userData, recognitionModel) { FaceListId = faceListId; diff --git a/sdk/cognitiveservices/Vision.Face/src/Generated/Models/IdentifyRequest.cs b/sdk/cognitiveservices/Vision.Face/src/Generated/Models/IdentifyRequest.cs index 5b6ff7492a60..dbe50f730111 100644 --- a/sdk/cognitiveservices/Vision.Face/src/Generated/Models/IdentifyRequest.cs +++ b/sdk/cognitiveservices/Vision.Face/src/Generated/Models/IdentifyRequest.cs @@ -54,7 +54,7 @@ public IdentifyRequest() /// personGroupId, largePersonGroupId, dynamicPersonGroupId, or /// personIds should not be provided at the same time. /// The range of - /// maxNumOfCandidatesReturned is between 1 and 5 (default is + /// maxNumOfCandidatesReturned is between 1 and 100 (default is /// 1). /// Confidence threshold of /// identification, used to judge whether one face belong to one @@ -125,7 +125,7 @@ public IdentifyRequest() /// /// Gets or sets the range of maxNumOfCandidatesReturned is between 1 - /// and 5 (default is 1). + /// and 100 (default is 1). /// [JsonProperty(PropertyName = "maxNumOfCandidatesReturned")] public int? MaxNumOfCandidatesReturned { get; set; } @@ -197,9 +197,9 @@ public virtual void Validate() throw new ValidationException(ValidationRules.MaxItems, "PersonIds", 30); } } - if (MaxNumOfCandidatesReturned > 5) + if (MaxNumOfCandidatesReturned > 100) { - throw new ValidationException(ValidationRules.InclusiveMaximum, "MaxNumOfCandidatesReturned", 5); + throw new ValidationException(ValidationRules.InclusiveMaximum, "MaxNumOfCandidatesReturned", 100); } if (MaxNumOfCandidatesReturned < 1) { diff --git a/sdk/cognitiveservices/Vision.Face/src/Generated/Models/LargeFaceList.cs b/sdk/cognitiveservices/Vision.Face/src/Generated/Models/LargeFaceList.cs index 1fef4dc53271..8cccc9390ac9 100644 --- a/sdk/cognitiveservices/Vision.Face/src/Generated/Models/LargeFaceList.cs +++ b/sdk/cognitiveservices/Vision.Face/src/Generated/Models/LargeFaceList.cs @@ -30,16 +30,16 @@ public LargeFaceList() /// /// Initializes a new instance of the LargeFaceList class. /// - /// LargeFaceListId of the target large - /// face list. /// User defined name, maximum length is /// 128. + /// LargeFaceListId of the target large + /// face list. /// User specified data. Length should not /// exceed 16KB. /// Possible values include: /// 'recognition_01', 'recognition_02', 'recognition_03', /// 'recognition_04' - public LargeFaceList(string largeFaceListId, string name = default(string), string userData = default(string), string recognitionModel = default(string)) + public LargeFaceList(string name, string largeFaceListId, string userData = default(string), string recognitionModel = default(string)) : base(name, userData, recognitionModel) { LargeFaceListId = largeFaceListId; diff --git a/sdk/cognitiveservices/Vision.Face/src/Generated/Models/LargePersonGroup.cs b/sdk/cognitiveservices/Vision.Face/src/Generated/Models/LargePersonGroup.cs index 72d2266a7512..28a55713fd31 100644 --- a/sdk/cognitiveservices/Vision.Face/src/Generated/Models/LargePersonGroup.cs +++ b/sdk/cognitiveservices/Vision.Face/src/Generated/Models/LargePersonGroup.cs @@ -30,16 +30,16 @@ public LargePersonGroup() /// /// Initializes a new instance of the LargePersonGroup class. /// - /// LargePersonGroupId of the target - /// large person groups /// User defined name, maximum length is /// 128. + /// LargePersonGroupId of the target + /// large person groups /// User specified data. Length should not /// exceed 16KB. /// Possible values include: /// 'recognition_01', 'recognition_02', 'recognition_03', /// 'recognition_04' - public LargePersonGroup(string largePersonGroupId, string name = default(string), string userData = default(string), string recognitionModel = default(string)) + public LargePersonGroup(string name, string largePersonGroupId, string userData = default(string), string recognitionModel = default(string)) : base(name, userData, recognitionModel) { LargePersonGroupId = largePersonGroupId; diff --git a/sdk/cognitiveservices/Vision.Face/src/Generated/Models/MetaDataContract.cs b/sdk/cognitiveservices/Vision.Face/src/Generated/Models/MetaDataContract.cs index 5abd9f09f998..743d8e0be5ac 100644 --- a/sdk/cognitiveservices/Vision.Face/src/Generated/Models/MetaDataContract.cs +++ b/sdk/cognitiveservices/Vision.Face/src/Generated/Models/MetaDataContract.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.CognitiveServices.Vision.Face.Models /// recognition model name for largePersonGroup/personGroup, and /// largeFaceList/faceList. /// - public partial class MetaDataContract : NameAndUserDataContract + public partial class MetaDataContract : NameAndUserDataContractForCreation { /// /// Initializes a new instance of the MetaDataContract class. @@ -38,7 +38,7 @@ public MetaDataContract() /// Possible values include: /// 'recognition_01', 'recognition_02', 'recognition_03', /// 'recognition_04' - public MetaDataContract(string name = default(string), string userData = default(string), string recognitionModel = default(string)) + public MetaDataContract(string name, string userData = default(string), string recognitionModel = default(string)) : base(name, userData) { RecognitionModel = recognitionModel; diff --git a/sdk/cognitiveservices/Vision.Face/src/Generated/Models/NameAndUserDataContractForCreation.cs b/sdk/cognitiveservices/Vision.Face/src/Generated/Models/NameAndUserDataContractForCreation.cs new file mode 100644 index 000000000000..13860e3731eb --- /dev/null +++ b/sdk/cognitiveservices/Vision.Face/src/Generated/Models/NameAndUserDataContractForCreation.cs @@ -0,0 +1,96 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.CognitiveServices.Vision.Face.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// A combination of user defined name and user specified data for the + /// person, largePersonGroup/personGroup, and largeFaceList/faceList. + /// + public partial class NameAndUserDataContractForCreation + { + /// + /// Initializes a new instance of the + /// NameAndUserDataContractForCreation class. + /// + public NameAndUserDataContractForCreation() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// NameAndUserDataContractForCreation class. + /// + /// User defined name, maximum length is + /// 128. + /// User specified data. Length should not + /// exceed 16KB. + public NameAndUserDataContractForCreation(string name, string userData = default(string)) + { + Name = name; + UserData = userData; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets user defined name, maximum length is 128. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets user specified data. Length should not exceed 16KB. + /// + [JsonProperty(PropertyName = "userData")] + public string UserData { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + if (Name != null) + { + if (Name.Length > 128) + { + throw new ValidationException(ValidationRules.MaxLength, "Name", 128); + } + if (Name.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Name", 1); + } + } + if (UserData != null) + { + if (UserData.Length > 16384) + { + throw new ValidationException(ValidationRules.MaxLength, "UserData", 16384); + } + } + } + } +} diff --git a/sdk/cognitiveservices/Vision.Face/src/Generated/Models/PersonGroup.cs b/sdk/cognitiveservices/Vision.Face/src/Generated/Models/PersonGroup.cs index 89bc8bb7e364..0393c740c1f6 100644 --- a/sdk/cognitiveservices/Vision.Face/src/Generated/Models/PersonGroup.cs +++ b/sdk/cognitiveservices/Vision.Face/src/Generated/Models/PersonGroup.cs @@ -30,16 +30,16 @@ public PersonGroup() /// /// Initializes a new instance of the PersonGroup class. /// - /// PersonGroupId of the target person - /// group. /// User defined name, maximum length is /// 128. + /// PersonGroupId of the target person + /// group. /// User specified data. Length should not /// exceed 16KB. /// Possible values include: /// 'recognition_01', 'recognition_02', 'recognition_03', /// 'recognition_04' - public PersonGroup(string personGroupId, string name = default(string), string userData = default(string), string recognitionModel = default(string)) + public PersonGroup(string name, string personGroupId, string userData = default(string), string recognitionModel = default(string)) : base(name, userData, recognitionModel) { PersonGroupId = personGroupId; diff --git a/sdk/cognitiveservices/Vision.Face/src/Generated/Models/QualityForRecognition.cs b/sdk/cognitiveservices/Vision.Face/src/Generated/Models/QualityForRecognition.cs new file mode 100644 index 000000000000..90f74dd5db3a --- /dev/null +++ b/sdk/cognitiveservices/Vision.Face/src/Generated/Models/QualityForRecognition.cs @@ -0,0 +1,66 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.CognitiveServices.Vision.Face.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for QualityForRecognition. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum QualityForRecognition + { + [EnumMember(Value = "Low")] + Low, + [EnumMember(Value = "Medium")] + Medium, + [EnumMember(Value = "High")] + High + } + internal static class QualityForRecognitionEnumExtension + { + internal static string ToSerializedValue(this QualityForRecognition? value) + { + return value == null ? null : ((QualityForRecognition)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this QualityForRecognition value) + { + switch( value ) + { + case QualityForRecognition.Low: + return "Low"; + case QualityForRecognition.Medium: + return "Medium"; + case QualityForRecognition.High: + return "High"; + } + return null; + } + + internal static QualityForRecognition? ParseQualityForRecognition(this string value) + { + switch( value ) + { + case "Low": + return QualityForRecognition.Low; + case "Medium": + return QualityForRecognition.Medium; + case "High": + return QualityForRecognition.High; + } + return null; + } + } +} diff --git a/sdk/cognitiveservices/Vision.Face/src/Generated/PersonGroupOperations.cs b/sdk/cognitiveservices/Vision.Face/src/Generated/PersonGroupOperations.cs index a3f8e5b9db98..f0365429a35f 100644 --- a/sdk/cognitiveservices/Vision.Face/src/Generated/PersonGroupOperations.cs +++ b/sdk/cognitiveservices/Vision.Face/src/Generated/PersonGroupOperations.cs @@ -114,7 +114,7 @@ public PersonGroupOperations(FaceClient client) /// /// A response object containing the response body and response headers. /// - public async Task CreateWithHttpMessagesAsync(string personGroupId, string name = default(string), string userData = default(string), string recognitionModel = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task CreateWithHttpMessagesAsync(string personGroupId, string name, string userData = default(string), string recognitionModel = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.Endpoint == null) { @@ -135,12 +135,20 @@ public PersonGroupOperations(FaceClient client) throw new ValidationException(ValidationRules.Pattern, "personGroupId", "^[a-z0-9-_]+$"); } } + if (name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } if (name != null) { if (name.Length > 128) { throw new ValidationException(ValidationRules.MaxLength, "name", 128); } + if (name.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "name", 1); + } } if (userData != null) { diff --git a/sdk/cognitiveservices/Vision.Face/src/Generated/PersonGroupOperationsExtensions.cs b/sdk/cognitiveservices/Vision.Face/src/Generated/PersonGroupOperationsExtensions.cs index 262bf90a39fa..26d321474e60 100644 --- a/sdk/cognitiveservices/Vision.Face/src/Generated/PersonGroupOperationsExtensions.cs +++ b/sdk/cognitiveservices/Vision.Face/src/Generated/PersonGroupOperationsExtensions.cs @@ -73,7 +73,7 @@ public static partial class PersonGroupOperationsExtensions /// /// The cancellation token. /// - public static async Task CreateAsync(this IPersonGroupOperations operations, string personGroupId, string name = default(string), string userData = default(string), string recognitionModel = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateAsync(this IPersonGroupOperations operations, string personGroupId, string name, string userData = default(string), string recognitionModel = default(string), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.CreateWithHttpMessagesAsync(personGroupId, name, userData, recognitionModel, null, cancellationToken).ConfigureAwait(false)).Dispose(); } diff --git a/sdk/cognitiveservices/Vision.Face/src/Generated/SdkInfo_FaceClient.cs b/sdk/cognitiveservices/Vision.Face/src/Generated/SdkInfo_FaceClient.cs index 9a50b3b29ddc..45897e854e38 100644 --- a/sdk/cognitiveservices/Vision.Face/src/Generated/SdkInfo_FaceClient.cs +++ b/sdk/cognitiveservices/Vision.Face/src/Generated/SdkInfo_FaceClient.cs @@ -31,5 +31,16 @@ public static IEnumerable> ApiInfo_FaceClient }.AsEnumerable(); } } + // BEGIN: Code Generation Metadata Section + public static readonly String AutoRestVersion = "previous"; + public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; + public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cognitiveservices/data-plane/Face/readme.md --csharp --version=previous --reflect-api-versions --tag=release_1_0_preview --csharp.output-folder=./src/Generated"; + public static readonly String GithubForkName = "Azure"; + public static readonly String GithubBranchName = "main"; + public static readonly String GithubCommidId = "cf6beaa3c62ba2c00c01c6cd2067a14e1888fb55"; + public static readonly String CodeGenerationErrors = ""; + public static readonly String GithubRepoName = "azure-rest-api-specs"; + // END: Code Generation Metadata Section } } + diff --git a/sdk/cognitiveservices/Vision.Face/src/Microsoft.Azure.CognitiveServices.Vision.Face.csproj b/sdk/cognitiveservices/Vision.Face/src/Microsoft.Azure.CognitiveServices.Vision.Face.csproj index 33bc4d12a2dc..4404ee39f0dd 100644 --- a/sdk/cognitiveservices/Vision.Face/src/Microsoft.Azure.CognitiveServices.Vision.Face.csproj +++ b/sdk/cognitiveservices/Vision.Face/src/Microsoft.Azure.CognitiveServices.Vision.Face.csproj @@ -2,7 +2,7 @@ Microsoft Cognitive Services Face SDK This client library provides access to the Microsoft Cognitive Services Face APIs. - 2.8.0-preview.2 + 2.8.0-publicpreview.preview.1 Microsoft Cognitive Services;Cognitive Services;Cognitive Services SDK;REST HTTP client;Face;Face API;Face SDK;Vision;netcore451511