@azure/arm-appservice 30.0.0-alpha.20211001.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/LICENSE +21 -0
- package/README.md +96 -0
- package/dist/index.js +59024 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/index.d.ts +6 -0
- package/dist-esm/index.d.ts.map +1 -0
- package/dist-esm/index.js +13 -0
- 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 +29 -0
- package/dist-esm/lroImpl.js.map +1 -0
- package/dist-esm/models/index.d.ts +12050 -0
- package/dist-esm/models/index.d.ts.map +1 -0
- package/dist-esm/models/index.js +227 -0
- package/dist-esm/models/index.js.map +1 -0
- package/dist-esm/models/mappers.d.ts +405 -0
- package/dist-esm/models/mappers.d.ts.map +1 -0
- package/dist-esm/models/mappers.js +19668 -0
- package/dist-esm/models/mappers.js.map +1 -0
- package/dist-esm/models/parameters.d.ts +183 -0
- package/dist-esm/models/parameters.d.ts.map +1 -0
- package/dist-esm/models/parameters.js +1382 -0
- package/dist-esm/models/parameters.js.map +1 -0
- package/dist-esm/operations/appServiceCertificateOrders.d.ts +233 -0
- package/dist-esm/operations/appServiceCertificateOrders.d.ts.map +1 -0
- package/dist-esm/operations/appServiceCertificateOrders.js +1024 -0
- package/dist-esm/operations/appServiceCertificateOrders.js.map +1 -0
- package/dist-esm/operations/appServiceEnvironments.d.ts +780 -0
- package/dist-esm/operations/appServiceEnvironments.d.ts.map +1 -0
- package/dist-esm/operations/appServiceEnvironments.js +3646 -0
- package/dist-esm/operations/appServiceEnvironments.js.map +1 -0
- package/dist-esm/operations/appServicePlans.d.ts +339 -0
- package/dist-esm/operations/appServicePlans.d.ts.map +1 -0
- package/dist-esm/operations/appServicePlans.js +1490 -0
- package/dist-esm/operations/appServicePlans.js.map +1 -0
- package/dist-esm/operations/certificateOrdersDiagnostics.d.ts +48 -0
- package/dist-esm/operations/certificateOrdersDiagnostics.d.ts.map +1 -0
- package/dist-esm/operations/certificateOrdersDiagnostics.js +176 -0
- package/dist-esm/operations/certificateOrdersDiagnostics.js.map +1 -0
- package/dist-esm/operations/certificateRegistrationProvider.d.ts +35 -0
- package/dist-esm/operations/certificateRegistrationProvider.d.ts.map +1 -0
- package/dist-esm/operations/certificateRegistrationProvider.js +123 -0
- package/dist-esm/operations/certificateRegistrationProvider.js.map +1 -0
- package/dist-esm/operations/certificates.d.ts +84 -0
- package/dist-esm/operations/certificates.d.ts.map +1 -0
- package/dist-esm/operations/certificates.js +357 -0
- package/dist-esm/operations/certificates.js.map +1 -0
- package/dist-esm/operations/deletedWebApps.d.ts +61 -0
- package/dist-esm/operations/deletedWebApps.d.ts.map +1 -0
- package/dist-esm/operations/deletedWebApps.js +262 -0
- package/dist-esm/operations/deletedWebApps.js.map +1 -0
- package/dist-esm/operations/diagnostics.d.ts +378 -0
- package/dist-esm/operations/diagnostics.d.ts.map +1 -0
- package/dist-esm/operations/diagnostics.js +1624 -0
- package/dist-esm/operations/diagnostics.js.map +1 -0
- package/dist-esm/operations/domainRegistrationProvider.d.ts +35 -0
- package/dist-esm/operations/domainRegistrationProvider.d.ts.map +1 -0
- package/dist-esm/operations/domainRegistrationProvider.js +123 -0
- package/dist-esm/operations/domainRegistrationProvider.js.map +1 -0
- package/dist-esm/operations/domains.d.ts +193 -0
- package/dist-esm/operations/domains.d.ts.map +1 -0
- package/dist-esm/operations/domains.js +856 -0
- package/dist-esm/operations/domains.js.map +1 -0
- package/dist-esm/operations/global.d.ts +32 -0
- package/dist-esm/operations/global.d.ts.map +1 -0
- package/dist-esm/operations/global.js +112 -0
- package/dist-esm/operations/global.js.map +1 -0
- package/dist-esm/operations/index.d.ts +19 -0
- package/dist-esm/operations/index.d.ts.map +1 -0
- package/dist-esm/operations/index.js +26 -0
- package/dist-esm/operations/index.js.map +1 -0
- package/dist-esm/operations/kubeEnvironments.d.ts +100 -0
- package/dist-esm/operations/kubeEnvironments.d.ts.map +1 -0
- package/dist-esm/operations/kubeEnvironments.js +454 -0
- package/dist-esm/operations/kubeEnvironments.js.map +1 -0
- package/dist-esm/operations/provider.d.ts +152 -0
- package/dist-esm/operations/provider.d.ts.map +1 -0
- package/dist-esm/operations/provider.js +706 -0
- package/dist-esm/operations/provider.js.map +1 -0
- package/dist-esm/operations/recommendations.d.ts +206 -0
- package/dist-esm/operations/recommendations.d.ts.map +1 -0
- package/dist-esm/operations/recommendations.js +912 -0
- package/dist-esm/operations/recommendations.js.map +1 -0
- package/dist-esm/operations/resourceHealthMetadataOperations.d.ts +126 -0
- package/dist-esm/operations/resourceHealthMetadataOperations.d.ts.map +1 -0
- package/dist-esm/operations/resourceHealthMetadataOperations.js +529 -0
- package/dist-esm/operations/resourceHealthMetadataOperations.js.map +1 -0
- package/dist-esm/operations/staticSites.d.ts +702 -0
- package/dist-esm/operations/staticSites.d.ts.map +1 -0
- package/dist-esm/operations/staticSites.js +3069 -0
- package/dist-esm/operations/staticSites.js.map +1 -0
- package/dist-esm/operations/topLevelDomains.d.ts +63 -0
- package/dist-esm/operations/topLevelDomains.d.ts.map +1 -0
- package/dist-esm/operations/topLevelDomains.js +258 -0
- package/dist-esm/operations/topLevelDomains.js.map +1 -0
- package/dist-esm/operations/webApps.d.ts +5070 -0
- package/dist-esm/operations/webApps.d.ts.map +1 -0
- package/dist-esm/operations/webApps.js +20820 -0
- package/dist-esm/operations/webApps.js.map +1 -0
- package/dist-esm/operationsInterfaces/appServiceCertificateOrders.d.ts +180 -0
- package/dist-esm/operationsInterfaces/appServiceCertificateOrders.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/appServiceCertificateOrders.js +9 -0
- package/dist-esm/operationsInterfaces/appServiceCertificateOrders.js.map +1 -0
- package/dist-esm/operationsInterfaces/appServiceEnvironments.d.ts +380 -0
- package/dist-esm/operationsInterfaces/appServiceEnvironments.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/appServiceEnvironments.js +9 -0
- package/dist-esm/operationsInterfaces/appServiceEnvironments.js.map +1 -0
- package/dist-esm/operationsInterfaces/appServicePlans.d.ts +230 -0
- package/dist-esm/operationsInterfaces/appServicePlans.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/appServicePlans.js +9 -0
- package/dist-esm/operationsInterfaces/appServicePlans.js.map +1 -0
- package/dist-esm/operationsInterfaces/certificateOrdersDiagnostics.d.ts +22 -0
- package/dist-esm/operationsInterfaces/certificateOrdersDiagnostics.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/certificateOrdersDiagnostics.js +9 -0
- package/dist-esm/operationsInterfaces/certificateOrdersDiagnostics.js.map +1 -0
- package/dist-esm/operationsInterfaces/certificateRegistrationProvider.d.ts +13 -0
- package/dist-esm/operationsInterfaces/certificateRegistrationProvider.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/certificateRegistrationProvider.js +9 -0
- package/dist-esm/operationsInterfaces/certificateRegistrationProvider.js.map +1 -0
- package/dist-esm/operationsInterfaces/certificates.d.ts +48 -0
- package/dist-esm/operationsInterfaces/certificates.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/certificates.js +9 -0
- package/dist-esm/operationsInterfaces/certificates.js.map +1 -0
- package/dist-esm/operationsInterfaces/deletedWebApps.d.ts +25 -0
- package/dist-esm/operationsInterfaces/deletedWebApps.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/deletedWebApps.js +9 -0
- package/dist-esm/operationsInterfaces/deletedWebApps.js.map +1 -0
- package/dist-esm/operationsInterfaces/diagnostics.d.ts +196 -0
- package/dist-esm/operationsInterfaces/diagnostics.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/diagnostics.js +9 -0
- package/dist-esm/operationsInterfaces/diagnostics.js.map +1 -0
- package/dist-esm/operationsInterfaces/domainRegistrationProvider.d.ts +13 -0
- package/dist-esm/operationsInterfaces/domainRegistrationProvider.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/domainRegistrationProvider.js +9 -0
- package/dist-esm/operationsInterfaces/domainRegistrationProvider.js.map +1 -0
- package/dist-esm/operationsInterfaces/domains.d.ts +124 -0
- package/dist-esm/operationsInterfaces/domains.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/domains.js +9 -0
- package/dist-esm/operationsInterfaces/domains.js.map +1 -0
- package/dist-esm/operationsInterfaces/global.d.ts +24 -0
- package/dist-esm/operationsInterfaces/global.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/global.js +9 -0
- package/dist-esm/operationsInterfaces/global.js.map +1 -0
- package/dist-esm/operationsInterfaces/index.d.ts +19 -0
- package/dist-esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/index.js +26 -0
- package/dist-esm/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/operationsInterfaces/kubeEnvironments.d.ts +64 -0
- package/dist-esm/operationsInterfaces/kubeEnvironments.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/kubeEnvironments.js +9 -0
- package/dist-esm/operationsInterfaces/kubeEnvironments.js.map +1 -0
- package/dist-esm/operationsInterfaces/provider.d.ts +45 -0
- package/dist-esm/operationsInterfaces/provider.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/provider.js +9 -0
- package/dist-esm/operationsInterfaces/provider.js.map +1 -0
- package/dist-esm/operationsInterfaces/recommendations.d.ts +114 -0
- package/dist-esm/operationsInterfaces/recommendations.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/recommendations.js +9 -0
- package/dist-esm/operationsInterfaces/recommendations.js.map +1 -0
- package/dist-esm/operationsInterfaces/resourceHealthMetadataOperations.d.ts +51 -0
- package/dist-esm/operationsInterfaces/resourceHealthMetadataOperations.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/resourceHealthMetadataOperations.js +9 -0
- package/dist-esm/operationsInterfaces/resourceHealthMetadataOperations.js.map +1 -0
- package/dist-esm/operationsInterfaces/staticSites.d.ts +516 -0
- package/dist-esm/operationsInterfaces/staticSites.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/staticSites.js +9 -0
- package/dist-esm/operationsInterfaces/staticSites.js.map +1 -0
- package/dist-esm/operationsInterfaces/topLevelDomains.d.ts +25 -0
- package/dist-esm/operationsInterfaces/topLevelDomains.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/topLevelDomains.js +9 -0
- package/dist-esm/operationsInterfaces/topLevelDomains.js.map +1 -0
- package/dist-esm/operationsInterfaces/webApps.d.ts +3798 -0
- package/dist-esm/operationsInterfaces/webApps.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/webApps.js +9 -0
- package/dist-esm/operationsInterfaces/webApps.js.map +1 -0
- package/dist-esm/webSiteManagementClient.d.ts +205 -0
- package/dist-esm/webSiteManagementClient.d.ts.map +1 -0
- package/dist-esm/webSiteManagementClient.js +892 -0
- package/dist-esm/webSiteManagementClient.js.map +1 -0
- package/dist-esm/webSiteManagementClientContext.d.ts +17 -0
- package/dist-esm/webSiteManagementClientContext.d.ts.map +1 -0
- package/dist-esm/webSiteManagementClientContext.js +50 -0
- package/dist-esm/webSiteManagementClientContext.js.map +1 -0
- package/package.json +99 -0
- package/review/arm-appservice.api.md +10633 -0
- package/rollup.config.js +188 -0
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +14289 -0
- package/src/models/mappers.ts +21388 -0
- package/src/models/parameters.ts +1647 -0
- package/src/operations/appServiceCertificateOrders.ts +1373 -0
- package/src/operations/appServiceEnvironments.ts +5073 -0
- package/src/operations/appServicePlans.ts +1987 -0
- package/src/operations/certificateOrdersDiagnostics.ts +247 -0
- package/src/operations/certificateRegistrationProvider.ts +144 -0
- package/src/operations/certificates.ts +444 -0
- package/src/operations/deletedWebApps.ts +311 -0
- package/src/operations/diagnostics.ts +2273 -0
- package/src/operations/domainRegistrationProvider.ts +144 -0
- package/src/operations/domains.ts +1122 -0
- package/src/operations/global.ts +150 -0
- package/src/operations/index.ts +26 -0
- package/src/operations/kubeEnvironments.ts +594 -0
- package/src/operations/provider.ts +829 -0
- package/src/operations/recommendations.ts +1210 -0
- package/src/operations/resourceHealthMetadataOperations.ts +679 -0
- package/src/operations/staticSites.ts +4336 -0
- package/src/operations/topLevelDomains.ts +319 -0
- package/src/operations/webApps.ts +28925 -0
- package/src/operationsInterfaces/appServiceCertificateOrders.ts +340 -0
- package/src/operationsInterfaces/appServiceEnvironments.ts +725 -0
- package/src/operationsInterfaces/appServicePlans.ts +433 -0
- package/src/operationsInterfaces/certificateOrdersDiagnostics.ts +47 -0
- package/src/operationsInterfaces/certificateRegistrationProvider.ts +27 -0
- package/src/operationsInterfaces/certificates.ts +92 -0
- package/src/operationsInterfaces/deletedWebApps.ts +49 -0
- package/src/operationsInterfaces/diagnostics.ts +368 -0
- package/src/operationsInterfaces/domainRegistrationProvider.ts +27 -0
- package/src/operationsInterfaces/domains.ts +231 -0
- package/src/operationsInterfaces/global.ts +48 -0
- package/src/operationsInterfaces/index.ts +26 -0
- package/src/operationsInterfaces/kubeEnvironments.ts +122 -0
- package/src/operationsInterfaces/provider.ts +82 -0
- package/src/operationsInterfaces/recommendations.ts +204 -0
- package/src/operationsInterfaces/resourceHealthMetadataOperations.ts +93 -0
- package/src/operationsInterfaces/staticSites.ts +963 -0
- package/src/operationsInterfaces/topLevelDomains.ts +51 -0
- package/src/operationsInterfaces/webApps.ts +6889 -0
- package/src/webSiteManagementClient.ts +1177 -0
- package/src/webSiteManagementClientContext.ts +71 -0
- package/tsconfig.json +19 -0
- package/types/arm-appservice.d.ts +20041 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,594 @@
|
|
|
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 "@azure/core-paging";
|
|
10
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
11
|
+
import { KubeEnvironments } 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 { WebSiteManagementClientContext } from "../webSiteManagementClientContext";
|
|
16
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
17
|
+
import { LroImpl } from "../lroImpl";
|
|
18
|
+
import {
|
|
19
|
+
KubeEnvironment,
|
|
20
|
+
KubeEnvironmentsListBySubscriptionNextOptionalParams,
|
|
21
|
+
KubeEnvironmentsListBySubscriptionOptionalParams,
|
|
22
|
+
KubeEnvironmentsListByResourceGroupNextOptionalParams,
|
|
23
|
+
KubeEnvironmentsListByResourceGroupOptionalParams,
|
|
24
|
+
KubeEnvironmentsListBySubscriptionResponse,
|
|
25
|
+
KubeEnvironmentsListByResourceGroupResponse,
|
|
26
|
+
KubeEnvironmentsGetOptionalParams,
|
|
27
|
+
KubeEnvironmentsGetResponse,
|
|
28
|
+
KubeEnvironmentsCreateOrUpdateOptionalParams,
|
|
29
|
+
KubeEnvironmentsCreateOrUpdateResponse,
|
|
30
|
+
KubeEnvironmentsDeleteOptionalParams,
|
|
31
|
+
KubeEnvironmentPatchResource,
|
|
32
|
+
KubeEnvironmentsUpdateOptionalParams,
|
|
33
|
+
KubeEnvironmentsUpdateResponse,
|
|
34
|
+
KubeEnvironmentsListBySubscriptionNextResponse,
|
|
35
|
+
KubeEnvironmentsListByResourceGroupNextResponse
|
|
36
|
+
} from "../models";
|
|
37
|
+
|
|
38
|
+
/// <reference lib="esnext.asynciterable" />
|
|
39
|
+
/** Class representing a KubeEnvironments. */
|
|
40
|
+
export class KubeEnvironmentsImpl implements KubeEnvironments {
|
|
41
|
+
private readonly client: WebSiteManagementClientContext;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Initialize a new instance of the class KubeEnvironments class.
|
|
45
|
+
* @param client Reference to the service client
|
|
46
|
+
*/
|
|
47
|
+
constructor(client: WebSiteManagementClientContext) {
|
|
48
|
+
this.client = client;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Description for Get all Kubernetes Environments for a subscription.
|
|
53
|
+
* @param options The options parameters.
|
|
54
|
+
*/
|
|
55
|
+
public listBySubscription(
|
|
56
|
+
options?: KubeEnvironmentsListBySubscriptionOptionalParams
|
|
57
|
+
): PagedAsyncIterableIterator<KubeEnvironment> {
|
|
58
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
59
|
+
return {
|
|
60
|
+
next() {
|
|
61
|
+
return iter.next();
|
|
62
|
+
},
|
|
63
|
+
[Symbol.asyncIterator]() {
|
|
64
|
+
return this;
|
|
65
|
+
},
|
|
66
|
+
byPage: () => {
|
|
67
|
+
return this.listBySubscriptionPagingPage(options);
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
private async *listBySubscriptionPagingPage(
|
|
73
|
+
options?: KubeEnvironmentsListBySubscriptionOptionalParams
|
|
74
|
+
): AsyncIterableIterator<KubeEnvironment[]> {
|
|
75
|
+
let result = await this._listBySubscription(options);
|
|
76
|
+
yield result.value || [];
|
|
77
|
+
let continuationToken = result.nextLink;
|
|
78
|
+
while (continuationToken) {
|
|
79
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
80
|
+
continuationToken = result.nextLink;
|
|
81
|
+
yield result.value || [];
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
private async *listBySubscriptionPagingAll(
|
|
86
|
+
options?: KubeEnvironmentsListBySubscriptionOptionalParams
|
|
87
|
+
): AsyncIterableIterator<KubeEnvironment> {
|
|
88
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
89
|
+
yield* page;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Description for Get all the Kubernetes Environments in a resource group.
|
|
95
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
96
|
+
* @param options The options parameters.
|
|
97
|
+
*/
|
|
98
|
+
public listByResourceGroup(
|
|
99
|
+
resourceGroupName: string,
|
|
100
|
+
options?: KubeEnvironmentsListByResourceGroupOptionalParams
|
|
101
|
+
): PagedAsyncIterableIterator<KubeEnvironment> {
|
|
102
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
103
|
+
return {
|
|
104
|
+
next() {
|
|
105
|
+
return iter.next();
|
|
106
|
+
},
|
|
107
|
+
[Symbol.asyncIterator]() {
|
|
108
|
+
return this;
|
|
109
|
+
},
|
|
110
|
+
byPage: () => {
|
|
111
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
private async *listByResourceGroupPagingPage(
|
|
117
|
+
resourceGroupName: string,
|
|
118
|
+
options?: KubeEnvironmentsListByResourceGroupOptionalParams
|
|
119
|
+
): AsyncIterableIterator<KubeEnvironment[]> {
|
|
120
|
+
let result = await this._listByResourceGroup(resourceGroupName, options);
|
|
121
|
+
yield result.value || [];
|
|
122
|
+
let continuationToken = result.nextLink;
|
|
123
|
+
while (continuationToken) {
|
|
124
|
+
result = await this._listByResourceGroupNext(
|
|
125
|
+
resourceGroupName,
|
|
126
|
+
continuationToken,
|
|
127
|
+
options
|
|
128
|
+
);
|
|
129
|
+
continuationToken = result.nextLink;
|
|
130
|
+
yield result.value || [];
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
private async *listByResourceGroupPagingAll(
|
|
135
|
+
resourceGroupName: string,
|
|
136
|
+
options?: KubeEnvironmentsListByResourceGroupOptionalParams
|
|
137
|
+
): AsyncIterableIterator<KubeEnvironment> {
|
|
138
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
|
139
|
+
resourceGroupName,
|
|
140
|
+
options
|
|
141
|
+
)) {
|
|
142
|
+
yield* page;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Description for Get all Kubernetes Environments for a subscription.
|
|
148
|
+
* @param options The options parameters.
|
|
149
|
+
*/
|
|
150
|
+
private _listBySubscription(
|
|
151
|
+
options?: KubeEnvironmentsListBySubscriptionOptionalParams
|
|
152
|
+
): Promise<KubeEnvironmentsListBySubscriptionResponse> {
|
|
153
|
+
return this.client.sendOperationRequest(
|
|
154
|
+
{ options },
|
|
155
|
+
listBySubscriptionOperationSpec
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Description for Get all the Kubernetes Environments in a resource group.
|
|
161
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
162
|
+
* @param options The options parameters.
|
|
163
|
+
*/
|
|
164
|
+
private _listByResourceGroup(
|
|
165
|
+
resourceGroupName: string,
|
|
166
|
+
options?: KubeEnvironmentsListByResourceGroupOptionalParams
|
|
167
|
+
): Promise<KubeEnvironmentsListByResourceGroupResponse> {
|
|
168
|
+
return this.client.sendOperationRequest(
|
|
169
|
+
{ resourceGroupName, options },
|
|
170
|
+
listByResourceGroupOperationSpec
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Description for Get the properties of a Kubernetes Environment.
|
|
176
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
177
|
+
* @param name Name of the Kubernetes Environment.
|
|
178
|
+
* @param options The options parameters.
|
|
179
|
+
*/
|
|
180
|
+
get(
|
|
181
|
+
resourceGroupName: string,
|
|
182
|
+
name: string,
|
|
183
|
+
options?: KubeEnvironmentsGetOptionalParams
|
|
184
|
+
): Promise<KubeEnvironmentsGetResponse> {
|
|
185
|
+
return this.client.sendOperationRequest(
|
|
186
|
+
{ resourceGroupName, name, options },
|
|
187
|
+
getOperationSpec
|
|
188
|
+
);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Description for Creates or updates a Kubernetes Environment.
|
|
193
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
194
|
+
* @param name Name of the Kubernetes Environment.
|
|
195
|
+
* @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment.
|
|
196
|
+
* @param options The options parameters.
|
|
197
|
+
*/
|
|
198
|
+
async beginCreateOrUpdate(
|
|
199
|
+
resourceGroupName: string,
|
|
200
|
+
name: string,
|
|
201
|
+
kubeEnvironmentEnvelope: KubeEnvironment,
|
|
202
|
+
options?: KubeEnvironmentsCreateOrUpdateOptionalParams
|
|
203
|
+
): Promise<
|
|
204
|
+
PollerLike<
|
|
205
|
+
PollOperationState<KubeEnvironmentsCreateOrUpdateResponse>,
|
|
206
|
+
KubeEnvironmentsCreateOrUpdateResponse
|
|
207
|
+
>
|
|
208
|
+
> {
|
|
209
|
+
const directSendOperation = async (
|
|
210
|
+
args: coreClient.OperationArguments,
|
|
211
|
+
spec: coreClient.OperationSpec
|
|
212
|
+
): Promise<KubeEnvironmentsCreateOrUpdateResponse> => {
|
|
213
|
+
return this.client.sendOperationRequest(args, spec);
|
|
214
|
+
};
|
|
215
|
+
const sendOperation = async (
|
|
216
|
+
args: coreClient.OperationArguments,
|
|
217
|
+
spec: coreClient.OperationSpec
|
|
218
|
+
) => {
|
|
219
|
+
let currentRawResponse:
|
|
220
|
+
| coreClient.FullOperationResponse
|
|
221
|
+
| undefined = undefined;
|
|
222
|
+
const providedCallback = args.options?.onResponse;
|
|
223
|
+
const callback: coreClient.RawResponseCallback = (
|
|
224
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
225
|
+
flatResponse: unknown
|
|
226
|
+
) => {
|
|
227
|
+
currentRawResponse = rawResponse;
|
|
228
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
229
|
+
};
|
|
230
|
+
const updatedArgs = {
|
|
231
|
+
...args,
|
|
232
|
+
options: {
|
|
233
|
+
...args.options,
|
|
234
|
+
onResponse: callback
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
238
|
+
return {
|
|
239
|
+
flatResponse,
|
|
240
|
+
rawResponse: {
|
|
241
|
+
statusCode: currentRawResponse!.status,
|
|
242
|
+
body: currentRawResponse!.parsedBody,
|
|
243
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
const lro = new LroImpl(
|
|
249
|
+
sendOperation,
|
|
250
|
+
{ resourceGroupName, name, kubeEnvironmentEnvelope, options },
|
|
251
|
+
createOrUpdateOperationSpec
|
|
252
|
+
);
|
|
253
|
+
return new LroEngine(lro, {
|
|
254
|
+
resumeFrom: options?.resumeFrom,
|
|
255
|
+
intervalInMs: options?.updateIntervalInMs
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Description for Creates or updates a Kubernetes Environment.
|
|
261
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
262
|
+
* @param name Name of the Kubernetes Environment.
|
|
263
|
+
* @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment.
|
|
264
|
+
* @param options The options parameters.
|
|
265
|
+
*/
|
|
266
|
+
async beginCreateOrUpdateAndWait(
|
|
267
|
+
resourceGroupName: string,
|
|
268
|
+
name: string,
|
|
269
|
+
kubeEnvironmentEnvelope: KubeEnvironment,
|
|
270
|
+
options?: KubeEnvironmentsCreateOrUpdateOptionalParams
|
|
271
|
+
): Promise<KubeEnvironmentsCreateOrUpdateResponse> {
|
|
272
|
+
const poller = await this.beginCreateOrUpdate(
|
|
273
|
+
resourceGroupName,
|
|
274
|
+
name,
|
|
275
|
+
kubeEnvironmentEnvelope,
|
|
276
|
+
options
|
|
277
|
+
);
|
|
278
|
+
return poller.pollUntilDone();
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Description for Delete a Kubernetes Environment.
|
|
283
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
284
|
+
* @param name Name of the Kubernetes Environment.
|
|
285
|
+
* @param options The options parameters.
|
|
286
|
+
*/
|
|
287
|
+
async beginDelete(
|
|
288
|
+
resourceGroupName: string,
|
|
289
|
+
name: string,
|
|
290
|
+
options?: KubeEnvironmentsDeleteOptionalParams
|
|
291
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
292
|
+
const directSendOperation = async (
|
|
293
|
+
args: coreClient.OperationArguments,
|
|
294
|
+
spec: coreClient.OperationSpec
|
|
295
|
+
): Promise<void> => {
|
|
296
|
+
return this.client.sendOperationRequest(args, spec);
|
|
297
|
+
};
|
|
298
|
+
const sendOperation = async (
|
|
299
|
+
args: coreClient.OperationArguments,
|
|
300
|
+
spec: coreClient.OperationSpec
|
|
301
|
+
) => {
|
|
302
|
+
let currentRawResponse:
|
|
303
|
+
| coreClient.FullOperationResponse
|
|
304
|
+
| undefined = undefined;
|
|
305
|
+
const providedCallback = args.options?.onResponse;
|
|
306
|
+
const callback: coreClient.RawResponseCallback = (
|
|
307
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
308
|
+
flatResponse: unknown
|
|
309
|
+
) => {
|
|
310
|
+
currentRawResponse = rawResponse;
|
|
311
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
312
|
+
};
|
|
313
|
+
const updatedArgs = {
|
|
314
|
+
...args,
|
|
315
|
+
options: {
|
|
316
|
+
...args.options,
|
|
317
|
+
onResponse: callback
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
321
|
+
return {
|
|
322
|
+
flatResponse,
|
|
323
|
+
rawResponse: {
|
|
324
|
+
statusCode: currentRawResponse!.status,
|
|
325
|
+
body: currentRawResponse!.parsedBody,
|
|
326
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
|
|
331
|
+
const lro = new LroImpl(
|
|
332
|
+
sendOperation,
|
|
333
|
+
{ resourceGroupName, name, options },
|
|
334
|
+
deleteOperationSpec
|
|
335
|
+
);
|
|
336
|
+
return new LroEngine(lro, {
|
|
337
|
+
resumeFrom: options?.resumeFrom,
|
|
338
|
+
intervalInMs: options?.updateIntervalInMs
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* Description for Delete a Kubernetes Environment.
|
|
344
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
345
|
+
* @param name Name of the Kubernetes Environment.
|
|
346
|
+
* @param options The options parameters.
|
|
347
|
+
*/
|
|
348
|
+
async beginDeleteAndWait(
|
|
349
|
+
resourceGroupName: string,
|
|
350
|
+
name: string,
|
|
351
|
+
options?: KubeEnvironmentsDeleteOptionalParams
|
|
352
|
+
): Promise<void> {
|
|
353
|
+
const poller = await this.beginDelete(resourceGroupName, name, options);
|
|
354
|
+
return poller.pollUntilDone();
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* Description for Creates or updates a Kubernetes Environment.
|
|
359
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
360
|
+
* @param name Name of the Kubernetes Environment.
|
|
361
|
+
* @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment.
|
|
362
|
+
* @param options The options parameters.
|
|
363
|
+
*/
|
|
364
|
+
update(
|
|
365
|
+
resourceGroupName: string,
|
|
366
|
+
name: string,
|
|
367
|
+
kubeEnvironmentEnvelope: KubeEnvironmentPatchResource,
|
|
368
|
+
options?: KubeEnvironmentsUpdateOptionalParams
|
|
369
|
+
): Promise<KubeEnvironmentsUpdateResponse> {
|
|
370
|
+
return this.client.sendOperationRequest(
|
|
371
|
+
{ resourceGroupName, name, kubeEnvironmentEnvelope, options },
|
|
372
|
+
updateOperationSpec
|
|
373
|
+
);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* ListBySubscriptionNext
|
|
378
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
379
|
+
* @param options The options parameters.
|
|
380
|
+
*/
|
|
381
|
+
private _listBySubscriptionNext(
|
|
382
|
+
nextLink: string,
|
|
383
|
+
options?: KubeEnvironmentsListBySubscriptionNextOptionalParams
|
|
384
|
+
): Promise<KubeEnvironmentsListBySubscriptionNextResponse> {
|
|
385
|
+
return this.client.sendOperationRequest(
|
|
386
|
+
{ nextLink, options },
|
|
387
|
+
listBySubscriptionNextOperationSpec
|
|
388
|
+
);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* ListByResourceGroupNext
|
|
393
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
394
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
395
|
+
* @param options The options parameters.
|
|
396
|
+
*/
|
|
397
|
+
private _listByResourceGroupNext(
|
|
398
|
+
resourceGroupName: string,
|
|
399
|
+
nextLink: string,
|
|
400
|
+
options?: KubeEnvironmentsListByResourceGroupNextOptionalParams
|
|
401
|
+
): Promise<KubeEnvironmentsListByResourceGroupNextResponse> {
|
|
402
|
+
return this.client.sendOperationRequest(
|
|
403
|
+
{ resourceGroupName, nextLink, options },
|
|
404
|
+
listByResourceGroupNextOperationSpec
|
|
405
|
+
);
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
// Operation Specifications
|
|
409
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
410
|
+
|
|
411
|
+
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
412
|
+
path:
|
|
413
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.Web/kubeEnvironments",
|
|
414
|
+
httpMethod: "GET",
|
|
415
|
+
responses: {
|
|
416
|
+
200: {
|
|
417
|
+
bodyMapper: Mappers.KubeEnvironmentCollection
|
|
418
|
+
},
|
|
419
|
+
default: {
|
|
420
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
queryParameters: [Parameters.apiVersion],
|
|
424
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
425
|
+
headerParameters: [Parameters.accept],
|
|
426
|
+
serializer
|
|
427
|
+
};
|
|
428
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
429
|
+
path:
|
|
430
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/kubeEnvironments",
|
|
431
|
+
httpMethod: "GET",
|
|
432
|
+
responses: {
|
|
433
|
+
200: {
|
|
434
|
+
bodyMapper: Mappers.KubeEnvironmentCollection
|
|
435
|
+
},
|
|
436
|
+
default: {
|
|
437
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
queryParameters: [Parameters.apiVersion],
|
|
441
|
+
urlParameters: [
|
|
442
|
+
Parameters.$host,
|
|
443
|
+
Parameters.subscriptionId,
|
|
444
|
+
Parameters.resourceGroupName
|
|
445
|
+
],
|
|
446
|
+
headerParameters: [Parameters.accept],
|
|
447
|
+
serializer
|
|
448
|
+
};
|
|
449
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
450
|
+
path:
|
|
451
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/kubeEnvironments/{name}",
|
|
452
|
+
httpMethod: "GET",
|
|
453
|
+
responses: {
|
|
454
|
+
200: {
|
|
455
|
+
bodyMapper: Mappers.KubeEnvironment
|
|
456
|
+
},
|
|
457
|
+
default: {
|
|
458
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
queryParameters: [Parameters.apiVersion],
|
|
462
|
+
urlParameters: [
|
|
463
|
+
Parameters.$host,
|
|
464
|
+
Parameters.subscriptionId,
|
|
465
|
+
Parameters.resourceGroupName,
|
|
466
|
+
Parameters.name
|
|
467
|
+
],
|
|
468
|
+
headerParameters: [Parameters.accept],
|
|
469
|
+
serializer
|
|
470
|
+
};
|
|
471
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
472
|
+
path:
|
|
473
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/kubeEnvironments/{name}",
|
|
474
|
+
httpMethod: "PUT",
|
|
475
|
+
responses: {
|
|
476
|
+
200: {
|
|
477
|
+
bodyMapper: Mappers.KubeEnvironment
|
|
478
|
+
},
|
|
479
|
+
201: {
|
|
480
|
+
bodyMapper: Mappers.KubeEnvironment
|
|
481
|
+
},
|
|
482
|
+
202: {
|
|
483
|
+
bodyMapper: Mappers.KubeEnvironment
|
|
484
|
+
},
|
|
485
|
+
204: {
|
|
486
|
+
bodyMapper: Mappers.KubeEnvironment
|
|
487
|
+
},
|
|
488
|
+
default: {
|
|
489
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
requestBody: Parameters.kubeEnvironmentEnvelope,
|
|
493
|
+
queryParameters: [Parameters.apiVersion],
|
|
494
|
+
urlParameters: [
|
|
495
|
+
Parameters.$host,
|
|
496
|
+
Parameters.subscriptionId,
|
|
497
|
+
Parameters.resourceGroupName,
|
|
498
|
+
Parameters.name
|
|
499
|
+
],
|
|
500
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
501
|
+
mediaType: "json",
|
|
502
|
+
serializer
|
|
503
|
+
};
|
|
504
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
505
|
+
path:
|
|
506
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/kubeEnvironments/{name}",
|
|
507
|
+
httpMethod: "DELETE",
|
|
508
|
+
responses: {
|
|
509
|
+
200: {},
|
|
510
|
+
201: {},
|
|
511
|
+
202: {},
|
|
512
|
+
204: {},
|
|
513
|
+
default: {
|
|
514
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
queryParameters: [Parameters.apiVersion],
|
|
518
|
+
urlParameters: [
|
|
519
|
+
Parameters.$host,
|
|
520
|
+
Parameters.subscriptionId,
|
|
521
|
+
Parameters.resourceGroupName,
|
|
522
|
+
Parameters.name
|
|
523
|
+
],
|
|
524
|
+
headerParameters: [Parameters.accept],
|
|
525
|
+
serializer
|
|
526
|
+
};
|
|
527
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
528
|
+
path:
|
|
529
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/kubeEnvironments/{name}",
|
|
530
|
+
httpMethod: "PATCH",
|
|
531
|
+
responses: {
|
|
532
|
+
200: {
|
|
533
|
+
bodyMapper: Mappers.KubeEnvironment
|
|
534
|
+
},
|
|
535
|
+
201: {
|
|
536
|
+
bodyMapper: Mappers.KubeEnvironment
|
|
537
|
+
},
|
|
538
|
+
default: {
|
|
539
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
requestBody: Parameters.kubeEnvironmentEnvelope1,
|
|
543
|
+
queryParameters: [Parameters.apiVersion],
|
|
544
|
+
urlParameters: [
|
|
545
|
+
Parameters.$host,
|
|
546
|
+
Parameters.subscriptionId,
|
|
547
|
+
Parameters.resourceGroupName,
|
|
548
|
+
Parameters.name
|
|
549
|
+
],
|
|
550
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
551
|
+
mediaType: "json",
|
|
552
|
+
serializer
|
|
553
|
+
};
|
|
554
|
+
const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
555
|
+
path: "{nextLink}",
|
|
556
|
+
httpMethod: "GET",
|
|
557
|
+
responses: {
|
|
558
|
+
200: {
|
|
559
|
+
bodyMapper: Mappers.KubeEnvironmentCollection
|
|
560
|
+
},
|
|
561
|
+
default: {
|
|
562
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
563
|
+
}
|
|
564
|
+
},
|
|
565
|
+
queryParameters: [Parameters.apiVersion],
|
|
566
|
+
urlParameters: [
|
|
567
|
+
Parameters.$host,
|
|
568
|
+
Parameters.subscriptionId,
|
|
569
|
+
Parameters.nextLink
|
|
570
|
+
],
|
|
571
|
+
headerParameters: [Parameters.accept],
|
|
572
|
+
serializer
|
|
573
|
+
};
|
|
574
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
575
|
+
path: "{nextLink}",
|
|
576
|
+
httpMethod: "GET",
|
|
577
|
+
responses: {
|
|
578
|
+
200: {
|
|
579
|
+
bodyMapper: Mappers.KubeEnvironmentCollection
|
|
580
|
+
},
|
|
581
|
+
default: {
|
|
582
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
583
|
+
}
|
|
584
|
+
},
|
|
585
|
+
queryParameters: [Parameters.apiVersion],
|
|
586
|
+
urlParameters: [
|
|
587
|
+
Parameters.$host,
|
|
588
|
+
Parameters.subscriptionId,
|
|
589
|
+
Parameters.resourceGroupName,
|
|
590
|
+
Parameters.nextLink
|
|
591
|
+
],
|
|
592
|
+
headerParameters: [Parameters.accept],
|
|
593
|
+
serializer
|
|
594
|
+
};
|