@azure/arm-search 1.3.0 → 3.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/{LICENSE.txt → LICENSE} +21 -21
- package/README.md +98 -96
- package/dist/index.js +2926 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +692 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +21 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +35 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +1013 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +22 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +182 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/adminKeys.d.ts +33 -0
- package/dist-esm/src/operations/adminKeys.d.ts.map +1 -0
- package/dist-esm/src/operations/adminKeys.js +90 -0
- package/dist-esm/src/operations/adminKeys.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +8 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +15 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +26 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +90 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +79 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +273 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts +34 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.js +103 -0
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operations/queryKeys.d.ts +66 -0
- package/dist-esm/src/operations/queryKeys.d.ts.map +1 -0
- package/dist-esm/src/operations/queryKeys.js +213 -0
- package/dist-esm/src/operations/queryKeys.js.map +1 -0
- package/dist-esm/src/operations/services.d.ts +123 -0
- package/dist-esm/src/operations/services.d.ts.map +1 -0
- package/dist-esm/src/operations/services.js +475 -0
- package/dist-esm/src/operations/services.js.map +1 -0
- package/dist-esm/src/operations/sharedPrivateLinkResources.d.ts +107 -0
- package/dist-esm/src/operations/sharedPrivateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/sharedPrivateLinkResources.js +379 -0
- package/dist-esm/src/operations/sharedPrivateLinkResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/adminKeys.d.ts +25 -0
- package/dist-esm/src/operationsInterfaces/adminKeys.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/adminKeys.js +9 -0
- package/dist-esm/src/operationsInterfaces/adminKeys.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +8 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +15 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +50 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +15 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/queryKeys.d.ts +37 -0
- package/dist-esm/src/operationsInterfaces/queryKeys.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/queryKeys.js +9 -0
- package/dist-esm/src/operationsInterfaces/queryKeys.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/services.d.ts +85 -0
- package/dist-esm/src/operationsInterfaces/services.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/services.js +9 -0
- package/dist-esm/src/operationsInterfaces/services.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sharedPrivateLinkResources.d.ts +78 -0
- package/dist-esm/src/operationsInterfaces/sharedPrivateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/sharedPrivateLinkResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/sharedPrivateLinkResources.js.map +1 -0
- package/dist-esm/src/searchManagementClient.d.ts +25 -0
- package/dist-esm/src/searchManagementClient.d.ts.map +1 -0
- package/dist-esm/src/searchManagementClient.js +58 -0
- package/dist-esm/src/searchManagementClient.js.map +1 -0
- package/dist-esm/test/search_examples.d.ts +4 -0
- package/dist-esm/test/search_examples.d.ts.map +1 -0
- package/dist-esm/test/search_examples.js +163 -0
- package/dist-esm/test/search_examples.js.map +1 -0
- package/package.json +70 -34
- package/review/arm-search.api.md +600 -0
- package/rollup.config.js +184 -27
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +837 -0
- package/src/models/mappers.ts +1092 -0
- package/src/models/parameters.ts +213 -0
- package/src/operations/adminKeys.ts +122 -0
- package/{lib → src}/operations/index.ts +6 -5
- package/src/operations/operations.ts +98 -0
- package/src/operations/privateEndpointConnections.ts +363 -0
- package/src/operations/privateLinkResources.ts +139 -0
- package/src/operations/queryKeys.ts +288 -0
- package/src/operations/services.ts +606 -0
- package/src/operations/sharedPrivateLinkResources.ts +525 -0
- package/src/operationsInterfaces/adminKeys.ts +48 -0
- package/{esm/operations/index.js → src/operationsInterfaces/index.ts} +7 -6
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +88 -0
- package/src/operationsInterfaces/privateLinkResources.ts +31 -0
- package/src/operationsInterfaces/queryKeys.ts +66 -0
- package/src/operationsInterfaces/services.ts +144 -0
- package/src/operationsInterfaces/sharedPrivateLinkResources.ts +131 -0
- package/src/searchManagementClient.ts +104 -0
- package/tsconfig.json +4 -4
- package/types/arm-search.d.ts +1104 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-search.js +0 -1329
- package/dist/arm-search.js.map +0 -1
- package/dist/arm-search.min.js +0 -1
- package/dist/arm-search.min.js.map +0 -1
- package/esm/models/adminKeysMappers.d.ts +0 -2
- package/esm/models/adminKeysMappers.d.ts.map +0 -1
- package/esm/models/adminKeysMappers.js +0 -11
- package/esm/models/adminKeysMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -788
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -10
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -18
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js +0 -438
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -11
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -11
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -107
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/queryKeysMappers.d.ts +0 -2
- package/esm/models/queryKeysMappers.d.ts.map +0 -1
- package/esm/models/queryKeysMappers.js +0 -11
- package/esm/models/queryKeysMappers.js.map +0 -1
- package/esm/models/servicesMappers.d.ts +0 -2
- package/esm/models/servicesMappers.d.ts.map +0 -1
- package/esm/models/servicesMappers.js +0 -11
- package/esm/models/servicesMappers.js.map +0 -1
- package/esm/operations/adminKeys.d.ts +0 -74
- package/esm/operations/adminKeys.d.ts.map +0 -1
- package/esm/operations/adminKeys.js +0 -93
- package/esm/operations/adminKeys.js.map +0 -1
- package/esm/operations/index.d.ts +0 -5
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -28
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -51
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/queryKeys.d.ts +0 -102
- package/esm/operations/queryKeys.d.ts.map +0 -1
- package/esm/operations/queryKeys.js +0 -127
- package/esm/operations/queryKeys.js.map +0 -1
- package/esm/operations/services.d.ts +0 -174
- package/esm/operations/services.d.ts.map +0 -1
- package/esm/operations/services.js +0 -268
- package/esm/operations/services.js.map +0 -1
- package/esm/searchManagementClient.d.ts +0 -22
- package/esm/searchManagementClient.d.ts.map +0 -1
- package/esm/searchManagementClient.js +0 -37
- package/esm/searchManagementClient.js.map +0 -1
- package/esm/searchManagementClientContext.d.ts +0 -17
- package/esm/searchManagementClientContext.d.ts.map +0 -1
- package/esm/searchManagementClientContext.js +0 -57
- package/esm/searchManagementClientContext.js.map +0 -1
- package/lib/models/adminKeysMappers.ts +0 -15
- package/lib/models/index.ts +0 -842
- package/lib/models/mappers.ts +0 -462
- package/lib/models/operationsMappers.ts +0 -17
- package/lib/models/parameters.ts +0 -109
- package/lib/models/queryKeysMappers.ts +0 -16
- package/lib/models/servicesMappers.ts +0 -22
- package/lib/operations/adminKeys.ts +0 -167
- package/lib/operations/operations.ts +0 -74
- package/lib/operations/queryKeys.ts +0 -234
- package/lib/operations/services.ts +0 -439
- package/lib/searchManagementClient.ts +0 -49
- package/lib/searchManagementClientContext.ts +0 -63
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { QueryKeys } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { SearchManagementClient } from "../searchManagementClient";
|
|
15
|
+
import {
|
|
16
|
+
QueryKey,
|
|
17
|
+
QueryKeysListBySearchServiceNextOptionalParams,
|
|
18
|
+
QueryKeysListBySearchServiceOptionalParams,
|
|
19
|
+
QueryKeysCreateOptionalParams,
|
|
20
|
+
QueryKeysCreateResponse,
|
|
21
|
+
QueryKeysListBySearchServiceResponse,
|
|
22
|
+
QueryKeysDeleteOptionalParams,
|
|
23
|
+
QueryKeysListBySearchServiceNextResponse
|
|
24
|
+
} from "../models";
|
|
25
|
+
|
|
26
|
+
/// <reference lib="esnext.asynciterable" />
|
|
27
|
+
/** Class containing QueryKeys operations. */
|
|
28
|
+
export class QueryKeysImpl implements QueryKeys {
|
|
29
|
+
private readonly client: SearchManagementClient;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Initialize a new instance of the class QueryKeys class.
|
|
33
|
+
* @param client Reference to the service client
|
|
34
|
+
*/
|
|
35
|
+
constructor(client: SearchManagementClient) {
|
|
36
|
+
this.client = client;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Returns the list of query API keys for the given Azure Cognitive Search service.
|
|
41
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
42
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
43
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
44
|
+
* specified resource group.
|
|
45
|
+
* @param options The options parameters.
|
|
46
|
+
*/
|
|
47
|
+
public listBySearchService(
|
|
48
|
+
resourceGroupName: string,
|
|
49
|
+
searchServiceName: string,
|
|
50
|
+
options?: QueryKeysListBySearchServiceOptionalParams
|
|
51
|
+
): PagedAsyncIterableIterator<QueryKey> {
|
|
52
|
+
const iter = this.listBySearchServicePagingAll(
|
|
53
|
+
resourceGroupName,
|
|
54
|
+
searchServiceName,
|
|
55
|
+
options
|
|
56
|
+
);
|
|
57
|
+
return {
|
|
58
|
+
next() {
|
|
59
|
+
return iter.next();
|
|
60
|
+
},
|
|
61
|
+
[Symbol.asyncIterator]() {
|
|
62
|
+
return this;
|
|
63
|
+
},
|
|
64
|
+
byPage: () => {
|
|
65
|
+
return this.listBySearchServicePagingPage(
|
|
66
|
+
resourceGroupName,
|
|
67
|
+
searchServiceName,
|
|
68
|
+
options
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
private async *listBySearchServicePagingPage(
|
|
75
|
+
resourceGroupName: string,
|
|
76
|
+
searchServiceName: string,
|
|
77
|
+
options?: QueryKeysListBySearchServiceOptionalParams
|
|
78
|
+
): AsyncIterableIterator<QueryKey[]> {
|
|
79
|
+
let result = await this._listBySearchService(
|
|
80
|
+
resourceGroupName,
|
|
81
|
+
searchServiceName,
|
|
82
|
+
options
|
|
83
|
+
);
|
|
84
|
+
yield result.value || [];
|
|
85
|
+
let continuationToken = result.nextLink;
|
|
86
|
+
while (continuationToken) {
|
|
87
|
+
result = await this._listBySearchServiceNext(
|
|
88
|
+
resourceGroupName,
|
|
89
|
+
searchServiceName,
|
|
90
|
+
continuationToken,
|
|
91
|
+
options
|
|
92
|
+
);
|
|
93
|
+
continuationToken = result.nextLink;
|
|
94
|
+
yield result.value || [];
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
private async *listBySearchServicePagingAll(
|
|
99
|
+
resourceGroupName: string,
|
|
100
|
+
searchServiceName: string,
|
|
101
|
+
options?: QueryKeysListBySearchServiceOptionalParams
|
|
102
|
+
): AsyncIterableIterator<QueryKey> {
|
|
103
|
+
for await (const page of this.listBySearchServicePagingPage(
|
|
104
|
+
resourceGroupName,
|
|
105
|
+
searchServiceName,
|
|
106
|
+
options
|
|
107
|
+
)) {
|
|
108
|
+
yield* page;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Generates a new query key for the specified search service. You can create up to 50 query keys per
|
|
114
|
+
* service.
|
|
115
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
116
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
117
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
118
|
+
* specified resource group.
|
|
119
|
+
* @param name The name of the new query API key.
|
|
120
|
+
* @param options The options parameters.
|
|
121
|
+
*/
|
|
122
|
+
create(
|
|
123
|
+
resourceGroupName: string,
|
|
124
|
+
searchServiceName: string,
|
|
125
|
+
name: string,
|
|
126
|
+
options?: QueryKeysCreateOptionalParams
|
|
127
|
+
): Promise<QueryKeysCreateResponse> {
|
|
128
|
+
return this.client.sendOperationRequest(
|
|
129
|
+
{ resourceGroupName, searchServiceName, name, options },
|
|
130
|
+
createOperationSpec
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Returns the list of query API keys for the given Azure Cognitive Search service.
|
|
136
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
137
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
138
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
139
|
+
* specified resource group.
|
|
140
|
+
* @param options The options parameters.
|
|
141
|
+
*/
|
|
142
|
+
private _listBySearchService(
|
|
143
|
+
resourceGroupName: string,
|
|
144
|
+
searchServiceName: string,
|
|
145
|
+
options?: QueryKeysListBySearchServiceOptionalParams
|
|
146
|
+
): Promise<QueryKeysListBySearchServiceResponse> {
|
|
147
|
+
return this.client.sendOperationRequest(
|
|
148
|
+
{ resourceGroupName, searchServiceName, options },
|
|
149
|
+
listBySearchServiceOperationSpec
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for
|
|
155
|
+
* regenerating a query key is to delete and then recreate it.
|
|
156
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
157
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
158
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
159
|
+
* specified resource group.
|
|
160
|
+
* @param key The query key to be deleted. Query keys are identified by value, not by name.
|
|
161
|
+
* @param options The options parameters.
|
|
162
|
+
*/
|
|
163
|
+
delete(
|
|
164
|
+
resourceGroupName: string,
|
|
165
|
+
searchServiceName: string,
|
|
166
|
+
key: string,
|
|
167
|
+
options?: QueryKeysDeleteOptionalParams
|
|
168
|
+
): Promise<void> {
|
|
169
|
+
return this.client.sendOperationRequest(
|
|
170
|
+
{ resourceGroupName, searchServiceName, key, options },
|
|
171
|
+
deleteOperationSpec
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* ListBySearchServiceNext
|
|
177
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
178
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
179
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
180
|
+
* specified resource group.
|
|
181
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySearchService method.
|
|
182
|
+
* @param options The options parameters.
|
|
183
|
+
*/
|
|
184
|
+
private _listBySearchServiceNext(
|
|
185
|
+
resourceGroupName: string,
|
|
186
|
+
searchServiceName: string,
|
|
187
|
+
nextLink: string,
|
|
188
|
+
options?: QueryKeysListBySearchServiceNextOptionalParams
|
|
189
|
+
): Promise<QueryKeysListBySearchServiceNextResponse> {
|
|
190
|
+
return this.client.sendOperationRequest(
|
|
191
|
+
{ resourceGroupName, searchServiceName, nextLink, options },
|
|
192
|
+
listBySearchServiceNextOperationSpec
|
|
193
|
+
);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
// Operation Specifications
|
|
197
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
198
|
+
|
|
199
|
+
const createOperationSpec: coreClient.OperationSpec = {
|
|
200
|
+
path:
|
|
201
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/createQueryKey/{name}",
|
|
202
|
+
httpMethod: "POST",
|
|
203
|
+
responses: {
|
|
204
|
+
200: {
|
|
205
|
+
bodyMapper: Mappers.QueryKey
|
|
206
|
+
},
|
|
207
|
+
default: {
|
|
208
|
+
bodyMapper: Mappers.CloudError
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
queryParameters: [Parameters.apiVersion],
|
|
212
|
+
urlParameters: [
|
|
213
|
+
Parameters.$host,
|
|
214
|
+
Parameters.resourceGroupName,
|
|
215
|
+
Parameters.searchServiceName,
|
|
216
|
+
Parameters.subscriptionId,
|
|
217
|
+
Parameters.name
|
|
218
|
+
],
|
|
219
|
+
headerParameters: [Parameters.accept, Parameters.clientRequestId],
|
|
220
|
+
serializer
|
|
221
|
+
};
|
|
222
|
+
const listBySearchServiceOperationSpec: coreClient.OperationSpec = {
|
|
223
|
+
path:
|
|
224
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/listQueryKeys",
|
|
225
|
+
httpMethod: "POST",
|
|
226
|
+
responses: {
|
|
227
|
+
200: {
|
|
228
|
+
bodyMapper: Mappers.ListQueryKeysResult
|
|
229
|
+
},
|
|
230
|
+
default: {
|
|
231
|
+
bodyMapper: Mappers.CloudError
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
queryParameters: [Parameters.apiVersion],
|
|
235
|
+
urlParameters: [
|
|
236
|
+
Parameters.$host,
|
|
237
|
+
Parameters.resourceGroupName,
|
|
238
|
+
Parameters.searchServiceName,
|
|
239
|
+
Parameters.subscriptionId
|
|
240
|
+
],
|
|
241
|
+
headerParameters: [Parameters.accept, Parameters.clientRequestId],
|
|
242
|
+
serializer
|
|
243
|
+
};
|
|
244
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
245
|
+
path:
|
|
246
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/deleteQueryKey/{key}",
|
|
247
|
+
httpMethod: "DELETE",
|
|
248
|
+
responses: {
|
|
249
|
+
200: {},
|
|
250
|
+
204: {},
|
|
251
|
+
404: {},
|
|
252
|
+
default: {
|
|
253
|
+
bodyMapper: Mappers.CloudError
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
queryParameters: [Parameters.apiVersion],
|
|
257
|
+
urlParameters: [
|
|
258
|
+
Parameters.$host,
|
|
259
|
+
Parameters.resourceGroupName,
|
|
260
|
+
Parameters.searchServiceName,
|
|
261
|
+
Parameters.subscriptionId,
|
|
262
|
+
Parameters.key
|
|
263
|
+
],
|
|
264
|
+
headerParameters: [Parameters.accept, Parameters.clientRequestId],
|
|
265
|
+
serializer
|
|
266
|
+
};
|
|
267
|
+
const listBySearchServiceNextOperationSpec: coreClient.OperationSpec = {
|
|
268
|
+
path: "{nextLink}",
|
|
269
|
+
httpMethod: "GET",
|
|
270
|
+
responses: {
|
|
271
|
+
200: {
|
|
272
|
+
bodyMapper: Mappers.ListQueryKeysResult
|
|
273
|
+
},
|
|
274
|
+
default: {
|
|
275
|
+
bodyMapper: Mappers.CloudError
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
queryParameters: [Parameters.apiVersion],
|
|
279
|
+
urlParameters: [
|
|
280
|
+
Parameters.$host,
|
|
281
|
+
Parameters.resourceGroupName,
|
|
282
|
+
Parameters.searchServiceName,
|
|
283
|
+
Parameters.subscriptionId,
|
|
284
|
+
Parameters.nextLink
|
|
285
|
+
],
|
|
286
|
+
headerParameters: [Parameters.accept, Parameters.clientRequestId],
|
|
287
|
+
serializer
|
|
288
|
+
};
|