This repository has been archived by the owner on May 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2828 from Azure/restapi_auto_cognitiveservices/da…
…ta-plane/TextAnalytics [AutoPR] cognitiveservices/data-plane/TextAnalytics
- Loading branch information
Showing
29 changed files
with
853 additions
and
198 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,6 @@ | |
|
||
'use strict'; | ||
|
||
const models = require('./index'); | ||
|
||
/** | ||
* Class representing a BatchInput. | ||
*/ | ||
|
File renamed without changes.
77 changes: 77 additions & 0 deletions
77
lib/services/cognitiveServicesTextAnalytics/lib/models/entitiesBatchResult.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
/** | ||
* Class representing a EntitiesBatchResult. | ||
*/ | ||
class EntitiesBatchResult { | ||
/** | ||
* Create a EntitiesBatchResult. | ||
* @member {array} [documents] | ||
* @member {array} [errors] | ||
*/ | ||
constructor() { | ||
} | ||
|
||
/** | ||
* Defines the metadata of EntitiesBatchResult | ||
* | ||
* @returns {object} metadata of EntitiesBatchResult | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'EntitiesBatchResult', | ||
type: { | ||
name: 'Composite', | ||
className: 'EntitiesBatchResult', | ||
modelProperties: { | ||
documents: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'documents', | ||
type: { | ||
name: 'Sequence', | ||
element: { | ||
required: false, | ||
serializedName: 'EntitiesBatchResultItemElementType', | ||
type: { | ||
name: 'Composite', | ||
className: 'EntitiesBatchResultItem' | ||
} | ||
} | ||
} | ||
}, | ||
errors: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'errors', | ||
type: { | ||
name: 'Sequence', | ||
element: { | ||
required: false, | ||
serializedName: 'ErrorRecordElementType', | ||
type: { | ||
name: 'Composite', | ||
className: 'ErrorRecord' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = EntitiesBatchResult; |
69 changes: 69 additions & 0 deletions
69
lib/services/cognitiveServicesTextAnalytics/lib/models/entitiesBatchResultItem.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
/** | ||
* Class representing a EntitiesBatchResultItem. | ||
*/ | ||
class EntitiesBatchResultItem { | ||
/** | ||
* Create a EntitiesBatchResultItem. | ||
* @member {string} [id] Unique document identifier. | ||
* @member {array} [entities] Recognized entities in the document. | ||
*/ | ||
constructor() { | ||
} | ||
|
||
/** | ||
* Defines the metadata of EntitiesBatchResultItem | ||
* | ||
* @returns {object} metadata of EntitiesBatchResultItem | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'EntitiesBatchResultItem', | ||
type: { | ||
name: 'Composite', | ||
className: 'EntitiesBatchResultItem', | ||
modelProperties: { | ||
id: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'id', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
entities: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'entities', | ||
type: { | ||
name: 'Sequence', | ||
element: { | ||
required: false, | ||
serializedName: 'EntityRecordElementType', | ||
type: { | ||
name: 'Composite', | ||
className: 'EntityRecord' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = EntitiesBatchResultItem; |
107 changes: 107 additions & 0 deletions
107
lib/services/cognitiveServicesTextAnalytics/lib/models/entityRecord.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
/** | ||
* Class representing a EntityRecord. | ||
*/ | ||
class EntityRecord { | ||
/** | ||
* Create a EntityRecord. | ||
* @member {string} [name] Entity formal name. | ||
* @member {array} [matches] List of instances this entity appears in the | ||
* text. | ||
* @member {string} [wikipediaLanguage] Wikipedia language for which the | ||
* WikipediaId and WikipediaUrl refers to. | ||
* @member {string} [wikipediaId] Wikipedia unique identifier of the | ||
* recognized entity. | ||
* @member {string} [wikipediaUrl] URL for the entity's English Wikipedia | ||
* page. | ||
* @member {string} [bingId] Bing unique identifier of the recognized entity. | ||
* Use in conjunction with the Bing Entity Search API to fetch additional | ||
* relevant information. | ||
*/ | ||
constructor() { | ||
} | ||
|
||
/** | ||
* Defines the metadata of EntityRecord | ||
* | ||
* @returns {object} metadata of EntityRecord | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'EntityRecord', | ||
type: { | ||
name: 'Composite', | ||
className: 'EntityRecord', | ||
modelProperties: { | ||
name: { | ||
required: false, | ||
serializedName: 'name', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
matches: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'matches', | ||
type: { | ||
name: 'Sequence', | ||
element: { | ||
required: false, | ||
serializedName: 'MatchRecordElementType', | ||
type: { | ||
name: 'Composite', | ||
className: 'MatchRecord' | ||
} | ||
} | ||
} | ||
}, | ||
wikipediaLanguage: { | ||
required: false, | ||
serializedName: 'wikipediaLanguage', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
wikipediaId: { | ||
required: false, | ||
serializedName: 'wikipediaId', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
wikipediaUrl: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'wikipediaUrl', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
bingId: { | ||
required: false, | ||
serializedName: 'bingId', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = EntityRecord; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,6 @@ | |
|
||
'use strict'; | ||
|
||
const models = require('./index'); | ||
|
||
/** | ||
* Class representing a ErrorResponse. | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,6 @@ | |
|
||
'use strict'; | ||
|
||
const models = require('./index'); | ||
|
||
/** | ||
* Class representing a InternalError. | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,6 @@ | |
|
||
'use strict'; | ||
|
||
const models = require('./index'); | ||
|
||
/** | ||
* Class representing a LanguageBatchResult. | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.