@azure/arm-webservices 1.1.1-alpha.20250210.1 → 1.1.1-alpha.20250211.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/README.md +30 -15
- package/{dist-esm/src → dist/browser}/azureMLWebServicesManagementClient.d.ts +2 -2
- package/dist/browser/azureMLWebServicesManagementClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/azureMLWebServicesManagementClient.js +15 -18
- package/dist/browser/azureMLWebServicesManagementClient.js.map +1 -0
- package/dist/browser/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/lroImpl.js +25 -0
- package/dist/browser/lroImpl.js.map +1 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
- package/dist/browser/models/parameters.js.map +1 -0
- package/dist/browser/operations/index.d.ts +3 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/operations/index.js +2 -2
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
- package/dist/browser/operations/operations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.js +2 -2
- package/dist/browser/operations/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/webServices.d.ts +3 -3
- package/dist/browser/operations/webServices.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/webServices.js +133 -149
- package/dist/browser/operations/webServices.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +3 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.js +2 -2
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/webServices.d.ts +1 -1
- package/dist/browser/operationsInterfaces/webServices.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/webServices.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/azureMLWebServicesManagementClient.d.ts +21 -0
- package/dist/commonjs/azureMLWebServicesManagementClient.d.ts.map +1 -0
- package/dist/commonjs/azureMLWebServicesManagementClient.js +103 -0
- package/dist/commonjs/azureMLWebServicesManagementClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/lroImpl.d.ts +16 -0
- package/dist/commonjs/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/lroImpl.js +29 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/{types/arm-webservices.d.ts → dist/commonjs/models/index.d.ts} +751 -971
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +131 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +40 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +1136 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +15 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +133 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +3 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +13 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/operations.d.ts +26 -0
- package/dist/commonjs/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/operations/operations.js +97 -0
- package/dist/commonjs/operations/operations.js.map +1 -0
- package/dist/commonjs/operations/webServices.d.ts +146 -0
- package/dist/commonjs/operations/webServices.d.ts.map +1 -0
- package/dist/commonjs/operations/webServices.js +614 -0
- package/dist/commonjs/operations/webServices.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +3 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +13 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.js +10 -0
- package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/webServices.d.ts +110 -0
- package/dist/commonjs/operationsInterfaces/webServices.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/webServices.js +10 -0
- package/dist/commonjs/operationsInterfaces/webServices.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +36 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/dist/esm/azureMLWebServicesManagementClient.d.ts +21 -0
- package/dist/esm/azureMLWebServicesManagementClient.d.ts.map +1 -0
- package/dist/esm/azureMLWebServicesManagementClient.js +98 -0
- package/dist/esm/azureMLWebServicesManagementClient.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +5 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lroImpl.d.ts +16 -0
- package/dist/esm/lroImpl.d.ts.map +1 -0
- package/dist/esm/lroImpl.js +25 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/models/index.d.ts +751 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +128 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +40 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +1133 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +15 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +130 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/index.d.ts +3 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +10 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/operations.d.ts +26 -0
- package/dist/esm/operations/operations.d.ts.map +1 -0
- package/dist/esm/operations/operations.js +93 -0
- package/dist/esm/operations/operations.js.map +1 -0
- package/dist/esm/operations/webServices.d.ts +146 -0
- package/dist/esm/operations/webServices.d.ts.map +1 -0
- package/dist/esm/operations/webServices.js +610 -0
- package/dist/esm/operations/webServices.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +3 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +10 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
- package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
- package/{src/operations/index.ts → dist/esm/operationsInterfaces/operations.js} +2 -3
- package/dist/esm/operationsInterfaces/operations.js.map +1 -0
- package/dist/esm/operationsInterfaces/webServices.d.ts +110 -0
- package/dist/esm/operationsInterfaces/webServices.d.ts.map +1 -0
- package/{src/operationsInterfaces/index.ts → dist/esm/operationsInterfaces/webServices.js} +2 -3
- package/dist/esm/operationsInterfaces/webServices.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +32 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/react-native/azureMLWebServicesManagementClient.d.ts +21 -0
- package/dist/react-native/azureMLWebServicesManagementClient.d.ts.map +1 -0
- package/dist/react-native/azureMLWebServicesManagementClient.js +98 -0
- package/dist/react-native/azureMLWebServicesManagementClient.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/lroImpl.d.ts +16 -0
- package/dist/react-native/lroImpl.d.ts.map +1 -0
- package/dist/react-native/lroImpl.js +25 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/models/index.d.ts +751 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +128 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +40 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +1133 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +15 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +130 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +3 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +10 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/operations.d.ts +26 -0
- package/dist/react-native/operations/operations.d.ts.map +1 -0
- package/dist/react-native/operations/operations.js +93 -0
- package/dist/react-native/operations/operations.js.map +1 -0
- package/dist/react-native/operations/webServices.d.ts +146 -0
- package/dist/react-native/operations/webServices.d.ts.map +1 -0
- package/dist/react-native/operations/webServices.js +610 -0
- package/dist/react-native/operations/webServices.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +10 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.js +9 -0
- package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/webServices.d.ts +110 -0
- package/dist/react-native/operationsInterfaces/webServices.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/webServices.js +9 -0
- package/dist/react-native/operationsInterfaces/webServices.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +32 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/package.json +70 -41
- package/dist/index.js +0 -2326
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/samples-dev/webServicesCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/webServicesCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/webServicesCreateOrUpdateSample.js +0 -138
- package/dist-esm/samples-dev/webServicesCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/webServicesCreateRegionalPropertiesSample.d.ts +0 -2
- package/dist-esm/samples-dev/webServicesCreateRegionalPropertiesSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/webServicesCreateRegionalPropertiesSample.js +0 -30
- package/dist-esm/samples-dev/webServicesCreateRegionalPropertiesSample.js.map +0 -1
- package/dist-esm/samples-dev/webServicesGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/webServicesGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/webServicesGetSample.js +0 -29
- package/dist-esm/samples-dev/webServicesGetSample.js.map +0 -1
- package/dist-esm/samples-dev/webServicesListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/webServicesListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/webServicesListByResourceGroupSample.js +0 -44
- package/dist-esm/samples-dev/webServicesListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/webServicesListBySubscriptionIdSample.d.ts +0 -2
- package/dist-esm/samples-dev/webServicesListBySubscriptionIdSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/webServicesListBySubscriptionIdSample.js +0 -43
- package/dist-esm/samples-dev/webServicesListBySubscriptionIdSample.js.map +0 -1
- package/dist-esm/samples-dev/webServicesListKeysSample.d.ts +0 -2
- package/dist-esm/samples-dev/webServicesListKeysSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/webServicesListKeysSample.js +0 -29
- package/dist-esm/samples-dev/webServicesListKeysSample.js.map +0 -1
- package/dist-esm/samples-dev/webServicesPatchSample.d.ts +0 -2
- package/dist-esm/samples-dev/webServicesPatchSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/webServicesPatchSample.js +0 -30
- package/dist-esm/samples-dev/webServicesPatchSample.js.map +0 -1
- package/dist-esm/samples-dev/webServicesRemoveSample.d.ts +0 -2
- package/dist-esm/samples-dev/webServicesRemoveSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/webServicesRemoveSample.js +0 -29
- package/dist-esm/samples-dev/webServicesRemoveSample.js.map +0 -1
- package/dist-esm/src/azureMLWebServicesManagementClient.d.ts.map +0 -1
- package/dist-esm/src/azureMLWebServicesManagementClient.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -5
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/lroImpl.js +0 -29
- package/dist-esm/src/lroImpl.js.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -3
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/operations.d.ts.map +0 -1
- package/dist-esm/src/operations/operations.js.map +0 -1
- package/dist-esm/src/operations/webServices.d.ts.map +0 -1
- package/dist-esm/src/operations/webServices.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -3
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/webServices.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/webServices.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -42
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/src/azureMLWebServicesManagementClient.ts +0 -142
- package/src/lroImpl.ts +0 -34
- package/src/models/index.ts +0 -813
- package/src/models/mappers.ts +0 -1179
- package/src/models/parameters.ts +0 -151
- package/src/operations/operations.ts +0 -100
- package/src/operations/webServices.ts +0 -855
- package/src/operationsInterfaces/operations.ts +0 -22
- package/src/operationsInterfaces/webServices.ts +0 -201
- package/src/pagingHelper.ts +0 -39
- package/tsconfig.json +0 -35
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/webServices.js +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
- /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
|
@@ -1,855 +0,0 @@
|
|
|
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, PageSettings } from "@azure/core-paging";
|
|
10
|
-
import { setContinuationToken } from "../pagingHelper";
|
|
11
|
-
import { WebServices } from "../operationsInterfaces";
|
|
12
|
-
import * as coreClient from "@azure/core-client";
|
|
13
|
-
import * as Mappers from "../models/mappers";
|
|
14
|
-
import * as Parameters from "../models/parameters";
|
|
15
|
-
import { AzureMLWebServicesManagementClient } from "../azureMLWebServicesManagementClient";
|
|
16
|
-
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
17
|
-
import { LroImpl } from "../lroImpl";
|
|
18
|
-
import {
|
|
19
|
-
WebService,
|
|
20
|
-
WebServicesListByResourceGroupNextOptionalParams,
|
|
21
|
-
WebServicesListByResourceGroupOptionalParams,
|
|
22
|
-
WebServicesListByResourceGroupResponse,
|
|
23
|
-
WebServicesListBySubscriptionIdNextOptionalParams,
|
|
24
|
-
WebServicesListBySubscriptionIdOptionalParams,
|
|
25
|
-
WebServicesListBySubscriptionIdResponse,
|
|
26
|
-
WebServicesCreateOrUpdateOptionalParams,
|
|
27
|
-
WebServicesCreateOrUpdateResponse,
|
|
28
|
-
WebServicesGetOptionalParams,
|
|
29
|
-
WebServicesGetResponse,
|
|
30
|
-
PatchedWebService,
|
|
31
|
-
WebServicesPatchOptionalParams,
|
|
32
|
-
WebServicesPatchResponse,
|
|
33
|
-
WebServicesRemoveOptionalParams,
|
|
34
|
-
WebServicesCreateRegionalPropertiesOptionalParams,
|
|
35
|
-
WebServicesCreateRegionalPropertiesResponse,
|
|
36
|
-
WebServicesListKeysOptionalParams,
|
|
37
|
-
WebServicesListKeysResponse,
|
|
38
|
-
WebServicesListByResourceGroupNextResponse,
|
|
39
|
-
WebServicesListBySubscriptionIdNextResponse
|
|
40
|
-
} from "../models";
|
|
41
|
-
|
|
42
|
-
/// <reference lib="esnext.asynciterable" />
|
|
43
|
-
/** Class containing WebServices operations. */
|
|
44
|
-
export class WebServicesImpl implements WebServices {
|
|
45
|
-
private readonly client: AzureMLWebServicesManagementClient;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Initialize a new instance of the class WebServices class.
|
|
49
|
-
* @param client Reference to the service client
|
|
50
|
-
*/
|
|
51
|
-
constructor(client: AzureMLWebServicesManagementClient) {
|
|
52
|
-
this.client = client;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Gets the web services in the specified resource group.
|
|
57
|
-
* @param resourceGroupName Name of the resource group in which the web service is located.
|
|
58
|
-
* @param options The options parameters.
|
|
59
|
-
*/
|
|
60
|
-
public listByResourceGroup(
|
|
61
|
-
resourceGroupName: string,
|
|
62
|
-
options?: WebServicesListByResourceGroupOptionalParams
|
|
63
|
-
): PagedAsyncIterableIterator<WebService> {
|
|
64
|
-
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
65
|
-
return {
|
|
66
|
-
next() {
|
|
67
|
-
return iter.next();
|
|
68
|
-
},
|
|
69
|
-
[Symbol.asyncIterator]() {
|
|
70
|
-
return this;
|
|
71
|
-
},
|
|
72
|
-
byPage: (settings?: PageSettings) => {
|
|
73
|
-
if (settings?.maxPageSize) {
|
|
74
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
75
|
-
}
|
|
76
|
-
return this.listByResourceGroupPagingPage(
|
|
77
|
-
resourceGroupName,
|
|
78
|
-
options,
|
|
79
|
-
settings
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private async *listByResourceGroupPagingPage(
|
|
86
|
-
resourceGroupName: string,
|
|
87
|
-
options?: WebServicesListByResourceGroupOptionalParams,
|
|
88
|
-
settings?: PageSettings
|
|
89
|
-
): AsyncIterableIterator<WebService[]> {
|
|
90
|
-
let result: WebServicesListByResourceGroupResponse;
|
|
91
|
-
let continuationToken = settings?.continuationToken;
|
|
92
|
-
if (!continuationToken) {
|
|
93
|
-
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
94
|
-
let page = result.value || [];
|
|
95
|
-
continuationToken = result.nextLink;
|
|
96
|
-
setContinuationToken(page, continuationToken);
|
|
97
|
-
yield page;
|
|
98
|
-
}
|
|
99
|
-
while (continuationToken) {
|
|
100
|
-
result = await this._listByResourceGroupNext(
|
|
101
|
-
resourceGroupName,
|
|
102
|
-
continuationToken,
|
|
103
|
-
options
|
|
104
|
-
);
|
|
105
|
-
continuationToken = result.nextLink;
|
|
106
|
-
let page = result.value || [];
|
|
107
|
-
setContinuationToken(page, continuationToken);
|
|
108
|
-
yield page;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
private async *listByResourceGroupPagingAll(
|
|
113
|
-
resourceGroupName: string,
|
|
114
|
-
options?: WebServicesListByResourceGroupOptionalParams
|
|
115
|
-
): AsyncIterableIterator<WebService> {
|
|
116
|
-
for await (const page of this.listByResourceGroupPagingPage(
|
|
117
|
-
resourceGroupName,
|
|
118
|
-
options
|
|
119
|
-
)) {
|
|
120
|
-
yield* page;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Gets the web services in the specified subscription.
|
|
126
|
-
* @param options The options parameters.
|
|
127
|
-
*/
|
|
128
|
-
public listBySubscriptionId(
|
|
129
|
-
options?: WebServicesListBySubscriptionIdOptionalParams
|
|
130
|
-
): PagedAsyncIterableIterator<WebService> {
|
|
131
|
-
const iter = this.listBySubscriptionIdPagingAll(options);
|
|
132
|
-
return {
|
|
133
|
-
next() {
|
|
134
|
-
return iter.next();
|
|
135
|
-
},
|
|
136
|
-
[Symbol.asyncIterator]() {
|
|
137
|
-
return this;
|
|
138
|
-
},
|
|
139
|
-
byPage: (settings?: PageSettings) => {
|
|
140
|
-
if (settings?.maxPageSize) {
|
|
141
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
142
|
-
}
|
|
143
|
-
return this.listBySubscriptionIdPagingPage(options, settings);
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
private async *listBySubscriptionIdPagingPage(
|
|
149
|
-
options?: WebServicesListBySubscriptionIdOptionalParams,
|
|
150
|
-
settings?: PageSettings
|
|
151
|
-
): AsyncIterableIterator<WebService[]> {
|
|
152
|
-
let result: WebServicesListBySubscriptionIdResponse;
|
|
153
|
-
let continuationToken = settings?.continuationToken;
|
|
154
|
-
if (!continuationToken) {
|
|
155
|
-
result = await this._listBySubscriptionId(options);
|
|
156
|
-
let page = result.value || [];
|
|
157
|
-
continuationToken = result.nextLink;
|
|
158
|
-
setContinuationToken(page, continuationToken);
|
|
159
|
-
yield page;
|
|
160
|
-
}
|
|
161
|
-
while (continuationToken) {
|
|
162
|
-
result = await this._listBySubscriptionIdNext(continuationToken, options);
|
|
163
|
-
continuationToken = result.nextLink;
|
|
164
|
-
let page = result.value || [];
|
|
165
|
-
setContinuationToken(page, continuationToken);
|
|
166
|
-
yield page;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
private async *listBySubscriptionIdPagingAll(
|
|
171
|
-
options?: WebServicesListBySubscriptionIdOptionalParams
|
|
172
|
-
): AsyncIterableIterator<WebService> {
|
|
173
|
-
for await (const page of this.listBySubscriptionIdPagingPage(options)) {
|
|
174
|
-
yield* page;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* Create or update a web service. This call will overwrite an existing web service. Note that there is
|
|
180
|
-
* no warning or confirmation. This is a nonrecoverable operation. If your intent is to create a new
|
|
181
|
-
* web service, call the Get operation first to verify that it does not exist.
|
|
182
|
-
* @param resourceGroupName Name of the resource group in which the web service is located.
|
|
183
|
-
* @param webServiceName The name of the web service.
|
|
184
|
-
* @param createOrUpdatePayload The payload that is used to create or update the web service.
|
|
185
|
-
* @param options The options parameters.
|
|
186
|
-
*/
|
|
187
|
-
async beginCreateOrUpdate(
|
|
188
|
-
resourceGroupName: string,
|
|
189
|
-
webServiceName: string,
|
|
190
|
-
createOrUpdatePayload: WebService,
|
|
191
|
-
options?: WebServicesCreateOrUpdateOptionalParams
|
|
192
|
-
): Promise<
|
|
193
|
-
PollerLike<
|
|
194
|
-
PollOperationState<WebServicesCreateOrUpdateResponse>,
|
|
195
|
-
WebServicesCreateOrUpdateResponse
|
|
196
|
-
>
|
|
197
|
-
> {
|
|
198
|
-
const directSendOperation = async (
|
|
199
|
-
args: coreClient.OperationArguments,
|
|
200
|
-
spec: coreClient.OperationSpec
|
|
201
|
-
): Promise<WebServicesCreateOrUpdateResponse> => {
|
|
202
|
-
return this.client.sendOperationRequest(args, spec);
|
|
203
|
-
};
|
|
204
|
-
const sendOperation = async (
|
|
205
|
-
args: coreClient.OperationArguments,
|
|
206
|
-
spec: coreClient.OperationSpec
|
|
207
|
-
) => {
|
|
208
|
-
let currentRawResponse:
|
|
209
|
-
| coreClient.FullOperationResponse
|
|
210
|
-
| undefined = undefined;
|
|
211
|
-
const providedCallback = args.options?.onResponse;
|
|
212
|
-
const callback: coreClient.RawResponseCallback = (
|
|
213
|
-
rawResponse: coreClient.FullOperationResponse,
|
|
214
|
-
flatResponse: unknown
|
|
215
|
-
) => {
|
|
216
|
-
currentRawResponse = rawResponse;
|
|
217
|
-
providedCallback?.(rawResponse, flatResponse);
|
|
218
|
-
};
|
|
219
|
-
const updatedArgs = {
|
|
220
|
-
...args,
|
|
221
|
-
options: {
|
|
222
|
-
...args.options,
|
|
223
|
-
onResponse: callback
|
|
224
|
-
}
|
|
225
|
-
};
|
|
226
|
-
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
227
|
-
return {
|
|
228
|
-
flatResponse,
|
|
229
|
-
rawResponse: {
|
|
230
|
-
statusCode: currentRawResponse!.status,
|
|
231
|
-
body: currentRawResponse!.parsedBody,
|
|
232
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
233
|
-
}
|
|
234
|
-
};
|
|
235
|
-
};
|
|
236
|
-
|
|
237
|
-
const lro = new LroImpl(
|
|
238
|
-
sendOperation,
|
|
239
|
-
{ resourceGroupName, webServiceName, createOrUpdatePayload, options },
|
|
240
|
-
createOrUpdateOperationSpec
|
|
241
|
-
);
|
|
242
|
-
const poller = new LroEngine(lro, {
|
|
243
|
-
resumeFrom: options?.resumeFrom,
|
|
244
|
-
intervalInMs: options?.updateIntervalInMs
|
|
245
|
-
});
|
|
246
|
-
await poller.poll();
|
|
247
|
-
return poller;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* Create or update a web service. This call will overwrite an existing web service. Note that there is
|
|
252
|
-
* no warning or confirmation. This is a nonrecoverable operation. If your intent is to create a new
|
|
253
|
-
* web service, call the Get operation first to verify that it does not exist.
|
|
254
|
-
* @param resourceGroupName Name of the resource group in which the web service is located.
|
|
255
|
-
* @param webServiceName The name of the web service.
|
|
256
|
-
* @param createOrUpdatePayload The payload that is used to create or update the web service.
|
|
257
|
-
* @param options The options parameters.
|
|
258
|
-
*/
|
|
259
|
-
async beginCreateOrUpdateAndWait(
|
|
260
|
-
resourceGroupName: string,
|
|
261
|
-
webServiceName: string,
|
|
262
|
-
createOrUpdatePayload: WebService,
|
|
263
|
-
options?: WebServicesCreateOrUpdateOptionalParams
|
|
264
|
-
): Promise<WebServicesCreateOrUpdateResponse> {
|
|
265
|
-
const poller = await this.beginCreateOrUpdate(
|
|
266
|
-
resourceGroupName,
|
|
267
|
-
webServiceName,
|
|
268
|
-
createOrUpdatePayload,
|
|
269
|
-
options
|
|
270
|
-
);
|
|
271
|
-
return poller.pollUntilDone();
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* Gets the Web Service Definition as specified by a subscription, resource group, and name. Note that
|
|
276
|
-
* the storage credentials and web service keys are not returned by this call. To get the web service
|
|
277
|
-
* access keys, call List Keys.
|
|
278
|
-
* @param resourceGroupName Name of the resource group in which the web service is located.
|
|
279
|
-
* @param webServiceName The name of the web service.
|
|
280
|
-
* @param options The options parameters.
|
|
281
|
-
*/
|
|
282
|
-
get(
|
|
283
|
-
resourceGroupName: string,
|
|
284
|
-
webServiceName: string,
|
|
285
|
-
options?: WebServicesGetOptionalParams
|
|
286
|
-
): Promise<WebServicesGetResponse> {
|
|
287
|
-
return this.client.sendOperationRequest(
|
|
288
|
-
{ resourceGroupName, webServiceName, options },
|
|
289
|
-
getOperationSpec
|
|
290
|
-
);
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
/**
|
|
294
|
-
* Modifies an existing web service resource. The PATCH API call is an asynchronous operation. To
|
|
295
|
-
* determine whether it has completed successfully, you must perform a Get operation.
|
|
296
|
-
* @param resourceGroupName Name of the resource group in which the web service is located.
|
|
297
|
-
* @param webServiceName The name of the web service.
|
|
298
|
-
* @param patchPayload The payload to use to patch the web service.
|
|
299
|
-
* @param options The options parameters.
|
|
300
|
-
*/
|
|
301
|
-
async beginPatch(
|
|
302
|
-
resourceGroupName: string,
|
|
303
|
-
webServiceName: string,
|
|
304
|
-
patchPayload: PatchedWebService,
|
|
305
|
-
options?: WebServicesPatchOptionalParams
|
|
306
|
-
): Promise<
|
|
307
|
-
PollerLike<
|
|
308
|
-
PollOperationState<WebServicesPatchResponse>,
|
|
309
|
-
WebServicesPatchResponse
|
|
310
|
-
>
|
|
311
|
-
> {
|
|
312
|
-
const directSendOperation = async (
|
|
313
|
-
args: coreClient.OperationArguments,
|
|
314
|
-
spec: coreClient.OperationSpec
|
|
315
|
-
): Promise<WebServicesPatchResponse> => {
|
|
316
|
-
return this.client.sendOperationRequest(args, spec);
|
|
317
|
-
};
|
|
318
|
-
const sendOperation = async (
|
|
319
|
-
args: coreClient.OperationArguments,
|
|
320
|
-
spec: coreClient.OperationSpec
|
|
321
|
-
) => {
|
|
322
|
-
let currentRawResponse:
|
|
323
|
-
| coreClient.FullOperationResponse
|
|
324
|
-
| undefined = undefined;
|
|
325
|
-
const providedCallback = args.options?.onResponse;
|
|
326
|
-
const callback: coreClient.RawResponseCallback = (
|
|
327
|
-
rawResponse: coreClient.FullOperationResponse,
|
|
328
|
-
flatResponse: unknown
|
|
329
|
-
) => {
|
|
330
|
-
currentRawResponse = rawResponse;
|
|
331
|
-
providedCallback?.(rawResponse, flatResponse);
|
|
332
|
-
};
|
|
333
|
-
const updatedArgs = {
|
|
334
|
-
...args,
|
|
335
|
-
options: {
|
|
336
|
-
...args.options,
|
|
337
|
-
onResponse: callback
|
|
338
|
-
}
|
|
339
|
-
};
|
|
340
|
-
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
341
|
-
return {
|
|
342
|
-
flatResponse,
|
|
343
|
-
rawResponse: {
|
|
344
|
-
statusCode: currentRawResponse!.status,
|
|
345
|
-
body: currentRawResponse!.parsedBody,
|
|
346
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
347
|
-
}
|
|
348
|
-
};
|
|
349
|
-
};
|
|
350
|
-
|
|
351
|
-
const lro = new LroImpl(
|
|
352
|
-
sendOperation,
|
|
353
|
-
{ resourceGroupName, webServiceName, patchPayload, options },
|
|
354
|
-
patchOperationSpec
|
|
355
|
-
);
|
|
356
|
-
const poller = new LroEngine(lro, {
|
|
357
|
-
resumeFrom: options?.resumeFrom,
|
|
358
|
-
intervalInMs: options?.updateIntervalInMs
|
|
359
|
-
});
|
|
360
|
-
await poller.poll();
|
|
361
|
-
return poller;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
/**
|
|
365
|
-
* Modifies an existing web service resource. The PATCH API call is an asynchronous operation. To
|
|
366
|
-
* determine whether it has completed successfully, you must perform a Get operation.
|
|
367
|
-
* @param resourceGroupName Name of the resource group in which the web service is located.
|
|
368
|
-
* @param webServiceName The name of the web service.
|
|
369
|
-
* @param patchPayload The payload to use to patch the web service.
|
|
370
|
-
* @param options The options parameters.
|
|
371
|
-
*/
|
|
372
|
-
async beginPatchAndWait(
|
|
373
|
-
resourceGroupName: string,
|
|
374
|
-
webServiceName: string,
|
|
375
|
-
patchPayload: PatchedWebService,
|
|
376
|
-
options?: WebServicesPatchOptionalParams
|
|
377
|
-
): Promise<WebServicesPatchResponse> {
|
|
378
|
-
const poller = await this.beginPatch(
|
|
379
|
-
resourceGroupName,
|
|
380
|
-
webServiceName,
|
|
381
|
-
patchPayload,
|
|
382
|
-
options
|
|
383
|
-
);
|
|
384
|
-
return poller.pollUntilDone();
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
/**
|
|
388
|
-
* Deletes the specified web service.
|
|
389
|
-
* @param resourceGroupName Name of the resource group in which the web service is located.
|
|
390
|
-
* @param webServiceName The name of the web service.
|
|
391
|
-
* @param options The options parameters.
|
|
392
|
-
*/
|
|
393
|
-
async beginRemove(
|
|
394
|
-
resourceGroupName: string,
|
|
395
|
-
webServiceName: string,
|
|
396
|
-
options?: WebServicesRemoveOptionalParams
|
|
397
|
-
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
398
|
-
const directSendOperation = async (
|
|
399
|
-
args: coreClient.OperationArguments,
|
|
400
|
-
spec: coreClient.OperationSpec
|
|
401
|
-
): Promise<void> => {
|
|
402
|
-
return this.client.sendOperationRequest(args, spec);
|
|
403
|
-
};
|
|
404
|
-
const sendOperation = async (
|
|
405
|
-
args: coreClient.OperationArguments,
|
|
406
|
-
spec: coreClient.OperationSpec
|
|
407
|
-
) => {
|
|
408
|
-
let currentRawResponse:
|
|
409
|
-
| coreClient.FullOperationResponse
|
|
410
|
-
| undefined = undefined;
|
|
411
|
-
const providedCallback = args.options?.onResponse;
|
|
412
|
-
const callback: coreClient.RawResponseCallback = (
|
|
413
|
-
rawResponse: coreClient.FullOperationResponse,
|
|
414
|
-
flatResponse: unknown
|
|
415
|
-
) => {
|
|
416
|
-
currentRawResponse = rawResponse;
|
|
417
|
-
providedCallback?.(rawResponse, flatResponse);
|
|
418
|
-
};
|
|
419
|
-
const updatedArgs = {
|
|
420
|
-
...args,
|
|
421
|
-
options: {
|
|
422
|
-
...args.options,
|
|
423
|
-
onResponse: callback
|
|
424
|
-
}
|
|
425
|
-
};
|
|
426
|
-
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
427
|
-
return {
|
|
428
|
-
flatResponse,
|
|
429
|
-
rawResponse: {
|
|
430
|
-
statusCode: currentRawResponse!.status,
|
|
431
|
-
body: currentRawResponse!.parsedBody,
|
|
432
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
433
|
-
}
|
|
434
|
-
};
|
|
435
|
-
};
|
|
436
|
-
|
|
437
|
-
const lro = new LroImpl(
|
|
438
|
-
sendOperation,
|
|
439
|
-
{ resourceGroupName, webServiceName, options },
|
|
440
|
-
removeOperationSpec
|
|
441
|
-
);
|
|
442
|
-
const poller = new LroEngine(lro, {
|
|
443
|
-
resumeFrom: options?.resumeFrom,
|
|
444
|
-
intervalInMs: options?.updateIntervalInMs
|
|
445
|
-
});
|
|
446
|
-
await poller.poll();
|
|
447
|
-
return poller;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
/**
|
|
451
|
-
* Deletes the specified web service.
|
|
452
|
-
* @param resourceGroupName Name of the resource group in which the web service is located.
|
|
453
|
-
* @param webServiceName The name of the web service.
|
|
454
|
-
* @param options The options parameters.
|
|
455
|
-
*/
|
|
456
|
-
async beginRemoveAndWait(
|
|
457
|
-
resourceGroupName: string,
|
|
458
|
-
webServiceName: string,
|
|
459
|
-
options?: WebServicesRemoveOptionalParams
|
|
460
|
-
): Promise<void> {
|
|
461
|
-
const poller = await this.beginRemove(
|
|
462
|
-
resourceGroupName,
|
|
463
|
-
webServiceName,
|
|
464
|
-
options
|
|
465
|
-
);
|
|
466
|
-
return poller.pollUntilDone();
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
/**
|
|
470
|
-
* Creates an encrypted credentials parameter blob for the specified region. To get the web service
|
|
471
|
-
* from a region other than the region in which it has been created, you must first call Create
|
|
472
|
-
* Regional Web Services Properties to create a copy of the encrypted credential parameter blob in that
|
|
473
|
-
* region. You only need to do this before the first time that you get the web service in the new
|
|
474
|
-
* region.
|
|
475
|
-
* @param resourceGroupName Name of the resource group in which the web service is located.
|
|
476
|
-
* @param webServiceName The name of the web service.
|
|
477
|
-
* @param region The region for which encrypted credential parameters are created.
|
|
478
|
-
* @param options The options parameters.
|
|
479
|
-
*/
|
|
480
|
-
async beginCreateRegionalProperties(
|
|
481
|
-
resourceGroupName: string,
|
|
482
|
-
webServiceName: string,
|
|
483
|
-
region: string,
|
|
484
|
-
options?: WebServicesCreateRegionalPropertiesOptionalParams
|
|
485
|
-
): Promise<
|
|
486
|
-
PollerLike<
|
|
487
|
-
PollOperationState<WebServicesCreateRegionalPropertiesResponse>,
|
|
488
|
-
WebServicesCreateRegionalPropertiesResponse
|
|
489
|
-
>
|
|
490
|
-
> {
|
|
491
|
-
const directSendOperation = async (
|
|
492
|
-
args: coreClient.OperationArguments,
|
|
493
|
-
spec: coreClient.OperationSpec
|
|
494
|
-
): Promise<WebServicesCreateRegionalPropertiesResponse> => {
|
|
495
|
-
return this.client.sendOperationRequest(args, spec);
|
|
496
|
-
};
|
|
497
|
-
const sendOperation = async (
|
|
498
|
-
args: coreClient.OperationArguments,
|
|
499
|
-
spec: coreClient.OperationSpec
|
|
500
|
-
) => {
|
|
501
|
-
let currentRawResponse:
|
|
502
|
-
| coreClient.FullOperationResponse
|
|
503
|
-
| undefined = undefined;
|
|
504
|
-
const providedCallback = args.options?.onResponse;
|
|
505
|
-
const callback: coreClient.RawResponseCallback = (
|
|
506
|
-
rawResponse: coreClient.FullOperationResponse,
|
|
507
|
-
flatResponse: unknown
|
|
508
|
-
) => {
|
|
509
|
-
currentRawResponse = rawResponse;
|
|
510
|
-
providedCallback?.(rawResponse, flatResponse);
|
|
511
|
-
};
|
|
512
|
-
const updatedArgs = {
|
|
513
|
-
...args,
|
|
514
|
-
options: {
|
|
515
|
-
...args.options,
|
|
516
|
-
onResponse: callback
|
|
517
|
-
}
|
|
518
|
-
};
|
|
519
|
-
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
520
|
-
return {
|
|
521
|
-
flatResponse,
|
|
522
|
-
rawResponse: {
|
|
523
|
-
statusCode: currentRawResponse!.status,
|
|
524
|
-
body: currentRawResponse!.parsedBody,
|
|
525
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
526
|
-
}
|
|
527
|
-
};
|
|
528
|
-
};
|
|
529
|
-
|
|
530
|
-
const lro = new LroImpl(
|
|
531
|
-
sendOperation,
|
|
532
|
-
{ resourceGroupName, webServiceName, region, options },
|
|
533
|
-
createRegionalPropertiesOperationSpec
|
|
534
|
-
);
|
|
535
|
-
const poller = new LroEngine(lro, {
|
|
536
|
-
resumeFrom: options?.resumeFrom,
|
|
537
|
-
intervalInMs: options?.updateIntervalInMs
|
|
538
|
-
});
|
|
539
|
-
await poller.poll();
|
|
540
|
-
return poller;
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
/**
|
|
544
|
-
* Creates an encrypted credentials parameter blob for the specified region. To get the web service
|
|
545
|
-
* from a region other than the region in which it has been created, you must first call Create
|
|
546
|
-
* Regional Web Services Properties to create a copy of the encrypted credential parameter blob in that
|
|
547
|
-
* region. You only need to do this before the first time that you get the web service in the new
|
|
548
|
-
* region.
|
|
549
|
-
* @param resourceGroupName Name of the resource group in which the web service is located.
|
|
550
|
-
* @param webServiceName The name of the web service.
|
|
551
|
-
* @param region The region for which encrypted credential parameters are created.
|
|
552
|
-
* @param options The options parameters.
|
|
553
|
-
*/
|
|
554
|
-
async beginCreateRegionalPropertiesAndWait(
|
|
555
|
-
resourceGroupName: string,
|
|
556
|
-
webServiceName: string,
|
|
557
|
-
region: string,
|
|
558
|
-
options?: WebServicesCreateRegionalPropertiesOptionalParams
|
|
559
|
-
): Promise<WebServicesCreateRegionalPropertiesResponse> {
|
|
560
|
-
const poller = await this.beginCreateRegionalProperties(
|
|
561
|
-
resourceGroupName,
|
|
562
|
-
webServiceName,
|
|
563
|
-
region,
|
|
564
|
-
options
|
|
565
|
-
);
|
|
566
|
-
return poller.pollUntilDone();
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
/**
|
|
570
|
-
* Gets the access keys for the specified web service.
|
|
571
|
-
* @param resourceGroupName Name of the resource group in which the web service is located.
|
|
572
|
-
* @param webServiceName The name of the web service.
|
|
573
|
-
* @param options The options parameters.
|
|
574
|
-
*/
|
|
575
|
-
listKeys(
|
|
576
|
-
resourceGroupName: string,
|
|
577
|
-
webServiceName: string,
|
|
578
|
-
options?: WebServicesListKeysOptionalParams
|
|
579
|
-
): Promise<WebServicesListKeysResponse> {
|
|
580
|
-
return this.client.sendOperationRequest(
|
|
581
|
-
{ resourceGroupName, webServiceName, options },
|
|
582
|
-
listKeysOperationSpec
|
|
583
|
-
);
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
/**
|
|
587
|
-
* Gets the web services in the specified resource group.
|
|
588
|
-
* @param resourceGroupName Name of the resource group in which the web service is located.
|
|
589
|
-
* @param options The options parameters.
|
|
590
|
-
*/
|
|
591
|
-
private _listByResourceGroup(
|
|
592
|
-
resourceGroupName: string,
|
|
593
|
-
options?: WebServicesListByResourceGroupOptionalParams
|
|
594
|
-
): Promise<WebServicesListByResourceGroupResponse> {
|
|
595
|
-
return this.client.sendOperationRequest(
|
|
596
|
-
{ resourceGroupName, options },
|
|
597
|
-
listByResourceGroupOperationSpec
|
|
598
|
-
);
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
/**
|
|
602
|
-
* Gets the web services in the specified subscription.
|
|
603
|
-
* @param options The options parameters.
|
|
604
|
-
*/
|
|
605
|
-
private _listBySubscriptionId(
|
|
606
|
-
options?: WebServicesListBySubscriptionIdOptionalParams
|
|
607
|
-
): Promise<WebServicesListBySubscriptionIdResponse> {
|
|
608
|
-
return this.client.sendOperationRequest(
|
|
609
|
-
{ options },
|
|
610
|
-
listBySubscriptionIdOperationSpec
|
|
611
|
-
);
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
/**
|
|
615
|
-
* ListByResourceGroupNext
|
|
616
|
-
* @param resourceGroupName Name of the resource group in which the web service is located.
|
|
617
|
-
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
618
|
-
* @param options The options parameters.
|
|
619
|
-
*/
|
|
620
|
-
private _listByResourceGroupNext(
|
|
621
|
-
resourceGroupName: string,
|
|
622
|
-
nextLink: string,
|
|
623
|
-
options?: WebServicesListByResourceGroupNextOptionalParams
|
|
624
|
-
): Promise<WebServicesListByResourceGroupNextResponse> {
|
|
625
|
-
return this.client.sendOperationRequest(
|
|
626
|
-
{ resourceGroupName, nextLink, options },
|
|
627
|
-
listByResourceGroupNextOperationSpec
|
|
628
|
-
);
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
/**
|
|
632
|
-
* ListBySubscriptionIdNext
|
|
633
|
-
* @param nextLink The nextLink from the previous successful call to the ListBySubscriptionId method.
|
|
634
|
-
* @param options The options parameters.
|
|
635
|
-
*/
|
|
636
|
-
private _listBySubscriptionIdNext(
|
|
637
|
-
nextLink: string,
|
|
638
|
-
options?: WebServicesListBySubscriptionIdNextOptionalParams
|
|
639
|
-
): Promise<WebServicesListBySubscriptionIdNextResponse> {
|
|
640
|
-
return this.client.sendOperationRequest(
|
|
641
|
-
{ nextLink, options },
|
|
642
|
-
listBySubscriptionIdNextOperationSpec
|
|
643
|
-
);
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
// Operation Specifications
|
|
647
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
648
|
-
|
|
649
|
-
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
650
|
-
path:
|
|
651
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/webServices/{webServiceName}",
|
|
652
|
-
httpMethod: "PUT",
|
|
653
|
-
responses: {
|
|
654
|
-
200: {
|
|
655
|
-
bodyMapper: Mappers.WebService
|
|
656
|
-
},
|
|
657
|
-
201: {
|
|
658
|
-
bodyMapper: Mappers.WebService
|
|
659
|
-
},
|
|
660
|
-
202: {
|
|
661
|
-
bodyMapper: Mappers.WebService
|
|
662
|
-
},
|
|
663
|
-
204: {
|
|
664
|
-
bodyMapper: Mappers.WebService
|
|
665
|
-
}
|
|
666
|
-
},
|
|
667
|
-
requestBody: Parameters.createOrUpdatePayload,
|
|
668
|
-
queryParameters: [Parameters.apiVersion],
|
|
669
|
-
urlParameters: [
|
|
670
|
-
Parameters.$host,
|
|
671
|
-
Parameters.resourceGroupName,
|
|
672
|
-
Parameters.webServiceName,
|
|
673
|
-
Parameters.subscriptionId
|
|
674
|
-
],
|
|
675
|
-
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
676
|
-
mediaType: "json",
|
|
677
|
-
serializer
|
|
678
|
-
};
|
|
679
|
-
const getOperationSpec: coreClient.OperationSpec = {
|
|
680
|
-
path:
|
|
681
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/webServices/{webServiceName}",
|
|
682
|
-
httpMethod: "GET",
|
|
683
|
-
responses: {
|
|
684
|
-
200: {
|
|
685
|
-
bodyMapper: Mappers.WebService
|
|
686
|
-
}
|
|
687
|
-
},
|
|
688
|
-
queryParameters: [Parameters.apiVersion, Parameters.region],
|
|
689
|
-
urlParameters: [
|
|
690
|
-
Parameters.$host,
|
|
691
|
-
Parameters.resourceGroupName,
|
|
692
|
-
Parameters.webServiceName,
|
|
693
|
-
Parameters.subscriptionId
|
|
694
|
-
],
|
|
695
|
-
headerParameters: [Parameters.accept],
|
|
696
|
-
serializer
|
|
697
|
-
};
|
|
698
|
-
const patchOperationSpec: coreClient.OperationSpec = {
|
|
699
|
-
path:
|
|
700
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/webServices/{webServiceName}",
|
|
701
|
-
httpMethod: "PATCH",
|
|
702
|
-
responses: {
|
|
703
|
-
200: {
|
|
704
|
-
bodyMapper: Mappers.WebService
|
|
705
|
-
},
|
|
706
|
-
201: {
|
|
707
|
-
bodyMapper: Mappers.WebService
|
|
708
|
-
},
|
|
709
|
-
202: {
|
|
710
|
-
bodyMapper: Mappers.WebService
|
|
711
|
-
},
|
|
712
|
-
204: {
|
|
713
|
-
bodyMapper: Mappers.WebService
|
|
714
|
-
}
|
|
715
|
-
},
|
|
716
|
-
requestBody: Parameters.patchPayload,
|
|
717
|
-
queryParameters: [Parameters.apiVersion],
|
|
718
|
-
urlParameters: [
|
|
719
|
-
Parameters.$host,
|
|
720
|
-
Parameters.resourceGroupName,
|
|
721
|
-
Parameters.webServiceName,
|
|
722
|
-
Parameters.subscriptionId
|
|
723
|
-
],
|
|
724
|
-
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
725
|
-
mediaType: "json",
|
|
726
|
-
serializer
|
|
727
|
-
};
|
|
728
|
-
const removeOperationSpec: coreClient.OperationSpec = {
|
|
729
|
-
path:
|
|
730
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/webServices/{webServiceName}",
|
|
731
|
-
httpMethod: "DELETE",
|
|
732
|
-
responses: { 200: {}, 201: {}, 202: {}, 204: {} },
|
|
733
|
-
queryParameters: [Parameters.apiVersion],
|
|
734
|
-
urlParameters: [
|
|
735
|
-
Parameters.$host,
|
|
736
|
-
Parameters.resourceGroupName,
|
|
737
|
-
Parameters.webServiceName,
|
|
738
|
-
Parameters.subscriptionId
|
|
739
|
-
],
|
|
740
|
-
serializer
|
|
741
|
-
};
|
|
742
|
-
const createRegionalPropertiesOperationSpec: coreClient.OperationSpec = {
|
|
743
|
-
path:
|
|
744
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/webServices/{webServiceName}/CreateRegionalBlob",
|
|
745
|
-
httpMethod: "POST",
|
|
746
|
-
responses: {
|
|
747
|
-
200: {
|
|
748
|
-
bodyMapper: Mappers.AsyncOperationStatus
|
|
749
|
-
},
|
|
750
|
-
201: {
|
|
751
|
-
bodyMapper: Mappers.AsyncOperationStatus
|
|
752
|
-
},
|
|
753
|
-
202: {
|
|
754
|
-
bodyMapper: Mappers.AsyncOperationStatus
|
|
755
|
-
},
|
|
756
|
-
204: {
|
|
757
|
-
bodyMapper: Mappers.AsyncOperationStatus
|
|
758
|
-
}
|
|
759
|
-
},
|
|
760
|
-
queryParameters: [Parameters.apiVersion, Parameters.region1],
|
|
761
|
-
urlParameters: [
|
|
762
|
-
Parameters.$host,
|
|
763
|
-
Parameters.resourceGroupName,
|
|
764
|
-
Parameters.webServiceName,
|
|
765
|
-
Parameters.subscriptionId
|
|
766
|
-
],
|
|
767
|
-
headerParameters: [Parameters.accept],
|
|
768
|
-
serializer
|
|
769
|
-
};
|
|
770
|
-
const listKeysOperationSpec: coreClient.OperationSpec = {
|
|
771
|
-
path:
|
|
772
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/webServices/{webServiceName}/listKeys",
|
|
773
|
-
httpMethod: "GET",
|
|
774
|
-
responses: {
|
|
775
|
-
200: {
|
|
776
|
-
bodyMapper: Mappers.WebServiceKeys
|
|
777
|
-
}
|
|
778
|
-
},
|
|
779
|
-
queryParameters: [Parameters.apiVersion],
|
|
780
|
-
urlParameters: [
|
|
781
|
-
Parameters.$host,
|
|
782
|
-
Parameters.resourceGroupName,
|
|
783
|
-
Parameters.webServiceName,
|
|
784
|
-
Parameters.subscriptionId
|
|
785
|
-
],
|
|
786
|
-
headerParameters: [Parameters.accept],
|
|
787
|
-
serializer
|
|
788
|
-
};
|
|
789
|
-
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
790
|
-
path:
|
|
791
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/webServices",
|
|
792
|
-
httpMethod: "GET",
|
|
793
|
-
responses: {
|
|
794
|
-
200: {
|
|
795
|
-
bodyMapper: Mappers.PaginatedWebServicesList
|
|
796
|
-
}
|
|
797
|
-
},
|
|
798
|
-
queryParameters: [Parameters.apiVersion, Parameters.skiptoken],
|
|
799
|
-
urlParameters: [
|
|
800
|
-
Parameters.$host,
|
|
801
|
-
Parameters.resourceGroupName,
|
|
802
|
-
Parameters.subscriptionId
|
|
803
|
-
],
|
|
804
|
-
headerParameters: [Parameters.accept],
|
|
805
|
-
serializer
|
|
806
|
-
};
|
|
807
|
-
const listBySubscriptionIdOperationSpec: coreClient.OperationSpec = {
|
|
808
|
-
path:
|
|
809
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/webServices",
|
|
810
|
-
httpMethod: "GET",
|
|
811
|
-
responses: {
|
|
812
|
-
200: {
|
|
813
|
-
bodyMapper: Mappers.PaginatedWebServicesList
|
|
814
|
-
}
|
|
815
|
-
},
|
|
816
|
-
queryParameters: [Parameters.apiVersion, Parameters.skiptoken],
|
|
817
|
-
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
818
|
-
headerParameters: [Parameters.accept],
|
|
819
|
-
serializer
|
|
820
|
-
};
|
|
821
|
-
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
822
|
-
path: "{nextLink}",
|
|
823
|
-
httpMethod: "GET",
|
|
824
|
-
responses: {
|
|
825
|
-
200: {
|
|
826
|
-
bodyMapper: Mappers.PaginatedWebServicesList
|
|
827
|
-
}
|
|
828
|
-
},
|
|
829
|
-
queryParameters: [Parameters.apiVersion, Parameters.skiptoken],
|
|
830
|
-
urlParameters: [
|
|
831
|
-
Parameters.$host,
|
|
832
|
-
Parameters.resourceGroupName,
|
|
833
|
-
Parameters.subscriptionId,
|
|
834
|
-
Parameters.nextLink
|
|
835
|
-
],
|
|
836
|
-
headerParameters: [Parameters.accept],
|
|
837
|
-
serializer
|
|
838
|
-
};
|
|
839
|
-
const listBySubscriptionIdNextOperationSpec: coreClient.OperationSpec = {
|
|
840
|
-
path: "{nextLink}",
|
|
841
|
-
httpMethod: "GET",
|
|
842
|
-
responses: {
|
|
843
|
-
200: {
|
|
844
|
-
bodyMapper: Mappers.PaginatedWebServicesList
|
|
845
|
-
}
|
|
846
|
-
},
|
|
847
|
-
queryParameters: [Parameters.apiVersion, Parameters.skiptoken],
|
|
848
|
-
urlParameters: [
|
|
849
|
-
Parameters.$host,
|
|
850
|
-
Parameters.subscriptionId,
|
|
851
|
-
Parameters.nextLink
|
|
852
|
-
],
|
|
853
|
-
headerParameters: [Parameters.accept],
|
|
854
|
-
serializer
|
|
855
|
-
};
|