@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
|
@@ -1,126 +1,142 @@
|
|
|
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 { ResourceSkus } 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
|
+
ResourceSku,
|
|
17
|
+
ResourceSkusListNextOptionalParams,
|
|
18
|
+
ResourceSkusListOptionalParams,
|
|
19
|
+
ResourceSkusListResponse,
|
|
20
|
+
ResourceSkusListNextResponse
|
|
21
|
+
} from "../models";
|
|
16
22
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
23
|
+
/// <reference lib="esnext.asynciterable" />
|
|
24
|
+
/** Class containing ResourceSkus operations. */
|
|
25
|
+
export class ResourceSkusImpl implements ResourceSkus {
|
|
26
|
+
private readonly client: CognitiveServicesManagementClient;
|
|
20
27
|
|
|
21
28
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
29
|
+
* Initialize a new instance of the class ResourceSkus 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
|
* Gets the list of Microsoft.CognitiveServices SKUs available for your Subscription.
|
|
31
|
-
* @param
|
|
32
|
-
* @returns Promise<Models.ResourceSkusListResponse>
|
|
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.ResourceSkusResult>, callback?: msRest.ServiceCallback<Models.ResourceSkusResult>): Promise<Models.ResourceSkusListResponse> {
|
|
45
|
-
return this.client.sendOperationRequest(
|
|
46
|
-
{
|
|
47
|
-
options
|
|
40
|
+
public list(
|
|
41
|
+
options?: ResourceSkusListOptionalParams
|
|
42
|
+
): PagedAsyncIterableIterator<ResourceSku> {
|
|
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?: ResourceSkusListOptionalParams
|
|
59
|
+
): AsyncIterableIterator<ResourceSku[]> {
|
|
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?: ResourceSkusListOptionalParams
|
|
72
|
+
): AsyncIterableIterator<ResourceSku> {
|
|
73
|
+
for await (const page of this.listPagingPage(options)) {
|
|
74
|
+
yield* page;
|
|
75
|
+
}
|
|
51
76
|
}
|
|
52
77
|
|
|
53
78
|
/**
|
|
54
79
|
* Gets the list of Microsoft.CognitiveServices SKUs available for your Subscription.
|
|
55
|
-
* @param
|
|
56
|
-
* @param [options] The optional parameters
|
|
57
|
-
* @returns Promise<Models.ResourceSkusListNextResponse>
|
|
80
|
+
* @param options The options parameters.
|
|
58
81
|
*/
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
82
|
+
private _list(
|
|
83
|
+
options?: ResourceSkusListOptionalParams
|
|
84
|
+
): Promise<ResourceSkusListResponse> {
|
|
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?: ResourceSkusListNextOptionalParams
|
|
96
|
+
): Promise<ResourceSkusListNextResponse> {
|
|
72
97
|
return this.client.sendOperationRequest(
|
|
73
|
-
{
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
},
|
|
77
|
-
listNextOperationSpec,
|
|
78
|
-
callback) as Promise<Models.ResourceSkusListNextResponse>;
|
|
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:
|
|
108
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/skus",
|
|
85
109
|
httpMethod: "GET",
|
|
86
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/skus",
|
|
87
|
-
urlParameters: [
|
|
88
|
-
Parameters.subscriptionId
|
|
89
|
-
],
|
|
90
|
-
queryParameters: [
|
|
91
|
-
Parameters.apiVersion
|
|
92
|
-
],
|
|
93
|
-
headerParameters: [
|
|
94
|
-
Parameters.acceptLanguage
|
|
95
|
-
],
|
|
96
110
|
responses: {
|
|
97
111
|
200: {
|
|
98
|
-
bodyMapper: Mappers.
|
|
112
|
+
bodyMapper: Mappers.ResourceSkuListResult
|
|
99
113
|
},
|
|
100
114
|
default: {
|
|
101
|
-
bodyMapper: Mappers.
|
|
115
|
+
bodyMapper: Mappers.ErrorResponse
|
|
102
116
|
}
|
|
103
117
|
},
|
|
118
|
+
queryParameters: [Parameters.apiVersion],
|
|
119
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
120
|
+
headerParameters: [Parameters.accept],
|
|
104
121
|
serializer
|
|
105
122
|
};
|
|
106
|
-
|
|
107
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
108
|
-
httpMethod: "GET",
|
|
109
|
-
baseUrl: "https://management.azure.com",
|
|
123
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
110
124
|
path: "{nextLink}",
|
|
111
|
-
|
|
112
|
-
Parameters.nextPageLink
|
|
113
|
-
],
|
|
114
|
-
headerParameters: [
|
|
115
|
-
Parameters.acceptLanguage
|
|
116
|
-
],
|
|
125
|
+
httpMethod: "GET",
|
|
117
126
|
responses: {
|
|
118
127
|
200: {
|
|
119
|
-
bodyMapper: Mappers.
|
|
128
|
+
bodyMapper: Mappers.ResourceSkuListResult
|
|
120
129
|
},
|
|
121
130
|
default: {
|
|
122
|
-
bodyMapper: Mappers.
|
|
131
|
+
bodyMapper: Mappers.ErrorResponse
|
|
123
132
|
}
|
|
124
133
|
},
|
|
134
|
+
queryParameters: [Parameters.apiVersion],
|
|
135
|
+
urlParameters: [
|
|
136
|
+
Parameters.$host,
|
|
137
|
+
Parameters.subscriptionId,
|
|
138
|
+
Parameters.nextLink
|
|
139
|
+
],
|
|
140
|
+
headerParameters: [Parameters.accept],
|
|
125
141
|
serializer
|
|
126
142
|
};
|
|
@@ -0,0 +1,195 @@
|
|
|
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 { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
11
|
+
import {
|
|
12
|
+
Account,
|
|
13
|
+
AccountsListByResourceGroupOptionalParams,
|
|
14
|
+
AccountsListOptionalParams,
|
|
15
|
+
AccountsCreateOptionalParams,
|
|
16
|
+
AccountsCreateResponse,
|
|
17
|
+
AccountsUpdateOptionalParams,
|
|
18
|
+
AccountsUpdateResponse,
|
|
19
|
+
AccountsDeleteOptionalParams,
|
|
20
|
+
AccountsGetOptionalParams,
|
|
21
|
+
AccountsGetResponse,
|
|
22
|
+
AccountsListKeysOptionalParams,
|
|
23
|
+
AccountsListKeysResponse,
|
|
24
|
+
KeyName,
|
|
25
|
+
AccountsRegenerateKeyOptionalParams,
|
|
26
|
+
AccountsRegenerateKeyResponse,
|
|
27
|
+
AccountsListSkusOptionalParams,
|
|
28
|
+
AccountsListSkusResponse,
|
|
29
|
+
AccountsListUsagesOptionalParams,
|
|
30
|
+
AccountsListUsagesResponse
|
|
31
|
+
} from "../models";
|
|
32
|
+
|
|
33
|
+
/// <reference lib="esnext.asynciterable" />
|
|
34
|
+
/** Interface representing a Accounts. */
|
|
35
|
+
export interface Accounts {
|
|
36
|
+
/**
|
|
37
|
+
* Returns all the resources of a particular type belonging to a resource group
|
|
38
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
39
|
+
* @param options The options parameters.
|
|
40
|
+
*/
|
|
41
|
+
listByResourceGroup(
|
|
42
|
+
resourceGroupName: string,
|
|
43
|
+
options?: AccountsListByResourceGroupOptionalParams
|
|
44
|
+
): PagedAsyncIterableIterator<Account>;
|
|
45
|
+
/**
|
|
46
|
+
* Returns all the resources of a particular type belonging to a subscription.
|
|
47
|
+
* @param options The options parameters.
|
|
48
|
+
*/
|
|
49
|
+
list(
|
|
50
|
+
options?: AccountsListOptionalParams
|
|
51
|
+
): PagedAsyncIterableIterator<Account>;
|
|
52
|
+
/**
|
|
53
|
+
* Create Cognitive Services Account. Accounts is a resource group wide resource type. It holds the
|
|
54
|
+
* keys for developer to access intelligent APIs. It's also the resource type for billing.
|
|
55
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
56
|
+
* @param accountName The name of Cognitive Services account.
|
|
57
|
+
* @param account The parameters to provide for the created account.
|
|
58
|
+
* @param options The options parameters.
|
|
59
|
+
*/
|
|
60
|
+
beginCreate(
|
|
61
|
+
resourceGroupName: string,
|
|
62
|
+
accountName: string,
|
|
63
|
+
account: Account,
|
|
64
|
+
options?: AccountsCreateOptionalParams
|
|
65
|
+
): Promise<
|
|
66
|
+
PollerLike<
|
|
67
|
+
PollOperationState<AccountsCreateResponse>,
|
|
68
|
+
AccountsCreateResponse
|
|
69
|
+
>
|
|
70
|
+
>;
|
|
71
|
+
/**
|
|
72
|
+
* Create Cognitive Services Account. Accounts is a resource group wide resource type. It holds the
|
|
73
|
+
* keys for developer to access intelligent APIs. It's also the resource type for billing.
|
|
74
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
75
|
+
* @param accountName The name of Cognitive Services account.
|
|
76
|
+
* @param account The parameters to provide for the created account.
|
|
77
|
+
* @param options The options parameters.
|
|
78
|
+
*/
|
|
79
|
+
beginCreateAndWait(
|
|
80
|
+
resourceGroupName: string,
|
|
81
|
+
accountName: string,
|
|
82
|
+
account: Account,
|
|
83
|
+
options?: AccountsCreateOptionalParams
|
|
84
|
+
): Promise<AccountsCreateResponse>;
|
|
85
|
+
/**
|
|
86
|
+
* Updates a Cognitive Services account
|
|
87
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
88
|
+
* @param accountName The name of Cognitive Services account.
|
|
89
|
+
* @param account The parameters to provide for the created account.
|
|
90
|
+
* @param options The options parameters.
|
|
91
|
+
*/
|
|
92
|
+
beginUpdate(
|
|
93
|
+
resourceGroupName: string,
|
|
94
|
+
accountName: string,
|
|
95
|
+
account: Account,
|
|
96
|
+
options?: AccountsUpdateOptionalParams
|
|
97
|
+
): Promise<
|
|
98
|
+
PollerLike<
|
|
99
|
+
PollOperationState<AccountsUpdateResponse>,
|
|
100
|
+
AccountsUpdateResponse
|
|
101
|
+
>
|
|
102
|
+
>;
|
|
103
|
+
/**
|
|
104
|
+
* Updates a Cognitive Services account
|
|
105
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
106
|
+
* @param accountName The name of Cognitive Services account.
|
|
107
|
+
* @param account The parameters to provide for the created account.
|
|
108
|
+
* @param options The options parameters.
|
|
109
|
+
*/
|
|
110
|
+
beginUpdateAndWait(
|
|
111
|
+
resourceGroupName: string,
|
|
112
|
+
accountName: string,
|
|
113
|
+
account: Account,
|
|
114
|
+
options?: AccountsUpdateOptionalParams
|
|
115
|
+
): Promise<AccountsUpdateResponse>;
|
|
116
|
+
/**
|
|
117
|
+
* Deletes a Cognitive Services account from the resource group.
|
|
118
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
119
|
+
* @param accountName The name of Cognitive Services account.
|
|
120
|
+
* @param options The options parameters.
|
|
121
|
+
*/
|
|
122
|
+
beginDelete(
|
|
123
|
+
resourceGroupName: string,
|
|
124
|
+
accountName: string,
|
|
125
|
+
options?: AccountsDeleteOptionalParams
|
|
126
|
+
): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
127
|
+
/**
|
|
128
|
+
* Deletes a Cognitive Services account from the resource group.
|
|
129
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
130
|
+
* @param accountName The name of Cognitive Services account.
|
|
131
|
+
* @param options The options parameters.
|
|
132
|
+
*/
|
|
133
|
+
beginDeleteAndWait(
|
|
134
|
+
resourceGroupName: string,
|
|
135
|
+
accountName: string,
|
|
136
|
+
options?: AccountsDeleteOptionalParams
|
|
137
|
+
): Promise<void>;
|
|
138
|
+
/**
|
|
139
|
+
* Returns a Cognitive Services account specified by the parameters.
|
|
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 options The options parameters.
|
|
143
|
+
*/
|
|
144
|
+
get(
|
|
145
|
+
resourceGroupName: string,
|
|
146
|
+
accountName: string,
|
|
147
|
+
options?: AccountsGetOptionalParams
|
|
148
|
+
): Promise<AccountsGetResponse>;
|
|
149
|
+
/**
|
|
150
|
+
* Lists the account keys for the specified Cognitive Services account.
|
|
151
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
152
|
+
* @param accountName The name of Cognitive Services account.
|
|
153
|
+
* @param options The options parameters.
|
|
154
|
+
*/
|
|
155
|
+
listKeys(
|
|
156
|
+
resourceGroupName: string,
|
|
157
|
+
accountName: string,
|
|
158
|
+
options?: AccountsListKeysOptionalParams
|
|
159
|
+
): Promise<AccountsListKeysResponse>;
|
|
160
|
+
/**
|
|
161
|
+
* Regenerates the specified account key for the specified Cognitive Services account.
|
|
162
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
163
|
+
* @param accountName The name of Cognitive Services account.
|
|
164
|
+
* @param keyName key name to generate (Key1|Key2)
|
|
165
|
+
* @param options The options parameters.
|
|
166
|
+
*/
|
|
167
|
+
regenerateKey(
|
|
168
|
+
resourceGroupName: string,
|
|
169
|
+
accountName: string,
|
|
170
|
+
keyName: KeyName,
|
|
171
|
+
options?: AccountsRegenerateKeyOptionalParams
|
|
172
|
+
): Promise<AccountsRegenerateKeyResponse>;
|
|
173
|
+
/**
|
|
174
|
+
* List available SKUs for the requested Cognitive Services account
|
|
175
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
176
|
+
* @param accountName The name of Cognitive Services account.
|
|
177
|
+
* @param options The options parameters.
|
|
178
|
+
*/
|
|
179
|
+
listSkus(
|
|
180
|
+
resourceGroupName: string,
|
|
181
|
+
accountName: string,
|
|
182
|
+
options?: AccountsListSkusOptionalParams
|
|
183
|
+
): Promise<AccountsListSkusResponse>;
|
|
184
|
+
/**
|
|
185
|
+
* Get usages for the requested Cognitive Services account
|
|
186
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
187
|
+
* @param accountName The name of Cognitive Services account.
|
|
188
|
+
* @param options The options parameters.
|
|
189
|
+
*/
|
|
190
|
+
listUsages(
|
|
191
|
+
resourceGroupName: string,
|
|
192
|
+
accountName: string,
|
|
193
|
+
options?: AccountsListUsagesOptionalParams
|
|
194
|
+
): Promise<AccountsListUsagesResponse>;
|
|
195
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
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 { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
11
|
+
import {
|
|
12
|
+
CommitmentPlan,
|
|
13
|
+
CommitmentPlansListOptionalParams,
|
|
14
|
+
CommitmentPlansGetOptionalParams,
|
|
15
|
+
CommitmentPlansGetResponse,
|
|
16
|
+
CommitmentPlansCreateOrUpdateOptionalParams,
|
|
17
|
+
CommitmentPlansCreateOrUpdateResponse,
|
|
18
|
+
CommitmentPlansDeleteOptionalParams
|
|
19
|
+
} from "../models";
|
|
20
|
+
|
|
21
|
+
/// <reference lib="esnext.asynciterable" />
|
|
22
|
+
/** Interface representing a CommitmentPlans. */
|
|
23
|
+
export interface CommitmentPlans {
|
|
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(
|
|
31
|
+
resourceGroupName: string,
|
|
32
|
+
accountName: string,
|
|
33
|
+
options?: CommitmentPlansListOptionalParams
|
|
34
|
+
): PagedAsyncIterableIterator<CommitmentPlan>;
|
|
35
|
+
/**
|
|
36
|
+
* Gets the specified commitmentPlans associated with the Cognitive Services account.
|
|
37
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
38
|
+
* @param accountName The name of Cognitive Services account.
|
|
39
|
+
* @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services
|
|
40
|
+
* Account
|
|
41
|
+
* @param options The options parameters.
|
|
42
|
+
*/
|
|
43
|
+
get(
|
|
44
|
+
resourceGroupName: string,
|
|
45
|
+
accountName: string,
|
|
46
|
+
commitmentPlanName: string,
|
|
47
|
+
options?: CommitmentPlansGetOptionalParams
|
|
48
|
+
): Promise<CommitmentPlansGetResponse>;
|
|
49
|
+
/**
|
|
50
|
+
* Update the state of specified commitmentPlans 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 commitmentPlan The commitmentPlan properties.
|
|
56
|
+
* @param options The options parameters.
|
|
57
|
+
*/
|
|
58
|
+
createOrUpdate(
|
|
59
|
+
resourceGroupName: string,
|
|
60
|
+
accountName: string,
|
|
61
|
+
commitmentPlanName: string,
|
|
62
|
+
commitmentPlan: CommitmentPlan,
|
|
63
|
+
options?: CommitmentPlansCreateOrUpdateOptionalParams
|
|
64
|
+
): Promise<CommitmentPlansCreateOrUpdateResponse>;
|
|
65
|
+
/**
|
|
66
|
+
* Deletes the specified commitmentPlan associated with the Cognitive Services account.
|
|
67
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
68
|
+
* @param accountName The name of Cognitive Services account.
|
|
69
|
+
* @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services
|
|
70
|
+
* Account
|
|
71
|
+
* @param options The options parameters.
|
|
72
|
+
*/
|
|
73
|
+
beginDelete(
|
|
74
|
+
resourceGroupName: string,
|
|
75
|
+
accountName: string,
|
|
76
|
+
commitmentPlanName: string,
|
|
77
|
+
options?: CommitmentPlansDeleteOptionalParams
|
|
78
|
+
): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
79
|
+
/**
|
|
80
|
+
* Deletes the specified commitmentPlan associated with the Cognitive Services account.
|
|
81
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
82
|
+
* @param accountName The name of Cognitive Services account.
|
|
83
|
+
* @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services
|
|
84
|
+
* Account
|
|
85
|
+
* @param options The options parameters.
|
|
86
|
+
*/
|
|
87
|
+
beginDeleteAndWait(
|
|
88
|
+
resourceGroupName: string,
|
|
89
|
+
accountName: string,
|
|
90
|
+
commitmentPlanName: string,
|
|
91
|
+
options?: CommitmentPlansDeleteOptionalParams
|
|
92
|
+
): Promise<void>;
|
|
93
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { CommitmentTier, CommitmentTiersListOptionalParams } from "../models";
|
|
11
|
+
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Interface representing a CommitmentTiers. */
|
|
14
|
+
export interface CommitmentTiers {
|
|
15
|
+
/**
|
|
16
|
+
* List Commitment Tiers.
|
|
17
|
+
* @param location Resource location.
|
|
18
|
+
* @param options The options parameters.
|
|
19
|
+
*/
|
|
20
|
+
list(
|
|
21
|
+
location: string,
|
|
22
|
+
options?: CommitmentTiersListOptionalParams
|
|
23
|
+
): PagedAsyncIterableIterator<CommitmentTier>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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 { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
11
|
+
import {
|
|
12
|
+
Account,
|
|
13
|
+
DeletedAccountsListOptionalParams,
|
|
14
|
+
DeletedAccountsGetOptionalParams,
|
|
15
|
+
DeletedAccountsGetResponse,
|
|
16
|
+
DeletedAccountsPurgeOptionalParams
|
|
17
|
+
} from "../models";
|
|
18
|
+
|
|
19
|
+
/// <reference lib="esnext.asynciterable" />
|
|
20
|
+
/** Interface representing a DeletedAccounts. */
|
|
21
|
+
export interface DeletedAccounts {
|
|
22
|
+
/**
|
|
23
|
+
* Returns all the resources of a particular type belonging to a subscription.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
list(
|
|
27
|
+
options?: DeletedAccountsListOptionalParams
|
|
28
|
+
): PagedAsyncIterableIterator<Account>;
|
|
29
|
+
/**
|
|
30
|
+
* Returns a Cognitive Services account specified by the parameters.
|
|
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
|
+
get(
|
|
37
|
+
location: string,
|
|
38
|
+
resourceGroupName: string,
|
|
39
|
+
accountName: string,
|
|
40
|
+
options?: DeletedAccountsGetOptionalParams
|
|
41
|
+
): Promise<DeletedAccountsGetResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Deletes a Cognitive Services account from the resource group.
|
|
44
|
+
* @param location Resource location.
|
|
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
|
+
beginPurge(
|
|
50
|
+
location: string,
|
|
51
|
+
resourceGroupName: string,
|
|
52
|
+
accountName: string,
|
|
53
|
+
options?: DeletedAccountsPurgeOptionalParams
|
|
54
|
+
): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
55
|
+
/**
|
|
56
|
+
* Deletes a Cognitive Services account from the resource group.
|
|
57
|
+
* @param location Resource location.
|
|
58
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
59
|
+
* @param accountName The name of Cognitive Services account.
|
|
60
|
+
* @param options The options parameters.
|
|
61
|
+
*/
|
|
62
|
+
beginPurgeAndWait(
|
|
63
|
+
location: string,
|
|
64
|
+
resourceGroupName: string,
|
|
65
|
+
accountName: string,
|
|
66
|
+
options?: DeletedAccountsPurgeOptionalParams
|
|
67
|
+
): Promise<void>;
|
|
68
|
+
}
|