diff --git a/lib/services/newsSearch/LICENSE.txt b/lib/services/newsSearch/LICENSE.txt index a70e8cf660..5431ba98b9 100644 --- a/lib/services/newsSearch/LICENSE.txt +++ b/lib/services/newsSearch/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2018 Microsoft - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +The MIT License (MIT) + +Copyright (c) 2018 Microsoft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/lib/services/newsSearch/lib/models/answer.js b/lib/services/newsSearch/lib/models/answer.js index 59d67c43f0..a0162303dd 100644 --- a/lib/services/newsSearch/lib/models/answer.js +++ b/lib/services/newsSearch/lib/models/answer.js @@ -20,7 +20,7 @@ const models = require('./index'); class Answer extends models['Response'] { /** * Create a Answer. - * @member {array} [followUpQueries] + * @property {array} [followUpQueries] */ constructor() { super(); diff --git a/lib/services/newsSearch/lib/models/article.js b/lib/services/newsSearch/lib/models/article.js index 37753f3dbf..36e45085ef 100644 --- a/lib/services/newsSearch/lib/models/article.js +++ b/lib/services/newsSearch/lib/models/article.js @@ -19,7 +19,7 @@ const models = require('./index'); class Article extends models['CreativeWork'] { /** * Create a Article. - * @member {number} [wordCount] The number of words in the text of the + * @property {number} [wordCount] The number of words in the text of the * Article. */ constructor() { diff --git a/lib/services/newsSearch/lib/models/creativeWork.js b/lib/services/newsSearch/lib/models/creativeWork.js index 9ea91e0c04..ec231a231f 100644 --- a/lib/services/newsSearch/lib/models/creativeWork.js +++ b/lib/services/newsSearch/lib/models/creativeWork.js @@ -21,22 +21,22 @@ const models = require('./index'); class CreativeWork extends models['Thing'] { /** * Create a CreativeWork. - * @member {string} [thumbnailUrl] The URL to a thumbnail of the item. - * @member {array} [provider] The source of the creative work. - * @member {string} [datePublished] The date on which the CreativeWork was + * @property {string} [thumbnailUrl] The URL to a thumbnail of the item. + * @property {array} [provider] The source of the creative work. + * @property {string} [datePublished] The date on which the CreativeWork was * published. - * @member {object} [video] A video of the item. - * @member {string} [video.motionThumbnailUrl] - * @member {string} [video.motionThumbnailId] - * @member {string} [video.embedHtml] - * @member {boolean} [video.allowHttpsEmbed] - * @member {number} [video.viewCount] - * @member {object} [video.thumbnail] - * @member {object} [video.thumbnail.thumbnail] The URL to a thumbnail of the - * image - * @member {string} [video.videoId] - * @member {boolean} [video.allowMobileEmbed] - * @member {boolean} [video.isSuperfresh] + * @property {object} [video] A video of the item. + * @property {string} [video.motionThumbnailUrl] + * @property {string} [video.motionThumbnailId] + * @property {string} [video.embedHtml] + * @property {boolean} [video.allowHttpsEmbed] + * @property {number} [video.viewCount] + * @property {object} [video.thumbnail] + * @property {object} [video.thumbnail.thumbnail] The URL to a thumbnail of + * the image + * @property {string} [video.videoId] + * @property {boolean} [video.allowMobileEmbed] + * @property {boolean} [video.isSuperfresh] */ constructor() { super(); diff --git a/lib/services/newsSearch/lib/models/errorModel.js b/lib/services/newsSearch/lib/models/errorModel.js index 29a10321dd..d827e4885e 100644 --- a/lib/services/newsSearch/lib/models/errorModel.js +++ b/lib/services/newsSearch/lib/models/errorModel.js @@ -17,22 +17,22 @@ class ErrorModel { /** * Create a ErrorModel. - * @member {string} code The error code that identifies the category of + * @property {string} code The error code that identifies the category of * error. Possible values include: 'None', 'ServerError', 'InvalidRequest', * 'RateLimitExceeded', 'InvalidAuthorization', 'InsufficientAuthorization'. * Default value: 'None' . - * @member {string} [subCode] The error code that further helps to identify + * @property {string} [subCode] The error code that further helps to identify * the error. Possible values include: 'UnexpectedError', 'ResourceError', * 'NotImplemented', 'ParameterMissing', 'ParameterInvalidValue', * 'HttpNotAllowed', 'Blocked', 'AuthorizationMissing', * 'AuthorizationRedundancy', 'AuthorizationDisabled', 'AuthorizationExpired' - * @member {string} message A description of the error. - * @member {string} [moreDetails] A description that provides additional + * @property {string} message A description of the error. + * @property {string} [moreDetails] A description that provides additional * information about the error. - * @member {string} [parameter] The parameter in the request that caused the - * error. - * @member {string} [value] The parameter's value in the request that was not - * valid. + * @property {string} [parameter] The parameter in the request that caused + * the error. + * @property {string} [value] The parameter's value in the request that was + * not valid. */ constructor() { } diff --git a/lib/services/newsSearch/lib/models/errorResponse.js b/lib/services/newsSearch/lib/models/errorResponse.js index 3b2a7eb37f..753ea85cac 100644 --- a/lib/services/newsSearch/lib/models/errorResponse.js +++ b/lib/services/newsSearch/lib/models/errorResponse.js @@ -20,8 +20,8 @@ const models = require('./index'); class ErrorResponse extends models['Response'] { /** * Create a ErrorResponse. - * @member {array} errors A list of errors that describe the reasons why the - * request failed. + * @property {array} errors A list of errors that describe the reasons why + * the request failed. */ constructor() { super(); diff --git a/lib/services/newsSearch/lib/models/identifiable.js b/lib/services/newsSearch/lib/models/identifiable.js index 6cc9e3d679..51ceb85de4 100644 --- a/lib/services/newsSearch/lib/models/identifiable.js +++ b/lib/services/newsSearch/lib/models/identifiable.js @@ -20,7 +20,7 @@ const models = require('./index'); class Identifiable extends models['ResponseBase'] { /** * Create a Identifiable. - * @member {string} [id] A String identifier. + * @property {string} [id] A String identifier. */ constructor() { super(); diff --git a/lib/services/newsSearch/lib/models/imageObject.js b/lib/services/newsSearch/lib/models/imageObject.js index dea3a12f64..1924c3ebf0 100644 --- a/lib/services/newsSearch/lib/models/imageObject.js +++ b/lib/services/newsSearch/lib/models/imageObject.js @@ -20,7 +20,7 @@ const models = require('./index'); class ImageObject extends models['MediaObject'] { /** * Create a ImageObject. - * @member {object} [thumbnail] The URL to a thumbnail of the image + * @property {object} [thumbnail] The URL to a thumbnail of the image */ constructor() { super(); diff --git a/lib/services/newsSearch/lib/models/index.d.ts b/lib/services/newsSearch/lib/models/index.d.ts index d1042b151d..9e9a396175 100644 --- a/lib/services/newsSearch/lib/models/index.d.ts +++ b/lib/services/newsSearch/lib/models/index.d.ts @@ -1,305 +1,245 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import * as moment from "moment"; - /** - * @class - * Initializes a new instance of the ResponseBase class. - * @constructor * Response base - * - * @member {string} _type Polymorphic Discriminator */ export interface ResponseBase { + /** + * Polymorphic Discriminator + */ _type: string; } /** - * @class - * Initializes a new instance of the Identifiable class. - * @constructor * Defines the identity of a resource. - * - * @member {string} [id] A String identifier. */ export interface Identifiable extends ResponseBase { + /** + * A String identifier. + */ readonly id?: string; } /** - * @class - * Initializes a new instance of the Response class. - * @constructor - * Defines a response. All schemas that could be returned at the root of a - * response should inherit from this - * - * @member {string} [webSearchUrl] The URL To Bing's search result for this - * item. + * Defines a response. All schemas that could be returned at the root of a response should inherit + * from this */ export interface Response extends Identifiable { + /** + * The URL To Bing's search result for this item. + */ readonly webSearchUrl?: string; } /** - * @class - * Initializes a new instance of the Thing class. - * @constructor * Defines a thing. - * - * @member {string} [name] The name of the thing represented by this object. - * @member {string} [url] The URL to get more information about the thing - * represented by this object. - * @member {object} [image] An image of the item. - * @member {object} [image.thumbnail] The URL to a thumbnail of the image - * @member {string} [description] A short description of the item. - * @member {string} [alternateName] An alias for the item - * @member {string} [bingId] An ID that uniquely identifies this item. */ export interface Thing extends Response { + /** + * The name of the thing represented by this object. + */ readonly name?: string; + /** + * The URL to get more information about the thing represented by this object. + */ readonly url?: string; + /** + * An image of the item. + */ readonly image?: ImageObject; + /** + * A short description of the item. + */ readonly description?: string; + /** + * An alias for the item + */ readonly alternateName?: string; + /** + * An ID that uniquely identifies this item. + */ readonly bingId?: string; } /** - * @class - * Initializes a new instance of the CreativeWork class. - * @constructor - * The most generic kind of creative work, including books, movies, - * photographs, software programs, etc. - * - * @member {string} [thumbnailUrl] The URL to a thumbnail of the item. - * @member {array} [provider] The source of the creative work. - * @member {string} [datePublished] The date on which the CreativeWork was - * published. - * @member {object} [video] A video of the item. - * @member {string} [video.motionThumbnailUrl] - * @member {string} [video.motionThumbnailId] - * @member {string} [video.embedHtml] - * @member {boolean} [video.allowHttpsEmbed] - * @member {number} [video.viewCount] - * @member {object} [video.thumbnail] - * @member {object} [video.thumbnail.thumbnail] The URL to a thumbnail of the - * image - * @member {string} [video.videoId] - * @member {boolean} [video.allowMobileEmbed] - * @member {boolean} [video.isSuperfresh] + * The most generic kind of creative work, including books, movies, photographs, software programs, + * etc. */ export interface CreativeWork extends Thing { + /** + * The URL to a thumbnail of the item. + */ readonly thumbnailUrl?: string; + /** + * The source of the creative work. + */ readonly provider?: Thing[]; + /** + * The date on which the CreativeWork was published. + */ readonly datePublished?: string; + /** + * A video of the item. + */ readonly video?: VideoObject; } -/** - * @class - * Initializes a new instance of the Article class. - * @constructor - * @member {number} [wordCount] The number of words in the text of the Article. - */ export interface Article extends CreativeWork { + /** + * The number of words in the text of the Article. + */ readonly wordCount?: number; } /** - * @class - * Initializes a new instance of the NewsArticle class. - * @constructor * Defines a news article. - * - * @member {string} [category] The news category that the article belongs to. - * For example, Sports. If the news category cannot be determined, the article - * does not include this field. - * @member {boolean} [headline] A Boolean value that indicates whether the news - * article is a headline. If true, the article is a headline. The article - * includes this field only for news categories requests that do not specify - * the category query parameter. - * @member {array} [clusteredArticles] A list of related news articles. - */ +*/ export interface NewsArticle extends Article { + /** + * The news category that the article belongs to. For example, Sports. If the news category + * cannot be determined, the article does not include this field. + */ readonly category?: string; + /** + * A Boolean value that indicates whether the news article is a headline. If true, the article is + * a headline. The article includes this field only for news categories requests that do not + * specify the category query parameter. + */ readonly headline?: boolean; + /** + * A list of related news articles. + */ readonly clusteredArticles?: NewsArticle[]; } /** - * @class - * Initializes a new instance of the Answer class. - * @constructor * Defines an answer. - * - * @member {array} [followUpQueries] - */ +*/ export interface Answer extends Response { readonly followUpQueries?: Query[]; } /** - * @class - * Initializes a new instance of the SearchResultsAnswer class. - * @constructor * Defines a search result answer. - * - * @member {number} [totalEstimatedMatches] The estimated number of webpages - * that are relevant to the query. Use this number along with the count and - * offset query parameters to page the results. - */ +*/ export interface SearchResultsAnswer extends Answer { + /** + * The estimated number of webpages that are relevant to the query. Use this number along with + * the count and offset query parameters to page the results. + */ readonly totalEstimatedMatches?: number; } /** - * @class - * Initializes a new instance of the News class. - * @constructor * Defines a news answer. - * - * @member {array} value An array of NewsArticle objects that contain - * information about news articles that are relevant to the query. If there are - * no results to return for the request, the array is empty. - * @member {string} [location] Location of local news - */ +*/ export interface News extends SearchResultsAnswer { + /** + * An array of NewsArticle objects that contain information about news articles that are relevant + * to the query. If there are no results to return for the request, the array is empty. + */ value: NewsArticle[]; + /** + * Location of local news + */ readonly location?: string; } /** - * @class - * Initializes a new instance of the MediaObject class. - * @constructor * Defines a media object. - * - * @member {string} [contentUrl] Original URL to retrieve the source (file) for - * the media object (e.g the source URL for the image). - * @member {number} [width] The width of the source media object, in pixels. - * @member {number} [height] The height of the source media object, in pixels. - */ +*/ export interface MediaObject extends CreativeWork { + /** + * Original URL to retrieve the source (file) for the media object (e.g the source URL for the + * image). + */ readonly contentUrl?: string; + /** + * The width of the source media object, in pixels. + */ readonly width?: number; + /** + * The height of the source media object, in pixels. + */ readonly height?: number; } /** - * @class - * Initializes a new instance of the ImageObject class. - * @constructor * Defines an image - * - * @member {object} [thumbnail] The URL to a thumbnail of the image - */ +*/ export interface ImageObject extends MediaObject { + /** + * The URL to a thumbnail of the image + */ readonly thumbnail?: ImageObject; } /** - * @class - * Initializes a new instance of the Query class. - * @constructor * Defines a search query. - * - * @member {string} text The query string. Use this string as the query term in - * a new search request. - * @member {string} [displayText] The display version of the query term. This - * version of the query term may contain special characters that highlight the - * search term found in the query string. The string contains the highlighting - * characters only if the query enabled hit highlighting - * @member {string} [webSearchUrl] The URL that takes the user to the Bing - * search results page for the query.Only related search results include this - * field. - * @member {string} [searchLink] The URL that you use to get the results of the - * related search. Before using the URL, you must append query parameters as - * appropriate and include the Ocp-Apim-Subscription-Key header. Use this URL - * if you're displaying the results in your own user interface. Otherwise, use - * the webSearchUrl URL. - * @member {object} [thumbnail] The URL to a thumbnail of a related image. - * @member {object} [thumbnail.thumbnail] The URL to a thumbnail of the image - */ +*/ export interface Query { + /** + * The query string. Use this string as the query term in a new search request. + */ text: string; + /** + * The display version of the query term. This version of the query term may contain special + * characters that highlight the search term found in the query string. The string contains the + * highlighting characters only if the query enabled hit highlighting + */ readonly displayText?: string; + /** + * The URL that takes the user to the Bing search results page for the query.Only related search + * results include this field. + */ readonly webSearchUrl?: string; + /** + * The URL that you use to get the results of the related search. Before using the URL, you must + * append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header. Use + * this URL if you're displaying the results in your own user interface. Otherwise, use the + * webSearchUrl URL. + */ readonly searchLink?: string; + /** + * The URL to a thumbnail of a related image. + */ readonly thumbnail?: ImageObject; } -/** - * @class - * Initializes a new instance of the NewsTopic class. - * @constructor - * @member {boolean} [isBreakingNews] A Boolean value that indicates whether - * the topic is considered breaking news. If the topic is considered breaking - * news, the value is true. - * @member {object} [query] A search query term that returns this trending - * topic. - * @member {string} [query.text] The query string. Use this string as the query - * term in a new search request. - * @member {string} [query.displayText] The display version of the query term. - * This version of the query term may contain special characters that highlight - * the search term found in the query string. The string contains the - * highlighting characters only if the query enabled hit highlighting - * @member {string} [query.webSearchUrl] The URL that takes the user to the - * Bing search results page for the query.Only related search results include - * this field. - * @member {string} [query.searchLink] The URL that you use to get the results - * of the related search. Before using the URL, you must append query - * parameters as appropriate and include the Ocp-Apim-Subscription-Key header. - * Use this URL if you're displaying the results in your own user interface. - * Otherwise, use the webSearchUrl URL. - * @member {object} [query.thumbnail] The URL to a thumbnail of a related - * image. - * @member {object} [query.thumbnail.thumbnail] The URL to a thumbnail of the - * image - * @member {string} [newsSearchUrl] The URL to the Bing News search results for - * the search query term - */ export interface NewsTopic extends Thing { + /** + * A Boolean value that indicates whether the topic is considered breaking news. If the topic is + * considered breaking news, the value is true. + */ readonly isBreakingNews?: boolean; + /** + * A search query term that returns this trending topic. + */ readonly query?: Query; + /** + * The URL to the Bing News search results for the search query term + */ readonly newsSearchUrl?: string; } -/** - * @class - * Initializes a new instance of the TrendingTopics class. - * @constructor - * @member {array} value A list of trending news topics on Bing - */ export interface TrendingTopics extends Answer { + /** + * A list of trending news topics on Bing + */ value: NewsTopic[]; } /** - * @class - * Initializes a new instance of the VideoObject class. - * @constructor * Defines a video object that is relevant to the query. - * - * @member {string} [motionThumbnailUrl] - * @member {string} [motionThumbnailId] - * @member {string} [embedHtml] - * @member {boolean} [allowHttpsEmbed] - * @member {number} [viewCount] - * @member {object} [thumbnail] - * @member {object} [thumbnail.thumbnail] The URL to a thumbnail of the image - * @member {string} [videoId] - * @member {boolean} [allowMobileEmbed] - * @member {boolean} [isSuperfresh] - */ +*/ export interface VideoObject extends MediaObject { readonly motionThumbnailUrl?: string; readonly motionThumbnailId?: string; @@ -313,56 +253,52 @@ export interface VideoObject extends MediaObject { } /** - * @class - * Initializes a new instance of the Organization class. - * @constructor * Defines an organization. - * - */ +*/ export interface Organization extends Thing { } /** - * @class - * Initializes a new instance of the ErrorModel class. - * @constructor * Defines the error that occurred. - * - * @member {string} code The error code that identifies the category of error. - * Possible values include: 'None', 'ServerError', 'InvalidRequest', - * 'RateLimitExceeded', 'InvalidAuthorization', 'InsufficientAuthorization'. - * Default value: 'None' . - * @member {string} [subCode] The error code that further helps to identify the - * error. Possible values include: 'UnexpectedError', 'ResourceError', - * 'NotImplemented', 'ParameterMissing', 'ParameterInvalidValue', - * 'HttpNotAllowed', 'Blocked', 'AuthorizationMissing', - * 'AuthorizationRedundancy', 'AuthorizationDisabled', 'AuthorizationExpired' - * @member {string} message A description of the error. - * @member {string} [moreDetails] A description that provides additional - * information about the error. - * @member {string} [parameter] The parameter in the request that caused the - * error. - * @member {string} [value] The parameter's value in the request that was not - * valid. - */ +*/ export interface ErrorModel { + /** + * The error code that identifies the category of error. Possible values include: 'None', + * 'ServerError', 'InvalidRequest', 'RateLimitExceeded', 'InvalidAuthorization', + * 'InsufficientAuthorization' + */ code: string; + /** + * The error code that further helps to identify the error. Possible values include: + * 'UnexpectedError', 'ResourceError', 'NotImplemented', 'ParameterMissing', + * 'ParameterInvalidValue', 'HttpNotAllowed', 'Blocked', 'AuthorizationMissing', + * 'AuthorizationRedundancy', 'AuthorizationDisabled', 'AuthorizationExpired' + */ readonly subCode?: string; + /** + * A description of the error. + */ message: string; + /** + * A description that provides additional information about the error. + */ readonly moreDetails?: string; + /** + * The parameter in the request that caused the error. + */ readonly parameter?: string; + /** + * The parameter's value in the request that was not valid. + */ readonly value?: string; } /** - * @class - * Initializes a new instance of the ErrorResponse class. - * @constructor * The top-level response that represents a failed request. - * - * @member {array} errors A list of errors that describe the reasons why the - * request failed. - */ +*/ export interface ErrorResponse extends Response { + /** + * A list of errors that describe the reasons why the request failed. + */ errors: ErrorModel[]; } diff --git a/lib/services/newsSearch/lib/models/mediaObject.js b/lib/services/newsSearch/lib/models/mediaObject.js index 5a19e4e20a..ff5c6061ee 100644 --- a/lib/services/newsSearch/lib/models/mediaObject.js +++ b/lib/services/newsSearch/lib/models/mediaObject.js @@ -20,10 +20,11 @@ const models = require('./index'); class MediaObject extends models['CreativeWork'] { /** * Create a MediaObject. - * @member {string} [contentUrl] Original URL to retrieve the source (file) + * @property {string} [contentUrl] Original URL to retrieve the source (file) * for the media object (e.g the source URL for the image). - * @member {number} [width] The width of the source media object, in pixels. - * @member {number} [height] The height of the source media object, in + * @property {number} [width] The width of the source media object, in + * pixels. + * @property {number} [height] The height of the source media object, in * pixels. */ constructor() { diff --git a/lib/services/newsSearch/lib/models/news.js b/lib/services/newsSearch/lib/models/news.js index bfa21f8467..22c3d2785c 100644 --- a/lib/services/newsSearch/lib/models/news.js +++ b/lib/services/newsSearch/lib/models/news.js @@ -20,10 +20,10 @@ const models = require('./index'); class News extends models['SearchResultsAnswer'] { /** * Create a News. - * @member {array} value An array of NewsArticle objects that contain + * @property {array} value An array of NewsArticle objects that contain * information about news articles that are relevant to the query. If there * are no results to return for the request, the array is empty. - * @member {string} [location] Location of local news + * @property {string} [location] Location of local news */ constructor() { super(); diff --git a/lib/services/newsSearch/lib/models/newsArticle.js b/lib/services/newsSearch/lib/models/newsArticle.js index 5d5075b32d..6e6e0de628 100644 --- a/lib/services/newsSearch/lib/models/newsArticle.js +++ b/lib/services/newsSearch/lib/models/newsArticle.js @@ -20,14 +20,14 @@ const models = require('./index'); class NewsArticle extends models['Article'] { /** * Create a NewsArticle. - * @member {string} [category] The news category that the article belongs to. - * For example, Sports. If the news category cannot be determined, the + * @property {string} [category] The news category that the article belongs + * to. For example, Sports. If the news category cannot be determined, the * article does not include this field. - * @member {boolean} [headline] A Boolean value that indicates whether the + * @property {boolean} [headline] A Boolean value that indicates whether the * news article is a headline. If true, the article is a headline. The * article includes this field only for news categories requests that do not * specify the category query parameter. - * @member {array} [clusteredArticles] A list of related news articles. + * @property {array} [clusteredArticles] A list of related news articles. */ constructor() { super(); diff --git a/lib/services/newsSearch/lib/models/newsTopic.js b/lib/services/newsSearch/lib/models/newsTopic.js index 87622efce9..b9e3a023bc 100644 --- a/lib/services/newsSearch/lib/models/newsTopic.js +++ b/lib/services/newsSearch/lib/models/newsTopic.js @@ -19,30 +19,30 @@ const models = require('./index'); class NewsTopic extends models['Thing'] { /** * Create a NewsTopic. - * @member {boolean} [isBreakingNews] A Boolean value that indicates whether - * the topic is considered breaking news. If the topic is considered breaking - * news, the value is true. - * @member {object} [query] A search query term that returns this trending + * @property {boolean} [isBreakingNews] A Boolean value that indicates + * whether the topic is considered breaking news. If the topic is considered + * breaking news, the value is true. + * @property {object} [query] A search query term that returns this trending * topic. - * @member {string} [query.text] The query string. Use this string as the + * @property {string} [query.text] The query string. Use this string as the * query term in a new search request. - * @member {string} [query.displayText] The display version of the query + * @property {string} [query.displayText] The display version of the query * term. This version of the query term may contain special characters that * highlight the search term found in the query string. The string contains * the highlighting characters only if the query enabled hit highlighting - * @member {string} [query.webSearchUrl] The URL that takes the user to the + * @property {string} [query.webSearchUrl] The URL that takes the user to the * Bing search results page for the query.Only related search results include * this field. - * @member {string} [query.searchLink] The URL that you use to get the + * @property {string} [query.searchLink] The URL that you use to get the * results of the related search. Before using the URL, you must append query * parameters as appropriate and include the Ocp-Apim-Subscription-Key * header. Use this URL if you're displaying the results in your own user * interface. Otherwise, use the webSearchUrl URL. - * @member {object} [query.thumbnail] The URL to a thumbnail of a related + * @property {object} [query.thumbnail] The URL to a thumbnail of a related * image. - * @member {object} [query.thumbnail.thumbnail] The URL to a thumbnail of the - * image - * @member {string} [newsSearchUrl] The URL to the Bing News search results + * @property {object} [query.thumbnail.thumbnail] The URL to a thumbnail of + * the image + * @property {string} [newsSearchUrl] The URL to the Bing News search results * for the search query term */ constructor() { diff --git a/lib/services/newsSearch/lib/models/query.js b/lib/services/newsSearch/lib/models/query.js index 7d46394860..0004b65370 100644 --- a/lib/services/newsSearch/lib/models/query.js +++ b/lib/services/newsSearch/lib/models/query.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Defines a search query. * @@ -19,22 +17,23 @@ const models = require('./index'); class Query { /** * Create a Query. - * @member {string} text The query string. Use this string as the query term - * in a new search request. - * @member {string} [displayText] The display version of the query term. This - * version of the query term may contain special characters that highlight - * the search term found in the query string. The string contains the - * highlighting characters only if the query enabled hit highlighting - * @member {string} [webSearchUrl] The URL that takes the user to the Bing + * @property {string} text The query string. Use this string as the query + * term in a new search request. + * @property {string} [displayText] The display version of the query term. + * This version of the query term may contain special characters that + * highlight the search term found in the query string. The string contains + * the highlighting characters only if the query enabled hit highlighting + * @property {string} [webSearchUrl] The URL that takes the user to the Bing * search results page for the query.Only related search results include this * field. - * @member {string} [searchLink] The URL that you use to get the results of + * @property {string} [searchLink] The URL that you use to get the results of * the related search. Before using the URL, you must append query parameters * as appropriate and include the Ocp-Apim-Subscription-Key header. Use this * URL if you're displaying the results in your own user interface. * Otherwise, use the webSearchUrl URL. - * @member {object} [thumbnail] The URL to a thumbnail of a related image. - * @member {object} [thumbnail.thumbnail] The URL to a thumbnail of the image + * @property {object} [thumbnail] The URL to a thumbnail of a related image. + * @property {object} [thumbnail.thumbnail] The URL to a thumbnail of the + * image */ constructor() { } diff --git a/lib/services/newsSearch/lib/models/response.js b/lib/services/newsSearch/lib/models/response.js index cc3b85c266..0bb2aacfa3 100644 --- a/lib/services/newsSearch/lib/models/response.js +++ b/lib/services/newsSearch/lib/models/response.js @@ -21,7 +21,7 @@ const models = require('./index'); class Response extends models['Identifiable'] { /** * Create a Response. - * @member {string} [webSearchUrl] The URL To Bing's search result for this + * @property {string} [webSearchUrl] The URL To Bing's search result for this * item. */ constructor() { diff --git a/lib/services/newsSearch/lib/models/responseBase.js b/lib/services/newsSearch/lib/models/responseBase.js index 28a5d0d020..902b737a95 100644 --- a/lib/services/newsSearch/lib/models/responseBase.js +++ b/lib/services/newsSearch/lib/models/responseBase.js @@ -17,7 +17,7 @@ class ResponseBase { /** * Create a ResponseBase. - * @member {string} _type Polymorphic Discriminator + * @property {string} _type Polymorphic Discriminator */ constructor() { } diff --git a/lib/services/newsSearch/lib/models/searchResultsAnswer.js b/lib/services/newsSearch/lib/models/searchResultsAnswer.js index 07d3693864..0229e7820c 100644 --- a/lib/services/newsSearch/lib/models/searchResultsAnswer.js +++ b/lib/services/newsSearch/lib/models/searchResultsAnswer.js @@ -20,9 +20,9 @@ const models = require('./index'); class SearchResultsAnswer extends models['Answer'] { /** * Create a SearchResultsAnswer. - * @member {number} [totalEstimatedMatches] The estimated number of webpages - * that are relevant to the query. Use this number along with the count and - * offset query parameters to page the results. + * @property {number} [totalEstimatedMatches] The estimated number of + * webpages that are relevant to the query. Use this number along with the + * count and offset query parameters to page the results. */ constructor() { super(); diff --git a/lib/services/newsSearch/lib/models/thing.js b/lib/services/newsSearch/lib/models/thing.js index 0dbb87b07d..b340fe3835 100644 --- a/lib/services/newsSearch/lib/models/thing.js +++ b/lib/services/newsSearch/lib/models/thing.js @@ -20,14 +20,15 @@ const models = require('./index'); class Thing extends models['Response'] { /** * Create a Thing. - * @member {string} [name] The name of the thing represented by this object. - * @member {string} [url] The URL to get more information about the thing + * @property {string} [name] The name of the thing represented by this + * object. + * @property {string} [url] The URL to get more information about the thing * represented by this object. - * @member {object} [image] An image of the item. - * @member {object} [image.thumbnail] The URL to a thumbnail of the image - * @member {string} [description] A short description of the item. - * @member {string} [alternateName] An alias for the item - * @member {string} [bingId] An ID that uniquely identifies this item. + * @property {object} [image] An image of the item. + * @property {object} [image.thumbnail] The URL to a thumbnail of the image + * @property {string} [description] A short description of the item. + * @property {string} [alternateName] An alias for the item + * @property {string} [bingId] An ID that uniquely identifies this item. */ constructor() { super(); diff --git a/lib/services/newsSearch/lib/models/trendingTopics.js b/lib/services/newsSearch/lib/models/trendingTopics.js index 9dac623d46..9ff7e129c0 100644 --- a/lib/services/newsSearch/lib/models/trendingTopics.js +++ b/lib/services/newsSearch/lib/models/trendingTopics.js @@ -19,7 +19,7 @@ const models = require('./index'); class TrendingTopics extends models['Answer'] { /** * Create a TrendingTopics. - * @member {array} value A list of trending news topics on Bing + * @property {array} value A list of trending news topics on Bing */ constructor() { super(); diff --git a/lib/services/newsSearch/lib/models/videoObject.js b/lib/services/newsSearch/lib/models/videoObject.js index 624b4367c8..a44eaaed3f 100644 --- a/lib/services/newsSearch/lib/models/videoObject.js +++ b/lib/services/newsSearch/lib/models/videoObject.js @@ -20,16 +20,17 @@ const models = require('./index'); class VideoObject extends models['MediaObject'] { /** * Create a VideoObject. - * @member {string} [motionThumbnailUrl] - * @member {string} [motionThumbnailId] - * @member {string} [embedHtml] - * @member {boolean} [allowHttpsEmbed] - * @member {number} [viewCount] - * @member {object} [thumbnail] - * @member {object} [thumbnail.thumbnail] The URL to a thumbnail of the image - * @member {string} [videoId] - * @member {boolean} [allowMobileEmbed] - * @member {boolean} [isSuperfresh] + * @property {string} [motionThumbnailUrl] + * @property {string} [motionThumbnailId] + * @property {string} [embedHtml] + * @property {boolean} [allowHttpsEmbed] + * @property {number} [viewCount] + * @property {object} [thumbnail] + * @property {object} [thumbnail.thumbnail] The URL to a thumbnail of the + * image + * @property {string} [videoId] + * @property {boolean} [allowMobileEmbed] + * @property {boolean} [isSuperfresh] */ constructor() { super(); diff --git a/lib/services/newsSearch/lib/newsSearchAPIClient.d.ts b/lib/services/newsSearch/lib/newsSearchAPIClient.d.ts index 740be7ef7b..0421069561 100644 --- a/lib/services/newsSearch/lib/newsSearchAPIClient.d.ts +++ b/lib/services/newsSearch/lib/newsSearchAPIClient.d.ts @@ -12,6 +12,16 @@ import { ServiceClient, ServiceClientOptions, ServiceClientCredentials } from 'm import * as models from "./models"; import * as operations from "./operations"; +/** + * NewsSearchAPIClientOptions for NewsSearchAPIClient. + */ +declare interface NewsSearchAPIClientOptions extends ServiceClientOptions { + /** + * @property {string} [endpoint] - Supported Cognitive Services endpoints (protocol and hostname, for example: "https://westus.api.cognitive.microsoft.com", "https://api.cognitive.microsoft.com"). + */ + endpoint?: string; +} + export default class NewsSearchAPIClient extends ServiceClient { /** * @class @@ -20,8 +30,6 @@ export default class NewsSearchAPIClient extends ServiceClient { * * @param {credentials} credentials - Subscription credentials which uniquely identify client subscription. * - * @param {string} [baseUri] - The base URI of the service. - * * @param {object} [options] - The parameter options * * @param {Array} [options.filters] - Filters to be added to the request pipeline @@ -31,11 +39,15 @@ export default class NewsSearchAPIClient extends ServiceClient { * * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy * + * @param {string} [options.endpoint] - Supported Cognitive Services endpoints (protocol and hostname, for example: "https://westus.api.cognitive.microsoft.com", "https://api.cognitive.microsoft.com"). + * */ - constructor(credentials: ServiceClientCredentials, baseUri?: string, options?: ServiceClientOptions); + constructor(credentials: ServiceClientCredentials, options?: NewsSearchAPIClientOptions); credentials: ServiceClientCredentials; + endpoint: string; + // Operation groups newsOperations: operations.NewsOperations; } diff --git a/lib/services/newsSearch/lib/newsSearchAPIClient.js b/lib/services/newsSearch/lib/newsSearchAPIClient.js index f4ebee5cc1..289aee5d05 100644 --- a/lib/services/newsSearch/lib/newsSearchAPIClient.js +++ b/lib/services/newsSearch/lib/newsSearchAPIClient.js @@ -26,14 +26,14 @@ class NewsSearchAPIClient extends ServiceClient { /** * Create a NewsSearchAPIClient. * @param {credentials} credentials - Subscription credentials which uniquely identify client subscription. - * @param {string} [baseUri] - The base URI of the service. * @param {object} [options] - The parameter options * @param {Array} [options.filters] - Filters to be added to the request pipeline * @param {object} [options.requestOptions] - Options for the underlying request object * {@link https://github.com/request/request#requestoptions-callback Options doc} * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy + * @param {string} [options.endpoint] - Supported Cognitive Services endpoints (protocol and hostname, for example: "https://westus.api.cognitive.microsoft.com", "https://api.cognitive.microsoft.com"). */ - constructor(credentials, baseUri, options) { + constructor(credentials, options) { if (credentials === null || credentials === undefined) { throw new Error('\'credentials\' cannot be null.'); } @@ -42,14 +42,15 @@ class NewsSearchAPIClient extends ServiceClient { super(credentials, options); - this.baseUri = baseUri; - if (!this.baseUri) { - this.baseUri = 'https://api.cognitive.microsoft.com/bing/v7.0'; - } + this.endpoint = 'https://api.cognitive.microsoft.com'; + this.baseUri = '{Endpoint}/bing/v7.0'; this.credentials = credentials; let packageInfo = this.getPackageJsonInfo(__dirname); this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`); + if(options.endpoint !== null && options.endpoint !== undefined) { + this.endpoint = options.endpoint; + } this.newsOperations = new operations.NewsOperations(this); this.models = models; msRest.addSerializationMixin(this); diff --git a/lib/services/newsSearch/lib/operations/index.d.ts b/lib/services/newsSearch/lib/operations/index.d.ts index 06f2e253df..e87e54ea11 100644 --- a/lib/services/newsSearch/lib/operations/index.d.ts +++ b/lib/services/newsSearch/lib/operations/index.d.ts @@ -575,11 +575,11 @@ export interface NewsOperations { /** - * @summary The News Category API lets lets you search on Bing and get back a - * list of top news articles by category. This section provides technical - * details about the query parameters and headers that you use to request news - * and the JSON response objects that contain them. For examples that show how - * to make requests, see [Searching the web for + * @summary The News Category API lets you search on Bing and get back a list + * of top news articles by category. This section provides technical details + * about the query parameters and headers that you use to request news and the + * JSON response objects that contain them. For examples that show how to make + * requests, see [Searching the web for * news](https://docs.microsoft.com/en-us/azure/cognitive-services/bing-news-search/search-the-web). * * @param {object} [options] Optional Parameters. @@ -843,11 +843,11 @@ export interface NewsOperations { categoryWithHttpOperationResponse(options?: { acceptLanguage? : string, userAgent? : string, clientId? : string, clientIp? : string, location? : string, countryCode? : string, category? : string, count? : number, headlineCount? : number, market? : string, offset? : number, originalImage? : boolean, safeSearch? : string, setLang? : string, textDecorations? : boolean, textFormat? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * @summary The News Category API lets lets you search on Bing and get back a - * list of top news articles by category. This section provides technical - * details about the query parameters and headers that you use to request news - * and the JSON response objects that contain them. For examples that show how - * to make requests, see [Searching the web for + * @summary The News Category API lets you search on Bing and get back a list + * of top news articles by category. This section provides technical details + * about the query parameters and headers that you use to request news and the + * JSON response objects that contain them. For examples that show how to make + * requests, see [Searching the web for * news](https://docs.microsoft.com/en-us/azure/cognitive-services/bing-news-search/search-the-web). * * @param {object} [options] Optional Parameters. @@ -1130,12 +1130,12 @@ export interface NewsOperations { /** - * @summary The News Trending Topics API lets lets you search on Bing and get - * back a list of trending news topics that are currently trending on Bing. - * This section provides technical details about the query parameters and - * headers that you use to request news and the JSON response objects that - * contain them. For examples that show how to make requests, see [Searching - * the web for + * @summary The News Trending Topics API lets you search on Bing and get back a + * list of trending news topics that are currently trending on Bing. This + * section provides technical details about the query parameters and headers + * that you use to request news and the JSON response objects that contain + * them. For examples that show how to make requests, see [Searching the web + * for * news](https://docs.microsoft.com/en-us/azure/cognitive-services/bing-news-search/search-the-web). * * @param {object} [options] Optional Parameters. @@ -1380,12 +1380,12 @@ export interface NewsOperations { trendingWithHttpOperationResponse(options?: { acceptLanguage? : string, userAgent? : string, clientId? : string, clientIp? : string, location? : string, countryCode? : string, count? : number, market? : string, offset? : number, safeSearch? : string, setLang? : string, since? : number, sortBy? : string, textDecorations? : boolean, textFormat? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * @summary The News Trending Topics API lets lets you search on Bing and get - * back a list of trending news topics that are currently trending on Bing. - * This section provides technical details about the query parameters and - * headers that you use to request news and the JSON response objects that - * contain them. For examples that show how to make requests, see [Searching - * the web for + * @summary The News Trending Topics API lets you search on Bing and get back a + * list of trending news topics that are currently trending on Bing. This + * section provides technical details about the query parameters and headers + * that you use to request news and the JSON response objects that contain + * them. For examples that show how to make requests, see [Searching the web + * for * news](https://docs.microsoft.com/en-us/azure/cognitive-services/bing-news-search/search-the-web). * * @param {object} [options] Optional Parameters. diff --git a/lib/services/newsSearch/lib/operations/newsOperations.js b/lib/services/newsSearch/lib/operations/newsOperations.js index d96d6d3ff6..fe1a63726f 100644 --- a/lib/services/newsSearch/lib/operations/newsOperations.js +++ b/lib/services/newsSearch/lib/operations/newsOperations.js @@ -314,6 +314,9 @@ function _search(query, options, callback) { let xBingApisSDK = 'true'; // Validate try { + if (this.client.endpoint === null || this.client.endpoint === undefined || typeof this.client.endpoint.valueOf() !== 'string') { + throw new Error('this.client.endpoint cannot be null or undefined and it must be of type string.'); + } if (acceptLanguage !== null && acceptLanguage !== undefined && typeof acceptLanguage.valueOf() !== 'string') { throw new Error('acceptLanguage must be of type string.'); } @@ -372,6 +375,7 @@ function _search(query, options, callback) { // Construct URL let baseUrl = this.client.baseUri; let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'news/search'; + requestUrl = requestUrl.replace('{Endpoint}', this.client.endpoint); let queryParameters = []; if (countryCode !== null && countryCode !== undefined) { queryParameters.push('cc=' + encodeURIComponent(countryCode)); @@ -502,11 +506,11 @@ function _search(query, options, callback) { } /** - * @summary The News Category API lets lets you search on Bing and get back a - * list of top news articles by category. This section provides technical - * details about the query parameters and headers that you use to request news - * and the JSON response objects that contain them. For examples that show how - * to make requests, see [Searching the web for + * @summary The News Category API lets you search on Bing and get back a list + * of top news articles by category. This section provides technical details + * about the query parameters and headers that you use to request news and the + * JSON response objects that contain them. For examples that show how to make + * requests, see [Searching the web for * news](https://docs.microsoft.com/en-us/azure/cognitive-services/bing-news-search/search-the-web). * * @param {object} [options] Optional Parameters. @@ -803,6 +807,9 @@ function _category(options, callback) { let xBingApisSDK = 'true'; // Validate try { + if (this.client.endpoint === null || this.client.endpoint === undefined || typeof this.client.endpoint.valueOf() !== 'string') { + throw new Error('this.client.endpoint cannot be null or undefined and it must be of type string.'); + } if (acceptLanguage !== null && acceptLanguage !== undefined && typeof acceptLanguage.valueOf() !== 'string') { throw new Error('acceptLanguage must be of type string.'); } @@ -858,6 +865,7 @@ function _category(options, callback) { // Construct URL let baseUrl = this.client.baseUri; let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'news'; + requestUrl = requestUrl.replace('{Endpoint}', this.client.endpoint); let queryParameters = []; if (countryCode !== null && countryCode !== undefined) { queryParameters.push('cc=' + encodeURIComponent(countryCode)); @@ -987,12 +995,12 @@ function _category(options, callback) { } /** - * @summary The News Trending Topics API lets lets you search on Bing and get - * back a list of trending news topics that are currently trending on Bing. - * This section provides technical details about the query parameters and - * headers that you use to request news and the JSON response objects that - * contain them. For examples that show how to make requests, see [Searching - * the web for + * @summary The News Trending Topics API lets you search on Bing and get back a + * list of trending news topics that are currently trending on Bing. This + * section provides technical details about the query parameters and headers + * that you use to request news and the JSON response objects that contain + * them. For examples that show how to make requests, see [Searching the web + * for * news](https://docs.microsoft.com/en-us/azure/cognitive-services/bing-news-search/search-the-web). * * @param {object} [options] Optional Parameters. @@ -1269,6 +1277,9 @@ function _trending(options, callback) { let xBingApisSDK = 'true'; // Validate try { + if (this.client.endpoint === null || this.client.endpoint === undefined || typeof this.client.endpoint.valueOf() !== 'string') { + throw new Error('this.client.endpoint cannot be null or undefined and it must be of type string.'); + } if (acceptLanguage !== null && acceptLanguage !== undefined && typeof acceptLanguage.valueOf() !== 'string') { throw new Error('acceptLanguage must be of type string.'); } @@ -1321,6 +1332,7 @@ function _trending(options, callback) { // Construct URL let baseUrl = this.client.baseUri; let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'news/trendingtopics'; + requestUrl = requestUrl.replace('{Endpoint}', this.client.endpoint); let queryParameters = []; if (countryCode !== null && countryCode !== undefined) { queryParameters.push('cc=' + encodeURIComponent(countryCode)); @@ -2040,11 +2052,11 @@ class NewsOperations { } /** - * @summary The News Category API lets lets you search on Bing and get back a - * list of top news articles by category. This section provides technical - * details about the query parameters and headers that you use to request news - * and the JSON response objects that contain them. For examples that show how - * to make requests, see [Searching the web for + * @summary The News Category API lets you search on Bing and get back a list + * of top news articles by category. This section provides technical details + * about the query parameters and headers that you use to request news and the + * JSON response objects that contain them. For examples that show how to make + * requests, see [Searching the web for * news](https://docs.microsoft.com/en-us/azure/cognitive-services/bing-news-search/search-the-web). * * @param {object} [options] Optional Parameters. @@ -2320,11 +2332,11 @@ class NewsOperations { } /** - * @summary The News Category API lets lets you search on Bing and get back a - * list of top news articles by category. This section provides technical - * details about the query parameters and headers that you use to request news - * and the JSON response objects that contain them. For examples that show how - * to make requests, see [Searching the web for + * @summary The News Category API lets you search on Bing and get back a list + * of top news articles by category. This section provides technical details + * about the query parameters and headers that you use to request news and the + * JSON response objects that contain them. For examples that show how to make + * requests, see [Searching the web for * news](https://docs.microsoft.com/en-us/azure/cognitive-services/bing-news-search/search-the-web). * * @param {object} [options] Optional Parameters. @@ -2622,12 +2634,12 @@ class NewsOperations { } /** - * @summary The News Trending Topics API lets lets you search on Bing and get - * back a list of trending news topics that are currently trending on Bing. - * This section provides technical details about the query parameters and - * headers that you use to request news and the JSON response objects that - * contain them. For examples that show how to make requests, see [Searching - * the web for + * @summary The News Trending Topics API lets you search on Bing and get back a + * list of trending news topics that are currently trending on Bing. This + * section provides technical details about the query parameters and headers + * that you use to request news and the JSON response objects that contain + * them. For examples that show how to make requests, see [Searching the web + * for * news](https://docs.microsoft.com/en-us/azure/cognitive-services/bing-news-search/search-the-web). * * @param {object} [options] Optional Parameters. @@ -2884,12 +2896,12 @@ class NewsOperations { } /** - * @summary The News Trending Topics API lets lets you search on Bing and get - * back a list of trending news topics that are currently trending on Bing. - * This section provides technical details about the query parameters and - * headers that you use to request news and the JSON response objects that - * contain them. For examples that show how to make requests, see [Searching - * the web for + * @summary The News Trending Topics API lets you search on Bing and get back a + * list of trending news topics that are currently trending on Bing. This + * section provides technical details about the query parameters and headers + * that you use to request news and the JSON response objects that contain + * them. For examples that show how to make requests, see [Searching the web + * for * news](https://docs.microsoft.com/en-us/azure/cognitive-services/bing-news-search/search-the-web). * * @param {object} [options] Optional Parameters. diff --git a/lib/services/newsSearch/package.json b/lib/services/newsSearch/package.json index a7a597c1a9..0110be7e79 100644 --- a/lib/services/newsSearch/package.json +++ b/lib/services/newsSearch/package.json @@ -13,12 +13,12 @@ "license": "MIT", "main": "./lib/newsSearchAPIClient.js", "types": "./lib/newsSearchAPIClient.d.ts", - "homepage": "http://github.com/azure/azure-sdk-for-node", + "homepage": "https://github.com/azure/azure-sdk-for-node/tree/master/lib/services/newsSearch", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-node.git" }, "bugs": { - "url": "http://github.com/Azure/azure-sdk-for-node/issues" + "url": "https://github.com/azure/azure-sdk-for-node/issues" } -} \ No newline at end of file +}