@azure/arm-search 2.0.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} +1 -1
- package/README.md +70 -78
- 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/{esm/models/adminKeysMappers.js → dist-esm/src/index.js} +5 -2
- 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/{esm → dist-esm/src}/models/mappers.js +503 -558
- 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/{esm → dist-esm/src}/models/parameters.js +92 -47
- 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/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- 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/{src/models/adminKeysMappers.ts → dist-esm/src/operationsInterfaces/adminKeys.js} +2 -5
- 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/{src/models/queryKeysMappers.ts → dist-esm/src/operationsInterfaces/operations.js} +2 -6
- 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/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/privateEndpointConnections.js} +2 -7
- 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/{esm/models/index.js → dist-esm/src/operationsInterfaces/services.js} +2 -1
- 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 +65 -32
- package/review/arm-search.api.md +600 -0
- package/rollup.config.js +181 -30
- package/{esm/models/queryKeysMappers.js → src/index.ts} +5 -2
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +563 -1357
- package/src/models/mappers.ts +516 -575
- package/src/models/parameters.ts +122 -48
- package/src/operations/adminKeys.ts +65 -109
- package/src/operations/index.ts +1 -2
- package/src/operations/operations.ts +64 -39
- package/src/operations/privateEndpointConnections.ts +223 -235
- package/src/operations/privateLinkResources.ts +100 -54
- package/src/operations/queryKeys.ts +192 -190
- package/src/operations/services.ts +423 -409
- package/src/operations/sharedPrivateLinkResources.ts +390 -232
- package/src/operationsInterfaces/adminKeys.ts +48 -0
- package/src/operationsInterfaces/index.ts +15 -0
- 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 +90 -46
- package/tsconfig.json +3 -3
- package/types/arm-search.d.ts +1104 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-search.js +0 -2737
- 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.map +0 -1
- package/esm/models/index.d.ts +0 -1499
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -38
- package/esm/models/mappers.d.ts.map +0 -1
- 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 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -14
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
- package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.js +0 -9
- package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
- package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
- package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
- package/esm/models/privateLinkResourcesMappers.js +0 -9
- package/esm/models/privateLinkResourcesMappers.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.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 -9
- package/esm/models/servicesMappers.js.map +0 -1
- package/esm/models/sharedPrivateLinkResourcesMappers.d.ts +0 -2
- package/esm/models/sharedPrivateLinkResourcesMappers.d.ts.map +0 -1
- package/esm/models/sharedPrivateLinkResourcesMappers.js +0 -9
- package/esm/models/sharedPrivateLinkResourcesMappers.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 -92
- package/esm/operations/adminKeys.js.map +0 -1
- 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 -50
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/privateEndpointConnections.d.ts +0 -161
- package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
- package/esm/operations/privateEndpointConnections.js +0 -197
- package/esm/operations/privateEndpointConnections.js.map +0 -1
- package/esm/operations/privateLinkResources.d.ts +0 -40
- package/esm/operations/privateLinkResources.d.ts.map +0 -1
- package/esm/operations/privateLinkResources.js +0 -58
- package/esm/operations/privateLinkResources.js.map +0 -1
- package/esm/operations/queryKeys.d.ts +0 -120
- package/esm/operations/queryKeys.d.ts.map +0 -1
- package/esm/operations/queryKeys.js +0 -156
- package/esm/operations/queryKeys.js.map +0 -1
- package/esm/operations/services.d.ts +0 -225
- package/esm/operations/services.d.ts.map +0 -1
- package/esm/operations/services.js +0 -355
- package/esm/operations/services.js.map +0 -1
- package/esm/operations/sharedPrivateLinkResources.d.ts +0 -147
- package/esm/operations/sharedPrivateLinkResources.d.ts.map +0 -1
- package/esm/operations/sharedPrivateLinkResources.js +0 -255
- package/esm/operations/sharedPrivateLinkResources.js.map +0 -1
- package/esm/searchManagementClient.d.ts +0 -31
- package/esm/searchManagementClient.d.ts.map +0 -1
- package/esm/searchManagementClient.js +0 -44
- package/esm/searchManagementClient.js.map +0 -1
- package/esm/searchManagementClientContext.d.ts +0 -23
- package/esm/searchManagementClientContext.d.ts.map +0 -1
- package/esm/searchManagementClientContext.js +0 -61
- package/esm/searchManagementClientContext.js.map +0 -1
- package/src/models/privateEndpointConnectionsMappers.ts +0 -33
- package/src/models/privateLinkResourcesMappers.ts +0 -33
- package/src/models/servicesMappers.ts +0 -35
- package/src/models/sharedPrivateLinkResourcesMappers.ts +0 -33
- package/src/searchManagementClientContext.ts +0 -68
|
@@ -3,363 +3,434 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import * as
|
|
13
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Services } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
14
|
+
import { SearchManagementClient } from "../searchManagementClient";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
SearchService,
|
|
19
|
+
ServicesListByResourceGroupNextOptionalParams,
|
|
20
|
+
ServicesListByResourceGroupOptionalParams,
|
|
21
|
+
ServicesListBySubscriptionNextOptionalParams,
|
|
22
|
+
ServicesListBySubscriptionOptionalParams,
|
|
23
|
+
ServicesCreateOrUpdateOptionalParams,
|
|
24
|
+
ServicesCreateOrUpdateResponse,
|
|
25
|
+
SearchServiceUpdate,
|
|
26
|
+
ServicesUpdateOptionalParams,
|
|
27
|
+
ServicesUpdateResponse,
|
|
28
|
+
ServicesGetOptionalParams,
|
|
29
|
+
ServicesGetResponse,
|
|
30
|
+
ServicesDeleteOptionalParams,
|
|
31
|
+
ServicesListByResourceGroupResponse,
|
|
32
|
+
ServicesListBySubscriptionResponse,
|
|
33
|
+
ServicesCheckNameAvailabilityOptionalParams,
|
|
34
|
+
ServicesCheckNameAvailabilityResponse,
|
|
35
|
+
ServicesListByResourceGroupNextResponse,
|
|
36
|
+
ServicesListBySubscriptionNextResponse
|
|
37
|
+
} from "../models";
|
|
16
38
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
39
|
+
/// <reference lib="esnext.asynciterable" />
|
|
40
|
+
/** Class containing Services operations. */
|
|
41
|
+
export class ServicesImpl implements Services {
|
|
42
|
+
private readonly client: SearchManagementClient;
|
|
20
43
|
|
|
21
44
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
45
|
+
* Initialize a new instance of the class Services class.
|
|
46
|
+
* @param client Reference to the service client
|
|
24
47
|
*/
|
|
25
|
-
constructor(client:
|
|
48
|
+
constructor(client: SearchManagementClient) {
|
|
26
49
|
this.client = client;
|
|
27
50
|
}
|
|
28
51
|
|
|
29
52
|
/**
|
|
30
|
-
*
|
|
31
|
-
* exists, all properties will be updated with the given values.
|
|
53
|
+
* Gets a list of all search services in the given resource group.
|
|
32
54
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
33
|
-
*
|
|
34
|
-
* @param
|
|
35
|
-
* Search service names must only contain lowercase letters, digits or dashes, cannot use dash as
|
|
36
|
-
* the first two or last one characters, cannot contain consecutive dashes, and must be between 2
|
|
37
|
-
* and 60 characters in length. Search service names must be globally unique since they are part of
|
|
38
|
-
* the service URI (https://<name>.search.windows.net). You cannot change the service name after
|
|
39
|
-
* the service is created.
|
|
40
|
-
* @param service The definition of the search service to create or update.
|
|
41
|
-
* @param [options] The optional parameters
|
|
42
|
-
* @returns Promise<Models.ServicesCreateOrUpdateResponse>
|
|
55
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
56
|
+
* @param options The options parameters.
|
|
43
57
|
*/
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
58
|
+
public listByResourceGroup(
|
|
59
|
+
resourceGroupName: string,
|
|
60
|
+
options?: ServicesListByResourceGroupOptionalParams
|
|
61
|
+
): PagedAsyncIterableIterator<SearchService> {
|
|
62
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
63
|
+
return {
|
|
64
|
+
next() {
|
|
65
|
+
return iter.next();
|
|
66
|
+
},
|
|
67
|
+
[Symbol.asyncIterator]() {
|
|
68
|
+
return this;
|
|
69
|
+
},
|
|
70
|
+
byPage: () => {
|
|
71
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
private async *listByResourceGroupPagingPage(
|
|
77
|
+
resourceGroupName: string,
|
|
78
|
+
options?: ServicesListByResourceGroupOptionalParams
|
|
79
|
+
): AsyncIterableIterator<SearchService[]> {
|
|
80
|
+
let result = await this._listByResourceGroup(resourceGroupName, options);
|
|
81
|
+
yield result.value || [];
|
|
82
|
+
let continuationToken = result.nextLink;
|
|
83
|
+
while (continuationToken) {
|
|
84
|
+
result = await this._listByResourceGroupNext(
|
|
85
|
+
resourceGroupName,
|
|
86
|
+
continuationToken,
|
|
87
|
+
options
|
|
88
|
+
);
|
|
89
|
+
continuationToken = result.nextLink;
|
|
90
|
+
yield result.value || [];
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
private async *listByResourceGroupPagingAll(
|
|
95
|
+
resourceGroupName: string,
|
|
96
|
+
options?: ServicesListByResourceGroupOptionalParams
|
|
97
|
+
): AsyncIterableIterator<SearchService> {
|
|
98
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
|
99
|
+
resourceGroupName,
|
|
100
|
+
options
|
|
101
|
+
)) {
|
|
102
|
+
yield* page;
|
|
103
|
+
}
|
|
47
104
|
}
|
|
48
105
|
|
|
49
106
|
/**
|
|
50
|
-
*
|
|
107
|
+
* Gets a list of all search services in the given subscription.
|
|
108
|
+
* @param options The options parameters.
|
|
109
|
+
*/
|
|
110
|
+
public listBySubscription(
|
|
111
|
+
options?: ServicesListBySubscriptionOptionalParams
|
|
112
|
+
): PagedAsyncIterableIterator<SearchService> {
|
|
113
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
114
|
+
return {
|
|
115
|
+
next() {
|
|
116
|
+
return iter.next();
|
|
117
|
+
},
|
|
118
|
+
[Symbol.asyncIterator]() {
|
|
119
|
+
return this;
|
|
120
|
+
},
|
|
121
|
+
byPage: () => {
|
|
122
|
+
return this.listBySubscriptionPagingPage(options);
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
private async *listBySubscriptionPagingPage(
|
|
128
|
+
options?: ServicesListBySubscriptionOptionalParams
|
|
129
|
+
): AsyncIterableIterator<SearchService[]> {
|
|
130
|
+
let result = await this._listBySubscription(options);
|
|
131
|
+
yield result.value || [];
|
|
132
|
+
let continuationToken = result.nextLink;
|
|
133
|
+
while (continuationToken) {
|
|
134
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
135
|
+
continuationToken = result.nextLink;
|
|
136
|
+
yield result.value || [];
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
private async *listBySubscriptionPagingAll(
|
|
141
|
+
options?: ServicesListBySubscriptionOptionalParams
|
|
142
|
+
): AsyncIterableIterator<SearchService> {
|
|
143
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
144
|
+
yield* page;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Creates or updates a search service in the given resource group. If the search service already
|
|
150
|
+
* exists, all properties will be updated with the given values.
|
|
51
151
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
52
|
-
*
|
|
53
|
-
* @param searchServiceName The name of the Azure Cognitive Search service to update.
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
152
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
153
|
+
* @param searchServiceName The name of the Azure Cognitive Search service to create or update. Search
|
|
154
|
+
* service names must only contain lowercase letters, digits or dashes, cannot use dash as the first
|
|
155
|
+
* two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60
|
|
156
|
+
* characters in length. Search service names must be globally unique since they are part of the
|
|
157
|
+
* service URI (https://<name>.search.windows.net). You cannot change the service name after the
|
|
158
|
+
* service is created.
|
|
159
|
+
* @param service The definition of the search service to create or update.
|
|
160
|
+
* @param options The options parameters.
|
|
57
161
|
*/
|
|
58
|
-
|
|
162
|
+
async beginCreateOrUpdate(
|
|
163
|
+
resourceGroupName: string,
|
|
164
|
+
searchServiceName: string,
|
|
165
|
+
service: SearchService,
|
|
166
|
+
options?: ServicesCreateOrUpdateOptionalParams
|
|
167
|
+
): Promise<
|
|
168
|
+
PollerLike<
|
|
169
|
+
PollOperationState<ServicesCreateOrUpdateResponse>,
|
|
170
|
+
ServicesCreateOrUpdateResponse
|
|
171
|
+
>
|
|
172
|
+
> {
|
|
173
|
+
const directSendOperation = async (
|
|
174
|
+
args: coreClient.OperationArguments,
|
|
175
|
+
spec: coreClient.OperationSpec
|
|
176
|
+
): Promise<ServicesCreateOrUpdateResponse> => {
|
|
177
|
+
return this.client.sendOperationRequest(args, spec);
|
|
178
|
+
};
|
|
179
|
+
const sendOperation = async (
|
|
180
|
+
args: coreClient.OperationArguments,
|
|
181
|
+
spec: coreClient.OperationSpec
|
|
182
|
+
) => {
|
|
183
|
+
let currentRawResponse:
|
|
184
|
+
| coreClient.FullOperationResponse
|
|
185
|
+
| undefined = undefined;
|
|
186
|
+
const providedCallback = args.options?.onResponse;
|
|
187
|
+
const callback: coreClient.RawResponseCallback = (
|
|
188
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
189
|
+
flatResponse: unknown
|
|
190
|
+
) => {
|
|
191
|
+
currentRawResponse = rawResponse;
|
|
192
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
193
|
+
};
|
|
194
|
+
const updatedArgs = {
|
|
195
|
+
...args,
|
|
196
|
+
options: {
|
|
197
|
+
...args.options,
|
|
198
|
+
onResponse: callback
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
202
|
+
return {
|
|
203
|
+
flatResponse,
|
|
204
|
+
rawResponse: {
|
|
205
|
+
statusCode: currentRawResponse!.status,
|
|
206
|
+
body: currentRawResponse!.parsedBody,
|
|
207
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
const lro = new LroImpl(
|
|
213
|
+
sendOperation,
|
|
214
|
+
{ resourceGroupName, searchServiceName, service, options },
|
|
215
|
+
createOrUpdateOperationSpec
|
|
216
|
+
);
|
|
217
|
+
return new LroEngine(lro, {
|
|
218
|
+
resumeFrom: options?.resumeFrom,
|
|
219
|
+
intervalInMs: options?.updateIntervalInMs
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
|
|
59
223
|
/**
|
|
224
|
+
* Creates or updates a search service in the given resource group. If the search service already
|
|
225
|
+
* exists, all properties will be updated with the given values.
|
|
60
226
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
61
|
-
*
|
|
62
|
-
* @param searchServiceName The name of the Azure Cognitive Search service to update.
|
|
63
|
-
*
|
|
64
|
-
*
|
|
227
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
228
|
+
* @param searchServiceName The name of the Azure Cognitive Search service to create or update. Search
|
|
229
|
+
* service names must only contain lowercase letters, digits or dashes, cannot use dash as the first
|
|
230
|
+
* two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60
|
|
231
|
+
* characters in length. Search service names must be globally unique since they are part of the
|
|
232
|
+
* service URI (https://<name>.search.windows.net). You cannot change the service name after the
|
|
233
|
+
* service is created.
|
|
234
|
+
* @param service The definition of the search service to create or update.
|
|
235
|
+
* @param options The options parameters.
|
|
65
236
|
*/
|
|
66
|
-
|
|
237
|
+
async beginCreateOrUpdateAndWait(
|
|
238
|
+
resourceGroupName: string,
|
|
239
|
+
searchServiceName: string,
|
|
240
|
+
service: SearchService,
|
|
241
|
+
options?: ServicesCreateOrUpdateOptionalParams
|
|
242
|
+
): Promise<ServicesCreateOrUpdateResponse> {
|
|
243
|
+
const poller = await this.beginCreateOrUpdate(
|
|
244
|
+
resourceGroupName,
|
|
245
|
+
searchServiceName,
|
|
246
|
+
service,
|
|
247
|
+
options
|
|
248
|
+
);
|
|
249
|
+
return poller.pollUntilDone();
|
|
250
|
+
}
|
|
251
|
+
|
|
67
252
|
/**
|
|
253
|
+
* Updates an existing search service in the given resource group.
|
|
68
254
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
69
|
-
*
|
|
255
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
70
256
|
* @param searchServiceName The name of the Azure Cognitive Search service to update.
|
|
71
257
|
* @param service The definition of the search service to update.
|
|
72
|
-
* @param options The
|
|
73
|
-
* @param callback The callback
|
|
258
|
+
* @param options The options parameters.
|
|
74
259
|
*/
|
|
75
|
-
update(
|
|
76
|
-
|
|
260
|
+
update(
|
|
261
|
+
resourceGroupName: string,
|
|
262
|
+
searchServiceName: string,
|
|
263
|
+
service: SearchServiceUpdate,
|
|
264
|
+
options?: ServicesUpdateOptionalParams
|
|
265
|
+
): Promise<ServicesUpdateResponse> {
|
|
77
266
|
return this.client.sendOperationRequest(
|
|
78
|
-
{
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
service,
|
|
82
|
-
options
|
|
83
|
-
},
|
|
84
|
-
updateOperationSpec,
|
|
85
|
-
callback) as Promise<Models.ServicesUpdateResponse>;
|
|
267
|
+
{ resourceGroupName, searchServiceName, service, options },
|
|
268
|
+
updateOperationSpec
|
|
269
|
+
);
|
|
86
270
|
}
|
|
87
271
|
|
|
88
272
|
/**
|
|
89
273
|
* Gets the search service with the given name in the given resource group.
|
|
90
274
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
91
|
-
*
|
|
92
|
-
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
93
|
-
* specified resource group.
|
|
94
|
-
* @param [options] The optional parameters
|
|
95
|
-
* @returns Promise<Models.ServicesGetResponse>
|
|
96
|
-
*/
|
|
97
|
-
get(resourceGroupName: string, searchServiceName: string, options?: Models.ServicesGetOptionalParams): Promise<Models.ServicesGetResponse>;
|
|
98
|
-
/**
|
|
99
|
-
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
100
|
-
* obtain this value from the Azure Resource Manager API or the portal.
|
|
275
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
101
276
|
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
102
|
-
*
|
|
103
|
-
* @param
|
|
277
|
+
* specified resource group.
|
|
278
|
+
* @param options The options parameters.
|
|
104
279
|
*/
|
|
105
|
-
get(
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
* specified resource group.
|
|
111
|
-
* @param options The optional parameters
|
|
112
|
-
* @param callback The callback
|
|
113
|
-
*/
|
|
114
|
-
get(resourceGroupName: string, searchServiceName: string, options: Models.ServicesGetOptionalParams, callback: msRest.ServiceCallback<Models.SearchService>): void;
|
|
115
|
-
get(resourceGroupName: string, searchServiceName: string, options?: Models.ServicesGetOptionalParams | msRest.ServiceCallback<Models.SearchService>, callback?: msRest.ServiceCallback<Models.SearchService>): Promise<Models.ServicesGetResponse> {
|
|
280
|
+
get(
|
|
281
|
+
resourceGroupName: string,
|
|
282
|
+
searchServiceName: string,
|
|
283
|
+
options?: ServicesGetOptionalParams
|
|
284
|
+
): Promise<ServicesGetResponse> {
|
|
116
285
|
return this.client.sendOperationRequest(
|
|
117
|
-
{
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
options
|
|
121
|
-
},
|
|
122
|
-
getOperationSpec,
|
|
123
|
-
callback) as Promise<Models.ServicesGetResponse>;
|
|
286
|
+
{ resourceGroupName, searchServiceName, options },
|
|
287
|
+
getOperationSpec
|
|
288
|
+
);
|
|
124
289
|
}
|
|
125
290
|
|
|
126
291
|
/**
|
|
127
292
|
* Deletes a search service in the given resource group, along with its associated resources.
|
|
128
293
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
129
|
-
*
|
|
294
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
130
295
|
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
131
|
-
*
|
|
132
|
-
* @param
|
|
133
|
-
* @returns Promise<msRest.RestResponse>
|
|
296
|
+
* specified resource group.
|
|
297
|
+
* @param options The options parameters.
|
|
134
298
|
*/
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
* specified resource group.
|
|
141
|
-
* @param callback The callback
|
|
142
|
-
*/
|
|
143
|
-
deleteMethod(resourceGroupName: string, searchServiceName: string, callback: msRest.ServiceCallback<void>): void;
|
|
144
|
-
/**
|
|
145
|
-
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
146
|
-
* obtain this value from the Azure Resource Manager API or the portal.
|
|
147
|
-
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
148
|
-
* specified resource group.
|
|
149
|
-
* @param options The optional parameters
|
|
150
|
-
* @param callback The callback
|
|
151
|
-
*/
|
|
152
|
-
deleteMethod(resourceGroupName: string, searchServiceName: string, options: Models.ServicesDeleteMethodOptionalParams, callback: msRest.ServiceCallback<void>): void;
|
|
153
|
-
deleteMethod(resourceGroupName: string, searchServiceName: string, options?: Models.ServicesDeleteMethodOptionalParams | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
|
|
299
|
+
delete(
|
|
300
|
+
resourceGroupName: string,
|
|
301
|
+
searchServiceName: string,
|
|
302
|
+
options?: ServicesDeleteOptionalParams
|
|
303
|
+
): Promise<void> {
|
|
154
304
|
return this.client.sendOperationRequest(
|
|
155
|
-
{
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
options
|
|
159
|
-
},
|
|
160
|
-
deleteMethodOperationSpec,
|
|
161
|
-
callback);
|
|
305
|
+
{ resourceGroupName, searchServiceName, options },
|
|
306
|
+
deleteOperationSpec
|
|
307
|
+
);
|
|
162
308
|
}
|
|
163
309
|
|
|
164
310
|
/**
|
|
165
311
|
* Gets a list of all search services in the given resource group.
|
|
166
312
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
167
|
-
*
|
|
168
|
-
* @param
|
|
169
|
-
* @returns Promise<Models.ServicesListByResourceGroupResponse>
|
|
170
|
-
*/
|
|
171
|
-
listByResourceGroup(resourceGroupName: string, options?: Models.ServicesListByResourceGroupOptionalParams): Promise<Models.ServicesListByResourceGroupResponse>;
|
|
172
|
-
/**
|
|
173
|
-
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
174
|
-
* obtain this value from the Azure Resource Manager API or the portal.
|
|
175
|
-
* @param callback The callback
|
|
176
|
-
*/
|
|
177
|
-
listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.SearchServiceListResult>): void;
|
|
178
|
-
/**
|
|
179
|
-
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
180
|
-
* obtain this value from the Azure Resource Manager API or the portal.
|
|
181
|
-
* @param options The optional parameters
|
|
182
|
-
* @param callback The callback
|
|
313
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
314
|
+
* @param options The options parameters.
|
|
183
315
|
*/
|
|
184
|
-
|
|
185
|
-
|
|
316
|
+
private _listByResourceGroup(
|
|
317
|
+
resourceGroupName: string,
|
|
318
|
+
options?: ServicesListByResourceGroupOptionalParams
|
|
319
|
+
): Promise<ServicesListByResourceGroupResponse> {
|
|
186
320
|
return this.client.sendOperationRequest(
|
|
187
|
-
{
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
},
|
|
191
|
-
listByResourceGroupOperationSpec,
|
|
192
|
-
callback) as Promise<Models.ServicesListByResourceGroupResponse>;
|
|
321
|
+
{ resourceGroupName, options },
|
|
322
|
+
listByResourceGroupOperationSpec
|
|
323
|
+
);
|
|
193
324
|
}
|
|
194
325
|
|
|
195
326
|
/**
|
|
196
327
|
* Gets a list of all search services in the given subscription.
|
|
197
|
-
* @param
|
|
198
|
-
* @returns Promise<Models.ServicesListBySubscriptionResponse>
|
|
199
|
-
*/
|
|
200
|
-
listBySubscription(options?: Models.ServicesListBySubscriptionOptionalParams): Promise<Models.ServicesListBySubscriptionResponse>;
|
|
201
|
-
/**
|
|
202
|
-
* @param callback The callback
|
|
203
|
-
*/
|
|
204
|
-
listBySubscription(callback: msRest.ServiceCallback<Models.SearchServiceListResult>): void;
|
|
205
|
-
/**
|
|
206
|
-
* @param options The optional parameters
|
|
207
|
-
* @param callback The callback
|
|
328
|
+
* @param options The options parameters.
|
|
208
329
|
*/
|
|
209
|
-
|
|
210
|
-
|
|
330
|
+
private _listBySubscription(
|
|
331
|
+
options?: ServicesListBySubscriptionOptionalParams
|
|
332
|
+
): Promise<ServicesListBySubscriptionResponse> {
|
|
211
333
|
return this.client.sendOperationRequest(
|
|
212
|
-
{
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
listBySubscriptionOperationSpec,
|
|
216
|
-
callback) as Promise<Models.ServicesListBySubscriptionResponse>;
|
|
334
|
+
{ options },
|
|
335
|
+
listBySubscriptionOperationSpec
|
|
336
|
+
);
|
|
217
337
|
}
|
|
218
338
|
|
|
219
339
|
/**
|
|
220
|
-
* Checks whether or not the given search service name is available for use. Search service names
|
|
221
|
-
*
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
*
|
|
225
|
-
*
|
|
226
|
-
* @param [options] The optional parameters
|
|
227
|
-
* @returns Promise<Models.ServicesCheckNameAvailabilityResponse>
|
|
228
|
-
*/
|
|
229
|
-
checkNameAvailability(name: string, options?: Models.ServicesCheckNameAvailabilityOptionalParams): Promise<Models.ServicesCheckNameAvailabilityResponse>;
|
|
230
|
-
/**
|
|
231
|
-
* @param name The search service name to validate. Search service names must only contain
|
|
232
|
-
* lowercase letters, digits or dashes, cannot use dash as the first two or last one characters,
|
|
233
|
-
* cannot contain consecutive dashes, and must be between 2 and 60 characters in length.
|
|
234
|
-
* @param callback The callback
|
|
340
|
+
* Checks whether or not the given search service name is available for use. Search service names must
|
|
341
|
+
* be globally unique since they are part of the service URI (https://<name>.search.windows.net).
|
|
342
|
+
* @param name The search service name to validate. Search service names must only contain lowercase
|
|
343
|
+
* letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain
|
|
344
|
+
* consecutive dashes, and must be between 2 and 60 characters in length.
|
|
345
|
+
* @param options The options parameters.
|
|
235
346
|
*/
|
|
236
|
-
checkNameAvailability(
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
* cannot contain consecutive dashes, and must be between 2 and 60 characters in length.
|
|
241
|
-
* @param options The optional parameters
|
|
242
|
-
* @param callback The callback
|
|
243
|
-
*/
|
|
244
|
-
checkNameAvailability(name: string, options: Models.ServicesCheckNameAvailabilityOptionalParams, callback: msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>): void;
|
|
245
|
-
checkNameAvailability(name: string, options?: Models.ServicesCheckNameAvailabilityOptionalParams | msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>, callback?: msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>): Promise<Models.ServicesCheckNameAvailabilityResponse> {
|
|
347
|
+
checkNameAvailability(
|
|
348
|
+
name: string,
|
|
349
|
+
options?: ServicesCheckNameAvailabilityOptionalParams
|
|
350
|
+
): Promise<ServicesCheckNameAvailabilityResponse> {
|
|
246
351
|
return this.client.sendOperationRequest(
|
|
247
|
-
{
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
},
|
|
251
|
-
checkNameAvailabilityOperationSpec,
|
|
252
|
-
callback) as Promise<Models.ServicesCheckNameAvailabilityResponse>;
|
|
352
|
+
{ name, options },
|
|
353
|
+
checkNameAvailabilityOperationSpec
|
|
354
|
+
);
|
|
253
355
|
}
|
|
254
356
|
|
|
255
357
|
/**
|
|
256
|
-
*
|
|
257
|
-
* exists, all properties will be updated with the given values.
|
|
358
|
+
* ListByResourceGroupNext
|
|
258
359
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
259
|
-
*
|
|
260
|
-
* @param
|
|
261
|
-
*
|
|
262
|
-
* the first two or last one characters, cannot contain consecutive dashes, and must be between 2
|
|
263
|
-
* and 60 characters in length. Search service names must be globally unique since they are part of
|
|
264
|
-
* the service URI (https://<name>.search.windows.net). You cannot change the service name after
|
|
265
|
-
* the service is created.
|
|
266
|
-
* @param service The definition of the search service to create or update.
|
|
267
|
-
* @param [options] The optional parameters
|
|
268
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
269
|
-
*/
|
|
270
|
-
beginCreateOrUpdate(resourceGroupName: string, searchServiceName: string, service: Models.SearchService, options?: Models.ServicesBeginCreateOrUpdateOptionalParams): Promise<msRestAzure.LROPoller> {
|
|
271
|
-
return this.client.sendLRORequest(
|
|
272
|
-
{
|
|
273
|
-
resourceGroupName,
|
|
274
|
-
searchServiceName,
|
|
275
|
-
service,
|
|
276
|
-
options
|
|
277
|
-
},
|
|
278
|
-
beginCreateOrUpdateOperationSpec,
|
|
279
|
-
options);
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
* Gets a list of all search services in the given resource group.
|
|
284
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
285
|
-
* @param [options] The optional parameters
|
|
286
|
-
* @returns Promise<Models.ServicesListByResourceGroupNextResponse>
|
|
287
|
-
*/
|
|
288
|
-
listByResourceGroupNext(nextPageLink: string, options?: Models.ServicesListByResourceGroupNextOptionalParams): Promise<Models.ServicesListByResourceGroupNextResponse>;
|
|
289
|
-
/**
|
|
290
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
291
|
-
* @param callback The callback
|
|
292
|
-
*/
|
|
293
|
-
listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.SearchServiceListResult>): void;
|
|
294
|
-
/**
|
|
295
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
296
|
-
* @param options The optional parameters
|
|
297
|
-
* @param callback The callback
|
|
360
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
361
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
362
|
+
* @param options The options parameters.
|
|
298
363
|
*/
|
|
299
|
-
|
|
300
|
-
|
|
364
|
+
private _listByResourceGroupNext(
|
|
365
|
+
resourceGroupName: string,
|
|
366
|
+
nextLink: string,
|
|
367
|
+
options?: ServicesListByResourceGroupNextOptionalParams
|
|
368
|
+
): Promise<ServicesListByResourceGroupNextResponse> {
|
|
301
369
|
return this.client.sendOperationRequest(
|
|
302
|
-
{
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
},
|
|
306
|
-
listByResourceGroupNextOperationSpec,
|
|
307
|
-
callback) as Promise<Models.ServicesListByResourceGroupNextResponse>;
|
|
370
|
+
{ resourceGroupName, nextLink, options },
|
|
371
|
+
listByResourceGroupNextOperationSpec
|
|
372
|
+
);
|
|
308
373
|
}
|
|
309
374
|
|
|
310
375
|
/**
|
|
311
|
-
*
|
|
312
|
-
* @param
|
|
313
|
-
* @param
|
|
314
|
-
* @returns Promise<Models.ServicesListBySubscriptionNextResponse>
|
|
315
|
-
*/
|
|
316
|
-
listBySubscriptionNext(nextPageLink: string, options?: Models.ServicesListBySubscriptionNextOptionalParams): Promise<Models.ServicesListBySubscriptionNextResponse>;
|
|
317
|
-
/**
|
|
318
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
319
|
-
* @param callback The callback
|
|
320
|
-
*/
|
|
321
|
-
listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.SearchServiceListResult>): void;
|
|
322
|
-
/**
|
|
323
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
324
|
-
* @param options The optional parameters
|
|
325
|
-
* @param callback The callback
|
|
376
|
+
* ListBySubscriptionNext
|
|
377
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
378
|
+
* @param options The options parameters.
|
|
326
379
|
*/
|
|
327
|
-
|
|
328
|
-
|
|
380
|
+
private _listBySubscriptionNext(
|
|
381
|
+
nextLink: string,
|
|
382
|
+
options?: ServicesListBySubscriptionNextOptionalParams
|
|
383
|
+
): Promise<ServicesListBySubscriptionNextResponse> {
|
|
329
384
|
return this.client.sendOperationRequest(
|
|
330
|
-
{
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
},
|
|
334
|
-
listBySubscriptionNextOperationSpec,
|
|
335
|
-
callback) as Promise<Models.ServicesListBySubscriptionNextResponse>;
|
|
385
|
+
{ nextLink, options },
|
|
386
|
+
listBySubscriptionNextOperationSpec
|
|
387
|
+
);
|
|
336
388
|
}
|
|
337
389
|
}
|
|
338
|
-
|
|
339
390
|
// Operation Specifications
|
|
340
|
-
const serializer =
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
path:
|
|
391
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
392
|
+
|
|
393
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
394
|
+
path:
|
|
395
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
|
|
396
|
+
httpMethod: "PUT",
|
|
397
|
+
responses: {
|
|
398
|
+
200: {
|
|
399
|
+
bodyMapper: Mappers.SearchService
|
|
400
|
+
},
|
|
401
|
+
201: {
|
|
402
|
+
bodyMapper: Mappers.SearchService
|
|
403
|
+
},
|
|
404
|
+
202: {
|
|
405
|
+
bodyMapper: Mappers.SearchService
|
|
406
|
+
},
|
|
407
|
+
204: {
|
|
408
|
+
bodyMapper: Mappers.SearchService
|
|
409
|
+
},
|
|
410
|
+
default: {
|
|
411
|
+
bodyMapper: Mappers.CloudError
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
requestBody: Parameters.service,
|
|
415
|
+
queryParameters: [Parameters.apiVersion],
|
|
344
416
|
urlParameters: [
|
|
417
|
+
Parameters.$host,
|
|
345
418
|
Parameters.resourceGroupName,
|
|
346
419
|
Parameters.searchServiceName,
|
|
347
420
|
Parameters.subscriptionId
|
|
348
421
|
],
|
|
349
|
-
queryParameters: [
|
|
350
|
-
Parameters.apiVersion
|
|
351
|
-
],
|
|
352
422
|
headerParameters: [
|
|
353
|
-
Parameters.
|
|
354
|
-
Parameters.clientRequestId
|
|
423
|
+
Parameters.accept,
|
|
424
|
+
Parameters.clientRequestId,
|
|
425
|
+
Parameters.contentType
|
|
355
426
|
],
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
}
|
|
362
|
-
|
|
427
|
+
mediaType: "json",
|
|
428
|
+
serializer
|
|
429
|
+
};
|
|
430
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
431
|
+
path:
|
|
432
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
|
|
433
|
+
httpMethod: "PATCH",
|
|
363
434
|
responses: {
|
|
364
435
|
200: {
|
|
365
436
|
bodyMapper: Mappers.SearchService
|
|
@@ -368,24 +439,26 @@ const updateOperationSpec: msRest.OperationSpec = {
|
|
|
368
439
|
bodyMapper: Mappers.CloudError
|
|
369
440
|
}
|
|
370
441
|
},
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
375
|
-
httpMethod: "GET",
|
|
376
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
|
|
442
|
+
requestBody: Parameters.service1,
|
|
443
|
+
queryParameters: [Parameters.apiVersion],
|
|
377
444
|
urlParameters: [
|
|
445
|
+
Parameters.$host,
|
|
378
446
|
Parameters.resourceGroupName,
|
|
379
447
|
Parameters.searchServiceName,
|
|
380
448
|
Parameters.subscriptionId
|
|
381
449
|
],
|
|
382
|
-
queryParameters: [
|
|
383
|
-
Parameters.apiVersion
|
|
384
|
-
],
|
|
385
450
|
headerParameters: [
|
|
386
|
-
Parameters.
|
|
387
|
-
Parameters.clientRequestId
|
|
451
|
+
Parameters.accept,
|
|
452
|
+
Parameters.clientRequestId,
|
|
453
|
+
Parameters.contentType
|
|
388
454
|
],
|
|
455
|
+
mediaType: "json",
|
|
456
|
+
serializer
|
|
457
|
+
};
|
|
458
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
459
|
+
path:
|
|
460
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
|
|
461
|
+
httpMethod: "GET",
|
|
389
462
|
responses: {
|
|
390
463
|
200: {
|
|
391
464
|
bodyMapper: Mappers.SearchService
|
|
@@ -394,24 +467,20 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
|
394
467
|
bodyMapper: Mappers.CloudError
|
|
395
468
|
}
|
|
396
469
|
},
|
|
397
|
-
|
|
398
|
-
};
|
|
399
|
-
|
|
400
|
-
const deleteMethodOperationSpec: msRest.OperationSpec = {
|
|
401
|
-
httpMethod: "DELETE",
|
|
402
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
|
|
470
|
+
queryParameters: [Parameters.apiVersion],
|
|
403
471
|
urlParameters: [
|
|
472
|
+
Parameters.$host,
|
|
404
473
|
Parameters.resourceGroupName,
|
|
405
474
|
Parameters.searchServiceName,
|
|
406
475
|
Parameters.subscriptionId
|
|
407
476
|
],
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
477
|
+
headerParameters: [Parameters.accept, Parameters.clientRequestId],
|
|
478
|
+
serializer
|
|
479
|
+
};
|
|
480
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
481
|
+
path:
|
|
482
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
|
|
483
|
+
httpMethod: "DELETE",
|
|
415
484
|
responses: {
|
|
416
485
|
200: {},
|
|
417
486
|
204: {},
|
|
@@ -420,23 +489,20 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
|
|
|
420
489
|
bodyMapper: Mappers.CloudError
|
|
421
490
|
}
|
|
422
491
|
},
|
|
423
|
-
|
|
424
|
-
};
|
|
425
|
-
|
|
426
|
-
const listByResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
427
|
-
httpMethod: "GET",
|
|
428
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices",
|
|
492
|
+
queryParameters: [Parameters.apiVersion],
|
|
429
493
|
urlParameters: [
|
|
494
|
+
Parameters.$host,
|
|
430
495
|
Parameters.resourceGroupName,
|
|
496
|
+
Parameters.searchServiceName,
|
|
431
497
|
Parameters.subscriptionId
|
|
432
498
|
],
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
499
|
+
headerParameters: [Parameters.accept, Parameters.clientRequestId],
|
|
500
|
+
serializer
|
|
501
|
+
};
|
|
502
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
503
|
+
path:
|
|
504
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices",
|
|
505
|
+
httpMethod: "GET",
|
|
440
506
|
responses: {
|
|
441
507
|
200: {
|
|
442
508
|
bodyMapper: Mappers.SearchServiceListResult
|
|
@@ -445,22 +511,19 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
|
445
511
|
bodyMapper: Mappers.CloudError
|
|
446
512
|
}
|
|
447
513
|
},
|
|
448
|
-
|
|
449
|
-
};
|
|
450
|
-
|
|
451
|
-
const listBySubscriptionOperationSpec: msRest.OperationSpec = {
|
|
452
|
-
httpMethod: "GET",
|
|
453
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.Search/searchServices",
|
|
514
|
+
queryParameters: [Parameters.apiVersion],
|
|
454
515
|
urlParameters: [
|
|
516
|
+
Parameters.$host,
|
|
517
|
+
Parameters.resourceGroupName,
|
|
455
518
|
Parameters.subscriptionId
|
|
456
519
|
],
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
520
|
+
headerParameters: [Parameters.accept, Parameters.clientRequestId],
|
|
521
|
+
serializer
|
|
522
|
+
};
|
|
523
|
+
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
524
|
+
path:
|
|
525
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.Search/searchServices",
|
|
526
|
+
httpMethod: "GET",
|
|
464
527
|
responses: {
|
|
465
528
|
200: {
|
|
466
529
|
bodyMapper: Mappers.SearchServiceListResult
|
|
@@ -469,31 +532,15 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = {
|
|
|
469
532
|
bodyMapper: Mappers.CloudError
|
|
470
533
|
}
|
|
471
534
|
},
|
|
535
|
+
queryParameters: [Parameters.apiVersion],
|
|
536
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
537
|
+
headerParameters: [Parameters.accept, Parameters.clientRequestId],
|
|
472
538
|
serializer
|
|
473
539
|
};
|
|
474
|
-
|
|
475
|
-
|
|
540
|
+
const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {
|
|
541
|
+
path:
|
|
542
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.Search/checkNameAvailability",
|
|
476
543
|
httpMethod: "POST",
|
|
477
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.Search/checkNameAvailability",
|
|
478
|
-
urlParameters: [
|
|
479
|
-
Parameters.subscriptionId
|
|
480
|
-
],
|
|
481
|
-
queryParameters: [
|
|
482
|
-
Parameters.apiVersion
|
|
483
|
-
],
|
|
484
|
-
headerParameters: [
|
|
485
|
-
Parameters.acceptLanguage,
|
|
486
|
-
Parameters.clientRequestId
|
|
487
|
-
],
|
|
488
|
-
requestBody: {
|
|
489
|
-
parameterPath: {
|
|
490
|
-
name: "name"
|
|
491
|
-
},
|
|
492
|
-
mapper: {
|
|
493
|
-
...Mappers.CheckNameAvailabilityInput,
|
|
494
|
-
required: true
|
|
495
|
-
}
|
|
496
|
-
},
|
|
497
544
|
responses: {
|
|
498
545
|
200: {
|
|
499
546
|
bodyMapper: Mappers.CheckNameAvailabilityOutput
|
|
@@ -502,59 +549,23 @@ const checkNameAvailabilityOperationSpec: msRest.OperationSpec = {
|
|
|
502
549
|
bodyMapper: Mappers.CloudError
|
|
503
550
|
}
|
|
504
551
|
},
|
|
505
|
-
serializer
|
|
506
|
-
};
|
|
507
|
-
|
|
508
|
-
const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
509
|
-
httpMethod: "PUT",
|
|
510
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
|
|
511
|
-
urlParameters: [
|
|
512
|
-
Parameters.resourceGroupName,
|
|
513
|
-
Parameters.searchServiceName,
|
|
514
|
-
Parameters.subscriptionId
|
|
515
|
-
],
|
|
516
|
-
queryParameters: [
|
|
517
|
-
Parameters.apiVersion
|
|
518
|
-
],
|
|
519
|
-
headerParameters: [
|
|
520
|
-
Parameters.acceptLanguage,
|
|
521
|
-
Parameters.clientRequestId
|
|
522
|
-
],
|
|
523
552
|
requestBody: {
|
|
524
|
-
parameterPath: "
|
|
525
|
-
mapper: {
|
|
526
|
-
...Mappers.SearchService,
|
|
527
|
-
required: true
|
|
528
|
-
}
|
|
529
|
-
},
|
|
530
|
-
responses: {
|
|
531
|
-
200: {
|
|
532
|
-
bodyMapper: Mappers.SearchService
|
|
533
|
-
},
|
|
534
|
-
201: {
|
|
535
|
-
bodyMapper: Mappers.SearchService
|
|
536
|
-
},
|
|
537
|
-
default: {
|
|
538
|
-
bodyMapper: Mappers.CloudError
|
|
539
|
-
}
|
|
553
|
+
parameterPath: { name: ["name"], typeParam: ["typeParam"] },
|
|
554
|
+
mapper: { ...Mappers.CheckNameAvailabilityInput, required: true }
|
|
540
555
|
},
|
|
556
|
+
queryParameters: [Parameters.apiVersion],
|
|
557
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
558
|
+
headerParameters: [
|
|
559
|
+
Parameters.accept,
|
|
560
|
+
Parameters.clientRequestId,
|
|
561
|
+
Parameters.contentType
|
|
562
|
+
],
|
|
563
|
+
mediaType: "json",
|
|
541
564
|
serializer
|
|
542
565
|
};
|
|
543
|
-
|
|
544
|
-
const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
545
|
-
httpMethod: "GET",
|
|
546
|
-
baseUrl: "https://management.azure.com",
|
|
566
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
547
567
|
path: "{nextLink}",
|
|
548
|
-
|
|
549
|
-
Parameters.nextPageLink
|
|
550
|
-
],
|
|
551
|
-
queryParameters: [
|
|
552
|
-
Parameters.apiVersion
|
|
553
|
-
],
|
|
554
|
-
headerParameters: [
|
|
555
|
-
Parameters.acceptLanguage,
|
|
556
|
-
Parameters.clientRequestId
|
|
557
|
-
],
|
|
568
|
+
httpMethod: "GET",
|
|
558
569
|
responses: {
|
|
559
570
|
200: {
|
|
560
571
|
bodyMapper: Mappers.SearchServiceListResult
|
|
@@ -563,23 +574,19 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
|
563
574
|
bodyMapper: Mappers.CloudError
|
|
564
575
|
}
|
|
565
576
|
},
|
|
577
|
+
queryParameters: [Parameters.apiVersion],
|
|
578
|
+
urlParameters: [
|
|
579
|
+
Parameters.$host,
|
|
580
|
+
Parameters.resourceGroupName,
|
|
581
|
+
Parameters.subscriptionId,
|
|
582
|
+
Parameters.nextLink
|
|
583
|
+
],
|
|
584
|
+
headerParameters: [Parameters.accept, Parameters.clientRequestId],
|
|
566
585
|
serializer
|
|
567
586
|
};
|
|
568
|
-
|
|
569
|
-
const listBySubscriptionNextOperationSpec: msRest.OperationSpec = {
|
|
570
|
-
httpMethod: "GET",
|
|
571
|
-
baseUrl: "https://management.azure.com",
|
|
587
|
+
const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
572
588
|
path: "{nextLink}",
|
|
573
|
-
|
|
574
|
-
Parameters.nextPageLink
|
|
575
|
-
],
|
|
576
|
-
queryParameters: [
|
|
577
|
-
Parameters.apiVersion
|
|
578
|
-
],
|
|
579
|
-
headerParameters: [
|
|
580
|
-
Parameters.acceptLanguage,
|
|
581
|
-
Parameters.clientRequestId
|
|
582
|
-
],
|
|
589
|
+
httpMethod: "GET",
|
|
583
590
|
responses: {
|
|
584
591
|
200: {
|
|
585
592
|
bodyMapper: Mappers.SearchServiceListResult
|
|
@@ -588,5 +595,12 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = {
|
|
|
588
595
|
bodyMapper: Mappers.CloudError
|
|
589
596
|
}
|
|
590
597
|
},
|
|
598
|
+
queryParameters: [Parameters.apiVersion],
|
|
599
|
+
urlParameters: [
|
|
600
|
+
Parameters.$host,
|
|
601
|
+
Parameters.subscriptionId,
|
|
602
|
+
Parameters.nextLink
|
|
603
|
+
],
|
|
604
|
+
headerParameters: [Parameters.accept, Parameters.clientRequestId],
|
|
591
605
|
serializer
|
|
592
606
|
};
|