@azure/arm-search 3.2.0 → 3.3.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 +53 -0
- package/LICENSE +1 -1
- package/README.md +2 -2
- package/dist/index.js +1805 -777
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/adminKeysGetSample.js +3 -3
- package/dist-esm/samples-dev/adminKeysRegenerateSample.js +1 -1
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.js +39 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListByServiceSample.d.ts +2 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListByServiceSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListByServiceSample.js +54 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListByServiceSample.js.map +1 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.d.ts +2 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.js +39 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +3 -3
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListByServiceSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListByServiceSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.js +8 -8
- package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListSupportedSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListSupportedSample.js.map +1 -1
- package/dist-esm/samples-dev/queryKeysCreateSample.js +2 -2
- package/dist-esm/samples-dev/queryKeysCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/queryKeysDeleteSample.js +1 -1
- package/dist-esm/samples-dev/queryKeysListBySearchServiceSample.js +3 -3
- package/dist-esm/samples-dev/queryKeysListBySearchServiceSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.js +1 -1
- package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js +81 -19
- package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/servicesGetSample.js +1 -1
- package/dist-esm/samples-dev/servicesListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/servicesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/servicesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesUpdateSample.js +68 -18
- package/dist-esm/samples-dev/servicesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/sharedPrivateLinkResourcesCreateOrUpdateSample.js +4 -4
- package/dist-esm/samples-dev/sharedPrivateLinkResourcesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/sharedPrivateLinkResourcesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/sharedPrivateLinkResourcesGetSample.js +1 -1
- package/dist-esm/samples-dev/sharedPrivateLinkResourcesListByServiceSample.js +1 -1
- package/dist-esm/samples-dev/sharedPrivateLinkResourcesListByServiceSample.js.map +1 -1
- package/dist-esm/samples-dev/usageBySubscriptionSkuSample.js +1 -1
- package/dist-esm/samples-dev/usagesListBySubscriptionSample.js +3 -3
- package/dist-esm/samples-dev/usagesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +508 -113
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +90 -12
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +19 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +1028 -411
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +2 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +85 -57
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/adminKeys.d.ts +5 -5
- package/dist-esm/src/operations/adminKeys.js +15 -15
- package/dist-esm/src/operations/adminKeys.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +1 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/networkSecurityPerimeterConfigurations.d.ts +79 -0
- package/dist-esm/src/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist-esm/src/operations/networkSecurityPerimeterConfigurations.js +289 -0
- package/dist-esm/src/operations/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist-esm/src/operations/operations.js +5 -5
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +19 -19
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +49 -49
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.d.ts +4 -4
- package/dist-esm/src/operations/privateLinkResources.js +10 -10
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
- package/dist-esm/src/operations/queryKeys.d.ts +12 -12
- package/dist-esm/src/operations/queryKeys.js +32 -32
- package/dist-esm/src/operations/queryKeys.js.map +1 -1
- package/dist-esm/src/operations/services.d.ts +17 -17
- package/dist-esm/src/operations/services.d.ts.map +1 -1
- package/dist-esm/src/operations/services.js +75 -75
- package/dist-esm/src/operations/services.js.map +1 -1
- package/dist-esm/src/operations/sharedPrivateLinkResources.d.ts +21 -21
- package/dist-esm/src/operations/sharedPrivateLinkResources.d.ts.map +1 -1
- package/dist-esm/src/operations/sharedPrivateLinkResources.js +62 -62
- package/dist-esm/src/operations/sharedPrivateLinkResources.js.map +1 -1
- package/dist-esm/src/operations/usages.d.ts +2 -2
- package/dist-esm/src/operations/usages.js +13 -13
- package/dist-esm/src/operations/usages.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/adminKeys.d.ts +5 -5
- package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +1 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +50 -0
- package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterConfigurations.js +9 -0
- package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +15 -15
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/queryKeys.d.ts +7 -7
- package/dist-esm/src/operationsInterfaces/services.d.ts +17 -17
- package/dist-esm/src/operationsInterfaces/sharedPrivateLinkResources.d.ts +17 -17
- package/dist-esm/src/operationsInterfaces/usages.d.ts +1 -1
- package/dist-esm/src/pagingHelper.js.map +1 -1
- package/dist-esm/src/searchManagementClient.d.ts +3 -2
- package/dist-esm/src/searchManagementClient.d.ts.map +1 -1
- package/dist-esm/src/searchManagementClient.js +17 -15
- package/dist-esm/src/searchManagementClient.js.map +1 -1
- package/dist-esm/test/search_examples.js.map +1 -1
- package/package.json +12 -11
- package/review/arm-search.api.md +270 -6
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +573 -140
- package/src/models/mappers.ts +1217 -561
- package/src/models/parameters.ts +90 -58
- package/src/operations/adminKeys.ts +22 -24
- package/src/operations/index.ts +1 -0
- package/src/operations/networkSecurityPerimeterConfigurations.ts +400 -0
- package/src/operations/operations.ts +10 -10
- package/src/operations/privateEndpointConnections.ts +74 -77
- package/src/operations/privateLinkResources.ts +21 -22
- package/src/operations/queryKeys.ts +52 -55
- package/src/operations/services.ts +118 -126
- package/src/operations/sharedPrivateLinkResources.ts +103 -108
- package/src/operations/usages.ts +24 -25
- package/src/operationsInterfaces/adminKeys.ts +8 -8
- package/src/operationsInterfaces/index.ts +1 -0
- package/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts +90 -0
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/privateEndpointConnections.ts +20 -20
- package/src/operationsInterfaces/privateLinkResources.ts +4 -4
- package/src/operationsInterfaces/queryKeys.ts +11 -11
- package/src/operationsInterfaces/services.ts +26 -26
- package/src/operationsInterfaces/sharedPrivateLinkResources.ts +24 -24
- package/src/operationsInterfaces/usages.ts +3 -3
- package/src/pagingHelper.ts +1 -1
- package/src/searchManagementClient.ts +33 -28
- package/types/arm-search.d.ts +650 -171
- package/types/tsdoc-metadata.json +1 -1
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
SharedPrivateLinkResourcesCreateOrUpdateResponse,
|
|
16
16
|
SharedPrivateLinkResourcesGetOptionalParams,
|
|
17
17
|
SharedPrivateLinkResourcesGetResponse,
|
|
18
|
-
SharedPrivateLinkResourcesDeleteOptionalParams
|
|
18
|
+
SharedPrivateLinkResourcesDeleteOptionalParams,
|
|
19
19
|
} from "../models";
|
|
20
20
|
|
|
21
21
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -25,24 +25,24 @@ export interface SharedPrivateLinkResources {
|
|
|
25
25
|
* Gets a list of all shared private link resources managed by the given service.
|
|
26
26
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
27
27
|
* obtain this value from the Azure Resource Manager API or the portal.
|
|
28
|
-
* @param searchServiceName The name of the Azure
|
|
29
|
-
*
|
|
28
|
+
* @param searchServiceName The name of the Azure AI Search service associated with the specified
|
|
29
|
+
* resource group.
|
|
30
30
|
* @param options The options parameters.
|
|
31
31
|
*/
|
|
32
32
|
listByService(
|
|
33
33
|
resourceGroupName: string,
|
|
34
34
|
searchServiceName: string,
|
|
35
|
-
options?: SharedPrivateLinkResourcesListByServiceOptionalParams
|
|
35
|
+
options?: SharedPrivateLinkResourcesListByServiceOptionalParams,
|
|
36
36
|
): PagedAsyncIterableIterator<SharedPrivateLinkResource>;
|
|
37
37
|
/**
|
|
38
38
|
* Initiates the creation or update of a shared private link resource managed by the search service in
|
|
39
39
|
* the given resource group.
|
|
40
40
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
41
41
|
* obtain this value from the Azure Resource Manager API or the portal.
|
|
42
|
-
* @param searchServiceName The name of the Azure
|
|
43
|
-
*
|
|
42
|
+
* @param searchServiceName The name of the Azure AI Search service associated with the specified
|
|
43
|
+
* resource group.
|
|
44
44
|
* @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
|
|
45
|
-
* Azure
|
|
45
|
+
* Azure AI Search service within the specified resource group.
|
|
46
46
|
* @param sharedPrivateLinkResource The definition of the shared private link resource to create or
|
|
47
47
|
* update.
|
|
48
48
|
* @param options The options parameters.
|
|
@@ -52,7 +52,7 @@ export interface SharedPrivateLinkResources {
|
|
|
52
52
|
searchServiceName: string,
|
|
53
53
|
sharedPrivateLinkResourceName: string,
|
|
54
54
|
sharedPrivateLinkResource: SharedPrivateLinkResource,
|
|
55
|
-
options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams
|
|
55
|
+
options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams,
|
|
56
56
|
): Promise<
|
|
57
57
|
SimplePollerLike<
|
|
58
58
|
OperationState<SharedPrivateLinkResourcesCreateOrUpdateResponse>,
|
|
@@ -64,10 +64,10 @@ export interface SharedPrivateLinkResources {
|
|
|
64
64
|
* the given resource group.
|
|
65
65
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
66
66
|
* obtain this value from the Azure Resource Manager API or the portal.
|
|
67
|
-
* @param searchServiceName The name of the Azure
|
|
68
|
-
*
|
|
67
|
+
* @param searchServiceName The name of the Azure AI Search service associated with the specified
|
|
68
|
+
* resource group.
|
|
69
69
|
* @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
|
|
70
|
-
* Azure
|
|
70
|
+
* Azure AI Search service within the specified resource group.
|
|
71
71
|
* @param sharedPrivateLinkResource The definition of the shared private link resource to create or
|
|
72
72
|
* update.
|
|
73
73
|
* @param options The options parameters.
|
|
@@ -77,55 +77,55 @@ export interface SharedPrivateLinkResources {
|
|
|
77
77
|
searchServiceName: string,
|
|
78
78
|
sharedPrivateLinkResourceName: string,
|
|
79
79
|
sharedPrivateLinkResource: SharedPrivateLinkResource,
|
|
80
|
-
options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams
|
|
80
|
+
options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams,
|
|
81
81
|
): Promise<SharedPrivateLinkResourcesCreateOrUpdateResponse>;
|
|
82
82
|
/**
|
|
83
83
|
* Gets the details of the shared private link resource managed by the search service in the given
|
|
84
84
|
* resource group.
|
|
85
85
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
86
86
|
* obtain this value from the Azure Resource Manager API or the portal.
|
|
87
|
-
* @param searchServiceName The name of the Azure
|
|
88
|
-
*
|
|
87
|
+
* @param searchServiceName The name of the Azure AI Search service associated with the specified
|
|
88
|
+
* resource group.
|
|
89
89
|
* @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
|
|
90
|
-
* Azure
|
|
90
|
+
* Azure AI Search service within the specified resource group.
|
|
91
91
|
* @param options The options parameters.
|
|
92
92
|
*/
|
|
93
93
|
get(
|
|
94
94
|
resourceGroupName: string,
|
|
95
95
|
searchServiceName: string,
|
|
96
96
|
sharedPrivateLinkResourceName: string,
|
|
97
|
-
options?: SharedPrivateLinkResourcesGetOptionalParams
|
|
97
|
+
options?: SharedPrivateLinkResourcesGetOptionalParams,
|
|
98
98
|
): Promise<SharedPrivateLinkResourcesGetResponse>;
|
|
99
99
|
/**
|
|
100
100
|
* Initiates the deletion of the shared private link resource from the search service.
|
|
101
101
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
102
102
|
* obtain this value from the Azure Resource Manager API or the portal.
|
|
103
|
-
* @param searchServiceName The name of the Azure
|
|
104
|
-
*
|
|
103
|
+
* @param searchServiceName The name of the Azure AI Search service associated with the specified
|
|
104
|
+
* resource group.
|
|
105
105
|
* @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
|
|
106
|
-
* Azure
|
|
106
|
+
* Azure AI Search service within the specified resource group.
|
|
107
107
|
* @param options The options parameters.
|
|
108
108
|
*/
|
|
109
109
|
beginDelete(
|
|
110
110
|
resourceGroupName: string,
|
|
111
111
|
searchServiceName: string,
|
|
112
112
|
sharedPrivateLinkResourceName: string,
|
|
113
|
-
options?: SharedPrivateLinkResourcesDeleteOptionalParams
|
|
113
|
+
options?: SharedPrivateLinkResourcesDeleteOptionalParams,
|
|
114
114
|
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
115
115
|
/**
|
|
116
116
|
* Initiates the deletion of the shared private link resource from the search service.
|
|
117
117
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
118
118
|
* obtain this value from the Azure Resource Manager API or the portal.
|
|
119
|
-
* @param searchServiceName The name of the Azure
|
|
120
|
-
*
|
|
119
|
+
* @param searchServiceName The name of the Azure AI Search service associated with the specified
|
|
120
|
+
* resource group.
|
|
121
121
|
* @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
|
|
122
|
-
* Azure
|
|
122
|
+
* Azure AI Search service within the specified resource group.
|
|
123
123
|
* @param options The options parameters.
|
|
124
124
|
*/
|
|
125
125
|
beginDeleteAndWait(
|
|
126
126
|
resourceGroupName: string,
|
|
127
127
|
searchServiceName: string,
|
|
128
128
|
sharedPrivateLinkResourceName: string,
|
|
129
|
-
options?: SharedPrivateLinkResourcesDeleteOptionalParams
|
|
129
|
+
options?: SharedPrivateLinkResourcesDeleteOptionalParams,
|
|
130
130
|
): Promise<void>;
|
|
131
131
|
}
|
|
@@ -9,19 +9,19 @@
|
|
|
9
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
10
|
import {
|
|
11
11
|
QuotaUsageResult,
|
|
12
|
-
UsagesListBySubscriptionOptionalParams
|
|
12
|
+
UsagesListBySubscriptionOptionalParams,
|
|
13
13
|
} from "../models";
|
|
14
14
|
|
|
15
15
|
/// <reference lib="esnext.asynciterable" />
|
|
16
16
|
/** Interface representing a Usages. */
|
|
17
17
|
export interface Usages {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Get a list of all Azure AI Search quota usages across the subscription.
|
|
20
20
|
* @param location The unique location name for a Microsoft Azure geographic region.
|
|
21
21
|
* @param options The options parameters.
|
|
22
22
|
*/
|
|
23
23
|
listBySubscription(
|
|
24
24
|
location: string,
|
|
25
|
-
options?: UsagesListBySubscriptionOptionalParams
|
|
25
|
+
options?: UsagesListBySubscriptionOptionalParams,
|
|
26
26
|
): PagedAsyncIterableIterator<QuotaUsageResult>;
|
|
27
27
|
}
|
package/src/pagingHelper.ts
CHANGED
|
@@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined {
|
|
|
28
28
|
|
|
29
29
|
export function setContinuationToken(
|
|
30
30
|
page: unknown,
|
|
31
|
-
continuationToken: string | undefined
|
|
31
|
+
continuationToken: string | undefined,
|
|
32
32
|
): void {
|
|
33
33
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
34
34
|
return;
|
|
@@ -11,7 +11,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
|
11
11
|
import {
|
|
12
12
|
PipelineRequest,
|
|
13
13
|
PipelineResponse,
|
|
14
|
-
SendRequest
|
|
14
|
+
SendRequest,
|
|
15
15
|
} from "@azure/core-rest-pipeline";
|
|
16
16
|
import * as coreAuth from "@azure/core-auth";
|
|
17
17
|
import {
|
|
@@ -22,7 +22,8 @@ import {
|
|
|
22
22
|
PrivateLinkResourcesImpl,
|
|
23
23
|
PrivateEndpointConnectionsImpl,
|
|
24
24
|
SharedPrivateLinkResourcesImpl,
|
|
25
|
-
UsagesImpl
|
|
25
|
+
UsagesImpl,
|
|
26
|
+
NetworkSecurityPerimeterConfigurationsImpl,
|
|
26
27
|
} from "./operations";
|
|
27
28
|
import {
|
|
28
29
|
Operations,
|
|
@@ -32,14 +33,15 @@ import {
|
|
|
32
33
|
PrivateLinkResources,
|
|
33
34
|
PrivateEndpointConnections,
|
|
34
35
|
SharedPrivateLinkResources,
|
|
35
|
-
Usages
|
|
36
|
+
Usages,
|
|
37
|
+
NetworkSecurityPerimeterConfigurations,
|
|
36
38
|
} from "./operationsInterfaces";
|
|
37
39
|
import * as Parameters from "./models/parameters";
|
|
38
40
|
import * as Mappers from "./models/mappers";
|
|
39
41
|
import {
|
|
40
42
|
SearchManagementClientOptionalParams,
|
|
41
43
|
UsageBySubscriptionSkuOptionalParams,
|
|
42
|
-
UsageBySubscriptionSkuResponse
|
|
44
|
+
UsageBySubscriptionSkuResponse,
|
|
43
45
|
} from "./models";
|
|
44
46
|
|
|
45
47
|
export class SearchManagementClient extends coreClient.ServiceClient {
|
|
@@ -57,7 +59,7 @@ export class SearchManagementClient extends coreClient.ServiceClient {
|
|
|
57
59
|
constructor(
|
|
58
60
|
credentials: coreAuth.TokenCredential,
|
|
59
61
|
subscriptionId: string,
|
|
60
|
-
options?: SearchManagementClientOptionalParams
|
|
62
|
+
options?: SearchManagementClientOptionalParams,
|
|
61
63
|
) {
|
|
62
64
|
if (credentials === undefined) {
|
|
63
65
|
throw new Error("'credentials' cannot be null");
|
|
@@ -72,10 +74,10 @@ export class SearchManagementClient extends coreClient.ServiceClient {
|
|
|
72
74
|
}
|
|
73
75
|
const defaults: SearchManagementClientOptionalParams = {
|
|
74
76
|
requestContentType: "application/json; charset=utf-8",
|
|
75
|
-
credential: credentials
|
|
77
|
+
credential: credentials,
|
|
76
78
|
};
|
|
77
79
|
|
|
78
|
-
const packageDetails = `azsdk-js-arm-search/3.
|
|
80
|
+
const packageDetails = `azsdk-js-arm-search/3.3.0-beta.1`;
|
|
79
81
|
const userAgentPrefix =
|
|
80
82
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
81
83
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
@@ -85,20 +87,21 @@ export class SearchManagementClient extends coreClient.ServiceClient {
|
|
|
85
87
|
...defaults,
|
|
86
88
|
...options,
|
|
87
89
|
userAgentOptions: {
|
|
88
|
-
userAgentPrefix
|
|
90
|
+
userAgentPrefix,
|
|
89
91
|
},
|
|
90
92
|
endpoint:
|
|
91
|
-
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
93
|
+
options.endpoint ?? options.baseUri ?? "https://management.azure.com",
|
|
92
94
|
};
|
|
93
95
|
super(optionsWithDefaults);
|
|
94
96
|
|
|
95
97
|
let bearerTokenAuthenticationPolicyFound: boolean = false;
|
|
96
98
|
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
97
|
-
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =
|
|
99
|
+
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =
|
|
100
|
+
options.pipeline.getOrderedPolicies();
|
|
98
101
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
|
99
102
|
(pipelinePolicy) =>
|
|
100
103
|
pipelinePolicy.name ===
|
|
101
|
-
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
104
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName,
|
|
102
105
|
);
|
|
103
106
|
}
|
|
104
107
|
if (
|
|
@@ -108,7 +111,7 @@ export class SearchManagementClient extends coreClient.ServiceClient {
|
|
|
108
111
|
!bearerTokenAuthenticationPolicyFound
|
|
109
112
|
) {
|
|
110
113
|
this.pipeline.removePolicy({
|
|
111
|
-
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
114
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
|
|
112
115
|
});
|
|
113
116
|
this.pipeline.addPolicy(
|
|
114
117
|
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
@@ -118,9 +121,9 @@ export class SearchManagementClient extends coreClient.ServiceClient {
|
|
|
118
121
|
`${optionsWithDefaults.endpoint}/.default`,
|
|
119
122
|
challengeCallbacks: {
|
|
120
123
|
authorizeRequestOnChallenge:
|
|
121
|
-
coreClient.authorizeRequestOnClaimChallenge
|
|
122
|
-
}
|
|
123
|
-
})
|
|
124
|
+
coreClient.authorizeRequestOnClaimChallenge,
|
|
125
|
+
},
|
|
126
|
+
}),
|
|
124
127
|
);
|
|
125
128
|
}
|
|
126
129
|
// Parameter assignments
|
|
@@ -128,7 +131,7 @@ export class SearchManagementClient extends coreClient.ServiceClient {
|
|
|
128
131
|
|
|
129
132
|
// Assigning values to Constant parameters
|
|
130
133
|
this.$host = options.$host || "https://management.azure.com";
|
|
131
|
-
this.apiVersion = options.apiVersion || "
|
|
134
|
+
this.apiVersion = options.apiVersion || "2024-03-01-preview";
|
|
132
135
|
this.operations = new OperationsImpl(this);
|
|
133
136
|
this.adminKeys = new AdminKeysImpl(this);
|
|
134
137
|
this.queryKeys = new QueryKeysImpl(this);
|
|
@@ -137,6 +140,8 @@ export class SearchManagementClient extends coreClient.ServiceClient {
|
|
|
137
140
|
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
|
|
138
141
|
this.sharedPrivateLinkResources = new SharedPrivateLinkResourcesImpl(this);
|
|
139
142
|
this.usages = new UsagesImpl(this);
|
|
143
|
+
this.networkSecurityPerimeterConfigurations =
|
|
144
|
+
new NetworkSecurityPerimeterConfigurationsImpl(this);
|
|
140
145
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
141
146
|
}
|
|
142
147
|
|
|
@@ -149,7 +154,7 @@ export class SearchManagementClient extends coreClient.ServiceClient {
|
|
|
149
154
|
name: "CustomApiVersionPolicy",
|
|
150
155
|
async sendRequest(
|
|
151
156
|
request: PipelineRequest,
|
|
152
|
-
next: SendRequest
|
|
157
|
+
next: SendRequest,
|
|
153
158
|
): Promise<PipelineResponse> {
|
|
154
159
|
const param = request.url.split("?");
|
|
155
160
|
if (param.length > 1) {
|
|
@@ -163,7 +168,7 @@ export class SearchManagementClient extends coreClient.ServiceClient {
|
|
|
163
168
|
request.url = param[0] + "?" + newParams.join("&");
|
|
164
169
|
}
|
|
165
170
|
return next(request);
|
|
166
|
-
}
|
|
171
|
+
},
|
|
167
172
|
};
|
|
168
173
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
169
174
|
}
|
|
@@ -171,17 +176,17 @@ export class SearchManagementClient extends coreClient.ServiceClient {
|
|
|
171
176
|
/**
|
|
172
177
|
* Gets the quota usage for a search sku in the given subscription.
|
|
173
178
|
* @param location The unique location name for a Microsoft Azure geographic region.
|
|
174
|
-
* @param skuName The unique
|
|
179
|
+
* @param skuName The unique SKU name that identifies a billable tier.
|
|
175
180
|
* @param options The options parameters.
|
|
176
181
|
*/
|
|
177
182
|
usageBySubscriptionSku(
|
|
178
183
|
location: string,
|
|
179
184
|
skuName: string,
|
|
180
|
-
options?: UsageBySubscriptionSkuOptionalParams
|
|
185
|
+
options?: UsageBySubscriptionSkuOptionalParams,
|
|
181
186
|
): Promise<UsageBySubscriptionSkuResponse> {
|
|
182
187
|
return this.sendOperationRequest(
|
|
183
188
|
{ location, skuName, options },
|
|
184
|
-
usageBySubscriptionSkuOperationSpec
|
|
189
|
+
usageBySubscriptionSkuOperationSpec,
|
|
185
190
|
);
|
|
186
191
|
}
|
|
187
192
|
|
|
@@ -193,29 +198,29 @@ export class SearchManagementClient extends coreClient.ServiceClient {
|
|
|
193
198
|
privateEndpointConnections: PrivateEndpointConnections;
|
|
194
199
|
sharedPrivateLinkResources: SharedPrivateLinkResources;
|
|
195
200
|
usages: Usages;
|
|
201
|
+
networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations;
|
|
196
202
|
}
|
|
197
203
|
// Operation Specifications
|
|
198
204
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
199
205
|
|
|
200
206
|
const usageBySubscriptionSkuOperationSpec: coreClient.OperationSpec = {
|
|
201
|
-
path:
|
|
202
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages/{skuName}",
|
|
207
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages/{skuName}",
|
|
203
208
|
httpMethod: "GET",
|
|
204
209
|
responses: {
|
|
205
210
|
200: {
|
|
206
|
-
bodyMapper: Mappers.QuotaUsageResult
|
|
211
|
+
bodyMapper: Mappers.QuotaUsageResult,
|
|
207
212
|
},
|
|
208
213
|
default: {
|
|
209
|
-
bodyMapper: Mappers.CloudError
|
|
210
|
-
}
|
|
214
|
+
bodyMapper: Mappers.CloudError,
|
|
215
|
+
},
|
|
211
216
|
},
|
|
212
217
|
queryParameters: [Parameters.apiVersion],
|
|
213
218
|
urlParameters: [
|
|
214
219
|
Parameters.$host,
|
|
215
220
|
Parameters.subscriptionId,
|
|
216
221
|
Parameters.location,
|
|
217
|
-
Parameters.skuName
|
|
222
|
+
Parameters.skuName,
|
|
218
223
|
],
|
|
219
224
|
headerParameters: [Parameters.accept, Parameters.clientRequestId],
|
|
220
|
-
serializer
|
|
225
|
+
serializer,
|
|
221
226
|
};
|