@azure/arm-cognitiveservices 7.0.1-alpha.20220401.1 → 7.1.0-alpha.20220405.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 +19 -11
- package/LICENSE +1 -1
- package/README.md +11 -0
- package/dist/index.js +285 -42
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/accountsCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsCreateSample.js +77 -0
- package/dist-esm/samples-dev/accountsCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsDeleteSample.js +31 -0
- package/dist-esm/samples-dev/accountsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsGetSample.js +31 -0
- package/dist-esm/samples-dev/accountsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsListKeysSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsListKeysSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsListKeysSample.js +31 -0
- package/dist-esm/samples-dev/accountsListKeysSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsListModelsSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsListModelsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsListModelsSample.js +45 -0
- package/dist-esm/samples-dev/accountsListModelsSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsListSample.js +43 -0
- package/dist-esm/samples-dev/accountsListSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsListSkusSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsListSkusSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsListSkusSample.js +31 -0
- package/dist-esm/samples-dev/accountsListSkusSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsListUsagesSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsListUsagesSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsListUsagesSample.js +31 -0
- package/dist-esm/samples-dev/accountsListUsagesSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsRegenerateKeySample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsRegenerateKeySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsRegenerateKeySample.js +32 -0
- package/dist-esm/samples-dev/accountsRegenerateKeySample.js.map +1 -0
- package/dist-esm/samples-dev/accountsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsUpdateSample.js +32 -0
- package/dist-esm/samples-dev/accountsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/checkDomainAvailabilitySample.d.ts +2 -0
- package/dist-esm/samples-dev/checkDomainAvailabilitySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/checkDomainAvailabilitySample.js +31 -0
- package/dist-esm/samples-dev/checkDomainAvailabilitySample.js.map +1 -0
- package/dist-esm/samples-dev/checkSkuAvailabilitySample.d.ts +2 -0
- package/dist-esm/samples-dev/checkSkuAvailabilitySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/checkSkuAvailabilitySample.js +33 -0
- package/dist-esm/samples-dev/checkSkuAvailabilitySample.js.map +1 -0
- package/dist-esm/samples-dev/commitmentPlansCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/commitmentPlansCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/commitmentPlansCreateOrUpdateSample.js +40 -0
- package/dist-esm/samples-dev/commitmentPlansCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/commitmentPlansDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/commitmentPlansDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/commitmentPlansDeleteSample.js +32 -0
- package/dist-esm/samples-dev/commitmentPlansDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/commitmentPlansGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/commitmentPlansGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/commitmentPlansGetSample.js +32 -0
- package/dist-esm/samples-dev/commitmentPlansGetSample.js.map +1 -0
- package/dist-esm/samples-dev/commitmentPlansListSample.d.ts +2 -0
- package/dist-esm/samples-dev/commitmentPlansListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/commitmentPlansListSample.js +45 -0
- package/dist-esm/samples-dev/commitmentPlansListSample.js.map +1 -0
- package/dist-esm/samples-dev/commitmentTiersListSample.d.ts +2 -0
- package/dist-esm/samples-dev/commitmentTiersListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/commitmentTiersListSample.js +44 -0
- package/dist-esm/samples-dev/commitmentTiersListSample.js.map +1 -0
- package/dist-esm/samples-dev/deletedAccountsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/deletedAccountsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deletedAccountsGetSample.js +32 -0
- package/dist-esm/samples-dev/deletedAccountsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/deletedAccountsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/deletedAccountsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deletedAccountsListSample.js +43 -0
- package/dist-esm/samples-dev/deletedAccountsListSample.js.map +1 -0
- package/dist-esm/samples-dev/deletedAccountsPurgeSample.d.ts +2 -0
- package/dist-esm/samples-dev/deletedAccountsPurgeSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deletedAccountsPurgeSample.js +32 -0
- package/dist-esm/samples-dev/deletedAccountsPurgeSample.js.map +1 -0
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.js +38 -0
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/deploymentsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/deploymentsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deploymentsDeleteSample.js +32 -0
- package/dist-esm/samples-dev/deploymentsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/deploymentsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/deploymentsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deploymentsGetSample.js +32 -0
- package/dist-esm/samples-dev/deploymentsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/deploymentsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/deploymentsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deploymentsListSample.js +45 -0
- package/dist-esm/samples-dev/deploymentsListSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +43 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +40 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +32 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +32 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +31 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -0
- package/dist-esm/samples-dev/privateLinkResourcesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateLinkResourcesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateLinkResourcesListSample.js +31 -0
- package/dist-esm/samples-dev/privateLinkResourcesListSample.js.map +1 -0
- package/dist-esm/samples-dev/resourceSkusListSample.d.ts +2 -0
- package/dist-esm/samples-dev/resourceSkusListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/resourceSkusListSample.js +43 -0
- package/dist-esm/samples-dev/resourceSkusListSample.js.map +1 -0
- package/dist-esm/src/cognitiveServicesManagementClient.d.ts.map +1 -1
- package/dist-esm/src/cognitiveServicesManagementClient.js +4 -3
- package/dist-esm/src/cognitiveServicesManagementClient.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +69 -10
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +4 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +137 -28
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +1 -1
- package/dist-esm/src/operations/accounts.d.ts +25 -1
- package/dist-esm/src/operations/accounts.d.ts.map +1 -1
- package/dist-esm/src/operations/accounts.js +121 -3
- package/dist-esm/src/operations/accounts.js.map +1 -1
- package/dist-esm/src/operations/commitmentPlans.d.ts.map +1 -1
- package/dist-esm/src/operations/commitmentPlans.js +3 -1
- package/dist-esm/src/operations/commitmentPlans.js.map +1 -1
- package/dist-esm/src/operations/deletedAccounts.d.ts.map +1 -1
- package/dist-esm/src/operations/deletedAccounts.js +3 -1
- package/dist-esm/src/operations/deletedAccounts.js.map +1 -1
- package/dist-esm/src/operations/deployments.d.ts.map +1 -1
- package/dist-esm/src/operations/deployments.js +6 -2
- package/dist-esm/src/operations/deployments.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +6 -2
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/accounts.d.ts +8 -1
- package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -1
- package/package.json +23 -7
- package/review/arm-cognitiveservices.api.md +42 -0
- package/rollup.config.js +6 -72
- package/src/cognitiveServicesManagementClient.ts +4 -3
- package/src/models/index.ts +75 -11
- package/src/models/mappers.ts +148 -29
- package/src/models/parameters.ts +1 -1
- package/src/operations/accounts.ts +166 -4
- package/src/operations/commitmentPlans.ts +3 -1
- package/src/operations/deletedAccounts.ts +3 -1
- package/src/operations/deployments.ts +6 -2
- package/src/operations/privateEndpointConnections.ts +6 -2
- package/src/operationsInterfaces/accounts.ts +13 -0
- package/tsconfig.json +19 -5
- package/types/arm-cognitiveservices.d.ts +74 -1
|
@@ -72,7 +72,7 @@ export class CognitiveServicesManagementClient extends coreClient.ServiceClient
|
|
|
72
72
|
credential: credentials
|
|
73
73
|
};
|
|
74
74
|
|
|
75
|
-
const packageDetails = `azsdk-js-arm-cognitiveservices/7.
|
|
75
|
+
const packageDetails = `azsdk-js-arm-cognitiveservices/7.1.0`;
|
|
76
76
|
const userAgentPrefix =
|
|
77
77
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
78
78
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
@@ -87,7 +87,8 @@ export class CognitiveServicesManagementClient extends coreClient.ServiceClient
|
|
|
87
87
|
userAgentOptions: {
|
|
88
88
|
userAgentPrefix
|
|
89
89
|
},
|
|
90
|
-
baseUri:
|
|
90
|
+
baseUri:
|
|
91
|
+
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
91
92
|
};
|
|
92
93
|
super(optionsWithDefaults);
|
|
93
94
|
// Parameter assignments
|
|
@@ -95,7 +96,7 @@ export class CognitiveServicesManagementClient extends coreClient.ServiceClient
|
|
|
95
96
|
|
|
96
97
|
// Assigning values to Constant parameters
|
|
97
98
|
this.$host = options.$host || "https://management.azure.com";
|
|
98
|
-
this.apiVersion = options.apiVersion || "
|
|
99
|
+
this.apiVersion = options.apiVersion || "2022-03-01";
|
|
99
100
|
this.accounts = new AccountsImpl(this);
|
|
100
101
|
this.deletedAccounts = new DeletedAccountsImpl(this);
|
|
101
102
|
this.resourceSkus = new ResourceSkusImpl(this);
|
package/src/models/index.ts
CHANGED
|
@@ -117,7 +117,7 @@ export interface AccountProperties {
|
|
|
117
117
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
118
118
|
*/
|
|
119
119
|
readonly privateEndpointConnections?: PrivateEndpointConnection[];
|
|
120
|
-
/** Whether or not public endpoint access is allowed for this account.
|
|
120
|
+
/** Whether or not public endpoint access is allowed for this account. */
|
|
121
121
|
publicNetworkAccess?: PublicNetworkAccess;
|
|
122
122
|
/** The api properties for special APIs. */
|
|
123
123
|
apiProperties?: ApiProperties;
|
|
@@ -131,6 +131,8 @@ export interface AccountProperties {
|
|
|
131
131
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
132
132
|
*/
|
|
133
133
|
readonly callRateLimit?: CallRateLimit;
|
|
134
|
+
/** The flag to enable dynamic throttling. */
|
|
135
|
+
dynamicThrottlingEnabled?: boolean;
|
|
134
136
|
/** NOTE: This property will not be serialized. It can only be populated by the server. */
|
|
135
137
|
readonly quotaLimit?: QuotaLimit;
|
|
136
138
|
restrictOutboundNetworkAccess?: boolean;
|
|
@@ -142,6 +144,16 @@ export interface AccountProperties {
|
|
|
142
144
|
*/
|
|
143
145
|
readonly endpoints?: { [propertyName: string]: string };
|
|
144
146
|
restore?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* The deletion date, only available for deleted account.
|
|
149
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
150
|
+
*/
|
|
151
|
+
readonly deletionDate?: string;
|
|
152
|
+
/**
|
|
153
|
+
* The scheduled purge date, only available for deleted account.
|
|
154
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
155
|
+
*/
|
|
156
|
+
readonly scheduledPurgeDate?: string;
|
|
145
157
|
}
|
|
146
158
|
|
|
147
159
|
/** SkuCapability indicates the capability of a certain feature. */
|
|
@@ -485,6 +497,32 @@ export interface MetricName {
|
|
|
485
497
|
localizedValue?: string;
|
|
486
498
|
}
|
|
487
499
|
|
|
500
|
+
/** The list of cognitive services accounts operation response. */
|
|
501
|
+
export interface AccountModelListResult {
|
|
502
|
+
/** The link used to get the next page of Model. */
|
|
503
|
+
nextLink?: string;
|
|
504
|
+
/** Gets the list of Cognitive Services accounts Model and their properties. */
|
|
505
|
+
value?: AccountModel[];
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
/** Properties of Cognitive Services account deployment model. */
|
|
509
|
+
export interface DeploymentModel {
|
|
510
|
+
/** Deployment model format. */
|
|
511
|
+
format?: string;
|
|
512
|
+
/** Deployment model name. */
|
|
513
|
+
name?: string;
|
|
514
|
+
/** Deployment model version. */
|
|
515
|
+
version?: string;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
/** Cognitive Services account ModelDeprecationInfo. */
|
|
519
|
+
export interface ModelDeprecationInfo {
|
|
520
|
+
/** The datetime of deprecation of the fineTune Model. */
|
|
521
|
+
fineTune?: string;
|
|
522
|
+
/** The datetime of deprecation of the inference Model. */
|
|
523
|
+
inference?: string;
|
|
524
|
+
}
|
|
525
|
+
|
|
488
526
|
/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */
|
|
489
527
|
export interface OperationListResult {
|
|
490
528
|
/**
|
|
@@ -709,22 +747,17 @@ export interface DeploymentProperties {
|
|
|
709
747
|
scaleSettings?: DeploymentScaleSettings;
|
|
710
748
|
}
|
|
711
749
|
|
|
712
|
-
/** Properties of Cognitive Services account deployment model. */
|
|
713
|
-
export interface DeploymentModel {
|
|
714
|
-
/** Deployment model format. */
|
|
715
|
-
format?: string;
|
|
716
|
-
/** Deployment model name. */
|
|
717
|
-
name?: string;
|
|
718
|
-
/** Deployment model version. */
|
|
719
|
-
version?: string;
|
|
720
|
-
}
|
|
721
|
-
|
|
722
750
|
/** Properties of Cognitive Services account deployment model. */
|
|
723
751
|
export interface DeploymentScaleSettings {
|
|
724
752
|
/** Deployment scale type. */
|
|
725
753
|
scaleType?: DeploymentScaleType;
|
|
726
754
|
/** Deployment capacity. */
|
|
727
755
|
capacity?: number;
|
|
756
|
+
/**
|
|
757
|
+
* Deployment active capacity. This value might be different from `capacity` if customer recently updated `capacity`.
|
|
758
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
759
|
+
*/
|
|
760
|
+
readonly activeCapacity?: number;
|
|
728
761
|
}
|
|
729
762
|
|
|
730
763
|
/** The list of cognitive services accounts operation response. */
|
|
@@ -798,6 +831,23 @@ export type PrivateLinkResource = Resource & {
|
|
|
798
831
|
/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
|
|
799
832
|
export type ProxyResource = Resource & {};
|
|
800
833
|
|
|
834
|
+
/** Cognitive Services account Model. */
|
|
835
|
+
export type AccountModel = DeploymentModel & {
|
|
836
|
+
/** Base Model Identifier. */
|
|
837
|
+
baseModel?: DeploymentModel;
|
|
838
|
+
/** The max capacity. */
|
|
839
|
+
maxCapacity?: number;
|
|
840
|
+
/** The capabilities. */
|
|
841
|
+
capabilities?: { [propertyName: string]: string };
|
|
842
|
+
/** Cognitive Services account ModelDeprecationInfo. */
|
|
843
|
+
deprecation?: ModelDeprecationInfo;
|
|
844
|
+
/**
|
|
845
|
+
* Metadata pertaining to creation and last modification of the resource.
|
|
846
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
847
|
+
*/
|
|
848
|
+
readonly systemData?: SystemData;
|
|
849
|
+
};
|
|
850
|
+
|
|
801
851
|
/** The Private Endpoint Connection resource. */
|
|
802
852
|
export type PrivateEndpointConnection = AzureEntityResource & {
|
|
803
853
|
/** Resource properties. */
|
|
@@ -1263,6 +1313,13 @@ export interface AccountsListUsagesOptionalParams
|
|
|
1263
1313
|
/** Contains response data for the listUsages operation. */
|
|
1264
1314
|
export type AccountsListUsagesResponse = UsageListResult;
|
|
1265
1315
|
|
|
1316
|
+
/** Optional parameters. */
|
|
1317
|
+
export interface AccountsListModelsOptionalParams
|
|
1318
|
+
extends coreClient.OperationOptions {}
|
|
1319
|
+
|
|
1320
|
+
/** Contains response data for the listModels operation. */
|
|
1321
|
+
export type AccountsListModelsResponse = AccountModelListResult;
|
|
1322
|
+
|
|
1266
1323
|
/** Optional parameters. */
|
|
1267
1324
|
export interface AccountsListByResourceGroupNextOptionalParams
|
|
1268
1325
|
extends coreClient.OperationOptions {}
|
|
@@ -1277,6 +1334,13 @@ export interface AccountsListNextOptionalParams
|
|
|
1277
1334
|
/** Contains response data for the listNext operation. */
|
|
1278
1335
|
export type AccountsListNextResponse = AccountListResult;
|
|
1279
1336
|
|
|
1337
|
+
/** Optional parameters. */
|
|
1338
|
+
export interface AccountsListModelsNextOptionalParams
|
|
1339
|
+
extends coreClient.OperationOptions {}
|
|
1340
|
+
|
|
1341
|
+
/** Contains response data for the listModelsNext operation. */
|
|
1342
|
+
export type AccountsListModelsNextResponse = AccountModelListResult;
|
|
1343
|
+
|
|
1280
1344
|
/** Optional parameters. */
|
|
1281
1345
|
export interface DeletedAccountsGetOptionalParams
|
|
1282
1346
|
extends coreClient.OperationOptions {}
|
package/src/models/mappers.ts
CHANGED
|
@@ -291,6 +291,12 @@ export const AccountProperties: coreClient.CompositeMapper = {
|
|
|
291
291
|
className: "CallRateLimit"
|
|
292
292
|
}
|
|
293
293
|
},
|
|
294
|
+
dynamicThrottlingEnabled: {
|
|
295
|
+
serializedName: "dynamicThrottlingEnabled",
|
|
296
|
+
type: {
|
|
297
|
+
name: "Boolean"
|
|
298
|
+
}
|
|
299
|
+
},
|
|
294
300
|
quotaLimit: {
|
|
295
301
|
serializedName: "quotaLimit",
|
|
296
302
|
type: {
|
|
@@ -334,6 +340,20 @@ export const AccountProperties: coreClient.CompositeMapper = {
|
|
|
334
340
|
type: {
|
|
335
341
|
name: "Boolean"
|
|
336
342
|
}
|
|
343
|
+
},
|
|
344
|
+
deletionDate: {
|
|
345
|
+
serializedName: "deletionDate",
|
|
346
|
+
readOnly: true,
|
|
347
|
+
type: {
|
|
348
|
+
name: "String"
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
scheduledPurgeDate: {
|
|
352
|
+
serializedName: "scheduledPurgeDate",
|
|
353
|
+
readOnly: true,
|
|
354
|
+
type: {
|
|
355
|
+
name: "String"
|
|
356
|
+
}
|
|
337
357
|
}
|
|
338
358
|
}
|
|
339
359
|
}
|
|
@@ -1347,6 +1367,81 @@ export const MetricName: coreClient.CompositeMapper = {
|
|
|
1347
1367
|
}
|
|
1348
1368
|
};
|
|
1349
1369
|
|
|
1370
|
+
export const AccountModelListResult: coreClient.CompositeMapper = {
|
|
1371
|
+
type: {
|
|
1372
|
+
name: "Composite",
|
|
1373
|
+
className: "AccountModelListResult",
|
|
1374
|
+
modelProperties: {
|
|
1375
|
+
nextLink: {
|
|
1376
|
+
serializedName: "nextLink",
|
|
1377
|
+
type: {
|
|
1378
|
+
name: "String"
|
|
1379
|
+
}
|
|
1380
|
+
},
|
|
1381
|
+
value: {
|
|
1382
|
+
serializedName: "value",
|
|
1383
|
+
type: {
|
|
1384
|
+
name: "Sequence",
|
|
1385
|
+
element: {
|
|
1386
|
+
type: {
|
|
1387
|
+
name: "Composite",
|
|
1388
|
+
className: "AccountModel"
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
};
|
|
1396
|
+
|
|
1397
|
+
export const DeploymentModel: coreClient.CompositeMapper = {
|
|
1398
|
+
type: {
|
|
1399
|
+
name: "Composite",
|
|
1400
|
+
className: "DeploymentModel",
|
|
1401
|
+
modelProperties: {
|
|
1402
|
+
format: {
|
|
1403
|
+
serializedName: "format",
|
|
1404
|
+
type: {
|
|
1405
|
+
name: "String"
|
|
1406
|
+
}
|
|
1407
|
+
},
|
|
1408
|
+
name: {
|
|
1409
|
+
serializedName: "name",
|
|
1410
|
+
type: {
|
|
1411
|
+
name: "String"
|
|
1412
|
+
}
|
|
1413
|
+
},
|
|
1414
|
+
version: {
|
|
1415
|
+
serializedName: "version",
|
|
1416
|
+
type: {
|
|
1417
|
+
name: "String"
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
}
|
|
1422
|
+
};
|
|
1423
|
+
|
|
1424
|
+
export const ModelDeprecationInfo: coreClient.CompositeMapper = {
|
|
1425
|
+
type: {
|
|
1426
|
+
name: "Composite",
|
|
1427
|
+
className: "ModelDeprecationInfo",
|
|
1428
|
+
modelProperties: {
|
|
1429
|
+
fineTune: {
|
|
1430
|
+
serializedName: "fineTune",
|
|
1431
|
+
type: {
|
|
1432
|
+
name: "String"
|
|
1433
|
+
}
|
|
1434
|
+
},
|
|
1435
|
+
inference: {
|
|
1436
|
+
serializedName: "inference",
|
|
1437
|
+
type: {
|
|
1438
|
+
name: "String"
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
};
|
|
1444
|
+
|
|
1350
1445
|
export const OperationListResult: coreClient.CompositeMapper = {
|
|
1351
1446
|
type: {
|
|
1352
1447
|
name: "Composite",
|
|
@@ -1481,7 +1576,7 @@ export const CheckSkuAvailabilityParameter: coreClient.CompositeMapper = {
|
|
|
1481
1576
|
name: "String"
|
|
1482
1577
|
}
|
|
1483
1578
|
},
|
|
1484
|
-
|
|
1579
|
+
typeParam: {
|
|
1485
1580
|
serializedName: "type",
|
|
1486
1581
|
required: true,
|
|
1487
1582
|
type: {
|
|
@@ -1699,7 +1794,7 @@ export const CheckDomainAvailabilityParameter: coreClient.CompositeMapper = {
|
|
|
1699
1794
|
name: "String"
|
|
1700
1795
|
}
|
|
1701
1796
|
},
|
|
1702
|
-
|
|
1797
|
+
typeParam: {
|
|
1703
1798
|
serializedName: "type",
|
|
1704
1799
|
required: true,
|
|
1705
1800
|
type: {
|
|
@@ -1901,33 +1996,6 @@ export const DeploymentProperties: coreClient.CompositeMapper = {
|
|
|
1901
1996
|
}
|
|
1902
1997
|
};
|
|
1903
1998
|
|
|
1904
|
-
export const DeploymentModel: coreClient.CompositeMapper = {
|
|
1905
|
-
type: {
|
|
1906
|
-
name: "Composite",
|
|
1907
|
-
className: "DeploymentModel",
|
|
1908
|
-
modelProperties: {
|
|
1909
|
-
format: {
|
|
1910
|
-
serializedName: "format",
|
|
1911
|
-
type: {
|
|
1912
|
-
name: "String"
|
|
1913
|
-
}
|
|
1914
|
-
},
|
|
1915
|
-
name: {
|
|
1916
|
-
serializedName: "name",
|
|
1917
|
-
type: {
|
|
1918
|
-
name: "String"
|
|
1919
|
-
}
|
|
1920
|
-
},
|
|
1921
|
-
version: {
|
|
1922
|
-
serializedName: "version",
|
|
1923
|
-
type: {
|
|
1924
|
-
name: "String"
|
|
1925
|
-
}
|
|
1926
|
-
}
|
|
1927
|
-
}
|
|
1928
|
-
}
|
|
1929
|
-
};
|
|
1930
|
-
|
|
1931
1999
|
export const DeploymentScaleSettings: coreClient.CompositeMapper = {
|
|
1932
2000
|
type: {
|
|
1933
2001
|
name: "Composite",
|
|
@@ -1944,6 +2012,13 @@ export const DeploymentScaleSettings: coreClient.CompositeMapper = {
|
|
|
1944
2012
|
type: {
|
|
1945
2013
|
name: "Number"
|
|
1946
2014
|
}
|
|
2015
|
+
},
|
|
2016
|
+
activeCapacity: {
|
|
2017
|
+
serializedName: "activeCapacity",
|
|
2018
|
+
readOnly: true,
|
|
2019
|
+
type: {
|
|
2020
|
+
name: "Number"
|
|
2021
|
+
}
|
|
1947
2022
|
}
|
|
1948
2023
|
}
|
|
1949
2024
|
}
|
|
@@ -2111,6 +2186,50 @@ export const ProxyResource: coreClient.CompositeMapper = {
|
|
|
2111
2186
|
}
|
|
2112
2187
|
};
|
|
2113
2188
|
|
|
2189
|
+
export const AccountModel: coreClient.CompositeMapper = {
|
|
2190
|
+
type: {
|
|
2191
|
+
name: "Composite",
|
|
2192
|
+
className: "AccountModel",
|
|
2193
|
+
modelProperties: {
|
|
2194
|
+
...DeploymentModel.type.modelProperties,
|
|
2195
|
+
baseModel: {
|
|
2196
|
+
serializedName: "baseModel",
|
|
2197
|
+
type: {
|
|
2198
|
+
name: "Composite",
|
|
2199
|
+
className: "DeploymentModel"
|
|
2200
|
+
}
|
|
2201
|
+
},
|
|
2202
|
+
maxCapacity: {
|
|
2203
|
+
serializedName: "maxCapacity",
|
|
2204
|
+
type: {
|
|
2205
|
+
name: "Number"
|
|
2206
|
+
}
|
|
2207
|
+
},
|
|
2208
|
+
capabilities: {
|
|
2209
|
+
serializedName: "capabilities",
|
|
2210
|
+
type: {
|
|
2211
|
+
name: "Dictionary",
|
|
2212
|
+
value: { type: { name: "String" } }
|
|
2213
|
+
}
|
|
2214
|
+
},
|
|
2215
|
+
deprecation: {
|
|
2216
|
+
serializedName: "deprecation",
|
|
2217
|
+
type: {
|
|
2218
|
+
name: "Composite",
|
|
2219
|
+
className: "ModelDeprecationInfo"
|
|
2220
|
+
}
|
|
2221
|
+
},
|
|
2222
|
+
systemData: {
|
|
2223
|
+
serializedName: "systemData",
|
|
2224
|
+
type: {
|
|
2225
|
+
name: "Composite",
|
|
2226
|
+
className: "SystemData"
|
|
2227
|
+
}
|
|
2228
|
+
}
|
|
2229
|
+
}
|
|
2230
|
+
}
|
|
2231
|
+
};
|
|
2232
|
+
|
|
2114
2233
|
export const PrivateEndpointConnection: coreClient.CompositeMapper = {
|
|
2115
2234
|
type: {
|
|
2116
2235
|
name: "Composite",
|
package/src/models/parameters.ts
CHANGED
|
@@ -96,7 +96,7 @@ export const accountName: OperationURLParameter = {
|
|
|
96
96
|
export const apiVersion: OperationQueryParameter = {
|
|
97
97
|
parameterPath: "apiVersion",
|
|
98
98
|
mapper: {
|
|
99
|
-
defaultValue: "
|
|
99
|
+
defaultValue: "2022-03-01",
|
|
100
100
|
isConstant: true,
|
|
101
101
|
serializedName: "api-version",
|
|
102
102
|
type: {
|
|
@@ -20,6 +20,9 @@ import {
|
|
|
20
20
|
AccountsListByResourceGroupOptionalParams,
|
|
21
21
|
AccountsListNextOptionalParams,
|
|
22
22
|
AccountsListOptionalParams,
|
|
23
|
+
AccountModel,
|
|
24
|
+
AccountsListModelsNextOptionalParams,
|
|
25
|
+
AccountsListModelsOptionalParams,
|
|
23
26
|
AccountsCreateOptionalParams,
|
|
24
27
|
AccountsCreateResponse,
|
|
25
28
|
AccountsUpdateOptionalParams,
|
|
@@ -38,8 +41,10 @@ import {
|
|
|
38
41
|
AccountsListSkusResponse,
|
|
39
42
|
AccountsListUsagesOptionalParams,
|
|
40
43
|
AccountsListUsagesResponse,
|
|
44
|
+
AccountsListModelsResponse,
|
|
41
45
|
AccountsListByResourceGroupNextResponse,
|
|
42
|
-
AccountsListNextResponse
|
|
46
|
+
AccountsListNextResponse,
|
|
47
|
+
AccountsListModelsNextResponse
|
|
43
48
|
} from "../models";
|
|
44
49
|
|
|
45
50
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -150,6 +155,77 @@ export class AccountsImpl implements Accounts {
|
|
|
150
155
|
}
|
|
151
156
|
}
|
|
152
157
|
|
|
158
|
+
/**
|
|
159
|
+
* List available Models for the requested Cognitive Services account
|
|
160
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
161
|
+
* @param accountName The name of Cognitive Services account.
|
|
162
|
+
* @param options The options parameters.
|
|
163
|
+
*/
|
|
164
|
+
public listModels(
|
|
165
|
+
resourceGroupName: string,
|
|
166
|
+
accountName: string,
|
|
167
|
+
options?: AccountsListModelsOptionalParams
|
|
168
|
+
): PagedAsyncIterableIterator<AccountModel> {
|
|
169
|
+
const iter = this.listModelsPagingAll(
|
|
170
|
+
resourceGroupName,
|
|
171
|
+
accountName,
|
|
172
|
+
options
|
|
173
|
+
);
|
|
174
|
+
return {
|
|
175
|
+
next() {
|
|
176
|
+
return iter.next();
|
|
177
|
+
},
|
|
178
|
+
[Symbol.asyncIterator]() {
|
|
179
|
+
return this;
|
|
180
|
+
},
|
|
181
|
+
byPage: () => {
|
|
182
|
+
return this.listModelsPagingPage(
|
|
183
|
+
resourceGroupName,
|
|
184
|
+
accountName,
|
|
185
|
+
options
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
private async *listModelsPagingPage(
|
|
192
|
+
resourceGroupName: string,
|
|
193
|
+
accountName: string,
|
|
194
|
+
options?: AccountsListModelsOptionalParams
|
|
195
|
+
): AsyncIterableIterator<AccountModel[]> {
|
|
196
|
+
let result = await this._listModels(
|
|
197
|
+
resourceGroupName,
|
|
198
|
+
accountName,
|
|
199
|
+
options
|
|
200
|
+
);
|
|
201
|
+
yield result.value || [];
|
|
202
|
+
let continuationToken = result.nextLink;
|
|
203
|
+
while (continuationToken) {
|
|
204
|
+
result = await this._listModelsNext(
|
|
205
|
+
resourceGroupName,
|
|
206
|
+
accountName,
|
|
207
|
+
continuationToken,
|
|
208
|
+
options
|
|
209
|
+
);
|
|
210
|
+
continuationToken = result.nextLink;
|
|
211
|
+
yield result.value || [];
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
private async *listModelsPagingAll(
|
|
216
|
+
resourceGroupName: string,
|
|
217
|
+
accountName: string,
|
|
218
|
+
options?: AccountsListModelsOptionalParams
|
|
219
|
+
): AsyncIterableIterator<AccountModel> {
|
|
220
|
+
for await (const page of this.listModelsPagingPage(
|
|
221
|
+
resourceGroupName,
|
|
222
|
+
accountName,
|
|
223
|
+
options
|
|
224
|
+
)) {
|
|
225
|
+
yield* page;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
153
229
|
/**
|
|
154
230
|
* Create Cognitive Services Account. Accounts is a resource group wide resource type. It holds the
|
|
155
231
|
* keys for developer to access intelligent APIs. It's also the resource type for billing.
|
|
@@ -213,10 +289,12 @@ export class AccountsImpl implements Accounts {
|
|
|
213
289
|
{ resourceGroupName, accountName, account, options },
|
|
214
290
|
createOperationSpec
|
|
215
291
|
);
|
|
216
|
-
|
|
292
|
+
const poller = new LroEngine(lro, {
|
|
217
293
|
resumeFrom: options?.resumeFrom,
|
|
218
294
|
intervalInMs: options?.updateIntervalInMs
|
|
219
295
|
});
|
|
296
|
+
await poller.poll();
|
|
297
|
+
return poller;
|
|
220
298
|
}
|
|
221
299
|
|
|
222
300
|
/**
|
|
@@ -304,10 +382,12 @@ export class AccountsImpl implements Accounts {
|
|
|
304
382
|
{ resourceGroupName, accountName, account, options },
|
|
305
383
|
updateOperationSpec
|
|
306
384
|
);
|
|
307
|
-
|
|
385
|
+
const poller = new LroEngine(lro, {
|
|
308
386
|
resumeFrom: options?.resumeFrom,
|
|
309
387
|
intervalInMs: options?.updateIntervalInMs
|
|
310
388
|
});
|
|
389
|
+
await poller.poll();
|
|
390
|
+
return poller;
|
|
311
391
|
}
|
|
312
392
|
|
|
313
393
|
/**
|
|
@@ -387,10 +467,12 @@ export class AccountsImpl implements Accounts {
|
|
|
387
467
|
{ resourceGroupName, accountName, options },
|
|
388
468
|
deleteOperationSpec
|
|
389
469
|
);
|
|
390
|
-
|
|
470
|
+
const poller = new LroEngine(lro, {
|
|
391
471
|
resumeFrom: options?.resumeFrom,
|
|
392
472
|
intervalInMs: options?.updateIntervalInMs
|
|
393
473
|
});
|
|
474
|
+
await poller.poll();
|
|
475
|
+
return poller;
|
|
394
476
|
}
|
|
395
477
|
|
|
396
478
|
/**
|
|
@@ -524,6 +606,23 @@ export class AccountsImpl implements Accounts {
|
|
|
524
606
|
);
|
|
525
607
|
}
|
|
526
608
|
|
|
609
|
+
/**
|
|
610
|
+
* List available Models for the requested Cognitive Services account
|
|
611
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
612
|
+
* @param accountName The name of Cognitive Services account.
|
|
613
|
+
* @param options The options parameters.
|
|
614
|
+
*/
|
|
615
|
+
private _listModels(
|
|
616
|
+
resourceGroupName: string,
|
|
617
|
+
accountName: string,
|
|
618
|
+
options?: AccountsListModelsOptionalParams
|
|
619
|
+
): Promise<AccountsListModelsResponse> {
|
|
620
|
+
return this.client.sendOperationRequest(
|
|
621
|
+
{ resourceGroupName, accountName, options },
|
|
622
|
+
listModelsOperationSpec
|
|
623
|
+
);
|
|
624
|
+
}
|
|
625
|
+
|
|
527
626
|
/**
|
|
528
627
|
* ListByResourceGroupNext
|
|
529
628
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -555,6 +654,25 @@ export class AccountsImpl implements Accounts {
|
|
|
555
654
|
listNextOperationSpec
|
|
556
655
|
);
|
|
557
656
|
}
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* ListModelsNext
|
|
660
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
661
|
+
* @param accountName The name of Cognitive Services account.
|
|
662
|
+
* @param nextLink The nextLink from the previous successful call to the ListModels method.
|
|
663
|
+
* @param options The options parameters.
|
|
664
|
+
*/
|
|
665
|
+
private _listModelsNext(
|
|
666
|
+
resourceGroupName: string,
|
|
667
|
+
accountName: string,
|
|
668
|
+
nextLink: string,
|
|
669
|
+
options?: AccountsListModelsNextOptionalParams
|
|
670
|
+
): Promise<AccountsListModelsNextResponse> {
|
|
671
|
+
return this.client.sendOperationRequest(
|
|
672
|
+
{ resourceGroupName, accountName, nextLink, options },
|
|
673
|
+
listModelsNextOperationSpec
|
|
674
|
+
);
|
|
675
|
+
}
|
|
558
676
|
}
|
|
559
677
|
// Operation Specifications
|
|
560
678
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
@@ -801,6 +919,28 @@ const listUsagesOperationSpec: coreClient.OperationSpec = {
|
|
|
801
919
|
headerParameters: [Parameters.accept],
|
|
802
920
|
serializer
|
|
803
921
|
};
|
|
922
|
+
const listModelsOperationSpec: coreClient.OperationSpec = {
|
|
923
|
+
path:
|
|
924
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/models",
|
|
925
|
+
httpMethod: "GET",
|
|
926
|
+
responses: {
|
|
927
|
+
200: {
|
|
928
|
+
bodyMapper: Mappers.AccountModelListResult
|
|
929
|
+
},
|
|
930
|
+
default: {
|
|
931
|
+
bodyMapper: Mappers.ErrorResponse
|
|
932
|
+
}
|
|
933
|
+
},
|
|
934
|
+
queryParameters: [Parameters.apiVersion],
|
|
935
|
+
urlParameters: [
|
|
936
|
+
Parameters.$host,
|
|
937
|
+
Parameters.resourceGroupName,
|
|
938
|
+
Parameters.accountName,
|
|
939
|
+
Parameters.subscriptionId
|
|
940
|
+
],
|
|
941
|
+
headerParameters: [Parameters.accept],
|
|
942
|
+
serializer
|
|
943
|
+
};
|
|
804
944
|
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
805
945
|
path: "{nextLink}",
|
|
806
946
|
httpMethod: "GET",
|
|
@@ -842,3 +982,25 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
842
982
|
headerParameters: [Parameters.accept],
|
|
843
983
|
serializer
|
|
844
984
|
};
|
|
985
|
+
const listModelsNextOperationSpec: coreClient.OperationSpec = {
|
|
986
|
+
path: "{nextLink}",
|
|
987
|
+
httpMethod: "GET",
|
|
988
|
+
responses: {
|
|
989
|
+
200: {
|
|
990
|
+
bodyMapper: Mappers.AccountModelListResult
|
|
991
|
+
},
|
|
992
|
+
default: {
|
|
993
|
+
bodyMapper: Mappers.ErrorResponse
|
|
994
|
+
}
|
|
995
|
+
},
|
|
996
|
+
queryParameters: [Parameters.apiVersion],
|
|
997
|
+
urlParameters: [
|
|
998
|
+
Parameters.$host,
|
|
999
|
+
Parameters.resourceGroupName,
|
|
1000
|
+
Parameters.accountName,
|
|
1001
|
+
Parameters.subscriptionId,
|
|
1002
|
+
Parameters.nextLink
|
|
1003
|
+
],
|
|
1004
|
+
headerParameters: [Parameters.accept],
|
|
1005
|
+
serializer
|
|
1006
|
+
};
|
|
@@ -222,10 +222,12 @@ export class CommitmentPlansImpl implements CommitmentPlans {
|
|
|
222
222
|
{ resourceGroupName, accountName, commitmentPlanName, options },
|
|
223
223
|
deleteOperationSpec
|
|
224
224
|
);
|
|
225
|
-
|
|
225
|
+
const poller = new LroEngine(lro, {
|
|
226
226
|
resumeFrom: options?.resumeFrom,
|
|
227
227
|
intervalInMs: options?.updateIntervalInMs
|
|
228
228
|
});
|
|
229
|
+
await poller.poll();
|
|
230
|
+
return poller;
|
|
229
231
|
}
|
|
230
232
|
|
|
231
233
|
/**
|
|
@@ -156,10 +156,12 @@ export class DeletedAccountsImpl implements DeletedAccounts {
|
|
|
156
156
|
{ location, resourceGroupName, accountName, options },
|
|
157
157
|
purgeOperationSpec
|
|
158
158
|
);
|
|
159
|
-
|
|
159
|
+
const poller = new LroEngine(lro, {
|
|
160
160
|
resumeFrom: options?.resumeFrom,
|
|
161
161
|
intervalInMs: options?.updateIntervalInMs
|
|
162
162
|
});
|
|
163
|
+
await poller.poll();
|
|
164
|
+
return poller;
|
|
163
165
|
}
|
|
164
166
|
|
|
165
167
|
/**
|