@azure/arm-cognitiveservices 5.2.0 → 7.0.0-alpha.20211202.3
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 +16 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +72 -77
- 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 +1474 -738
- 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 +4 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +17 -0
- 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/dist-esm/src/operationsInterfaces/accounts.js +9 -0
- 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/dist-esm/src/operationsInterfaces/commitmentPlans.js +9 -0
- 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/dist-esm/src/operationsInterfaces/commitmentTiers.js +9 -0
- 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/dist-esm/src/operationsInterfaces/deletedAccounts.js +9 -0
- 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 -21
- package/review/arm-cognitiveservices.api.md +1150 -0
- package/rollup.config.js +181 -30
- package/src/cognitiveServicesManagementClient.ts +163 -142
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1223 -1103
- package/src/models/mappers.ts +1513 -736
- package/src/models/parameters.ts +162 -47
- package/src/operations/accounts.ts +610 -495
- package/src/operations/commitmentPlans.ts +394 -0
- package/src/operations/commitmentTiers.ts +158 -0
- package/src/operations/deletedAccounts.ts +298 -0
- package/src/operations/deployments.ts +464 -0
- package/src/operations/index.ts +7 -5
- package/src/operations/operations.ts +91 -77
- package/src/operations/privateEndpointConnections.ts +281 -134
- package/src/operations/privateLinkResources.ts +40 -55
- package/src/operations/resourceSkus.ts +96 -80
- 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/{esm/operations/index.js → src/operationsInterfaces/index.ts} +8 -6
- 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 -2719
- 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 -70
- package/esm/cognitiveServicesManagementClient.d.ts.map +0 -1
- package/esm/cognitiveServicesManagementClient.js +0 -116
- package/esm/cognitiveServicesManagementClient.js.map +0 -1
- package/esm/cognitiveServicesManagementClientContext.d.ts +0 -16
- package/esm/cognitiveServicesManagementClientContext.d.ts.map +0 -1
- package/esm/cognitiveServicesManagementClientContext.js +0 -56
- 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/index.d.ts +0 -1277
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -50
- 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 -11
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -119
- 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 -260
- package/esm/operations/accounts.d.ts.map +0 -1
- package/esm/operations/accounts.js +0 -411
- package/esm/operations/accounts.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 -77
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/privateEndpointConnections.d.ts +0 -99
- package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
- package/esm/operations/privateEndpointConnections.js +0 -131
- 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 -58
- 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 -80
- package/esm/operations/resourceSkus.js.map +0 -1
- package/src/cognitiveServicesManagementClientContext.ts +0 -62
- package/src/models/accountsMappers.ts +0 -44
- package/src/models/operationsMappers.ts +0 -14
- package/src/models/privateEndpointConnectionsMappers.ts +0 -35
- package/src/models/privateLinkResourcesMappers.ts +0 -36
- package/src/models/resourceSkusMappers.ts +0 -15
|
@@ -0,0 +1,464 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Deployments } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { CognitiveServicesManagementClient } from "../cognitiveServicesManagementClient";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
Deployment,
|
|
19
|
+
DeploymentsListNextOptionalParams,
|
|
20
|
+
DeploymentsListOptionalParams,
|
|
21
|
+
DeploymentsListResponse,
|
|
22
|
+
DeploymentsGetOptionalParams,
|
|
23
|
+
DeploymentsGetResponse,
|
|
24
|
+
DeploymentsCreateOrUpdateOptionalParams,
|
|
25
|
+
DeploymentsCreateOrUpdateResponse,
|
|
26
|
+
DeploymentsDeleteOptionalParams,
|
|
27
|
+
DeploymentsListNextResponse
|
|
28
|
+
} from "../models";
|
|
29
|
+
|
|
30
|
+
/// <reference lib="esnext.asynciterable" />
|
|
31
|
+
/** Class containing Deployments operations. */
|
|
32
|
+
export class DeploymentsImpl implements Deployments {
|
|
33
|
+
private readonly client: CognitiveServicesManagementClient;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Initialize a new instance of the class Deployments class.
|
|
37
|
+
* @param client Reference to the service client
|
|
38
|
+
*/
|
|
39
|
+
constructor(client: CognitiveServicesManagementClient) {
|
|
40
|
+
this.client = client;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Gets the deployments associated with the Cognitive Services account.
|
|
45
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
46
|
+
* @param accountName The name of Cognitive Services account.
|
|
47
|
+
* @param options The options parameters.
|
|
48
|
+
*/
|
|
49
|
+
public list(
|
|
50
|
+
resourceGroupName: string,
|
|
51
|
+
accountName: string,
|
|
52
|
+
options?: DeploymentsListOptionalParams
|
|
53
|
+
): PagedAsyncIterableIterator<Deployment> {
|
|
54
|
+
const iter = this.listPagingAll(resourceGroupName, accountName, options);
|
|
55
|
+
return {
|
|
56
|
+
next() {
|
|
57
|
+
return iter.next();
|
|
58
|
+
},
|
|
59
|
+
[Symbol.asyncIterator]() {
|
|
60
|
+
return this;
|
|
61
|
+
},
|
|
62
|
+
byPage: () => {
|
|
63
|
+
return this.listPagingPage(resourceGroupName, accountName, options);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
private async *listPagingPage(
|
|
69
|
+
resourceGroupName: string,
|
|
70
|
+
accountName: string,
|
|
71
|
+
options?: DeploymentsListOptionalParams
|
|
72
|
+
): AsyncIterableIterator<Deployment[]> {
|
|
73
|
+
let result = await this._list(resourceGroupName, accountName, options);
|
|
74
|
+
yield result.value || [];
|
|
75
|
+
let continuationToken = result.nextLink;
|
|
76
|
+
while (continuationToken) {
|
|
77
|
+
result = await this._listNext(
|
|
78
|
+
resourceGroupName,
|
|
79
|
+
accountName,
|
|
80
|
+
continuationToken,
|
|
81
|
+
options
|
|
82
|
+
);
|
|
83
|
+
continuationToken = result.nextLink;
|
|
84
|
+
yield result.value || [];
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
private async *listPagingAll(
|
|
89
|
+
resourceGroupName: string,
|
|
90
|
+
accountName: string,
|
|
91
|
+
options?: DeploymentsListOptionalParams
|
|
92
|
+
): AsyncIterableIterator<Deployment> {
|
|
93
|
+
for await (const page of this.listPagingPage(
|
|
94
|
+
resourceGroupName,
|
|
95
|
+
accountName,
|
|
96
|
+
options
|
|
97
|
+
)) {
|
|
98
|
+
yield* page;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Gets the deployments associated with the Cognitive Services account.
|
|
104
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
105
|
+
* @param accountName The name of Cognitive Services account.
|
|
106
|
+
* @param options The options parameters.
|
|
107
|
+
*/
|
|
108
|
+
private _list(
|
|
109
|
+
resourceGroupName: string,
|
|
110
|
+
accountName: string,
|
|
111
|
+
options?: DeploymentsListOptionalParams
|
|
112
|
+
): Promise<DeploymentsListResponse> {
|
|
113
|
+
return this.client.sendOperationRequest(
|
|
114
|
+
{ resourceGroupName, accountName, options },
|
|
115
|
+
listOperationSpec
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Gets the specified deployments associated with the Cognitive Services account.
|
|
121
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
122
|
+
* @param accountName The name of Cognitive Services account.
|
|
123
|
+
* @param deploymentName The name of the deployment associated with the Cognitive Services Account
|
|
124
|
+
* @param options The options parameters.
|
|
125
|
+
*/
|
|
126
|
+
get(
|
|
127
|
+
resourceGroupName: string,
|
|
128
|
+
accountName: string,
|
|
129
|
+
deploymentName: string,
|
|
130
|
+
options?: DeploymentsGetOptionalParams
|
|
131
|
+
): Promise<DeploymentsGetResponse> {
|
|
132
|
+
return this.client.sendOperationRequest(
|
|
133
|
+
{ resourceGroupName, accountName, deploymentName, options },
|
|
134
|
+
getOperationSpec
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Update the state of specified deployments associated with the Cognitive Services account.
|
|
140
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
141
|
+
* @param accountName The name of Cognitive Services account.
|
|
142
|
+
* @param deploymentName The name of the deployment associated with the Cognitive Services Account
|
|
143
|
+
* @param deployment The deployment properties.
|
|
144
|
+
* @param options The options parameters.
|
|
145
|
+
*/
|
|
146
|
+
async beginCreateOrUpdate(
|
|
147
|
+
resourceGroupName: string,
|
|
148
|
+
accountName: string,
|
|
149
|
+
deploymentName: string,
|
|
150
|
+
deployment: Deployment,
|
|
151
|
+
options?: DeploymentsCreateOrUpdateOptionalParams
|
|
152
|
+
): Promise<
|
|
153
|
+
PollerLike<
|
|
154
|
+
PollOperationState<DeploymentsCreateOrUpdateResponse>,
|
|
155
|
+
DeploymentsCreateOrUpdateResponse
|
|
156
|
+
>
|
|
157
|
+
> {
|
|
158
|
+
const directSendOperation = async (
|
|
159
|
+
args: coreClient.OperationArguments,
|
|
160
|
+
spec: coreClient.OperationSpec
|
|
161
|
+
): Promise<DeploymentsCreateOrUpdateResponse> => {
|
|
162
|
+
return this.client.sendOperationRequest(args, spec);
|
|
163
|
+
};
|
|
164
|
+
const sendOperation = async (
|
|
165
|
+
args: coreClient.OperationArguments,
|
|
166
|
+
spec: coreClient.OperationSpec
|
|
167
|
+
) => {
|
|
168
|
+
let currentRawResponse:
|
|
169
|
+
| coreClient.FullOperationResponse
|
|
170
|
+
| undefined = undefined;
|
|
171
|
+
const providedCallback = args.options?.onResponse;
|
|
172
|
+
const callback: coreClient.RawResponseCallback = (
|
|
173
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
174
|
+
flatResponse: unknown
|
|
175
|
+
) => {
|
|
176
|
+
currentRawResponse = rawResponse;
|
|
177
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
178
|
+
};
|
|
179
|
+
const updatedArgs = {
|
|
180
|
+
...args,
|
|
181
|
+
options: {
|
|
182
|
+
...args.options,
|
|
183
|
+
onResponse: callback
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
187
|
+
return {
|
|
188
|
+
flatResponse,
|
|
189
|
+
rawResponse: {
|
|
190
|
+
statusCode: currentRawResponse!.status,
|
|
191
|
+
body: currentRawResponse!.parsedBody,
|
|
192
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
const lro = new LroImpl(
|
|
198
|
+
sendOperation,
|
|
199
|
+
{ resourceGroupName, accountName, deploymentName, deployment, options },
|
|
200
|
+
createOrUpdateOperationSpec
|
|
201
|
+
);
|
|
202
|
+
return new LroEngine(lro, {
|
|
203
|
+
resumeFrom: options?.resumeFrom,
|
|
204
|
+
intervalInMs: options?.updateIntervalInMs
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Update the state of specified deployments associated with the Cognitive Services account.
|
|
210
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
211
|
+
* @param accountName The name of Cognitive Services account.
|
|
212
|
+
* @param deploymentName The name of the deployment associated with the Cognitive Services Account
|
|
213
|
+
* @param deployment The deployment properties.
|
|
214
|
+
* @param options The options parameters.
|
|
215
|
+
*/
|
|
216
|
+
async beginCreateOrUpdateAndWait(
|
|
217
|
+
resourceGroupName: string,
|
|
218
|
+
accountName: string,
|
|
219
|
+
deploymentName: string,
|
|
220
|
+
deployment: Deployment,
|
|
221
|
+
options?: DeploymentsCreateOrUpdateOptionalParams
|
|
222
|
+
): Promise<DeploymentsCreateOrUpdateResponse> {
|
|
223
|
+
const poller = await this.beginCreateOrUpdate(
|
|
224
|
+
resourceGroupName,
|
|
225
|
+
accountName,
|
|
226
|
+
deploymentName,
|
|
227
|
+
deployment,
|
|
228
|
+
options
|
|
229
|
+
);
|
|
230
|
+
return poller.pollUntilDone();
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Deletes the specified deployment associated with the Cognitive Services account.
|
|
235
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
236
|
+
* @param accountName The name of Cognitive Services account.
|
|
237
|
+
* @param deploymentName The name of the deployment associated with the Cognitive Services Account
|
|
238
|
+
* @param options The options parameters.
|
|
239
|
+
*/
|
|
240
|
+
async beginDelete(
|
|
241
|
+
resourceGroupName: string,
|
|
242
|
+
accountName: string,
|
|
243
|
+
deploymentName: string,
|
|
244
|
+
options?: DeploymentsDeleteOptionalParams
|
|
245
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
246
|
+
const directSendOperation = async (
|
|
247
|
+
args: coreClient.OperationArguments,
|
|
248
|
+
spec: coreClient.OperationSpec
|
|
249
|
+
): Promise<void> => {
|
|
250
|
+
return this.client.sendOperationRequest(args, spec);
|
|
251
|
+
};
|
|
252
|
+
const sendOperation = async (
|
|
253
|
+
args: coreClient.OperationArguments,
|
|
254
|
+
spec: coreClient.OperationSpec
|
|
255
|
+
) => {
|
|
256
|
+
let currentRawResponse:
|
|
257
|
+
| coreClient.FullOperationResponse
|
|
258
|
+
| undefined = undefined;
|
|
259
|
+
const providedCallback = args.options?.onResponse;
|
|
260
|
+
const callback: coreClient.RawResponseCallback = (
|
|
261
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
262
|
+
flatResponse: unknown
|
|
263
|
+
) => {
|
|
264
|
+
currentRawResponse = rawResponse;
|
|
265
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
266
|
+
};
|
|
267
|
+
const updatedArgs = {
|
|
268
|
+
...args,
|
|
269
|
+
options: {
|
|
270
|
+
...args.options,
|
|
271
|
+
onResponse: callback
|
|
272
|
+
}
|
|
273
|
+
};
|
|
274
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
275
|
+
return {
|
|
276
|
+
flatResponse,
|
|
277
|
+
rawResponse: {
|
|
278
|
+
statusCode: currentRawResponse!.status,
|
|
279
|
+
body: currentRawResponse!.parsedBody,
|
|
280
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
const lro = new LroImpl(
|
|
286
|
+
sendOperation,
|
|
287
|
+
{ resourceGroupName, accountName, deploymentName, options },
|
|
288
|
+
deleteOperationSpec
|
|
289
|
+
);
|
|
290
|
+
return new LroEngine(lro, {
|
|
291
|
+
resumeFrom: options?.resumeFrom,
|
|
292
|
+
intervalInMs: options?.updateIntervalInMs
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Deletes the specified deployment associated with the Cognitive Services account.
|
|
298
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
299
|
+
* @param accountName The name of Cognitive Services account.
|
|
300
|
+
* @param deploymentName The name of the deployment associated with the Cognitive Services Account
|
|
301
|
+
* @param options The options parameters.
|
|
302
|
+
*/
|
|
303
|
+
async beginDeleteAndWait(
|
|
304
|
+
resourceGroupName: string,
|
|
305
|
+
accountName: string,
|
|
306
|
+
deploymentName: string,
|
|
307
|
+
options?: DeploymentsDeleteOptionalParams
|
|
308
|
+
): Promise<void> {
|
|
309
|
+
const poller = await this.beginDelete(
|
|
310
|
+
resourceGroupName,
|
|
311
|
+
accountName,
|
|
312
|
+
deploymentName,
|
|
313
|
+
options
|
|
314
|
+
);
|
|
315
|
+
return poller.pollUntilDone();
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* ListNext
|
|
320
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
321
|
+
* @param accountName The name of Cognitive Services account.
|
|
322
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
323
|
+
* @param options The options parameters.
|
|
324
|
+
*/
|
|
325
|
+
private _listNext(
|
|
326
|
+
resourceGroupName: string,
|
|
327
|
+
accountName: string,
|
|
328
|
+
nextLink: string,
|
|
329
|
+
options?: DeploymentsListNextOptionalParams
|
|
330
|
+
): Promise<DeploymentsListNextResponse> {
|
|
331
|
+
return this.client.sendOperationRequest(
|
|
332
|
+
{ resourceGroupName, accountName, nextLink, options },
|
|
333
|
+
listNextOperationSpec
|
|
334
|
+
);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
// Operation Specifications
|
|
338
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
339
|
+
|
|
340
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
341
|
+
path:
|
|
342
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/deployments",
|
|
343
|
+
httpMethod: "GET",
|
|
344
|
+
responses: {
|
|
345
|
+
200: {
|
|
346
|
+
bodyMapper: Mappers.DeploymentListResult
|
|
347
|
+
},
|
|
348
|
+
default: {
|
|
349
|
+
bodyMapper: Mappers.ErrorResponse
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
queryParameters: [Parameters.apiVersion],
|
|
353
|
+
urlParameters: [
|
|
354
|
+
Parameters.$host,
|
|
355
|
+
Parameters.resourceGroupName,
|
|
356
|
+
Parameters.accountName,
|
|
357
|
+
Parameters.subscriptionId
|
|
358
|
+
],
|
|
359
|
+
headerParameters: [Parameters.accept],
|
|
360
|
+
serializer
|
|
361
|
+
};
|
|
362
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
363
|
+
path:
|
|
364
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/deployments/{deploymentName}",
|
|
365
|
+
httpMethod: "GET",
|
|
366
|
+
responses: {
|
|
367
|
+
200: {
|
|
368
|
+
bodyMapper: Mappers.Deployment
|
|
369
|
+
},
|
|
370
|
+
default: {
|
|
371
|
+
bodyMapper: Mappers.ErrorResponse
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
queryParameters: [Parameters.apiVersion],
|
|
375
|
+
urlParameters: [
|
|
376
|
+
Parameters.$host,
|
|
377
|
+
Parameters.resourceGroupName,
|
|
378
|
+
Parameters.accountName,
|
|
379
|
+
Parameters.subscriptionId,
|
|
380
|
+
Parameters.deploymentName
|
|
381
|
+
],
|
|
382
|
+
headerParameters: [Parameters.accept],
|
|
383
|
+
serializer
|
|
384
|
+
};
|
|
385
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
386
|
+
path:
|
|
387
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/deployments/{deploymentName}",
|
|
388
|
+
httpMethod: "PUT",
|
|
389
|
+
responses: {
|
|
390
|
+
200: {
|
|
391
|
+
bodyMapper: Mappers.Deployment
|
|
392
|
+
},
|
|
393
|
+
201: {
|
|
394
|
+
bodyMapper: Mappers.Deployment
|
|
395
|
+
},
|
|
396
|
+
202: {
|
|
397
|
+
bodyMapper: Mappers.Deployment
|
|
398
|
+
},
|
|
399
|
+
204: {
|
|
400
|
+
bodyMapper: Mappers.Deployment
|
|
401
|
+
},
|
|
402
|
+
default: {
|
|
403
|
+
bodyMapper: Mappers.ErrorResponse
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
requestBody: Parameters.deployment,
|
|
407
|
+
queryParameters: [Parameters.apiVersion],
|
|
408
|
+
urlParameters: [
|
|
409
|
+
Parameters.$host,
|
|
410
|
+
Parameters.resourceGroupName,
|
|
411
|
+
Parameters.accountName,
|
|
412
|
+
Parameters.subscriptionId,
|
|
413
|
+
Parameters.deploymentName
|
|
414
|
+
],
|
|
415
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
416
|
+
mediaType: "json",
|
|
417
|
+
serializer
|
|
418
|
+
};
|
|
419
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
420
|
+
path:
|
|
421
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/deployments/{deploymentName}",
|
|
422
|
+
httpMethod: "DELETE",
|
|
423
|
+
responses: {
|
|
424
|
+
200: {},
|
|
425
|
+
201: {},
|
|
426
|
+
202: {},
|
|
427
|
+
204: {},
|
|
428
|
+
default: {
|
|
429
|
+
bodyMapper: Mappers.ErrorResponse
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
queryParameters: [Parameters.apiVersion],
|
|
433
|
+
urlParameters: [
|
|
434
|
+
Parameters.$host,
|
|
435
|
+
Parameters.resourceGroupName,
|
|
436
|
+
Parameters.accountName,
|
|
437
|
+
Parameters.subscriptionId,
|
|
438
|
+
Parameters.deploymentName
|
|
439
|
+
],
|
|
440
|
+
headerParameters: [Parameters.accept],
|
|
441
|
+
serializer
|
|
442
|
+
};
|
|
443
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
444
|
+
path: "{nextLink}",
|
|
445
|
+
httpMethod: "GET",
|
|
446
|
+
responses: {
|
|
447
|
+
200: {
|
|
448
|
+
bodyMapper: Mappers.DeploymentListResult
|
|
449
|
+
},
|
|
450
|
+
default: {
|
|
451
|
+
bodyMapper: Mappers.ErrorResponse
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
queryParameters: [Parameters.apiVersion],
|
|
455
|
+
urlParameters: [
|
|
456
|
+
Parameters.$host,
|
|
457
|
+
Parameters.resourceGroupName,
|
|
458
|
+
Parameters.accountName,
|
|
459
|
+
Parameters.subscriptionId,
|
|
460
|
+
Parameters.nextLink
|
|
461
|
+
],
|
|
462
|
+
headerParameters: [Parameters.accept],
|
|
463
|
+
serializer
|
|
464
|
+
};
|
package/src/operations/index.ts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
9
|
export * from "./accounts";
|
|
10
|
+
export * from "./deletedAccounts";
|
|
12
11
|
export * from "./resourceSkus";
|
|
13
12
|
export * from "./operations";
|
|
13
|
+
export * from "./commitmentTiers";
|
|
14
14
|
export * from "./privateEndpointConnections";
|
|
15
15
|
export * from "./privateLinkResources";
|
|
16
|
+
export * from "./deployments";
|
|
17
|
+
export * from "./commitmentPlans";
|
|
@@ -1,123 +1,137 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import * as
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Operations } 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 { CognitiveServicesManagementClient } from "../cognitiveServicesManagementClient";
|
|
15
|
+
import {
|
|
16
|
+
Operation,
|
|
17
|
+
OperationsListNextOptionalParams,
|
|
18
|
+
OperationsListOptionalParams,
|
|
19
|
+
OperationsListResponse,
|
|
20
|
+
OperationsListNextResponse
|
|
21
|
+
} from "../models";
|
|
16
22
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
23
|
+
/// <reference lib="esnext.asynciterable" />
|
|
24
|
+
/** Class containing Operations operations. */
|
|
25
|
+
export class OperationsImpl implements Operations {
|
|
26
|
+
private readonly client: CognitiveServicesManagementClient;
|
|
20
27
|
|
|
21
28
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
29
|
+
* Initialize a new instance of the class Operations class.
|
|
30
|
+
* @param client Reference to the service client
|
|
24
31
|
*/
|
|
25
|
-
constructor(client:
|
|
32
|
+
constructor(client: CognitiveServicesManagementClient) {
|
|
26
33
|
this.client = client;
|
|
27
34
|
}
|
|
28
35
|
|
|
29
36
|
/**
|
|
30
37
|
* Lists all the available Cognitive Services account operations.
|
|
31
|
-
* @param
|
|
32
|
-
* @returns Promise<Models.OperationsListResponse>
|
|
38
|
+
* @param options The options parameters.
|
|
33
39
|
*/
|
|
34
|
-
list(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationEntityListResult>, callback?: msRest.ServiceCallback<Models.OperationEntityListResult>): Promise<Models.OperationsListResponse> {
|
|
45
|
-
return this.client.sendOperationRequest(
|
|
46
|
-
{
|
|
47
|
-
options
|
|
40
|
+
public list(
|
|
41
|
+
options?: OperationsListOptionalParams
|
|
42
|
+
): PagedAsyncIterableIterator<Operation> {
|
|
43
|
+
const iter = this.listPagingAll(options);
|
|
44
|
+
return {
|
|
45
|
+
next() {
|
|
46
|
+
return iter.next();
|
|
47
|
+
},
|
|
48
|
+
[Symbol.asyncIterator]() {
|
|
49
|
+
return this;
|
|
48
50
|
},
|
|
49
|
-
|
|
50
|
-
|
|
51
|
+
byPage: () => {
|
|
52
|
+
return this.listPagingPage(options);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
private async *listPagingPage(
|
|
58
|
+
options?: OperationsListOptionalParams
|
|
59
|
+
): AsyncIterableIterator<Operation[]> {
|
|
60
|
+
let result = await this._list(options);
|
|
61
|
+
yield result.value || [];
|
|
62
|
+
let continuationToken = result.nextLink;
|
|
63
|
+
while (continuationToken) {
|
|
64
|
+
result = await this._listNext(continuationToken, options);
|
|
65
|
+
continuationToken = result.nextLink;
|
|
66
|
+
yield result.value || [];
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
private async *listPagingAll(
|
|
71
|
+
options?: OperationsListOptionalParams
|
|
72
|
+
): AsyncIterableIterator<Operation> {
|
|
73
|
+
for await (const page of this.listPagingPage(options)) {
|
|
74
|
+
yield* page;
|
|
75
|
+
}
|
|
51
76
|
}
|
|
52
77
|
|
|
53
78
|
/**
|
|
54
79
|
* Lists all the available Cognitive Services account operations.
|
|
55
|
-
* @param
|
|
56
|
-
* @param [options] The optional parameters
|
|
57
|
-
* @returns Promise<Models.OperationsListNextResponse>
|
|
58
|
-
*/
|
|
59
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.OperationsListNextResponse>;
|
|
60
|
-
/**
|
|
61
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
62
|
-
* @param callback The callback
|
|
80
|
+
* @param options The options parameters.
|
|
63
81
|
*/
|
|
64
|
-
|
|
82
|
+
private _list(
|
|
83
|
+
options?: OperationsListOptionalParams
|
|
84
|
+
): Promise<OperationsListResponse> {
|
|
85
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
86
|
+
}
|
|
87
|
+
|
|
65
88
|
/**
|
|
66
|
-
*
|
|
67
|
-
* @param
|
|
68
|
-
* @param
|
|
89
|
+
* ListNext
|
|
90
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
91
|
+
* @param options The options parameters.
|
|
69
92
|
*/
|
|
70
|
-
|
|
71
|
-
|
|
93
|
+
private _listNext(
|
|
94
|
+
nextLink: string,
|
|
95
|
+
options?: OperationsListNextOptionalParams
|
|
96
|
+
): Promise<OperationsListNextResponse> {
|
|
72
97
|
return this.client.sendOperationRequest(
|
|
73
|
-
{
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
},
|
|
77
|
-
listNextOperationSpec,
|
|
78
|
-
callback) as Promise<Models.OperationsListNextResponse>;
|
|
98
|
+
{ nextLink, options },
|
|
99
|
+
listNextOperationSpec
|
|
100
|
+
);
|
|
79
101
|
}
|
|
80
102
|
}
|
|
81
|
-
|
|
82
103
|
// Operation Specifications
|
|
83
|
-
const serializer =
|
|
84
|
-
|
|
104
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
105
|
+
|
|
106
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
107
|
+
path: "/providers/Microsoft.CognitiveServices/operations",
|
|
85
108
|
httpMethod: "GET",
|
|
86
|
-
path: "providers/Microsoft.CognitiveServices/operations",
|
|
87
|
-
queryParameters: [
|
|
88
|
-
Parameters.apiVersion
|
|
89
|
-
],
|
|
90
|
-
headerParameters: [
|
|
91
|
-
Parameters.acceptLanguage
|
|
92
|
-
],
|
|
93
109
|
responses: {
|
|
94
110
|
200: {
|
|
95
|
-
bodyMapper: Mappers.
|
|
111
|
+
bodyMapper: Mappers.OperationListResult
|
|
96
112
|
},
|
|
97
113
|
default: {
|
|
98
|
-
bodyMapper: Mappers.
|
|
114
|
+
bodyMapper: Mappers.ErrorResponse
|
|
99
115
|
}
|
|
100
116
|
},
|
|
117
|
+
queryParameters: [Parameters.apiVersion],
|
|
118
|
+
urlParameters: [Parameters.$host],
|
|
119
|
+
headerParameters: [Parameters.accept],
|
|
101
120
|
serializer
|
|
102
121
|
};
|
|
103
|
-
|
|
104
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
105
|
-
httpMethod: "GET",
|
|
106
|
-
baseUrl: "https://management.azure.com",
|
|
122
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
107
123
|
path: "{nextLink}",
|
|
108
|
-
|
|
109
|
-
Parameters.nextPageLink
|
|
110
|
-
],
|
|
111
|
-
headerParameters: [
|
|
112
|
-
Parameters.acceptLanguage
|
|
113
|
-
],
|
|
124
|
+
httpMethod: "GET",
|
|
114
125
|
responses: {
|
|
115
126
|
200: {
|
|
116
|
-
bodyMapper: Mappers.
|
|
127
|
+
bodyMapper: Mappers.OperationListResult
|
|
117
128
|
},
|
|
118
129
|
default: {
|
|
119
|
-
bodyMapper: Mappers.
|
|
130
|
+
bodyMapper: Mappers.ErrorResponse
|
|
120
131
|
}
|
|
121
132
|
},
|
|
133
|
+
queryParameters: [Parameters.apiVersion],
|
|
134
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
135
|
+
headerParameters: [Parameters.accept],
|
|
122
136
|
serializer
|
|
123
137
|
};
|