@azure/arm-appservice 13.0.3-alpha.20221101.1 → 13.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -8
- package/dist/index.js +3061 -1189
- 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/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/operations/appServiceCertificateOrders.d.ts.map +1 -1
- package/dist-esm/src/operations/appServiceCertificateOrders.js +55 -21
- package/dist-esm/src/operations/appServiceCertificateOrders.js.map +1 -1
- package/dist-esm/src/operations/appServiceEnvironments.d.ts.map +1 -1
- package/dist-esm/src/operations/appServiceEnvironments.js +400 -157
- package/dist-esm/src/operations/appServiceEnvironments.js.map +1 -1
- package/dist-esm/src/operations/appServicePlans.d.ts.map +1 -1
- package/dist-esm/src/operations/appServicePlans.js +109 -42
- package/dist-esm/src/operations/appServicePlans.js.map +1 -1
- package/dist-esm/src/operations/certificateOrdersDiagnostics.d.ts.map +1 -1
- package/dist-esm/src/operations/certificateOrdersDiagnostics.js +19 -7
- package/dist-esm/src/operations/certificateOrdersDiagnostics.js.map +1 -1
- package/dist-esm/src/operations/certificateRegistrationProvider.d.ts.map +1 -1
- package/dist-esm/src/operations/certificateRegistrationProvider.js +19 -7
- package/dist-esm/src/operations/certificateRegistrationProvider.js.map +1 -1
- package/dist-esm/src/operations/certificates.d.ts.map +1 -1
- package/dist-esm/src/operations/certificates.js +37 -14
- package/dist-esm/src/operations/certificates.js.map +1 -1
- package/dist-esm/src/operations/containerApps.d.ts.map +1 -1
- package/dist-esm/src/operations/containerApps.js +37 -14
- package/dist-esm/src/operations/containerApps.js.map +1 -1
- package/dist-esm/src/operations/containerAppsRevisions.d.ts.map +1 -1
- package/dist-esm/src/operations/containerAppsRevisions.js +19 -7
- package/dist-esm/src/operations/containerAppsRevisions.js.map +1 -1
- package/dist-esm/src/operations/deletedWebApps.d.ts.map +1 -1
- package/dist-esm/src/operations/deletedWebApps.js +37 -14
- package/dist-esm/src/operations/deletedWebApps.js.map +1 -1
- package/dist-esm/src/operations/diagnostics.d.ts.map +1 -1
- package/dist-esm/src/operations/diagnostics.js +163 -63
- package/dist-esm/src/operations/diagnostics.js.map +1 -1
- package/dist-esm/src/operations/domainRegistrationProvider.d.ts.map +1 -1
- package/dist-esm/src/operations/domainRegistrationProvider.js +19 -7
- package/dist-esm/src/operations/domainRegistrationProvider.js.map +1 -1
- package/dist-esm/src/operations/domains.d.ts.map +1 -1
- package/dist-esm/src/operations/domains.js +73 -28
- package/dist-esm/src/operations/domains.js.map +1 -1
- package/dist-esm/src/operations/kubeEnvironments.d.ts.map +1 -1
- package/dist-esm/src/operations/kubeEnvironments.js +37 -14
- package/dist-esm/src/operations/kubeEnvironments.js.map +1 -1
- package/dist-esm/src/operations/provider.d.ts.map +1 -1
- package/dist-esm/src/operations/provider.js +127 -49
- package/dist-esm/src/operations/provider.js.map +1 -1
- package/dist-esm/src/operations/recommendations.d.ts.map +1 -1
- package/dist-esm/src/operations/recommendations.js +91 -35
- package/dist-esm/src/operations/recommendations.js.map +1 -1
- package/dist-esm/src/operations/resourceHealthMetadataOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/resourceHealthMetadataOperations.js +73 -28
- package/dist-esm/src/operations/resourceHealthMetadataOperations.js.map +1 -1
- package/dist-esm/src/operations/staticSites.d.ts.map +1 -1
- package/dist-esm/src/operations/staticSites.js +217 -84
- package/dist-esm/src/operations/staticSites.js.map +1 -1
- package/dist-esm/src/operations/topLevelDomains.d.ts.map +1 -1
- package/dist-esm/src/operations/topLevelDomains.js +37 -14
- package/dist-esm/src/operations/topLevelDomains.js.map +1 -1
- package/dist-esm/src/operations/webApps.d.ts.map +1 -1
- package/dist-esm/src/operations/webApps.js +1171 -455
- package/dist-esm/src/operations/webApps.js.map +1 -1
- package/dist-esm/src/operations/workflowRunActionRepetitions.d.ts.map +1 -1
- package/dist-esm/src/operations/workflowRunActionRepetitions.js +37 -14
- package/dist-esm/src/operations/workflowRunActionRepetitions.js.map +1 -1
- package/dist-esm/src/operations/workflowRunActionRepetitionsRequestHistories.d.ts.map +1 -1
- package/dist-esm/src/operations/workflowRunActionRepetitionsRequestHistories.js +19 -7
- package/dist-esm/src/operations/workflowRunActionRepetitionsRequestHistories.js.map +1 -1
- package/dist-esm/src/operations/workflowRunActionScopeRepetitions.d.ts.map +1 -1
- package/dist-esm/src/operations/workflowRunActionScopeRepetitions.js +19 -7
- package/dist-esm/src/operations/workflowRunActionScopeRepetitions.js.map +1 -1
- package/dist-esm/src/operations/workflowRunActions.d.ts.map +1 -1
- package/dist-esm/src/operations/workflowRunActions.js +37 -14
- package/dist-esm/src/operations/workflowRunActions.js.map +1 -1
- package/dist-esm/src/operations/workflowRuns.d.ts.map +1 -1
- package/dist-esm/src/operations/workflowRuns.js +19 -7
- package/dist-esm/src/operations/workflowRuns.js.map +1 -1
- package/dist-esm/src/operations/workflowTriggerHistories.d.ts.map +1 -1
- package/dist-esm/src/operations/workflowTriggerHistories.js +19 -7
- package/dist-esm/src/operations/workflowTriggerHistories.js.map +1 -1
- package/dist-esm/src/operations/workflowTriggers.d.ts.map +1 -1
- package/dist-esm/src/operations/workflowTriggers.js +19 -7
- package/dist-esm/src/operations/workflowTriggers.js.map +1 -1
- package/dist-esm/src/operations/workflowVersions.d.ts.map +1 -1
- package/dist-esm/src/operations/workflowVersions.js +19 -7
- package/dist-esm/src/operations/workflowVersions.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/src/webSiteManagementClient.d.ts.map +1 -1
- package/dist-esm/src/webSiteManagementClient.js +128 -59
- package/dist-esm/src/webSiteManagementClient.js.map +1 -1
- package/dist-esm/test/web_examples.js +2 -2
- package/dist-esm/test/web_examples.js.map +1 -1
- package/package.json +7 -6
- package/review/arm-appservice.api.md +3 -0
- package/src/index.ts +1 -0
- package/src/operations/appServiceCertificateOrders.ts +71 -29
- package/src/operations/appServiceEnvironments.ts +552 -243
- package/src/operations/appServicePlans.ts +148 -59
- package/src/operations/certificateOrdersDiagnostics.ts +26 -12
- package/src/operations/certificateRegistrationProvider.ts +21 -8
- package/src/operations/certificates.ts +45 -16
- package/src/operations/containerApps.ts +45 -16
- package/src/operations/containerAppsRevisions.ts +26 -12
- package/src/operations/deletedWebApps.ts +41 -16
- package/src/operations/diagnostics.ts +235 -117
- package/src/operations/domainRegistrationProvider.ts +21 -8
- package/src/operations/domains.ts +95 -37
- package/src/operations/kubeEnvironments.ts +45 -16
- package/src/operations/provider.ts +146 -56
- package/src/operations/recommendations.ts +122 -57
- package/src/operations/resourceHealthMetadataOperations.ts +97 -38
- package/src/operations/staticSites.ts +296 -144
- package/src/operations/topLevelDomains.ts +47 -17
- package/src/operations/webApps.ts +1667 -791
- package/src/operations/workflowRunActionRepetitions.ts +59 -32
- package/src/operations/workflowRunActionRepetitionsRequestHistories.ts +30 -16
- package/src/operations/workflowRunActionScopeRepetitions.ts +29 -15
- package/src/operations/workflowRunActions.ts +57 -30
- package/src/operations/workflowRuns.ts +22 -13
- package/src/operations/workflowTriggerHistories.ts +28 -14
- package/src/operations/workflowTriggers.ts +22 -13
- package/src/operations/workflowVersions.ts +22 -13
- package/src/pagingHelper.ts +39 -0
- package/src/webSiteManagementClient.ts +151 -71
- package/types/arm-appservice.d.ts +9 -0
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { WorkflowTriggers } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -68,12 +69,16 @@ export class WorkflowTriggersImpl implements WorkflowTriggers {
|
|
|
68
69
|
[Symbol.asyncIterator]() {
|
|
69
70
|
return this;
|
|
70
71
|
},
|
|
71
|
-
byPage: () => {
|
|
72
|
+
byPage: (settings?: PageSettings) => {
|
|
73
|
+
if (settings?.maxPageSize) {
|
|
74
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
75
|
+
}
|
|
72
76
|
return this.listPagingPage(
|
|
73
77
|
resourceGroupName,
|
|
74
78
|
name,
|
|
75
79
|
workflowName,
|
|
76
|
-
options
|
|
80
|
+
options,
|
|
81
|
+
settings
|
|
77
82
|
);
|
|
78
83
|
}
|
|
79
84
|
};
|
|
@@ -83,16 +88,18 @@ export class WorkflowTriggersImpl implements WorkflowTriggers {
|
|
|
83
88
|
resourceGroupName: string,
|
|
84
89
|
name: string,
|
|
85
90
|
workflowName: string,
|
|
86
|
-
options?: WorkflowTriggersListOptionalParams
|
|
91
|
+
options?: WorkflowTriggersListOptionalParams,
|
|
92
|
+
settings?: PageSettings
|
|
87
93
|
): AsyncIterableIterator<WorkflowTrigger[]> {
|
|
88
|
-
let result
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
workflowName,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
let result: WorkflowTriggersListResponse;
|
|
95
|
+
let continuationToken = settings?.continuationToken;
|
|
96
|
+
if (!continuationToken) {
|
|
97
|
+
result = await this._list(resourceGroupName, name, workflowName, options);
|
|
98
|
+
let page = result.value || [];
|
|
99
|
+
continuationToken = result.nextLink;
|
|
100
|
+
setContinuationToken(page, continuationToken);
|
|
101
|
+
yield page;
|
|
102
|
+
}
|
|
96
103
|
while (continuationToken) {
|
|
97
104
|
result = await this._listNext(
|
|
98
105
|
resourceGroupName,
|
|
@@ -102,7 +109,9 @@ export class WorkflowTriggersImpl implements WorkflowTriggers {
|
|
|
102
109
|
options
|
|
103
110
|
);
|
|
104
111
|
continuationToken = result.nextLink;
|
|
105
|
-
|
|
112
|
+
let page = result.value || [];
|
|
113
|
+
setContinuationToken(page, continuationToken);
|
|
114
|
+
yield page;
|
|
106
115
|
}
|
|
107
116
|
}
|
|
108
117
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { WorkflowVersions } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -61,12 +62,16 @@ export class WorkflowVersionsImpl implements WorkflowVersions {
|
|
|
61
62
|
[Symbol.asyncIterator]() {
|
|
62
63
|
return this;
|
|
63
64
|
},
|
|
64
|
-
byPage: () => {
|
|
65
|
+
byPage: (settings?: PageSettings) => {
|
|
66
|
+
if (settings?.maxPageSize) {
|
|
67
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
68
|
+
}
|
|
65
69
|
return this.listPagingPage(
|
|
66
70
|
resourceGroupName,
|
|
67
71
|
name,
|
|
68
72
|
workflowName,
|
|
69
|
-
options
|
|
73
|
+
options,
|
|
74
|
+
settings
|
|
70
75
|
);
|
|
71
76
|
}
|
|
72
77
|
};
|
|
@@ -76,16 +81,18 @@ export class WorkflowVersionsImpl implements WorkflowVersions {
|
|
|
76
81
|
resourceGroupName: string,
|
|
77
82
|
name: string,
|
|
78
83
|
workflowName: string,
|
|
79
|
-
options?: WorkflowVersionsListOptionalParams
|
|
84
|
+
options?: WorkflowVersionsListOptionalParams,
|
|
85
|
+
settings?: PageSettings
|
|
80
86
|
): AsyncIterableIterator<WorkflowVersion[]> {
|
|
81
|
-
let result
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
workflowName,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
let result: WorkflowVersionsListResponse;
|
|
88
|
+
let continuationToken = settings?.continuationToken;
|
|
89
|
+
if (!continuationToken) {
|
|
90
|
+
result = await this._list(resourceGroupName, name, workflowName, options);
|
|
91
|
+
let page = result.value || [];
|
|
92
|
+
continuationToken = result.nextLink;
|
|
93
|
+
setContinuationToken(page, continuationToken);
|
|
94
|
+
yield page;
|
|
95
|
+
}
|
|
89
96
|
while (continuationToken) {
|
|
90
97
|
result = await this._listNext(
|
|
91
98
|
resourceGroupName,
|
|
@@ -95,7 +102,9 @@ export class WorkflowVersionsImpl implements WorkflowVersions {
|
|
|
95
102
|
options
|
|
96
103
|
);
|
|
97
104
|
continuationToken = result.nextLink;
|
|
98
|
-
|
|
105
|
+
let page = result.value || [];
|
|
106
|
+
setContinuationToken(page, continuationToken);
|
|
107
|
+
yield page;
|
|
99
108
|
}
|
|
100
109
|
}
|
|
101
110
|
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
export interface PageInfo {
|
|
10
|
+
continuationToken?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const pageMap = new WeakMap<object, PageInfo>();
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Given a result page from a pageable operation, returns a
|
|
17
|
+
* continuation token that can be used to begin paging from
|
|
18
|
+
* that point later.
|
|
19
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
|
20
|
+
* @returns The continuation token that can be passed into byPage().
|
|
21
|
+
*/
|
|
22
|
+
export function getContinuationToken(page: unknown): string | undefined {
|
|
23
|
+
if (typeof page !== "object" || page === null) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
return pageMap.get(page)?.continuationToken;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function setContinuationToken(
|
|
30
|
+
page: unknown,
|
|
31
|
+
continuationToken: string | undefined
|
|
32
|
+
): void {
|
|
33
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
37
|
+
pageInfo.continuationToken = continuationToken;
|
|
38
|
+
pageMap.set(page, pageInfo);
|
|
39
|
+
}
|
|
@@ -14,7 +14,8 @@ import {
|
|
|
14
14
|
SendRequest
|
|
15
15
|
} from "@azure/core-rest-pipeline";
|
|
16
16
|
import * as coreAuth from "@azure/core-auth";
|
|
17
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
17
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
18
|
+
import { setContinuationToken } from "./pagingHelper";
|
|
18
19
|
import {
|
|
19
20
|
AppServiceCertificateOrdersImpl,
|
|
20
21
|
CertificateOrdersDiagnosticsImpl,
|
|
@@ -84,42 +85,42 @@ import {
|
|
|
84
85
|
SourceControl,
|
|
85
86
|
ListSourceControlsNextOptionalParams,
|
|
86
87
|
ListSourceControlsOptionalParams,
|
|
88
|
+
ListSourceControlsResponse,
|
|
87
89
|
BillingMeter,
|
|
88
90
|
ListBillingMetersNextOptionalParams,
|
|
89
91
|
ListBillingMetersOptionalParams,
|
|
92
|
+
ListBillingMetersResponse,
|
|
90
93
|
CustomHostnameSites,
|
|
91
94
|
ListCustomHostNameSitesNextOptionalParams,
|
|
92
95
|
ListCustomHostNameSitesOptionalParams,
|
|
96
|
+
ListCustomHostNameSitesResponse,
|
|
93
97
|
GeoRegion,
|
|
94
98
|
ListGeoRegionsNextOptionalParams,
|
|
95
99
|
ListGeoRegionsOptionalParams,
|
|
100
|
+
ListGeoRegionsResponse,
|
|
96
101
|
Identifier,
|
|
97
102
|
NameIdentifier,
|
|
98
103
|
ListSiteIdentifiersAssignedToHostNameNextOptionalParams,
|
|
99
104
|
ListSiteIdentifiersAssignedToHostNameOptionalParams,
|
|
105
|
+
ListSiteIdentifiersAssignedToHostNameResponse,
|
|
100
106
|
PremierAddOnOffer,
|
|
101
107
|
ListPremierAddOnOffersNextOptionalParams,
|
|
102
108
|
ListPremierAddOnOffersOptionalParams,
|
|
109
|
+
ListPremierAddOnOffersResponse,
|
|
103
110
|
GetPublishingUserOptionalParams,
|
|
104
111
|
GetPublishingUserResponse,
|
|
105
112
|
User,
|
|
106
113
|
UpdatePublishingUserOptionalParams,
|
|
107
114
|
UpdatePublishingUserResponse,
|
|
108
|
-
ListSourceControlsResponse,
|
|
109
115
|
GetSourceControlOptionalParams,
|
|
110
116
|
GetSourceControlResponse,
|
|
111
117
|
UpdateSourceControlOptionalParams,
|
|
112
118
|
UpdateSourceControlResponse,
|
|
113
|
-
ListBillingMetersResponse,
|
|
114
119
|
CheckNameResourceTypes,
|
|
115
120
|
CheckNameAvailabilityOptionalParams,
|
|
116
121
|
CheckNameAvailabilityResponse,
|
|
117
|
-
ListCustomHostNameSitesResponse,
|
|
118
122
|
GetSubscriptionDeploymentLocationsOptionalParams,
|
|
119
123
|
GetSubscriptionDeploymentLocationsResponse,
|
|
120
|
-
ListGeoRegionsResponse,
|
|
121
|
-
ListSiteIdentifiersAssignedToHostNameResponse,
|
|
122
|
-
ListPremierAddOnOffersResponse,
|
|
123
124
|
ListSkusOptionalParams,
|
|
124
125
|
ListSkusResponse,
|
|
125
126
|
VnetParameters,
|
|
@@ -179,41 +180,47 @@ export class WebSiteManagementClient extends coreClient.ServiceClient {
|
|
|
179
180
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
180
181
|
: `${packageDetails}`;
|
|
181
182
|
|
|
182
|
-
if (!options.credentialScopes) {
|
|
183
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
184
|
-
}
|
|
185
183
|
const optionsWithDefaults = {
|
|
186
184
|
...defaults,
|
|
187
185
|
...options,
|
|
188
186
|
userAgentOptions: {
|
|
189
187
|
userAgentPrefix
|
|
190
188
|
},
|
|
191
|
-
|
|
189
|
+
endpoint:
|
|
192
190
|
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
193
191
|
};
|
|
194
192
|
super(optionsWithDefaults);
|
|
195
193
|
|
|
194
|
+
let bearerTokenAuthenticationPolicyFound: boolean = false;
|
|
196
195
|
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
197
196
|
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
|
|
198
|
-
|
|
197
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
|
199
198
|
(pipelinePolicy) =>
|
|
200
199
|
pipelinePolicy.name ===
|
|
201
200
|
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
202
201
|
);
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
202
|
+
}
|
|
203
|
+
if (
|
|
204
|
+
!options ||
|
|
205
|
+
!options.pipeline ||
|
|
206
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
207
|
+
!bearerTokenAuthenticationPolicyFound
|
|
208
|
+
) {
|
|
209
|
+
this.pipeline.removePolicy({
|
|
210
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
211
|
+
});
|
|
212
|
+
this.pipeline.addPolicy(
|
|
213
|
+
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
214
|
+
credential: credentials,
|
|
215
|
+
scopes:
|
|
216
|
+
optionsWithDefaults.credentialScopes ??
|
|
217
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
218
|
+
challengeCallbacks: {
|
|
219
|
+
authorizeRequestOnChallenge:
|
|
220
|
+
coreClient.authorizeRequestOnClaimChallenge
|
|
221
|
+
}
|
|
222
|
+
})
|
|
223
|
+
);
|
|
217
224
|
}
|
|
218
225
|
// Parameter assignments
|
|
219
226
|
this.subscriptionId = subscriptionId;
|
|
@@ -310,22 +317,34 @@ export class WebSiteManagementClient extends coreClient.ServiceClient {
|
|
|
310
317
|
[Symbol.asyncIterator]() {
|
|
311
318
|
return this;
|
|
312
319
|
},
|
|
313
|
-
byPage: () => {
|
|
314
|
-
|
|
320
|
+
byPage: (settings?: PageSettings) => {
|
|
321
|
+
if (settings?.maxPageSize) {
|
|
322
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
323
|
+
}
|
|
324
|
+
return this.listSourceControlsPagingPage(options, settings);
|
|
315
325
|
}
|
|
316
326
|
};
|
|
317
327
|
}
|
|
318
328
|
|
|
319
329
|
private async *listSourceControlsPagingPage(
|
|
320
|
-
options?: ListSourceControlsOptionalParams
|
|
330
|
+
options?: ListSourceControlsOptionalParams,
|
|
331
|
+
settings?: PageSettings
|
|
321
332
|
): AsyncIterableIterator<SourceControl[]> {
|
|
322
|
-
let result
|
|
323
|
-
|
|
324
|
-
|
|
333
|
+
let result: ListSourceControlsResponse;
|
|
334
|
+
let continuationToken = settings?.continuationToken;
|
|
335
|
+
if (!continuationToken) {
|
|
336
|
+
result = await this._listSourceControls(options);
|
|
337
|
+
let page = result.value || [];
|
|
338
|
+
continuationToken = result.nextLink;
|
|
339
|
+
setContinuationToken(page, continuationToken);
|
|
340
|
+
yield page;
|
|
341
|
+
}
|
|
325
342
|
while (continuationToken) {
|
|
326
343
|
result = await this._listSourceControlsNext(continuationToken, options);
|
|
327
344
|
continuationToken = result.nextLink;
|
|
328
|
-
|
|
345
|
+
let page = result.value || [];
|
|
346
|
+
setContinuationToken(page, continuationToken);
|
|
347
|
+
yield page;
|
|
329
348
|
}
|
|
330
349
|
}
|
|
331
350
|
|
|
@@ -352,22 +371,34 @@ export class WebSiteManagementClient extends coreClient.ServiceClient {
|
|
|
352
371
|
[Symbol.asyncIterator]() {
|
|
353
372
|
return this;
|
|
354
373
|
},
|
|
355
|
-
byPage: () => {
|
|
356
|
-
|
|
374
|
+
byPage: (settings?: PageSettings) => {
|
|
375
|
+
if (settings?.maxPageSize) {
|
|
376
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
377
|
+
}
|
|
378
|
+
return this.listBillingMetersPagingPage(options, settings);
|
|
357
379
|
}
|
|
358
380
|
};
|
|
359
381
|
}
|
|
360
382
|
|
|
361
383
|
private async *listBillingMetersPagingPage(
|
|
362
|
-
options?: ListBillingMetersOptionalParams
|
|
384
|
+
options?: ListBillingMetersOptionalParams,
|
|
385
|
+
settings?: PageSettings
|
|
363
386
|
): AsyncIterableIterator<BillingMeter[]> {
|
|
364
|
-
let result
|
|
365
|
-
|
|
366
|
-
|
|
387
|
+
let result: ListBillingMetersResponse;
|
|
388
|
+
let continuationToken = settings?.continuationToken;
|
|
389
|
+
if (!continuationToken) {
|
|
390
|
+
result = await this._listBillingMeters(options);
|
|
391
|
+
let page = result.value || [];
|
|
392
|
+
continuationToken = result.nextLink;
|
|
393
|
+
setContinuationToken(page, continuationToken);
|
|
394
|
+
yield page;
|
|
395
|
+
}
|
|
367
396
|
while (continuationToken) {
|
|
368
397
|
result = await this._listBillingMetersNext(continuationToken, options);
|
|
369
398
|
continuationToken = result.nextLink;
|
|
370
|
-
|
|
399
|
+
let page = result.value || [];
|
|
400
|
+
setContinuationToken(page, continuationToken);
|
|
401
|
+
yield page;
|
|
371
402
|
}
|
|
372
403
|
}
|
|
373
404
|
|
|
@@ -394,25 +425,37 @@ export class WebSiteManagementClient extends coreClient.ServiceClient {
|
|
|
394
425
|
[Symbol.asyncIterator]() {
|
|
395
426
|
return this;
|
|
396
427
|
},
|
|
397
|
-
byPage: () => {
|
|
398
|
-
|
|
428
|
+
byPage: (settings?: PageSettings) => {
|
|
429
|
+
if (settings?.maxPageSize) {
|
|
430
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
431
|
+
}
|
|
432
|
+
return this.listCustomHostNameSitesPagingPage(options, settings);
|
|
399
433
|
}
|
|
400
434
|
};
|
|
401
435
|
}
|
|
402
436
|
|
|
403
437
|
private async *listCustomHostNameSitesPagingPage(
|
|
404
|
-
options?: ListCustomHostNameSitesOptionalParams
|
|
438
|
+
options?: ListCustomHostNameSitesOptionalParams,
|
|
439
|
+
settings?: PageSettings
|
|
405
440
|
): AsyncIterableIterator<CustomHostnameSites[]> {
|
|
406
|
-
let result
|
|
407
|
-
|
|
408
|
-
|
|
441
|
+
let result: ListCustomHostNameSitesResponse;
|
|
442
|
+
let continuationToken = settings?.continuationToken;
|
|
443
|
+
if (!continuationToken) {
|
|
444
|
+
result = await this._listCustomHostNameSites(options);
|
|
445
|
+
let page = result.value || [];
|
|
446
|
+
continuationToken = result.nextLink;
|
|
447
|
+
setContinuationToken(page, continuationToken);
|
|
448
|
+
yield page;
|
|
449
|
+
}
|
|
409
450
|
while (continuationToken) {
|
|
410
451
|
result = await this._listCustomHostNameSitesNext(
|
|
411
452
|
continuationToken,
|
|
412
453
|
options
|
|
413
454
|
);
|
|
414
455
|
continuationToken = result.nextLink;
|
|
415
|
-
|
|
456
|
+
let page = result.value || [];
|
|
457
|
+
setContinuationToken(page, continuationToken);
|
|
458
|
+
yield page;
|
|
416
459
|
}
|
|
417
460
|
}
|
|
418
461
|
|
|
@@ -439,22 +482,34 @@ export class WebSiteManagementClient extends coreClient.ServiceClient {
|
|
|
439
482
|
[Symbol.asyncIterator]() {
|
|
440
483
|
return this;
|
|
441
484
|
},
|
|
442
|
-
byPage: () => {
|
|
443
|
-
|
|
485
|
+
byPage: (settings?: PageSettings) => {
|
|
486
|
+
if (settings?.maxPageSize) {
|
|
487
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
488
|
+
}
|
|
489
|
+
return this.listGeoRegionsPagingPage(options, settings);
|
|
444
490
|
}
|
|
445
491
|
};
|
|
446
492
|
}
|
|
447
493
|
|
|
448
494
|
private async *listGeoRegionsPagingPage(
|
|
449
|
-
options?: ListGeoRegionsOptionalParams
|
|
495
|
+
options?: ListGeoRegionsOptionalParams,
|
|
496
|
+
settings?: PageSettings
|
|
450
497
|
): AsyncIterableIterator<GeoRegion[]> {
|
|
451
|
-
let result
|
|
452
|
-
|
|
453
|
-
|
|
498
|
+
let result: ListGeoRegionsResponse;
|
|
499
|
+
let continuationToken = settings?.continuationToken;
|
|
500
|
+
if (!continuationToken) {
|
|
501
|
+
result = await this._listGeoRegions(options);
|
|
502
|
+
let page = result.value || [];
|
|
503
|
+
continuationToken = result.nextLink;
|
|
504
|
+
setContinuationToken(page, continuationToken);
|
|
505
|
+
yield page;
|
|
506
|
+
}
|
|
454
507
|
while (continuationToken) {
|
|
455
508
|
result = await this._listGeoRegionsNext(continuationToken, options);
|
|
456
509
|
continuationToken = result.nextLink;
|
|
457
|
-
|
|
510
|
+
let page = result.value || [];
|
|
511
|
+
setContinuationToken(page, continuationToken);
|
|
512
|
+
yield page;
|
|
458
513
|
}
|
|
459
514
|
}
|
|
460
515
|
|
|
@@ -486,10 +541,14 @@ export class WebSiteManagementClient extends coreClient.ServiceClient {
|
|
|
486
541
|
[Symbol.asyncIterator]() {
|
|
487
542
|
return this;
|
|
488
543
|
},
|
|
489
|
-
byPage: () => {
|
|
544
|
+
byPage: (settings?: PageSettings) => {
|
|
545
|
+
if (settings?.maxPageSize) {
|
|
546
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
547
|
+
}
|
|
490
548
|
return this.listSiteIdentifiersAssignedToHostNamePagingPage(
|
|
491
549
|
nameIdentifier,
|
|
492
|
-
options
|
|
550
|
+
options,
|
|
551
|
+
settings
|
|
493
552
|
);
|
|
494
553
|
}
|
|
495
554
|
};
|
|
@@ -497,14 +556,21 @@ export class WebSiteManagementClient extends coreClient.ServiceClient {
|
|
|
497
556
|
|
|
498
557
|
private async *listSiteIdentifiersAssignedToHostNamePagingPage(
|
|
499
558
|
nameIdentifier: NameIdentifier,
|
|
500
|
-
options?: ListSiteIdentifiersAssignedToHostNameOptionalParams
|
|
559
|
+
options?: ListSiteIdentifiersAssignedToHostNameOptionalParams,
|
|
560
|
+
settings?: PageSettings
|
|
501
561
|
): AsyncIterableIterator<Identifier[]> {
|
|
502
|
-
let result
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
562
|
+
let result: ListSiteIdentifiersAssignedToHostNameResponse;
|
|
563
|
+
let continuationToken = settings?.continuationToken;
|
|
564
|
+
if (!continuationToken) {
|
|
565
|
+
result = await this._listSiteIdentifiersAssignedToHostName(
|
|
566
|
+
nameIdentifier,
|
|
567
|
+
options
|
|
568
|
+
);
|
|
569
|
+
let page = result.value || [];
|
|
570
|
+
continuationToken = result.nextLink;
|
|
571
|
+
setContinuationToken(page, continuationToken);
|
|
572
|
+
yield page;
|
|
573
|
+
}
|
|
508
574
|
while (continuationToken) {
|
|
509
575
|
result = await this._listSiteIdentifiersAssignedToHostNameNext(
|
|
510
576
|
nameIdentifier,
|
|
@@ -512,7 +578,9 @@ export class WebSiteManagementClient extends coreClient.ServiceClient {
|
|
|
512
578
|
options
|
|
513
579
|
);
|
|
514
580
|
continuationToken = result.nextLink;
|
|
515
|
-
|
|
581
|
+
let page = result.value || [];
|
|
582
|
+
setContinuationToken(page, continuationToken);
|
|
583
|
+
yield page;
|
|
516
584
|
}
|
|
517
585
|
}
|
|
518
586
|
|
|
@@ -543,25 +611,37 @@ export class WebSiteManagementClient extends coreClient.ServiceClient {
|
|
|
543
611
|
[Symbol.asyncIterator]() {
|
|
544
612
|
return this;
|
|
545
613
|
},
|
|
546
|
-
byPage: () => {
|
|
547
|
-
|
|
614
|
+
byPage: (settings?: PageSettings) => {
|
|
615
|
+
if (settings?.maxPageSize) {
|
|
616
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
617
|
+
}
|
|
618
|
+
return this.listPremierAddOnOffersPagingPage(options, settings);
|
|
548
619
|
}
|
|
549
620
|
};
|
|
550
621
|
}
|
|
551
622
|
|
|
552
623
|
private async *listPremierAddOnOffersPagingPage(
|
|
553
|
-
options?: ListPremierAddOnOffersOptionalParams
|
|
624
|
+
options?: ListPremierAddOnOffersOptionalParams,
|
|
625
|
+
settings?: PageSettings
|
|
554
626
|
): AsyncIterableIterator<PremierAddOnOffer[]> {
|
|
555
|
-
let result
|
|
556
|
-
|
|
557
|
-
|
|
627
|
+
let result: ListPremierAddOnOffersResponse;
|
|
628
|
+
let continuationToken = settings?.continuationToken;
|
|
629
|
+
if (!continuationToken) {
|
|
630
|
+
result = await this._listPremierAddOnOffers(options);
|
|
631
|
+
let page = result.value || [];
|
|
632
|
+
continuationToken = result.nextLink;
|
|
633
|
+
setContinuationToken(page, continuationToken);
|
|
634
|
+
yield page;
|
|
635
|
+
}
|
|
558
636
|
while (continuationToken) {
|
|
559
637
|
result = await this._listPremierAddOnOffersNext(
|
|
560
638
|
continuationToken,
|
|
561
639
|
options
|
|
562
640
|
);
|
|
563
641
|
continuationToken = result.nextLink;
|
|
564
|
-
|
|
642
|
+
let page = result.value || [];
|
|
643
|
+
setContinuationToken(page, continuationToken);
|
|
644
|
+
yield page;
|
|
565
645
|
}
|
|
566
646
|
}
|
|
567
647
|
|
|
@@ -6542,6 +6542,15 @@ export declare interface GeoRegionCollection {
|
|
|
6542
6542
|
readonly nextLink?: string;
|
|
6543
6543
|
}
|
|
6544
6544
|
|
|
6545
|
+
/**
|
|
6546
|
+
* Given a result page from a pageable operation, returns a
|
|
6547
|
+
* continuation token that can be used to begin paging from
|
|
6548
|
+
* that point later.
|
|
6549
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
|
6550
|
+
* @returns The continuation token that can be passed into byPage().
|
|
6551
|
+
*/
|
|
6552
|
+
export declare function getContinuationToken(page: unknown): string | undefined;
|
|
6553
|
+
|
|
6545
6554
|
/** Optional parameters. */
|
|
6546
6555
|
export declare interface GetPublishingUserOptionalParams extends coreClient.OperationOptions {
|
|
6547
6556
|
}
|