@azure/arm-cognitiveservices 6.1.0 → 7.0.1-alpha.20211221.2
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 +21 -0
- package/{LICENSE.txt → LICENSE} +1 -1
- package/README.md +70 -82
- package/dist/index.js +4800 -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/cognitiveServicesManagementClient.d.ts +42 -0
- package/dist-esm/src/cognitiveServicesManagementClient.d.ts.map +1 -0
- package/dist-esm/src/cognitiveServicesManagementClient.js +133 -0
- package/dist-esm/src/cognitiveServicesManagementClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1310 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +128 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +68 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +964 -1092
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +26 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +199 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/accounts.d.ts +138 -0
- package/dist-esm/src/operations/accounts.d.ts.map +1 -0
- package/dist-esm/src/operations/accounts.js +628 -0
- package/dist-esm/src/operations/accounts.js.map +1 -0
- package/dist-esm/src/operations/commitmentPlans.d.ts +76 -0
- package/dist-esm/src/operations/commitmentPlans.d.ts.map +1 -0
- package/dist-esm/src/operations/commitmentPlans.js +293 -0
- package/dist-esm/src/operations/commitmentPlans.js.map +1 -0
- package/dist-esm/src/operations/commitmentTiers.d.ts +35 -0
- package/dist-esm/src/operations/commitmentTiers.d.ts.map +1 -0
- package/dist-esm/src/operations/commitmentTiers.js +132 -0
- package/dist-esm/src/operations/commitmentTiers.js.map +1 -0
- package/dist-esm/src/operations/deletedAccounts.d.ts +57 -0
- package/dist-esm/src/operations/deletedAccounts.d.ts.map +1 -0
- package/dist-esm/src/operations/deletedAccounts.js +232 -0
- package/dist-esm/src/operations/deletedAccounts.js.map +1 -0
- package/dist-esm/src/operations/deployments.d.ts +81 -0
- package/dist-esm/src/operations/deployments.d.ts.map +1 -0
- package/dist-esm/src/operations/deployments.js +331 -0
- package/dist-esm/src/operations/deployments.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 +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +70 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +271 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts +20 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.js +53 -0
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operations/resourceSkus.d.ts +32 -0
- package/dist-esm/src/operations/resourceSkus.d.ts.map +1 -0
- package/dist-esm/src/operations/resourceSkus.js +124 -0
- package/dist-esm/src/operations/resourceSkus.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/accounts.d.ts +102 -0
- package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/accounts.js} +2 -1
- package/dist-esm/src/operationsInterfaces/accounts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/commitmentPlans.d.ts +51 -0
- package/dist-esm/src/operationsInterfaces/commitmentPlans.d.ts.map +1 -0
- package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/commitmentPlans.js} +2 -9
- package/dist-esm/src/operationsInterfaces/commitmentPlans.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/commitmentTiers.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/commitmentTiers.d.ts.map +1 -0
- package/{src/models/commitmentTiersMappers.ts → dist-esm/src/operationsInterfaces/commitmentTiers.js} +2 -10
- package/dist-esm/src/operationsInterfaces/commitmentTiers.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/deletedAccounts.d.ts +36 -0
- package/dist-esm/src/operationsInterfaces/deletedAccounts.d.ts.map +1 -0
- package/{esm/models/operationsMappers.js → dist-esm/src/operationsInterfaces/deletedAccounts.js} +2 -2
- package/dist-esm/src/operationsInterfaces/deletedAccounts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/deployments.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/deployments.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/deployments.js +9 -0
- package/dist-esm/src/operationsInterfaces/deployments.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +10 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +17 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +62 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +12 -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/resourceSkus.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/resourceSkus.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/resourceSkus.js +9 -0
- package/dist-esm/src/operationsInterfaces/resourceSkus.js.map +1 -0
- package/dist-esm/test/cognitiveservices_examples.d.ts +4 -0
- package/dist-esm/test/cognitiveservices_examples.d.ts.map +1 -0
- package/dist-esm/test/cognitiveservices_examples.js +127 -0
- package/dist-esm/test/cognitiveservices_examples.js.map +1 -0
- package/package.json +65 -22
- package/review/arm-cognitiveservices.api.md +1150 -0
- package/rollup.config.js +181 -30
- package/src/cognitiveServicesManagementClient.ts +157 -153
- package/src/{models/resourceSkusMappers.ts → index.ts} +4 -9
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1063 -1831
- package/src/models/mappers.ts +1021 -1150
- package/src/models/parameters.ts +151 -54
- package/src/operations/accounts.ts +613 -497
- package/src/operations/commitmentPlans.ts +253 -203
- package/src/operations/commitmentTiers.ts +105 -80
- package/src/operations/deletedAccounts.ts +209 -161
- package/src/operations/deployments.ts +325 -193
- package/src/operations/index.ts +1 -2
- package/src/operations/operations.ts +85 -73
- package/src/operations/privateEndpointConnections.ts +257 -164
- package/src/operations/privateLinkResources.ts +37 -51
- package/src/operations/resourceSkus.ts +90 -76
- package/src/operationsInterfaces/accounts.ts +195 -0
- package/src/operationsInterfaces/commitmentPlans.ts +93 -0
- package/src/operationsInterfaces/commitmentTiers.ts +24 -0
- package/src/operationsInterfaces/deletedAccounts.ts +68 -0
- package/src/operationsInterfaces/deployments.ts +109 -0
- package/src/operationsInterfaces/index.ts +17 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +115 -0
- package/src/operationsInterfaces/privateLinkResources.ts +27 -0
- package/src/operationsInterfaces/resourceSkus.ts +22 -0
- package/tsconfig.json +3 -3
- package/types/arm-cognitiveservices.d.ts +1860 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-cognitiveservices.js +0 -4713
- package/dist/arm-cognitiveservices.js.map +0 -1
- package/dist/arm-cognitiveservices.min.js +0 -1
- package/dist/arm-cognitiveservices.min.js.map +0 -1
- package/esm/cognitiveServicesManagementClient.d.ts +0 -80
- package/esm/cognitiveServicesManagementClient.d.ts.map +0 -1
- package/esm/cognitiveServicesManagementClient.js +0 -128
- package/esm/cognitiveServicesManagementClient.js.map +0 -1
- package/esm/cognitiveServicesManagementClientContext.d.ts +0 -22
- package/esm/cognitiveServicesManagementClientContext.d.ts.map +0 -1
- package/esm/cognitiveServicesManagementClientContext.js +0 -60
- package/esm/cognitiveServicesManagementClientContext.js.map +0 -1
- package/esm/models/accountsMappers.d.ts +0 -2
- package/esm/models/accountsMappers.d.ts.map +0 -1
- package/esm/models/accountsMappers.js +0 -9
- package/esm/models/accountsMappers.js.map +0 -1
- package/esm/models/commitmentPlansMappers.d.ts +0 -2
- package/esm/models/commitmentPlansMappers.d.ts.map +0 -1
- package/esm/models/commitmentPlansMappers.js +0 -9
- package/esm/models/commitmentPlansMappers.js.map +0 -1
- package/esm/models/commitmentTiersMappers.d.ts +0 -2
- package/esm/models/commitmentTiersMappers.d.ts.map +0 -1
- package/esm/models/commitmentTiersMappers.js +0 -9
- package/esm/models/commitmentTiersMappers.js.map +0 -1
- package/esm/models/deletedAccountsMappers.d.ts +0 -2
- package/esm/models/deletedAccountsMappers.d.ts.map +0 -1
- package/esm/models/deletedAccountsMappers.js +0 -9
- package/esm/models/deletedAccountsMappers.js.map +0 -1
- package/esm/models/deploymentsMappers.d.ts +0 -2
- package/esm/models/deploymentsMappers.d.ts.map +0 -1
- package/esm/models/deploymentsMappers.js +0 -9
- package/esm/models/deploymentsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -2102
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -71
- 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.map +0 -1
- package/esm/models/parameters.d.ts +0 -13
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -137
- 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/resourceSkusMappers.d.ts +0 -2
- package/esm/models/resourceSkusMappers.d.ts.map +0 -1
- package/esm/models/resourceSkusMappers.js +0 -9
- package/esm/models/resourceSkusMappers.js.map +0 -1
- package/esm/operations/accounts.d.ts +0 -245
- package/esm/operations/accounts.d.ts.map +0 -1
- package/esm/operations/accounts.js +0 -476
- package/esm/operations/accounts.js.map +0 -1
- package/esm/operations/commitmentPlans.d.ts +0 -130
- package/esm/operations/commitmentPlans.d.ts.map +0 -1
- package/esm/operations/commitmentPlans.js +0 -216
- package/esm/operations/commitmentPlans.js.map +0 -1
- package/esm/operations/commitmentTiers.d.ts +0 -49
- package/esm/operations/commitmentTiers.d.ts.map +0 -1
- package/esm/operations/commitmentTiers.js +0 -84
- package/esm/operations/commitmentTiers.js.map +0 -1
- package/esm/operations/deletedAccounts.d.ts +0 -89
- package/esm/operations/deletedAccounts.d.ts.map +0 -1
- package/esm/operations/deletedAccounts.js +0 -168
- package/esm/operations/deletedAccounts.js.map +0 -1
- package/esm/operations/deployments.d.ts +0 -115
- package/esm/operations/deployments.d.ts.map +0 -1
- package/esm/operations/deployments.js +0 -236
- package/esm/operations/deployments.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 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -79
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/privateEndpointConnections.d.ts +0 -108
- package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
- package/esm/operations/privateEndpointConnections.js +0 -215
- package/esm/operations/privateEndpointConnections.js.map +0 -1
- package/esm/operations/privateLinkResources.d.ts +0 -34
- package/esm/operations/privateLinkResources.d.ts.map +0 -1
- package/esm/operations/privateLinkResources.js +0 -57
- package/esm/operations/privateLinkResources.js.map +0 -1
- package/esm/operations/resourceSkus.d.ts +0 -46
- package/esm/operations/resourceSkus.d.ts.map +0 -1
- package/esm/operations/resourceSkus.js +0 -82
- package/esm/operations/resourceSkus.js.map +0 -1
- package/src/cognitiveServicesManagementClientContext.ts +0 -67
- package/src/models/accountsMappers.ts +0 -59
- package/src/models/commitmentPlansMappers.ts +0 -52
- package/src/models/deletedAccountsMappers.ts +0 -52
- package/src/models/deploymentsMappers.ts +0 -52
- package/src/models/privateEndpointConnectionsMappers.ts +0 -52
- package/src/models/privateLinkResourcesMappers.ts +0 -52
|
@@ -3,26 +3,37 @@
|
|
|
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 * as
|
|
12
|
-
import * as
|
|
13
|
-
import * as Mappers from "../models/privateEndpointConnectionsMappers";
|
|
9
|
+
import { PrivateEndpointConnections } from "../operationsInterfaces";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
14
12
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
13
|
+
import { CognitiveServicesManagementClient } from "../cognitiveServicesManagementClient";
|
|
14
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
15
|
+
import { LroImpl } from "../lroImpl";
|
|
16
|
+
import {
|
|
17
|
+
PrivateEndpointConnectionsListOptionalParams,
|
|
18
|
+
PrivateEndpointConnectionsListResponse,
|
|
19
|
+
PrivateEndpointConnectionsGetOptionalParams,
|
|
20
|
+
PrivateEndpointConnectionsGetResponse,
|
|
21
|
+
PrivateEndpointConnection,
|
|
22
|
+
PrivateEndpointConnectionsCreateOrUpdateOptionalParams,
|
|
23
|
+
PrivateEndpointConnectionsCreateOrUpdateResponse,
|
|
24
|
+
PrivateEndpointConnectionsDeleteOptionalParams
|
|
25
|
+
} from "../models";
|
|
16
26
|
|
|
17
|
-
/** Class
|
|
18
|
-
export class
|
|
19
|
-
|
|
27
|
+
/** Class containing PrivateEndpointConnections operations. */
|
|
28
|
+
export class PrivateEndpointConnectionsImpl
|
|
29
|
+
implements PrivateEndpointConnections {
|
|
30
|
+
private readonly client: CognitiveServicesManagementClient;
|
|
20
31
|
|
|
21
32
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
33
|
+
* Initialize a new instance of the class PrivateEndpointConnections class.
|
|
34
|
+
* @param client Reference to the service client
|
|
24
35
|
*/
|
|
25
|
-
constructor(client:
|
|
36
|
+
constructor(client: CognitiveServicesManagementClient) {
|
|
26
37
|
this.client = client;
|
|
27
38
|
}
|
|
28
39
|
|
|
@@ -30,71 +41,120 @@ export class PrivateEndpointConnections {
|
|
|
30
41
|
* Gets the private endpoint connections associated with the Cognitive Services account.
|
|
31
42
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
32
43
|
* @param accountName The name of Cognitive Services account.
|
|
33
|
-
* @param
|
|
34
|
-
* @returns Promise<Models.PrivateEndpointConnectionsListResponse>
|
|
44
|
+
* @param options The options parameters.
|
|
35
45
|
*/
|
|
36
|
-
list(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
46
|
+
list(
|
|
47
|
+
resourceGroupName: string,
|
|
48
|
+
accountName: string,
|
|
49
|
+
options?: PrivateEndpointConnectionsListOptionalParams
|
|
50
|
+
): Promise<PrivateEndpointConnectionsListResponse> {
|
|
51
|
+
return this.client.sendOperationRequest(
|
|
52
|
+
{ resourceGroupName, accountName, options },
|
|
53
|
+
listOperationSpec
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
|
|
43
57
|
/**
|
|
58
|
+
* Gets the specified private endpoint connection associated with the Cognitive Services account.
|
|
44
59
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
45
60
|
* @param accountName The name of Cognitive Services account.
|
|
46
|
-
* @param
|
|
47
|
-
*
|
|
61
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
62
|
+
* Cognitive Services Account
|
|
63
|
+
* @param options The options parameters.
|
|
48
64
|
*/
|
|
49
|
-
|
|
50
|
-
|
|
65
|
+
get(
|
|
66
|
+
resourceGroupName: string,
|
|
67
|
+
accountName: string,
|
|
68
|
+
privateEndpointConnectionName: string,
|
|
69
|
+
options?: PrivateEndpointConnectionsGetOptionalParams
|
|
70
|
+
): Promise<PrivateEndpointConnectionsGetResponse> {
|
|
51
71
|
return this.client.sendOperationRequest(
|
|
52
72
|
{
|
|
53
73
|
resourceGroupName,
|
|
54
74
|
accountName,
|
|
75
|
+
privateEndpointConnectionName,
|
|
55
76
|
options
|
|
56
77
|
},
|
|
57
|
-
|
|
58
|
-
|
|
78
|
+
getOperationSpec
|
|
79
|
+
);
|
|
59
80
|
}
|
|
60
81
|
|
|
61
82
|
/**
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
* @param accountName The name of Cognitive Services account.
|
|
65
|
-
* @param privateEndpointConnectionName The name of the private endpoint connection associated with
|
|
66
|
-
* the Cognitive Services Account
|
|
67
|
-
* @param [options] The optional parameters
|
|
68
|
-
* @returns Promise<Models.PrivateEndpointConnectionsGetResponse>
|
|
69
|
-
*/
|
|
70
|
-
get(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise<Models.PrivateEndpointConnectionsGetResponse>;
|
|
71
|
-
/**
|
|
72
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
73
|
-
* @param accountName The name of Cognitive Services account.
|
|
74
|
-
* @param privateEndpointConnectionName The name of the private endpoint connection associated with
|
|
75
|
-
* the Cognitive Services Account
|
|
76
|
-
* @param callback The callback
|
|
77
|
-
*/
|
|
78
|
-
get(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback<Models.PrivateEndpointConnection>): void;
|
|
79
|
-
/**
|
|
83
|
+
* Update the state of specified private endpoint connection associated with the Cognitive Services
|
|
84
|
+
* account.
|
|
80
85
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
81
86
|
* @param accountName The name of Cognitive Services account.
|
|
82
|
-
* @param privateEndpointConnectionName The name of the private endpoint connection associated with
|
|
83
|
-
*
|
|
84
|
-
* @param
|
|
85
|
-
* @param
|
|
87
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
88
|
+
* Cognitive Services Account
|
|
89
|
+
* @param properties The private endpoint connection properties.
|
|
90
|
+
* @param options The options parameters.
|
|
86
91
|
*/
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
92
|
+
async beginCreateOrUpdate(
|
|
93
|
+
resourceGroupName: string,
|
|
94
|
+
accountName: string,
|
|
95
|
+
privateEndpointConnectionName: string,
|
|
96
|
+
properties: PrivateEndpointConnection,
|
|
97
|
+
options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams
|
|
98
|
+
): Promise<
|
|
99
|
+
PollerLike<
|
|
100
|
+
PollOperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>,
|
|
101
|
+
PrivateEndpointConnectionsCreateOrUpdateResponse
|
|
102
|
+
>
|
|
103
|
+
> {
|
|
104
|
+
const directSendOperation = async (
|
|
105
|
+
args: coreClient.OperationArguments,
|
|
106
|
+
spec: coreClient.OperationSpec
|
|
107
|
+
): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> => {
|
|
108
|
+
return this.client.sendOperationRequest(args, spec);
|
|
109
|
+
};
|
|
110
|
+
const sendOperation = async (
|
|
111
|
+
args: coreClient.OperationArguments,
|
|
112
|
+
spec: coreClient.OperationSpec
|
|
113
|
+
) => {
|
|
114
|
+
let currentRawResponse:
|
|
115
|
+
| coreClient.FullOperationResponse
|
|
116
|
+
| undefined = undefined;
|
|
117
|
+
const providedCallback = args.options?.onResponse;
|
|
118
|
+
const callback: coreClient.RawResponseCallback = (
|
|
119
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
120
|
+
flatResponse: unknown
|
|
121
|
+
) => {
|
|
122
|
+
currentRawResponse = rawResponse;
|
|
123
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
124
|
+
};
|
|
125
|
+
const updatedArgs = {
|
|
126
|
+
...args,
|
|
127
|
+
options: {
|
|
128
|
+
...args.options,
|
|
129
|
+
onResponse: callback
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
133
|
+
return {
|
|
134
|
+
flatResponse,
|
|
135
|
+
rawResponse: {
|
|
136
|
+
statusCode: currentRawResponse!.status,
|
|
137
|
+
body: currentRawResponse!.parsedBody,
|
|
138
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
const lro = new LroImpl(
|
|
144
|
+
sendOperation,
|
|
90
145
|
{
|
|
91
146
|
resourceGroupName,
|
|
92
147
|
accountName,
|
|
93
148
|
privateEndpointConnectionName,
|
|
149
|
+
properties,
|
|
94
150
|
options
|
|
95
151
|
},
|
|
96
|
-
|
|
97
|
-
|
|
152
|
+
createOrUpdateOperationSpec
|
|
153
|
+
);
|
|
154
|
+
return new LroEngine(lro, {
|
|
155
|
+
resumeFrom: options?.resumeFrom,
|
|
156
|
+
intervalInMs: options?.updateIntervalInMs
|
|
157
|
+
});
|
|
98
158
|
}
|
|
99
159
|
|
|
100
160
|
/**
|
|
@@ -102,95 +162,127 @@ export class PrivateEndpointConnections {
|
|
|
102
162
|
* account.
|
|
103
163
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
104
164
|
* @param accountName The name of Cognitive Services account.
|
|
105
|
-
* @param privateEndpointConnectionName The name of the private endpoint connection associated with
|
|
106
|
-
*
|
|
165
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
166
|
+
* Cognitive Services Account
|
|
107
167
|
* @param properties The private endpoint connection properties.
|
|
108
|
-
* @param
|
|
109
|
-
* @returns Promise<Models.PrivateEndpointConnectionsCreateOrUpdateResponse>
|
|
168
|
+
* @param options The options parameters.
|
|
110
169
|
*/
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
170
|
+
async beginCreateOrUpdateAndWait(
|
|
171
|
+
resourceGroupName: string,
|
|
172
|
+
accountName: string,
|
|
173
|
+
privateEndpointConnectionName: string,
|
|
174
|
+
properties: PrivateEndpointConnection,
|
|
175
|
+
options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams
|
|
176
|
+
): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> {
|
|
177
|
+
const poller = await this.beginCreateOrUpdate(
|
|
178
|
+
resourceGroupName,
|
|
179
|
+
accountName,
|
|
180
|
+
privateEndpointConnectionName,
|
|
181
|
+
properties,
|
|
182
|
+
options
|
|
183
|
+
);
|
|
184
|
+
return poller.pollUntilDone();
|
|
114
185
|
}
|
|
115
186
|
|
|
116
187
|
/**
|
|
117
|
-
* Deletes the specified private endpoint connection associated with the Cognitive Services
|
|
118
|
-
* account.
|
|
188
|
+
* Deletes the specified private endpoint connection associated with the Cognitive Services account.
|
|
119
189
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
120
190
|
* @param accountName The name of Cognitive Services account.
|
|
121
|
-
* @param privateEndpointConnectionName The name of the private endpoint connection associated with
|
|
122
|
-
*
|
|
123
|
-
* @param
|
|
124
|
-
* @returns Promise<msRest.RestResponse>
|
|
191
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
192
|
+
* Cognitive Services Account
|
|
193
|
+
* @param options The options parameters.
|
|
125
194
|
*/
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
195
|
+
async beginDelete(
|
|
196
|
+
resourceGroupName: string,
|
|
197
|
+
accountName: string,
|
|
198
|
+
privateEndpointConnectionName: string,
|
|
199
|
+
options?: PrivateEndpointConnectionsDeleteOptionalParams
|
|
200
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
201
|
+
const directSendOperation = async (
|
|
202
|
+
args: coreClient.OperationArguments,
|
|
203
|
+
spec: coreClient.OperationSpec
|
|
204
|
+
): Promise<void> => {
|
|
205
|
+
return this.client.sendOperationRequest(args, spec);
|
|
206
|
+
};
|
|
207
|
+
const sendOperation = async (
|
|
208
|
+
args: coreClient.OperationArguments,
|
|
209
|
+
spec: coreClient.OperationSpec
|
|
210
|
+
) => {
|
|
211
|
+
let currentRawResponse:
|
|
212
|
+
| coreClient.FullOperationResponse
|
|
213
|
+
| undefined = undefined;
|
|
214
|
+
const providedCallback = args.options?.onResponse;
|
|
215
|
+
const callback: coreClient.RawResponseCallback = (
|
|
216
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
217
|
+
flatResponse: unknown
|
|
218
|
+
) => {
|
|
219
|
+
currentRawResponse = rawResponse;
|
|
220
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
221
|
+
};
|
|
222
|
+
const updatedArgs = {
|
|
223
|
+
...args,
|
|
224
|
+
options: {
|
|
225
|
+
...args.options,
|
|
226
|
+
onResponse: callback
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
230
|
+
return {
|
|
231
|
+
flatResponse,
|
|
232
|
+
rawResponse: {
|
|
233
|
+
statusCode: currentRawResponse!.status,
|
|
234
|
+
body: currentRawResponse!.parsedBody,
|
|
235
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
};
|
|
130
239
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
* account.
|
|
134
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
135
|
-
* @param accountName The name of Cognitive Services account.
|
|
136
|
-
* @param privateEndpointConnectionName The name of the private endpoint connection associated with
|
|
137
|
-
* the Cognitive Services Account
|
|
138
|
-
* @param properties The private endpoint connection properties.
|
|
139
|
-
* @param [options] The optional parameters
|
|
140
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
141
|
-
*/
|
|
142
|
-
beginCreateOrUpdate(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, properties: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
143
|
-
return this.client.sendLRORequest(
|
|
240
|
+
const lro = new LroImpl(
|
|
241
|
+
sendOperation,
|
|
144
242
|
{
|
|
145
243
|
resourceGroupName,
|
|
146
244
|
accountName,
|
|
147
245
|
privateEndpointConnectionName,
|
|
148
|
-
properties,
|
|
149
246
|
options
|
|
150
247
|
},
|
|
151
|
-
|
|
152
|
-
|
|
248
|
+
deleteOperationSpec
|
|
249
|
+
);
|
|
250
|
+
return new LroEngine(lro, {
|
|
251
|
+
resumeFrom: options?.resumeFrom,
|
|
252
|
+
intervalInMs: options?.updateIntervalInMs
|
|
253
|
+
});
|
|
153
254
|
}
|
|
154
255
|
|
|
155
256
|
/**
|
|
156
|
-
* Deletes the specified private endpoint connection associated with the Cognitive Services
|
|
157
|
-
* account.
|
|
257
|
+
* Deletes the specified private endpoint connection associated with the Cognitive Services account.
|
|
158
258
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
159
259
|
* @param accountName The name of Cognitive Services account.
|
|
160
|
-
* @param privateEndpointConnectionName The name of the private endpoint connection associated with
|
|
161
|
-
*
|
|
162
|
-
* @param
|
|
163
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
260
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
261
|
+
* Cognitive Services Account
|
|
262
|
+
* @param options The options parameters.
|
|
164
263
|
*/
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
264
|
+
async beginDeleteAndWait(
|
|
265
|
+
resourceGroupName: string,
|
|
266
|
+
accountName: string,
|
|
267
|
+
privateEndpointConnectionName: string,
|
|
268
|
+
options?: PrivateEndpointConnectionsDeleteOptionalParams
|
|
269
|
+
): Promise<void> {
|
|
270
|
+
const poller = await this.beginDelete(
|
|
271
|
+
resourceGroupName,
|
|
272
|
+
accountName,
|
|
273
|
+
privateEndpointConnectionName,
|
|
274
|
+
options
|
|
275
|
+
);
|
|
276
|
+
return poller.pollUntilDone();
|
|
175
277
|
}
|
|
176
278
|
}
|
|
177
|
-
|
|
178
279
|
// Operation Specifications
|
|
179
|
-
const serializer =
|
|
180
|
-
|
|
280
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
281
|
+
|
|
282
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
283
|
+
path:
|
|
284
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections",
|
|
181
285
|
httpMethod: "GET",
|
|
182
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections",
|
|
183
|
-
urlParameters: [
|
|
184
|
-
Parameters.resourceGroupName,
|
|
185
|
-
Parameters.accountName,
|
|
186
|
-
Parameters.subscriptionId
|
|
187
|
-
],
|
|
188
|
-
queryParameters: [
|
|
189
|
-
Parameters.apiVersion
|
|
190
|
-
],
|
|
191
|
-
headerParameters: [
|
|
192
|
-
Parameters.acceptLanguage
|
|
193
|
-
],
|
|
194
286
|
responses: {
|
|
195
287
|
200: {
|
|
196
288
|
bodyMapper: Mappers.PrivateEndpointConnectionListResult
|
|
@@ -199,24 +291,20 @@ const listOperationSpec: msRest.OperationSpec = {
|
|
|
199
291
|
bodyMapper: Mappers.ErrorResponse
|
|
200
292
|
}
|
|
201
293
|
},
|
|
202
|
-
|
|
203
|
-
};
|
|
204
|
-
|
|
205
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
206
|
-
httpMethod: "GET",
|
|
207
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
294
|
+
queryParameters: [Parameters.apiVersion],
|
|
208
295
|
urlParameters: [
|
|
296
|
+
Parameters.$host,
|
|
209
297
|
Parameters.resourceGroupName,
|
|
210
298
|
Parameters.accountName,
|
|
211
|
-
Parameters.subscriptionId
|
|
212
|
-
Parameters.privateEndpointConnectionName
|
|
213
|
-
],
|
|
214
|
-
queryParameters: [
|
|
215
|
-
Parameters.apiVersion
|
|
216
|
-
],
|
|
217
|
-
headerParameters: [
|
|
218
|
-
Parameters.acceptLanguage
|
|
299
|
+
Parameters.subscriptionId
|
|
219
300
|
],
|
|
301
|
+
headerParameters: [Parameters.accept],
|
|
302
|
+
serializer
|
|
303
|
+
};
|
|
304
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
305
|
+
path:
|
|
306
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
307
|
+
httpMethod: "GET",
|
|
220
308
|
responses: {
|
|
221
309
|
200: {
|
|
222
310
|
bodyMapper: Mappers.PrivateEndpointConnection
|
|
@@ -225,67 +313,72 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
|
225
313
|
bodyMapper: Mappers.ErrorResponse
|
|
226
314
|
}
|
|
227
315
|
},
|
|
228
|
-
|
|
229
|
-
};
|
|
230
|
-
|
|
231
|
-
const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
232
|
-
httpMethod: "PUT",
|
|
233
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
316
|
+
queryParameters: [Parameters.apiVersion],
|
|
234
317
|
urlParameters: [
|
|
318
|
+
Parameters.$host,
|
|
235
319
|
Parameters.resourceGroupName,
|
|
236
320
|
Parameters.accountName,
|
|
237
321
|
Parameters.subscriptionId,
|
|
238
322
|
Parameters.privateEndpointConnectionName
|
|
239
323
|
],
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
parameterPath: "properties",
|
|
248
|
-
mapper: {
|
|
249
|
-
...Mappers.PrivateEndpointConnection,
|
|
250
|
-
required: true
|
|
251
|
-
}
|
|
252
|
-
},
|
|
324
|
+
headerParameters: [Parameters.accept],
|
|
325
|
+
serializer
|
|
326
|
+
};
|
|
327
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
328
|
+
path:
|
|
329
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
330
|
+
httpMethod: "PUT",
|
|
253
331
|
responses: {
|
|
254
332
|
200: {
|
|
255
333
|
bodyMapper: Mappers.PrivateEndpointConnection
|
|
256
334
|
},
|
|
335
|
+
201: {
|
|
336
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
337
|
+
},
|
|
257
338
|
202: {
|
|
258
339
|
bodyMapper: Mappers.PrivateEndpointConnection
|
|
259
340
|
},
|
|
341
|
+
204: {
|
|
342
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
343
|
+
},
|
|
260
344
|
default: {
|
|
261
345
|
bodyMapper: Mappers.ErrorResponse
|
|
262
346
|
}
|
|
263
347
|
},
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
268
|
-
httpMethod: "DELETE",
|
|
269
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
348
|
+
requestBody: Parameters.properties,
|
|
349
|
+
queryParameters: [Parameters.apiVersion],
|
|
270
350
|
urlParameters: [
|
|
351
|
+
Parameters.$host,
|
|
271
352
|
Parameters.resourceGroupName,
|
|
272
353
|
Parameters.accountName,
|
|
273
354
|
Parameters.subscriptionId,
|
|
274
355
|
Parameters.privateEndpointConnectionName
|
|
275
356
|
],
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
357
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
358
|
+
mediaType: "json",
|
|
359
|
+
serializer
|
|
360
|
+
};
|
|
361
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
362
|
+
path:
|
|
363
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
364
|
+
httpMethod: "DELETE",
|
|
282
365
|
responses: {
|
|
283
366
|
200: {},
|
|
367
|
+
201: {},
|
|
284
368
|
202: {},
|
|
285
369
|
204: {},
|
|
286
370
|
default: {
|
|
287
371
|
bodyMapper: Mappers.ErrorResponse
|
|
288
372
|
}
|
|
289
373
|
},
|
|
374
|
+
queryParameters: [Parameters.apiVersion],
|
|
375
|
+
urlParameters: [
|
|
376
|
+
Parameters.$host,
|
|
377
|
+
Parameters.resourceGroupName,
|
|
378
|
+
Parameters.accountName,
|
|
379
|
+
Parameters.subscriptionId,
|
|
380
|
+
Parameters.privateEndpointConnectionName
|
|
381
|
+
],
|
|
382
|
+
headerParameters: [Parameters.accept],
|
|
290
383
|
serializer
|
|
291
384
|
};
|
|
@@ -3,25 +3,28 @@
|
|
|
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 * as
|
|
12
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { PrivateLinkResources } from "../operationsInterfaces";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
13
12
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
13
|
+
import { CognitiveServicesManagementClient } from "../cognitiveServicesManagementClient";
|
|
14
|
+
import {
|
|
15
|
+
PrivateLinkResourcesListOptionalParams,
|
|
16
|
+
PrivateLinkResourcesListResponse
|
|
17
|
+
} from "../models";
|
|
15
18
|
|
|
16
|
-
/** Class
|
|
17
|
-
export class PrivateLinkResources {
|
|
18
|
-
private readonly client:
|
|
19
|
+
/** Class containing PrivateLinkResources operations. */
|
|
20
|
+
export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
21
|
+
private readonly client: CognitiveServicesManagementClient;
|
|
19
22
|
|
|
20
23
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @param
|
|
24
|
+
* Initialize a new instance of the class PrivateLinkResources class.
|
|
25
|
+
* @param client Reference to the service client
|
|
23
26
|
*/
|
|
24
|
-
constructor(client:
|
|
27
|
+
constructor(client: CognitiveServicesManagementClient) {
|
|
25
28
|
this.client = client;
|
|
26
29
|
}
|
|
27
30
|
|
|
@@ -29,51 +32,26 @@ export class PrivateLinkResources {
|
|
|
29
32
|
* Gets the private link resources that need to be created for a Cognitive Services account.
|
|
30
33
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
31
34
|
* @param accountName The name of Cognitive Services account.
|
|
32
|
-
* @param
|
|
33
|
-
* @returns Promise<Models.PrivateLinkResourcesListResponse>
|
|
35
|
+
* @param options The options parameters.
|
|
34
36
|
*/
|
|
35
|
-
list(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
*/
|
|
41
|
-
list(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback<Models.PrivateLinkResourceListResult>): void;
|
|
42
|
-
/**
|
|
43
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
44
|
-
* @param accountName The name of Cognitive Services account.
|
|
45
|
-
* @param options The optional parameters
|
|
46
|
-
* @param callback The callback
|
|
47
|
-
*/
|
|
48
|
-
list(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.PrivateLinkResourceListResult>): void;
|
|
49
|
-
list(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.PrivateLinkResourceListResult>, callback?: msRest.ServiceCallback<Models.PrivateLinkResourceListResult>): Promise<Models.PrivateLinkResourcesListResponse> {
|
|
37
|
+
list(
|
|
38
|
+
resourceGroupName: string,
|
|
39
|
+
accountName: string,
|
|
40
|
+
options?: PrivateLinkResourcesListOptionalParams
|
|
41
|
+
): Promise<PrivateLinkResourcesListResponse> {
|
|
50
42
|
return this.client.sendOperationRequest(
|
|
51
|
-
{
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
options
|
|
55
|
-
},
|
|
56
|
-
listOperationSpec,
|
|
57
|
-
callback) as Promise<Models.PrivateLinkResourcesListResponse>;
|
|
43
|
+
{ resourceGroupName, accountName, options },
|
|
44
|
+
listOperationSpec
|
|
45
|
+
);
|
|
58
46
|
}
|
|
59
47
|
}
|
|
60
|
-
|
|
61
48
|
// Operation Specifications
|
|
62
|
-
const serializer =
|
|
63
|
-
|
|
49
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
50
|
+
|
|
51
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
52
|
+
path:
|
|
53
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateLinkResources",
|
|
64
54
|
httpMethod: "GET",
|
|
65
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateLinkResources",
|
|
66
|
-
urlParameters: [
|
|
67
|
-
Parameters.resourceGroupName,
|
|
68
|
-
Parameters.accountName,
|
|
69
|
-
Parameters.subscriptionId
|
|
70
|
-
],
|
|
71
|
-
queryParameters: [
|
|
72
|
-
Parameters.apiVersion
|
|
73
|
-
],
|
|
74
|
-
headerParameters: [
|
|
75
|
-
Parameters.acceptLanguage
|
|
76
|
-
],
|
|
77
55
|
responses: {
|
|
78
56
|
200: {
|
|
79
57
|
bodyMapper: Mappers.PrivateLinkResourceListResult
|
|
@@ -82,5 +60,13 @@ const listOperationSpec: msRest.OperationSpec = {
|
|
|
82
60
|
bodyMapper: Mappers.ErrorResponse
|
|
83
61
|
}
|
|
84
62
|
},
|
|
63
|
+
queryParameters: [Parameters.apiVersion],
|
|
64
|
+
urlParameters: [
|
|
65
|
+
Parameters.$host,
|
|
66
|
+
Parameters.resourceGroupName,
|
|
67
|
+
Parameters.accountName,
|
|
68
|
+
Parameters.subscriptionId
|
|
69
|
+
],
|
|
70
|
+
headerParameters: [Parameters.accept],
|
|
85
71
|
serializer
|
|
86
72
|
};
|