@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
package/dist/index.js
ADDED
|
@@ -0,0 +1,2926 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var coreClient = require('@azure/core-client');
|
|
6
|
+
var tslib = require('tslib');
|
|
7
|
+
var coreLro = require('@azure/core-lro');
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* Copyright (c) Microsoft Corporation.
|
|
11
|
+
* Licensed under the MIT License.
|
|
12
|
+
*
|
|
13
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
14
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
15
|
+
*/
|
|
16
|
+
(function (KnownUnavailableNameReason) {
|
|
17
|
+
KnownUnavailableNameReason["Invalid"] = "Invalid";
|
|
18
|
+
KnownUnavailableNameReason["AlreadyExists"] = "AlreadyExists";
|
|
19
|
+
})(exports.KnownUnavailableNameReason || (exports.KnownUnavailableNameReason = {}));
|
|
20
|
+
(function (KnownSharedPrivateLinkResourceAsyncOperationResult) {
|
|
21
|
+
KnownSharedPrivateLinkResourceAsyncOperationResult["Running"] = "Running";
|
|
22
|
+
KnownSharedPrivateLinkResourceAsyncOperationResult["Succeeded"] = "Succeeded";
|
|
23
|
+
KnownSharedPrivateLinkResourceAsyncOperationResult["Failed"] = "Failed";
|
|
24
|
+
})(exports.KnownSharedPrivateLinkResourceAsyncOperationResult || (exports.KnownSharedPrivateLinkResourceAsyncOperationResult = {}));
|
|
25
|
+
|
|
26
|
+
/*
|
|
27
|
+
* Copyright (c) Microsoft Corporation.
|
|
28
|
+
* Licensed under the MIT License.
|
|
29
|
+
*
|
|
30
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
31
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
32
|
+
*/
|
|
33
|
+
const OperationListResult = {
|
|
34
|
+
type: {
|
|
35
|
+
name: "Composite",
|
|
36
|
+
className: "OperationListResult",
|
|
37
|
+
modelProperties: {
|
|
38
|
+
value: {
|
|
39
|
+
serializedName: "value",
|
|
40
|
+
readOnly: true,
|
|
41
|
+
type: {
|
|
42
|
+
name: "Sequence",
|
|
43
|
+
element: {
|
|
44
|
+
type: {
|
|
45
|
+
name: "Composite",
|
|
46
|
+
className: "Operation"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
nextLink: {
|
|
52
|
+
serializedName: "nextLink",
|
|
53
|
+
readOnly: true,
|
|
54
|
+
type: {
|
|
55
|
+
name: "String"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
const Operation = {
|
|
62
|
+
type: {
|
|
63
|
+
name: "Composite",
|
|
64
|
+
className: "Operation",
|
|
65
|
+
modelProperties: {
|
|
66
|
+
name: {
|
|
67
|
+
serializedName: "name",
|
|
68
|
+
readOnly: true,
|
|
69
|
+
type: {
|
|
70
|
+
name: "String"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
display: {
|
|
74
|
+
serializedName: "display",
|
|
75
|
+
type: {
|
|
76
|
+
name: "Composite",
|
|
77
|
+
className: "OperationDisplay"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
const OperationDisplay = {
|
|
84
|
+
type: {
|
|
85
|
+
name: "Composite",
|
|
86
|
+
className: "OperationDisplay",
|
|
87
|
+
modelProperties: {
|
|
88
|
+
provider: {
|
|
89
|
+
serializedName: "provider",
|
|
90
|
+
readOnly: true,
|
|
91
|
+
type: {
|
|
92
|
+
name: "String"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
operation: {
|
|
96
|
+
serializedName: "operation",
|
|
97
|
+
readOnly: true,
|
|
98
|
+
type: {
|
|
99
|
+
name: "String"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
resource: {
|
|
103
|
+
serializedName: "resource",
|
|
104
|
+
readOnly: true,
|
|
105
|
+
type: {
|
|
106
|
+
name: "String"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
description: {
|
|
110
|
+
serializedName: "description",
|
|
111
|
+
readOnly: true,
|
|
112
|
+
type: {
|
|
113
|
+
name: "String"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
const CloudError = {
|
|
120
|
+
type: {
|
|
121
|
+
name: "Composite",
|
|
122
|
+
className: "CloudError",
|
|
123
|
+
modelProperties: {
|
|
124
|
+
error: {
|
|
125
|
+
serializedName: "error",
|
|
126
|
+
type: {
|
|
127
|
+
name: "Composite",
|
|
128
|
+
className: "CloudErrorBody"
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
const CloudErrorBody = {
|
|
135
|
+
type: {
|
|
136
|
+
name: "Composite",
|
|
137
|
+
className: "CloudErrorBody",
|
|
138
|
+
modelProperties: {
|
|
139
|
+
code: {
|
|
140
|
+
serializedName: "code",
|
|
141
|
+
type: {
|
|
142
|
+
name: "String"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
message: {
|
|
146
|
+
serializedName: "message",
|
|
147
|
+
type: {
|
|
148
|
+
name: "String"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
target: {
|
|
152
|
+
serializedName: "target",
|
|
153
|
+
type: {
|
|
154
|
+
name: "String"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
details: {
|
|
158
|
+
serializedName: "details",
|
|
159
|
+
type: {
|
|
160
|
+
name: "Sequence",
|
|
161
|
+
element: {
|
|
162
|
+
type: {
|
|
163
|
+
name: "Composite",
|
|
164
|
+
className: "CloudErrorBody"
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
const AdminKeyResult = {
|
|
173
|
+
type: {
|
|
174
|
+
name: "Composite",
|
|
175
|
+
className: "AdminKeyResult",
|
|
176
|
+
modelProperties: {
|
|
177
|
+
primaryKey: {
|
|
178
|
+
serializedName: "primaryKey",
|
|
179
|
+
readOnly: true,
|
|
180
|
+
type: {
|
|
181
|
+
name: "String"
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
secondaryKey: {
|
|
185
|
+
serializedName: "secondaryKey",
|
|
186
|
+
readOnly: true,
|
|
187
|
+
type: {
|
|
188
|
+
name: "String"
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
const QueryKey = {
|
|
195
|
+
type: {
|
|
196
|
+
name: "Composite",
|
|
197
|
+
className: "QueryKey",
|
|
198
|
+
modelProperties: {
|
|
199
|
+
name: {
|
|
200
|
+
serializedName: "name",
|
|
201
|
+
readOnly: true,
|
|
202
|
+
type: {
|
|
203
|
+
name: "String"
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
key: {
|
|
207
|
+
serializedName: "key",
|
|
208
|
+
readOnly: true,
|
|
209
|
+
type: {
|
|
210
|
+
name: "String"
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
const ListQueryKeysResult = {
|
|
217
|
+
type: {
|
|
218
|
+
name: "Composite",
|
|
219
|
+
className: "ListQueryKeysResult",
|
|
220
|
+
modelProperties: {
|
|
221
|
+
value: {
|
|
222
|
+
serializedName: "value",
|
|
223
|
+
readOnly: true,
|
|
224
|
+
type: {
|
|
225
|
+
name: "Sequence",
|
|
226
|
+
element: {
|
|
227
|
+
type: {
|
|
228
|
+
name: "Composite",
|
|
229
|
+
className: "QueryKey"
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
nextLink: {
|
|
235
|
+
serializedName: "nextLink",
|
|
236
|
+
readOnly: true,
|
|
237
|
+
type: {
|
|
238
|
+
name: "String"
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
const NetworkRuleSet = {
|
|
245
|
+
type: {
|
|
246
|
+
name: "Composite",
|
|
247
|
+
className: "NetworkRuleSet",
|
|
248
|
+
modelProperties: {
|
|
249
|
+
ipRules: {
|
|
250
|
+
serializedName: "ipRules",
|
|
251
|
+
type: {
|
|
252
|
+
name: "Sequence",
|
|
253
|
+
element: {
|
|
254
|
+
type: {
|
|
255
|
+
name: "Composite",
|
|
256
|
+
className: "IpRule"
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
const IpRule = {
|
|
265
|
+
type: {
|
|
266
|
+
name: "Composite",
|
|
267
|
+
className: "IpRule",
|
|
268
|
+
modelProperties: {
|
|
269
|
+
value: {
|
|
270
|
+
serializedName: "value",
|
|
271
|
+
type: {
|
|
272
|
+
name: "String"
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
const PrivateEndpointConnectionProperties = {
|
|
279
|
+
type: {
|
|
280
|
+
name: "Composite",
|
|
281
|
+
className: "PrivateEndpointConnectionProperties",
|
|
282
|
+
modelProperties: {
|
|
283
|
+
privateEndpoint: {
|
|
284
|
+
serializedName: "privateEndpoint",
|
|
285
|
+
type: {
|
|
286
|
+
name: "Composite",
|
|
287
|
+
className: "PrivateEndpointConnectionPropertiesPrivateEndpoint"
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
privateLinkServiceConnectionState: {
|
|
291
|
+
serializedName: "privateLinkServiceConnectionState",
|
|
292
|
+
type: {
|
|
293
|
+
name: "Composite",
|
|
294
|
+
className: "PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState"
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
};
|
|
300
|
+
const PrivateEndpointConnectionPropertiesPrivateEndpoint = {
|
|
301
|
+
type: {
|
|
302
|
+
name: "Composite",
|
|
303
|
+
className: "PrivateEndpointConnectionPropertiesPrivateEndpoint",
|
|
304
|
+
modelProperties: {
|
|
305
|
+
id: {
|
|
306
|
+
serializedName: "id",
|
|
307
|
+
type: {
|
|
308
|
+
name: "String"
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
};
|
|
314
|
+
const PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState = {
|
|
315
|
+
type: {
|
|
316
|
+
name: "Composite",
|
|
317
|
+
className: "PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState",
|
|
318
|
+
modelProperties: {
|
|
319
|
+
status: {
|
|
320
|
+
serializedName: "status",
|
|
321
|
+
type: {
|
|
322
|
+
name: "Enum",
|
|
323
|
+
allowedValues: ["Pending", "Approved", "Rejected", "Disconnected"]
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
description: {
|
|
327
|
+
serializedName: "description",
|
|
328
|
+
type: {
|
|
329
|
+
name: "String"
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
actionsRequired: {
|
|
333
|
+
defaultValue: "None",
|
|
334
|
+
serializedName: "actionsRequired",
|
|
335
|
+
type: {
|
|
336
|
+
name: "String"
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
const Resource = {
|
|
343
|
+
type: {
|
|
344
|
+
name: "Composite",
|
|
345
|
+
className: "Resource",
|
|
346
|
+
modelProperties: {
|
|
347
|
+
id: {
|
|
348
|
+
serializedName: "id",
|
|
349
|
+
readOnly: true,
|
|
350
|
+
type: {
|
|
351
|
+
name: "String"
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
name: {
|
|
355
|
+
serializedName: "name",
|
|
356
|
+
readOnly: true,
|
|
357
|
+
type: {
|
|
358
|
+
name: "String"
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
type: {
|
|
362
|
+
serializedName: "type",
|
|
363
|
+
readOnly: true,
|
|
364
|
+
type: {
|
|
365
|
+
name: "String"
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
};
|
|
371
|
+
const SharedPrivateLinkResourceProperties = {
|
|
372
|
+
type: {
|
|
373
|
+
name: "Composite",
|
|
374
|
+
className: "SharedPrivateLinkResourceProperties",
|
|
375
|
+
modelProperties: {
|
|
376
|
+
privateLinkResourceId: {
|
|
377
|
+
serializedName: "privateLinkResourceId",
|
|
378
|
+
type: {
|
|
379
|
+
name: "String"
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
groupId: {
|
|
383
|
+
serializedName: "groupId",
|
|
384
|
+
type: {
|
|
385
|
+
name: "String"
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
requestMessage: {
|
|
389
|
+
serializedName: "requestMessage",
|
|
390
|
+
type: {
|
|
391
|
+
name: "String"
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
resourceRegion: {
|
|
395
|
+
serializedName: "resourceRegion",
|
|
396
|
+
type: {
|
|
397
|
+
name: "String"
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
status: {
|
|
401
|
+
serializedName: "status",
|
|
402
|
+
type: {
|
|
403
|
+
name: "Enum",
|
|
404
|
+
allowedValues: ["Pending", "Approved", "Rejected", "Disconnected"]
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
provisioningState: {
|
|
408
|
+
serializedName: "provisioningState",
|
|
409
|
+
type: {
|
|
410
|
+
name: "Enum",
|
|
411
|
+
allowedValues: [
|
|
412
|
+
"Updating",
|
|
413
|
+
"Deleting",
|
|
414
|
+
"Failed",
|
|
415
|
+
"Succeeded",
|
|
416
|
+
"Incomplete"
|
|
417
|
+
]
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
};
|
|
423
|
+
const Sku = {
|
|
424
|
+
type: {
|
|
425
|
+
name: "Composite",
|
|
426
|
+
className: "Sku",
|
|
427
|
+
modelProperties: {
|
|
428
|
+
name: {
|
|
429
|
+
serializedName: "name",
|
|
430
|
+
type: {
|
|
431
|
+
name: "Enum",
|
|
432
|
+
allowedValues: [
|
|
433
|
+
"free",
|
|
434
|
+
"basic",
|
|
435
|
+
"standard",
|
|
436
|
+
"standard2",
|
|
437
|
+
"standard3",
|
|
438
|
+
"storage_optimized_l1",
|
|
439
|
+
"storage_optimized_l2"
|
|
440
|
+
]
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
};
|
|
446
|
+
const Identity = {
|
|
447
|
+
type: {
|
|
448
|
+
name: "Composite",
|
|
449
|
+
className: "Identity",
|
|
450
|
+
modelProperties: {
|
|
451
|
+
principalId: {
|
|
452
|
+
serializedName: "principalId",
|
|
453
|
+
readOnly: true,
|
|
454
|
+
type: {
|
|
455
|
+
name: "String"
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
tenantId: {
|
|
459
|
+
serializedName: "tenantId",
|
|
460
|
+
readOnly: true,
|
|
461
|
+
type: {
|
|
462
|
+
name: "String"
|
|
463
|
+
}
|
|
464
|
+
},
|
|
465
|
+
type: {
|
|
466
|
+
serializedName: "type",
|
|
467
|
+
required: true,
|
|
468
|
+
type: {
|
|
469
|
+
name: "Enum",
|
|
470
|
+
allowedValues: ["None", "SystemAssigned"]
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
};
|
|
476
|
+
const SearchServiceListResult = {
|
|
477
|
+
type: {
|
|
478
|
+
name: "Composite",
|
|
479
|
+
className: "SearchServiceListResult",
|
|
480
|
+
modelProperties: {
|
|
481
|
+
value: {
|
|
482
|
+
serializedName: "value",
|
|
483
|
+
readOnly: true,
|
|
484
|
+
type: {
|
|
485
|
+
name: "Sequence",
|
|
486
|
+
element: {
|
|
487
|
+
type: {
|
|
488
|
+
name: "Composite",
|
|
489
|
+
className: "SearchService"
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
nextLink: {
|
|
495
|
+
serializedName: "nextLink",
|
|
496
|
+
readOnly: true,
|
|
497
|
+
type: {
|
|
498
|
+
name: "String"
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
};
|
|
504
|
+
const PrivateLinkResourcesResult = {
|
|
505
|
+
type: {
|
|
506
|
+
name: "Composite",
|
|
507
|
+
className: "PrivateLinkResourcesResult",
|
|
508
|
+
modelProperties: {
|
|
509
|
+
value: {
|
|
510
|
+
serializedName: "value",
|
|
511
|
+
readOnly: true,
|
|
512
|
+
type: {
|
|
513
|
+
name: "Sequence",
|
|
514
|
+
element: {
|
|
515
|
+
type: {
|
|
516
|
+
name: "Composite",
|
|
517
|
+
className: "PrivateLinkResource"
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
};
|
|
525
|
+
const PrivateLinkResourceProperties = {
|
|
526
|
+
type: {
|
|
527
|
+
name: "Composite",
|
|
528
|
+
className: "PrivateLinkResourceProperties",
|
|
529
|
+
modelProperties: {
|
|
530
|
+
groupId: {
|
|
531
|
+
serializedName: "groupId",
|
|
532
|
+
readOnly: true,
|
|
533
|
+
type: {
|
|
534
|
+
name: "String"
|
|
535
|
+
}
|
|
536
|
+
},
|
|
537
|
+
requiredMembers: {
|
|
538
|
+
serializedName: "requiredMembers",
|
|
539
|
+
readOnly: true,
|
|
540
|
+
type: {
|
|
541
|
+
name: "Sequence",
|
|
542
|
+
element: {
|
|
543
|
+
type: {
|
|
544
|
+
name: "String"
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
requiredZoneNames: {
|
|
550
|
+
serializedName: "requiredZoneNames",
|
|
551
|
+
readOnly: true,
|
|
552
|
+
type: {
|
|
553
|
+
name: "Sequence",
|
|
554
|
+
element: {
|
|
555
|
+
type: {
|
|
556
|
+
name: "String"
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
},
|
|
561
|
+
shareablePrivateLinkResourceTypes: {
|
|
562
|
+
serializedName: "shareablePrivateLinkResourceTypes",
|
|
563
|
+
readOnly: true,
|
|
564
|
+
type: {
|
|
565
|
+
name: "Sequence",
|
|
566
|
+
element: {
|
|
567
|
+
type: {
|
|
568
|
+
name: "Composite",
|
|
569
|
+
className: "ShareablePrivateLinkResourceType"
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
};
|
|
577
|
+
const ShareablePrivateLinkResourceType = {
|
|
578
|
+
type: {
|
|
579
|
+
name: "Composite",
|
|
580
|
+
className: "ShareablePrivateLinkResourceType",
|
|
581
|
+
modelProperties: {
|
|
582
|
+
name: {
|
|
583
|
+
serializedName: "name",
|
|
584
|
+
readOnly: true,
|
|
585
|
+
type: {
|
|
586
|
+
name: "String"
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
properties: {
|
|
590
|
+
serializedName: "properties",
|
|
591
|
+
type: {
|
|
592
|
+
name: "Composite",
|
|
593
|
+
className: "ShareablePrivateLinkResourceProperties"
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
};
|
|
599
|
+
const ShareablePrivateLinkResourceProperties = {
|
|
600
|
+
type: {
|
|
601
|
+
name: "Composite",
|
|
602
|
+
className: "ShareablePrivateLinkResourceProperties",
|
|
603
|
+
modelProperties: {
|
|
604
|
+
type: {
|
|
605
|
+
serializedName: "type",
|
|
606
|
+
readOnly: true,
|
|
607
|
+
type: {
|
|
608
|
+
name: "String"
|
|
609
|
+
}
|
|
610
|
+
},
|
|
611
|
+
groupId: {
|
|
612
|
+
serializedName: "groupId",
|
|
613
|
+
readOnly: true,
|
|
614
|
+
type: {
|
|
615
|
+
name: "String"
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
description: {
|
|
619
|
+
serializedName: "description",
|
|
620
|
+
readOnly: true,
|
|
621
|
+
type: {
|
|
622
|
+
name: "String"
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
};
|
|
628
|
+
const PrivateEndpointConnectionListResult = {
|
|
629
|
+
type: {
|
|
630
|
+
name: "Composite",
|
|
631
|
+
className: "PrivateEndpointConnectionListResult",
|
|
632
|
+
modelProperties: {
|
|
633
|
+
value: {
|
|
634
|
+
serializedName: "value",
|
|
635
|
+
readOnly: true,
|
|
636
|
+
type: {
|
|
637
|
+
name: "Sequence",
|
|
638
|
+
element: {
|
|
639
|
+
type: {
|
|
640
|
+
name: "Composite",
|
|
641
|
+
className: "PrivateEndpointConnection"
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
nextLink: {
|
|
647
|
+
serializedName: "nextLink",
|
|
648
|
+
readOnly: true,
|
|
649
|
+
type: {
|
|
650
|
+
name: "String"
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
};
|
|
656
|
+
const SharedPrivateLinkResourceListResult = {
|
|
657
|
+
type: {
|
|
658
|
+
name: "Composite",
|
|
659
|
+
className: "SharedPrivateLinkResourceListResult",
|
|
660
|
+
modelProperties: {
|
|
661
|
+
value: {
|
|
662
|
+
serializedName: "value",
|
|
663
|
+
readOnly: true,
|
|
664
|
+
type: {
|
|
665
|
+
name: "Sequence",
|
|
666
|
+
element: {
|
|
667
|
+
type: {
|
|
668
|
+
name: "Composite",
|
|
669
|
+
className: "SharedPrivateLinkResource"
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
nextLink: {
|
|
675
|
+
serializedName: "nextLink",
|
|
676
|
+
type: {
|
|
677
|
+
name: "String"
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
};
|
|
683
|
+
const CheckNameAvailabilityInput = {
|
|
684
|
+
type: {
|
|
685
|
+
name: "Composite",
|
|
686
|
+
className: "CheckNameAvailabilityInput",
|
|
687
|
+
modelProperties: {
|
|
688
|
+
name: {
|
|
689
|
+
serializedName: "name",
|
|
690
|
+
required: true,
|
|
691
|
+
type: {
|
|
692
|
+
name: "String"
|
|
693
|
+
}
|
|
694
|
+
},
|
|
695
|
+
type: {
|
|
696
|
+
defaultValue: "searchServices",
|
|
697
|
+
isConstant: true,
|
|
698
|
+
serializedName: "type",
|
|
699
|
+
type: {
|
|
700
|
+
name: "String"
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
};
|
|
706
|
+
const CheckNameAvailabilityOutput = {
|
|
707
|
+
type: {
|
|
708
|
+
name: "Composite",
|
|
709
|
+
className: "CheckNameAvailabilityOutput",
|
|
710
|
+
modelProperties: {
|
|
711
|
+
isNameAvailable: {
|
|
712
|
+
serializedName: "nameAvailable",
|
|
713
|
+
readOnly: true,
|
|
714
|
+
type: {
|
|
715
|
+
name: "Boolean"
|
|
716
|
+
}
|
|
717
|
+
},
|
|
718
|
+
reason: {
|
|
719
|
+
serializedName: "reason",
|
|
720
|
+
readOnly: true,
|
|
721
|
+
type: {
|
|
722
|
+
name: "String"
|
|
723
|
+
}
|
|
724
|
+
},
|
|
725
|
+
message: {
|
|
726
|
+
serializedName: "message",
|
|
727
|
+
readOnly: true,
|
|
728
|
+
type: {
|
|
729
|
+
name: "String"
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
};
|
|
735
|
+
const AsyncOperationResult = {
|
|
736
|
+
type: {
|
|
737
|
+
name: "Composite",
|
|
738
|
+
className: "AsyncOperationResult",
|
|
739
|
+
modelProperties: {
|
|
740
|
+
status: {
|
|
741
|
+
serializedName: "status",
|
|
742
|
+
type: {
|
|
743
|
+
name: "String"
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
};
|
|
749
|
+
const PrivateEndpointConnection = {
|
|
750
|
+
type: {
|
|
751
|
+
name: "Composite",
|
|
752
|
+
className: "PrivateEndpointConnection",
|
|
753
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { properties: {
|
|
754
|
+
serializedName: "properties",
|
|
755
|
+
type: {
|
|
756
|
+
name: "Composite",
|
|
757
|
+
className: "PrivateEndpointConnectionProperties"
|
|
758
|
+
}
|
|
759
|
+
} })
|
|
760
|
+
}
|
|
761
|
+
};
|
|
762
|
+
const SharedPrivateLinkResource = {
|
|
763
|
+
type: {
|
|
764
|
+
name: "Composite",
|
|
765
|
+
className: "SharedPrivateLinkResource",
|
|
766
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { properties: {
|
|
767
|
+
serializedName: "properties",
|
|
768
|
+
type: {
|
|
769
|
+
name: "Composite",
|
|
770
|
+
className: "SharedPrivateLinkResourceProperties"
|
|
771
|
+
}
|
|
772
|
+
} })
|
|
773
|
+
}
|
|
774
|
+
};
|
|
775
|
+
const TrackedResource = {
|
|
776
|
+
type: {
|
|
777
|
+
name: "Composite",
|
|
778
|
+
className: "TrackedResource",
|
|
779
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
|
|
780
|
+
serializedName: "tags",
|
|
781
|
+
type: {
|
|
782
|
+
name: "Dictionary",
|
|
783
|
+
value: { type: { name: "String" } }
|
|
784
|
+
}
|
|
785
|
+
}, location: {
|
|
786
|
+
serializedName: "location",
|
|
787
|
+
required: true,
|
|
788
|
+
type: {
|
|
789
|
+
name: "String"
|
|
790
|
+
}
|
|
791
|
+
} })
|
|
792
|
+
}
|
|
793
|
+
};
|
|
794
|
+
const SearchServiceUpdate = {
|
|
795
|
+
type: {
|
|
796
|
+
name: "Composite",
|
|
797
|
+
className: "SearchServiceUpdate",
|
|
798
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { sku: {
|
|
799
|
+
serializedName: "sku",
|
|
800
|
+
type: {
|
|
801
|
+
name: "Composite",
|
|
802
|
+
className: "Sku"
|
|
803
|
+
}
|
|
804
|
+
}, location: {
|
|
805
|
+
serializedName: "location",
|
|
806
|
+
type: {
|
|
807
|
+
name: "String"
|
|
808
|
+
}
|
|
809
|
+
}, tags: {
|
|
810
|
+
serializedName: "tags",
|
|
811
|
+
type: {
|
|
812
|
+
name: "Dictionary",
|
|
813
|
+
value: { type: { name: "String" } }
|
|
814
|
+
}
|
|
815
|
+
}, identity: {
|
|
816
|
+
serializedName: "identity",
|
|
817
|
+
type: {
|
|
818
|
+
name: "Composite",
|
|
819
|
+
className: "Identity"
|
|
820
|
+
}
|
|
821
|
+
}, replicaCount: {
|
|
822
|
+
defaultValue: 1,
|
|
823
|
+
constraints: {
|
|
824
|
+
InclusiveMaximum: 12,
|
|
825
|
+
InclusiveMinimum: 1
|
|
826
|
+
},
|
|
827
|
+
serializedName: "properties.replicaCount",
|
|
828
|
+
type: {
|
|
829
|
+
name: "Number"
|
|
830
|
+
}
|
|
831
|
+
}, partitionCount: {
|
|
832
|
+
defaultValue: 1,
|
|
833
|
+
constraints: {
|
|
834
|
+
InclusiveMaximum: 12,
|
|
835
|
+
InclusiveMinimum: 1
|
|
836
|
+
},
|
|
837
|
+
serializedName: "properties.partitionCount",
|
|
838
|
+
type: {
|
|
839
|
+
name: "Number"
|
|
840
|
+
}
|
|
841
|
+
}, hostingMode: {
|
|
842
|
+
defaultValue: "default",
|
|
843
|
+
serializedName: "properties.hostingMode",
|
|
844
|
+
type: {
|
|
845
|
+
name: "Enum",
|
|
846
|
+
allowedValues: ["default", "highDensity"]
|
|
847
|
+
}
|
|
848
|
+
}, publicNetworkAccess: {
|
|
849
|
+
defaultValue: "enabled",
|
|
850
|
+
serializedName: "properties.publicNetworkAccess",
|
|
851
|
+
type: {
|
|
852
|
+
name: "Enum",
|
|
853
|
+
allowedValues: ["enabled", "disabled"]
|
|
854
|
+
}
|
|
855
|
+
}, status: {
|
|
856
|
+
serializedName: "properties.status",
|
|
857
|
+
readOnly: true,
|
|
858
|
+
type: {
|
|
859
|
+
name: "Enum",
|
|
860
|
+
allowedValues: [
|
|
861
|
+
"running",
|
|
862
|
+
"provisioning",
|
|
863
|
+
"deleting",
|
|
864
|
+
"degraded",
|
|
865
|
+
"disabled",
|
|
866
|
+
"error"
|
|
867
|
+
]
|
|
868
|
+
}
|
|
869
|
+
}, statusDetails: {
|
|
870
|
+
serializedName: "properties.statusDetails",
|
|
871
|
+
readOnly: true,
|
|
872
|
+
type: {
|
|
873
|
+
name: "String"
|
|
874
|
+
}
|
|
875
|
+
}, provisioningState: {
|
|
876
|
+
serializedName: "properties.provisioningState",
|
|
877
|
+
readOnly: true,
|
|
878
|
+
type: {
|
|
879
|
+
name: "Enum",
|
|
880
|
+
allowedValues: ["succeeded", "provisioning", "failed"]
|
|
881
|
+
}
|
|
882
|
+
}, networkRuleSet: {
|
|
883
|
+
serializedName: "properties.networkRuleSet",
|
|
884
|
+
type: {
|
|
885
|
+
name: "Composite",
|
|
886
|
+
className: "NetworkRuleSet"
|
|
887
|
+
}
|
|
888
|
+
}, privateEndpointConnections: {
|
|
889
|
+
serializedName: "properties.privateEndpointConnections",
|
|
890
|
+
readOnly: true,
|
|
891
|
+
type: {
|
|
892
|
+
name: "Sequence",
|
|
893
|
+
element: {
|
|
894
|
+
type: {
|
|
895
|
+
name: "Composite",
|
|
896
|
+
className: "PrivateEndpointConnection"
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
}, sharedPrivateLinkResources: {
|
|
901
|
+
serializedName: "properties.sharedPrivateLinkResources",
|
|
902
|
+
readOnly: true,
|
|
903
|
+
type: {
|
|
904
|
+
name: "Sequence",
|
|
905
|
+
element: {
|
|
906
|
+
type: {
|
|
907
|
+
name: "Composite",
|
|
908
|
+
className: "SharedPrivateLinkResource"
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
} })
|
|
913
|
+
}
|
|
914
|
+
};
|
|
915
|
+
const PrivateLinkResource = {
|
|
916
|
+
type: {
|
|
917
|
+
name: "Composite",
|
|
918
|
+
className: "PrivateLinkResource",
|
|
919
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { properties: {
|
|
920
|
+
serializedName: "properties",
|
|
921
|
+
type: {
|
|
922
|
+
name: "Composite",
|
|
923
|
+
className: "PrivateLinkResourceProperties"
|
|
924
|
+
}
|
|
925
|
+
} })
|
|
926
|
+
}
|
|
927
|
+
};
|
|
928
|
+
const SearchService = {
|
|
929
|
+
type: {
|
|
930
|
+
name: "Composite",
|
|
931
|
+
className: "SearchService",
|
|
932
|
+
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { sku: {
|
|
933
|
+
serializedName: "sku",
|
|
934
|
+
type: {
|
|
935
|
+
name: "Composite",
|
|
936
|
+
className: "Sku"
|
|
937
|
+
}
|
|
938
|
+
}, identity: {
|
|
939
|
+
serializedName: "identity",
|
|
940
|
+
type: {
|
|
941
|
+
name: "Composite",
|
|
942
|
+
className: "Identity"
|
|
943
|
+
}
|
|
944
|
+
}, replicaCount: {
|
|
945
|
+
defaultValue: 1,
|
|
946
|
+
constraints: {
|
|
947
|
+
InclusiveMaximum: 12,
|
|
948
|
+
InclusiveMinimum: 1
|
|
949
|
+
},
|
|
950
|
+
serializedName: "properties.replicaCount",
|
|
951
|
+
type: {
|
|
952
|
+
name: "Number"
|
|
953
|
+
}
|
|
954
|
+
}, partitionCount: {
|
|
955
|
+
defaultValue: 1,
|
|
956
|
+
constraints: {
|
|
957
|
+
InclusiveMaximum: 12,
|
|
958
|
+
InclusiveMinimum: 1
|
|
959
|
+
},
|
|
960
|
+
serializedName: "properties.partitionCount",
|
|
961
|
+
type: {
|
|
962
|
+
name: "Number"
|
|
963
|
+
}
|
|
964
|
+
}, hostingMode: {
|
|
965
|
+
defaultValue: "default",
|
|
966
|
+
serializedName: "properties.hostingMode",
|
|
967
|
+
type: {
|
|
968
|
+
name: "Enum",
|
|
969
|
+
allowedValues: ["default", "highDensity"]
|
|
970
|
+
}
|
|
971
|
+
}, publicNetworkAccess: {
|
|
972
|
+
defaultValue: "enabled",
|
|
973
|
+
serializedName: "properties.publicNetworkAccess",
|
|
974
|
+
type: {
|
|
975
|
+
name: "Enum",
|
|
976
|
+
allowedValues: ["enabled", "disabled"]
|
|
977
|
+
}
|
|
978
|
+
}, status: {
|
|
979
|
+
serializedName: "properties.status",
|
|
980
|
+
readOnly: true,
|
|
981
|
+
type: {
|
|
982
|
+
name: "Enum",
|
|
983
|
+
allowedValues: [
|
|
984
|
+
"running",
|
|
985
|
+
"provisioning",
|
|
986
|
+
"deleting",
|
|
987
|
+
"degraded",
|
|
988
|
+
"disabled",
|
|
989
|
+
"error"
|
|
990
|
+
]
|
|
991
|
+
}
|
|
992
|
+
}, statusDetails: {
|
|
993
|
+
serializedName: "properties.statusDetails",
|
|
994
|
+
readOnly: true,
|
|
995
|
+
type: {
|
|
996
|
+
name: "String"
|
|
997
|
+
}
|
|
998
|
+
}, provisioningState: {
|
|
999
|
+
serializedName: "properties.provisioningState",
|
|
1000
|
+
readOnly: true,
|
|
1001
|
+
type: {
|
|
1002
|
+
name: "Enum",
|
|
1003
|
+
allowedValues: ["succeeded", "provisioning", "failed"]
|
|
1004
|
+
}
|
|
1005
|
+
}, networkRuleSet: {
|
|
1006
|
+
serializedName: "properties.networkRuleSet",
|
|
1007
|
+
type: {
|
|
1008
|
+
name: "Composite",
|
|
1009
|
+
className: "NetworkRuleSet"
|
|
1010
|
+
}
|
|
1011
|
+
}, privateEndpointConnections: {
|
|
1012
|
+
serializedName: "properties.privateEndpointConnections",
|
|
1013
|
+
readOnly: true,
|
|
1014
|
+
type: {
|
|
1015
|
+
name: "Sequence",
|
|
1016
|
+
element: {
|
|
1017
|
+
type: {
|
|
1018
|
+
name: "Composite",
|
|
1019
|
+
className: "PrivateEndpointConnection"
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
}, sharedPrivateLinkResources: {
|
|
1024
|
+
serializedName: "properties.sharedPrivateLinkResources",
|
|
1025
|
+
readOnly: true,
|
|
1026
|
+
type: {
|
|
1027
|
+
name: "Sequence",
|
|
1028
|
+
element: {
|
|
1029
|
+
type: {
|
|
1030
|
+
name: "Composite",
|
|
1031
|
+
className: "SharedPrivateLinkResource"
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
} })
|
|
1036
|
+
}
|
|
1037
|
+
};
|
|
1038
|
+
|
|
1039
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
|
1040
|
+
__proto__: null,
|
|
1041
|
+
OperationListResult: OperationListResult,
|
|
1042
|
+
Operation: Operation,
|
|
1043
|
+
OperationDisplay: OperationDisplay,
|
|
1044
|
+
CloudError: CloudError,
|
|
1045
|
+
CloudErrorBody: CloudErrorBody,
|
|
1046
|
+
AdminKeyResult: AdminKeyResult,
|
|
1047
|
+
QueryKey: QueryKey,
|
|
1048
|
+
ListQueryKeysResult: ListQueryKeysResult,
|
|
1049
|
+
NetworkRuleSet: NetworkRuleSet,
|
|
1050
|
+
IpRule: IpRule,
|
|
1051
|
+
PrivateEndpointConnectionProperties: PrivateEndpointConnectionProperties,
|
|
1052
|
+
PrivateEndpointConnectionPropertiesPrivateEndpoint: PrivateEndpointConnectionPropertiesPrivateEndpoint,
|
|
1053
|
+
PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState: PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState,
|
|
1054
|
+
Resource: Resource,
|
|
1055
|
+
SharedPrivateLinkResourceProperties: SharedPrivateLinkResourceProperties,
|
|
1056
|
+
Sku: Sku,
|
|
1057
|
+
Identity: Identity,
|
|
1058
|
+
SearchServiceListResult: SearchServiceListResult,
|
|
1059
|
+
PrivateLinkResourcesResult: PrivateLinkResourcesResult,
|
|
1060
|
+
PrivateLinkResourceProperties: PrivateLinkResourceProperties,
|
|
1061
|
+
ShareablePrivateLinkResourceType: ShareablePrivateLinkResourceType,
|
|
1062
|
+
ShareablePrivateLinkResourceProperties: ShareablePrivateLinkResourceProperties,
|
|
1063
|
+
PrivateEndpointConnectionListResult: PrivateEndpointConnectionListResult,
|
|
1064
|
+
SharedPrivateLinkResourceListResult: SharedPrivateLinkResourceListResult,
|
|
1065
|
+
CheckNameAvailabilityInput: CheckNameAvailabilityInput,
|
|
1066
|
+
CheckNameAvailabilityOutput: CheckNameAvailabilityOutput,
|
|
1067
|
+
AsyncOperationResult: AsyncOperationResult,
|
|
1068
|
+
PrivateEndpointConnection: PrivateEndpointConnection,
|
|
1069
|
+
SharedPrivateLinkResource: SharedPrivateLinkResource,
|
|
1070
|
+
TrackedResource: TrackedResource,
|
|
1071
|
+
SearchServiceUpdate: SearchServiceUpdate,
|
|
1072
|
+
PrivateLinkResource: PrivateLinkResource,
|
|
1073
|
+
SearchService: SearchService
|
|
1074
|
+
});
|
|
1075
|
+
|
|
1076
|
+
/*
|
|
1077
|
+
* Copyright (c) Microsoft Corporation.
|
|
1078
|
+
* Licensed under the MIT License.
|
|
1079
|
+
*
|
|
1080
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1081
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1082
|
+
*/
|
|
1083
|
+
const accept = {
|
|
1084
|
+
parameterPath: "accept",
|
|
1085
|
+
mapper: {
|
|
1086
|
+
defaultValue: "application/json",
|
|
1087
|
+
isConstant: true,
|
|
1088
|
+
serializedName: "Accept",
|
|
1089
|
+
type: {
|
|
1090
|
+
name: "String"
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
};
|
|
1094
|
+
const $host = {
|
|
1095
|
+
parameterPath: "$host",
|
|
1096
|
+
mapper: {
|
|
1097
|
+
serializedName: "$host",
|
|
1098
|
+
required: true,
|
|
1099
|
+
type: {
|
|
1100
|
+
name: "String"
|
|
1101
|
+
}
|
|
1102
|
+
},
|
|
1103
|
+
skipEncoding: true
|
|
1104
|
+
};
|
|
1105
|
+
const apiVersion = {
|
|
1106
|
+
parameterPath: "apiVersion",
|
|
1107
|
+
mapper: {
|
|
1108
|
+
defaultValue: "2020-08-01",
|
|
1109
|
+
isConstant: true,
|
|
1110
|
+
serializedName: "api-version",
|
|
1111
|
+
type: {
|
|
1112
|
+
name: "String"
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
};
|
|
1116
|
+
const resourceGroupName = {
|
|
1117
|
+
parameterPath: "resourceGroupName",
|
|
1118
|
+
mapper: {
|
|
1119
|
+
serializedName: "resourceGroupName",
|
|
1120
|
+
required: true,
|
|
1121
|
+
type: {
|
|
1122
|
+
name: "String"
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
};
|
|
1126
|
+
const searchServiceName = {
|
|
1127
|
+
parameterPath: "searchServiceName",
|
|
1128
|
+
mapper: {
|
|
1129
|
+
serializedName: "searchServiceName",
|
|
1130
|
+
required: true,
|
|
1131
|
+
type: {
|
|
1132
|
+
name: "String"
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
};
|
|
1136
|
+
const clientRequestId = {
|
|
1137
|
+
parameterPath: [
|
|
1138
|
+
"options",
|
|
1139
|
+
"searchManagementRequestOptions",
|
|
1140
|
+
"clientRequestId"
|
|
1141
|
+
],
|
|
1142
|
+
mapper: {
|
|
1143
|
+
serializedName: "x-ms-client-request-id",
|
|
1144
|
+
type: {
|
|
1145
|
+
name: "Uuid"
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
};
|
|
1149
|
+
const subscriptionId = {
|
|
1150
|
+
parameterPath: "subscriptionId",
|
|
1151
|
+
mapper: {
|
|
1152
|
+
serializedName: "subscriptionId",
|
|
1153
|
+
required: true,
|
|
1154
|
+
type: {
|
|
1155
|
+
name: "String"
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
};
|
|
1159
|
+
const keyKind = {
|
|
1160
|
+
parameterPath: "keyKind",
|
|
1161
|
+
mapper: {
|
|
1162
|
+
serializedName: "keyKind",
|
|
1163
|
+
required: true,
|
|
1164
|
+
type: {
|
|
1165
|
+
name: "Enum",
|
|
1166
|
+
allowedValues: ["primary", "secondary"]
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
};
|
|
1170
|
+
const name = {
|
|
1171
|
+
parameterPath: "name",
|
|
1172
|
+
mapper: {
|
|
1173
|
+
serializedName: "name",
|
|
1174
|
+
required: true,
|
|
1175
|
+
type: {
|
|
1176
|
+
name: "String"
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
};
|
|
1180
|
+
const key = {
|
|
1181
|
+
parameterPath: "key",
|
|
1182
|
+
mapper: {
|
|
1183
|
+
serializedName: "key",
|
|
1184
|
+
required: true,
|
|
1185
|
+
type: {
|
|
1186
|
+
name: "String"
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
};
|
|
1190
|
+
const nextLink = {
|
|
1191
|
+
parameterPath: "nextLink",
|
|
1192
|
+
mapper: {
|
|
1193
|
+
serializedName: "nextLink",
|
|
1194
|
+
required: true,
|
|
1195
|
+
type: {
|
|
1196
|
+
name: "String"
|
|
1197
|
+
}
|
|
1198
|
+
},
|
|
1199
|
+
skipEncoding: true
|
|
1200
|
+
};
|
|
1201
|
+
const contentType = {
|
|
1202
|
+
parameterPath: ["options", "contentType"],
|
|
1203
|
+
mapper: {
|
|
1204
|
+
defaultValue: "application/json",
|
|
1205
|
+
isConstant: true,
|
|
1206
|
+
serializedName: "Content-Type",
|
|
1207
|
+
type: {
|
|
1208
|
+
name: "String"
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
};
|
|
1212
|
+
const service = {
|
|
1213
|
+
parameterPath: "service",
|
|
1214
|
+
mapper: SearchService
|
|
1215
|
+
};
|
|
1216
|
+
const service1 = {
|
|
1217
|
+
parameterPath: "service",
|
|
1218
|
+
mapper: SearchServiceUpdate
|
|
1219
|
+
};
|
|
1220
|
+
const privateEndpointConnection = {
|
|
1221
|
+
parameterPath: "privateEndpointConnection",
|
|
1222
|
+
mapper: PrivateEndpointConnection
|
|
1223
|
+
};
|
|
1224
|
+
const privateEndpointConnectionName = {
|
|
1225
|
+
parameterPath: "privateEndpointConnectionName",
|
|
1226
|
+
mapper: {
|
|
1227
|
+
serializedName: "privateEndpointConnectionName",
|
|
1228
|
+
required: true,
|
|
1229
|
+
type: {
|
|
1230
|
+
name: "String"
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
};
|
|
1234
|
+
const sharedPrivateLinkResource = {
|
|
1235
|
+
parameterPath: "sharedPrivateLinkResource",
|
|
1236
|
+
mapper: SharedPrivateLinkResource
|
|
1237
|
+
};
|
|
1238
|
+
const sharedPrivateLinkResourceName = {
|
|
1239
|
+
parameterPath: "sharedPrivateLinkResourceName",
|
|
1240
|
+
mapper: {
|
|
1241
|
+
serializedName: "sharedPrivateLinkResourceName",
|
|
1242
|
+
required: true,
|
|
1243
|
+
type: {
|
|
1244
|
+
name: "String"
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
};
|
|
1248
|
+
|
|
1249
|
+
/*
|
|
1250
|
+
* Copyright (c) Microsoft Corporation.
|
|
1251
|
+
* Licensed under the MIT License.
|
|
1252
|
+
*
|
|
1253
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1254
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1255
|
+
*/
|
|
1256
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1257
|
+
/** Class containing Operations operations. */
|
|
1258
|
+
class OperationsImpl {
|
|
1259
|
+
/**
|
|
1260
|
+
* Initialize a new instance of the class Operations class.
|
|
1261
|
+
* @param client Reference to the service client
|
|
1262
|
+
*/
|
|
1263
|
+
constructor(client) {
|
|
1264
|
+
this.client = client;
|
|
1265
|
+
}
|
|
1266
|
+
/**
|
|
1267
|
+
* Lists all of the available REST API operations of the Microsoft.Search provider.
|
|
1268
|
+
* @param options The options parameters.
|
|
1269
|
+
*/
|
|
1270
|
+
list(options) {
|
|
1271
|
+
const iter = this.listPagingAll(options);
|
|
1272
|
+
return {
|
|
1273
|
+
next() {
|
|
1274
|
+
return iter.next();
|
|
1275
|
+
},
|
|
1276
|
+
[Symbol.asyncIterator]() {
|
|
1277
|
+
return this;
|
|
1278
|
+
},
|
|
1279
|
+
byPage: () => {
|
|
1280
|
+
return this.listPagingPage(options);
|
|
1281
|
+
}
|
|
1282
|
+
};
|
|
1283
|
+
}
|
|
1284
|
+
listPagingPage(options) {
|
|
1285
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1286
|
+
let result = yield tslib.__await(this._list(options));
|
|
1287
|
+
yield yield tslib.__await(result.value || []);
|
|
1288
|
+
});
|
|
1289
|
+
}
|
|
1290
|
+
listPagingAll(options) {
|
|
1291
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
1292
|
+
var e_1, _a;
|
|
1293
|
+
try {
|
|
1294
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1295
|
+
const page = _c.value;
|
|
1296
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1300
|
+
finally {
|
|
1301
|
+
try {
|
|
1302
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1303
|
+
}
|
|
1304
|
+
finally { if (e_1) throw e_1.error; }
|
|
1305
|
+
}
|
|
1306
|
+
});
|
|
1307
|
+
}
|
|
1308
|
+
/**
|
|
1309
|
+
* Lists all of the available REST API operations of the Microsoft.Search provider.
|
|
1310
|
+
* @param options The options parameters.
|
|
1311
|
+
*/
|
|
1312
|
+
_list(options) {
|
|
1313
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
// Operation Specifications
|
|
1317
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1318
|
+
const listOperationSpec = {
|
|
1319
|
+
path: "/providers/Microsoft.Search/operations",
|
|
1320
|
+
httpMethod: "GET",
|
|
1321
|
+
responses: {
|
|
1322
|
+
200: {
|
|
1323
|
+
bodyMapper: OperationListResult
|
|
1324
|
+
},
|
|
1325
|
+
default: {
|
|
1326
|
+
bodyMapper: CloudError
|
|
1327
|
+
}
|
|
1328
|
+
},
|
|
1329
|
+
queryParameters: [apiVersion],
|
|
1330
|
+
urlParameters: [$host],
|
|
1331
|
+
headerParameters: [accept],
|
|
1332
|
+
serializer
|
|
1333
|
+
};
|
|
1334
|
+
|
|
1335
|
+
/*
|
|
1336
|
+
* Copyright (c) Microsoft Corporation.
|
|
1337
|
+
* Licensed under the MIT License.
|
|
1338
|
+
*
|
|
1339
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1340
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1341
|
+
*/
|
|
1342
|
+
/** Class containing AdminKeys operations. */
|
|
1343
|
+
class AdminKeysImpl {
|
|
1344
|
+
/**
|
|
1345
|
+
* Initialize a new instance of the class AdminKeys class.
|
|
1346
|
+
* @param client Reference to the service client
|
|
1347
|
+
*/
|
|
1348
|
+
constructor(client) {
|
|
1349
|
+
this.client = client;
|
|
1350
|
+
}
|
|
1351
|
+
/**
|
|
1352
|
+
* Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service.
|
|
1353
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
1354
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
1355
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
1356
|
+
* specified resource group.
|
|
1357
|
+
* @param options The options parameters.
|
|
1358
|
+
*/
|
|
1359
|
+
get(resourceGroupName, searchServiceName, options) {
|
|
1360
|
+
return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, options }, getOperationSpec);
|
|
1361
|
+
}
|
|
1362
|
+
/**
|
|
1363
|
+
* Regenerates either the primary or secondary admin API key. You can only regenerate one key at a
|
|
1364
|
+
* time.
|
|
1365
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
1366
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
1367
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
1368
|
+
* specified resource group.
|
|
1369
|
+
* @param keyKind Specifies which key to regenerate. Valid values include 'primary' and 'secondary'.
|
|
1370
|
+
* @param options The options parameters.
|
|
1371
|
+
*/
|
|
1372
|
+
regenerate(resourceGroupName, searchServiceName, keyKind, options) {
|
|
1373
|
+
return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, keyKind, options }, regenerateOperationSpec);
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
// Operation Specifications
|
|
1377
|
+
const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1378
|
+
const getOperationSpec = {
|
|
1379
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/listAdminKeys",
|
|
1380
|
+
httpMethod: "POST",
|
|
1381
|
+
responses: {
|
|
1382
|
+
200: {
|
|
1383
|
+
bodyMapper: AdminKeyResult
|
|
1384
|
+
},
|
|
1385
|
+
default: {
|
|
1386
|
+
bodyMapper: CloudError
|
|
1387
|
+
}
|
|
1388
|
+
},
|
|
1389
|
+
queryParameters: [apiVersion],
|
|
1390
|
+
urlParameters: [
|
|
1391
|
+
$host,
|
|
1392
|
+
resourceGroupName,
|
|
1393
|
+
searchServiceName,
|
|
1394
|
+
subscriptionId
|
|
1395
|
+
],
|
|
1396
|
+
headerParameters: [accept, clientRequestId],
|
|
1397
|
+
serializer: serializer$1
|
|
1398
|
+
};
|
|
1399
|
+
const regenerateOperationSpec = {
|
|
1400
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/regenerateAdminKey/{keyKind}",
|
|
1401
|
+
httpMethod: "POST",
|
|
1402
|
+
responses: {
|
|
1403
|
+
200: {
|
|
1404
|
+
bodyMapper: AdminKeyResult
|
|
1405
|
+
},
|
|
1406
|
+
default: {
|
|
1407
|
+
bodyMapper: CloudError
|
|
1408
|
+
}
|
|
1409
|
+
},
|
|
1410
|
+
queryParameters: [apiVersion],
|
|
1411
|
+
urlParameters: [
|
|
1412
|
+
$host,
|
|
1413
|
+
resourceGroupName,
|
|
1414
|
+
searchServiceName,
|
|
1415
|
+
subscriptionId,
|
|
1416
|
+
keyKind
|
|
1417
|
+
],
|
|
1418
|
+
headerParameters: [accept, clientRequestId],
|
|
1419
|
+
serializer: serializer$1
|
|
1420
|
+
};
|
|
1421
|
+
|
|
1422
|
+
/*
|
|
1423
|
+
* Copyright (c) Microsoft Corporation.
|
|
1424
|
+
* Licensed under the MIT License.
|
|
1425
|
+
*
|
|
1426
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1427
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1428
|
+
*/
|
|
1429
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1430
|
+
/** Class containing QueryKeys operations. */
|
|
1431
|
+
class QueryKeysImpl {
|
|
1432
|
+
/**
|
|
1433
|
+
* Initialize a new instance of the class QueryKeys class.
|
|
1434
|
+
* @param client Reference to the service client
|
|
1435
|
+
*/
|
|
1436
|
+
constructor(client) {
|
|
1437
|
+
this.client = client;
|
|
1438
|
+
}
|
|
1439
|
+
/**
|
|
1440
|
+
* Returns the list of query API keys for the given Azure Cognitive Search service.
|
|
1441
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
1442
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
1443
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
1444
|
+
* specified resource group.
|
|
1445
|
+
* @param options The options parameters.
|
|
1446
|
+
*/
|
|
1447
|
+
listBySearchService(resourceGroupName, searchServiceName, options) {
|
|
1448
|
+
const iter = this.listBySearchServicePagingAll(resourceGroupName, searchServiceName, options);
|
|
1449
|
+
return {
|
|
1450
|
+
next() {
|
|
1451
|
+
return iter.next();
|
|
1452
|
+
},
|
|
1453
|
+
[Symbol.asyncIterator]() {
|
|
1454
|
+
return this;
|
|
1455
|
+
},
|
|
1456
|
+
byPage: () => {
|
|
1457
|
+
return this.listBySearchServicePagingPage(resourceGroupName, searchServiceName, options);
|
|
1458
|
+
}
|
|
1459
|
+
};
|
|
1460
|
+
}
|
|
1461
|
+
listBySearchServicePagingPage(resourceGroupName, searchServiceName, options) {
|
|
1462
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySearchServicePagingPage_1() {
|
|
1463
|
+
let result = yield tslib.__await(this._listBySearchService(resourceGroupName, searchServiceName, options));
|
|
1464
|
+
yield yield tslib.__await(result.value || []);
|
|
1465
|
+
let continuationToken = result.nextLink;
|
|
1466
|
+
while (continuationToken) {
|
|
1467
|
+
result = yield tslib.__await(this._listBySearchServiceNext(resourceGroupName, searchServiceName, continuationToken, options));
|
|
1468
|
+
continuationToken = result.nextLink;
|
|
1469
|
+
yield yield tslib.__await(result.value || []);
|
|
1470
|
+
}
|
|
1471
|
+
});
|
|
1472
|
+
}
|
|
1473
|
+
listBySearchServicePagingAll(resourceGroupName, searchServiceName, options) {
|
|
1474
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySearchServicePagingAll_1() {
|
|
1475
|
+
var e_1, _a;
|
|
1476
|
+
try {
|
|
1477
|
+
for (var _b = tslib.__asyncValues(this.listBySearchServicePagingPage(resourceGroupName, searchServiceName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1478
|
+
const page = _c.value;
|
|
1479
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1483
|
+
finally {
|
|
1484
|
+
try {
|
|
1485
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1486
|
+
}
|
|
1487
|
+
finally { if (e_1) throw e_1.error; }
|
|
1488
|
+
}
|
|
1489
|
+
});
|
|
1490
|
+
}
|
|
1491
|
+
/**
|
|
1492
|
+
* Generates a new query key for the specified search service. You can create up to 50 query keys per
|
|
1493
|
+
* service.
|
|
1494
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
1495
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
1496
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
1497
|
+
* specified resource group.
|
|
1498
|
+
* @param name The name of the new query API key.
|
|
1499
|
+
* @param options The options parameters.
|
|
1500
|
+
*/
|
|
1501
|
+
create(resourceGroupName, searchServiceName, name, options) {
|
|
1502
|
+
return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, name, options }, createOperationSpec);
|
|
1503
|
+
}
|
|
1504
|
+
/**
|
|
1505
|
+
* Returns the list of query API keys for the given Azure Cognitive Search service.
|
|
1506
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
1507
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
1508
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
1509
|
+
* specified resource group.
|
|
1510
|
+
* @param options The options parameters.
|
|
1511
|
+
*/
|
|
1512
|
+
_listBySearchService(resourceGroupName, searchServiceName, options) {
|
|
1513
|
+
return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, options }, listBySearchServiceOperationSpec);
|
|
1514
|
+
}
|
|
1515
|
+
/**
|
|
1516
|
+
* Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for
|
|
1517
|
+
* regenerating a query key is to delete and then recreate it.
|
|
1518
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
1519
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
1520
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
1521
|
+
* specified resource group.
|
|
1522
|
+
* @param key The query key to be deleted. Query keys are identified by value, not by name.
|
|
1523
|
+
* @param options The options parameters.
|
|
1524
|
+
*/
|
|
1525
|
+
delete(resourceGroupName, searchServiceName, key, options) {
|
|
1526
|
+
return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, key, options }, deleteOperationSpec);
|
|
1527
|
+
}
|
|
1528
|
+
/**
|
|
1529
|
+
* ListBySearchServiceNext
|
|
1530
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
1531
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
1532
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
1533
|
+
* specified resource group.
|
|
1534
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySearchService method.
|
|
1535
|
+
* @param options The options parameters.
|
|
1536
|
+
*/
|
|
1537
|
+
_listBySearchServiceNext(resourceGroupName, searchServiceName, nextLink, options) {
|
|
1538
|
+
return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, nextLink, options }, listBySearchServiceNextOperationSpec);
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1541
|
+
// Operation Specifications
|
|
1542
|
+
const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1543
|
+
const createOperationSpec = {
|
|
1544
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/createQueryKey/{name}",
|
|
1545
|
+
httpMethod: "POST",
|
|
1546
|
+
responses: {
|
|
1547
|
+
200: {
|
|
1548
|
+
bodyMapper: QueryKey
|
|
1549
|
+
},
|
|
1550
|
+
default: {
|
|
1551
|
+
bodyMapper: CloudError
|
|
1552
|
+
}
|
|
1553
|
+
},
|
|
1554
|
+
queryParameters: [apiVersion],
|
|
1555
|
+
urlParameters: [
|
|
1556
|
+
$host,
|
|
1557
|
+
resourceGroupName,
|
|
1558
|
+
searchServiceName,
|
|
1559
|
+
subscriptionId,
|
|
1560
|
+
name
|
|
1561
|
+
],
|
|
1562
|
+
headerParameters: [accept, clientRequestId],
|
|
1563
|
+
serializer: serializer$2
|
|
1564
|
+
};
|
|
1565
|
+
const listBySearchServiceOperationSpec = {
|
|
1566
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/listQueryKeys",
|
|
1567
|
+
httpMethod: "POST",
|
|
1568
|
+
responses: {
|
|
1569
|
+
200: {
|
|
1570
|
+
bodyMapper: ListQueryKeysResult
|
|
1571
|
+
},
|
|
1572
|
+
default: {
|
|
1573
|
+
bodyMapper: CloudError
|
|
1574
|
+
}
|
|
1575
|
+
},
|
|
1576
|
+
queryParameters: [apiVersion],
|
|
1577
|
+
urlParameters: [
|
|
1578
|
+
$host,
|
|
1579
|
+
resourceGroupName,
|
|
1580
|
+
searchServiceName,
|
|
1581
|
+
subscriptionId
|
|
1582
|
+
],
|
|
1583
|
+
headerParameters: [accept, clientRequestId],
|
|
1584
|
+
serializer: serializer$2
|
|
1585
|
+
};
|
|
1586
|
+
const deleteOperationSpec = {
|
|
1587
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/deleteQueryKey/{key}",
|
|
1588
|
+
httpMethod: "DELETE",
|
|
1589
|
+
responses: {
|
|
1590
|
+
200: {},
|
|
1591
|
+
204: {},
|
|
1592
|
+
404: {},
|
|
1593
|
+
default: {
|
|
1594
|
+
bodyMapper: CloudError
|
|
1595
|
+
}
|
|
1596
|
+
},
|
|
1597
|
+
queryParameters: [apiVersion],
|
|
1598
|
+
urlParameters: [
|
|
1599
|
+
$host,
|
|
1600
|
+
resourceGroupName,
|
|
1601
|
+
searchServiceName,
|
|
1602
|
+
subscriptionId,
|
|
1603
|
+
key
|
|
1604
|
+
],
|
|
1605
|
+
headerParameters: [accept, clientRequestId],
|
|
1606
|
+
serializer: serializer$2
|
|
1607
|
+
};
|
|
1608
|
+
const listBySearchServiceNextOperationSpec = {
|
|
1609
|
+
path: "{nextLink}",
|
|
1610
|
+
httpMethod: "GET",
|
|
1611
|
+
responses: {
|
|
1612
|
+
200: {
|
|
1613
|
+
bodyMapper: ListQueryKeysResult
|
|
1614
|
+
},
|
|
1615
|
+
default: {
|
|
1616
|
+
bodyMapper: CloudError
|
|
1617
|
+
}
|
|
1618
|
+
},
|
|
1619
|
+
queryParameters: [apiVersion],
|
|
1620
|
+
urlParameters: [
|
|
1621
|
+
$host,
|
|
1622
|
+
resourceGroupName,
|
|
1623
|
+
searchServiceName,
|
|
1624
|
+
subscriptionId,
|
|
1625
|
+
nextLink
|
|
1626
|
+
],
|
|
1627
|
+
headerParameters: [accept, clientRequestId],
|
|
1628
|
+
serializer: serializer$2
|
|
1629
|
+
};
|
|
1630
|
+
|
|
1631
|
+
/*
|
|
1632
|
+
* Copyright (c) Microsoft Corporation.
|
|
1633
|
+
* Licensed under the MIT License.
|
|
1634
|
+
*
|
|
1635
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1636
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1637
|
+
*/
|
|
1638
|
+
class LroImpl {
|
|
1639
|
+
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
|
1640
|
+
this.sendOperationFn = sendOperationFn;
|
|
1641
|
+
this.args = args;
|
|
1642
|
+
this.spec = spec;
|
|
1643
|
+
this.requestPath = requestPath;
|
|
1644
|
+
this.requestMethod = requestMethod;
|
|
1645
|
+
}
|
|
1646
|
+
sendInitialRequest() {
|
|
1647
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1648
|
+
return this.sendOperationFn(this.args, this.spec);
|
|
1649
|
+
});
|
|
1650
|
+
}
|
|
1651
|
+
sendPollRequest(path) {
|
|
1652
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1653
|
+
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
1654
|
+
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
1655
|
+
});
|
|
1656
|
+
}
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
/*
|
|
1660
|
+
* Copyright (c) Microsoft Corporation.
|
|
1661
|
+
* Licensed under the MIT License.
|
|
1662
|
+
*
|
|
1663
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1664
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1665
|
+
*/
|
|
1666
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1667
|
+
/** Class containing Services operations. */
|
|
1668
|
+
class ServicesImpl {
|
|
1669
|
+
/**
|
|
1670
|
+
* Initialize a new instance of the class Services class.
|
|
1671
|
+
* @param client Reference to the service client
|
|
1672
|
+
*/
|
|
1673
|
+
constructor(client) {
|
|
1674
|
+
this.client = client;
|
|
1675
|
+
}
|
|
1676
|
+
/**
|
|
1677
|
+
* Gets a list of all search services in the given resource group.
|
|
1678
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
1679
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
1680
|
+
* @param options The options parameters.
|
|
1681
|
+
*/
|
|
1682
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
1683
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
1684
|
+
return {
|
|
1685
|
+
next() {
|
|
1686
|
+
return iter.next();
|
|
1687
|
+
},
|
|
1688
|
+
[Symbol.asyncIterator]() {
|
|
1689
|
+
return this;
|
|
1690
|
+
},
|
|
1691
|
+
byPage: () => {
|
|
1692
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
1693
|
+
}
|
|
1694
|
+
};
|
|
1695
|
+
}
|
|
1696
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
1697
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
1698
|
+
let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
1699
|
+
yield yield tslib.__await(result.value || []);
|
|
1700
|
+
let continuationToken = result.nextLink;
|
|
1701
|
+
while (continuationToken) {
|
|
1702
|
+
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
1703
|
+
continuationToken = result.nextLink;
|
|
1704
|
+
yield yield tslib.__await(result.value || []);
|
|
1705
|
+
}
|
|
1706
|
+
});
|
|
1707
|
+
}
|
|
1708
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
1709
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
1710
|
+
var e_1, _a;
|
|
1711
|
+
try {
|
|
1712
|
+
for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1713
|
+
const page = _c.value;
|
|
1714
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1715
|
+
}
|
|
1716
|
+
}
|
|
1717
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1718
|
+
finally {
|
|
1719
|
+
try {
|
|
1720
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1721
|
+
}
|
|
1722
|
+
finally { if (e_1) throw e_1.error; }
|
|
1723
|
+
}
|
|
1724
|
+
});
|
|
1725
|
+
}
|
|
1726
|
+
/**
|
|
1727
|
+
* Gets a list of all search services in the given subscription.
|
|
1728
|
+
* @param options The options parameters.
|
|
1729
|
+
*/
|
|
1730
|
+
listBySubscription(options) {
|
|
1731
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
1732
|
+
return {
|
|
1733
|
+
next() {
|
|
1734
|
+
return iter.next();
|
|
1735
|
+
},
|
|
1736
|
+
[Symbol.asyncIterator]() {
|
|
1737
|
+
return this;
|
|
1738
|
+
},
|
|
1739
|
+
byPage: () => {
|
|
1740
|
+
return this.listBySubscriptionPagingPage(options);
|
|
1741
|
+
}
|
|
1742
|
+
};
|
|
1743
|
+
}
|
|
1744
|
+
listBySubscriptionPagingPage(options) {
|
|
1745
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
1746
|
+
let result = yield tslib.__await(this._listBySubscription(options));
|
|
1747
|
+
yield yield tslib.__await(result.value || []);
|
|
1748
|
+
let continuationToken = result.nextLink;
|
|
1749
|
+
while (continuationToken) {
|
|
1750
|
+
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
1751
|
+
continuationToken = result.nextLink;
|
|
1752
|
+
yield yield tslib.__await(result.value || []);
|
|
1753
|
+
}
|
|
1754
|
+
});
|
|
1755
|
+
}
|
|
1756
|
+
listBySubscriptionPagingAll(options) {
|
|
1757
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
1758
|
+
var e_2, _a;
|
|
1759
|
+
try {
|
|
1760
|
+
for (var _b = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1761
|
+
const page = _c.value;
|
|
1762
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1763
|
+
}
|
|
1764
|
+
}
|
|
1765
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1766
|
+
finally {
|
|
1767
|
+
try {
|
|
1768
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1769
|
+
}
|
|
1770
|
+
finally { if (e_2) throw e_2.error; }
|
|
1771
|
+
}
|
|
1772
|
+
});
|
|
1773
|
+
}
|
|
1774
|
+
/**
|
|
1775
|
+
* Creates or updates a search service in the given resource group. If the search service already
|
|
1776
|
+
* exists, all properties will be updated with the given values.
|
|
1777
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
1778
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
1779
|
+
* @param searchServiceName The name of the Azure Cognitive Search service to create or update. Search
|
|
1780
|
+
* service names must only contain lowercase letters, digits or dashes, cannot use dash as the first
|
|
1781
|
+
* two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60
|
|
1782
|
+
* characters in length. Search service names must be globally unique since they are part of the
|
|
1783
|
+
* service URI (https://<name>.search.windows.net). You cannot change the service name after the
|
|
1784
|
+
* service is created.
|
|
1785
|
+
* @param service The definition of the search service to create or update.
|
|
1786
|
+
* @param options The options parameters.
|
|
1787
|
+
*/
|
|
1788
|
+
beginCreateOrUpdate(resourceGroupName, searchServiceName, service, options) {
|
|
1789
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1790
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1791
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1792
|
+
});
|
|
1793
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1794
|
+
var _a;
|
|
1795
|
+
let currentRawResponse = undefined;
|
|
1796
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1797
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1798
|
+
currentRawResponse = rawResponse;
|
|
1799
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1800
|
+
};
|
|
1801
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1802
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1803
|
+
return {
|
|
1804
|
+
flatResponse,
|
|
1805
|
+
rawResponse: {
|
|
1806
|
+
statusCode: currentRawResponse.status,
|
|
1807
|
+
body: currentRawResponse.parsedBody,
|
|
1808
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1809
|
+
}
|
|
1810
|
+
};
|
|
1811
|
+
});
|
|
1812
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, searchServiceName, service, options }, createOrUpdateOperationSpec);
|
|
1813
|
+
return new coreLro.LroEngine(lro, {
|
|
1814
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1815
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1816
|
+
});
|
|
1817
|
+
});
|
|
1818
|
+
}
|
|
1819
|
+
/**
|
|
1820
|
+
* Creates or updates a search service in the given resource group. If the search service already
|
|
1821
|
+
* exists, all properties will be updated with the given values.
|
|
1822
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
1823
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
1824
|
+
* @param searchServiceName The name of the Azure Cognitive Search service to create or update. Search
|
|
1825
|
+
* service names must only contain lowercase letters, digits or dashes, cannot use dash as the first
|
|
1826
|
+
* two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60
|
|
1827
|
+
* characters in length. Search service names must be globally unique since they are part of the
|
|
1828
|
+
* service URI (https://<name>.search.windows.net). You cannot change the service name after the
|
|
1829
|
+
* service is created.
|
|
1830
|
+
* @param service The definition of the search service to create or update.
|
|
1831
|
+
* @param options The options parameters.
|
|
1832
|
+
*/
|
|
1833
|
+
beginCreateOrUpdateAndWait(resourceGroupName, searchServiceName, service, options) {
|
|
1834
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1835
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, searchServiceName, service, options);
|
|
1836
|
+
return poller.pollUntilDone();
|
|
1837
|
+
});
|
|
1838
|
+
}
|
|
1839
|
+
/**
|
|
1840
|
+
* Updates an existing search service in the given resource group.
|
|
1841
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
1842
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
1843
|
+
* @param searchServiceName The name of the Azure Cognitive Search service to update.
|
|
1844
|
+
* @param service The definition of the search service to update.
|
|
1845
|
+
* @param options The options parameters.
|
|
1846
|
+
*/
|
|
1847
|
+
update(resourceGroupName, searchServiceName, service, options) {
|
|
1848
|
+
return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, service, options }, updateOperationSpec);
|
|
1849
|
+
}
|
|
1850
|
+
/**
|
|
1851
|
+
* Gets the search service with the given name in the given resource group.
|
|
1852
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
1853
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
1854
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
1855
|
+
* specified resource group.
|
|
1856
|
+
* @param options The options parameters.
|
|
1857
|
+
*/
|
|
1858
|
+
get(resourceGroupName, searchServiceName, options) {
|
|
1859
|
+
return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, options }, getOperationSpec$1);
|
|
1860
|
+
}
|
|
1861
|
+
/**
|
|
1862
|
+
* Deletes a search service in the given resource group, along with its associated resources.
|
|
1863
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
1864
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
1865
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
1866
|
+
* specified resource group.
|
|
1867
|
+
* @param options The options parameters.
|
|
1868
|
+
*/
|
|
1869
|
+
delete(resourceGroupName, searchServiceName, options) {
|
|
1870
|
+
return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, options }, deleteOperationSpec$1);
|
|
1871
|
+
}
|
|
1872
|
+
/**
|
|
1873
|
+
* Gets a list of all search services in the given resource group.
|
|
1874
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
1875
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
1876
|
+
* @param options The options parameters.
|
|
1877
|
+
*/
|
|
1878
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
1879
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
1880
|
+
}
|
|
1881
|
+
/**
|
|
1882
|
+
* Gets a list of all search services in the given subscription.
|
|
1883
|
+
* @param options The options parameters.
|
|
1884
|
+
*/
|
|
1885
|
+
_listBySubscription(options) {
|
|
1886
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
1887
|
+
}
|
|
1888
|
+
/**
|
|
1889
|
+
* Checks whether or not the given search service name is available for use. Search service names must
|
|
1890
|
+
* be globally unique since they are part of the service URI (https://<name>.search.windows.net).
|
|
1891
|
+
* @param name The search service name to validate. Search service names must only contain lowercase
|
|
1892
|
+
* letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain
|
|
1893
|
+
* consecutive dashes, and must be between 2 and 60 characters in length.
|
|
1894
|
+
* @param options The options parameters.
|
|
1895
|
+
*/
|
|
1896
|
+
checkNameAvailability(name, options) {
|
|
1897
|
+
return this.client.sendOperationRequest({ name, options }, checkNameAvailabilityOperationSpec);
|
|
1898
|
+
}
|
|
1899
|
+
/**
|
|
1900
|
+
* ListByResourceGroupNext
|
|
1901
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
1902
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
1903
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
1904
|
+
* @param options The options parameters.
|
|
1905
|
+
*/
|
|
1906
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
1907
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
1908
|
+
}
|
|
1909
|
+
/**
|
|
1910
|
+
* ListBySubscriptionNext
|
|
1911
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
1912
|
+
* @param options The options parameters.
|
|
1913
|
+
*/
|
|
1914
|
+
_listBySubscriptionNext(nextLink, options) {
|
|
1915
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
1916
|
+
}
|
|
1917
|
+
}
|
|
1918
|
+
// Operation Specifications
|
|
1919
|
+
const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1920
|
+
const createOrUpdateOperationSpec = {
|
|
1921
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
|
|
1922
|
+
httpMethod: "PUT",
|
|
1923
|
+
responses: {
|
|
1924
|
+
200: {
|
|
1925
|
+
bodyMapper: SearchService
|
|
1926
|
+
},
|
|
1927
|
+
201: {
|
|
1928
|
+
bodyMapper: SearchService
|
|
1929
|
+
},
|
|
1930
|
+
202: {
|
|
1931
|
+
bodyMapper: SearchService
|
|
1932
|
+
},
|
|
1933
|
+
204: {
|
|
1934
|
+
bodyMapper: SearchService
|
|
1935
|
+
},
|
|
1936
|
+
default: {
|
|
1937
|
+
bodyMapper: CloudError
|
|
1938
|
+
}
|
|
1939
|
+
},
|
|
1940
|
+
requestBody: service,
|
|
1941
|
+
queryParameters: [apiVersion],
|
|
1942
|
+
urlParameters: [
|
|
1943
|
+
$host,
|
|
1944
|
+
resourceGroupName,
|
|
1945
|
+
searchServiceName,
|
|
1946
|
+
subscriptionId
|
|
1947
|
+
],
|
|
1948
|
+
headerParameters: [
|
|
1949
|
+
accept,
|
|
1950
|
+
clientRequestId,
|
|
1951
|
+
contentType
|
|
1952
|
+
],
|
|
1953
|
+
mediaType: "json",
|
|
1954
|
+
serializer: serializer$3
|
|
1955
|
+
};
|
|
1956
|
+
const updateOperationSpec = {
|
|
1957
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
|
|
1958
|
+
httpMethod: "PATCH",
|
|
1959
|
+
responses: {
|
|
1960
|
+
200: {
|
|
1961
|
+
bodyMapper: SearchService
|
|
1962
|
+
},
|
|
1963
|
+
default: {
|
|
1964
|
+
bodyMapper: CloudError
|
|
1965
|
+
}
|
|
1966
|
+
},
|
|
1967
|
+
requestBody: service1,
|
|
1968
|
+
queryParameters: [apiVersion],
|
|
1969
|
+
urlParameters: [
|
|
1970
|
+
$host,
|
|
1971
|
+
resourceGroupName,
|
|
1972
|
+
searchServiceName,
|
|
1973
|
+
subscriptionId
|
|
1974
|
+
],
|
|
1975
|
+
headerParameters: [
|
|
1976
|
+
accept,
|
|
1977
|
+
clientRequestId,
|
|
1978
|
+
contentType
|
|
1979
|
+
],
|
|
1980
|
+
mediaType: "json",
|
|
1981
|
+
serializer: serializer$3
|
|
1982
|
+
};
|
|
1983
|
+
const getOperationSpec$1 = {
|
|
1984
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
|
|
1985
|
+
httpMethod: "GET",
|
|
1986
|
+
responses: {
|
|
1987
|
+
200: {
|
|
1988
|
+
bodyMapper: SearchService
|
|
1989
|
+
},
|
|
1990
|
+
default: {
|
|
1991
|
+
bodyMapper: CloudError
|
|
1992
|
+
}
|
|
1993
|
+
},
|
|
1994
|
+
queryParameters: [apiVersion],
|
|
1995
|
+
urlParameters: [
|
|
1996
|
+
$host,
|
|
1997
|
+
resourceGroupName,
|
|
1998
|
+
searchServiceName,
|
|
1999
|
+
subscriptionId
|
|
2000
|
+
],
|
|
2001
|
+
headerParameters: [accept, clientRequestId],
|
|
2002
|
+
serializer: serializer$3
|
|
2003
|
+
};
|
|
2004
|
+
const deleteOperationSpec$1 = {
|
|
2005
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
|
|
2006
|
+
httpMethod: "DELETE",
|
|
2007
|
+
responses: {
|
|
2008
|
+
200: {},
|
|
2009
|
+
204: {},
|
|
2010
|
+
404: {},
|
|
2011
|
+
default: {
|
|
2012
|
+
bodyMapper: CloudError
|
|
2013
|
+
}
|
|
2014
|
+
},
|
|
2015
|
+
queryParameters: [apiVersion],
|
|
2016
|
+
urlParameters: [
|
|
2017
|
+
$host,
|
|
2018
|
+
resourceGroupName,
|
|
2019
|
+
searchServiceName,
|
|
2020
|
+
subscriptionId
|
|
2021
|
+
],
|
|
2022
|
+
headerParameters: [accept, clientRequestId],
|
|
2023
|
+
serializer: serializer$3
|
|
2024
|
+
};
|
|
2025
|
+
const listByResourceGroupOperationSpec = {
|
|
2026
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices",
|
|
2027
|
+
httpMethod: "GET",
|
|
2028
|
+
responses: {
|
|
2029
|
+
200: {
|
|
2030
|
+
bodyMapper: SearchServiceListResult
|
|
2031
|
+
},
|
|
2032
|
+
default: {
|
|
2033
|
+
bodyMapper: CloudError
|
|
2034
|
+
}
|
|
2035
|
+
},
|
|
2036
|
+
queryParameters: [apiVersion],
|
|
2037
|
+
urlParameters: [
|
|
2038
|
+
$host,
|
|
2039
|
+
resourceGroupName,
|
|
2040
|
+
subscriptionId
|
|
2041
|
+
],
|
|
2042
|
+
headerParameters: [accept, clientRequestId],
|
|
2043
|
+
serializer: serializer$3
|
|
2044
|
+
};
|
|
2045
|
+
const listBySubscriptionOperationSpec = {
|
|
2046
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Search/searchServices",
|
|
2047
|
+
httpMethod: "GET",
|
|
2048
|
+
responses: {
|
|
2049
|
+
200: {
|
|
2050
|
+
bodyMapper: SearchServiceListResult
|
|
2051
|
+
},
|
|
2052
|
+
default: {
|
|
2053
|
+
bodyMapper: CloudError
|
|
2054
|
+
}
|
|
2055
|
+
},
|
|
2056
|
+
queryParameters: [apiVersion],
|
|
2057
|
+
urlParameters: [$host, subscriptionId],
|
|
2058
|
+
headerParameters: [accept, clientRequestId],
|
|
2059
|
+
serializer: serializer$3
|
|
2060
|
+
};
|
|
2061
|
+
const checkNameAvailabilityOperationSpec = {
|
|
2062
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Search/checkNameAvailability",
|
|
2063
|
+
httpMethod: "POST",
|
|
2064
|
+
responses: {
|
|
2065
|
+
200: {
|
|
2066
|
+
bodyMapper: CheckNameAvailabilityOutput
|
|
2067
|
+
},
|
|
2068
|
+
default: {
|
|
2069
|
+
bodyMapper: CloudError
|
|
2070
|
+
}
|
|
2071
|
+
},
|
|
2072
|
+
requestBody: {
|
|
2073
|
+
parameterPath: { name: ["name"], typeParam: ["typeParam"] },
|
|
2074
|
+
mapper: Object.assign(Object.assign({}, CheckNameAvailabilityInput), { required: true })
|
|
2075
|
+
},
|
|
2076
|
+
queryParameters: [apiVersion],
|
|
2077
|
+
urlParameters: [$host, subscriptionId],
|
|
2078
|
+
headerParameters: [
|
|
2079
|
+
accept,
|
|
2080
|
+
clientRequestId,
|
|
2081
|
+
contentType
|
|
2082
|
+
],
|
|
2083
|
+
mediaType: "json",
|
|
2084
|
+
serializer: serializer$3
|
|
2085
|
+
};
|
|
2086
|
+
const listByResourceGroupNextOperationSpec = {
|
|
2087
|
+
path: "{nextLink}",
|
|
2088
|
+
httpMethod: "GET",
|
|
2089
|
+
responses: {
|
|
2090
|
+
200: {
|
|
2091
|
+
bodyMapper: SearchServiceListResult
|
|
2092
|
+
},
|
|
2093
|
+
default: {
|
|
2094
|
+
bodyMapper: CloudError
|
|
2095
|
+
}
|
|
2096
|
+
},
|
|
2097
|
+
queryParameters: [apiVersion],
|
|
2098
|
+
urlParameters: [
|
|
2099
|
+
$host,
|
|
2100
|
+
resourceGroupName,
|
|
2101
|
+
subscriptionId,
|
|
2102
|
+
nextLink
|
|
2103
|
+
],
|
|
2104
|
+
headerParameters: [accept, clientRequestId],
|
|
2105
|
+
serializer: serializer$3
|
|
2106
|
+
};
|
|
2107
|
+
const listBySubscriptionNextOperationSpec = {
|
|
2108
|
+
path: "{nextLink}",
|
|
2109
|
+
httpMethod: "GET",
|
|
2110
|
+
responses: {
|
|
2111
|
+
200: {
|
|
2112
|
+
bodyMapper: SearchServiceListResult
|
|
2113
|
+
},
|
|
2114
|
+
default: {
|
|
2115
|
+
bodyMapper: CloudError
|
|
2116
|
+
}
|
|
2117
|
+
},
|
|
2118
|
+
queryParameters: [apiVersion],
|
|
2119
|
+
urlParameters: [
|
|
2120
|
+
$host,
|
|
2121
|
+
subscriptionId,
|
|
2122
|
+
nextLink
|
|
2123
|
+
],
|
|
2124
|
+
headerParameters: [accept, clientRequestId],
|
|
2125
|
+
serializer: serializer$3
|
|
2126
|
+
};
|
|
2127
|
+
|
|
2128
|
+
/*
|
|
2129
|
+
* Copyright (c) Microsoft Corporation.
|
|
2130
|
+
* Licensed under the MIT License.
|
|
2131
|
+
*
|
|
2132
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2133
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2134
|
+
*/
|
|
2135
|
+
/// <reference lib="esnext.asynciterable" />
|
|
2136
|
+
/** Class containing PrivateLinkResources operations. */
|
|
2137
|
+
class PrivateLinkResourcesImpl {
|
|
2138
|
+
/**
|
|
2139
|
+
* Initialize a new instance of the class PrivateLinkResources class.
|
|
2140
|
+
* @param client Reference to the service client
|
|
2141
|
+
*/
|
|
2142
|
+
constructor(client) {
|
|
2143
|
+
this.client = client;
|
|
2144
|
+
}
|
|
2145
|
+
/**
|
|
2146
|
+
* Gets a list of all supported private link resource types for the given service.
|
|
2147
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
2148
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
2149
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
2150
|
+
* specified resource group.
|
|
2151
|
+
* @param options The options parameters.
|
|
2152
|
+
*/
|
|
2153
|
+
listSupported(resourceGroupName, searchServiceName, options) {
|
|
2154
|
+
const iter = this.listSupportedPagingAll(resourceGroupName, searchServiceName, options);
|
|
2155
|
+
return {
|
|
2156
|
+
next() {
|
|
2157
|
+
return iter.next();
|
|
2158
|
+
},
|
|
2159
|
+
[Symbol.asyncIterator]() {
|
|
2160
|
+
return this;
|
|
2161
|
+
},
|
|
2162
|
+
byPage: () => {
|
|
2163
|
+
return this.listSupportedPagingPage(resourceGroupName, searchServiceName, options);
|
|
2164
|
+
}
|
|
2165
|
+
};
|
|
2166
|
+
}
|
|
2167
|
+
listSupportedPagingPage(resourceGroupName, searchServiceName, options) {
|
|
2168
|
+
return tslib.__asyncGenerator(this, arguments, function* listSupportedPagingPage_1() {
|
|
2169
|
+
let result = yield tslib.__await(this._listSupported(resourceGroupName, searchServiceName, options));
|
|
2170
|
+
yield yield tslib.__await(result.value || []);
|
|
2171
|
+
});
|
|
2172
|
+
}
|
|
2173
|
+
listSupportedPagingAll(resourceGroupName, searchServiceName, options) {
|
|
2174
|
+
return tslib.__asyncGenerator(this, arguments, function* listSupportedPagingAll_1() {
|
|
2175
|
+
var e_1, _a;
|
|
2176
|
+
try {
|
|
2177
|
+
for (var _b = tslib.__asyncValues(this.listSupportedPagingPage(resourceGroupName, searchServiceName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2178
|
+
const page = _c.value;
|
|
2179
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2180
|
+
}
|
|
2181
|
+
}
|
|
2182
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2183
|
+
finally {
|
|
2184
|
+
try {
|
|
2185
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2186
|
+
}
|
|
2187
|
+
finally { if (e_1) throw e_1.error; }
|
|
2188
|
+
}
|
|
2189
|
+
});
|
|
2190
|
+
}
|
|
2191
|
+
/**
|
|
2192
|
+
* Gets a list of all supported private link resource types for the given service.
|
|
2193
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
2194
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
2195
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
2196
|
+
* specified resource group.
|
|
2197
|
+
* @param options The options parameters.
|
|
2198
|
+
*/
|
|
2199
|
+
_listSupported(resourceGroupName, searchServiceName, options) {
|
|
2200
|
+
return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, options }, listSupportedOperationSpec);
|
|
2201
|
+
}
|
|
2202
|
+
}
|
|
2203
|
+
// Operation Specifications
|
|
2204
|
+
const serializer$4 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
2205
|
+
const listSupportedOperationSpec = {
|
|
2206
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateLinkResources",
|
|
2207
|
+
httpMethod: "GET",
|
|
2208
|
+
responses: {
|
|
2209
|
+
200: {
|
|
2210
|
+
bodyMapper: PrivateLinkResourcesResult
|
|
2211
|
+
},
|
|
2212
|
+
default: {
|
|
2213
|
+
bodyMapper: CloudError
|
|
2214
|
+
}
|
|
2215
|
+
},
|
|
2216
|
+
queryParameters: [apiVersion],
|
|
2217
|
+
urlParameters: [
|
|
2218
|
+
$host,
|
|
2219
|
+
resourceGroupName,
|
|
2220
|
+
searchServiceName,
|
|
2221
|
+
subscriptionId
|
|
2222
|
+
],
|
|
2223
|
+
headerParameters: [accept, clientRequestId],
|
|
2224
|
+
serializer: serializer$4
|
|
2225
|
+
};
|
|
2226
|
+
|
|
2227
|
+
/*
|
|
2228
|
+
* Copyright (c) Microsoft Corporation.
|
|
2229
|
+
* Licensed under the MIT License.
|
|
2230
|
+
*
|
|
2231
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2232
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2233
|
+
*/
|
|
2234
|
+
/// <reference lib="esnext.asynciterable" />
|
|
2235
|
+
/** Class containing PrivateEndpointConnections operations. */
|
|
2236
|
+
class PrivateEndpointConnectionsImpl {
|
|
2237
|
+
/**
|
|
2238
|
+
* Initialize a new instance of the class PrivateEndpointConnections class.
|
|
2239
|
+
* @param client Reference to the service client
|
|
2240
|
+
*/
|
|
2241
|
+
constructor(client) {
|
|
2242
|
+
this.client = client;
|
|
2243
|
+
}
|
|
2244
|
+
/**
|
|
2245
|
+
* Gets a list of all private endpoint connections in the given service.
|
|
2246
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
2247
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
2248
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
2249
|
+
* specified resource group.
|
|
2250
|
+
* @param options The options parameters.
|
|
2251
|
+
*/
|
|
2252
|
+
listByService(resourceGroupName, searchServiceName, options) {
|
|
2253
|
+
const iter = this.listByServicePagingAll(resourceGroupName, searchServiceName, options);
|
|
2254
|
+
return {
|
|
2255
|
+
next() {
|
|
2256
|
+
return iter.next();
|
|
2257
|
+
},
|
|
2258
|
+
[Symbol.asyncIterator]() {
|
|
2259
|
+
return this;
|
|
2260
|
+
},
|
|
2261
|
+
byPage: () => {
|
|
2262
|
+
return this.listByServicePagingPage(resourceGroupName, searchServiceName, options);
|
|
2263
|
+
}
|
|
2264
|
+
};
|
|
2265
|
+
}
|
|
2266
|
+
listByServicePagingPage(resourceGroupName, searchServiceName, options) {
|
|
2267
|
+
return tslib.__asyncGenerator(this, arguments, function* listByServicePagingPage_1() {
|
|
2268
|
+
let result = yield tslib.__await(this._listByService(resourceGroupName, searchServiceName, options));
|
|
2269
|
+
yield yield tslib.__await(result.value || []);
|
|
2270
|
+
let continuationToken = result.nextLink;
|
|
2271
|
+
while (continuationToken) {
|
|
2272
|
+
result = yield tslib.__await(this._listByServiceNext(resourceGroupName, searchServiceName, continuationToken, options));
|
|
2273
|
+
continuationToken = result.nextLink;
|
|
2274
|
+
yield yield tslib.__await(result.value || []);
|
|
2275
|
+
}
|
|
2276
|
+
});
|
|
2277
|
+
}
|
|
2278
|
+
listByServicePagingAll(resourceGroupName, searchServiceName, options) {
|
|
2279
|
+
return tslib.__asyncGenerator(this, arguments, function* listByServicePagingAll_1() {
|
|
2280
|
+
var e_1, _a;
|
|
2281
|
+
try {
|
|
2282
|
+
for (var _b = tslib.__asyncValues(this.listByServicePagingPage(resourceGroupName, searchServiceName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2283
|
+
const page = _c.value;
|
|
2284
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2285
|
+
}
|
|
2286
|
+
}
|
|
2287
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2288
|
+
finally {
|
|
2289
|
+
try {
|
|
2290
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2291
|
+
}
|
|
2292
|
+
finally { if (e_1) throw e_1.error; }
|
|
2293
|
+
}
|
|
2294
|
+
});
|
|
2295
|
+
}
|
|
2296
|
+
/**
|
|
2297
|
+
* Updates a Private Endpoint connection to the search service in the given resource group.
|
|
2298
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
2299
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
2300
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
2301
|
+
* specified resource group.
|
|
2302
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection to the Azure
|
|
2303
|
+
* Cognitive Search service with the specified resource group.
|
|
2304
|
+
* @param privateEndpointConnection The definition of the private endpoint connection to update.
|
|
2305
|
+
* @param options The options parameters.
|
|
2306
|
+
*/
|
|
2307
|
+
update(resourceGroupName, searchServiceName, privateEndpointConnectionName, privateEndpointConnection, options) {
|
|
2308
|
+
return this.client.sendOperationRequest({
|
|
2309
|
+
resourceGroupName,
|
|
2310
|
+
searchServiceName,
|
|
2311
|
+
privateEndpointConnectionName,
|
|
2312
|
+
privateEndpointConnection,
|
|
2313
|
+
options
|
|
2314
|
+
}, updateOperationSpec$1);
|
|
2315
|
+
}
|
|
2316
|
+
/**
|
|
2317
|
+
* Gets the details of the private endpoint connection to the search service in the given resource
|
|
2318
|
+
* group.
|
|
2319
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
2320
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
2321
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
2322
|
+
* specified resource group.
|
|
2323
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection to the Azure
|
|
2324
|
+
* Cognitive Search service with the specified resource group.
|
|
2325
|
+
* @param options The options parameters.
|
|
2326
|
+
*/
|
|
2327
|
+
get(resourceGroupName, searchServiceName, privateEndpointConnectionName, options) {
|
|
2328
|
+
return this.client.sendOperationRequest({
|
|
2329
|
+
resourceGroupName,
|
|
2330
|
+
searchServiceName,
|
|
2331
|
+
privateEndpointConnectionName,
|
|
2332
|
+
options
|
|
2333
|
+
}, getOperationSpec$2);
|
|
2334
|
+
}
|
|
2335
|
+
/**
|
|
2336
|
+
* Disconnects the private endpoint connection and deletes it from the search service.
|
|
2337
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
2338
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
2339
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
2340
|
+
* specified resource group.
|
|
2341
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection to the Azure
|
|
2342
|
+
* Cognitive Search service with the specified resource group.
|
|
2343
|
+
* @param options The options parameters.
|
|
2344
|
+
*/
|
|
2345
|
+
delete(resourceGroupName, searchServiceName, privateEndpointConnectionName, options) {
|
|
2346
|
+
return this.client.sendOperationRequest({
|
|
2347
|
+
resourceGroupName,
|
|
2348
|
+
searchServiceName,
|
|
2349
|
+
privateEndpointConnectionName,
|
|
2350
|
+
options
|
|
2351
|
+
}, deleteOperationSpec$2);
|
|
2352
|
+
}
|
|
2353
|
+
/**
|
|
2354
|
+
* Gets a list of all private endpoint connections in the given service.
|
|
2355
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
2356
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
2357
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
2358
|
+
* specified resource group.
|
|
2359
|
+
* @param options The options parameters.
|
|
2360
|
+
*/
|
|
2361
|
+
_listByService(resourceGroupName, searchServiceName, options) {
|
|
2362
|
+
return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, options }, listByServiceOperationSpec);
|
|
2363
|
+
}
|
|
2364
|
+
/**
|
|
2365
|
+
* ListByServiceNext
|
|
2366
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
2367
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
2368
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
2369
|
+
* specified resource group.
|
|
2370
|
+
* @param nextLink The nextLink from the previous successful call to the ListByService method.
|
|
2371
|
+
* @param options The options parameters.
|
|
2372
|
+
*/
|
|
2373
|
+
_listByServiceNext(resourceGroupName, searchServiceName, nextLink, options) {
|
|
2374
|
+
return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, nextLink, options }, listByServiceNextOperationSpec);
|
|
2375
|
+
}
|
|
2376
|
+
}
|
|
2377
|
+
// Operation Specifications
|
|
2378
|
+
const serializer$5 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
2379
|
+
const updateOperationSpec$1 = {
|
|
2380
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
2381
|
+
httpMethod: "PUT",
|
|
2382
|
+
responses: {
|
|
2383
|
+
200: {
|
|
2384
|
+
bodyMapper: PrivateEndpointConnection
|
|
2385
|
+
},
|
|
2386
|
+
default: {
|
|
2387
|
+
bodyMapper: CloudError
|
|
2388
|
+
}
|
|
2389
|
+
},
|
|
2390
|
+
requestBody: privateEndpointConnection,
|
|
2391
|
+
queryParameters: [apiVersion],
|
|
2392
|
+
urlParameters: [
|
|
2393
|
+
$host,
|
|
2394
|
+
resourceGroupName,
|
|
2395
|
+
searchServiceName,
|
|
2396
|
+
subscriptionId,
|
|
2397
|
+
privateEndpointConnectionName
|
|
2398
|
+
],
|
|
2399
|
+
headerParameters: [
|
|
2400
|
+
accept,
|
|
2401
|
+
clientRequestId,
|
|
2402
|
+
contentType
|
|
2403
|
+
],
|
|
2404
|
+
mediaType: "json",
|
|
2405
|
+
serializer: serializer$5
|
|
2406
|
+
};
|
|
2407
|
+
const getOperationSpec$2 = {
|
|
2408
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
2409
|
+
httpMethod: "GET",
|
|
2410
|
+
responses: {
|
|
2411
|
+
200: {
|
|
2412
|
+
bodyMapper: PrivateEndpointConnection
|
|
2413
|
+
},
|
|
2414
|
+
default: {
|
|
2415
|
+
bodyMapper: CloudError
|
|
2416
|
+
}
|
|
2417
|
+
},
|
|
2418
|
+
queryParameters: [apiVersion],
|
|
2419
|
+
urlParameters: [
|
|
2420
|
+
$host,
|
|
2421
|
+
resourceGroupName,
|
|
2422
|
+
searchServiceName,
|
|
2423
|
+
subscriptionId,
|
|
2424
|
+
privateEndpointConnectionName
|
|
2425
|
+
],
|
|
2426
|
+
headerParameters: [accept, clientRequestId],
|
|
2427
|
+
serializer: serializer$5
|
|
2428
|
+
};
|
|
2429
|
+
const deleteOperationSpec$2 = {
|
|
2430
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
2431
|
+
httpMethod: "DELETE",
|
|
2432
|
+
responses: {
|
|
2433
|
+
200: {
|
|
2434
|
+
bodyMapper: PrivateEndpointConnection
|
|
2435
|
+
},
|
|
2436
|
+
404: {},
|
|
2437
|
+
default: {
|
|
2438
|
+
bodyMapper: CloudError
|
|
2439
|
+
}
|
|
2440
|
+
},
|
|
2441
|
+
queryParameters: [apiVersion],
|
|
2442
|
+
urlParameters: [
|
|
2443
|
+
$host,
|
|
2444
|
+
resourceGroupName,
|
|
2445
|
+
searchServiceName,
|
|
2446
|
+
subscriptionId,
|
|
2447
|
+
privateEndpointConnectionName
|
|
2448
|
+
],
|
|
2449
|
+
headerParameters: [accept, clientRequestId],
|
|
2450
|
+
serializer: serializer$5
|
|
2451
|
+
};
|
|
2452
|
+
const listByServiceOperationSpec = {
|
|
2453
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections",
|
|
2454
|
+
httpMethod: "GET",
|
|
2455
|
+
responses: {
|
|
2456
|
+
200: {
|
|
2457
|
+
bodyMapper: PrivateEndpointConnectionListResult
|
|
2458
|
+
},
|
|
2459
|
+
default: {
|
|
2460
|
+
bodyMapper: CloudError
|
|
2461
|
+
}
|
|
2462
|
+
},
|
|
2463
|
+
queryParameters: [apiVersion],
|
|
2464
|
+
urlParameters: [
|
|
2465
|
+
$host,
|
|
2466
|
+
resourceGroupName,
|
|
2467
|
+
searchServiceName,
|
|
2468
|
+
subscriptionId
|
|
2469
|
+
],
|
|
2470
|
+
headerParameters: [accept, clientRequestId],
|
|
2471
|
+
serializer: serializer$5
|
|
2472
|
+
};
|
|
2473
|
+
const listByServiceNextOperationSpec = {
|
|
2474
|
+
path: "{nextLink}",
|
|
2475
|
+
httpMethod: "GET",
|
|
2476
|
+
responses: {
|
|
2477
|
+
200: {
|
|
2478
|
+
bodyMapper: PrivateEndpointConnectionListResult
|
|
2479
|
+
},
|
|
2480
|
+
default: {
|
|
2481
|
+
bodyMapper: CloudError
|
|
2482
|
+
}
|
|
2483
|
+
},
|
|
2484
|
+
queryParameters: [apiVersion],
|
|
2485
|
+
urlParameters: [
|
|
2486
|
+
$host,
|
|
2487
|
+
resourceGroupName,
|
|
2488
|
+
searchServiceName,
|
|
2489
|
+
subscriptionId,
|
|
2490
|
+
nextLink
|
|
2491
|
+
],
|
|
2492
|
+
headerParameters: [accept, clientRequestId],
|
|
2493
|
+
serializer: serializer$5
|
|
2494
|
+
};
|
|
2495
|
+
|
|
2496
|
+
/*
|
|
2497
|
+
* Copyright (c) Microsoft Corporation.
|
|
2498
|
+
* Licensed under the MIT License.
|
|
2499
|
+
*
|
|
2500
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2501
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2502
|
+
*/
|
|
2503
|
+
/// <reference lib="esnext.asynciterable" />
|
|
2504
|
+
/** Class containing SharedPrivateLinkResources operations. */
|
|
2505
|
+
class SharedPrivateLinkResourcesImpl {
|
|
2506
|
+
/**
|
|
2507
|
+
* Initialize a new instance of the class SharedPrivateLinkResources class.
|
|
2508
|
+
* @param client Reference to the service client
|
|
2509
|
+
*/
|
|
2510
|
+
constructor(client) {
|
|
2511
|
+
this.client = client;
|
|
2512
|
+
}
|
|
2513
|
+
/**
|
|
2514
|
+
* Gets a list of all shared private link resources managed by the given service.
|
|
2515
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
2516
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
2517
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
2518
|
+
* specified resource group.
|
|
2519
|
+
* @param options The options parameters.
|
|
2520
|
+
*/
|
|
2521
|
+
listByService(resourceGroupName, searchServiceName, options) {
|
|
2522
|
+
const iter = this.listByServicePagingAll(resourceGroupName, searchServiceName, options);
|
|
2523
|
+
return {
|
|
2524
|
+
next() {
|
|
2525
|
+
return iter.next();
|
|
2526
|
+
},
|
|
2527
|
+
[Symbol.asyncIterator]() {
|
|
2528
|
+
return this;
|
|
2529
|
+
},
|
|
2530
|
+
byPage: () => {
|
|
2531
|
+
return this.listByServicePagingPage(resourceGroupName, searchServiceName, options);
|
|
2532
|
+
}
|
|
2533
|
+
};
|
|
2534
|
+
}
|
|
2535
|
+
listByServicePagingPage(resourceGroupName, searchServiceName, options) {
|
|
2536
|
+
return tslib.__asyncGenerator(this, arguments, function* listByServicePagingPage_1() {
|
|
2537
|
+
let result = yield tslib.__await(this._listByService(resourceGroupName, searchServiceName, options));
|
|
2538
|
+
yield yield tslib.__await(result.value || []);
|
|
2539
|
+
let continuationToken = result.nextLink;
|
|
2540
|
+
while (continuationToken) {
|
|
2541
|
+
result = yield tslib.__await(this._listByServiceNext(resourceGroupName, searchServiceName, continuationToken, options));
|
|
2542
|
+
continuationToken = result.nextLink;
|
|
2543
|
+
yield yield tslib.__await(result.value || []);
|
|
2544
|
+
}
|
|
2545
|
+
});
|
|
2546
|
+
}
|
|
2547
|
+
listByServicePagingAll(resourceGroupName, searchServiceName, options) {
|
|
2548
|
+
return tslib.__asyncGenerator(this, arguments, function* listByServicePagingAll_1() {
|
|
2549
|
+
var e_1, _a;
|
|
2550
|
+
try {
|
|
2551
|
+
for (var _b = tslib.__asyncValues(this.listByServicePagingPage(resourceGroupName, searchServiceName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2552
|
+
const page = _c.value;
|
|
2553
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2554
|
+
}
|
|
2555
|
+
}
|
|
2556
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2557
|
+
finally {
|
|
2558
|
+
try {
|
|
2559
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2560
|
+
}
|
|
2561
|
+
finally { if (e_1) throw e_1.error; }
|
|
2562
|
+
}
|
|
2563
|
+
});
|
|
2564
|
+
}
|
|
2565
|
+
/**
|
|
2566
|
+
* Initiates the creation or update of a shared private link resource managed by the search service in
|
|
2567
|
+
* the given resource group.
|
|
2568
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
2569
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
2570
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
2571
|
+
* specified resource group.
|
|
2572
|
+
* @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
|
|
2573
|
+
* Azure Cognitive Search service within the specified resource group.
|
|
2574
|
+
* @param sharedPrivateLinkResource The definition of the shared private link resource to create or
|
|
2575
|
+
* update.
|
|
2576
|
+
* @param options The options parameters.
|
|
2577
|
+
*/
|
|
2578
|
+
beginCreateOrUpdate(resourceGroupName, searchServiceName, sharedPrivateLinkResourceName, sharedPrivateLinkResource, options) {
|
|
2579
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2580
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2581
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2582
|
+
});
|
|
2583
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2584
|
+
var _a;
|
|
2585
|
+
let currentRawResponse = undefined;
|
|
2586
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2587
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2588
|
+
currentRawResponse = rawResponse;
|
|
2589
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2590
|
+
};
|
|
2591
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2592
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2593
|
+
return {
|
|
2594
|
+
flatResponse,
|
|
2595
|
+
rawResponse: {
|
|
2596
|
+
statusCode: currentRawResponse.status,
|
|
2597
|
+
body: currentRawResponse.parsedBody,
|
|
2598
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2599
|
+
}
|
|
2600
|
+
};
|
|
2601
|
+
});
|
|
2602
|
+
const lro = new LroImpl(sendOperation, {
|
|
2603
|
+
resourceGroupName,
|
|
2604
|
+
searchServiceName,
|
|
2605
|
+
sharedPrivateLinkResourceName,
|
|
2606
|
+
sharedPrivateLinkResource,
|
|
2607
|
+
options
|
|
2608
|
+
}, createOrUpdateOperationSpec$1);
|
|
2609
|
+
return new coreLro.LroEngine(lro, {
|
|
2610
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2611
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2612
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
2613
|
+
});
|
|
2614
|
+
});
|
|
2615
|
+
}
|
|
2616
|
+
/**
|
|
2617
|
+
* Initiates the creation or update of a shared private link resource managed by the search service in
|
|
2618
|
+
* the given resource group.
|
|
2619
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
2620
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
2621
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
2622
|
+
* specified resource group.
|
|
2623
|
+
* @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
|
|
2624
|
+
* Azure Cognitive Search service within the specified resource group.
|
|
2625
|
+
* @param sharedPrivateLinkResource The definition of the shared private link resource to create or
|
|
2626
|
+
* update.
|
|
2627
|
+
* @param options The options parameters.
|
|
2628
|
+
*/
|
|
2629
|
+
beginCreateOrUpdateAndWait(resourceGroupName, searchServiceName, sharedPrivateLinkResourceName, sharedPrivateLinkResource, options) {
|
|
2630
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2631
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, searchServiceName, sharedPrivateLinkResourceName, sharedPrivateLinkResource, options);
|
|
2632
|
+
return poller.pollUntilDone();
|
|
2633
|
+
});
|
|
2634
|
+
}
|
|
2635
|
+
/**
|
|
2636
|
+
* Gets the details of the shared private link resource managed by the search service in the given
|
|
2637
|
+
* resource group.
|
|
2638
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
2639
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
2640
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
2641
|
+
* specified resource group.
|
|
2642
|
+
* @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
|
|
2643
|
+
* Azure Cognitive Search service within the specified resource group.
|
|
2644
|
+
* @param options The options parameters.
|
|
2645
|
+
*/
|
|
2646
|
+
get(resourceGroupName, searchServiceName, sharedPrivateLinkResourceName, options) {
|
|
2647
|
+
return this.client.sendOperationRequest({
|
|
2648
|
+
resourceGroupName,
|
|
2649
|
+
searchServiceName,
|
|
2650
|
+
sharedPrivateLinkResourceName,
|
|
2651
|
+
options
|
|
2652
|
+
}, getOperationSpec$3);
|
|
2653
|
+
}
|
|
2654
|
+
/**
|
|
2655
|
+
* Initiates the deletion of the shared private link resource from the search service.
|
|
2656
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
2657
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
2658
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
2659
|
+
* specified resource group.
|
|
2660
|
+
* @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
|
|
2661
|
+
* Azure Cognitive Search service within the specified resource group.
|
|
2662
|
+
* @param options The options parameters.
|
|
2663
|
+
*/
|
|
2664
|
+
beginDelete(resourceGroupName, searchServiceName, sharedPrivateLinkResourceName, options) {
|
|
2665
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2666
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2667
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2668
|
+
});
|
|
2669
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2670
|
+
var _a;
|
|
2671
|
+
let currentRawResponse = undefined;
|
|
2672
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2673
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2674
|
+
currentRawResponse = rawResponse;
|
|
2675
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2676
|
+
};
|
|
2677
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2678
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2679
|
+
return {
|
|
2680
|
+
flatResponse,
|
|
2681
|
+
rawResponse: {
|
|
2682
|
+
statusCode: currentRawResponse.status,
|
|
2683
|
+
body: currentRawResponse.parsedBody,
|
|
2684
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2685
|
+
}
|
|
2686
|
+
};
|
|
2687
|
+
});
|
|
2688
|
+
const lro = new LroImpl(sendOperation, {
|
|
2689
|
+
resourceGroupName,
|
|
2690
|
+
searchServiceName,
|
|
2691
|
+
sharedPrivateLinkResourceName,
|
|
2692
|
+
options
|
|
2693
|
+
}, deleteOperationSpec$3);
|
|
2694
|
+
return new coreLro.LroEngine(lro, {
|
|
2695
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2696
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2697
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
2698
|
+
});
|
|
2699
|
+
});
|
|
2700
|
+
}
|
|
2701
|
+
/**
|
|
2702
|
+
* Initiates the deletion of the shared private link resource from the search service.
|
|
2703
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
2704
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
2705
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
2706
|
+
* specified resource group.
|
|
2707
|
+
* @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
|
|
2708
|
+
* Azure Cognitive Search service within the specified resource group.
|
|
2709
|
+
* @param options The options parameters.
|
|
2710
|
+
*/
|
|
2711
|
+
beginDeleteAndWait(resourceGroupName, searchServiceName, sharedPrivateLinkResourceName, options) {
|
|
2712
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2713
|
+
const poller = yield this.beginDelete(resourceGroupName, searchServiceName, sharedPrivateLinkResourceName, options);
|
|
2714
|
+
return poller.pollUntilDone();
|
|
2715
|
+
});
|
|
2716
|
+
}
|
|
2717
|
+
/**
|
|
2718
|
+
* Gets a list of all shared private link resources managed by the given service.
|
|
2719
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
2720
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
2721
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
2722
|
+
* specified resource group.
|
|
2723
|
+
* @param options The options parameters.
|
|
2724
|
+
*/
|
|
2725
|
+
_listByService(resourceGroupName, searchServiceName, options) {
|
|
2726
|
+
return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, options }, listByServiceOperationSpec$1);
|
|
2727
|
+
}
|
|
2728
|
+
/**
|
|
2729
|
+
* ListByServiceNext
|
|
2730
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
2731
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
2732
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
2733
|
+
* specified resource group.
|
|
2734
|
+
* @param nextLink The nextLink from the previous successful call to the ListByService method.
|
|
2735
|
+
* @param options The options parameters.
|
|
2736
|
+
*/
|
|
2737
|
+
_listByServiceNext(resourceGroupName, searchServiceName, nextLink, options) {
|
|
2738
|
+
return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, nextLink, options }, listByServiceNextOperationSpec$1);
|
|
2739
|
+
}
|
|
2740
|
+
}
|
|
2741
|
+
// Operation Specifications
|
|
2742
|
+
const serializer$6 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
2743
|
+
const createOrUpdateOperationSpec$1 = {
|
|
2744
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}",
|
|
2745
|
+
httpMethod: "PUT",
|
|
2746
|
+
responses: {
|
|
2747
|
+
200: {
|
|
2748
|
+
bodyMapper: SharedPrivateLinkResource
|
|
2749
|
+
},
|
|
2750
|
+
201: {
|
|
2751
|
+
bodyMapper: SharedPrivateLinkResource
|
|
2752
|
+
},
|
|
2753
|
+
202: {
|
|
2754
|
+
bodyMapper: SharedPrivateLinkResource
|
|
2755
|
+
},
|
|
2756
|
+
204: {
|
|
2757
|
+
bodyMapper: SharedPrivateLinkResource
|
|
2758
|
+
},
|
|
2759
|
+
default: {
|
|
2760
|
+
bodyMapper: CloudError
|
|
2761
|
+
}
|
|
2762
|
+
},
|
|
2763
|
+
requestBody: sharedPrivateLinkResource,
|
|
2764
|
+
queryParameters: [apiVersion],
|
|
2765
|
+
urlParameters: [
|
|
2766
|
+
$host,
|
|
2767
|
+
resourceGroupName,
|
|
2768
|
+
searchServiceName,
|
|
2769
|
+
subscriptionId,
|
|
2770
|
+
sharedPrivateLinkResourceName
|
|
2771
|
+
],
|
|
2772
|
+
headerParameters: [
|
|
2773
|
+
accept,
|
|
2774
|
+
clientRequestId,
|
|
2775
|
+
contentType
|
|
2776
|
+
],
|
|
2777
|
+
mediaType: "json",
|
|
2778
|
+
serializer: serializer$6
|
|
2779
|
+
};
|
|
2780
|
+
const getOperationSpec$3 = {
|
|
2781
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}",
|
|
2782
|
+
httpMethod: "GET",
|
|
2783
|
+
responses: {
|
|
2784
|
+
200: {
|
|
2785
|
+
bodyMapper: SharedPrivateLinkResource
|
|
2786
|
+
},
|
|
2787
|
+
default: {
|
|
2788
|
+
bodyMapper: CloudError
|
|
2789
|
+
}
|
|
2790
|
+
},
|
|
2791
|
+
queryParameters: [apiVersion],
|
|
2792
|
+
urlParameters: [
|
|
2793
|
+
$host,
|
|
2794
|
+
resourceGroupName,
|
|
2795
|
+
searchServiceName,
|
|
2796
|
+
subscriptionId,
|
|
2797
|
+
sharedPrivateLinkResourceName
|
|
2798
|
+
],
|
|
2799
|
+
headerParameters: [accept, clientRequestId],
|
|
2800
|
+
serializer: serializer$6
|
|
2801
|
+
};
|
|
2802
|
+
const deleteOperationSpec$3 = {
|
|
2803
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}",
|
|
2804
|
+
httpMethod: "DELETE",
|
|
2805
|
+
responses: {
|
|
2806
|
+
200: {},
|
|
2807
|
+
201: {},
|
|
2808
|
+
202: {},
|
|
2809
|
+
204: {},
|
|
2810
|
+
default: {
|
|
2811
|
+
bodyMapper: CloudError
|
|
2812
|
+
}
|
|
2813
|
+
},
|
|
2814
|
+
queryParameters: [apiVersion],
|
|
2815
|
+
urlParameters: [
|
|
2816
|
+
$host,
|
|
2817
|
+
resourceGroupName,
|
|
2818
|
+
searchServiceName,
|
|
2819
|
+
subscriptionId,
|
|
2820
|
+
sharedPrivateLinkResourceName
|
|
2821
|
+
],
|
|
2822
|
+
headerParameters: [accept, clientRequestId],
|
|
2823
|
+
serializer: serializer$6
|
|
2824
|
+
};
|
|
2825
|
+
const listByServiceOperationSpec$1 = {
|
|
2826
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources",
|
|
2827
|
+
httpMethod: "GET",
|
|
2828
|
+
responses: {
|
|
2829
|
+
200: {
|
|
2830
|
+
bodyMapper: SharedPrivateLinkResourceListResult
|
|
2831
|
+
},
|
|
2832
|
+
default: {
|
|
2833
|
+
bodyMapper: CloudError
|
|
2834
|
+
}
|
|
2835
|
+
},
|
|
2836
|
+
queryParameters: [apiVersion],
|
|
2837
|
+
urlParameters: [
|
|
2838
|
+
$host,
|
|
2839
|
+
resourceGroupName,
|
|
2840
|
+
searchServiceName,
|
|
2841
|
+
subscriptionId
|
|
2842
|
+
],
|
|
2843
|
+
headerParameters: [accept, clientRequestId],
|
|
2844
|
+
serializer: serializer$6
|
|
2845
|
+
};
|
|
2846
|
+
const listByServiceNextOperationSpec$1 = {
|
|
2847
|
+
path: "{nextLink}",
|
|
2848
|
+
httpMethod: "GET",
|
|
2849
|
+
responses: {
|
|
2850
|
+
200: {
|
|
2851
|
+
bodyMapper: SharedPrivateLinkResourceListResult
|
|
2852
|
+
},
|
|
2853
|
+
default: {
|
|
2854
|
+
bodyMapper: CloudError
|
|
2855
|
+
}
|
|
2856
|
+
},
|
|
2857
|
+
queryParameters: [apiVersion],
|
|
2858
|
+
urlParameters: [
|
|
2859
|
+
$host,
|
|
2860
|
+
resourceGroupName,
|
|
2861
|
+
searchServiceName,
|
|
2862
|
+
subscriptionId,
|
|
2863
|
+
nextLink
|
|
2864
|
+
],
|
|
2865
|
+
headerParameters: [accept, clientRequestId],
|
|
2866
|
+
serializer: serializer$6
|
|
2867
|
+
};
|
|
2868
|
+
|
|
2869
|
+
/*
|
|
2870
|
+
* Copyright (c) Microsoft Corporation.
|
|
2871
|
+
* Licensed under the MIT License.
|
|
2872
|
+
*
|
|
2873
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2874
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2875
|
+
*/
|
|
2876
|
+
class SearchManagementClient extends coreClient.ServiceClient {
|
|
2877
|
+
/**
|
|
2878
|
+
* Initializes a new instance of the SearchManagementClient class.
|
|
2879
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
2880
|
+
* @param subscriptionId The unique identifier for a Microsoft Azure subscription. You can obtain this
|
|
2881
|
+
* value from the Azure Resource Manager API or the portal.
|
|
2882
|
+
* @param options The parameter options
|
|
2883
|
+
*/
|
|
2884
|
+
constructor(credentials, subscriptionId, options) {
|
|
2885
|
+
if (credentials === undefined) {
|
|
2886
|
+
throw new Error("'credentials' cannot be null");
|
|
2887
|
+
}
|
|
2888
|
+
if (subscriptionId === undefined) {
|
|
2889
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
2890
|
+
}
|
|
2891
|
+
// Initializing default values for options
|
|
2892
|
+
if (!options) {
|
|
2893
|
+
options = {};
|
|
2894
|
+
}
|
|
2895
|
+
const defaults = {
|
|
2896
|
+
requestContentType: "application/json; charset=utf-8",
|
|
2897
|
+
credential: credentials
|
|
2898
|
+
};
|
|
2899
|
+
const packageDetails = `azsdk-js-arm-search/1.0.0-beta.1`;
|
|
2900
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
2901
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
2902
|
+
: `${packageDetails}`;
|
|
2903
|
+
if (!options.credentialScopes) {
|
|
2904
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
2905
|
+
}
|
|
2906
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
2907
|
+
userAgentPrefix
|
|
2908
|
+
}, baseUri: options.endpoint || "https://management.azure.com" });
|
|
2909
|
+
super(optionsWithDefaults);
|
|
2910
|
+
// Parameter assignments
|
|
2911
|
+
this.subscriptionId = subscriptionId;
|
|
2912
|
+
// Assigning values to Constant parameters
|
|
2913
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
2914
|
+
this.apiVersion = options.apiVersion || "2020-08-01";
|
|
2915
|
+
this.operations = new OperationsImpl(this);
|
|
2916
|
+
this.adminKeys = new AdminKeysImpl(this);
|
|
2917
|
+
this.queryKeys = new QueryKeysImpl(this);
|
|
2918
|
+
this.services = new ServicesImpl(this);
|
|
2919
|
+
this.privateLinkResources = new PrivateLinkResourcesImpl(this);
|
|
2920
|
+
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
|
|
2921
|
+
this.sharedPrivateLinkResources = new SharedPrivateLinkResourcesImpl(this);
|
|
2922
|
+
}
|
|
2923
|
+
}
|
|
2924
|
+
|
|
2925
|
+
exports.SearchManagementClient = SearchManagementClient;
|
|
2926
|
+
//# sourceMappingURL=index.js.map
|