@azure/arm-cognitiveservices 7.0.1-alpha.20220105.1 → 7.0.1-alpha.20220201.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +150 -98
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +3 -3
- package/types/tsdoc-metadata.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,6 +6,26 @@ var coreClient = require('@azure/core-client');
|
|
|
6
6
|
var tslib = require('tslib');
|
|
7
7
|
var coreLro = require('@azure/core-lro');
|
|
8
8
|
|
|
9
|
+
function _interopNamespace(e) {
|
|
10
|
+
if (e && e.__esModule) return e;
|
|
11
|
+
var n = Object.create(null);
|
|
12
|
+
if (e) {
|
|
13
|
+
Object.keys(e).forEach(function (k) {
|
|
14
|
+
if (k !== 'default') {
|
|
15
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return e[k]; }
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n["default"] = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
28
|
+
|
|
9
29
|
/*
|
|
10
30
|
* Copyright (c) Microsoft Corporation.
|
|
11
31
|
* Licensed under the MIT License.
|
|
@@ -13,6 +33,8 @@ var coreLro = require('@azure/core-lro');
|
|
|
13
33
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
14
34
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
15
35
|
*/
|
|
36
|
+
/** Known values of {@link SkuTier} that the service accepts. */
|
|
37
|
+
exports.KnownSkuTier = void 0;
|
|
16
38
|
(function (KnownSkuTier) {
|
|
17
39
|
KnownSkuTier["Free"] = "Free";
|
|
18
40
|
KnownSkuTier["Basic"] = "Basic";
|
|
@@ -20,12 +42,16 @@ var coreLro = require('@azure/core-lro');
|
|
|
20
42
|
KnownSkuTier["Premium"] = "Premium";
|
|
21
43
|
KnownSkuTier["Enterprise"] = "Enterprise";
|
|
22
44
|
})(exports.KnownSkuTier || (exports.KnownSkuTier = {}));
|
|
45
|
+
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
46
|
+
exports.KnownCreatedByType = void 0;
|
|
23
47
|
(function (KnownCreatedByType) {
|
|
24
48
|
KnownCreatedByType["User"] = "User";
|
|
25
49
|
KnownCreatedByType["Application"] = "Application";
|
|
26
50
|
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
27
51
|
KnownCreatedByType["Key"] = "Key";
|
|
28
52
|
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
53
|
+
/** Known values of {@link ProvisioningState} that the service accepts. */
|
|
54
|
+
exports.KnownProvisioningState = void 0;
|
|
29
55
|
(function (KnownProvisioningState) {
|
|
30
56
|
KnownProvisioningState["Accepted"] = "Accepted";
|
|
31
57
|
KnownProvisioningState["Creating"] = "Creating";
|
|
@@ -35,33 +61,47 @@ var coreLro = require('@azure/core-lro');
|
|
|
35
61
|
KnownProvisioningState["Succeeded"] = "Succeeded";
|
|
36
62
|
KnownProvisioningState["ResolvingDNS"] = "ResolvingDNS";
|
|
37
63
|
})(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
|
|
64
|
+
/** Known values of {@link NetworkRuleAction} that the service accepts. */
|
|
65
|
+
exports.KnownNetworkRuleAction = void 0;
|
|
38
66
|
(function (KnownNetworkRuleAction) {
|
|
39
67
|
KnownNetworkRuleAction["Allow"] = "Allow";
|
|
40
68
|
KnownNetworkRuleAction["Deny"] = "Deny";
|
|
41
69
|
})(exports.KnownNetworkRuleAction || (exports.KnownNetworkRuleAction = {}));
|
|
70
|
+
/** Known values of {@link KeySource} that the service accepts. */
|
|
71
|
+
exports.KnownKeySource = void 0;
|
|
42
72
|
(function (KnownKeySource) {
|
|
43
73
|
KnownKeySource["MicrosoftCognitiveServices"] = "Microsoft.CognitiveServices";
|
|
44
74
|
KnownKeySource["MicrosoftKeyVault"] = "Microsoft.KeyVault";
|
|
45
75
|
})(exports.KnownKeySource || (exports.KnownKeySource = {}));
|
|
76
|
+
/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
|
|
77
|
+
exports.KnownPrivateEndpointServiceConnectionStatus = void 0;
|
|
46
78
|
(function (KnownPrivateEndpointServiceConnectionStatus) {
|
|
47
79
|
KnownPrivateEndpointServiceConnectionStatus["Pending"] = "Pending";
|
|
48
80
|
KnownPrivateEndpointServiceConnectionStatus["Approved"] = "Approved";
|
|
49
81
|
KnownPrivateEndpointServiceConnectionStatus["Rejected"] = "Rejected";
|
|
50
82
|
})(exports.KnownPrivateEndpointServiceConnectionStatus || (exports.KnownPrivateEndpointServiceConnectionStatus = {}));
|
|
83
|
+
/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
|
|
84
|
+
exports.KnownPrivateEndpointConnectionProvisioningState = void 0;
|
|
51
85
|
(function (KnownPrivateEndpointConnectionProvisioningState) {
|
|
52
86
|
KnownPrivateEndpointConnectionProvisioningState["Succeeded"] = "Succeeded";
|
|
53
87
|
KnownPrivateEndpointConnectionProvisioningState["Creating"] = "Creating";
|
|
54
88
|
KnownPrivateEndpointConnectionProvisioningState["Deleting"] = "Deleting";
|
|
55
89
|
KnownPrivateEndpointConnectionProvisioningState["Failed"] = "Failed";
|
|
56
90
|
})(exports.KnownPrivateEndpointConnectionProvisioningState || (exports.KnownPrivateEndpointConnectionProvisioningState = {}));
|
|
91
|
+
/** Known values of {@link PublicNetworkAccess} that the service accepts. */
|
|
92
|
+
exports.KnownPublicNetworkAccess = void 0;
|
|
57
93
|
(function (KnownPublicNetworkAccess) {
|
|
58
94
|
KnownPublicNetworkAccess["Enabled"] = "Enabled";
|
|
59
95
|
KnownPublicNetworkAccess["Disabled"] = "Disabled";
|
|
60
96
|
})(exports.KnownPublicNetworkAccess || (exports.KnownPublicNetworkAccess = {}));
|
|
97
|
+
/** Known values of {@link ResourceSkuRestrictionsReasonCode} that the service accepts. */
|
|
98
|
+
exports.KnownResourceSkuRestrictionsReasonCode = void 0;
|
|
61
99
|
(function (KnownResourceSkuRestrictionsReasonCode) {
|
|
62
100
|
KnownResourceSkuRestrictionsReasonCode["QuotaId"] = "QuotaId";
|
|
63
101
|
KnownResourceSkuRestrictionsReasonCode["NotAvailableForSubscription"] = "NotAvailableForSubscription";
|
|
64
102
|
})(exports.KnownResourceSkuRestrictionsReasonCode || (exports.KnownResourceSkuRestrictionsReasonCode = {}));
|
|
103
|
+
/** Known values of {@link UnitType} that the service accepts. */
|
|
104
|
+
exports.KnownUnitType = void 0;
|
|
65
105
|
(function (KnownUnitType) {
|
|
66
106
|
KnownUnitType["Count"] = "Count";
|
|
67
107
|
KnownUnitType["Bytes"] = "Bytes";
|
|
@@ -71,25 +111,35 @@ var coreLro = require('@azure/core-lro');
|
|
|
71
111
|
KnownUnitType["BytesPerSecond"] = "BytesPerSecond";
|
|
72
112
|
KnownUnitType["Milliseconds"] = "Milliseconds";
|
|
73
113
|
})(exports.KnownUnitType || (exports.KnownUnitType = {}));
|
|
114
|
+
/** Known values of {@link QuotaUsageStatus} that the service accepts. */
|
|
115
|
+
exports.KnownQuotaUsageStatus = void 0;
|
|
74
116
|
(function (KnownQuotaUsageStatus) {
|
|
75
117
|
KnownQuotaUsageStatus["Included"] = "Included";
|
|
76
118
|
KnownQuotaUsageStatus["Blocked"] = "Blocked";
|
|
77
119
|
KnownQuotaUsageStatus["InOverage"] = "InOverage";
|
|
78
120
|
KnownQuotaUsageStatus["Unknown"] = "Unknown";
|
|
79
121
|
})(exports.KnownQuotaUsageStatus || (exports.KnownQuotaUsageStatus = {}));
|
|
122
|
+
/** Known values of {@link Origin} that the service accepts. */
|
|
123
|
+
exports.KnownOrigin = void 0;
|
|
80
124
|
(function (KnownOrigin) {
|
|
81
125
|
KnownOrigin["User"] = "user";
|
|
82
126
|
KnownOrigin["System"] = "system";
|
|
83
127
|
KnownOrigin["UserSystem"] = "user,system";
|
|
84
128
|
})(exports.KnownOrigin || (exports.KnownOrigin = {}));
|
|
129
|
+
/** Known values of {@link ActionType} that the service accepts. */
|
|
130
|
+
exports.KnownActionType = void 0;
|
|
85
131
|
(function (KnownActionType) {
|
|
86
132
|
KnownActionType["Internal"] = "Internal";
|
|
87
133
|
})(exports.KnownActionType || (exports.KnownActionType = {}));
|
|
134
|
+
/** Known values of {@link HostingModel} that the service accepts. */
|
|
135
|
+
exports.KnownHostingModel = void 0;
|
|
88
136
|
(function (KnownHostingModel) {
|
|
89
137
|
KnownHostingModel["Web"] = "Web";
|
|
90
138
|
KnownHostingModel["ConnectedContainer"] = "ConnectedContainer";
|
|
91
139
|
KnownHostingModel["DisconnectedContainer"] = "DisconnectedContainer";
|
|
92
140
|
})(exports.KnownHostingModel || (exports.KnownHostingModel = {}));
|
|
141
|
+
/** Known values of {@link DeploymentProvisioningState} that the service accepts. */
|
|
142
|
+
exports.KnownDeploymentProvisioningState = void 0;
|
|
93
143
|
(function (KnownDeploymentProvisioningState) {
|
|
94
144
|
KnownDeploymentProvisioningState["Accepted"] = "Accepted";
|
|
95
145
|
KnownDeploymentProvisioningState["Creating"] = "Creating";
|
|
@@ -98,6 +148,8 @@ var coreLro = require('@azure/core-lro');
|
|
|
98
148
|
KnownDeploymentProvisioningState["Failed"] = "Failed";
|
|
99
149
|
KnownDeploymentProvisioningState["Succeeded"] = "Succeeded";
|
|
100
150
|
})(exports.KnownDeploymentProvisioningState || (exports.KnownDeploymentProvisioningState = {}));
|
|
151
|
+
/** Known values of {@link DeploymentScaleType} that the service accepts. */
|
|
152
|
+
exports.KnownDeploymentScaleType = void 0;
|
|
101
153
|
(function (KnownDeploymentScaleType) {
|
|
102
154
|
KnownDeploymentScaleType["Manual"] = "Manual";
|
|
103
155
|
})(exports.KnownDeploymentScaleType || (exports.KnownDeploymentScaleType = {}));
|
|
@@ -2776,7 +2828,7 @@ class AccountsImpl {
|
|
|
2776
2828
|
}
|
|
2777
2829
|
};
|
|
2778
2830
|
});
|
|
2779
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, options }, deleteOperationSpec);
|
|
2831
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, options }, deleteOperationSpec$3);
|
|
2780
2832
|
return new coreLro.LroEngine(lro, {
|
|
2781
2833
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2782
2834
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
@@ -2802,7 +2854,7 @@ class AccountsImpl {
|
|
|
2802
2854
|
* @param options The options parameters.
|
|
2803
2855
|
*/
|
|
2804
2856
|
get(resourceGroupName, accountName, options) {
|
|
2805
|
-
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, getOperationSpec);
|
|
2857
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, getOperationSpec$4);
|
|
2806
2858
|
}
|
|
2807
2859
|
/**
|
|
2808
2860
|
* Returns all the resources of a particular type belonging to a resource group
|
|
@@ -2817,7 +2869,7 @@ class AccountsImpl {
|
|
|
2817
2869
|
* @param options The options parameters.
|
|
2818
2870
|
*/
|
|
2819
2871
|
_list(options) {
|
|
2820
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
2872
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$8);
|
|
2821
2873
|
}
|
|
2822
2874
|
/**
|
|
2823
2875
|
* Lists the account keys for the specified Cognitive Services account.
|
|
@@ -2871,11 +2923,11 @@ class AccountsImpl {
|
|
|
2871
2923
|
* @param options The options parameters.
|
|
2872
2924
|
*/
|
|
2873
2925
|
_listNext(nextLink, options) {
|
|
2874
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
2926
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$6);
|
|
2875
2927
|
}
|
|
2876
2928
|
}
|
|
2877
2929
|
// Operation Specifications
|
|
2878
|
-
const serializer =
|
|
2930
|
+
const serializer$9 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2879
2931
|
const createOperationSpec = {
|
|
2880
2932
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",
|
|
2881
2933
|
httpMethod: "PUT",
|
|
@@ -2906,7 +2958,7 @@ const createOperationSpec = {
|
|
|
2906
2958
|
],
|
|
2907
2959
|
headerParameters: [contentType, accept],
|
|
2908
2960
|
mediaType: "json",
|
|
2909
|
-
serializer
|
|
2961
|
+
serializer: serializer$9
|
|
2910
2962
|
};
|
|
2911
2963
|
const updateOperationSpec = {
|
|
2912
2964
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",
|
|
@@ -2938,9 +2990,9 @@ const updateOperationSpec = {
|
|
|
2938
2990
|
],
|
|
2939
2991
|
headerParameters: [contentType, accept],
|
|
2940
2992
|
mediaType: "json",
|
|
2941
|
-
serializer
|
|
2993
|
+
serializer: serializer$9
|
|
2942
2994
|
};
|
|
2943
|
-
const deleteOperationSpec = {
|
|
2995
|
+
const deleteOperationSpec$3 = {
|
|
2944
2996
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",
|
|
2945
2997
|
httpMethod: "DELETE",
|
|
2946
2998
|
responses: {
|
|
@@ -2960,9 +3012,9 @@ const deleteOperationSpec = {
|
|
|
2960
3012
|
subscriptionId
|
|
2961
3013
|
],
|
|
2962
3014
|
headerParameters: [accept],
|
|
2963
|
-
serializer
|
|
3015
|
+
serializer: serializer$9
|
|
2964
3016
|
};
|
|
2965
|
-
const getOperationSpec = {
|
|
3017
|
+
const getOperationSpec$4 = {
|
|
2966
3018
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",
|
|
2967
3019
|
httpMethod: "GET",
|
|
2968
3020
|
responses: {
|
|
@@ -2981,7 +3033,7 @@ const getOperationSpec = {
|
|
|
2981
3033
|
subscriptionId
|
|
2982
3034
|
],
|
|
2983
3035
|
headerParameters: [accept],
|
|
2984
|
-
serializer
|
|
3036
|
+
serializer: serializer$9
|
|
2985
3037
|
};
|
|
2986
3038
|
const listByResourceGroupOperationSpec = {
|
|
2987
3039
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts",
|
|
@@ -3001,9 +3053,9 @@ const listByResourceGroupOperationSpec = {
|
|
|
3001
3053
|
subscriptionId
|
|
3002
3054
|
],
|
|
3003
3055
|
headerParameters: [accept],
|
|
3004
|
-
serializer
|
|
3056
|
+
serializer: serializer$9
|
|
3005
3057
|
};
|
|
3006
|
-
const listOperationSpec = {
|
|
3058
|
+
const listOperationSpec$8 = {
|
|
3007
3059
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/accounts",
|
|
3008
3060
|
httpMethod: "GET",
|
|
3009
3061
|
responses: {
|
|
@@ -3017,7 +3069,7 @@ const listOperationSpec = {
|
|
|
3017
3069
|
queryParameters: [apiVersion],
|
|
3018
3070
|
urlParameters: [$host, subscriptionId],
|
|
3019
3071
|
headerParameters: [accept],
|
|
3020
|
-
serializer
|
|
3072
|
+
serializer: serializer$9
|
|
3021
3073
|
};
|
|
3022
3074
|
const listKeysOperationSpec = {
|
|
3023
3075
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/listKeys",
|
|
@@ -3038,7 +3090,7 @@ const listKeysOperationSpec = {
|
|
|
3038
3090
|
subscriptionId
|
|
3039
3091
|
],
|
|
3040
3092
|
headerParameters: [accept],
|
|
3041
|
-
serializer
|
|
3093
|
+
serializer: serializer$9
|
|
3042
3094
|
};
|
|
3043
3095
|
const regenerateKeyOperationSpec = {
|
|
3044
3096
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/regenerateKey",
|
|
@@ -3064,7 +3116,7 @@ const regenerateKeyOperationSpec = {
|
|
|
3064
3116
|
],
|
|
3065
3117
|
headerParameters: [contentType, accept],
|
|
3066
3118
|
mediaType: "json",
|
|
3067
|
-
serializer
|
|
3119
|
+
serializer: serializer$9
|
|
3068
3120
|
};
|
|
3069
3121
|
const listSkusOperationSpec = {
|
|
3070
3122
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/skus",
|
|
@@ -3085,7 +3137,7 @@ const listSkusOperationSpec = {
|
|
|
3085
3137
|
subscriptionId
|
|
3086
3138
|
],
|
|
3087
3139
|
headerParameters: [accept],
|
|
3088
|
-
serializer
|
|
3140
|
+
serializer: serializer$9
|
|
3089
3141
|
};
|
|
3090
3142
|
const listUsagesOperationSpec = {
|
|
3091
3143
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/usages",
|
|
@@ -3106,7 +3158,7 @@ const listUsagesOperationSpec = {
|
|
|
3106
3158
|
subscriptionId
|
|
3107
3159
|
],
|
|
3108
3160
|
headerParameters: [accept],
|
|
3109
|
-
serializer
|
|
3161
|
+
serializer: serializer$9
|
|
3110
3162
|
};
|
|
3111
3163
|
const listByResourceGroupNextOperationSpec = {
|
|
3112
3164
|
path: "{nextLink}",
|
|
@@ -3127,9 +3179,9 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
3127
3179
|
nextLink
|
|
3128
3180
|
],
|
|
3129
3181
|
headerParameters: [accept],
|
|
3130
|
-
serializer
|
|
3182
|
+
serializer: serializer$9
|
|
3131
3183
|
};
|
|
3132
|
-
const listNextOperationSpec = {
|
|
3184
|
+
const listNextOperationSpec$6 = {
|
|
3133
3185
|
path: "{nextLink}",
|
|
3134
3186
|
httpMethod: "GET",
|
|
3135
3187
|
responses: {
|
|
@@ -3147,7 +3199,7 @@ const listNextOperationSpec = {
|
|
|
3147
3199
|
nextLink
|
|
3148
3200
|
],
|
|
3149
3201
|
headerParameters: [accept],
|
|
3150
|
-
serializer
|
|
3202
|
+
serializer: serializer$9
|
|
3151
3203
|
};
|
|
3152
3204
|
|
|
3153
3205
|
/*
|
|
@@ -3223,7 +3275,7 @@ class DeletedAccountsImpl {
|
|
|
3223
3275
|
* @param options The options parameters.
|
|
3224
3276
|
*/
|
|
3225
3277
|
get(location, resourceGroupName, accountName, options) {
|
|
3226
|
-
return this.client.sendOperationRequest({ location, resourceGroupName, accountName, options }, getOperationSpec$
|
|
3278
|
+
return this.client.sendOperationRequest({ location, resourceGroupName, accountName, options }, getOperationSpec$3);
|
|
3227
3279
|
}
|
|
3228
3280
|
/**
|
|
3229
3281
|
* Deletes a Cognitive Services account from the resource group.
|
|
@@ -3281,7 +3333,7 @@ class DeletedAccountsImpl {
|
|
|
3281
3333
|
* @param options The options parameters.
|
|
3282
3334
|
*/
|
|
3283
3335
|
_list(options) {
|
|
3284
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
3336
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$7);
|
|
3285
3337
|
}
|
|
3286
3338
|
/**
|
|
3287
3339
|
* ListNext
|
|
@@ -3289,12 +3341,12 @@ class DeletedAccountsImpl {
|
|
|
3289
3341
|
* @param options The options parameters.
|
|
3290
3342
|
*/
|
|
3291
3343
|
_listNext(nextLink, options) {
|
|
3292
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$
|
|
3344
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$5);
|
|
3293
3345
|
}
|
|
3294
3346
|
}
|
|
3295
3347
|
// Operation Specifications
|
|
3296
|
-
const serializer$
|
|
3297
|
-
const getOperationSpec$
|
|
3348
|
+
const serializer$8 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3349
|
+
const getOperationSpec$3 = {
|
|
3298
3350
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/resourceGroups/{resourceGroupName}/deletedAccounts/{accountName}",
|
|
3299
3351
|
httpMethod: "GET",
|
|
3300
3352
|
responses: {
|
|
@@ -3314,7 +3366,7 @@ const getOperationSpec$1 = {
|
|
|
3314
3366
|
location
|
|
3315
3367
|
],
|
|
3316
3368
|
headerParameters: [accept],
|
|
3317
|
-
serializer: serializer$
|
|
3369
|
+
serializer: serializer$8
|
|
3318
3370
|
};
|
|
3319
3371
|
const purgeOperationSpec = {
|
|
3320
3372
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/resourceGroups/{resourceGroupName}/deletedAccounts/{accountName}",
|
|
@@ -3337,9 +3389,9 @@ const purgeOperationSpec = {
|
|
|
3337
3389
|
location
|
|
3338
3390
|
],
|
|
3339
3391
|
headerParameters: [accept],
|
|
3340
|
-
serializer: serializer$
|
|
3392
|
+
serializer: serializer$8
|
|
3341
3393
|
};
|
|
3342
|
-
const listOperationSpec$
|
|
3394
|
+
const listOperationSpec$7 = {
|
|
3343
3395
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/deletedAccounts",
|
|
3344
3396
|
httpMethod: "GET",
|
|
3345
3397
|
responses: {
|
|
@@ -3353,9 +3405,9 @@ const listOperationSpec$1 = {
|
|
|
3353
3405
|
queryParameters: [apiVersion],
|
|
3354
3406
|
urlParameters: [$host, subscriptionId],
|
|
3355
3407
|
headerParameters: [accept],
|
|
3356
|
-
serializer: serializer$
|
|
3408
|
+
serializer: serializer$8
|
|
3357
3409
|
};
|
|
3358
|
-
const listNextOperationSpec$
|
|
3410
|
+
const listNextOperationSpec$5 = {
|
|
3359
3411
|
path: "{nextLink}",
|
|
3360
3412
|
httpMethod: "GET",
|
|
3361
3413
|
responses: {
|
|
@@ -3373,7 +3425,7 @@ const listNextOperationSpec$1 = {
|
|
|
3373
3425
|
nextLink
|
|
3374
3426
|
],
|
|
3375
3427
|
headerParameters: [accept],
|
|
3376
|
-
serializer: serializer$
|
|
3428
|
+
serializer: serializer$8
|
|
3377
3429
|
};
|
|
3378
3430
|
|
|
3379
3431
|
/*
|
|
@@ -3446,7 +3498,7 @@ class ResourceSkusImpl {
|
|
|
3446
3498
|
* @param options The options parameters.
|
|
3447
3499
|
*/
|
|
3448
3500
|
_list(options) {
|
|
3449
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
3501
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$6);
|
|
3450
3502
|
}
|
|
3451
3503
|
/**
|
|
3452
3504
|
* ListNext
|
|
@@ -3454,12 +3506,12 @@ class ResourceSkusImpl {
|
|
|
3454
3506
|
* @param options The options parameters.
|
|
3455
3507
|
*/
|
|
3456
3508
|
_listNext(nextLink, options) {
|
|
3457
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$
|
|
3509
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$4);
|
|
3458
3510
|
}
|
|
3459
3511
|
}
|
|
3460
3512
|
// Operation Specifications
|
|
3461
|
-
const serializer$
|
|
3462
|
-
const listOperationSpec$
|
|
3513
|
+
const serializer$7 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3514
|
+
const listOperationSpec$6 = {
|
|
3463
3515
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/skus",
|
|
3464
3516
|
httpMethod: "GET",
|
|
3465
3517
|
responses: {
|
|
@@ -3473,9 +3525,9 @@ const listOperationSpec$2 = {
|
|
|
3473
3525
|
queryParameters: [apiVersion],
|
|
3474
3526
|
urlParameters: [$host, subscriptionId],
|
|
3475
3527
|
headerParameters: [accept],
|
|
3476
|
-
serializer: serializer$
|
|
3528
|
+
serializer: serializer$7
|
|
3477
3529
|
};
|
|
3478
|
-
const listNextOperationSpec$
|
|
3530
|
+
const listNextOperationSpec$4 = {
|
|
3479
3531
|
path: "{nextLink}",
|
|
3480
3532
|
httpMethod: "GET",
|
|
3481
3533
|
responses: {
|
|
@@ -3493,7 +3545,7 @@ const listNextOperationSpec$2 = {
|
|
|
3493
3545
|
nextLink
|
|
3494
3546
|
],
|
|
3495
3547
|
headerParameters: [accept],
|
|
3496
|
-
serializer: serializer$
|
|
3548
|
+
serializer: serializer$7
|
|
3497
3549
|
};
|
|
3498
3550
|
|
|
3499
3551
|
/*
|
|
@@ -3566,7 +3618,7 @@ class OperationsImpl {
|
|
|
3566
3618
|
* @param options The options parameters.
|
|
3567
3619
|
*/
|
|
3568
3620
|
_list(options) {
|
|
3569
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
3621
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$5);
|
|
3570
3622
|
}
|
|
3571
3623
|
/**
|
|
3572
3624
|
* ListNext
|
|
@@ -3578,8 +3630,8 @@ class OperationsImpl {
|
|
|
3578
3630
|
}
|
|
3579
3631
|
}
|
|
3580
3632
|
// Operation Specifications
|
|
3581
|
-
const serializer$
|
|
3582
|
-
const listOperationSpec$
|
|
3633
|
+
const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3634
|
+
const listOperationSpec$5 = {
|
|
3583
3635
|
path: "/providers/Microsoft.CognitiveServices/operations",
|
|
3584
3636
|
httpMethod: "GET",
|
|
3585
3637
|
responses: {
|
|
@@ -3593,7 +3645,7 @@ const listOperationSpec$3 = {
|
|
|
3593
3645
|
queryParameters: [apiVersion],
|
|
3594
3646
|
urlParameters: [$host],
|
|
3595
3647
|
headerParameters: [accept],
|
|
3596
|
-
serializer: serializer$
|
|
3648
|
+
serializer: serializer$6
|
|
3597
3649
|
};
|
|
3598
3650
|
const listNextOperationSpec$3 = {
|
|
3599
3651
|
path: "{nextLink}",
|
|
@@ -3609,7 +3661,7 @@ const listNextOperationSpec$3 = {
|
|
|
3609
3661
|
queryParameters: [apiVersion],
|
|
3610
3662
|
urlParameters: [$host, nextLink],
|
|
3611
3663
|
headerParameters: [accept],
|
|
3612
|
-
serializer: serializer$
|
|
3664
|
+
serializer: serializer$6
|
|
3613
3665
|
};
|
|
3614
3666
|
|
|
3615
3667
|
/*
|
|
@@ -3693,11 +3745,11 @@ class CommitmentTiersImpl {
|
|
|
3693
3745
|
* @param options The options parameters.
|
|
3694
3746
|
*/
|
|
3695
3747
|
_listNext(location, nextLink, options) {
|
|
3696
|
-
return this.client.sendOperationRequest({ location, nextLink, options }, listNextOperationSpec$
|
|
3748
|
+
return this.client.sendOperationRequest({ location, nextLink, options }, listNextOperationSpec$2);
|
|
3697
3749
|
}
|
|
3698
3750
|
}
|
|
3699
3751
|
// Operation Specifications
|
|
3700
|
-
const serializer$
|
|
3752
|
+
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3701
3753
|
const listOperationSpec$4 = {
|
|
3702
3754
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/commitmentTiers",
|
|
3703
3755
|
httpMethod: "GET",
|
|
@@ -3716,9 +3768,9 @@ const listOperationSpec$4 = {
|
|
|
3716
3768
|
location
|
|
3717
3769
|
],
|
|
3718
3770
|
headerParameters: [accept],
|
|
3719
|
-
serializer: serializer$
|
|
3771
|
+
serializer: serializer$5
|
|
3720
3772
|
};
|
|
3721
|
-
const listNextOperationSpec$
|
|
3773
|
+
const listNextOperationSpec$2 = {
|
|
3722
3774
|
path: "{nextLink}",
|
|
3723
3775
|
httpMethod: "GET",
|
|
3724
3776
|
responses: {
|
|
@@ -3737,7 +3789,7 @@ const listNextOperationSpec$4 = {
|
|
|
3737
3789
|
location
|
|
3738
3790
|
],
|
|
3739
3791
|
headerParameters: [accept],
|
|
3740
|
-
serializer: serializer$
|
|
3792
|
+
serializer: serializer$5
|
|
3741
3793
|
};
|
|
3742
3794
|
|
|
3743
3795
|
/*
|
|
@@ -3763,7 +3815,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
3763
3815
|
* @param options The options parameters.
|
|
3764
3816
|
*/
|
|
3765
3817
|
list(resourceGroupName, accountName, options) {
|
|
3766
|
-
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listOperationSpec$
|
|
3818
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listOperationSpec$3);
|
|
3767
3819
|
}
|
|
3768
3820
|
/**
|
|
3769
3821
|
* Gets the specified private endpoint connection associated with the Cognitive Services account.
|
|
@@ -3821,7 +3873,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
3821
3873
|
privateEndpointConnectionName,
|
|
3822
3874
|
properties,
|
|
3823
3875
|
options
|
|
3824
|
-
}, createOrUpdateOperationSpec);
|
|
3876
|
+
}, createOrUpdateOperationSpec$2);
|
|
3825
3877
|
return new coreLro.LroEngine(lro, {
|
|
3826
3878
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3827
3879
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
@@ -3881,7 +3933,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
3881
3933
|
accountName,
|
|
3882
3934
|
privateEndpointConnectionName,
|
|
3883
3935
|
options
|
|
3884
|
-
}, deleteOperationSpec$
|
|
3936
|
+
}, deleteOperationSpec$2);
|
|
3885
3937
|
return new coreLro.LroEngine(lro, {
|
|
3886
3938
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3887
3939
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
@@ -3904,8 +3956,8 @@ class PrivateEndpointConnectionsImpl {
|
|
|
3904
3956
|
}
|
|
3905
3957
|
}
|
|
3906
3958
|
// Operation Specifications
|
|
3907
|
-
const serializer$
|
|
3908
|
-
const listOperationSpec$
|
|
3959
|
+
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3960
|
+
const listOperationSpec$3 = {
|
|
3909
3961
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections",
|
|
3910
3962
|
httpMethod: "GET",
|
|
3911
3963
|
responses: {
|
|
@@ -3924,7 +3976,7 @@ const listOperationSpec$5 = {
|
|
|
3924
3976
|
subscriptionId
|
|
3925
3977
|
],
|
|
3926
3978
|
headerParameters: [accept],
|
|
3927
|
-
serializer: serializer$
|
|
3979
|
+
serializer: serializer$4
|
|
3928
3980
|
};
|
|
3929
3981
|
const getOperationSpec$2 = {
|
|
3930
3982
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
@@ -3946,9 +3998,9 @@ const getOperationSpec$2 = {
|
|
|
3946
3998
|
privateEndpointConnectionName
|
|
3947
3999
|
],
|
|
3948
4000
|
headerParameters: [accept],
|
|
3949
|
-
serializer: serializer$
|
|
4001
|
+
serializer: serializer$4
|
|
3950
4002
|
};
|
|
3951
|
-
const createOrUpdateOperationSpec = {
|
|
4003
|
+
const createOrUpdateOperationSpec$2 = {
|
|
3952
4004
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
3953
4005
|
httpMethod: "PUT",
|
|
3954
4006
|
responses: {
|
|
@@ -3979,9 +4031,9 @@ const createOrUpdateOperationSpec = {
|
|
|
3979
4031
|
],
|
|
3980
4032
|
headerParameters: [contentType, accept],
|
|
3981
4033
|
mediaType: "json",
|
|
3982
|
-
serializer: serializer$
|
|
4034
|
+
serializer: serializer$4
|
|
3983
4035
|
};
|
|
3984
|
-
const deleteOperationSpec$
|
|
4036
|
+
const deleteOperationSpec$2 = {
|
|
3985
4037
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
3986
4038
|
httpMethod: "DELETE",
|
|
3987
4039
|
responses: {
|
|
@@ -4002,7 +4054,7 @@ const deleteOperationSpec$1 = {
|
|
|
4002
4054
|
privateEndpointConnectionName
|
|
4003
4055
|
],
|
|
4004
4056
|
headerParameters: [accept],
|
|
4005
|
-
serializer: serializer$
|
|
4057
|
+
serializer: serializer$4
|
|
4006
4058
|
};
|
|
4007
4059
|
|
|
4008
4060
|
/*
|
|
@@ -4028,12 +4080,12 @@ class PrivateLinkResourcesImpl {
|
|
|
4028
4080
|
* @param options The options parameters.
|
|
4029
4081
|
*/
|
|
4030
4082
|
list(resourceGroupName, accountName, options) {
|
|
4031
|
-
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listOperationSpec$
|
|
4083
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listOperationSpec$2);
|
|
4032
4084
|
}
|
|
4033
4085
|
}
|
|
4034
4086
|
// Operation Specifications
|
|
4035
|
-
const serializer$
|
|
4036
|
-
const listOperationSpec$
|
|
4087
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4088
|
+
const listOperationSpec$2 = {
|
|
4037
4089
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateLinkResources",
|
|
4038
4090
|
httpMethod: "GET",
|
|
4039
4091
|
responses: {
|
|
@@ -4052,7 +4104,7 @@ const listOperationSpec$6 = {
|
|
|
4052
4104
|
subscriptionId
|
|
4053
4105
|
],
|
|
4054
4106
|
headerParameters: [accept],
|
|
4055
|
-
serializer: serializer$
|
|
4107
|
+
serializer: serializer$3
|
|
4056
4108
|
};
|
|
4057
4109
|
|
|
4058
4110
|
/*
|
|
@@ -4129,7 +4181,7 @@ class DeploymentsImpl {
|
|
|
4129
4181
|
* @param options The options parameters.
|
|
4130
4182
|
*/
|
|
4131
4183
|
_list(resourceGroupName, accountName, options) {
|
|
4132
|
-
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listOperationSpec$
|
|
4184
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listOperationSpec$1);
|
|
4133
4185
|
}
|
|
4134
4186
|
/**
|
|
4135
4187
|
* Gets the specified deployments associated with the Cognitive Services account.
|
|
@@ -4139,7 +4191,7 @@ class DeploymentsImpl {
|
|
|
4139
4191
|
* @param options The options parameters.
|
|
4140
4192
|
*/
|
|
4141
4193
|
get(resourceGroupName, accountName, deploymentName, options) {
|
|
4142
|
-
return this.client.sendOperationRequest({ resourceGroupName, accountName, deploymentName, options }, getOperationSpec$
|
|
4194
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, deploymentName, options }, getOperationSpec$1);
|
|
4143
4195
|
}
|
|
4144
4196
|
/**
|
|
4145
4197
|
* Update the state of specified deployments associated with the Cognitive Services account.
|
|
@@ -4225,7 +4277,7 @@ class DeploymentsImpl {
|
|
|
4225
4277
|
}
|
|
4226
4278
|
};
|
|
4227
4279
|
});
|
|
4228
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, deploymentName, options }, deleteOperationSpec$
|
|
4280
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, deploymentName, options }, deleteOperationSpec$1);
|
|
4229
4281
|
return new coreLro.LroEngine(lro, {
|
|
4230
4282
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4231
4283
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
@@ -4253,12 +4305,12 @@ class DeploymentsImpl {
|
|
|
4253
4305
|
* @param options The options parameters.
|
|
4254
4306
|
*/
|
|
4255
4307
|
_listNext(resourceGroupName, accountName, nextLink, options) {
|
|
4256
|
-
return this.client.sendOperationRequest({ resourceGroupName, accountName, nextLink, options }, listNextOperationSpec$
|
|
4308
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, nextLink, options }, listNextOperationSpec$1);
|
|
4257
4309
|
}
|
|
4258
4310
|
}
|
|
4259
4311
|
// Operation Specifications
|
|
4260
|
-
const serializer$
|
|
4261
|
-
const listOperationSpec$
|
|
4312
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4313
|
+
const listOperationSpec$1 = {
|
|
4262
4314
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/deployments",
|
|
4263
4315
|
httpMethod: "GET",
|
|
4264
4316
|
responses: {
|
|
@@ -4277,9 +4329,9 @@ const listOperationSpec$7 = {
|
|
|
4277
4329
|
subscriptionId
|
|
4278
4330
|
],
|
|
4279
4331
|
headerParameters: [accept],
|
|
4280
|
-
serializer: serializer$
|
|
4332
|
+
serializer: serializer$2
|
|
4281
4333
|
};
|
|
4282
|
-
const getOperationSpec$
|
|
4334
|
+
const getOperationSpec$1 = {
|
|
4283
4335
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/deployments/{deploymentName}",
|
|
4284
4336
|
httpMethod: "GET",
|
|
4285
4337
|
responses: {
|
|
@@ -4299,7 +4351,7 @@ const getOperationSpec$3 = {
|
|
|
4299
4351
|
deploymentName
|
|
4300
4352
|
],
|
|
4301
4353
|
headerParameters: [accept],
|
|
4302
|
-
serializer: serializer$
|
|
4354
|
+
serializer: serializer$2
|
|
4303
4355
|
};
|
|
4304
4356
|
const createOrUpdateOperationSpec$1 = {
|
|
4305
4357
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/deployments/{deploymentName}",
|
|
@@ -4332,9 +4384,9 @@ const createOrUpdateOperationSpec$1 = {
|
|
|
4332
4384
|
],
|
|
4333
4385
|
headerParameters: [contentType, accept],
|
|
4334
4386
|
mediaType: "json",
|
|
4335
|
-
serializer: serializer$
|
|
4387
|
+
serializer: serializer$2
|
|
4336
4388
|
};
|
|
4337
|
-
const deleteOperationSpec$
|
|
4389
|
+
const deleteOperationSpec$1 = {
|
|
4338
4390
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/deployments/{deploymentName}",
|
|
4339
4391
|
httpMethod: "DELETE",
|
|
4340
4392
|
responses: {
|
|
@@ -4355,9 +4407,9 @@ const deleteOperationSpec$2 = {
|
|
|
4355
4407
|
deploymentName
|
|
4356
4408
|
],
|
|
4357
4409
|
headerParameters: [accept],
|
|
4358
|
-
serializer: serializer$
|
|
4410
|
+
serializer: serializer$2
|
|
4359
4411
|
};
|
|
4360
|
-
const listNextOperationSpec$
|
|
4412
|
+
const listNextOperationSpec$1 = {
|
|
4361
4413
|
path: "{nextLink}",
|
|
4362
4414
|
httpMethod: "GET",
|
|
4363
4415
|
responses: {
|
|
@@ -4377,7 +4429,7 @@ const listNextOperationSpec$5 = {
|
|
|
4377
4429
|
nextLink
|
|
4378
4430
|
],
|
|
4379
4431
|
headerParameters: [accept],
|
|
4380
|
-
serializer: serializer$
|
|
4432
|
+
serializer: serializer$2
|
|
4381
4433
|
};
|
|
4382
4434
|
|
|
4383
4435
|
/*
|
|
@@ -4454,7 +4506,7 @@ class CommitmentPlansImpl {
|
|
|
4454
4506
|
* @param options The options parameters.
|
|
4455
4507
|
*/
|
|
4456
4508
|
_list(resourceGroupName, accountName, options) {
|
|
4457
|
-
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listOperationSpec
|
|
4509
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listOperationSpec);
|
|
4458
4510
|
}
|
|
4459
4511
|
/**
|
|
4460
4512
|
* Gets the specified commitmentPlans associated with the Cognitive Services account.
|
|
@@ -4465,7 +4517,7 @@ class CommitmentPlansImpl {
|
|
|
4465
4517
|
* @param options The options parameters.
|
|
4466
4518
|
*/
|
|
4467
4519
|
get(resourceGroupName, accountName, commitmentPlanName, options) {
|
|
4468
|
-
return this.client.sendOperationRequest({ resourceGroupName, accountName, commitmentPlanName, options }, getOperationSpec
|
|
4520
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, commitmentPlanName, options }, getOperationSpec);
|
|
4469
4521
|
}
|
|
4470
4522
|
/**
|
|
4471
4523
|
* Update the state of specified commitmentPlans associated with the Cognitive Services account.
|
|
@@ -4483,7 +4535,7 @@ class CommitmentPlansImpl {
|
|
|
4483
4535
|
commitmentPlanName,
|
|
4484
4536
|
commitmentPlan,
|
|
4485
4537
|
options
|
|
4486
|
-
}, createOrUpdateOperationSpec
|
|
4538
|
+
}, createOrUpdateOperationSpec);
|
|
4487
4539
|
}
|
|
4488
4540
|
/**
|
|
4489
4541
|
* Deletes the specified commitmentPlan associated with the Cognitive Services account.
|
|
@@ -4517,7 +4569,7 @@ class CommitmentPlansImpl {
|
|
|
4517
4569
|
}
|
|
4518
4570
|
};
|
|
4519
4571
|
});
|
|
4520
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, commitmentPlanName, options }, deleteOperationSpec
|
|
4572
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, commitmentPlanName, options }, deleteOperationSpec);
|
|
4521
4573
|
return new coreLro.LroEngine(lro, {
|
|
4522
4574
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4523
4575
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
@@ -4546,12 +4598,12 @@ class CommitmentPlansImpl {
|
|
|
4546
4598
|
* @param options The options parameters.
|
|
4547
4599
|
*/
|
|
4548
4600
|
_listNext(resourceGroupName, accountName, nextLink, options) {
|
|
4549
|
-
return this.client.sendOperationRequest({ resourceGroupName, accountName, nextLink, options }, listNextOperationSpec
|
|
4601
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, nextLink, options }, listNextOperationSpec);
|
|
4550
4602
|
}
|
|
4551
4603
|
}
|
|
4552
4604
|
// Operation Specifications
|
|
4553
|
-
const serializer$
|
|
4554
|
-
const listOperationSpec
|
|
4605
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4606
|
+
const listOperationSpec = {
|
|
4555
4607
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/commitmentPlans",
|
|
4556
4608
|
httpMethod: "GET",
|
|
4557
4609
|
responses: {
|
|
@@ -4570,9 +4622,9 @@ const listOperationSpec$8 = {
|
|
|
4570
4622
|
subscriptionId
|
|
4571
4623
|
],
|
|
4572
4624
|
headerParameters: [accept],
|
|
4573
|
-
serializer: serializer$
|
|
4625
|
+
serializer: serializer$1
|
|
4574
4626
|
};
|
|
4575
|
-
const getOperationSpec
|
|
4627
|
+
const getOperationSpec = {
|
|
4576
4628
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/commitmentPlans/{commitmentPlanName}",
|
|
4577
4629
|
httpMethod: "GET",
|
|
4578
4630
|
responses: {
|
|
@@ -4592,9 +4644,9 @@ const getOperationSpec$4 = {
|
|
|
4592
4644
|
commitmentPlanName
|
|
4593
4645
|
],
|
|
4594
4646
|
headerParameters: [accept],
|
|
4595
|
-
serializer: serializer$
|
|
4647
|
+
serializer: serializer$1
|
|
4596
4648
|
};
|
|
4597
|
-
const createOrUpdateOperationSpec
|
|
4649
|
+
const createOrUpdateOperationSpec = {
|
|
4598
4650
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/commitmentPlans/{commitmentPlanName}",
|
|
4599
4651
|
httpMethod: "PUT",
|
|
4600
4652
|
responses: {
|
|
@@ -4619,9 +4671,9 @@ const createOrUpdateOperationSpec$2 = {
|
|
|
4619
4671
|
],
|
|
4620
4672
|
headerParameters: [contentType, accept],
|
|
4621
4673
|
mediaType: "json",
|
|
4622
|
-
serializer: serializer$
|
|
4674
|
+
serializer: serializer$1
|
|
4623
4675
|
};
|
|
4624
|
-
const deleteOperationSpec
|
|
4676
|
+
const deleteOperationSpec = {
|
|
4625
4677
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/commitmentPlans/{commitmentPlanName}",
|
|
4626
4678
|
httpMethod: "DELETE",
|
|
4627
4679
|
responses: {
|
|
@@ -4642,9 +4694,9 @@ const deleteOperationSpec$3 = {
|
|
|
4642
4694
|
commitmentPlanName
|
|
4643
4695
|
],
|
|
4644
4696
|
headerParameters: [accept],
|
|
4645
|
-
serializer: serializer$
|
|
4697
|
+
serializer: serializer$1
|
|
4646
4698
|
};
|
|
4647
|
-
const listNextOperationSpec
|
|
4699
|
+
const listNextOperationSpec = {
|
|
4648
4700
|
path: "{nextLink}",
|
|
4649
4701
|
httpMethod: "GET",
|
|
4650
4702
|
responses: {
|
|
@@ -4664,7 +4716,7 @@ const listNextOperationSpec$6 = {
|
|
|
4664
4716
|
nextLink
|
|
4665
4717
|
],
|
|
4666
4718
|
headerParameters: [accept],
|
|
4667
|
-
serializer: serializer$
|
|
4719
|
+
serializer: serializer$1
|
|
4668
4720
|
};
|
|
4669
4721
|
|
|
4670
4722
|
/*
|
|
@@ -4674,7 +4726,7 @@ const listNextOperationSpec$6 = {
|
|
|
4674
4726
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
4675
4727
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4676
4728
|
*/
|
|
4677
|
-
class CognitiveServicesManagementClient extends
|
|
4729
|
+
class CognitiveServicesManagementClient extends coreClient__namespace.ServiceClient {
|
|
4678
4730
|
/**
|
|
4679
4731
|
* Initializes a new instance of the CognitiveServicesManagementClient class.
|
|
4680
4732
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -4744,7 +4796,7 @@ class CognitiveServicesManagementClient extends coreClient.ServiceClient {
|
|
|
4744
4796
|
}
|
|
4745
4797
|
}
|
|
4746
4798
|
// Operation Specifications
|
|
4747
|
-
const serializer
|
|
4799
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4748
4800
|
const checkSkuAvailabilityOperationSpec = {
|
|
4749
4801
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/checkSkuAvailability",
|
|
4750
4802
|
httpMethod: "POST",
|
|
@@ -4768,7 +4820,7 @@ const checkSkuAvailabilityOperationSpec = {
|
|
|
4768
4820
|
],
|
|
4769
4821
|
headerParameters: [contentType, accept],
|
|
4770
4822
|
mediaType: "json",
|
|
4771
|
-
serializer
|
|
4823
|
+
serializer
|
|
4772
4824
|
};
|
|
4773
4825
|
const checkDomainAvailabilityOperationSpec = {
|
|
4774
4826
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/checkDomainAvailability",
|
|
@@ -4793,7 +4845,7 @@ const checkDomainAvailabilityOperationSpec = {
|
|
|
4793
4845
|
urlParameters: [$host, subscriptionId],
|
|
4794
4846
|
headerParameters: [contentType, accept],
|
|
4795
4847
|
mediaType: "json",
|
|
4796
|
-
serializer
|
|
4848
|
+
serializer
|
|
4797
4849
|
};
|
|
4798
4850
|
|
|
4799
4851
|
exports.CognitiveServicesManagementClient = CognitiveServicesManagementClient;
|