@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/arm-search.js
DELETED
|
@@ -1,1329 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
4
|
-
* license information.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
9
|
-
*/
|
|
10
|
-
(function (global, factory) {
|
|
11
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@azure/ms-rest-azure-js'), require('@azure/ms-rest-js')) :
|
|
12
|
-
typeof define === 'function' && define.amd ? define(['exports', '@azure/ms-rest-azure-js', '@azure/ms-rest-js'], factory) :
|
|
13
|
-
(factory((global.Azure = global.Azure || {}, global.Azure.ArmSearch = {}),global.msRestAzure,global.msRest));
|
|
14
|
-
}(this, (function (exports,msRestAzure,msRest) { 'use strict';
|
|
15
|
-
|
|
16
|
-
/*! *****************************************************************************
|
|
17
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
18
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
19
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
20
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
21
|
-
|
|
22
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
23
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
24
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
25
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
26
|
-
|
|
27
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
28
|
-
and limitations under the License.
|
|
29
|
-
***************************************************************************** */
|
|
30
|
-
/* global Reflect, Promise */
|
|
31
|
-
|
|
32
|
-
var extendStatics = function(d, b) {
|
|
33
|
-
extendStatics = Object.setPrototypeOf ||
|
|
34
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
35
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
36
|
-
return extendStatics(d, b);
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
function __extends(d, b) {
|
|
40
|
-
extendStatics(d, b);
|
|
41
|
-
function __() { this.constructor = d; }
|
|
42
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
var __assign = function() {
|
|
46
|
-
__assign = Object.assign || function __assign(t) {
|
|
47
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
48
|
-
s = arguments[i];
|
|
49
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
50
|
-
}
|
|
51
|
-
return t;
|
|
52
|
-
};
|
|
53
|
-
return __assign.apply(this, arguments);
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
/*
|
|
57
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
58
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
59
|
-
* license information.
|
|
60
|
-
*
|
|
61
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
62
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
63
|
-
* regenerated.
|
|
64
|
-
*/
|
|
65
|
-
|
|
66
|
-
var index = /*#__PURE__*/Object.freeze({
|
|
67
|
-
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
/*
|
|
71
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
72
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
73
|
-
* license information.
|
|
74
|
-
*
|
|
75
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
76
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
77
|
-
* regenerated.
|
|
78
|
-
*/
|
|
79
|
-
var CloudError = msRestAzure.CloudErrorMapper;
|
|
80
|
-
var BaseResource = msRestAzure.BaseResourceMapper;
|
|
81
|
-
var CheckNameAvailabilityInput = {
|
|
82
|
-
serializedName: "CheckNameAvailabilityInput",
|
|
83
|
-
type: {
|
|
84
|
-
name: "Composite",
|
|
85
|
-
className: "CheckNameAvailabilityInput",
|
|
86
|
-
modelProperties: {
|
|
87
|
-
name: {
|
|
88
|
-
required: true,
|
|
89
|
-
serializedName: "name",
|
|
90
|
-
type: {
|
|
91
|
-
name: "String"
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
type: {
|
|
95
|
-
required: true,
|
|
96
|
-
isConstant: true,
|
|
97
|
-
serializedName: "type",
|
|
98
|
-
defaultValue: 'searchServices',
|
|
99
|
-
type: {
|
|
100
|
-
name: "String"
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
var CheckNameAvailabilityOutput = {
|
|
107
|
-
serializedName: "CheckNameAvailabilityOutput",
|
|
108
|
-
type: {
|
|
109
|
-
name: "Composite",
|
|
110
|
-
className: "CheckNameAvailabilityOutput",
|
|
111
|
-
modelProperties: {
|
|
112
|
-
isNameAvailable: {
|
|
113
|
-
readOnly: true,
|
|
114
|
-
serializedName: "nameAvailable",
|
|
115
|
-
type: {
|
|
116
|
-
name: "Boolean"
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
reason: {
|
|
120
|
-
readOnly: true,
|
|
121
|
-
serializedName: "reason",
|
|
122
|
-
type: {
|
|
123
|
-
name: "String"
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
message: {
|
|
127
|
-
readOnly: true,
|
|
128
|
-
serializedName: "message",
|
|
129
|
-
type: {
|
|
130
|
-
name: "String"
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
};
|
|
136
|
-
var AdminKeyResult = {
|
|
137
|
-
serializedName: "AdminKeyResult",
|
|
138
|
-
type: {
|
|
139
|
-
name: "Composite",
|
|
140
|
-
className: "AdminKeyResult",
|
|
141
|
-
modelProperties: {
|
|
142
|
-
primaryKey: {
|
|
143
|
-
readOnly: true,
|
|
144
|
-
serializedName: "primaryKey",
|
|
145
|
-
type: {
|
|
146
|
-
name: "String"
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
secondaryKey: {
|
|
150
|
-
readOnly: true,
|
|
151
|
-
serializedName: "secondaryKey",
|
|
152
|
-
type: {
|
|
153
|
-
name: "String"
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
};
|
|
159
|
-
var QueryKey = {
|
|
160
|
-
serializedName: "QueryKey",
|
|
161
|
-
type: {
|
|
162
|
-
name: "Composite",
|
|
163
|
-
className: "QueryKey",
|
|
164
|
-
modelProperties: {
|
|
165
|
-
name: {
|
|
166
|
-
readOnly: true,
|
|
167
|
-
serializedName: "name",
|
|
168
|
-
type: {
|
|
169
|
-
name: "String"
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
key: {
|
|
173
|
-
readOnly: true,
|
|
174
|
-
serializedName: "key",
|
|
175
|
-
type: {
|
|
176
|
-
name: "String"
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
};
|
|
182
|
-
var Sku = {
|
|
183
|
-
serializedName: "Sku",
|
|
184
|
-
type: {
|
|
185
|
-
name: "Composite",
|
|
186
|
-
className: "Sku",
|
|
187
|
-
modelProperties: {
|
|
188
|
-
name: {
|
|
189
|
-
serializedName: "name",
|
|
190
|
-
type: {
|
|
191
|
-
name: "Enum",
|
|
192
|
-
allowedValues: [
|
|
193
|
-
"free",
|
|
194
|
-
"basic",
|
|
195
|
-
"standard",
|
|
196
|
-
"standard2",
|
|
197
|
-
"standard3"
|
|
198
|
-
]
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
};
|
|
204
|
-
var Resource = {
|
|
205
|
-
serializedName: "Resource",
|
|
206
|
-
type: {
|
|
207
|
-
name: "Composite",
|
|
208
|
-
className: "Resource",
|
|
209
|
-
modelProperties: {
|
|
210
|
-
id: {
|
|
211
|
-
readOnly: true,
|
|
212
|
-
serializedName: "id",
|
|
213
|
-
type: {
|
|
214
|
-
name: "String"
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
name: {
|
|
218
|
-
readOnly: true,
|
|
219
|
-
serializedName: "name",
|
|
220
|
-
type: {
|
|
221
|
-
name: "String"
|
|
222
|
-
}
|
|
223
|
-
},
|
|
224
|
-
type: {
|
|
225
|
-
readOnly: true,
|
|
226
|
-
serializedName: "type",
|
|
227
|
-
type: {
|
|
228
|
-
name: "String"
|
|
229
|
-
}
|
|
230
|
-
},
|
|
231
|
-
location: {
|
|
232
|
-
serializedName: "location",
|
|
233
|
-
type: {
|
|
234
|
-
name: "String"
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
|
-
tags: {
|
|
238
|
-
serializedName: "tags",
|
|
239
|
-
type: {
|
|
240
|
-
name: "Dictionary",
|
|
241
|
-
value: {
|
|
242
|
-
type: {
|
|
243
|
-
name: "String"
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
},
|
|
248
|
-
identity: {
|
|
249
|
-
serializedName: "identity",
|
|
250
|
-
type: {
|
|
251
|
-
name: "Composite",
|
|
252
|
-
className: "Identity"
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
};
|
|
258
|
-
var SearchService = {
|
|
259
|
-
serializedName: "SearchService",
|
|
260
|
-
type: {
|
|
261
|
-
name: "Composite",
|
|
262
|
-
className: "SearchService",
|
|
263
|
-
modelProperties: __assign({}, Resource.type.modelProperties, { replicaCount: {
|
|
264
|
-
serializedName: "properties.replicaCount",
|
|
265
|
-
defaultValue: 1,
|
|
266
|
-
constraints: {
|
|
267
|
-
InclusiveMaximum: 12,
|
|
268
|
-
InclusiveMinimum: 1
|
|
269
|
-
},
|
|
270
|
-
type: {
|
|
271
|
-
name: "Number"
|
|
272
|
-
}
|
|
273
|
-
}, partitionCount: {
|
|
274
|
-
serializedName: "properties.partitionCount",
|
|
275
|
-
defaultValue: 1,
|
|
276
|
-
constraints: {
|
|
277
|
-
InclusiveMaximum: 12,
|
|
278
|
-
InclusiveMinimum: 1
|
|
279
|
-
},
|
|
280
|
-
type: {
|
|
281
|
-
name: "Number"
|
|
282
|
-
}
|
|
283
|
-
}, hostingMode: {
|
|
284
|
-
serializedName: "properties.hostingMode",
|
|
285
|
-
defaultValue: 'default',
|
|
286
|
-
type: {
|
|
287
|
-
name: "Enum",
|
|
288
|
-
allowedValues: [
|
|
289
|
-
"default",
|
|
290
|
-
"highDensity"
|
|
291
|
-
]
|
|
292
|
-
}
|
|
293
|
-
}, status: {
|
|
294
|
-
readOnly: true,
|
|
295
|
-
serializedName: "properties.status",
|
|
296
|
-
type: {
|
|
297
|
-
name: "Enum",
|
|
298
|
-
allowedValues: [
|
|
299
|
-
"running",
|
|
300
|
-
"provisioning",
|
|
301
|
-
"deleting",
|
|
302
|
-
"degraded",
|
|
303
|
-
"disabled",
|
|
304
|
-
"error"
|
|
305
|
-
]
|
|
306
|
-
}
|
|
307
|
-
}, statusDetails: {
|
|
308
|
-
readOnly: true,
|
|
309
|
-
serializedName: "properties.statusDetails",
|
|
310
|
-
type: {
|
|
311
|
-
name: "String"
|
|
312
|
-
}
|
|
313
|
-
}, provisioningState: {
|
|
314
|
-
readOnly: true,
|
|
315
|
-
serializedName: "properties.provisioningState",
|
|
316
|
-
type: {
|
|
317
|
-
name: "Enum",
|
|
318
|
-
allowedValues: [
|
|
319
|
-
"succeeded",
|
|
320
|
-
"provisioning",
|
|
321
|
-
"failed"
|
|
322
|
-
]
|
|
323
|
-
}
|
|
324
|
-
}, sku: {
|
|
325
|
-
serializedName: "sku",
|
|
326
|
-
type: {
|
|
327
|
-
name: "Composite",
|
|
328
|
-
className: "Sku"
|
|
329
|
-
}
|
|
330
|
-
} })
|
|
331
|
-
}
|
|
332
|
-
};
|
|
333
|
-
var Identity = {
|
|
334
|
-
serializedName: "Identity",
|
|
335
|
-
type: {
|
|
336
|
-
name: "Composite",
|
|
337
|
-
className: "Identity",
|
|
338
|
-
modelProperties: {
|
|
339
|
-
principalId: {
|
|
340
|
-
readOnly: true,
|
|
341
|
-
serializedName: "principalId",
|
|
342
|
-
type: {
|
|
343
|
-
name: "String"
|
|
344
|
-
}
|
|
345
|
-
},
|
|
346
|
-
tenantId: {
|
|
347
|
-
readOnly: true,
|
|
348
|
-
serializedName: "tenantId",
|
|
349
|
-
type: {
|
|
350
|
-
name: "String"
|
|
351
|
-
}
|
|
352
|
-
},
|
|
353
|
-
type: {
|
|
354
|
-
required: true,
|
|
355
|
-
isConstant: true,
|
|
356
|
-
serializedName: "type",
|
|
357
|
-
defaultValue: 'SystemAssigned',
|
|
358
|
-
type: {
|
|
359
|
-
name: "String"
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
};
|
|
365
|
-
var OperationDisplay = {
|
|
366
|
-
serializedName: "Operation_display",
|
|
367
|
-
type: {
|
|
368
|
-
name: "Composite",
|
|
369
|
-
className: "OperationDisplay",
|
|
370
|
-
modelProperties: {
|
|
371
|
-
provider: {
|
|
372
|
-
readOnly: true,
|
|
373
|
-
serializedName: "provider",
|
|
374
|
-
type: {
|
|
375
|
-
name: "String"
|
|
376
|
-
}
|
|
377
|
-
},
|
|
378
|
-
operation: {
|
|
379
|
-
readOnly: true,
|
|
380
|
-
serializedName: "operation",
|
|
381
|
-
type: {
|
|
382
|
-
name: "String"
|
|
383
|
-
}
|
|
384
|
-
},
|
|
385
|
-
resource: {
|
|
386
|
-
readOnly: true,
|
|
387
|
-
serializedName: "resource",
|
|
388
|
-
type: {
|
|
389
|
-
name: "String"
|
|
390
|
-
}
|
|
391
|
-
},
|
|
392
|
-
description: {
|
|
393
|
-
readOnly: true,
|
|
394
|
-
serializedName: "description",
|
|
395
|
-
type: {
|
|
396
|
-
name: "String"
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
};
|
|
402
|
-
var Operation = {
|
|
403
|
-
serializedName: "Operation",
|
|
404
|
-
type: {
|
|
405
|
-
name: "Composite",
|
|
406
|
-
className: "Operation",
|
|
407
|
-
modelProperties: {
|
|
408
|
-
name: {
|
|
409
|
-
readOnly: true,
|
|
410
|
-
serializedName: "name",
|
|
411
|
-
type: {
|
|
412
|
-
name: "String"
|
|
413
|
-
}
|
|
414
|
-
},
|
|
415
|
-
display: {
|
|
416
|
-
readOnly: true,
|
|
417
|
-
serializedName: "display",
|
|
418
|
-
type: {
|
|
419
|
-
name: "Composite",
|
|
420
|
-
className: "OperationDisplay"
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
};
|
|
426
|
-
var SearchManagementRequestOptions = {
|
|
427
|
-
type: {
|
|
428
|
-
name: "Composite",
|
|
429
|
-
className: "SearchManagementRequestOptions",
|
|
430
|
-
modelProperties: {
|
|
431
|
-
clientRequestId: {
|
|
432
|
-
type: {
|
|
433
|
-
name: "Uuid"
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
};
|
|
439
|
-
var OperationListResult = {
|
|
440
|
-
serializedName: "OperationListResult",
|
|
441
|
-
type: {
|
|
442
|
-
name: "Composite",
|
|
443
|
-
className: "OperationListResult",
|
|
444
|
-
modelProperties: {
|
|
445
|
-
value: {
|
|
446
|
-
readOnly: true,
|
|
447
|
-
serializedName: "",
|
|
448
|
-
type: {
|
|
449
|
-
name: "Sequence",
|
|
450
|
-
element: {
|
|
451
|
-
type: {
|
|
452
|
-
name: "Composite",
|
|
453
|
-
className: "Operation"
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
};
|
|
461
|
-
var ListQueryKeysResult = {
|
|
462
|
-
serializedName: "ListQueryKeysResult",
|
|
463
|
-
type: {
|
|
464
|
-
name: "Composite",
|
|
465
|
-
className: "ListQueryKeysResult",
|
|
466
|
-
modelProperties: {
|
|
467
|
-
value: {
|
|
468
|
-
readOnly: true,
|
|
469
|
-
serializedName: "",
|
|
470
|
-
type: {
|
|
471
|
-
name: "Sequence",
|
|
472
|
-
element: {
|
|
473
|
-
type: {
|
|
474
|
-
name: "Composite",
|
|
475
|
-
className: "QueryKey"
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
};
|
|
483
|
-
var SearchServiceListResult = {
|
|
484
|
-
serializedName: "SearchServiceListResult",
|
|
485
|
-
type: {
|
|
486
|
-
name: "Composite",
|
|
487
|
-
className: "SearchServiceListResult",
|
|
488
|
-
modelProperties: {
|
|
489
|
-
value: {
|
|
490
|
-
readOnly: true,
|
|
491
|
-
serializedName: "",
|
|
492
|
-
type: {
|
|
493
|
-
name: "Sequence",
|
|
494
|
-
element: {
|
|
495
|
-
type: {
|
|
496
|
-
name: "Composite",
|
|
497
|
-
className: "SearchService"
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
};
|
|
505
|
-
|
|
506
|
-
var mappers = /*#__PURE__*/Object.freeze({
|
|
507
|
-
CloudError: CloudError,
|
|
508
|
-
BaseResource: BaseResource,
|
|
509
|
-
CheckNameAvailabilityInput: CheckNameAvailabilityInput,
|
|
510
|
-
CheckNameAvailabilityOutput: CheckNameAvailabilityOutput,
|
|
511
|
-
AdminKeyResult: AdminKeyResult,
|
|
512
|
-
QueryKey: QueryKey,
|
|
513
|
-
Sku: Sku,
|
|
514
|
-
Resource: Resource,
|
|
515
|
-
SearchService: SearchService,
|
|
516
|
-
Identity: Identity,
|
|
517
|
-
OperationDisplay: OperationDisplay,
|
|
518
|
-
Operation: Operation,
|
|
519
|
-
SearchManagementRequestOptions: SearchManagementRequestOptions,
|
|
520
|
-
OperationListResult: OperationListResult,
|
|
521
|
-
ListQueryKeysResult: ListQueryKeysResult,
|
|
522
|
-
SearchServiceListResult: SearchServiceListResult
|
|
523
|
-
});
|
|
524
|
-
|
|
525
|
-
/*
|
|
526
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
527
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
528
|
-
* license information.
|
|
529
|
-
*
|
|
530
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
531
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
532
|
-
* regenerated.
|
|
533
|
-
*/
|
|
534
|
-
|
|
535
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
|
536
|
-
OperationListResult: OperationListResult,
|
|
537
|
-
Operation: Operation,
|
|
538
|
-
OperationDisplay: OperationDisplay,
|
|
539
|
-
CloudError: CloudError
|
|
540
|
-
});
|
|
541
|
-
|
|
542
|
-
/*
|
|
543
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
544
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
545
|
-
* license information.
|
|
546
|
-
*
|
|
547
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
548
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
549
|
-
* regenerated.
|
|
550
|
-
*/
|
|
551
|
-
var acceptLanguage = {
|
|
552
|
-
parameterPath: "acceptLanguage",
|
|
553
|
-
mapper: {
|
|
554
|
-
serializedName: "accept-language",
|
|
555
|
-
defaultValue: 'en-US',
|
|
556
|
-
type: {
|
|
557
|
-
name: "String"
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
};
|
|
561
|
-
var apiVersion = {
|
|
562
|
-
parameterPath: "apiVersion",
|
|
563
|
-
mapper: {
|
|
564
|
-
required: true,
|
|
565
|
-
serializedName: "api-version",
|
|
566
|
-
type: {
|
|
567
|
-
name: "String"
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
};
|
|
571
|
-
var clientRequestId = {
|
|
572
|
-
parameterPath: [
|
|
573
|
-
"options",
|
|
574
|
-
"searchManagementRequestOptions",
|
|
575
|
-
"clientRequestId"
|
|
576
|
-
],
|
|
577
|
-
mapper: {
|
|
578
|
-
serializedName: "x-ms-client-request-id",
|
|
579
|
-
type: {
|
|
580
|
-
name: "Uuid"
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
};
|
|
584
|
-
var key = {
|
|
585
|
-
parameterPath: "key",
|
|
586
|
-
mapper: {
|
|
587
|
-
required: true,
|
|
588
|
-
serializedName: "key",
|
|
589
|
-
type: {
|
|
590
|
-
name: "String"
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
};
|
|
594
|
-
var keyKind = {
|
|
595
|
-
parameterPath: "keyKind",
|
|
596
|
-
mapper: {
|
|
597
|
-
required: true,
|
|
598
|
-
serializedName: "keyKind",
|
|
599
|
-
type: {
|
|
600
|
-
name: "Enum",
|
|
601
|
-
allowedValues: [
|
|
602
|
-
"primary",
|
|
603
|
-
"secondary"
|
|
604
|
-
]
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
};
|
|
608
|
-
var name = {
|
|
609
|
-
parameterPath: "name",
|
|
610
|
-
mapper: {
|
|
611
|
-
required: true,
|
|
612
|
-
serializedName: "name",
|
|
613
|
-
type: {
|
|
614
|
-
name: "String"
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
};
|
|
618
|
-
var resourceGroupName = {
|
|
619
|
-
parameterPath: "resourceGroupName",
|
|
620
|
-
mapper: {
|
|
621
|
-
required: true,
|
|
622
|
-
serializedName: "resourceGroupName",
|
|
623
|
-
type: {
|
|
624
|
-
name: "String"
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
};
|
|
628
|
-
var searchServiceName = {
|
|
629
|
-
parameterPath: "searchServiceName",
|
|
630
|
-
mapper: {
|
|
631
|
-
required: true,
|
|
632
|
-
serializedName: "searchServiceName",
|
|
633
|
-
type: {
|
|
634
|
-
name: "String"
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
};
|
|
638
|
-
var subscriptionId = {
|
|
639
|
-
parameterPath: "subscriptionId",
|
|
640
|
-
mapper: {
|
|
641
|
-
required: true,
|
|
642
|
-
serializedName: "subscriptionId",
|
|
643
|
-
type: {
|
|
644
|
-
name: "String"
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
};
|
|
648
|
-
|
|
649
|
-
/*
|
|
650
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
651
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
652
|
-
* license information.
|
|
653
|
-
*
|
|
654
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
655
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
656
|
-
* regenerated.
|
|
657
|
-
*/
|
|
658
|
-
/** Class representing a Operations. */
|
|
659
|
-
var Operations = /** @class */ (function () {
|
|
660
|
-
/**
|
|
661
|
-
* Create a Operations.
|
|
662
|
-
* @param {SearchManagementClientContext} client Reference to the service client.
|
|
663
|
-
*/
|
|
664
|
-
function Operations(client) {
|
|
665
|
-
this.client = client;
|
|
666
|
-
}
|
|
667
|
-
Operations.prototype.list = function (options, callback) {
|
|
668
|
-
return this.client.sendOperationRequest({
|
|
669
|
-
options: options
|
|
670
|
-
}, listOperationSpec, callback);
|
|
671
|
-
};
|
|
672
|
-
return Operations;
|
|
673
|
-
}());
|
|
674
|
-
// Operation Specifications
|
|
675
|
-
var serializer = new msRest.Serializer(Mappers);
|
|
676
|
-
var listOperationSpec = {
|
|
677
|
-
httpMethod: "GET",
|
|
678
|
-
path: "providers/Microsoft.Search/operations",
|
|
679
|
-
queryParameters: [
|
|
680
|
-
apiVersion
|
|
681
|
-
],
|
|
682
|
-
headerParameters: [
|
|
683
|
-
acceptLanguage
|
|
684
|
-
],
|
|
685
|
-
responses: {
|
|
686
|
-
200: {
|
|
687
|
-
bodyMapper: OperationListResult
|
|
688
|
-
},
|
|
689
|
-
default: {
|
|
690
|
-
bodyMapper: CloudError
|
|
691
|
-
}
|
|
692
|
-
},
|
|
693
|
-
serializer: serializer
|
|
694
|
-
};
|
|
695
|
-
|
|
696
|
-
/*
|
|
697
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
698
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
699
|
-
* license information.
|
|
700
|
-
*
|
|
701
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
702
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
703
|
-
* regenerated.
|
|
704
|
-
*/
|
|
705
|
-
|
|
706
|
-
var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
707
|
-
AdminKeyResult: AdminKeyResult,
|
|
708
|
-
CloudError: CloudError
|
|
709
|
-
});
|
|
710
|
-
|
|
711
|
-
/*
|
|
712
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
713
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
714
|
-
* license information.
|
|
715
|
-
*
|
|
716
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
717
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
718
|
-
* regenerated.
|
|
719
|
-
*/
|
|
720
|
-
/** Class representing a AdminKeys. */
|
|
721
|
-
var AdminKeys = /** @class */ (function () {
|
|
722
|
-
/**
|
|
723
|
-
* Create a AdminKeys.
|
|
724
|
-
* @param {SearchManagementClientContext} client Reference to the service client.
|
|
725
|
-
*/
|
|
726
|
-
function AdminKeys(client) {
|
|
727
|
-
this.client = client;
|
|
728
|
-
}
|
|
729
|
-
AdminKeys.prototype.get = function (resourceGroupName$$1, searchServiceName$$1, options, callback) {
|
|
730
|
-
return this.client.sendOperationRequest({
|
|
731
|
-
resourceGroupName: resourceGroupName$$1,
|
|
732
|
-
searchServiceName: searchServiceName$$1,
|
|
733
|
-
options: options
|
|
734
|
-
}, getOperationSpec, callback);
|
|
735
|
-
};
|
|
736
|
-
AdminKeys.prototype.regenerate = function (resourceGroupName$$1, searchServiceName$$1, keyKind$$1, options, callback) {
|
|
737
|
-
return this.client.sendOperationRequest({
|
|
738
|
-
resourceGroupName: resourceGroupName$$1,
|
|
739
|
-
searchServiceName: searchServiceName$$1,
|
|
740
|
-
keyKind: keyKind$$1,
|
|
741
|
-
options: options
|
|
742
|
-
}, regenerateOperationSpec, callback);
|
|
743
|
-
};
|
|
744
|
-
return AdminKeys;
|
|
745
|
-
}());
|
|
746
|
-
// Operation Specifications
|
|
747
|
-
var serializer$1 = new msRest.Serializer(Mappers$1);
|
|
748
|
-
var getOperationSpec = {
|
|
749
|
-
httpMethod: "POST",
|
|
750
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/listAdminKeys",
|
|
751
|
-
urlParameters: [
|
|
752
|
-
resourceGroupName,
|
|
753
|
-
searchServiceName,
|
|
754
|
-
subscriptionId
|
|
755
|
-
],
|
|
756
|
-
queryParameters: [
|
|
757
|
-
apiVersion
|
|
758
|
-
],
|
|
759
|
-
headerParameters: [
|
|
760
|
-
acceptLanguage,
|
|
761
|
-
clientRequestId
|
|
762
|
-
],
|
|
763
|
-
responses: {
|
|
764
|
-
200: {
|
|
765
|
-
bodyMapper: AdminKeyResult
|
|
766
|
-
},
|
|
767
|
-
default: {
|
|
768
|
-
bodyMapper: CloudError
|
|
769
|
-
}
|
|
770
|
-
},
|
|
771
|
-
serializer: serializer$1
|
|
772
|
-
};
|
|
773
|
-
var regenerateOperationSpec = {
|
|
774
|
-
httpMethod: "POST",
|
|
775
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/regenerateAdminKey/{keyKind}",
|
|
776
|
-
urlParameters: [
|
|
777
|
-
resourceGroupName,
|
|
778
|
-
searchServiceName,
|
|
779
|
-
keyKind,
|
|
780
|
-
subscriptionId
|
|
781
|
-
],
|
|
782
|
-
queryParameters: [
|
|
783
|
-
apiVersion
|
|
784
|
-
],
|
|
785
|
-
headerParameters: [
|
|
786
|
-
acceptLanguage,
|
|
787
|
-
clientRequestId
|
|
788
|
-
],
|
|
789
|
-
responses: {
|
|
790
|
-
200: {
|
|
791
|
-
bodyMapper: AdminKeyResult
|
|
792
|
-
},
|
|
793
|
-
default: {
|
|
794
|
-
bodyMapper: CloudError
|
|
795
|
-
}
|
|
796
|
-
},
|
|
797
|
-
serializer: serializer$1
|
|
798
|
-
};
|
|
799
|
-
|
|
800
|
-
/*
|
|
801
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
802
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
803
|
-
* license information.
|
|
804
|
-
*
|
|
805
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
806
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
807
|
-
* regenerated.
|
|
808
|
-
*/
|
|
809
|
-
|
|
810
|
-
var Mappers$2 = /*#__PURE__*/Object.freeze({
|
|
811
|
-
QueryKey: QueryKey,
|
|
812
|
-
CloudError: CloudError,
|
|
813
|
-
ListQueryKeysResult: ListQueryKeysResult
|
|
814
|
-
});
|
|
815
|
-
|
|
816
|
-
/*
|
|
817
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
818
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
819
|
-
* license information.
|
|
820
|
-
*
|
|
821
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
822
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
823
|
-
* regenerated.
|
|
824
|
-
*/
|
|
825
|
-
/** Class representing a QueryKeys. */
|
|
826
|
-
var QueryKeys = /** @class */ (function () {
|
|
827
|
-
/**
|
|
828
|
-
* Create a QueryKeys.
|
|
829
|
-
* @param {SearchManagementClientContext} client Reference to the service client.
|
|
830
|
-
*/
|
|
831
|
-
function QueryKeys(client) {
|
|
832
|
-
this.client = client;
|
|
833
|
-
}
|
|
834
|
-
QueryKeys.prototype.create = function (resourceGroupName$$1, searchServiceName$$1, name$$1, options, callback) {
|
|
835
|
-
return this.client.sendOperationRequest({
|
|
836
|
-
resourceGroupName: resourceGroupName$$1,
|
|
837
|
-
searchServiceName: searchServiceName$$1,
|
|
838
|
-
name: name$$1,
|
|
839
|
-
options: options
|
|
840
|
-
}, createOperationSpec, callback);
|
|
841
|
-
};
|
|
842
|
-
QueryKeys.prototype.listBySearchService = function (resourceGroupName$$1, searchServiceName$$1, options, callback) {
|
|
843
|
-
return this.client.sendOperationRequest({
|
|
844
|
-
resourceGroupName: resourceGroupName$$1,
|
|
845
|
-
searchServiceName: searchServiceName$$1,
|
|
846
|
-
options: options
|
|
847
|
-
}, listBySearchServiceOperationSpec, callback);
|
|
848
|
-
};
|
|
849
|
-
QueryKeys.prototype.deleteMethod = function (resourceGroupName$$1, searchServiceName$$1, key$$1, options, callback) {
|
|
850
|
-
return this.client.sendOperationRequest({
|
|
851
|
-
resourceGroupName: resourceGroupName$$1,
|
|
852
|
-
searchServiceName: searchServiceName$$1,
|
|
853
|
-
key: key$$1,
|
|
854
|
-
options: options
|
|
855
|
-
}, deleteMethodOperationSpec, callback);
|
|
856
|
-
};
|
|
857
|
-
return QueryKeys;
|
|
858
|
-
}());
|
|
859
|
-
// Operation Specifications
|
|
860
|
-
var serializer$2 = new msRest.Serializer(Mappers$2);
|
|
861
|
-
var createOperationSpec = {
|
|
862
|
-
httpMethod: "POST",
|
|
863
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/createQueryKey/{name}",
|
|
864
|
-
urlParameters: [
|
|
865
|
-
resourceGroupName,
|
|
866
|
-
searchServiceName,
|
|
867
|
-
name,
|
|
868
|
-
subscriptionId
|
|
869
|
-
],
|
|
870
|
-
queryParameters: [
|
|
871
|
-
apiVersion
|
|
872
|
-
],
|
|
873
|
-
headerParameters: [
|
|
874
|
-
acceptLanguage,
|
|
875
|
-
clientRequestId
|
|
876
|
-
],
|
|
877
|
-
responses: {
|
|
878
|
-
200: {
|
|
879
|
-
bodyMapper: QueryKey
|
|
880
|
-
},
|
|
881
|
-
default: {
|
|
882
|
-
bodyMapper: CloudError
|
|
883
|
-
}
|
|
884
|
-
},
|
|
885
|
-
serializer: serializer$2
|
|
886
|
-
};
|
|
887
|
-
var listBySearchServiceOperationSpec = {
|
|
888
|
-
httpMethod: "GET",
|
|
889
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/listQueryKeys",
|
|
890
|
-
urlParameters: [
|
|
891
|
-
resourceGroupName,
|
|
892
|
-
searchServiceName,
|
|
893
|
-
subscriptionId
|
|
894
|
-
],
|
|
895
|
-
queryParameters: [
|
|
896
|
-
apiVersion
|
|
897
|
-
],
|
|
898
|
-
headerParameters: [
|
|
899
|
-
acceptLanguage,
|
|
900
|
-
clientRequestId
|
|
901
|
-
],
|
|
902
|
-
responses: {
|
|
903
|
-
200: {
|
|
904
|
-
bodyMapper: ListQueryKeysResult
|
|
905
|
-
},
|
|
906
|
-
default: {
|
|
907
|
-
bodyMapper: CloudError
|
|
908
|
-
}
|
|
909
|
-
},
|
|
910
|
-
serializer: serializer$2
|
|
911
|
-
};
|
|
912
|
-
var deleteMethodOperationSpec = {
|
|
913
|
-
httpMethod: "DELETE",
|
|
914
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/deleteQueryKey/{key}",
|
|
915
|
-
urlParameters: [
|
|
916
|
-
resourceGroupName,
|
|
917
|
-
searchServiceName,
|
|
918
|
-
key,
|
|
919
|
-
subscriptionId
|
|
920
|
-
],
|
|
921
|
-
queryParameters: [
|
|
922
|
-
apiVersion
|
|
923
|
-
],
|
|
924
|
-
headerParameters: [
|
|
925
|
-
acceptLanguage,
|
|
926
|
-
clientRequestId
|
|
927
|
-
],
|
|
928
|
-
responses: {
|
|
929
|
-
200: {},
|
|
930
|
-
204: {},
|
|
931
|
-
404: {},
|
|
932
|
-
default: {
|
|
933
|
-
bodyMapper: CloudError
|
|
934
|
-
}
|
|
935
|
-
},
|
|
936
|
-
serializer: serializer$2
|
|
937
|
-
};
|
|
938
|
-
|
|
939
|
-
/*
|
|
940
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
941
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
942
|
-
* license information.
|
|
943
|
-
*
|
|
944
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
945
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
946
|
-
* regenerated.
|
|
947
|
-
*/
|
|
948
|
-
|
|
949
|
-
var Mappers$3 = /*#__PURE__*/Object.freeze({
|
|
950
|
-
SearchService: SearchService,
|
|
951
|
-
Resource: Resource,
|
|
952
|
-
BaseResource: BaseResource,
|
|
953
|
-
Identity: Identity,
|
|
954
|
-
Sku: Sku,
|
|
955
|
-
CloudError: CloudError,
|
|
956
|
-
SearchServiceListResult: SearchServiceListResult,
|
|
957
|
-
CheckNameAvailabilityInput: CheckNameAvailabilityInput,
|
|
958
|
-
CheckNameAvailabilityOutput: CheckNameAvailabilityOutput
|
|
959
|
-
});
|
|
960
|
-
|
|
961
|
-
/*
|
|
962
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
963
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
964
|
-
* license information.
|
|
965
|
-
*
|
|
966
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
967
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
968
|
-
* regenerated.
|
|
969
|
-
*/
|
|
970
|
-
/** Class representing a Services. */
|
|
971
|
-
var Services = /** @class */ (function () {
|
|
972
|
-
/**
|
|
973
|
-
* Create a Services.
|
|
974
|
-
* @param {SearchManagementClientContext} client Reference to the service client.
|
|
975
|
-
*/
|
|
976
|
-
function Services(client) {
|
|
977
|
-
this.client = client;
|
|
978
|
-
}
|
|
979
|
-
/**
|
|
980
|
-
* Creates or updates a Search service in the given resource group. If the Search service already
|
|
981
|
-
* exists, all properties will be updated with the given values.
|
|
982
|
-
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
983
|
-
* obtain this value from the Azure Resource Manager API or the portal.
|
|
984
|
-
* @param searchServiceName The name of the Azure Search service to create or update. Search
|
|
985
|
-
* service names must only contain lowercase letters, digits or dashes, cannot use dash as the
|
|
986
|
-
* first two or last one characters, cannot contain consecutive dashes, and must be between 2 and
|
|
987
|
-
* 60 characters in length. Search service names must be globally unique since they are part of the
|
|
988
|
-
* service URI (https://<name>.search.windows.net). You cannot change the service name after the
|
|
989
|
-
* service is created.
|
|
990
|
-
* @param service The definition of the Search service to create or update.
|
|
991
|
-
* @param [options] The optional parameters
|
|
992
|
-
* @returns Promise<Models.ServicesCreateOrUpdateResponse>
|
|
993
|
-
*/
|
|
994
|
-
Services.prototype.createOrUpdate = function (resourceGroupName$$1, searchServiceName$$1, service, options) {
|
|
995
|
-
return this.beginCreateOrUpdate(resourceGroupName$$1, searchServiceName$$1, service, options)
|
|
996
|
-
.then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
|
|
997
|
-
};
|
|
998
|
-
Services.prototype.update = function (resourceGroupName$$1, searchServiceName$$1, service, options, callback) {
|
|
999
|
-
return this.client.sendOperationRequest({
|
|
1000
|
-
resourceGroupName: resourceGroupName$$1,
|
|
1001
|
-
searchServiceName: searchServiceName$$1,
|
|
1002
|
-
service: service,
|
|
1003
|
-
options: options
|
|
1004
|
-
}, updateOperationSpec, callback);
|
|
1005
|
-
};
|
|
1006
|
-
Services.prototype.get = function (resourceGroupName$$1, searchServiceName$$1, options, callback) {
|
|
1007
|
-
return this.client.sendOperationRequest({
|
|
1008
|
-
resourceGroupName: resourceGroupName$$1,
|
|
1009
|
-
searchServiceName: searchServiceName$$1,
|
|
1010
|
-
options: options
|
|
1011
|
-
}, getOperationSpec$1, callback);
|
|
1012
|
-
};
|
|
1013
|
-
Services.prototype.deleteMethod = function (resourceGroupName$$1, searchServiceName$$1, options, callback) {
|
|
1014
|
-
return this.client.sendOperationRequest({
|
|
1015
|
-
resourceGroupName: resourceGroupName$$1,
|
|
1016
|
-
searchServiceName: searchServiceName$$1,
|
|
1017
|
-
options: options
|
|
1018
|
-
}, deleteMethodOperationSpec$1, callback);
|
|
1019
|
-
};
|
|
1020
|
-
Services.prototype.listByResourceGroup = function (resourceGroupName$$1, options, callback) {
|
|
1021
|
-
return this.client.sendOperationRequest({
|
|
1022
|
-
resourceGroupName: resourceGroupName$$1,
|
|
1023
|
-
options: options
|
|
1024
|
-
}, listByResourceGroupOperationSpec, callback);
|
|
1025
|
-
};
|
|
1026
|
-
Services.prototype.checkNameAvailability = function (name$$1, options, callback) {
|
|
1027
|
-
return this.client.sendOperationRequest({
|
|
1028
|
-
name: name$$1,
|
|
1029
|
-
options: options
|
|
1030
|
-
}, checkNameAvailabilityOperationSpec, callback);
|
|
1031
|
-
};
|
|
1032
|
-
/**
|
|
1033
|
-
* Creates or updates a Search service in the given resource group. If the Search service already
|
|
1034
|
-
* exists, all properties will be updated with the given values.
|
|
1035
|
-
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
1036
|
-
* obtain this value from the Azure Resource Manager API or the portal.
|
|
1037
|
-
* @param searchServiceName The name of the Azure Search service to create or update. Search
|
|
1038
|
-
* service names must only contain lowercase letters, digits or dashes, cannot use dash as the
|
|
1039
|
-
* first two or last one characters, cannot contain consecutive dashes, and must be between 2 and
|
|
1040
|
-
* 60 characters in length. Search service names must be globally unique since they are part of the
|
|
1041
|
-
* service URI (https://<name>.search.windows.net). You cannot change the service name after the
|
|
1042
|
-
* service is created.
|
|
1043
|
-
* @param service The definition of the Search service to create or update.
|
|
1044
|
-
* @param [options] The optional parameters
|
|
1045
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
1046
|
-
*/
|
|
1047
|
-
Services.prototype.beginCreateOrUpdate = function (resourceGroupName$$1, searchServiceName$$1, service, options) {
|
|
1048
|
-
return this.client.sendLRORequest({
|
|
1049
|
-
resourceGroupName: resourceGroupName$$1,
|
|
1050
|
-
searchServiceName: searchServiceName$$1,
|
|
1051
|
-
service: service,
|
|
1052
|
-
options: options
|
|
1053
|
-
}, beginCreateOrUpdateOperationSpec, options);
|
|
1054
|
-
};
|
|
1055
|
-
return Services;
|
|
1056
|
-
}());
|
|
1057
|
-
// Operation Specifications
|
|
1058
|
-
var serializer$3 = new msRest.Serializer(Mappers$3);
|
|
1059
|
-
var updateOperationSpec = {
|
|
1060
|
-
httpMethod: "PATCH",
|
|
1061
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
|
|
1062
|
-
urlParameters: [
|
|
1063
|
-
resourceGroupName,
|
|
1064
|
-
searchServiceName,
|
|
1065
|
-
subscriptionId
|
|
1066
|
-
],
|
|
1067
|
-
queryParameters: [
|
|
1068
|
-
apiVersion
|
|
1069
|
-
],
|
|
1070
|
-
headerParameters: [
|
|
1071
|
-
acceptLanguage,
|
|
1072
|
-
clientRequestId
|
|
1073
|
-
],
|
|
1074
|
-
requestBody: {
|
|
1075
|
-
parameterPath: "service",
|
|
1076
|
-
mapper: __assign({}, SearchService, { required: true })
|
|
1077
|
-
},
|
|
1078
|
-
responses: {
|
|
1079
|
-
200: {
|
|
1080
|
-
bodyMapper: SearchService
|
|
1081
|
-
},
|
|
1082
|
-
default: {
|
|
1083
|
-
bodyMapper: CloudError
|
|
1084
|
-
}
|
|
1085
|
-
},
|
|
1086
|
-
serializer: serializer$3
|
|
1087
|
-
};
|
|
1088
|
-
var getOperationSpec$1 = {
|
|
1089
|
-
httpMethod: "GET",
|
|
1090
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
|
|
1091
|
-
urlParameters: [
|
|
1092
|
-
resourceGroupName,
|
|
1093
|
-
searchServiceName,
|
|
1094
|
-
subscriptionId
|
|
1095
|
-
],
|
|
1096
|
-
queryParameters: [
|
|
1097
|
-
apiVersion
|
|
1098
|
-
],
|
|
1099
|
-
headerParameters: [
|
|
1100
|
-
acceptLanguage,
|
|
1101
|
-
clientRequestId
|
|
1102
|
-
],
|
|
1103
|
-
responses: {
|
|
1104
|
-
200: {
|
|
1105
|
-
bodyMapper: SearchService
|
|
1106
|
-
},
|
|
1107
|
-
default: {
|
|
1108
|
-
bodyMapper: CloudError
|
|
1109
|
-
}
|
|
1110
|
-
},
|
|
1111
|
-
serializer: serializer$3
|
|
1112
|
-
};
|
|
1113
|
-
var deleteMethodOperationSpec$1 = {
|
|
1114
|
-
httpMethod: "DELETE",
|
|
1115
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
|
|
1116
|
-
urlParameters: [
|
|
1117
|
-
resourceGroupName,
|
|
1118
|
-
searchServiceName,
|
|
1119
|
-
subscriptionId
|
|
1120
|
-
],
|
|
1121
|
-
queryParameters: [
|
|
1122
|
-
apiVersion
|
|
1123
|
-
],
|
|
1124
|
-
headerParameters: [
|
|
1125
|
-
acceptLanguage,
|
|
1126
|
-
clientRequestId
|
|
1127
|
-
],
|
|
1128
|
-
responses: {
|
|
1129
|
-
200: {},
|
|
1130
|
-
204: {},
|
|
1131
|
-
404: {},
|
|
1132
|
-
default: {
|
|
1133
|
-
bodyMapper: CloudError
|
|
1134
|
-
}
|
|
1135
|
-
},
|
|
1136
|
-
serializer: serializer$3
|
|
1137
|
-
};
|
|
1138
|
-
var listByResourceGroupOperationSpec = {
|
|
1139
|
-
httpMethod: "GET",
|
|
1140
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices",
|
|
1141
|
-
urlParameters: [
|
|
1142
|
-
resourceGroupName,
|
|
1143
|
-
subscriptionId
|
|
1144
|
-
],
|
|
1145
|
-
queryParameters: [
|
|
1146
|
-
apiVersion
|
|
1147
|
-
],
|
|
1148
|
-
headerParameters: [
|
|
1149
|
-
acceptLanguage,
|
|
1150
|
-
clientRequestId
|
|
1151
|
-
],
|
|
1152
|
-
responses: {
|
|
1153
|
-
200: {
|
|
1154
|
-
bodyMapper: SearchServiceListResult
|
|
1155
|
-
},
|
|
1156
|
-
default: {
|
|
1157
|
-
bodyMapper: CloudError
|
|
1158
|
-
}
|
|
1159
|
-
},
|
|
1160
|
-
serializer: serializer$3
|
|
1161
|
-
};
|
|
1162
|
-
var checkNameAvailabilityOperationSpec = {
|
|
1163
|
-
httpMethod: "POST",
|
|
1164
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.Search/checkNameAvailability",
|
|
1165
|
-
urlParameters: [
|
|
1166
|
-
subscriptionId
|
|
1167
|
-
],
|
|
1168
|
-
queryParameters: [
|
|
1169
|
-
apiVersion
|
|
1170
|
-
],
|
|
1171
|
-
headerParameters: [
|
|
1172
|
-
acceptLanguage,
|
|
1173
|
-
clientRequestId
|
|
1174
|
-
],
|
|
1175
|
-
requestBody: {
|
|
1176
|
-
parameterPath: {
|
|
1177
|
-
name: "name"
|
|
1178
|
-
},
|
|
1179
|
-
mapper: __assign({}, CheckNameAvailabilityInput, { required: true })
|
|
1180
|
-
},
|
|
1181
|
-
responses: {
|
|
1182
|
-
200: {
|
|
1183
|
-
bodyMapper: CheckNameAvailabilityOutput
|
|
1184
|
-
},
|
|
1185
|
-
default: {
|
|
1186
|
-
bodyMapper: CloudError
|
|
1187
|
-
}
|
|
1188
|
-
},
|
|
1189
|
-
serializer: serializer$3
|
|
1190
|
-
};
|
|
1191
|
-
var beginCreateOrUpdateOperationSpec = {
|
|
1192
|
-
httpMethod: "PUT",
|
|
1193
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
|
|
1194
|
-
urlParameters: [
|
|
1195
|
-
resourceGroupName,
|
|
1196
|
-
searchServiceName,
|
|
1197
|
-
subscriptionId
|
|
1198
|
-
],
|
|
1199
|
-
queryParameters: [
|
|
1200
|
-
apiVersion
|
|
1201
|
-
],
|
|
1202
|
-
headerParameters: [
|
|
1203
|
-
acceptLanguage,
|
|
1204
|
-
clientRequestId
|
|
1205
|
-
],
|
|
1206
|
-
requestBody: {
|
|
1207
|
-
parameterPath: "service",
|
|
1208
|
-
mapper: __assign({}, SearchService, { required: true })
|
|
1209
|
-
},
|
|
1210
|
-
responses: {
|
|
1211
|
-
200: {
|
|
1212
|
-
bodyMapper: SearchService
|
|
1213
|
-
},
|
|
1214
|
-
201: {
|
|
1215
|
-
bodyMapper: SearchService
|
|
1216
|
-
},
|
|
1217
|
-
default: {
|
|
1218
|
-
bodyMapper: CloudError
|
|
1219
|
-
}
|
|
1220
|
-
},
|
|
1221
|
-
serializer: serializer$3
|
|
1222
|
-
};
|
|
1223
|
-
|
|
1224
|
-
/*
|
|
1225
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1226
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
1227
|
-
* license information.
|
|
1228
|
-
*
|
|
1229
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1230
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1231
|
-
* regenerated.
|
|
1232
|
-
*/
|
|
1233
|
-
|
|
1234
|
-
/*
|
|
1235
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1236
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
1237
|
-
* license information.
|
|
1238
|
-
*
|
|
1239
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1240
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1241
|
-
* regenerated.
|
|
1242
|
-
*/
|
|
1243
|
-
var packageName = "@azure/arm-search";
|
|
1244
|
-
var packageVersion = "0.1.0";
|
|
1245
|
-
var SearchManagementClientContext = /** @class */ (function (_super) {
|
|
1246
|
-
__extends(SearchManagementClientContext, _super);
|
|
1247
|
-
/**
|
|
1248
|
-
* Initializes a new instance of the SearchManagementClient class.
|
|
1249
|
-
* @param credentials Credentials needed for the client to connect to Azure.
|
|
1250
|
-
* @param subscriptionId The unique identifier for a Microsoft Azure subscription. You can obtain
|
|
1251
|
-
* this value from the Azure Resource Manager API or the portal.
|
|
1252
|
-
* @param [options] The parameter options
|
|
1253
|
-
*/
|
|
1254
|
-
function SearchManagementClientContext(credentials, subscriptionId, options) {
|
|
1255
|
-
var _this = this;
|
|
1256
|
-
if (credentials == undefined) {
|
|
1257
|
-
throw new Error('\'credentials\' cannot be null.');
|
|
1258
|
-
}
|
|
1259
|
-
if (subscriptionId == undefined) {
|
|
1260
|
-
throw new Error('\'subscriptionId\' cannot be null.');
|
|
1261
|
-
}
|
|
1262
|
-
if (!options) {
|
|
1263
|
-
options = {};
|
|
1264
|
-
}
|
|
1265
|
-
if (!options.userAgent) {
|
|
1266
|
-
var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
|
|
1267
|
-
options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
|
|
1268
|
-
}
|
|
1269
|
-
_this = _super.call(this, credentials, options) || this;
|
|
1270
|
-
_this.apiVersion = '2015-08-19';
|
|
1271
|
-
_this.acceptLanguage = 'en-US';
|
|
1272
|
-
_this.longRunningOperationRetryTimeout = 30;
|
|
1273
|
-
_this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
|
|
1274
|
-
_this.requestContentType = "application/json; charset=utf-8";
|
|
1275
|
-
_this.credentials = credentials;
|
|
1276
|
-
_this.subscriptionId = subscriptionId;
|
|
1277
|
-
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
|
|
1278
|
-
_this.acceptLanguage = options.acceptLanguage;
|
|
1279
|
-
}
|
|
1280
|
-
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
|
|
1281
|
-
_this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
|
|
1282
|
-
}
|
|
1283
|
-
return _this;
|
|
1284
|
-
}
|
|
1285
|
-
return SearchManagementClientContext;
|
|
1286
|
-
}(msRestAzure.AzureServiceClient));
|
|
1287
|
-
|
|
1288
|
-
/*
|
|
1289
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1290
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
1291
|
-
* license information.
|
|
1292
|
-
*
|
|
1293
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1294
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1295
|
-
* regenerated.
|
|
1296
|
-
*/
|
|
1297
|
-
var SearchManagementClient = /** @class */ (function (_super) {
|
|
1298
|
-
__extends(SearchManagementClient, _super);
|
|
1299
|
-
/**
|
|
1300
|
-
* Initializes a new instance of the SearchManagementClient class.
|
|
1301
|
-
* @param credentials Credentials needed for the client to connect to Azure.
|
|
1302
|
-
* @param subscriptionId The unique identifier for a Microsoft Azure subscription. You can obtain
|
|
1303
|
-
* this value from the Azure Resource Manager API or the portal.
|
|
1304
|
-
* @param [options] The parameter options
|
|
1305
|
-
*/
|
|
1306
|
-
function SearchManagementClient(credentials, subscriptionId, options) {
|
|
1307
|
-
var _this = _super.call(this, credentials, subscriptionId, options) || this;
|
|
1308
|
-
_this.operations = new Operations(_this);
|
|
1309
|
-
_this.adminKeys = new AdminKeys(_this);
|
|
1310
|
-
_this.queryKeys = new QueryKeys(_this);
|
|
1311
|
-
_this.services = new Services(_this);
|
|
1312
|
-
return _this;
|
|
1313
|
-
}
|
|
1314
|
-
return SearchManagementClient;
|
|
1315
|
-
}(SearchManagementClientContext));
|
|
1316
|
-
|
|
1317
|
-
exports.SearchManagementClient = SearchManagementClient;
|
|
1318
|
-
exports.SearchManagementClientContext = SearchManagementClientContext;
|
|
1319
|
-
exports.SearchManagementModels = index;
|
|
1320
|
-
exports.SearchManagementMappers = mappers;
|
|
1321
|
-
exports.Operations = Operations;
|
|
1322
|
-
exports.AdminKeys = AdminKeys;
|
|
1323
|
-
exports.QueryKeys = QueryKeys;
|
|
1324
|
-
exports.Services = Services;
|
|
1325
|
-
|
|
1326
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1327
|
-
|
|
1328
|
-
})));
|
|
1329
|
-
//# sourceMappingURL=arm-search.js.map
|