@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
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { CommitmentPlans } from "../operationsInterfaces";
|
|
3
|
+
import { CognitiveServicesManagementClient } from "../cognitiveServicesManagementClient";
|
|
4
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
5
|
+
import { CommitmentPlan, CommitmentPlansListOptionalParams, CommitmentPlansGetOptionalParams, CommitmentPlansGetResponse, CommitmentPlansCreateOrUpdateOptionalParams, CommitmentPlansCreateOrUpdateResponse, CommitmentPlansDeleteOptionalParams } from "../models";
|
|
6
|
+
/** Class containing CommitmentPlans operations. */
|
|
7
|
+
export declare class CommitmentPlansImpl implements CommitmentPlans {
|
|
8
|
+
private readonly client;
|
|
9
|
+
/**
|
|
10
|
+
* Initialize a new instance of the class CommitmentPlans class.
|
|
11
|
+
* @param client Reference to the service client
|
|
12
|
+
*/
|
|
13
|
+
constructor(client: CognitiveServicesManagementClient);
|
|
14
|
+
/**
|
|
15
|
+
* Gets the commitmentPlans associated with the Cognitive Services account.
|
|
16
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
17
|
+
* @param accountName The name of Cognitive Services account.
|
|
18
|
+
* @param options The options parameters.
|
|
19
|
+
*/
|
|
20
|
+
list(resourceGroupName: string, accountName: string, options?: CommitmentPlansListOptionalParams): PagedAsyncIterableIterator<CommitmentPlan>;
|
|
21
|
+
private listPagingPage;
|
|
22
|
+
private listPagingAll;
|
|
23
|
+
/**
|
|
24
|
+
* Gets the commitmentPlans associated with the Cognitive Services account.
|
|
25
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
26
|
+
* @param accountName The name of Cognitive Services account.
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
private _list;
|
|
30
|
+
/**
|
|
31
|
+
* Gets the specified commitmentPlans associated with the Cognitive Services account.
|
|
32
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
33
|
+
* @param accountName The name of Cognitive Services account.
|
|
34
|
+
* @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services
|
|
35
|
+
* Account
|
|
36
|
+
* @param options The options parameters.
|
|
37
|
+
*/
|
|
38
|
+
get(resourceGroupName: string, accountName: string, commitmentPlanName: string, options?: CommitmentPlansGetOptionalParams): Promise<CommitmentPlansGetResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* Update the state of specified commitmentPlans associated with the Cognitive Services account.
|
|
41
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
42
|
+
* @param accountName The name of Cognitive Services account.
|
|
43
|
+
* @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services
|
|
44
|
+
* Account
|
|
45
|
+
* @param commitmentPlan The commitmentPlan properties.
|
|
46
|
+
* @param options The options parameters.
|
|
47
|
+
*/
|
|
48
|
+
createOrUpdate(resourceGroupName: string, accountName: string, commitmentPlanName: string, commitmentPlan: CommitmentPlan, options?: CommitmentPlansCreateOrUpdateOptionalParams): Promise<CommitmentPlansCreateOrUpdateResponse>;
|
|
49
|
+
/**
|
|
50
|
+
* Deletes the specified commitmentPlan associated with the Cognitive Services account.
|
|
51
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
52
|
+
* @param accountName The name of Cognitive Services account.
|
|
53
|
+
* @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services
|
|
54
|
+
* Account
|
|
55
|
+
* @param options The options parameters.
|
|
56
|
+
*/
|
|
57
|
+
beginDelete(resourceGroupName: string, accountName: string, commitmentPlanName: string, options?: CommitmentPlansDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
58
|
+
/**
|
|
59
|
+
* Deletes the specified commitmentPlan associated with the Cognitive Services account.
|
|
60
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
61
|
+
* @param accountName The name of Cognitive Services account.
|
|
62
|
+
* @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services
|
|
63
|
+
* Account
|
|
64
|
+
* @param options The options parameters.
|
|
65
|
+
*/
|
|
66
|
+
beginDeleteAndWait(resourceGroupName: string, accountName: string, commitmentPlanName: string, options?: CommitmentPlansDeleteOptionalParams): Promise<void>;
|
|
67
|
+
/**
|
|
68
|
+
* ListNext
|
|
69
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
70
|
+
* @param accountName The name of Cognitive Services account.
|
|
71
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
72
|
+
* @param options The options parameters.
|
|
73
|
+
*/
|
|
74
|
+
private _listNext;
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=commitmentPlans.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commitmentPlans.d.ts","sourceRoot":"","sources":["../../../src/operations/commitmentPlans.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAI1D,OAAO,EAAE,iCAAiC,EAAE,MAAM,sCAAsC,CAAC;AACzF,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,cAAc,EAEd,iCAAiC,EAEjC,gCAAgC,EAChC,0BAA0B,EAC1B,2CAA2C,EAC3C,qCAAqC,EACrC,mCAAmC,EAEpC,MAAM,WAAW,CAAC;AAGnB,mDAAmD;AACnD,qBAAa,mBAAoB,YAAW,eAAe;IACzD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAE3D;;;OAGG;gBACS,MAAM,EAAE,iCAAiC;IAIrD;;;;;OAKG;IACI,IAAI,CACT,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,iCAAiC,GAC1C,0BAA0B,CAAC,cAAc,CAAC;YAe9B,cAAc;YAoBd,aAAa;IAc5B;;;;;OAKG;IACH,OAAO,CAAC,KAAK;IAWb;;;;;;;OAOG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC;IAOtC;;;;;;;;OAQG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,kBAAkB,EAAE,MAAM,EAC1B,cAAc,EAAE,cAAc,EAC9B,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,qCAAqC,CAAC;IAajD;;;;;;;OAOG;IACG,WAAW,CACf,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,mCAAmC,GAC5C,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;IAmDtD;;;;;;;OAOG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,mCAAmC,GAC5C,OAAO,CAAC,IAAI,CAAC;IAUhB;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;CAWlB"}
|
|
@@ -0,0 +1,293 @@
|
|
|
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
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
import { LroEngine } from "@azure/core-lro";
|
|
13
|
+
import { LroImpl } from "../lroImpl";
|
|
14
|
+
/// <reference lib="esnext.asynciterable" />
|
|
15
|
+
/** Class containing CommitmentPlans operations. */
|
|
16
|
+
export class CommitmentPlansImpl {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize a new instance of the class CommitmentPlans class.
|
|
19
|
+
* @param client Reference to the service client
|
|
20
|
+
*/
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Gets the commitmentPlans associated with the Cognitive Services account.
|
|
26
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
27
|
+
* @param accountName The name of Cognitive Services account.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
list(resourceGroupName, accountName, options) {
|
|
31
|
+
const iter = this.listPagingAll(resourceGroupName, accountName, options);
|
|
32
|
+
return {
|
|
33
|
+
next() {
|
|
34
|
+
return iter.next();
|
|
35
|
+
},
|
|
36
|
+
[Symbol.asyncIterator]() {
|
|
37
|
+
return this;
|
|
38
|
+
},
|
|
39
|
+
byPage: () => {
|
|
40
|
+
return this.listPagingPage(resourceGroupName, accountName, options);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
listPagingPage(resourceGroupName, accountName, options) {
|
|
45
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
46
|
+
let result = yield __await(this._list(resourceGroupName, accountName, options));
|
|
47
|
+
yield yield __await(result.value || []);
|
|
48
|
+
let continuationToken = result.nextLink;
|
|
49
|
+
while (continuationToken) {
|
|
50
|
+
result = yield __await(this._listNext(resourceGroupName, accountName, continuationToken, options));
|
|
51
|
+
continuationToken = result.nextLink;
|
|
52
|
+
yield yield __await(result.value || []);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
listPagingAll(resourceGroupName, accountName, options) {
|
|
57
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
58
|
+
var e_1, _a;
|
|
59
|
+
try {
|
|
60
|
+
for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, accountName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
61
|
+
const page = _c.value;
|
|
62
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
66
|
+
finally {
|
|
67
|
+
try {
|
|
68
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
69
|
+
}
|
|
70
|
+
finally { if (e_1) throw e_1.error; }
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Gets the commitmentPlans associated with the Cognitive Services account.
|
|
76
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
77
|
+
* @param accountName The name of Cognitive Services account.
|
|
78
|
+
* @param options The options parameters.
|
|
79
|
+
*/
|
|
80
|
+
_list(resourceGroupName, accountName, options) {
|
|
81
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listOperationSpec);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Gets the specified commitmentPlans associated with the Cognitive Services account.
|
|
85
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
86
|
+
* @param accountName The name of Cognitive Services account.
|
|
87
|
+
* @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services
|
|
88
|
+
* Account
|
|
89
|
+
* @param options The options parameters.
|
|
90
|
+
*/
|
|
91
|
+
get(resourceGroupName, accountName, commitmentPlanName, options) {
|
|
92
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, commitmentPlanName, options }, getOperationSpec);
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Update the state of specified commitmentPlans associated with the Cognitive Services account.
|
|
96
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
97
|
+
* @param accountName The name of Cognitive Services account.
|
|
98
|
+
* @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services
|
|
99
|
+
* Account
|
|
100
|
+
* @param commitmentPlan The commitmentPlan properties.
|
|
101
|
+
* @param options The options parameters.
|
|
102
|
+
*/
|
|
103
|
+
createOrUpdate(resourceGroupName, accountName, commitmentPlanName, commitmentPlan, options) {
|
|
104
|
+
return this.client.sendOperationRequest({
|
|
105
|
+
resourceGroupName,
|
|
106
|
+
accountName,
|
|
107
|
+
commitmentPlanName,
|
|
108
|
+
commitmentPlan,
|
|
109
|
+
options
|
|
110
|
+
}, createOrUpdateOperationSpec);
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Deletes the specified commitmentPlan associated with the Cognitive Services account.
|
|
114
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
115
|
+
* @param accountName The name of Cognitive Services account.
|
|
116
|
+
* @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services
|
|
117
|
+
* Account
|
|
118
|
+
* @param options The options parameters.
|
|
119
|
+
*/
|
|
120
|
+
beginDelete(resourceGroupName, accountName, commitmentPlanName, options) {
|
|
121
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
122
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
123
|
+
return this.client.sendOperationRequest(args, spec);
|
|
124
|
+
});
|
|
125
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
126
|
+
var _a;
|
|
127
|
+
let currentRawResponse = undefined;
|
|
128
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
129
|
+
const callback = (rawResponse, flatResponse) => {
|
|
130
|
+
currentRawResponse = rawResponse;
|
|
131
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
132
|
+
};
|
|
133
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
134
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
135
|
+
return {
|
|
136
|
+
flatResponse,
|
|
137
|
+
rawResponse: {
|
|
138
|
+
statusCode: currentRawResponse.status,
|
|
139
|
+
body: currentRawResponse.parsedBody,
|
|
140
|
+
headers: currentRawResponse.headers.toJSON()
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
});
|
|
144
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, commitmentPlanName, options }, deleteOperationSpec);
|
|
145
|
+
return new LroEngine(lro, {
|
|
146
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
147
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Deletes the specified commitmentPlan associated with the Cognitive Services account.
|
|
153
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
154
|
+
* @param accountName The name of Cognitive Services account.
|
|
155
|
+
* @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services
|
|
156
|
+
* Account
|
|
157
|
+
* @param options The options parameters.
|
|
158
|
+
*/
|
|
159
|
+
beginDeleteAndWait(resourceGroupName, accountName, commitmentPlanName, options) {
|
|
160
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
161
|
+
const poller = yield this.beginDelete(resourceGroupName, accountName, commitmentPlanName, options);
|
|
162
|
+
return poller.pollUntilDone();
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* ListNext
|
|
167
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
168
|
+
* @param accountName The name of Cognitive Services account.
|
|
169
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
170
|
+
* @param options The options parameters.
|
|
171
|
+
*/
|
|
172
|
+
_listNext(resourceGroupName, accountName, nextLink, options) {
|
|
173
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, nextLink, options }, listNextOperationSpec);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
// Operation Specifications
|
|
177
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
178
|
+
const listOperationSpec = {
|
|
179
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/commitmentPlans",
|
|
180
|
+
httpMethod: "GET",
|
|
181
|
+
responses: {
|
|
182
|
+
200: {
|
|
183
|
+
bodyMapper: Mappers.CommitmentPlanListResult
|
|
184
|
+
},
|
|
185
|
+
default: {
|
|
186
|
+
bodyMapper: Mappers.ErrorResponse
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
queryParameters: [Parameters.apiVersion],
|
|
190
|
+
urlParameters: [
|
|
191
|
+
Parameters.$host,
|
|
192
|
+
Parameters.resourceGroupName,
|
|
193
|
+
Parameters.accountName,
|
|
194
|
+
Parameters.subscriptionId
|
|
195
|
+
],
|
|
196
|
+
headerParameters: [Parameters.accept],
|
|
197
|
+
serializer
|
|
198
|
+
};
|
|
199
|
+
const getOperationSpec = {
|
|
200
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/commitmentPlans/{commitmentPlanName}",
|
|
201
|
+
httpMethod: "GET",
|
|
202
|
+
responses: {
|
|
203
|
+
200: {
|
|
204
|
+
bodyMapper: Mappers.CommitmentPlan
|
|
205
|
+
},
|
|
206
|
+
default: {
|
|
207
|
+
bodyMapper: Mappers.ErrorResponse
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
queryParameters: [Parameters.apiVersion],
|
|
211
|
+
urlParameters: [
|
|
212
|
+
Parameters.$host,
|
|
213
|
+
Parameters.resourceGroupName,
|
|
214
|
+
Parameters.accountName,
|
|
215
|
+
Parameters.subscriptionId,
|
|
216
|
+
Parameters.commitmentPlanName
|
|
217
|
+
],
|
|
218
|
+
headerParameters: [Parameters.accept],
|
|
219
|
+
serializer
|
|
220
|
+
};
|
|
221
|
+
const createOrUpdateOperationSpec = {
|
|
222
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/commitmentPlans/{commitmentPlanName}",
|
|
223
|
+
httpMethod: "PUT",
|
|
224
|
+
responses: {
|
|
225
|
+
200: {
|
|
226
|
+
bodyMapper: Mappers.CommitmentPlan
|
|
227
|
+
},
|
|
228
|
+
201: {
|
|
229
|
+
bodyMapper: Mappers.CommitmentPlan
|
|
230
|
+
},
|
|
231
|
+
default: {
|
|
232
|
+
bodyMapper: Mappers.ErrorResponse
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
requestBody: Parameters.commitmentPlan,
|
|
236
|
+
queryParameters: [Parameters.apiVersion],
|
|
237
|
+
urlParameters: [
|
|
238
|
+
Parameters.$host,
|
|
239
|
+
Parameters.resourceGroupName,
|
|
240
|
+
Parameters.accountName,
|
|
241
|
+
Parameters.subscriptionId,
|
|
242
|
+
Parameters.commitmentPlanName
|
|
243
|
+
],
|
|
244
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
245
|
+
mediaType: "json",
|
|
246
|
+
serializer
|
|
247
|
+
};
|
|
248
|
+
const deleteOperationSpec = {
|
|
249
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/commitmentPlans/{commitmentPlanName}",
|
|
250
|
+
httpMethod: "DELETE",
|
|
251
|
+
responses: {
|
|
252
|
+
200: {},
|
|
253
|
+
201: {},
|
|
254
|
+
202: {},
|
|
255
|
+
204: {},
|
|
256
|
+
default: {
|
|
257
|
+
bodyMapper: Mappers.ErrorResponse
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
queryParameters: [Parameters.apiVersion],
|
|
261
|
+
urlParameters: [
|
|
262
|
+
Parameters.$host,
|
|
263
|
+
Parameters.resourceGroupName,
|
|
264
|
+
Parameters.accountName,
|
|
265
|
+
Parameters.subscriptionId,
|
|
266
|
+
Parameters.commitmentPlanName
|
|
267
|
+
],
|
|
268
|
+
headerParameters: [Parameters.accept],
|
|
269
|
+
serializer
|
|
270
|
+
};
|
|
271
|
+
const listNextOperationSpec = {
|
|
272
|
+
path: "{nextLink}",
|
|
273
|
+
httpMethod: "GET",
|
|
274
|
+
responses: {
|
|
275
|
+
200: {
|
|
276
|
+
bodyMapper: Mappers.CommitmentPlanListResult
|
|
277
|
+
},
|
|
278
|
+
default: {
|
|
279
|
+
bodyMapper: Mappers.ErrorResponse
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
queryParameters: [Parameters.apiVersion],
|
|
283
|
+
urlParameters: [
|
|
284
|
+
Parameters.$host,
|
|
285
|
+
Parameters.resourceGroupName,
|
|
286
|
+
Parameters.accountName,
|
|
287
|
+
Parameters.subscriptionId,
|
|
288
|
+
Parameters.nextLink
|
|
289
|
+
],
|
|
290
|
+
headerParameters: [Parameters.accept],
|
|
291
|
+
serializer
|
|
292
|
+
};
|
|
293
|
+
//# sourceMappingURL=commitmentPlans.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commitmentPlans.js","sourceRoot":"","sources":["../../../src/operations/commitmentPlans.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAcrC,4CAA4C;AAC5C,mDAAmD;AACnD,MAAM,OAAO,mBAAmB;IAG9B;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,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ClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { CommitmentTiers } from "../operationsInterfaces";
|
|
3
|
+
import { CognitiveServicesManagementClient } from "../cognitiveServicesManagementClient";
|
|
4
|
+
import { CommitmentTier, CommitmentTiersListOptionalParams } from "../models";
|
|
5
|
+
/** Class containing CommitmentTiers operations. */
|
|
6
|
+
export declare class CommitmentTiersImpl implements CommitmentTiers {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class CommitmentTiers class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: CognitiveServicesManagementClient);
|
|
13
|
+
/**
|
|
14
|
+
* List Commitment Tiers.
|
|
15
|
+
* @param location Resource location.
|
|
16
|
+
* @param options The options parameters.
|
|
17
|
+
*/
|
|
18
|
+
list(location: string, options?: CommitmentTiersListOptionalParams): PagedAsyncIterableIterator<CommitmentTier>;
|
|
19
|
+
private listPagingPage;
|
|
20
|
+
private listPagingAll;
|
|
21
|
+
/**
|
|
22
|
+
* List Commitment Tiers.
|
|
23
|
+
* @param location Resource location.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
private _list;
|
|
27
|
+
/**
|
|
28
|
+
* ListNext
|
|
29
|
+
* @param location Resource location.
|
|
30
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
31
|
+
* @param options The options parameters.
|
|
32
|
+
*/
|
|
33
|
+
private _listNext;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=commitmentTiers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commitmentTiers.d.ts","sourceRoot":"","sources":["../../../src/operations/commitmentTiers.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAI1D,OAAO,EAAE,iCAAiC,EAAE,MAAM,sCAAsC,CAAC;AACzF,OAAO,EACL,cAAc,EAEd,iCAAiC,EAGlC,MAAM,WAAW,CAAC;AAGnB,mDAAmD;AACnD,qBAAa,mBAAoB,YAAW,eAAe;IACzD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAE3D;;;OAGG;gBACS,MAAM,EAAE,iCAAiC;IAIrD;;;;OAIG;IACI,IAAI,CACT,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,iCAAiC,GAC1C,0BAA0B,CAAC,cAAc,CAAC;YAe9B,cAAc;YAcd,aAAa;IAS5B;;;;OAIG;IACH,OAAO,CAAC,KAAK;IAUb;;;;;OAKG;IACH,OAAO,CAAC,SAAS;CAUlB"}
|
|
@@ -0,0 +1,132 @@
|
|
|
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
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Class containing CommitmentTiers operations. */
|
|
14
|
+
export class CommitmentTiersImpl {
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class CommitmentTiers class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* List Commitment Tiers.
|
|
24
|
+
* @param location Resource location.
|
|
25
|
+
* @param options The options parameters.
|
|
26
|
+
*/
|
|
27
|
+
list(location, options) {
|
|
28
|
+
const iter = this.listPagingAll(location, options);
|
|
29
|
+
return {
|
|
30
|
+
next() {
|
|
31
|
+
return iter.next();
|
|
32
|
+
},
|
|
33
|
+
[Symbol.asyncIterator]() {
|
|
34
|
+
return this;
|
|
35
|
+
},
|
|
36
|
+
byPage: () => {
|
|
37
|
+
return this.listPagingPage(location, options);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
listPagingPage(location, options) {
|
|
42
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
43
|
+
let result = yield __await(this._list(location, options));
|
|
44
|
+
yield yield __await(result.value || []);
|
|
45
|
+
let continuationToken = result.nextLink;
|
|
46
|
+
while (continuationToken) {
|
|
47
|
+
result = yield __await(this._listNext(location, continuationToken, options));
|
|
48
|
+
continuationToken = result.nextLink;
|
|
49
|
+
yield yield __await(result.value || []);
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
listPagingAll(location, options) {
|
|
54
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
55
|
+
var e_1, _a;
|
|
56
|
+
try {
|
|
57
|
+
for (var _b = __asyncValues(this.listPagingPage(location, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
58
|
+
const page = _c.value;
|
|
59
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
63
|
+
finally {
|
|
64
|
+
try {
|
|
65
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
66
|
+
}
|
|
67
|
+
finally { if (e_1) throw e_1.error; }
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* List Commitment Tiers.
|
|
73
|
+
* @param location Resource location.
|
|
74
|
+
* @param options The options parameters.
|
|
75
|
+
*/
|
|
76
|
+
_list(location, options) {
|
|
77
|
+
return this.client.sendOperationRequest({ location, options }, listOperationSpec);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* ListNext
|
|
81
|
+
* @param location Resource location.
|
|
82
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
83
|
+
* @param options The options parameters.
|
|
84
|
+
*/
|
|
85
|
+
_listNext(location, nextLink, options) {
|
|
86
|
+
return this.client.sendOperationRequest({ location, nextLink, options }, listNextOperationSpec);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
// Operation Specifications
|
|
90
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
91
|
+
const listOperationSpec = {
|
|
92
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/commitmentTiers",
|
|
93
|
+
httpMethod: "GET",
|
|
94
|
+
responses: {
|
|
95
|
+
200: {
|
|
96
|
+
bodyMapper: Mappers.CommitmentTierListResult
|
|
97
|
+
},
|
|
98
|
+
default: {
|
|
99
|
+
bodyMapper: Mappers.ErrorResponse
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
queryParameters: [Parameters.apiVersion],
|
|
103
|
+
urlParameters: [
|
|
104
|
+
Parameters.$host,
|
|
105
|
+
Parameters.subscriptionId,
|
|
106
|
+
Parameters.location
|
|
107
|
+
],
|
|
108
|
+
headerParameters: [Parameters.accept],
|
|
109
|
+
serializer
|
|
110
|
+
};
|
|
111
|
+
const listNextOperationSpec = {
|
|
112
|
+
path: "{nextLink}",
|
|
113
|
+
httpMethod: "GET",
|
|
114
|
+
responses: {
|
|
115
|
+
200: {
|
|
116
|
+
bodyMapper: Mappers.CommitmentTierListResult
|
|
117
|
+
},
|
|
118
|
+
default: {
|
|
119
|
+
bodyMapper: Mappers.ErrorResponse
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
queryParameters: [Parameters.apiVersion],
|
|
123
|
+
urlParameters: [
|
|
124
|
+
Parameters.$host,
|
|
125
|
+
Parameters.subscriptionId,
|
|
126
|
+
Parameters.nextLink,
|
|
127
|
+
Parameters.location
|
|
128
|
+
],
|
|
129
|
+
headerParameters: [Parameters.accept],
|
|
130
|
+
serializer
|
|
131
|
+
};
|
|
132
|
+
//# sourceMappingURL=commitmentTiers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commitmentTiers.js","sourceRoot":"","sources":["../../../src/operations/commitmentTiers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAUnD,4CAA4C;AAC5C,mDAAmD;AACnD,MAAM,OAAO,mBAAmB;IAG9B;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,QAAgB,EAChB,OAA2C;QAE3C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QACnD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI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
import { DeletedAccounts } from "../operationsInterfaces";
|
|
3
|
+
import { CognitiveServicesManagementClient } from "../cognitiveServicesManagementClient";
|
|
4
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
5
|
+
import { Account, DeletedAccountsListOptionalParams, DeletedAccountsGetOptionalParams, DeletedAccountsGetResponse, DeletedAccountsPurgeOptionalParams } from "../models";
|
|
6
|
+
/** Class containing DeletedAccounts operations. */
|
|
7
|
+
export declare class DeletedAccountsImpl implements DeletedAccounts {
|
|
8
|
+
private readonly client;
|
|
9
|
+
/**
|
|
10
|
+
* Initialize a new instance of the class DeletedAccounts class.
|
|
11
|
+
* @param client Reference to the service client
|
|
12
|
+
*/
|
|
13
|
+
constructor(client: CognitiveServicesManagementClient);
|
|
14
|
+
/**
|
|
15
|
+
* Returns all the resources of a particular type belonging to a subscription.
|
|
16
|
+
* @param options The options parameters.
|
|
17
|
+
*/
|
|
18
|
+
list(options?: DeletedAccountsListOptionalParams): PagedAsyncIterableIterator<Account>;
|
|
19
|
+
private listPagingPage;
|
|
20
|
+
private listPagingAll;
|
|
21
|
+
/**
|
|
22
|
+
* Returns a Cognitive Services account specified by the parameters.
|
|
23
|
+
* @param location Resource location.
|
|
24
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
25
|
+
* @param accountName The name of Cognitive Services account.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
get(location: string, resourceGroupName: string, accountName: string, options?: DeletedAccountsGetOptionalParams): Promise<DeletedAccountsGetResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Deletes a Cognitive Services account from the resource group.
|
|
31
|
+
* @param location Resource location.
|
|
32
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
33
|
+
* @param accountName The name of Cognitive Services account.
|
|
34
|
+
* @param options The options parameters.
|
|
35
|
+
*/
|
|
36
|
+
beginPurge(location: string, resourceGroupName: string, accountName: string, options?: DeletedAccountsPurgeOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
37
|
+
/**
|
|
38
|
+
* Deletes a Cognitive Services account from the resource group.
|
|
39
|
+
* @param location Resource location.
|
|
40
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
41
|
+
* @param accountName The name of Cognitive Services account.
|
|
42
|
+
* @param options The options parameters.
|
|
43
|
+
*/
|
|
44
|
+
beginPurgeAndWait(location: string, resourceGroupName: string, accountName: string, options?: DeletedAccountsPurgeOptionalParams): Promise<void>;
|
|
45
|
+
/**
|
|
46
|
+
* Returns all the resources of a particular type belonging to a subscription.
|
|
47
|
+
* @param options The options parameters.
|
|
48
|
+
*/
|
|
49
|
+
private _list;
|
|
50
|
+
/**
|
|
51
|
+
* ListNext
|
|
52
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
53
|
+
* @param options The options parameters.
|
|
54
|
+
*/
|
|
55
|
+
private _listNext;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=deletedAccounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deletedAccounts.d.ts","sourceRoot":"","sources":["../../../src/operations/deletedAccounts.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAI1D,OAAO,EAAE,iCAAiC,EAAE,MAAM,sCAAsC,CAAC;AACzF,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,OAAO,EAEP,iCAAiC,EACjC,gCAAgC,EAChC,0BAA0B,EAC1B,kCAAkC,EAGnC,MAAM,WAAW,CAAC;AAGnB,mDAAmD;AACnD,qBAAa,mBAAoB,YAAW,eAAe;IACzD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAE3D;;;OAGG;gBACS,MAAM,EAAE,iCAAiC;IAIrD;;;OAGG;IACI,IAAI,CACT,O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