@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,358 +3,507 @@
|
|
|
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 { SharedPrivateLinkResources } 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
|
+
SharedPrivateLinkResource,
|
|
19
|
+
SharedPrivateLinkResourcesListByServiceNextOptionalParams,
|
|
20
|
+
SharedPrivateLinkResourcesListByServiceOptionalParams,
|
|
21
|
+
SharedPrivateLinkResourcesCreateOrUpdateOptionalParams,
|
|
22
|
+
SharedPrivateLinkResourcesCreateOrUpdateResponse,
|
|
23
|
+
SharedPrivateLinkResourcesGetOptionalParams,
|
|
24
|
+
SharedPrivateLinkResourcesGetResponse,
|
|
25
|
+
SharedPrivateLinkResourcesDeleteOptionalParams,
|
|
26
|
+
SharedPrivateLinkResourcesListByServiceResponse,
|
|
27
|
+
SharedPrivateLinkResourcesListByServiceNextResponse
|
|
28
|
+
} from "../models";
|
|
16
29
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
30
|
+
/// <reference lib="esnext.asynciterable" />
|
|
31
|
+
/** Class containing SharedPrivateLinkResources operations. */
|
|
32
|
+
export class SharedPrivateLinkResourcesImpl
|
|
33
|
+
implements SharedPrivateLinkResources {
|
|
34
|
+
private readonly client: SearchManagementClient;
|
|
20
35
|
|
|
21
36
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
37
|
+
* Initialize a new instance of the class SharedPrivateLinkResources class.
|
|
38
|
+
* @param client Reference to the service client
|
|
24
39
|
*/
|
|
25
|
-
constructor(client:
|
|
40
|
+
constructor(client: SearchManagementClient) {
|
|
26
41
|
this.client = client;
|
|
27
42
|
}
|
|
28
43
|
|
|
29
44
|
/**
|
|
30
|
-
*
|
|
31
|
-
* in the given resource group.
|
|
45
|
+
* Gets a list of all shared private link resources managed by the given service.
|
|
32
46
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
33
|
-
*
|
|
47
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
34
48
|
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
35
|
-
*
|
|
36
|
-
* @param
|
|
37
|
-
* Azure Cognitive Search service within the specified resource group.
|
|
38
|
-
* @param sharedPrivateLinkResource The definition of the shared private link resource to create or
|
|
39
|
-
* update.
|
|
40
|
-
* @param [options] The optional parameters
|
|
41
|
-
* @returns Promise<Models.SharedPrivateLinkResourcesCreateOrUpdateResponse>
|
|
49
|
+
* specified resource group.
|
|
50
|
+
* @param options The options parameters.
|
|
42
51
|
*/
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
52
|
+
public listByService(
|
|
53
|
+
resourceGroupName: string,
|
|
54
|
+
searchServiceName: string,
|
|
55
|
+
options?: SharedPrivateLinkResourcesListByServiceOptionalParams
|
|
56
|
+
): PagedAsyncIterableIterator<SharedPrivateLinkResource> {
|
|
57
|
+
const iter = this.listByServicePagingAll(
|
|
58
|
+
resourceGroupName,
|
|
59
|
+
searchServiceName,
|
|
60
|
+
options
|
|
61
|
+
);
|
|
62
|
+
return {
|
|
63
|
+
next() {
|
|
64
|
+
return iter.next();
|
|
65
|
+
},
|
|
66
|
+
[Symbol.asyncIterator]() {
|
|
67
|
+
return this;
|
|
68
|
+
},
|
|
69
|
+
byPage: () => {
|
|
70
|
+
return this.listByServicePagingPage(
|
|
71
|
+
resourceGroupName,
|
|
72
|
+
searchServiceName,
|
|
73
|
+
options
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
private async *listByServicePagingPage(
|
|
80
|
+
resourceGroupName: string,
|
|
81
|
+
searchServiceName: string,
|
|
82
|
+
options?: SharedPrivateLinkResourcesListByServiceOptionalParams
|
|
83
|
+
): AsyncIterableIterator<SharedPrivateLinkResource[]> {
|
|
84
|
+
let result = await this._listByService(
|
|
85
|
+
resourceGroupName,
|
|
86
|
+
searchServiceName,
|
|
87
|
+
options
|
|
88
|
+
);
|
|
89
|
+
yield result.value || [];
|
|
90
|
+
let continuationToken = result.nextLink;
|
|
91
|
+
while (continuationToken) {
|
|
92
|
+
result = await this._listByServiceNext(
|
|
93
|
+
resourceGroupName,
|
|
94
|
+
searchServiceName,
|
|
95
|
+
continuationToken,
|
|
96
|
+
options
|
|
97
|
+
);
|
|
98
|
+
continuationToken = result.nextLink;
|
|
99
|
+
yield result.value || [];
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
private async *listByServicePagingAll(
|
|
104
|
+
resourceGroupName: string,
|
|
105
|
+
searchServiceName: string,
|
|
106
|
+
options?: SharedPrivateLinkResourcesListByServiceOptionalParams
|
|
107
|
+
): AsyncIterableIterator<SharedPrivateLinkResource> {
|
|
108
|
+
for await (const page of this.listByServicePagingPage(
|
|
109
|
+
resourceGroupName,
|
|
110
|
+
searchServiceName,
|
|
111
|
+
options
|
|
112
|
+
)) {
|
|
113
|
+
yield* page;
|
|
114
|
+
}
|
|
46
115
|
}
|
|
47
116
|
|
|
48
117
|
/**
|
|
49
|
-
*
|
|
50
|
-
* resource group.
|
|
51
|
-
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
52
|
-
* obtain this value from the Azure Resource Manager API or the portal.
|
|
53
|
-
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
54
|
-
* specified resource group.
|
|
55
|
-
* @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
|
|
56
|
-
* Azure Cognitive Search service within the specified resource group.
|
|
57
|
-
* @param [options] The optional parameters
|
|
58
|
-
* @returns Promise<Models.SharedPrivateLinkResourcesGetResponse>
|
|
59
|
-
*/
|
|
60
|
-
get(resourceGroupName: string, searchServiceName: string, sharedPrivateLinkResourceName: string, options?: Models.SharedPrivateLinkResourcesGetOptionalParams): Promise<Models.SharedPrivateLinkResourcesGetResponse>;
|
|
61
|
-
/**
|
|
62
|
-
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
63
|
-
* obtain this value from the Azure Resource Manager API or the portal.
|
|
64
|
-
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
65
|
-
* specified resource group.
|
|
66
|
-
* @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
|
|
67
|
-
* Azure Cognitive Search service within the specified resource group.
|
|
68
|
-
* @param callback The callback
|
|
69
|
-
*/
|
|
70
|
-
get(resourceGroupName: string, searchServiceName: string, sharedPrivateLinkResourceName: string, callback: msRest.ServiceCallback<Models.SharedPrivateLinkResource>): void;
|
|
71
|
-
/**
|
|
118
|
+
* Initiates the creation or update of a shared private link resource managed by the search service in
|
|
119
|
+
* the given resource group.
|
|
72
120
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
73
|
-
*
|
|
121
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
74
122
|
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
75
|
-
*
|
|
123
|
+
* specified resource group.
|
|
76
124
|
* @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
|
|
77
|
-
*
|
|
78
|
-
* @param
|
|
79
|
-
*
|
|
125
|
+
* Azure Cognitive Search service within the specified resource group.
|
|
126
|
+
* @param sharedPrivateLinkResource The definition of the shared private link resource to create or
|
|
127
|
+
* update.
|
|
128
|
+
* @param options The options parameters.
|
|
80
129
|
*/
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
130
|
+
async beginCreateOrUpdate(
|
|
131
|
+
resourceGroupName: string,
|
|
132
|
+
searchServiceName: string,
|
|
133
|
+
sharedPrivateLinkResourceName: string,
|
|
134
|
+
sharedPrivateLinkResource: SharedPrivateLinkResource,
|
|
135
|
+
options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams
|
|
136
|
+
): Promise<
|
|
137
|
+
PollerLike<
|
|
138
|
+
PollOperationState<SharedPrivateLinkResourcesCreateOrUpdateResponse>,
|
|
139
|
+
SharedPrivateLinkResourcesCreateOrUpdateResponse
|
|
140
|
+
>
|
|
141
|
+
> {
|
|
142
|
+
const directSendOperation = async (
|
|
143
|
+
args: coreClient.OperationArguments,
|
|
144
|
+
spec: coreClient.OperationSpec
|
|
145
|
+
): Promise<SharedPrivateLinkResourcesCreateOrUpdateResponse> => {
|
|
146
|
+
return this.client.sendOperationRequest(args, spec);
|
|
147
|
+
};
|
|
148
|
+
const sendOperation = async (
|
|
149
|
+
args: coreClient.OperationArguments,
|
|
150
|
+
spec: coreClient.OperationSpec
|
|
151
|
+
) => {
|
|
152
|
+
let currentRawResponse:
|
|
153
|
+
| coreClient.FullOperationResponse
|
|
154
|
+
| undefined = undefined;
|
|
155
|
+
const providedCallback = args.options?.onResponse;
|
|
156
|
+
const callback: coreClient.RawResponseCallback = (
|
|
157
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
158
|
+
flatResponse: unknown
|
|
159
|
+
) => {
|
|
160
|
+
currentRawResponse = rawResponse;
|
|
161
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
162
|
+
};
|
|
163
|
+
const updatedArgs = {
|
|
164
|
+
...args,
|
|
165
|
+
options: {
|
|
166
|
+
...args.options,
|
|
167
|
+
onResponse: callback
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
171
|
+
return {
|
|
172
|
+
flatResponse,
|
|
173
|
+
rawResponse: {
|
|
174
|
+
statusCode: currentRawResponse!.status,
|
|
175
|
+
body: currentRawResponse!.parsedBody,
|
|
176
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
const lro = new LroImpl(
|
|
182
|
+
sendOperation,
|
|
84
183
|
{
|
|
85
184
|
resourceGroupName,
|
|
86
185
|
searchServiceName,
|
|
87
186
|
sharedPrivateLinkResourceName,
|
|
187
|
+
sharedPrivateLinkResource,
|
|
88
188
|
options
|
|
89
189
|
},
|
|
90
|
-
|
|
91
|
-
|
|
190
|
+
createOrUpdateOperationSpec
|
|
191
|
+
);
|
|
192
|
+
return new LroEngine(lro, {
|
|
193
|
+
resumeFrom: options?.resumeFrom,
|
|
194
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
195
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
196
|
+
});
|
|
92
197
|
}
|
|
93
198
|
|
|
94
199
|
/**
|
|
95
|
-
* Initiates the
|
|
200
|
+
* Initiates the creation or update of a shared private link resource managed by the search service in
|
|
201
|
+
* the given resource group.
|
|
96
202
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
97
|
-
*
|
|
203
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
98
204
|
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
99
|
-
*
|
|
205
|
+
* specified resource group.
|
|
100
206
|
* @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
|
|
101
|
-
*
|
|
102
|
-
* @param
|
|
103
|
-
*
|
|
207
|
+
* Azure Cognitive Search service within the specified resource group.
|
|
208
|
+
* @param sharedPrivateLinkResource The definition of the shared private link resource to create or
|
|
209
|
+
* update.
|
|
210
|
+
* @param options The options parameters.
|
|
104
211
|
*/
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
212
|
+
async beginCreateOrUpdateAndWait(
|
|
213
|
+
resourceGroupName: string,
|
|
214
|
+
searchServiceName: string,
|
|
215
|
+
sharedPrivateLinkResourceName: string,
|
|
216
|
+
sharedPrivateLinkResource: SharedPrivateLinkResource,
|
|
217
|
+
options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams
|
|
218
|
+
): Promise<SharedPrivateLinkResourcesCreateOrUpdateResponse> {
|
|
219
|
+
const poller = await this.beginCreateOrUpdate(
|
|
220
|
+
resourceGroupName,
|
|
221
|
+
searchServiceName,
|
|
222
|
+
sharedPrivateLinkResourceName,
|
|
223
|
+
sharedPrivateLinkResource,
|
|
224
|
+
options
|
|
225
|
+
);
|
|
226
|
+
return poller.pollUntilDone();
|
|
108
227
|
}
|
|
109
228
|
|
|
110
229
|
/**
|
|
111
|
-
* Gets
|
|
112
|
-
*
|
|
113
|
-
* obtain this value from the Azure Resource Manager API or the portal.
|
|
114
|
-
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
115
|
-
* specified resource group.
|
|
116
|
-
* @param [options] The optional parameters
|
|
117
|
-
* @returns Promise<Models.SharedPrivateLinkResourcesListByServiceResponse>
|
|
118
|
-
*/
|
|
119
|
-
listByService(resourceGroupName: string, searchServiceName: string, options?: Models.SharedPrivateLinkResourcesListByServiceOptionalParams): Promise<Models.SharedPrivateLinkResourcesListByServiceResponse>;
|
|
120
|
-
/**
|
|
121
|
-
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
122
|
-
* obtain this value from the Azure Resource Manager API or the portal.
|
|
123
|
-
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
124
|
-
* specified resource group.
|
|
125
|
-
* @param callback The callback
|
|
126
|
-
*/
|
|
127
|
-
listByService(resourceGroupName: string, searchServiceName: string, callback: msRest.ServiceCallback<Models.SharedPrivateLinkResourceListResult>): void;
|
|
128
|
-
/**
|
|
230
|
+
* Gets the details of the shared private link resource managed by the search service in the given
|
|
231
|
+
* resource group.
|
|
129
232
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
130
|
-
*
|
|
233
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
131
234
|
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
132
|
-
*
|
|
133
|
-
* @param
|
|
134
|
-
*
|
|
235
|
+
* specified resource group.
|
|
236
|
+
* @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
|
|
237
|
+
* Azure Cognitive Search service within the specified resource group.
|
|
238
|
+
* @param options The options parameters.
|
|
135
239
|
*/
|
|
136
|
-
|
|
137
|
-
|
|
240
|
+
get(
|
|
241
|
+
resourceGroupName: string,
|
|
242
|
+
searchServiceName: string,
|
|
243
|
+
sharedPrivateLinkResourceName: string,
|
|
244
|
+
options?: SharedPrivateLinkResourcesGetOptionalParams
|
|
245
|
+
): Promise<SharedPrivateLinkResourcesGetResponse> {
|
|
138
246
|
return this.client.sendOperationRequest(
|
|
139
247
|
{
|
|
140
248
|
resourceGroupName,
|
|
141
249
|
searchServiceName,
|
|
250
|
+
sharedPrivateLinkResourceName,
|
|
142
251
|
options
|
|
143
252
|
},
|
|
144
|
-
|
|
145
|
-
|
|
253
|
+
getOperationSpec
|
|
254
|
+
);
|
|
146
255
|
}
|
|
147
256
|
|
|
148
257
|
/**
|
|
149
|
-
* Initiates the
|
|
150
|
-
* in the given resource group.
|
|
258
|
+
* Initiates the deletion of the shared private link resource from the search service.
|
|
151
259
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
152
|
-
*
|
|
260
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
153
261
|
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
154
|
-
*
|
|
262
|
+
* specified resource group.
|
|
155
263
|
* @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
|
|
156
|
-
*
|
|
157
|
-
* @param
|
|
158
|
-
* update.
|
|
159
|
-
* @param [options] The optional parameters
|
|
160
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
264
|
+
* Azure Cognitive Search service within the specified resource group.
|
|
265
|
+
* @param options The options parameters.
|
|
161
266
|
*/
|
|
162
|
-
|
|
163
|
-
|
|
267
|
+
async beginDelete(
|
|
268
|
+
resourceGroupName: string,
|
|
269
|
+
searchServiceName: string,
|
|
270
|
+
sharedPrivateLinkResourceName: string,
|
|
271
|
+
options?: SharedPrivateLinkResourcesDeleteOptionalParams
|
|
272
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
273
|
+
const directSendOperation = async (
|
|
274
|
+
args: coreClient.OperationArguments,
|
|
275
|
+
spec: coreClient.OperationSpec
|
|
276
|
+
): Promise<void> => {
|
|
277
|
+
return this.client.sendOperationRequest(args, spec);
|
|
278
|
+
};
|
|
279
|
+
const sendOperation = async (
|
|
280
|
+
args: coreClient.OperationArguments,
|
|
281
|
+
spec: coreClient.OperationSpec
|
|
282
|
+
) => {
|
|
283
|
+
let currentRawResponse:
|
|
284
|
+
| coreClient.FullOperationResponse
|
|
285
|
+
| undefined = undefined;
|
|
286
|
+
const providedCallback = args.options?.onResponse;
|
|
287
|
+
const callback: coreClient.RawResponseCallback = (
|
|
288
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
289
|
+
flatResponse: unknown
|
|
290
|
+
) => {
|
|
291
|
+
currentRawResponse = rawResponse;
|
|
292
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
293
|
+
};
|
|
294
|
+
const updatedArgs = {
|
|
295
|
+
...args,
|
|
296
|
+
options: {
|
|
297
|
+
...args.options,
|
|
298
|
+
onResponse: callback
|
|
299
|
+
}
|
|
300
|
+
};
|
|
301
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
302
|
+
return {
|
|
303
|
+
flatResponse,
|
|
304
|
+
rawResponse: {
|
|
305
|
+
statusCode: currentRawResponse!.status,
|
|
306
|
+
body: currentRawResponse!.parsedBody,
|
|
307
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
const lro = new LroImpl(
|
|
313
|
+
sendOperation,
|
|
164
314
|
{
|
|
165
315
|
resourceGroupName,
|
|
166
316
|
searchServiceName,
|
|
167
317
|
sharedPrivateLinkResourceName,
|
|
168
|
-
sharedPrivateLinkResource,
|
|
169
318
|
options
|
|
170
319
|
},
|
|
171
|
-
|
|
172
|
-
|
|
320
|
+
deleteOperationSpec
|
|
321
|
+
);
|
|
322
|
+
return new LroEngine(lro, {
|
|
323
|
+
resumeFrom: options?.resumeFrom,
|
|
324
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
325
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
326
|
+
});
|
|
173
327
|
}
|
|
174
328
|
|
|
175
329
|
/**
|
|
176
330
|
* Initiates the deletion of the shared private link resource from the search service.
|
|
177
331
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
178
|
-
*
|
|
332
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
179
333
|
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
180
|
-
*
|
|
334
|
+
* specified resource group.
|
|
181
335
|
* @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
|
|
182
|
-
*
|
|
183
|
-
* @param
|
|
184
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
336
|
+
* Azure Cognitive Search service within the specified resource group.
|
|
337
|
+
* @param options The options parameters.
|
|
185
338
|
*/
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
339
|
+
async beginDeleteAndWait(
|
|
340
|
+
resourceGroupName: string,
|
|
341
|
+
searchServiceName: string,
|
|
342
|
+
sharedPrivateLinkResourceName: string,
|
|
343
|
+
options?: SharedPrivateLinkResourcesDeleteOptionalParams
|
|
344
|
+
): Promise<void> {
|
|
345
|
+
const poller = await this.beginDelete(
|
|
346
|
+
resourceGroupName,
|
|
347
|
+
searchServiceName,
|
|
348
|
+
sharedPrivateLinkResourceName,
|
|
349
|
+
options
|
|
350
|
+
);
|
|
351
|
+
return poller.pollUntilDone();
|
|
196
352
|
}
|
|
197
353
|
|
|
198
354
|
/**
|
|
199
355
|
* Gets a list of all shared private link resources managed by the given service.
|
|
200
|
-
* @param
|
|
201
|
-
*
|
|
202
|
-
* @
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
207
|
-
* @param callback The callback
|
|
356
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
357
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
358
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
359
|
+
* specified resource group.
|
|
360
|
+
* @param options The options parameters.
|
|
208
361
|
*/
|
|
209
|
-
|
|
362
|
+
private _listByService(
|
|
363
|
+
resourceGroupName: string,
|
|
364
|
+
searchServiceName: string,
|
|
365
|
+
options?: SharedPrivateLinkResourcesListByServiceOptionalParams
|
|
366
|
+
): Promise<SharedPrivateLinkResourcesListByServiceResponse> {
|
|
367
|
+
return this.client.sendOperationRequest(
|
|
368
|
+
{ resourceGroupName, searchServiceName, options },
|
|
369
|
+
listByServiceOperationSpec
|
|
370
|
+
);
|
|
371
|
+
}
|
|
372
|
+
|
|
210
373
|
/**
|
|
211
|
-
*
|
|
212
|
-
* @param
|
|
213
|
-
*
|
|
374
|
+
* ListByServiceNext
|
|
375
|
+
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
376
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
377
|
+
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
378
|
+
* specified resource group.
|
|
379
|
+
* @param nextLink The nextLink from the previous successful call to the ListByService method.
|
|
380
|
+
* @param options The options parameters.
|
|
214
381
|
*/
|
|
215
|
-
|
|
216
|
-
|
|
382
|
+
private _listByServiceNext(
|
|
383
|
+
resourceGroupName: string,
|
|
384
|
+
searchServiceName: string,
|
|
385
|
+
nextLink: string,
|
|
386
|
+
options?: SharedPrivateLinkResourcesListByServiceNextOptionalParams
|
|
387
|
+
): Promise<SharedPrivateLinkResourcesListByServiceNextResponse> {
|
|
217
388
|
return this.client.sendOperationRequest(
|
|
218
|
-
{
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
},
|
|
222
|
-
listByServiceNextOperationSpec,
|
|
223
|
-
callback) as Promise<Models.SharedPrivateLinkResourcesListByServiceNextResponse>;
|
|
389
|
+
{ resourceGroupName, searchServiceName, nextLink, options },
|
|
390
|
+
listByServiceNextOperationSpec
|
|
391
|
+
);
|
|
224
392
|
}
|
|
225
393
|
}
|
|
226
|
-
|
|
227
394
|
// Operation Specifications
|
|
228
|
-
const serializer =
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
path:
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
Parameters.searchServiceName,
|
|
235
|
-
Parameters.sharedPrivateLinkResourceName,
|
|
236
|
-
Parameters.subscriptionId
|
|
237
|
-
],
|
|
238
|
-
queryParameters: [
|
|
239
|
-
Parameters.apiVersion
|
|
240
|
-
],
|
|
241
|
-
headerParameters: [
|
|
242
|
-
Parameters.acceptLanguage,
|
|
243
|
-
Parameters.clientRequestId
|
|
244
|
-
],
|
|
395
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
396
|
+
|
|
397
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
398
|
+
path:
|
|
399
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}",
|
|
400
|
+
httpMethod: "PUT",
|
|
245
401
|
responses: {
|
|
246
402
|
200: {
|
|
247
403
|
bodyMapper: Mappers.SharedPrivateLinkResource
|
|
248
404
|
},
|
|
405
|
+
201: {
|
|
406
|
+
bodyMapper: Mappers.SharedPrivateLinkResource
|
|
407
|
+
},
|
|
408
|
+
202: {
|
|
409
|
+
bodyMapper: Mappers.SharedPrivateLinkResource
|
|
410
|
+
},
|
|
411
|
+
204: {
|
|
412
|
+
bodyMapper: Mappers.SharedPrivateLinkResource
|
|
413
|
+
},
|
|
249
414
|
default: {
|
|
250
415
|
bodyMapper: Mappers.CloudError
|
|
251
416
|
}
|
|
252
417
|
},
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
const listByServiceOperationSpec: msRest.OperationSpec = {
|
|
257
|
-
httpMethod: "GET",
|
|
258
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources",
|
|
418
|
+
requestBody: Parameters.sharedPrivateLinkResource,
|
|
419
|
+
queryParameters: [Parameters.apiVersion],
|
|
259
420
|
urlParameters: [
|
|
260
|
-
Parameters
|
|
421
|
+
Parameters.$host,
|
|
261
422
|
Parameters.resourceGroupName,
|
|
262
|
-
Parameters.searchServiceName
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
Parameters.apiVersion
|
|
423
|
+
Parameters.searchServiceName,
|
|
424
|
+
Parameters.subscriptionId,
|
|
425
|
+
Parameters.sharedPrivateLinkResourceName
|
|
266
426
|
],
|
|
267
427
|
headerParameters: [
|
|
268
|
-
Parameters.
|
|
269
|
-
Parameters.clientRequestId
|
|
428
|
+
Parameters.accept,
|
|
429
|
+
Parameters.clientRequestId,
|
|
430
|
+
Parameters.contentType
|
|
270
431
|
],
|
|
432
|
+
mediaType: "json",
|
|
433
|
+
serializer
|
|
434
|
+
};
|
|
435
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
436
|
+
path:
|
|
437
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}",
|
|
438
|
+
httpMethod: "GET",
|
|
271
439
|
responses: {
|
|
272
440
|
200: {
|
|
273
|
-
bodyMapper: Mappers.
|
|
441
|
+
bodyMapper: Mappers.SharedPrivateLinkResource
|
|
274
442
|
},
|
|
275
443
|
default: {
|
|
276
444
|
bodyMapper: Mappers.CloudError
|
|
277
445
|
}
|
|
278
446
|
},
|
|
279
|
-
|
|
280
|
-
};
|
|
281
|
-
|
|
282
|
-
const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
283
|
-
httpMethod: "PUT",
|
|
284
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}",
|
|
447
|
+
queryParameters: [Parameters.apiVersion],
|
|
285
448
|
urlParameters: [
|
|
449
|
+
Parameters.$host,
|
|
286
450
|
Parameters.resourceGroupName,
|
|
287
451
|
Parameters.searchServiceName,
|
|
288
|
-
Parameters.
|
|
289
|
-
Parameters.
|
|
290
|
-
],
|
|
291
|
-
queryParameters: [
|
|
292
|
-
Parameters.apiVersion
|
|
293
|
-
],
|
|
294
|
-
headerParameters: [
|
|
295
|
-
Parameters.acceptLanguage,
|
|
296
|
-
Parameters.clientRequestId
|
|
452
|
+
Parameters.subscriptionId,
|
|
453
|
+
Parameters.sharedPrivateLinkResourceName
|
|
297
454
|
],
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
}
|
|
304
|
-
|
|
455
|
+
headerParameters: [Parameters.accept, Parameters.clientRequestId],
|
|
456
|
+
serializer
|
|
457
|
+
};
|
|
458
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
459
|
+
path:
|
|
460
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}",
|
|
461
|
+
httpMethod: "DELETE",
|
|
305
462
|
responses: {
|
|
306
|
-
200: {
|
|
307
|
-
|
|
308
|
-
},
|
|
463
|
+
200: {},
|
|
464
|
+
201: {},
|
|
309
465
|
202: {},
|
|
466
|
+
204: {},
|
|
310
467
|
default: {
|
|
311
468
|
bodyMapper: Mappers.CloudError
|
|
312
469
|
}
|
|
313
470
|
},
|
|
314
|
-
|
|
315
|
-
};
|
|
316
|
-
|
|
317
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
318
|
-
httpMethod: "DELETE",
|
|
319
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}",
|
|
471
|
+
queryParameters: [Parameters.apiVersion],
|
|
320
472
|
urlParameters: [
|
|
473
|
+
Parameters.$host,
|
|
321
474
|
Parameters.resourceGroupName,
|
|
322
475
|
Parameters.searchServiceName,
|
|
323
|
-
Parameters.
|
|
324
|
-
Parameters.
|
|
325
|
-
],
|
|
326
|
-
queryParameters: [
|
|
327
|
-
Parameters.apiVersion
|
|
328
|
-
],
|
|
329
|
-
headerParameters: [
|
|
330
|
-
Parameters.acceptLanguage,
|
|
331
|
-
Parameters.clientRequestId
|
|
476
|
+
Parameters.subscriptionId,
|
|
477
|
+
Parameters.sharedPrivateLinkResourceName
|
|
332
478
|
],
|
|
479
|
+
headerParameters: [Parameters.accept, Parameters.clientRequestId],
|
|
480
|
+
serializer
|
|
481
|
+
};
|
|
482
|
+
const listByServiceOperationSpec: coreClient.OperationSpec = {
|
|
483
|
+
path:
|
|
484
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources",
|
|
485
|
+
httpMethod: "GET",
|
|
333
486
|
responses: {
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
487
|
+
200: {
|
|
488
|
+
bodyMapper: Mappers.SharedPrivateLinkResourceListResult
|
|
489
|
+
},
|
|
337
490
|
default: {
|
|
338
491
|
bodyMapper: Mappers.CloudError
|
|
339
492
|
}
|
|
340
493
|
},
|
|
494
|
+
queryParameters: [Parameters.apiVersion],
|
|
495
|
+
urlParameters: [
|
|
496
|
+
Parameters.$host,
|
|
497
|
+
Parameters.resourceGroupName,
|
|
498
|
+
Parameters.searchServiceName,
|
|
499
|
+
Parameters.subscriptionId
|
|
500
|
+
],
|
|
501
|
+
headerParameters: [Parameters.accept, Parameters.clientRequestId],
|
|
341
502
|
serializer
|
|
342
503
|
};
|
|
343
|
-
|
|
344
|
-
const listByServiceNextOperationSpec: msRest.OperationSpec = {
|
|
345
|
-
httpMethod: "GET",
|
|
346
|
-
baseUrl: "https://management.azure.com",
|
|
504
|
+
const listByServiceNextOperationSpec: coreClient.OperationSpec = {
|
|
347
505
|
path: "{nextLink}",
|
|
348
|
-
|
|
349
|
-
Parameters.nextPageLink
|
|
350
|
-
],
|
|
351
|
-
queryParameters: [
|
|
352
|
-
Parameters.apiVersion
|
|
353
|
-
],
|
|
354
|
-
headerParameters: [
|
|
355
|
-
Parameters.acceptLanguage,
|
|
356
|
-
Parameters.clientRequestId
|
|
357
|
-
],
|
|
506
|
+
httpMethod: "GET",
|
|
358
507
|
responses: {
|
|
359
508
|
200: {
|
|
360
509
|
bodyMapper: Mappers.SharedPrivateLinkResourceListResult
|
|
@@ -363,5 +512,14 @@ const listByServiceNextOperationSpec: msRest.OperationSpec = {
|
|
|
363
512
|
bodyMapper: Mappers.CloudError
|
|
364
513
|
}
|
|
365
514
|
},
|
|
515
|
+
queryParameters: [Parameters.apiVersion],
|
|
516
|
+
urlParameters: [
|
|
517
|
+
Parameters.$host,
|
|
518
|
+
Parameters.resourceGroupName,
|
|
519
|
+
Parameters.searchServiceName,
|
|
520
|
+
Parameters.subscriptionId,
|
|
521
|
+
Parameters.nextLink
|
|
522
|
+
],
|
|
523
|
+
headerParameters: [Parameters.accept, Parameters.clientRequestId],
|
|
366
524
|
serializer
|
|
367
525
|
};
|