@azure/arm-search 3.3.0-beta.1 → 4.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 +62 -4
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/adminKeysGetSample.js +1 -1
- package/dist-esm/samples-dev/adminKeysRegenerateSample.js +1 -1
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.js +1 -1
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListByServiceSample.js +2 -2
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListByServiceSample.js.map +1 -1
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.js +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +2 -2
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListByServiceSample.js +2 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsListByServiceSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListSupportedSample.js +2 -2
- package/dist-esm/samples-dev/privateLinkResourcesListSupportedSample.js.map +1 -1
- package/dist-esm/samples-dev/queryKeysCreateSample.js +1 -1
- package/dist-esm/samples-dev/queryKeysDeleteSample.js +1 -1
- package/dist-esm/samples-dev/queryKeysListBySearchServiceSample.js +2 -2
- package/dist-esm/samples-dev/queryKeysListBySearchServiceSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.js +1 -1
- package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js +10 -10
- package/dist-esm/samples-dev/servicesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/servicesGetSample.js +1 -1
- package/dist-esm/samples-dev/servicesListByResourceGroupSample.js +2 -2
- package/dist-esm/samples-dev/servicesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesListBySubscriptionSample.js +2 -2
- package/dist-esm/samples-dev/servicesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesUpdateSample.js +10 -10
- package/dist-esm/samples-dev/sharedPrivateLinkResourcesCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/sharedPrivateLinkResourcesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/sharedPrivateLinkResourcesGetSample.js +1 -1
- package/dist-esm/samples-dev/sharedPrivateLinkResourcesListByServiceSample.js +2 -2
- package/dist-esm/samples-dev/sharedPrivateLinkResourcesListByServiceSample.js.map +1 -1
- package/dist-esm/samples-dev/usageBySubscriptionSkuSample.js +1 -1
- package/dist-esm/samples-dev/usagesListBySubscriptionSample.js +2 -2
- package/dist-esm/samples-dev/usagesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/src/index.d.ts +0 -1
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.d.ts +8 -5
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +2 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.js +2 -2
- package/dist-esm/src/models/parameters.js +1 -1
- package/dist-esm/src/searchManagementClient.js +2 -2
- package/dist-esm/test/search_examples.d.ts.map +1 -1
- package/dist-esm/test/search_examples.js +43 -19
- package/dist-esm/test/search_examples.js.map +1 -1
- package/package.json +7 -7
- package/review/arm-search.api.md +2 -1
- package/src/models/index.ts +7 -4
- package/src/models/mappers.ts +2 -2
- package/src/models/parameters.ts +1 -1
- package/src/searchManagementClient.ts +2 -2
- package/types/arm-search.d.ts +8 -5
- package/types/tsdoc-metadata.json +1 -1
|
@@ -11,9 +11,6 @@ import { createTestCredential } from "@azure-tools/test-credential";
|
|
|
11
11
|
import { assert } from "chai";
|
|
12
12
|
import { SearchManagementClient } from "../src/searchManagementClient";
|
|
13
13
|
const replaceableVariables = {
|
|
14
|
-
AZURE_CLIENT_ID: "azure_client_id",
|
|
15
|
-
AZURE_CLIENT_SECRET: "azure_client_secret",
|
|
16
|
-
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
|
17
14
|
SUBSCRIPTION_ID: "azure_subscription_id"
|
|
18
15
|
};
|
|
19
16
|
const recorderOptions = {
|
|
@@ -29,7 +26,11 @@ const recorderOptions = {
|
|
|
29
26
|
value: `fakeKey`,
|
|
30
27
|
target: `[a-z0-9_A-z]{40,100}`
|
|
31
28
|
}]
|
|
32
|
-
}
|
|
29
|
+
},
|
|
30
|
+
removeCentralSanitizers: [
|
|
31
|
+
"AZSDK3493", // .name in the body is not a secret and is listed below in the beforeEach section
|
|
32
|
+
"AZSDK3430", // .id in the body is not a secret and is listed below in the beforeEach section
|
|
33
|
+
],
|
|
33
34
|
};
|
|
34
35
|
export const testPollingOptions = {
|
|
35
36
|
updateIntervalInMs: isPlaybackMode() ? 0 : undefined,
|
|
@@ -62,6 +63,28 @@ describe("Search test", () => {
|
|
|
62
63
|
yield recorder.stop();
|
|
63
64
|
});
|
|
64
65
|
});
|
|
66
|
+
it("operations list test", function () {
|
|
67
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
var _a, e_1, _b, _c;
|
|
69
|
+
const resArray = new Array();
|
|
70
|
+
try {
|
|
71
|
+
for (var _d = true, _e = __asyncValues(client.operations.list()), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
|
72
|
+
_c = _f.value;
|
|
73
|
+
_d = false;
|
|
74
|
+
const item = _c;
|
|
75
|
+
resArray.push(item);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
+
finally {
|
|
80
|
+
try {
|
|
81
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
82
|
+
}
|
|
83
|
+
finally { if (e_1) throw e_1.error; }
|
|
84
|
+
}
|
|
85
|
+
assert.notEqual(resArray.length, 0);
|
|
86
|
+
});
|
|
87
|
+
});
|
|
65
88
|
it("services create test", function () {
|
|
66
89
|
return __awaiter(this, void 0, void 0, function* () {
|
|
67
90
|
const res = yield client.services.beginCreateOrUpdateAndWait(resourceGroup, searchServiceName, {
|
|
@@ -83,8 +106,8 @@ describe("Search test", () => {
|
|
|
83
106
|
});
|
|
84
107
|
});
|
|
85
108
|
it("services list test", function () {
|
|
86
|
-
var _a, e_1, _b, _c;
|
|
87
109
|
return __awaiter(this, void 0, void 0, function* () {
|
|
110
|
+
var _a, e_2, _b, _c;
|
|
88
111
|
const resArray = new Array();
|
|
89
112
|
try {
|
|
90
113
|
for (var _d = true, _e = __asyncValues(client.services.listByResourceGroup(resourceGroup)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
|
@@ -94,12 +117,12 @@ describe("Search test", () => {
|
|
|
94
117
|
resArray.push(item);
|
|
95
118
|
}
|
|
96
119
|
}
|
|
97
|
-
catch (
|
|
120
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
98
121
|
finally {
|
|
99
122
|
try {
|
|
100
123
|
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
101
124
|
}
|
|
102
|
-
finally { if (
|
|
125
|
+
finally { if (e_2) throw e_2.error; }
|
|
103
126
|
}
|
|
104
127
|
assert.equal(resArray.length, 1);
|
|
105
128
|
});
|
|
@@ -112,8 +135,8 @@ describe("Search test", () => {
|
|
|
112
135
|
});
|
|
113
136
|
});
|
|
114
137
|
it("queryKeys list test", function () {
|
|
115
|
-
var _a, e_2, _b, _c;
|
|
116
138
|
return __awaiter(this, void 0, void 0, function* () {
|
|
139
|
+
var _a, e_3, _b, _c;
|
|
117
140
|
const resArray = new Array();
|
|
118
141
|
try {
|
|
119
142
|
for (var _d = true, _e = __asyncValues(client.queryKeys.listBySearchService(resourceGroup, searchServiceName)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
|
@@ -123,19 +146,20 @@ describe("Search test", () => {
|
|
|
123
146
|
resArray.push(item);
|
|
124
147
|
}
|
|
125
148
|
}
|
|
126
|
-
catch (
|
|
149
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
127
150
|
finally {
|
|
128
151
|
try {
|
|
129
152
|
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
130
153
|
}
|
|
131
|
-
finally { if (
|
|
154
|
+
finally { if (e_3) throw e_3.error; }
|
|
132
155
|
}
|
|
133
156
|
assert.equal(resArray.length, 2);
|
|
134
157
|
});
|
|
135
158
|
});
|
|
136
|
-
|
|
137
|
-
|
|
159
|
+
//skip this case as Internal Server Error (HTTP Status Code: 500).
|
|
160
|
+
it.skip("queryKeys delete test", function () {
|
|
138
161
|
return __awaiter(this, void 0, void 0, function* () {
|
|
162
|
+
var _a, e_4, _b, _c, _d, e_5, _e, _f;
|
|
139
163
|
let resArray = new Array();
|
|
140
164
|
try {
|
|
141
165
|
for (var _g = true, _h = __asyncValues(client.queryKeys.listBySearchService(resourceGroup, searchServiceName)), _j; _j = yield _h.next(), _a = _j.done, !_a; _g = true) {
|
|
@@ -145,12 +169,12 @@ describe("Search test", () => {
|
|
|
145
169
|
resArray.push(item);
|
|
146
170
|
}
|
|
147
171
|
}
|
|
148
|
-
catch (
|
|
172
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
149
173
|
finally {
|
|
150
174
|
try {
|
|
151
175
|
if (!_g && !_a && (_b = _h.return)) yield _b.call(_h);
|
|
152
176
|
}
|
|
153
|
-
finally { if (
|
|
177
|
+
finally { if (e_4) throw e_4.error; }
|
|
154
178
|
}
|
|
155
179
|
const len = resArray.length;
|
|
156
180
|
// At least one query key
|
|
@@ -166,20 +190,20 @@ describe("Search test", () => {
|
|
|
166
190
|
resArray.push(item);
|
|
167
191
|
}
|
|
168
192
|
}
|
|
169
|
-
catch (
|
|
193
|
+
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
170
194
|
finally {
|
|
171
195
|
try {
|
|
172
196
|
if (!_k && !_d && (_e = _l.return)) yield _e.call(_l);
|
|
173
197
|
}
|
|
174
|
-
finally { if (
|
|
198
|
+
finally { if (e_5) throw e_5.error; }
|
|
175
199
|
}
|
|
176
200
|
// The key number is reduced to len - 1
|
|
177
201
|
assert.equal(resArray.length, len - 1);
|
|
178
202
|
});
|
|
179
203
|
});
|
|
180
204
|
it("services delete test", function () {
|
|
181
|
-
var _a, e_5, _b, _c;
|
|
182
205
|
return __awaiter(this, void 0, void 0, function* () {
|
|
206
|
+
var _a, e_6, _b, _c;
|
|
183
207
|
yield client.services.delete(resourceGroup, searchServiceName);
|
|
184
208
|
const resArray = new Array();
|
|
185
209
|
try {
|
|
@@ -190,12 +214,12 @@ describe("Search test", () => {
|
|
|
190
214
|
resArray.push(item);
|
|
191
215
|
}
|
|
192
216
|
}
|
|
193
|
-
catch (
|
|
217
|
+
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
194
218
|
finally {
|
|
195
219
|
try {
|
|
196
220
|
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
197
221
|
}
|
|
198
|
-
finally { if (
|
|
222
|
+
finally { if (e_6) throw e_6.error; }
|
|
199
223
|
}
|
|
200
224
|
assert.equal(resArray.length, 0);
|
|
201
225
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search_examples.js","sourceRoot":"","sources":["../../test/search_examples.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,GAAG,EACH,QAAQ,EAGR,cAAc,GACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EAAE,sBA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SAAS,CAAC,mBAAmB,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAA,IAAA,sDAAE,CAAC;oBAAzE,cAAsE;oBAAtE,WAAsE;oBAAlF,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACtB,CAAC;;;;;;;;;YACD,uCAAuC;YACvC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC;QACzC,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,sBAAsB,EAAE;;;YACzB,MAAM,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAC;YAC/D,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;gBAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAA,IAAA,sDAAE,CAAC;oBAArD,cAAkD;oBAAlD,WAAkD;oBAA9D,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACtB,CAAC;;;;;;;;;YACD,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;QACnC,CAAC;KAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for SearchManagementClient.",
|
|
6
|
-
"version": "
|
|
6
|
+
"version": "4.0.0-beta.1",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=18.0.0"
|
|
9
9
|
},
|
|
@@ -29,18 +29,18 @@
|
|
|
29
29
|
"types": "./types/arm-search.d.ts",
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@microsoft/api-extractor": "^7.31.1",
|
|
32
|
-
"mkdirp": "^
|
|
33
|
-
"typescript": "~5.
|
|
32
|
+
"mkdirp": "^3.0.1",
|
|
33
|
+
"typescript": "~5.5.3",
|
|
34
34
|
"uglify-js": "^3.4.9",
|
|
35
35
|
"rimraf": "^5.0.0",
|
|
36
36
|
"dotenv": "^16.0.0",
|
|
37
37
|
"@azure/dev-tool": "^1.0.0",
|
|
38
38
|
"@azure/identity": "^4.0.1",
|
|
39
39
|
"@azure-tools/test-recorder": "^3.0.0",
|
|
40
|
-
"@azure-tools/test-credential": "^1.
|
|
40
|
+
"@azure-tools/test-credential": "^1.1.0",
|
|
41
41
|
"mocha": "^10.0.0",
|
|
42
42
|
"@types/mocha": "^10.0.0",
|
|
43
|
-
"
|
|
43
|
+
"tsx": "^4.7.1",
|
|
44
44
|
"@types/chai": "^4.2.8",
|
|
45
45
|
"chai": "^4.2.0",
|
|
46
46
|
"cross-env": "^7.0.2",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
|
|
77
77
|
"prepack": "npm run build",
|
|
78
78
|
"pack": "npm pack 2>&1",
|
|
79
|
-
"extract-api": "
|
|
79
|
+
"extract-api": "dev-tool run extract-api",
|
|
80
80
|
"lint": "echo skipped",
|
|
81
81
|
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
|
82
82
|
"build:node": "echo skipped",
|
|
@@ -115,4 +115,4 @@
|
|
|
115
115
|
"disableDocsMs": true,
|
|
116
116
|
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-search?view=azure-node-preview"
|
|
117
117
|
}
|
|
118
|
-
}
|
|
118
|
+
}
|
package/review/arm-search.api.md
CHANGED
|
@@ -144,6 +144,7 @@ export enum KnownPublicNetworkAccess {
|
|
|
144
144
|
// @public
|
|
145
145
|
export enum KnownSearchBypass {
|
|
146
146
|
AzurePortal = "AzurePortal",
|
|
147
|
+
AzureServices = "AzureServices",
|
|
147
148
|
None = "None"
|
|
148
149
|
}
|
|
149
150
|
|
|
@@ -545,7 +546,7 @@ export type PrivateLinkServiceConnectionProvisioningState = string;
|
|
|
545
546
|
export type PrivateLinkServiceConnectionStatus = "Pending" | "Approved" | "Rejected" | "Disconnected";
|
|
546
547
|
|
|
547
548
|
// @public
|
|
548
|
-
export type ProvisioningState = "
|
|
549
|
+
export type ProvisioningState = "Succeeded" | "Provisioning" | "Failed";
|
|
549
550
|
|
|
550
551
|
// @public
|
|
551
552
|
export interface ProxyResource extends Resource {
|
package/src/models/index.ts
CHANGED
|
@@ -687,7 +687,7 @@ export interface SearchServiceUpdate extends Resource {
|
|
|
687
687
|
*/
|
|
688
688
|
readonly statusDetails?: string;
|
|
689
689
|
/**
|
|
690
|
-
* The state of the last provisioning operation performed on the search service. Provisioning is an intermediate state that occurs while service capacity is being established. After capacity is set up, provisioningState changes to either '
|
|
690
|
+
* The state of the last provisioning operation performed on the search service. Provisioning is an intermediate state that occurs while service capacity is being established. After capacity is set up, provisioningState changes to either 'Succeeded' or 'Failed'. Client applications can poll provisioning status (the recommended polling interval is from 30 seconds to one minute) by using the Get Search Service operation to see when an operation is completed. If you are using the free service, this value tends to come back as 'Succeeded' directly in the call to Create search service. This is because the free service uses capacity that is already set up.
|
|
691
691
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
692
692
|
*/
|
|
693
693
|
readonly provisioningState?: ProvisioningState;
|
|
@@ -757,7 +757,7 @@ export interface SearchService extends TrackedResource {
|
|
|
757
757
|
*/
|
|
758
758
|
readonly statusDetails?: string;
|
|
759
759
|
/**
|
|
760
|
-
* The state of the last provisioning operation performed on the search service. Provisioning is an intermediate state that occurs while service capacity is being established. After capacity is set up, provisioningState changes to either '
|
|
760
|
+
* The state of the last provisioning operation performed on the search service. Provisioning is an intermediate state that occurs while service capacity is being established. After capacity is set up, provisioningState changes to either 'Succeeded' or 'Failed'. Client applications can poll provisioning status (the recommended polling interval is from 30 seconds to one minute) by using the Get Search Service operation to see when an operation is completed. If you are using the free service, this value tends to come back as 'Succeeded' directly in the call to Create search service. This is because the free service uses capacity that is already set up.
|
|
761
761
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
762
762
|
*/
|
|
763
763
|
readonly provisioningState?: ProvisioningState;
|
|
@@ -838,6 +838,8 @@ export enum KnownSearchBypass {
|
|
|
838
838
|
None = "None",
|
|
839
839
|
/** Indicates that requests originating from the Azure portal can bypass the rules defined in the 'ipRules' section. */
|
|
840
840
|
AzurePortal = "AzurePortal",
|
|
841
|
+
/** Indicates that requests originating from Azure trusted services can bypass the rules defined in the 'ipRules' section. */
|
|
842
|
+
AzureServices = "AzureServices",
|
|
841
843
|
}
|
|
842
844
|
|
|
843
845
|
/**
|
|
@@ -846,7 +848,8 @@ export enum KnownSearchBypass {
|
|
|
846
848
|
* this enum contains the known values that the service supports.
|
|
847
849
|
* ### Known values supported by the service
|
|
848
850
|
* **None**: Indicates that no origin can bypass the rules defined in the 'ipRules' section. This is the default. \
|
|
849
|
-
* **AzurePortal**: Indicates that requests originating from the Azure portal can bypass the rules defined in the 'ipRules' section.
|
|
851
|
+
* **AzurePortal**: Indicates that requests originating from the Azure portal can bypass the rules defined in the 'ipRules' section. \
|
|
852
|
+
* **AzureServices**: Indicates that requests originating from Azure trusted services can bypass the rules defined in the 'ipRules' section.
|
|
850
853
|
*/
|
|
851
854
|
export type SearchBypass = string;
|
|
852
855
|
|
|
@@ -1076,7 +1079,7 @@ export type SearchServiceStatus =
|
|
|
1076
1079
|
| "error"
|
|
1077
1080
|
| "stopped";
|
|
1078
1081
|
/** Defines values for ProvisioningState. */
|
|
1079
|
-
export type ProvisioningState = "
|
|
1082
|
+
export type ProvisioningState = "Succeeded" | "Provisioning" | "Failed";
|
|
1080
1083
|
/** Defines values for SearchEncryptionWithCmk. */
|
|
1081
1084
|
export type SearchEncryptionWithCmk = "Disabled" | "Enabled" | "Unspecified";
|
|
1082
1085
|
/** Defines values for SearchEncryptionComplianceStatus. */
|
package/src/models/mappers.ts
CHANGED
|
@@ -1617,7 +1617,7 @@ export const SearchServiceUpdate: coreClient.CompositeMapper = {
|
|
|
1617
1617
|
readOnly: true,
|
|
1618
1618
|
type: {
|
|
1619
1619
|
name: "Enum",
|
|
1620
|
-
allowedValues: ["
|
|
1620
|
+
allowedValues: ["Succeeded", "Provisioning", "Failed"],
|
|
1621
1621
|
},
|
|
1622
1622
|
},
|
|
1623
1623
|
networkRuleSet: {
|
|
@@ -1815,7 +1815,7 @@ export const SearchService: coreClient.CompositeMapper = {
|
|
|
1815
1815
|
readOnly: true,
|
|
1816
1816
|
type: {
|
|
1817
1817
|
name: "Enum",
|
|
1818
|
-
allowedValues: ["
|
|
1818
|
+
allowedValues: ["Succeeded", "Provisioning", "Failed"],
|
|
1819
1819
|
},
|
|
1820
1820
|
},
|
|
1821
1821
|
networkRuleSet: {
|
package/src/models/parameters.ts
CHANGED
|
@@ -46,7 +46,7 @@ export const $host: OperationURLParameter = {
|
|
|
46
46
|
export const apiVersion: OperationQueryParameter = {
|
|
47
47
|
parameterPath: "apiVersion",
|
|
48
48
|
mapper: {
|
|
49
|
-
defaultValue: "2024-
|
|
49
|
+
defaultValue: "2024-06-01-preview",
|
|
50
50
|
isConstant: true,
|
|
51
51
|
serializedName: "api-version",
|
|
52
52
|
type: {
|
|
@@ -77,7 +77,7 @@ export class SearchManagementClient extends coreClient.ServiceClient {
|
|
|
77
77
|
credential: credentials,
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
-
const packageDetails = `azsdk-js-arm-search/
|
|
80
|
+
const packageDetails = `azsdk-js-arm-search/4.0.0-beta.1`;
|
|
81
81
|
const userAgentPrefix =
|
|
82
82
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
83
83
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
@@ -131,7 +131,7 @@ export class SearchManagementClient extends coreClient.ServiceClient {
|
|
|
131
131
|
|
|
132
132
|
// Assigning values to Constant parameters
|
|
133
133
|
this.$host = options.$host || "https://management.azure.com";
|
|
134
|
-
this.apiVersion = options.apiVersion || "2024-
|
|
134
|
+
this.apiVersion = options.apiVersion || "2024-06-01-preview";
|
|
135
135
|
this.operations = new OperationsImpl(this);
|
|
136
136
|
this.adminKeys = new AdminKeysImpl(this);
|
|
137
137
|
this.queryKeys = new QueryKeysImpl(this);
|
package/types/arm-search.d.ts
CHANGED
|
@@ -235,7 +235,9 @@ export declare enum KnownSearchBypass {
|
|
|
235
235
|
/** Indicates that no origin can bypass the rules defined in the 'ipRules' section. This is the default. */
|
|
236
236
|
None = "None",
|
|
237
237
|
/** Indicates that requests originating from the Azure portal can bypass the rules defined in the 'ipRules' section. */
|
|
238
|
-
AzurePortal = "AzurePortal"
|
|
238
|
+
AzurePortal = "AzurePortal",
|
|
239
|
+
/** Indicates that requests originating from Azure trusted services can bypass the rules defined in the 'ipRules' section. */
|
|
240
|
+
AzureServices = "AzureServices"
|
|
239
241
|
}
|
|
240
242
|
|
|
241
243
|
/** Known values of {@link SearchDisabledDataExfiltrationOption} that the service accepts. */
|
|
@@ -923,7 +925,7 @@ export declare type PrivateLinkServiceConnectionProvisioningState = string;
|
|
|
923
925
|
export declare type PrivateLinkServiceConnectionStatus = "Pending" | "Approved" | "Rejected" | "Disconnected";
|
|
924
926
|
|
|
925
927
|
/** Defines values for ProvisioningState. */
|
|
926
|
-
export declare type ProvisioningState = "
|
|
928
|
+
export declare type ProvisioningState = "Succeeded" | "Provisioning" | "Failed";
|
|
927
929
|
|
|
928
930
|
/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
|
|
929
931
|
export declare interface ProxyResource extends Resource {
|
|
@@ -1085,7 +1087,8 @@ export declare interface Resource {
|
|
|
1085
1087
|
* this enum contains the known values that the service supports.
|
|
1086
1088
|
* ### Known values supported by the service
|
|
1087
1089
|
* **None**: Indicates that no origin can bypass the rules defined in the 'ipRules' section. This is the default. \
|
|
1088
|
-
* **AzurePortal**: Indicates that requests originating from the Azure portal can bypass the rules defined in the 'ipRules' section.
|
|
1090
|
+
* **AzurePortal**: Indicates that requests originating from the Azure portal can bypass the rules defined in the 'ipRules' section. \
|
|
1091
|
+
* **AzureServices**: Indicates that requests originating from Azure trusted services can bypass the rules defined in the 'ipRules' section.
|
|
1089
1092
|
*/
|
|
1090
1093
|
export declare type SearchBypass = string;
|
|
1091
1094
|
|
|
@@ -1188,7 +1191,7 @@ export declare interface SearchService extends TrackedResource {
|
|
|
1188
1191
|
*/
|
|
1189
1192
|
readonly statusDetails?: string;
|
|
1190
1193
|
/**
|
|
1191
|
-
* The state of the last provisioning operation performed on the search service. Provisioning is an intermediate state that occurs while service capacity is being established. After capacity is set up, provisioningState changes to either '
|
|
1194
|
+
* The state of the last provisioning operation performed on the search service. Provisioning is an intermediate state that occurs while service capacity is being established. After capacity is set up, provisioningState changes to either 'Succeeded' or 'Failed'. Client applications can poll provisioning status (the recommended polling interval is from 30 seconds to one minute) by using the Get Search Service operation to see when an operation is completed. If you are using the free service, this value tends to come back as 'Succeeded' directly in the call to Create search service. This is because the free service uses capacity that is already set up.
|
|
1192
1195
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1193
1196
|
*/
|
|
1194
1197
|
readonly provisioningState?: ProvisioningState;
|
|
@@ -1269,7 +1272,7 @@ export declare interface SearchServiceUpdate extends Resource {
|
|
|
1269
1272
|
*/
|
|
1270
1273
|
readonly statusDetails?: string;
|
|
1271
1274
|
/**
|
|
1272
|
-
* The state of the last provisioning operation performed on the search service. Provisioning is an intermediate state that occurs while service capacity is being established. After capacity is set up, provisioningState changes to either '
|
|
1275
|
+
* The state of the last provisioning operation performed on the search service. Provisioning is an intermediate state that occurs while service capacity is being established. After capacity is set up, provisioningState changes to either 'Succeeded' or 'Failed'. Client applications can poll provisioning status (the recommended polling interval is from 30 seconds to one minute) by using the Get Search Service operation to see when an operation is completed. If you are using the free service, this value tends to come back as 'Succeeded' directly in the call to Create search service. This is because the free service uses capacity that is already set up.
|
|
1273
1276
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1274
1277
|
*/
|
|
1275
1278
|
readonly provisioningState?: ProvisioningState;
|