Skip to content

Commit

Permalink
Renames & Refactorings (#9266)
Browse files Browse the repository at this point in the history
* Renames and other Refactorings

* Round II Changes

* Changes III

* Minor PR Feedback change

* Cng GetIndexStatisticsResult-SearchIndexStatistics

* Change ServiceStatistics- SearchServiceStatistics

* Additional modifications

* Some more changes

* Added getSearchClient back

* Change SimpleDataType->SearchFieldDataType

* change similarityALgorithm to similarity

* change vaultUri to vaultUrl

* Remove odata overrides
  • Loading branch information
sarangan12 authored Jun 3, 2020
1 parent dc30784 commit e924eaf
Show file tree
Hide file tree
Showing 25 changed files with 1,812 additions and 1,274 deletions.
511 changes: 240 additions & 271 deletions sdk/search/search-documents/review/search-documents.api.md

Large diffs are not rendered by default.

191 changes: 96 additions & 95 deletions sdk/search/search-documents/src/generated/data/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/


import * as coreHttp from "@azure/core-http";

/**
Expand Down Expand Up @@ -107,7 +108,7 @@ export interface SearchRequest {
orderBy?: string;
/**
* A value that specifies the syntax of the search query. The default is 'simple'. Use 'full' if
* your query uses the Lucene query syntax. Possible values include: 'simple', 'full'
* your query uses the Lucene query syntax. Possible values include: 'Simple', 'Full'
*/
queryType?: QueryType;
/**
Expand Down Expand Up @@ -732,31 +733,31 @@ export interface DocumentsAutocompleteGetOptionalParams extends coreHttp.Request
* @readonly
* @enum {string}
*/
export type QueryType = "simple" | "full";
export type QueryType = 'simple' | 'full';

/**
* Defines values for SearchMode.
* Possible values include: 'Any', 'All'
* @readonly
* @enum {string}
*/
export type SearchMode = "any" | "all";
export type SearchMode = 'any' | 'all';

/**
* Defines values for IndexActionType.
* Possible values include: 'Upload', 'Merge', 'MergeOrUpload', 'Delete'
* @readonly
* @enum {string}
*/
export type IndexActionType = "upload" | "merge" | "mergeOrUpload" | "delete";
export type IndexActionType = 'upload' | 'merge' | 'mergeOrUpload' | 'delete';

/**
* Defines values for AutocompleteMode.
* Possible values include: 'OneTerm', 'TwoTerms', 'OneTermWithContext'
* @readonly
* @enum {string}
*/
export type AutocompleteMode = "oneTerm" | "twoTerms" | "oneTermWithContext";
export type AutocompleteMode = 'oneTerm' | 'twoTerms' | 'oneTermWithContext';

/**
* Contains response data for the count operation.
Expand All @@ -771,16 +772,16 @@ export type DocumentsCountResponse = {
* The underlying HTTP response.
*/
_response: coreHttp.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: number;
};
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: number;
};
};

/**
Expand All @@ -791,16 +792,16 @@ export type DocumentsSearchGetResponse = SearchDocumentsResult & {
* The underlying HTTP response.
*/
_response: coreHttp.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: SearchDocumentsResult;
};
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: SearchDocumentsResult;
};
};

/**
Expand All @@ -811,16 +812,16 @@ export type DocumentsSearchPostResponse = SearchDocumentsResult & {
* The underlying HTTP response.
*/
_response: coreHttp.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: SearchDocumentsResult;
};
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: SearchDocumentsResult;
};
};

/**
Expand All @@ -836,16 +837,16 @@ export type DocumentsGetResponse = {
* The underlying HTTP response.
*/
_response: coreHttp.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: any;
};
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: any;
};
};

/**
Expand All @@ -856,16 +857,16 @@ export type DocumentsSuggestGetResponse = SuggestDocumentsResult & {
* The underlying HTTP response.
*/
_response: coreHttp.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: SuggestDocumentsResult;
};
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: SuggestDocumentsResult;
};
};

/**
Expand All @@ -876,16 +877,16 @@ export type DocumentsSuggestPostResponse = SuggestDocumentsResult & {
* The underlying HTTP response.
*/
_response: coreHttp.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: SuggestDocumentsResult;
};
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: SuggestDocumentsResult;
};
};

/**
Expand All @@ -896,16 +897,16 @@ export type DocumentsIndexResponse = IndexDocumentsResult & {
* The underlying HTTP response.
*/
_response: coreHttp.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: IndexDocumentsResult;
};
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: IndexDocumentsResult;
};
};

/**
Expand All @@ -916,16 +917,16 @@ export type DocumentsAutocompleteGetResponse = AutocompleteResult & {
* The underlying HTTP response.
*/
_response: coreHttp.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: AutocompleteResult;
};
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: AutocompleteResult;
};
};

/**
Expand All @@ -936,14 +937,14 @@ export type DocumentsAutocompletePostResponse = AutocompleteResult & {
* The underlying HTTP response.
*/
_response: coreHttp.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: AutocompleteResult;
};
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: AutocompleteResult;
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
export {
discriminators,
DataChangeDetectionPolicy,
DataContainer,
DataDeletionDetectionPolicy,
DataSource,
DataSourceCredentials,
HighWaterMarkChangeDetectionPolicy,
ListDataSourcesResult,
SearchError,
SearchIndexerDataContainer,
SearchIndexerDataSource,
SoftDeleteColumnDeletionDetectionPolicy,
SqlIntegratedChangeTrackingPolicy
} from "../models/mappers";
Loading

0 comments on commit e924eaf

Please sign in to comment.