From d0697b095c5522a850d11cf432506b6b151b0c60 Mon Sep 17 00:00:00 2001 From: Sarangan Rajamanickam Date: Thu, 25 Jun 2020 22:11:17 -0700 Subject: [PATCH] Regeneration and Other changes (#9711) * Regeneration and Other changes * Test Build Fix * Minor Regenerate Change --- .scripts/readme.ts | 2 +- sdk/search/search-documents/CHANGELOG.md | 7 ++++++- sdk/search/search-documents/README.md | 2 +- sdk/search/search-documents/package.json | 2 +- sdk/search/search-documents/src/constants.ts | 2 +- .../src/generated/data/searchClientContext.ts | 2 +- .../src/generated/service/models/parameters.ts | 12 ++++++------ .../generated/service/searchServiceClientContext.ts | 2 +- sdk/search/search-documents/src/searchClient.ts | 2 +- sdk/search/search-documents/src/searchIndexClient.ts | 2 +- .../search-documents/src/searchIndexerClient.ts | 2 +- sdk/search/search-documents/swagger/Data.md | 2 +- sdk/search/search-documents/swagger/Service.md | 2 +- 13 files changed, 23 insertions(+), 18 deletions(-) diff --git a/.scripts/readme.ts b/.scripts/readme.ts index 45568c4d4123..9f8de6844140 100644 --- a/.scripts/readme.ts +++ b/.scripts/readme.ts @@ -102,7 +102,7 @@ export async function getSinglePackageName(typescriptReadmePath: string): Promis const readmeBuffer: Buffer = await fs.readFile(typescriptReadmePath); const yamlSectionBuffer = await getYamlSection(readmeBuffer, "``` yaml $(typescript)", "```"); const yamlSectionText = yamlSectionBuffer.toString(); - const yamlSection = yaml.safeLoad(yamlSectionText); + const yamlSection:any = yaml.safeLoad(yamlSectionText); return yamlSection["typescript"]["package-name"]; } diff --git a/sdk/search/search-documents/CHANGELOG.md b/sdk/search/search-documents/CHANGELOG.md index 9f5def6039c2..d1b9a3830026 100644 --- a/sdk/search/search-documents/CHANGELOG.md +++ b/sdk/search/search-documents/CHANGELOG.md @@ -1,6 +1,11 @@ # Release History -## 1.0.0-preview.5 (Unreleased) +## 11.0.0 (2020-07-06) +- Set `ConnectionString` value to `` in `SearchIndexerDataSourceConnection`, if the value is not set by the user. +- [Breaking] In Suggest API & Search API return values, a new property called `document` is introduced. All user-defined fields are moved inside this `document` property. +- [Breaking] In `analyzeText` API, the `text` parameter is moved from method level to inside `options` bag. +- [Breaking] In `search` API, `includeTotalResultCount` property is renamed to `includeTotalCount`. +- [Breaking] Modified the names of several properties. Please refer [#9321](https://github.com/Azure/azure-sdk-for-js/issues/9321) for a detailed list of renames. ## 1.0.0-preview.4 (2020-06-08) diff --git a/sdk/search/search-documents/README.md b/sdk/search/search-documents/README.md index f143ffc62f2f..eae040aa3e86 100644 --- a/sdk/search/search-documents/README.md +++ b/sdk/search/search-documents/README.md @@ -279,7 +279,7 @@ async function main() { main(); ``` -For a more advanced search that uses [Lucene syntax](https://docs.microsoft.com/azure/search/query-lucene-syntax), specify `queryType` to be `all`: +For a more advanced search that uses [Lucene syntax](https://docs.microsoft.com/azure/search/query-lucene-syntax), specify `queryType` to be `full`: ```js const { SearchClient, AzureKeyCredential } = require("@azure/search-documents"); diff --git a/sdk/search/search-documents/package.json b/sdk/search/search-documents/package.json index aa69847460b8..726022938f89 100644 --- a/sdk/search/search-documents/package.json +++ b/sdk/search/search-documents/package.json @@ -1,6 +1,6 @@ { "name": "@azure/search-documents", - "version": "1.0.0-preview.5", + "version": "11.0.0", "description": "Azure client library to use Cognitive Search for node.js and browser.", "sdk-type": "client", "main": "dist/index.js", diff --git a/sdk/search/search-documents/src/constants.ts b/sdk/search/search-documents/src/constants.ts index 0ce59c1d5d93..c572a94321b7 100644 --- a/sdk/search/search-documents/src/constants.ts +++ b/sdk/search/search-documents/src/constants.ts @@ -1,4 +1,4 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -export const SDK_VERSION: string = "1.0.0-preview.5"; +export const SDK_VERSION: string = "11.0.0"; diff --git a/sdk/search/search-documents/src/generated/data/searchClientContext.ts b/sdk/search/search-documents/src/generated/data/searchClientContext.ts index 2179c6efa45b..c24944fff1c4 100644 --- a/sdk/search/search-documents/src/generated/data/searchClientContext.ts +++ b/sdk/search/search-documents/src/generated/data/searchClientContext.ts @@ -11,7 +11,7 @@ import * as coreHttp from "@azure/core-http"; const packageName = "@azure/search-documents"; -const packageVersion = "1.0.0-preview.5"; +const packageVersion = "11.0.0"; export class SearchClientContext extends coreHttp.ServiceClient { apiVersion: string; diff --git a/sdk/search/search-documents/src/generated/service/models/parameters.ts b/sdk/search/search-documents/src/generated/service/models/parameters.ts index 7b031950504d..7235dd302ccb 100644 --- a/sdk/search/search-documents/src/generated/service/models/parameters.ts +++ b/sdk/search/search-documents/src/generated/service/models/parameters.ts @@ -78,21 +78,21 @@ export const ifNoneMatch: coreHttp.OperationParameter = { } } }; -export const indexName: coreHttp.OperationURLParameter = { - parameterPath: "indexName", +export const indexerName: coreHttp.OperationURLParameter = { + parameterPath: "indexerName", mapper: { required: true, - serializedName: "indexName", + serializedName: "indexerName", type: { name: "String" } } }; -export const indexerName: coreHttp.OperationURLParameter = { - parameterPath: "indexerName", +export const indexName: coreHttp.OperationURLParameter = { + parameterPath: "indexName", mapper: { required: true, - serializedName: "indexerName", + serializedName: "indexName", type: { name: "String" } diff --git a/sdk/search/search-documents/src/generated/service/searchServiceClientContext.ts b/sdk/search/search-documents/src/generated/service/searchServiceClientContext.ts index 72b582f26324..5d604cc60ef4 100644 --- a/sdk/search/search-documents/src/generated/service/searchServiceClientContext.ts +++ b/sdk/search/search-documents/src/generated/service/searchServiceClientContext.ts @@ -11,7 +11,7 @@ import * as coreHttp from "@azure/core-http"; const packageName = "@azure/search-documents"; -const packageVersion = "1.0.0-preview.5"; +const packageVersion = "11.0.0"; export class SearchServiceClientContext extends coreHttp.ServiceClient { apiVersion: string; diff --git a/sdk/search/search-documents/src/searchClient.ts b/sdk/search/search-documents/src/searchClient.ts index ce2bdda5b3bb..f1491142f8d7 100644 --- a/sdk/search/search-documents/src/searchClient.ts +++ b/sdk/search/search-documents/src/searchClient.ts @@ -65,7 +65,7 @@ export class SearchClient { /** * The API version to use when communicating with the service. */ - public readonly apiVersion: string = "2019-05-06-Preview"; + public readonly apiVersion: string = "2020-06-30"; /** * The endpoint of the search service diff --git a/sdk/search/search-documents/src/searchIndexClient.ts b/sdk/search/search-documents/src/searchIndexClient.ts index 534ffefad661..d6030e2765fe 100644 --- a/sdk/search/search-documents/src/searchIndexClient.ts +++ b/sdk/search/search-documents/src/searchIndexClient.ts @@ -56,7 +56,7 @@ export class SearchIndexClient { /** * The API version to use when communicating with the service. */ - public readonly apiVersion: string = "2019-05-06-Preview"; + public readonly apiVersion: string = "2020-06-30"; /** * The endpoint of the search service diff --git a/sdk/search/search-documents/src/searchIndexerClient.ts b/sdk/search/search-documents/src/searchIndexerClient.ts index 8372d5385f03..f2423e6fc82c 100644 --- a/sdk/search/search-documents/src/searchIndexerClient.ts +++ b/sdk/search/search-documents/src/searchIndexerClient.ts @@ -54,7 +54,7 @@ export class SearchIndexerClient { /** * The API version to use when communicating with the service. */ - public readonly apiVersion: string = "2019-05-06-Preview"; + public readonly apiVersion: string = "2020-06-30"; /** * The endpoint of the search service diff --git a/sdk/search/search-documents/swagger/Data.md b/sdk/search/search-documents/swagger/Data.md index 1b9dd5076d20..397224a8d6a5 100644 --- a/sdk/search/search-documents/swagger/Data.md +++ b/sdk/search/search-documents/swagger/Data.md @@ -10,7 +10,7 @@ generate-metadata: false license-header: MICROSOFT_MIT_NO_VERSION output-folder: ../ source-code-folder-path: ./src/generated/data -input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/search/data-plane/Azure.Search/preview/2019-05-06-preview/searchindex.json +input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/search/data-plane/Azure.Search/preview/2020-06-30/searchindex.json add-credentials: false title: SearchClient use-extension: diff --git a/sdk/search/search-documents/swagger/Service.md b/sdk/search/search-documents/swagger/Service.md index f99700e8a4a3..2877544b7d20 100644 --- a/sdk/search/search-documents/swagger/Service.md +++ b/sdk/search/search-documents/swagger/Service.md @@ -10,7 +10,7 @@ generate-metadata: false license-header: MICROSOFT_MIT_NO_VERSION output-folder: ../ source-code-folder-path: ./src/generated/service -input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/search/data-plane/Azure.Search/preview/2019-05-06-preview/searchservice.json +input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/search/data-plane/Azure.Search/preview/2020-06-30/searchservice.json add-credentials: false use-extension: "@microsoft.azure/autorest.typescript": "5.0.1"