Initial commit

This commit is contained in:
2025-03-07 19:22:02 +01:00
commit 4a98255d83
55743 changed files with 5280367 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
/// <reference lib="esnext.asynciterable" />
export { getContinuationToken } from "./pagingHelper";
export * from "./models";
export { WebSiteManagementClient } from "./webSiteManagementClient";
export * from "./operationsInterfaces";
//# sourceMappingURL=index.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,cAAc,wBAAwB,CAAC"}
+13
View File
@@ -0,0 +1,13 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
/// <reference lib="esnext.asynciterable" />
export { getContinuationToken } from "./pagingHelper";
export * from "./models";
export { WebSiteManagementClient } from "./webSiteManagementClient";
export * from "./operationsInterfaces";
//# sourceMappingURL=index.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,cAAc,wBAAwB,CAAC"}
+16
View File
@@ -0,0 +1,16 @@
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
export declare class LroImpl<T> implements LongRunningOperation<T> {
private sendOperationFn;
private args;
private spec;
requestPath: string;
requestMethod: string;
constructor(sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>, args: Record<string, unknown>, spec: {
readonly requestBody?: unknown;
readonly path?: string;
readonly httpMethod: string;
} & Record<string, any>, requestPath?: string, requestMethod?: string);
sendInitialRequest(): Promise<LroResponse<T>>;
sendPollRequest(path: string): Promise<LroResponse<T>>;
}
//# sourceMappingURL=lroImpl.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,qBAAa,OAAO,CAAC,CAAC,CAAE,YAAW,oBAAoB,CAAC,CAAC,CAAC;IAEtD,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,IAAI;IAKL,WAAW,EAAE,MAAM;IACnB,aAAa,EAAE,MAAM;gBARpB,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAClE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,IAAI,EAAE;QACZ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAChB,WAAW,GAAE,MAAmB,EAChC,aAAa,GAAE,MAAwB;IAEnC,kBAAkB,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAG7C,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;CAQpE"}
+29
View File
@@ -0,0 +1,29 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { __awaiter, __rest } from "tslib";
export class LroImpl {
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
this.sendOperationFn = sendOperationFn;
this.args = args;
this.spec = spec;
this.requestPath = requestPath;
this.requestMethod = requestMethod;
}
sendInitialRequest() {
return __awaiter(this, void 0, void 0, function* () {
return this.sendOperationFn(this.args, this.spec);
});
}
sendPollRequest(path) {
return __awaiter(this, void 0, void 0, function* () {
const _a = this.spec, { requestBody } = _a, restSpec = __rest(_a, ["requestBody"]);
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
});
}
}
//# sourceMappingURL=lroImpl.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,MAAM,OAAO,OAAO;IAClB,YACU,eAAkE,EAClE,IAA6B,EAC7B,IAIe,EAChB,cAAsB,IAAI,CAAC,IAAK,EAChC,gBAAwB,IAAI,CAAC,UAAU;QARtC,oBAAe,GAAf,eAAe,CAAmD;QAClE,SAAI,GAAJ,IAAI,CAAyB;QAC7B,SAAI,GAAJ,IAAI,CAIW;QAChB,gBAAW,GAAX,WAAW,CAAqB;QAChC,kBAAa,GAAb,aAAa,CAA0B;IAC7C,CAAC;IACS,kBAAkB;;YAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QACpD,CAAC;KAAA;IACY,eAAe,CAAC,IAAY;;YACvC,MAAM,KAA+B,IAAI,CAAC,IAAI,EAAxC,EAAE,WAAW,OAA2B,EAAtB,QAAQ,cAA1B,eAA4B,CAAY,CAAC;YAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,kCAChC,QAAQ,KACX,IAAI,EACJ,UAAU,EAAE,KAAK,IACjB,CAAC;QACL,CAAC;KAAA;CACF"}
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
+646
View File
@@ -0,0 +1,646 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
/** Known values of {@link ResourceNotRenewableReason} that the service accepts. */
export var KnownResourceNotRenewableReason;
(function (KnownResourceNotRenewableReason) {
/** RegistrationStatusNotSupportedForRenewal */
KnownResourceNotRenewableReason["RegistrationStatusNotSupportedForRenewal"] = "RegistrationStatusNotSupportedForRenewal";
/** ExpirationNotInRenewalTimeRange */
KnownResourceNotRenewableReason["ExpirationNotInRenewalTimeRange"] = "ExpirationNotInRenewalTimeRange";
/** SubscriptionNotActive */
KnownResourceNotRenewableReason["SubscriptionNotActive"] = "SubscriptionNotActive";
})(KnownResourceNotRenewableReason || (KnownResourceNotRenewableReason = {}));
/** Known values of {@link LoadBalancingMode} that the service accepts. */
export var KnownLoadBalancingMode;
(function (KnownLoadBalancingMode) {
/** None */
KnownLoadBalancingMode["None"] = "None";
/** Web */
KnownLoadBalancingMode["Web"] = "Web";
/** Publishing */
KnownLoadBalancingMode["Publishing"] = "Publishing";
/** WebPublishing */
KnownLoadBalancingMode["WebPublishing"] = "Web, Publishing";
})(KnownLoadBalancingMode || (KnownLoadBalancingMode = {}));
/** Known values of {@link UpgradePreference} that the service accepts. */
export var KnownUpgradePreference;
(function (KnownUpgradePreference) {
/** No preference on when this App Service Environment will be upgraded */
KnownUpgradePreference["None"] = "None";
/** This App Service Environment will be upgraded before others in the same region that have Upgrade Preference 'Late' */
KnownUpgradePreference["Early"] = "Early";
/** This App Service Environment will be upgraded after others in the same region that have Upgrade Preference 'Early' */
KnownUpgradePreference["Late"] = "Late";
/** ASEv3 only. Once an upgrade is available, this App Service Environment will wait 10 days for the upgrade to be manually initiated. After 10 days the upgrade will begin automatically */
KnownUpgradePreference["Manual"] = "Manual";
})(KnownUpgradePreference || (KnownUpgradePreference = {}));
/** Known values of {@link UpgradeAvailability} that the service accepts. */
export var KnownUpgradeAvailability;
(function (KnownUpgradeAvailability) {
/** No upgrade is currently available for this App Service Environment */
KnownUpgradeAvailability["None"] = "None";
/** An upgrade is ready to be manually initiated on this App Service Environment */
KnownUpgradeAvailability["Ready"] = "Ready";
})(KnownUpgradeAvailability || (KnownUpgradeAvailability = {}));
/** Known values of {@link ScmType} that the service accepts. */
export var KnownScmType;
(function (KnownScmType) {
/** None */
KnownScmType["None"] = "None";
/** Dropbox */
KnownScmType["Dropbox"] = "Dropbox";
/** Tfs */
KnownScmType["Tfs"] = "Tfs";
/** LocalGit */
KnownScmType["LocalGit"] = "LocalGit";
/** GitHub */
KnownScmType["GitHub"] = "GitHub";
/** CodePlexGit */
KnownScmType["CodePlexGit"] = "CodePlexGit";
/** CodePlexHg */
KnownScmType["CodePlexHg"] = "CodePlexHg";
/** BitbucketGit */
KnownScmType["BitbucketGit"] = "BitbucketGit";
/** BitbucketHg */
KnownScmType["BitbucketHg"] = "BitbucketHg";
/** ExternalGit */
KnownScmType["ExternalGit"] = "ExternalGit";
/** ExternalHg */
KnownScmType["ExternalHg"] = "ExternalHg";
/** OneDrive */
KnownScmType["OneDrive"] = "OneDrive";
/** VSO */
KnownScmType["VSO"] = "VSO";
/** Vstsrm */
KnownScmType["Vstsrm"] = "VSTSRM";
})(KnownScmType || (KnownScmType = {}));
/** Known values of {@link IpFilterTag} that the service accepts. */
export var KnownIpFilterTag;
(function (KnownIpFilterTag) {
/** Default */
KnownIpFilterTag["Default"] = "Default";
/** XffProxy */
KnownIpFilterTag["XffProxy"] = "XffProxy";
/** ServiceTag */
KnownIpFilterTag["ServiceTag"] = "ServiceTag";
})(KnownIpFilterTag || (KnownIpFilterTag = {}));
/** Known values of {@link SupportedTlsVersions} that the service accepts. */
export var KnownSupportedTlsVersions;
(function (KnownSupportedTlsVersions) {
/** One0 */
KnownSupportedTlsVersions["One0"] = "1.0";
/** One1 */
KnownSupportedTlsVersions["One1"] = "1.1";
/** One2 */
KnownSupportedTlsVersions["One2"] = "1.2";
})(KnownSupportedTlsVersions || (KnownSupportedTlsVersions = {}));
/** Known values of {@link FtpsState} that the service accepts. */
export var KnownFtpsState;
(function (KnownFtpsState) {
/** AllAllowed */
KnownFtpsState["AllAllowed"] = "AllAllowed";
/** FtpsOnly */
KnownFtpsState["FtpsOnly"] = "FtpsOnly";
/** Disabled */
KnownFtpsState["Disabled"] = "Disabled";
})(KnownFtpsState || (KnownFtpsState = {}));
/** Known values of {@link RouteType} that the service accepts. */
export var KnownRouteType;
(function (KnownRouteType) {
/** Default */
KnownRouteType["Default"] = "DEFAULT";
/** Inherited */
KnownRouteType["Inherited"] = "INHERITED";
/** Static */
KnownRouteType["Static"] = "STATIC";
})(KnownRouteType || (KnownRouteType = {}));
/** Known values of {@link ContainerAppProvisioningState} that the service accepts. */
export var KnownContainerAppProvisioningState;
(function (KnownContainerAppProvisioningState) {
/** InProgress */
KnownContainerAppProvisioningState["InProgress"] = "InProgress";
/** Succeeded */
KnownContainerAppProvisioningState["Succeeded"] = "Succeeded";
/** Failed */
KnownContainerAppProvisioningState["Failed"] = "Failed";
/** Canceled */
KnownContainerAppProvisioningState["Canceled"] = "Canceled";
})(KnownContainerAppProvisioningState || (KnownContainerAppProvisioningState = {}));
/** Known values of {@link ActiveRevisionsMode} that the service accepts. */
export var KnownActiveRevisionsMode;
(function (KnownActiveRevisionsMode) {
/** Multiple */
KnownActiveRevisionsMode["Multiple"] = "multiple";
/** Single */
KnownActiveRevisionsMode["Single"] = "single";
})(KnownActiveRevisionsMode || (KnownActiveRevisionsMode = {}));
/** Known values of {@link IngressTransportMethod} that the service accepts. */
export var KnownIngressTransportMethod;
(function (KnownIngressTransportMethod) {
/** Auto */
KnownIngressTransportMethod["Auto"] = "auto";
/** Http */
KnownIngressTransportMethod["Http"] = "http";
/** Http2 */
KnownIngressTransportMethod["Http2"] = "http2";
})(KnownIngressTransportMethod || (KnownIngressTransportMethod = {}));
/** Known values of {@link RevisionHealthState} that the service accepts. */
export var KnownRevisionHealthState;
(function (KnownRevisionHealthState) {
/** Healthy */
KnownRevisionHealthState["Healthy"] = "Healthy";
/** Unhealthy */
KnownRevisionHealthState["Unhealthy"] = "Unhealthy";
/** None */
KnownRevisionHealthState["None"] = "None";
})(KnownRevisionHealthState || (KnownRevisionHealthState = {}));
/** Known values of {@link RevisionProvisioningState} that the service accepts. */
export var KnownRevisionProvisioningState;
(function (KnownRevisionProvisioningState) {
/** Provisioning */
KnownRevisionProvisioningState["Provisioning"] = "Provisioning";
/** Provisioned */
KnownRevisionProvisioningState["Provisioned"] = "Provisioned";
/** Failed */
KnownRevisionProvisioningState["Failed"] = "Failed";
/** Deprovisioning */
KnownRevisionProvisioningState["Deprovisioning"] = "Deprovisioning";
/** Deprovisioned */
KnownRevisionProvisioningState["Deprovisioned"] = "Deprovisioned";
})(KnownRevisionProvisioningState || (KnownRevisionProvisioningState = {}));
/** Known values of {@link Enum14} that the service accepts. */
export var KnownEnum14;
(function (KnownEnum14) {
/** Windows */
KnownEnum14["Windows"] = "Windows";
/** Linux */
KnownEnum14["Linux"] = "Linux";
/** WindowsFunctions */
KnownEnum14["WindowsFunctions"] = "WindowsFunctions";
/** LinuxFunctions */
KnownEnum14["LinuxFunctions"] = "LinuxFunctions";
/** All */
KnownEnum14["All"] = "All";
})(KnownEnum14 || (KnownEnum14 = {}));
/** Known values of {@link Enum15} that the service accepts. */
export var KnownEnum15;
(function (KnownEnum15) {
/** Windows */
KnownEnum15["Windows"] = "Windows";
/** Linux */
KnownEnum15["Linux"] = "Linux";
/** All */
KnownEnum15["All"] = "All";
})(KnownEnum15 || (KnownEnum15 = {}));
/** Known values of {@link Enum16} that the service accepts. */
export var KnownEnum16;
(function (KnownEnum16) {
/** Windows */
KnownEnum16["Windows"] = "Windows";
/** Linux */
KnownEnum16["Linux"] = "Linux";
/** All */
KnownEnum16["All"] = "All";
})(KnownEnum16 || (KnownEnum16 = {}));
/** Known values of {@link Enum17} that the service accepts. */
export var KnownEnum17;
(function (KnownEnum17) {
/** Windows */
KnownEnum17["Windows"] = "Windows";
/** Linux */
KnownEnum17["Linux"] = "Linux";
/** All */
KnownEnum17["All"] = "All";
})(KnownEnum17 || (KnownEnum17 = {}));
/** Known values of {@link Enum18} that the service accepts. */
export var KnownEnum18;
(function (KnownEnum18) {
/** Windows */
KnownEnum18["Windows"] = "Windows";
/** Linux */
KnownEnum18["Linux"] = "Linux";
/** All */
KnownEnum18["All"] = "All";
})(KnownEnum18 || (KnownEnum18 = {}));
/** Known values of {@link Enum19} that the service accepts. */
export var KnownEnum19;
(function (KnownEnum19) {
/** Windows */
KnownEnum19["Windows"] = "Windows";
/** Linux */
KnownEnum19["Linux"] = "Linux";
/** WindowsFunctions */
KnownEnum19["WindowsFunctions"] = "WindowsFunctions";
/** LinuxFunctions */
KnownEnum19["LinuxFunctions"] = "LinuxFunctions";
/** All */
KnownEnum19["All"] = "All";
})(KnownEnum19 || (KnownEnum19 = {}));
/** Known values of {@link ResourceScopeType} that the service accepts. */
export var KnownResourceScopeType;
(function (KnownResourceScopeType) {
/** ServerFarm */
KnownResourceScopeType["ServerFarm"] = "ServerFarm";
/** Subscription */
KnownResourceScopeType["Subscription"] = "Subscription";
/** WebSite */
KnownResourceScopeType["WebSite"] = "WebSite";
})(KnownResourceScopeType || (KnownResourceScopeType = {}));
/** Known values of {@link CheckNameResourceTypes} that the service accepts. */
export var KnownCheckNameResourceTypes;
(function (KnownCheckNameResourceTypes) {
/** Site */
KnownCheckNameResourceTypes["Site"] = "Site";
/** Slot */
KnownCheckNameResourceTypes["Slot"] = "Slot";
/** HostingEnvironment */
KnownCheckNameResourceTypes["HostingEnvironment"] = "HostingEnvironment";
/** PublishingUser */
KnownCheckNameResourceTypes["PublishingUser"] = "PublishingUser";
/** MicrosoftWebSites */
KnownCheckNameResourceTypes["MicrosoftWebSites"] = "Microsoft.Web/sites";
/** MicrosoftWebSitesSlots */
KnownCheckNameResourceTypes["MicrosoftWebSitesSlots"] = "Microsoft.Web/sites/slots";
/** MicrosoftWebHostingEnvironments */
KnownCheckNameResourceTypes["MicrosoftWebHostingEnvironments"] = "Microsoft.Web/hostingEnvironments";
/** MicrosoftWebPublishingUsers */
KnownCheckNameResourceTypes["MicrosoftWebPublishingUsers"] = "Microsoft.Web/publishingUsers";
})(KnownCheckNameResourceTypes || (KnownCheckNameResourceTypes = {}));
/** Known values of {@link InAvailabilityReasonType} that the service accepts. */
export var KnownInAvailabilityReasonType;
(function (KnownInAvailabilityReasonType) {
/** Invalid */
KnownInAvailabilityReasonType["Invalid"] = "Invalid";
/** AlreadyExists */
KnownInAvailabilityReasonType["AlreadyExists"] = "AlreadyExists";
})(KnownInAvailabilityReasonType || (KnownInAvailabilityReasonType = {}));
/** Known values of {@link SkuName} that the service accepts. */
export var KnownSkuName;
(function (KnownSkuName) {
/** Free */
KnownSkuName["Free"] = "Free";
/** Shared */
KnownSkuName["Shared"] = "Shared";
/** Basic */
KnownSkuName["Basic"] = "Basic";
/** Standard */
KnownSkuName["Standard"] = "Standard";
/** Premium */
KnownSkuName["Premium"] = "Premium";
/** Dynamic */
KnownSkuName["Dynamic"] = "Dynamic";
/** Isolated */
KnownSkuName["Isolated"] = "Isolated";
/** IsolatedV2 */
KnownSkuName["IsolatedV2"] = "IsolatedV2";
/** PremiumV2 */
KnownSkuName["PremiumV2"] = "PremiumV2";
/** PremiumV3 */
KnownSkuName["PremiumV3"] = "PremiumV3";
/** PremiumContainer */
KnownSkuName["PremiumContainer"] = "PremiumContainer";
/** ElasticPremium */
KnownSkuName["ElasticPremium"] = "ElasticPremium";
/** ElasticIsolated */
KnownSkuName["ElasticIsolated"] = "ElasticIsolated";
})(KnownSkuName || (KnownSkuName = {}));
/** Known values of {@link ValidateResourceTypes} that the service accepts. */
export var KnownValidateResourceTypes;
(function (KnownValidateResourceTypes) {
/** ServerFarm */
KnownValidateResourceTypes["ServerFarm"] = "ServerFarm";
/** Site */
KnownValidateResourceTypes["Site"] = "Site";
/** MicrosoftWebHostingEnvironments */
KnownValidateResourceTypes["MicrosoftWebHostingEnvironments"] = "Microsoft.Web/hostingEnvironments";
})(KnownValidateResourceTypes || (KnownValidateResourceTypes = {}));
/** Known values of {@link EnterpriseGradeCdnStatus} that the service accepts. */
export var KnownEnterpriseGradeCdnStatus;
(function (KnownEnterpriseGradeCdnStatus) {
/** Enabled */
KnownEnterpriseGradeCdnStatus["Enabled"] = "Enabled";
/** Enabling */
KnownEnterpriseGradeCdnStatus["Enabling"] = "Enabling";
/** Disabled */
KnownEnterpriseGradeCdnStatus["Disabled"] = "Disabled";
/** Disabling */
KnownEnterpriseGradeCdnStatus["Disabling"] = "Disabling";
})(KnownEnterpriseGradeCdnStatus || (KnownEnterpriseGradeCdnStatus = {}));
/** Known values of {@link BuildStatus} that the service accepts. */
export var KnownBuildStatus;
(function (KnownBuildStatus) {
/** WaitingForDeployment */
KnownBuildStatus["WaitingForDeployment"] = "WaitingForDeployment";
/** Uploading */
KnownBuildStatus["Uploading"] = "Uploading";
/** Deploying */
KnownBuildStatus["Deploying"] = "Deploying";
/** Ready */
KnownBuildStatus["Ready"] = "Ready";
/** Failed */
KnownBuildStatus["Failed"] = "Failed";
/** Deleting */
KnownBuildStatus["Deleting"] = "Deleting";
/** Detached */
KnownBuildStatus["Detached"] = "Detached";
})(KnownBuildStatus || (KnownBuildStatus = {}));
/** Known values of {@link TriggerTypes} that the service accepts. */
export var KnownTriggerTypes;
(function (KnownTriggerTypes) {
/** HttpTrigger */
KnownTriggerTypes["HttpTrigger"] = "HttpTrigger";
/** Unknown */
KnownTriggerTypes["Unknown"] = "Unknown";
})(KnownTriggerTypes || (KnownTriggerTypes = {}));
/** Known values of {@link CustomDomainStatus} that the service accepts. */
export var KnownCustomDomainStatus;
(function (KnownCustomDomainStatus) {
/** RetrievingValidationToken */
KnownCustomDomainStatus["RetrievingValidationToken"] = "RetrievingValidationToken";
/** Validating */
KnownCustomDomainStatus["Validating"] = "Validating";
/** Adding */
KnownCustomDomainStatus["Adding"] = "Adding";
/** Ready */
KnownCustomDomainStatus["Ready"] = "Ready";
/** Failed */
KnownCustomDomainStatus["Failed"] = "Failed";
/** Deleting */
KnownCustomDomainStatus["Deleting"] = "Deleting";
/** Unhealthy */
KnownCustomDomainStatus["Unhealthy"] = "Unhealthy";
})(KnownCustomDomainStatus || (KnownCustomDomainStatus = {}));
/** Known values of {@link DatabaseType} that the service accepts. */
export var KnownDatabaseType;
(function (KnownDatabaseType) {
/** SqlAzure */
KnownDatabaseType["SqlAzure"] = "SqlAzure";
/** MySql */
KnownDatabaseType["MySql"] = "MySql";
/** LocalMySql */
KnownDatabaseType["LocalMySql"] = "LocalMySql";
/** PostgreSql */
KnownDatabaseType["PostgreSql"] = "PostgreSql";
})(KnownDatabaseType || (KnownDatabaseType = {}));
/** Known values of {@link DeploymentBuildStatus} that the service accepts. */
export var KnownDeploymentBuildStatus;
(function (KnownDeploymentBuildStatus) {
/** TimedOut */
KnownDeploymentBuildStatus["TimedOut"] = "TimedOut";
/** RuntimeFailed */
KnownDeploymentBuildStatus["RuntimeFailed"] = "RuntimeFailed";
/** BuildAborted */
KnownDeploymentBuildStatus["BuildAborted"] = "BuildAborted";
/** BuildFailed */
KnownDeploymentBuildStatus["BuildFailed"] = "BuildFailed";
/** BuildRequestReceived */
KnownDeploymentBuildStatus["BuildRequestReceived"] = "BuildRequestReceived";
/** BuildPending */
KnownDeploymentBuildStatus["BuildPending"] = "BuildPending";
/** BuildInProgress */
KnownDeploymentBuildStatus["BuildInProgress"] = "BuildInProgress";
/** BuildSuccessful */
KnownDeploymentBuildStatus["BuildSuccessful"] = "BuildSuccessful";
/** PostBuildRestartRequired */
KnownDeploymentBuildStatus["PostBuildRestartRequired"] = "PostBuildRestartRequired";
/** StartPolling */
KnownDeploymentBuildStatus["StartPolling"] = "StartPolling";
/** StartPollingWithRestart */
KnownDeploymentBuildStatus["StartPollingWithRestart"] = "StartPollingWithRestart";
/** RuntimeStarting */
KnownDeploymentBuildStatus["RuntimeStarting"] = "RuntimeStarting";
/** RuntimeSuccessful */
KnownDeploymentBuildStatus["RuntimeSuccessful"] = "RuntimeSuccessful";
})(KnownDeploymentBuildStatus || (KnownDeploymentBuildStatus = {}));
/** Known values of {@link PublishingProfileFormat} that the service accepts. */
export var KnownPublishingProfileFormat;
(function (KnownPublishingProfileFormat) {
/** FileZilla3 */
KnownPublishingProfileFormat["FileZilla3"] = "FileZilla3";
/** WebDeploy */
KnownPublishingProfileFormat["WebDeploy"] = "WebDeploy";
/** Ftp */
KnownPublishingProfileFormat["Ftp"] = "Ftp";
})(KnownPublishingProfileFormat || (KnownPublishingProfileFormat = {}));
/** Known values of {@link KeyType} that the service accepts. */
export var KnownKeyType;
(function (KnownKeyType) {
/** NotSpecified */
KnownKeyType["NotSpecified"] = "NotSpecified";
/** Primary */
KnownKeyType["Primary"] = "Primary";
/** Secondary */
KnownKeyType["Secondary"] = "Secondary";
})(KnownKeyType || (KnownKeyType = {}));
/** Known values of {@link WorkflowStatus} that the service accepts. */
export var KnownWorkflowStatus;
(function (KnownWorkflowStatus) {
/** NotSpecified */
KnownWorkflowStatus["NotSpecified"] = "NotSpecified";
/** Paused */
KnownWorkflowStatus["Paused"] = "Paused";
/** Running */
KnownWorkflowStatus["Running"] = "Running";
/** Waiting */
KnownWorkflowStatus["Waiting"] = "Waiting";
/** Succeeded */
KnownWorkflowStatus["Succeeded"] = "Succeeded";
/** Skipped */
KnownWorkflowStatus["Skipped"] = "Skipped";
/** Suspended */
KnownWorkflowStatus["Suspended"] = "Suspended";
/** Cancelled */
KnownWorkflowStatus["Cancelled"] = "Cancelled";
/** Failed */
KnownWorkflowStatus["Failed"] = "Failed";
/** Faulted */
KnownWorkflowStatus["Faulted"] = "Faulted";
/** TimedOut */
KnownWorkflowStatus["TimedOut"] = "TimedOut";
/** Aborted */
KnownWorkflowStatus["Aborted"] = "Aborted";
/** Ignored */
KnownWorkflowStatus["Ignored"] = "Ignored";
})(KnownWorkflowStatus || (KnownWorkflowStatus = {}));
/** Known values of {@link ParameterType} that the service accepts. */
export var KnownParameterType;
(function (KnownParameterType) {
/** NotSpecified */
KnownParameterType["NotSpecified"] = "NotSpecified";
/** String */
KnownParameterType["String"] = "String";
/** SecureString */
KnownParameterType["SecureString"] = "SecureString";
/** Int */
KnownParameterType["Int"] = "Int";
/** Float */
KnownParameterType["Float"] = "Float";
/** Bool */
KnownParameterType["Bool"] = "Bool";
/** Array */
KnownParameterType["Array"] = "Array";
/** Object */
KnownParameterType["Object"] = "Object";
/** SecureObject */
KnownParameterType["SecureObject"] = "SecureObject";
})(KnownParameterType || (KnownParameterType = {}));
/** Known values of {@link WorkflowTriggerProvisioningState} that the service accepts. */
export var KnownWorkflowTriggerProvisioningState;
(function (KnownWorkflowTriggerProvisioningState) {
/** NotSpecified */
KnownWorkflowTriggerProvisioningState["NotSpecified"] = "NotSpecified";
/** Accepted */
KnownWorkflowTriggerProvisioningState["Accepted"] = "Accepted";
/** Running */
KnownWorkflowTriggerProvisioningState["Running"] = "Running";
/** Ready */
KnownWorkflowTriggerProvisioningState["Ready"] = "Ready";
/** Creating */
KnownWorkflowTriggerProvisioningState["Creating"] = "Creating";
/** Created */
KnownWorkflowTriggerProvisioningState["Created"] = "Created";
/** Deleting */
KnownWorkflowTriggerProvisioningState["Deleting"] = "Deleting";
/** Deleted */
KnownWorkflowTriggerProvisioningState["Deleted"] = "Deleted";
/** Canceled */
KnownWorkflowTriggerProvisioningState["Canceled"] = "Canceled";
/** Failed */
KnownWorkflowTriggerProvisioningState["Failed"] = "Failed";
/** Succeeded */
KnownWorkflowTriggerProvisioningState["Succeeded"] = "Succeeded";
/** Moving */
KnownWorkflowTriggerProvisioningState["Moving"] = "Moving";
/** Updating */
KnownWorkflowTriggerProvisioningState["Updating"] = "Updating";
/** Registering */
KnownWorkflowTriggerProvisioningState["Registering"] = "Registering";
/** Registered */
KnownWorkflowTriggerProvisioningState["Registered"] = "Registered";
/** Unregistering */
KnownWorkflowTriggerProvisioningState["Unregistering"] = "Unregistering";
/** Unregistered */
KnownWorkflowTriggerProvisioningState["Unregistered"] = "Unregistered";
/** Completed */
KnownWorkflowTriggerProvisioningState["Completed"] = "Completed";
})(KnownWorkflowTriggerProvisioningState || (KnownWorkflowTriggerProvisioningState = {}));
/** Known values of {@link WorkflowState} that the service accepts. */
export var KnownWorkflowState;
(function (KnownWorkflowState) {
/** NotSpecified */
KnownWorkflowState["NotSpecified"] = "NotSpecified";
/** Completed */
KnownWorkflowState["Completed"] = "Completed";
/** Enabled */
KnownWorkflowState["Enabled"] = "Enabled";
/** Disabled */
KnownWorkflowState["Disabled"] = "Disabled";
/** Deleted */
KnownWorkflowState["Deleted"] = "Deleted";
/** Suspended */
KnownWorkflowState["Suspended"] = "Suspended";
})(KnownWorkflowState || (KnownWorkflowState = {}));
/** Known values of {@link RecurrenceFrequency} that the service accepts. */
export var KnownRecurrenceFrequency;
(function (KnownRecurrenceFrequency) {
/** NotSpecified */
KnownRecurrenceFrequency["NotSpecified"] = "NotSpecified";
/** Second */
KnownRecurrenceFrequency["Second"] = "Second";
/** Minute */
KnownRecurrenceFrequency["Minute"] = "Minute";
/** Hour */
KnownRecurrenceFrequency["Hour"] = "Hour";
/** Day */
KnownRecurrenceFrequency["Day"] = "Day";
/** Week */
KnownRecurrenceFrequency["Week"] = "Week";
/** Month */
KnownRecurrenceFrequency["Month"] = "Month";
/** Year */
KnownRecurrenceFrequency["Year"] = "Year";
})(KnownRecurrenceFrequency || (KnownRecurrenceFrequency = {}));
/** Known values of {@link WorkflowProvisioningState} that the service accepts. */
export var KnownWorkflowProvisioningState;
(function (KnownWorkflowProvisioningState) {
/** NotSpecified */
KnownWorkflowProvisioningState["NotSpecified"] = "NotSpecified";
/** Accepted */
KnownWorkflowProvisioningState["Accepted"] = "Accepted";
/** Running */
KnownWorkflowProvisioningState["Running"] = "Running";
/** Ready */
KnownWorkflowProvisioningState["Ready"] = "Ready";
/** Creating */
KnownWorkflowProvisioningState["Creating"] = "Creating";
/** Created */
KnownWorkflowProvisioningState["Created"] = "Created";
/** Deleting */
KnownWorkflowProvisioningState["Deleting"] = "Deleting";
/** Deleted */
KnownWorkflowProvisioningState["Deleted"] = "Deleted";
/** Canceled */
KnownWorkflowProvisioningState["Canceled"] = "Canceled";
/** Failed */
KnownWorkflowProvisioningState["Failed"] = "Failed";
/** Succeeded */
KnownWorkflowProvisioningState["Succeeded"] = "Succeeded";
/** Moving */
KnownWorkflowProvisioningState["Moving"] = "Moving";
/** Updating */
KnownWorkflowProvisioningState["Updating"] = "Updating";
/** Registering */
KnownWorkflowProvisioningState["Registering"] = "Registering";
/** Registered */
KnownWorkflowProvisioningState["Registered"] = "Registered";
/** Unregistering */
KnownWorkflowProvisioningState["Unregistering"] = "Unregistering";
/** Unregistered */
KnownWorkflowProvisioningState["Unregistered"] = "Unregistered";
/** Completed */
KnownWorkflowProvisioningState["Completed"] = "Completed";
/** Renewing */
KnownWorkflowProvisioningState["Renewing"] = "Renewing";
/** Pending */
KnownWorkflowProvisioningState["Pending"] = "Pending";
/** Waiting */
KnownWorkflowProvisioningState["Waiting"] = "Waiting";
/** InProgress */
KnownWorkflowProvisioningState["InProgress"] = "InProgress";
})(KnownWorkflowProvisioningState || (KnownWorkflowProvisioningState = {}));
/** Known values of {@link OpenAuthenticationProviderType} that the service accepts. */
export var KnownOpenAuthenticationProviderType;
(function (KnownOpenAuthenticationProviderType) {
/** AAD */
KnownOpenAuthenticationProviderType["AAD"] = "AAD";
})(KnownOpenAuthenticationProviderType || (KnownOpenAuthenticationProviderType = {}));
/** Known values of {@link WorkflowSkuName} that the service accepts. */
export var KnownWorkflowSkuName;
(function (KnownWorkflowSkuName) {
/** NotSpecified */
KnownWorkflowSkuName["NotSpecified"] = "NotSpecified";
/** Free */
KnownWorkflowSkuName["Free"] = "Free";
/** Shared */
KnownWorkflowSkuName["Shared"] = "Shared";
/** Basic */
KnownWorkflowSkuName["Basic"] = "Basic";
/** Standard */
KnownWorkflowSkuName["Standard"] = "Standard";
/** Premium */
KnownWorkflowSkuName["Premium"] = "Premium";
})(KnownWorkflowSkuName || (KnownWorkflowSkuName = {}));
/** Known values of {@link Kind} that the service accepts. */
export var KnownKind;
(function (KnownKind) {
/** Stateful */
KnownKind["Stateful"] = "Stateful";
/** Stateless */
KnownKind["Stateless"] = "Stateless";
})(KnownKind || (KnownKind = {}));
//# sourceMappingURL=index.js.map
File diff suppressed because one or more lines are too long
+502
View File
@@ -0,0 +1,502 @@
import * as coreClient from "@azure/core-client";
export declare const AppServiceCertificateOrderCollection: coreClient.CompositeMapper;
export declare const AppServiceCertificate: coreClient.CompositeMapper;
export declare const CertificateDetails: coreClient.CompositeMapper;
export declare const CertificateOrderContact: coreClient.CompositeMapper;
export declare const Resource: coreClient.CompositeMapper;
export declare const DefaultErrorResponse: coreClient.CompositeMapper;
export declare const DefaultErrorResponseError: coreClient.CompositeMapper;
export declare const DefaultErrorResponseErrorDetailsItem: coreClient.CompositeMapper;
export declare const ProxyOnlyResource: coreClient.CompositeMapper;
export declare const AppServiceCertificateCollection: coreClient.CompositeMapper;
export declare const NameIdentifier: coreClient.CompositeMapper;
export declare const SiteSealRequest: coreClient.CompositeMapper;
export declare const SiteSeal: coreClient.CompositeMapper;
export declare const CertificateOrderAction: coreClient.CompositeMapper;
export declare const CertificateEmail: coreClient.CompositeMapper;
export declare const DetectorResponseCollection: coreClient.CompositeMapper;
export declare const DetectorInfo: coreClient.CompositeMapper;
export declare const SupportTopic: coreClient.CompositeMapper;
export declare const DiagnosticData: coreClient.CompositeMapper;
export declare const DataTableResponseObject: coreClient.CompositeMapper;
export declare const DataTableResponseColumn: coreClient.CompositeMapper;
export declare const Rendering: coreClient.CompositeMapper;
export declare const Status: coreClient.CompositeMapper;
export declare const DataProviderMetadata: coreClient.CompositeMapper;
export declare const KeyValuePairStringObject: coreClient.CompositeMapper;
export declare const QueryUtterancesResults: coreClient.CompositeMapper;
export declare const QueryUtterancesResult: coreClient.CompositeMapper;
export declare const SampleUtterance: coreClient.CompositeMapper;
export declare const CsmOperationCollection: coreClient.CompositeMapper;
export declare const CsmOperationDescription: coreClient.CompositeMapper;
export declare const CsmOperationDisplay: coreClient.CompositeMapper;
export declare const CsmOperationDescriptionProperties: coreClient.CompositeMapper;
export declare const ServiceSpecification: coreClient.CompositeMapper;
export declare const MetricSpecification: coreClient.CompositeMapper;
export declare const Dimension: coreClient.CompositeMapper;
export declare const MetricAvailability: coreClient.CompositeMapper;
export declare const LogSpecification: coreClient.CompositeMapper;
export declare const DomainAvailabilityCheckResult: coreClient.CompositeMapper;
export declare const DomainCollection: coreClient.CompositeMapper;
export declare const Contact: coreClient.CompositeMapper;
export declare const Address: coreClient.CompositeMapper;
export declare const HostName: coreClient.CompositeMapper;
export declare const DomainPurchaseConsent: coreClient.CompositeMapper;
export declare const DomainControlCenterSsoRequest: coreClient.CompositeMapper;
export declare const DomainRecommendationSearchParameters: coreClient.CompositeMapper;
export declare const NameIdentifierCollection: coreClient.CompositeMapper;
export declare const DomainOwnershipIdentifierCollection: coreClient.CompositeMapper;
export declare const TopLevelDomainCollection: coreClient.CompositeMapper;
export declare const TopLevelDomainAgreementOption: coreClient.CompositeMapper;
export declare const TldLegalAgreementCollection: coreClient.CompositeMapper;
export declare const TldLegalAgreement: coreClient.CompositeMapper;
export declare const AppServiceEnvironmentCollection: coreClient.CompositeMapper;
export declare const AppServiceEnvironment: coreClient.CompositeMapper;
export declare const VirtualNetworkProfile: coreClient.CompositeMapper;
export declare const NameValuePair: coreClient.CompositeMapper;
export declare const StampCapacityCollection: coreClient.CompositeMapper;
export declare const StampCapacity: coreClient.CompositeMapper;
export declare const VirtualIPMapping: coreClient.CompositeMapper;
export declare const WebAppCollection: coreClient.CompositeMapper;
export declare const HostNameSslState: coreClient.CompositeMapper;
export declare const SiteConfig: coreClient.CompositeMapper;
export declare const ConnStringInfo: coreClient.CompositeMapper;
export declare const SiteMachineKey: coreClient.CompositeMapper;
export declare const HandlerMapping: coreClient.CompositeMapper;
export declare const VirtualApplication: coreClient.CompositeMapper;
export declare const VirtualDirectory: coreClient.CompositeMapper;
export declare const Experiments: coreClient.CompositeMapper;
export declare const RampUpRule: coreClient.CompositeMapper;
export declare const SiteLimits: coreClient.CompositeMapper;
export declare const AutoHealRules: coreClient.CompositeMapper;
export declare const AutoHealTriggers: coreClient.CompositeMapper;
export declare const RequestsBasedTrigger: coreClient.CompositeMapper;
export declare const StatusCodesBasedTrigger: coreClient.CompositeMapper;
export declare const SlowRequestsBasedTrigger: coreClient.CompositeMapper;
export declare const StatusCodesRangeBasedTrigger: coreClient.CompositeMapper;
export declare const AutoHealActions: coreClient.CompositeMapper;
export declare const AutoHealCustomAction: coreClient.CompositeMapper;
export declare const CorsSettings: coreClient.CompositeMapper;
export declare const ApiDefinitionInfo: coreClient.CompositeMapper;
export declare const ApiManagementConfig: coreClient.CompositeMapper;
export declare const IpSecurityRestriction: coreClient.CompositeMapper;
export declare const AzureStorageInfoValue: coreClient.CompositeMapper;
export declare const HostingEnvironmentProfile: coreClient.CompositeMapper;
export declare const CloningInfo: coreClient.CompositeMapper;
export declare const SlotSwapStatus: coreClient.CompositeMapper;
export declare const ManagedServiceIdentity: coreClient.CompositeMapper;
export declare const UserAssignedIdentity: coreClient.CompositeMapper;
export declare const ExtendedLocation: coreClient.CompositeMapper;
export declare const HostingEnvironmentDiagnostics: coreClient.CompositeMapper;
export declare const InboundEnvironmentEndpointCollection: coreClient.CompositeMapper;
export declare const InboundEnvironmentEndpoint: coreClient.CompositeMapper;
export declare const WorkerPoolCollection: coreClient.CompositeMapper;
export declare const SkuDescription: coreClient.CompositeMapper;
export declare const SkuCapacity: coreClient.CompositeMapper;
export declare const Capability: coreClient.CompositeMapper;
export declare const ResourceMetricDefinitionCollection: coreClient.CompositeMapper;
export declare const ResourceMetricAvailability: coreClient.CompositeMapper;
export declare const SkuInfoCollection: coreClient.CompositeMapper;
export declare const SkuInfo: coreClient.CompositeMapper;
export declare const UsageCollection: coreClient.CompositeMapper;
export declare const Operation: coreClient.CompositeMapper;
export declare const ErrorEntity: coreClient.CompositeMapper;
export declare const OutboundEnvironmentEndpointCollection: coreClient.CompositeMapper;
export declare const OutboundEnvironmentEndpoint: coreClient.CompositeMapper;
export declare const EndpointDependency: coreClient.CompositeMapper;
export declare const EndpointDetail: coreClient.CompositeMapper;
export declare const PrivateEndpointConnectionCollection: coreClient.CompositeMapper;
export declare const ArmIdWrapper: coreClient.CompositeMapper;
export declare const PrivateLinkConnectionState: coreClient.CompositeMapper;
export declare const PrivateLinkResourcesWrapper: coreClient.CompositeMapper;
export declare const PrivateLinkResource: coreClient.CompositeMapper;
export declare const PrivateLinkResourceProperties: coreClient.CompositeMapper;
export declare const AppServicePlanCollection: coreClient.CompositeMapper;
export declare const KubeEnvironmentProfile: coreClient.CompositeMapper;
export declare const CsmUsageQuotaCollection: coreClient.CompositeMapper;
export declare const CsmUsageQuota: coreClient.CompositeMapper;
export declare const LocalizableString: coreClient.CompositeMapper;
export declare const ResourceCollection: coreClient.CompositeMapper;
export declare const HybridConnectionCollection: coreClient.CompositeMapper;
export declare const VnetInfo: coreClient.CompositeMapper;
export declare const CertificateCollection: coreClient.CompositeMapper;
export declare const ContainerAppCollection: coreClient.CompositeMapper;
export declare const Configuration: coreClient.CompositeMapper;
export declare const Secret: coreClient.CompositeMapper;
export declare const Ingress: coreClient.CompositeMapper;
export declare const TrafficWeight: coreClient.CompositeMapper;
export declare const RegistryCredentials: coreClient.CompositeMapper;
export declare const Template: coreClient.CompositeMapper;
export declare const Container: coreClient.CompositeMapper;
export declare const EnvironmentVar: coreClient.CompositeMapper;
export declare const ContainerResources: coreClient.CompositeMapper;
export declare const Scale: coreClient.CompositeMapper;
export declare const ScaleRule: coreClient.CompositeMapper;
export declare const QueueScaleRule: coreClient.CompositeMapper;
export declare const ScaleRuleAuth: coreClient.CompositeMapper;
export declare const CustomScaleRule: coreClient.CompositeMapper;
export declare const HttpScaleRule: coreClient.CompositeMapper;
export declare const Dapr: coreClient.CompositeMapper;
export declare const DaprComponent: coreClient.CompositeMapper;
export declare const DaprMetadata: coreClient.CompositeMapper;
export declare const SecretsCollection: coreClient.CompositeMapper;
export declare const ContainerAppSecret: coreClient.CompositeMapper;
export declare const RevisionCollection: coreClient.CompositeMapper;
export declare const DeletedWebAppCollection: coreClient.CompositeMapper;
export declare const DiagnosticCategoryCollection: coreClient.CompositeMapper;
export declare const DiagnosticAnalysisCollection: coreClient.CompositeMapper;
export declare const AbnormalTimePeriod: coreClient.CompositeMapper;
export declare const DetectorAbnormalTimePeriod: coreClient.CompositeMapper;
export declare const Solution: coreClient.CompositeMapper;
export declare const AnalysisData: coreClient.CompositeMapper;
export declare const DetectorDefinition: coreClient.CompositeMapper;
export declare const DiagnosticMetricSet: coreClient.CompositeMapper;
export declare const DiagnosticMetricSample: coreClient.CompositeMapper;
export declare const ResponseMetaData: coreClient.CompositeMapper;
export declare const DataSource: coreClient.CompositeMapper;
export declare const DiagnosticDetectorCollection: coreClient.CompositeMapper;
export declare const KubeEnvironmentCollection: coreClient.CompositeMapper;
export declare const ArcConfiguration: coreClient.CompositeMapper;
export declare const FrontEndConfiguration: coreClient.CompositeMapper;
export declare const AppLogsConfiguration: coreClient.CompositeMapper;
export declare const LogAnalyticsConfiguration: coreClient.CompositeMapper;
export declare const ContainerAppsConfiguration: coreClient.CompositeMapper;
export declare const ApplicationStackCollection: coreClient.CompositeMapper;
export declare const ApplicationStack: coreClient.CompositeMapper;
export declare const StackMajorVersion: coreClient.CompositeMapper;
export declare const StackMinorVersion: coreClient.CompositeMapper;
export declare const FunctionAppStackCollection: coreClient.CompositeMapper;
export declare const FunctionAppMajorVersion: coreClient.CompositeMapper;
export declare const FunctionAppMinorVersion: coreClient.CompositeMapper;
export declare const FunctionAppRuntimes: coreClient.CompositeMapper;
export declare const FunctionAppRuntimeSettings: coreClient.CompositeMapper;
export declare const AppInsightsWebAppStackSettings: coreClient.CompositeMapper;
export declare const GitHubActionWebAppStackSettings: coreClient.CompositeMapper;
export declare const SiteConfigPropertiesDictionary: coreClient.CompositeMapper;
export declare const WebAppStackCollection: coreClient.CompositeMapper;
export declare const WebAppMajorVersion: coreClient.CompositeMapper;
export declare const WebAppMinorVersion: coreClient.CompositeMapper;
export declare const WebAppRuntimes: coreClient.CompositeMapper;
export declare const WebAppRuntimeSettings: coreClient.CompositeMapper;
export declare const LinuxJavaContainerSettings: coreClient.CompositeMapper;
export declare const WindowsJavaContainerSettings: coreClient.CompositeMapper;
export declare const RecommendationCollection: coreClient.CompositeMapper;
export declare const ResourceHealthMetadataCollection: coreClient.CompositeMapper;
export declare const SourceControlCollection: coreClient.CompositeMapper;
export declare const BillingMeterCollection: coreClient.CompositeMapper;
export declare const ResourceNameAvailabilityRequest: coreClient.CompositeMapper;
export declare const ResourceNameAvailability: coreClient.CompositeMapper;
export declare const CustomHostnameSitesCollection: coreClient.CompositeMapper;
export declare const DeploymentLocations: coreClient.CompositeMapper;
export declare const HostingEnvironmentDeploymentInfo: coreClient.CompositeMapper;
export declare const GeoRegionCollection: coreClient.CompositeMapper;
export declare const IdentifierCollection: coreClient.CompositeMapper;
export declare const PremierAddOnOfferCollection: coreClient.CompositeMapper;
export declare const SkuInfos: coreClient.CompositeMapper;
export declare const GlobalCsmSkuDescription: coreClient.CompositeMapper;
export declare const CsmMoveResourceEnvelope: coreClient.CompositeMapper;
export declare const ValidateRequest: coreClient.CompositeMapper;
export declare const ValidateResponse: coreClient.CompositeMapper;
export declare const ValidateResponseError: coreClient.CompositeMapper;
export declare const StaticSiteBuildProperties: coreClient.CompositeMapper;
export declare const StaticSiteCollection: coreClient.CompositeMapper;
export declare const ResponseMessageEnvelopeRemotePrivateEndpointConnection: coreClient.CompositeMapper;
export declare const ArmPlan: coreClient.CompositeMapper;
export declare const StaticSiteTemplateOptions: coreClient.CompositeMapper;
export declare const StaticSiteLinkedBackend: coreClient.CompositeMapper;
export declare const StaticSiteUserCollection: coreClient.CompositeMapper;
export declare const StaticSiteBuildCollection: coreClient.CompositeMapper;
export declare const StaticSiteFunctionOverviewCollection: coreClient.CompositeMapper;
export declare const StaticSiteUserProvidedFunctionAppsCollection: coreClient.CompositeMapper;
export declare const StaticSiteCustomDomainOverviewCollection: coreClient.CompositeMapper;
export declare const StaticSiteLinkedBackendsCollection: coreClient.CompositeMapper;
export declare const CsmSlotEntity: coreClient.CompositeMapper;
export declare const BackupSchedule: coreClient.CompositeMapper;
export declare const DatabaseBackupSetting: coreClient.CompositeMapper;
export declare const BackupItemCollection: coreClient.CompositeMapper;
export declare const PublishingCredentialsPoliciesCollection: coreClient.CompositeMapper;
export declare const SiteConfigResourceCollection: coreClient.CompositeMapper;
export declare const AuthPlatform: coreClient.CompositeMapper;
export declare const GlobalValidation: coreClient.CompositeMapper;
export declare const IdentityProviders: coreClient.CompositeMapper;
export declare const AzureActiveDirectory: coreClient.CompositeMapper;
export declare const AzureActiveDirectoryRegistration: coreClient.CompositeMapper;
export declare const AzureActiveDirectoryLogin: coreClient.CompositeMapper;
export declare const AzureActiveDirectoryValidation: coreClient.CompositeMapper;
export declare const JwtClaimChecks: coreClient.CompositeMapper;
export declare const DefaultAuthorizationPolicy: coreClient.CompositeMapper;
export declare const AllowedPrincipals: coreClient.CompositeMapper;
export declare const Facebook: coreClient.CompositeMapper;
export declare const AppRegistration: coreClient.CompositeMapper;
export declare const LoginScopes: coreClient.CompositeMapper;
export declare const GitHub: coreClient.CompositeMapper;
export declare const ClientRegistration: coreClient.CompositeMapper;
export declare const Google: coreClient.CompositeMapper;
export declare const AllowedAudiencesValidation: coreClient.CompositeMapper;
export declare const LegacyMicrosoftAccount: coreClient.CompositeMapper;
export declare const Twitter: coreClient.CompositeMapper;
export declare const TwitterRegistration: coreClient.CompositeMapper;
export declare const Apple: coreClient.CompositeMapper;
export declare const AppleRegistration: coreClient.CompositeMapper;
export declare const AzureStaticWebApps: coreClient.CompositeMapper;
export declare const AzureStaticWebAppsRegistration: coreClient.CompositeMapper;
export declare const CustomOpenIdConnectProvider: coreClient.CompositeMapper;
export declare const OpenIdConnectRegistration: coreClient.CompositeMapper;
export declare const OpenIdConnectClientCredential: coreClient.CompositeMapper;
export declare const OpenIdConnectConfig: coreClient.CompositeMapper;
export declare const OpenIdConnectLogin: coreClient.CompositeMapper;
export declare const Login: coreClient.CompositeMapper;
export declare const LoginRoutes: coreClient.CompositeMapper;
export declare const TokenStore: coreClient.CompositeMapper;
export declare const FileSystemTokenStore: coreClient.CompositeMapper;
export declare const BlobStorageTokenStore: coreClient.CompositeMapper;
export declare const CookieExpiration: coreClient.CompositeMapper;
export declare const Nonce: coreClient.CompositeMapper;
export declare const HttpSettings: coreClient.CompositeMapper;
export declare const HttpSettingsRoutes: coreClient.CompositeMapper;
export declare const ForwardProxy: coreClient.CompositeMapper;
export declare const ApiKVReferenceCollection: coreClient.CompositeMapper;
export declare const ConnStringValueTypePair: coreClient.CompositeMapper;
export declare const ApplicationLogsConfig: coreClient.CompositeMapper;
export declare const FileSystemApplicationLogsConfig: coreClient.CompositeMapper;
export declare const AzureTableStorageApplicationLogsConfig: coreClient.CompositeMapper;
export declare const AzureBlobStorageApplicationLogsConfig: coreClient.CompositeMapper;
export declare const HttpLogsConfig: coreClient.CompositeMapper;
export declare const FileSystemHttpLogsConfig: coreClient.CompositeMapper;
export declare const AzureBlobStorageHttpLogsConfig: coreClient.CompositeMapper;
export declare const EnabledConfig: coreClient.CompositeMapper;
export declare const SiteConfigurationSnapshotInfoCollection: coreClient.CompositeMapper;
export declare const ContinuousWebJobCollection: coreClient.CompositeMapper;
export declare const CsmDeploymentStatusCollection: coreClient.CompositeMapper;
export declare const DeploymentCollection: coreClient.CompositeMapper;
export declare const MSDeployLogEntry: coreClient.CompositeMapper;
export declare const FunctionEnvelopeCollection: coreClient.CompositeMapper;
export declare const KeyInfo: coreClient.CompositeMapper;
export declare const FunctionSecrets: coreClient.CompositeMapper;
export declare const HostKeys: coreClient.CompositeMapper;
export declare const HostNameBindingCollection: coreClient.CompositeMapper;
export declare const WebAppInstanceStatusCollection: coreClient.CompositeMapper;
export declare const ContainerInfo: coreClient.CompositeMapper;
export declare const ContainerCpuStatistics: coreClient.CompositeMapper;
export declare const ContainerCpuUsage: coreClient.CompositeMapper;
export declare const ContainerThrottlingData: coreClient.CompositeMapper;
export declare const ContainerMemoryStatistics: coreClient.CompositeMapper;
export declare const ContainerNetworkInterfaceStatistics: coreClient.CompositeMapper;
export declare const ProcessInfoCollection: coreClient.CompositeMapper;
export declare const ProcessModuleInfoCollection: coreClient.CompositeMapper;
export declare const ProcessThreadInfoCollection: coreClient.CompositeMapper;
export declare const SiteCloneability: coreClient.CompositeMapper;
export declare const SiteCloneabilityCriterion: coreClient.CompositeMapper;
export declare const NetworkTrace: coreClient.CompositeMapper;
export declare const PerfMonCounterCollection: coreClient.CompositeMapper;
export declare const PerfMonResponse: coreClient.CompositeMapper;
export declare const PerfMonSet: coreClient.CompositeMapper;
export declare const PerfMonSample: coreClient.CompositeMapper;
export declare const PrivateAccessVirtualNetwork: coreClient.CompositeMapper;
export declare const PrivateAccessSubnet: coreClient.CompositeMapper;
export declare const PublicCertificateCollection: coreClient.CompositeMapper;
export declare const CsmPublishingProfileOptions: coreClient.CompositeMapper;
export declare const SnapshotRecoverySource: coreClient.CompositeMapper;
export declare const SiteExtensionInfoCollection: coreClient.CompositeMapper;
export declare const SlotDifferenceCollection: coreClient.CompositeMapper;
export declare const SnapshotCollection: coreClient.CompositeMapper;
export declare const GitHubActionConfiguration: coreClient.CompositeMapper;
export declare const GitHubActionCodeConfiguration: coreClient.CompositeMapper;
export declare const GitHubActionContainerConfiguration: coreClient.CompositeMapper;
export declare const TriggeredWebJobCollection: coreClient.CompositeMapper;
export declare const TriggeredJobRun: coreClient.CompositeMapper;
export declare const TriggeredJobHistoryCollection: coreClient.CompositeMapper;
export declare const WebJobCollection: coreClient.CompositeMapper;
export declare const RegenerateActionParameter: coreClient.CompositeMapper;
export declare const ErrorResponse: coreClient.CompositeMapper;
export declare const ErrorProperties: coreClient.CompositeMapper;
export declare const WorkflowRunListResult: coreClient.CompositeMapper;
export declare const Correlation: coreClient.CompositeMapper;
export declare const ResourceReference: coreClient.CompositeMapper;
export declare const WorkflowRunTrigger: coreClient.CompositeMapper;
export declare const ContentLink: coreClient.CompositeMapper;
export declare const ContentHash: coreClient.CompositeMapper;
export declare const WorkflowParameter: coreClient.CompositeMapper;
export declare const SubResource: coreClient.CompositeMapper;
export declare const WorkflowRunActionListResult: coreClient.CompositeMapper;
export declare const RunCorrelation: coreClient.CompositeMapper;
export declare const RetryHistory: coreClient.CompositeMapper;
export declare const ExpressionTraces: coreClient.CompositeMapper;
export declare const Expression: coreClient.CompositeMapper;
export declare const ErrorInfo: coreClient.CompositeMapper;
export declare const WorkflowRunActionRepetitionDefinitionCollection: coreClient.CompositeMapper;
export declare const RepetitionIndex: coreClient.CompositeMapper;
export declare const OperationResultProperties: coreClient.CompositeMapper;
export declare const WorkflowResource: coreClient.CompositeMapper;
export declare const RequestHistoryListResult: coreClient.CompositeMapper;
export declare const RequestHistoryProperties: coreClient.CompositeMapper;
export declare const Request: coreClient.CompositeMapper;
export declare const Response: coreClient.CompositeMapper;
export declare const WorkflowTriggerListResult: coreClient.CompositeMapper;
export declare const WorkflowTriggerRecurrence: coreClient.CompositeMapper;
export declare const RecurrenceSchedule: coreClient.CompositeMapper;
export declare const RecurrenceScheduleOccurrence: coreClient.CompositeMapper;
export declare const WorkflowTriggerHistoryListResult: coreClient.CompositeMapper;
export declare const WorkflowTriggerCallbackUrl: coreClient.CompositeMapper;
export declare const WorkflowTriggerListCallbackUrlQueries: coreClient.CompositeMapper;
export declare const JsonSchema: coreClient.CompositeMapper;
export declare const FlowEndpointsConfiguration: coreClient.CompositeMapper;
export declare const FlowEndpoints: coreClient.CompositeMapper;
export declare const IpAddress: coreClient.CompositeMapper;
export declare const FlowAccessControlConfiguration: coreClient.CompositeMapper;
export declare const FlowAccessControlConfigurationPolicy: coreClient.CompositeMapper;
export declare const IpAddressRange: coreClient.CompositeMapper;
export declare const OpenAuthenticationAccessPolicies: coreClient.CompositeMapper;
export declare const OpenAuthenticationAccessPolicy: coreClient.CompositeMapper;
export declare const OpenAuthenticationPolicyClaim: coreClient.CompositeMapper;
export declare const WorkflowSku: coreClient.CompositeMapper;
export declare const WorkflowVersionListResult: coreClient.CompositeMapper;
export declare const AppserviceGithubToken: coreClient.CompositeMapper;
export declare const AppserviceGithubTokenRequest: coreClient.CompositeMapper;
export declare const WorkflowFilter: coreClient.CompositeMapper;
export declare const WorkflowListResult: coreClient.CompositeMapper;
export declare const WorkflowRunActionFilter: coreClient.CompositeMapper;
export declare const WorkflowRunFilter: coreClient.CompositeMapper;
export declare const WorkflowTriggerFilter: coreClient.CompositeMapper;
export declare const WorkflowTriggerHistoryFilter: coreClient.CompositeMapper;
export declare const AppServiceCertificateOrder: coreClient.CompositeMapper;
export declare const AppServiceCertificateResource: coreClient.CompositeMapper;
export declare const Domain: coreClient.CompositeMapper;
export declare const AppServiceEnvironmentResource: coreClient.CompositeMapper;
export declare const Site: coreClient.CompositeMapper;
export declare const AppServicePlan: coreClient.CompositeMapper;
export declare const Certificate: coreClient.CompositeMapper;
export declare const ContainerApp: coreClient.CompositeMapper;
export declare const Revision: coreClient.CompositeMapper;
export declare const KubeEnvironment: coreClient.CompositeMapper;
export declare const StaticSiteARMResource: coreClient.CompositeMapper;
export declare const PremierAddOn: coreClient.CompositeMapper;
export declare const AppServiceCertificateOrderPatchResource: coreClient.CompositeMapper;
export declare const AppServiceCertificatePatchResource: coreClient.CompositeMapper;
export declare const ReissueCertificateOrderRequest: coreClient.CompositeMapper;
export declare const RenewCertificateOrderRequest: coreClient.CompositeMapper;
export declare const DetectorResponse: coreClient.CompositeMapper;
export declare const DomainPatchResource: coreClient.CompositeMapper;
export declare const DomainOwnershipIdentifier: coreClient.CompositeMapper;
export declare const TopLevelDomain: coreClient.CompositeMapper;
export declare const CustomDnsSuffixConfiguration: coreClient.CompositeMapper;
export declare const AseV3NetworkingConfiguration: coreClient.CompositeMapper;
export declare const AppServiceEnvironmentPatchResource: coreClient.CompositeMapper;
export declare const AddressResponse: coreClient.CompositeMapper;
export declare const PushSettings: coreClient.CompositeMapper;
export declare const WorkerPoolResource: coreClient.CompositeMapper;
export declare const ResourceMetricDefinition: coreClient.CompositeMapper;
export declare const Usage: coreClient.CompositeMapper;
export declare const RemotePrivateEndpointConnectionARMResource: coreClient.CompositeMapper;
export declare const PrivateLinkConnectionApprovalRequestResource: coreClient.CompositeMapper;
export declare const AppServicePlanPatchResource: coreClient.CompositeMapper;
export declare const HybridConnection: coreClient.CompositeMapper;
export declare const HybridConnectionKey: coreClient.CompositeMapper;
export declare const HybridConnectionLimits: coreClient.CompositeMapper;
export declare const VnetRoute: coreClient.CompositeMapper;
export declare const VnetInfoResource: coreClient.CompositeMapper;
export declare const VnetGateway: coreClient.CompositeMapper;
export declare const CertificatePatchResource: coreClient.CompositeMapper;
export declare const DeletedSite: coreClient.CompositeMapper;
export declare const DiagnosticCategory: coreClient.CompositeMapper;
export declare const AnalysisDefinition: coreClient.CompositeMapper;
export declare const DiagnosticAnalysis: coreClient.CompositeMapper;
export declare const DetectorDefinitionResource: coreClient.CompositeMapper;
export declare const DiagnosticDetectorResponse: coreClient.CompositeMapper;
export declare const Snapshot: coreClient.CompositeMapper;
export declare const KubeEnvironmentPatchResource: coreClient.CompositeMapper;
export declare const ApplicationStackResource: coreClient.CompositeMapper;
export declare const FunctionAppStack: coreClient.CompositeMapper;
export declare const WebAppStack: coreClient.CompositeMapper;
export declare const Recommendation: coreClient.CompositeMapper;
export declare const RecommendationRule: coreClient.CompositeMapper;
export declare const ResourceHealthMetadata: coreClient.CompositeMapper;
export declare const User: coreClient.CompositeMapper;
export declare const SourceControl: coreClient.CompositeMapper;
export declare const BillingMeter: coreClient.CompositeMapper;
export declare const Identifier: coreClient.CompositeMapper;
export declare const CustomHostnameSites: coreClient.CompositeMapper;
export declare const GeoRegion: coreClient.CompositeMapper;
export declare const PremierAddOnOffer: coreClient.CompositeMapper;
export declare const VnetParameters: coreClient.CompositeMapper;
export declare const VnetValidationTestFailure: coreClient.CompositeMapper;
export declare const VnetValidationFailureDetails: coreClient.CompositeMapper;
export declare const StaticSitesWorkflowPreviewRequest: coreClient.CompositeMapper;
export declare const StaticSitesWorkflowPreview: coreClient.CompositeMapper;
export declare const RemotePrivateEndpointConnection: coreClient.CompositeMapper;
export declare const StaticSiteUserProvidedFunctionApp: coreClient.CompositeMapper;
export declare const StaticSitePatchResource: coreClient.CompositeMapper;
export declare const StaticSiteUserARMResource: coreClient.CompositeMapper;
export declare const StaticSiteBuildARMResource: coreClient.CompositeMapper;
export declare const StringDictionary: coreClient.CompositeMapper;
export declare const StaticSiteFunctionOverviewARMResource: coreClient.CompositeMapper;
export declare const StaticSiteUserProvidedFunctionAppARMResource: coreClient.CompositeMapper;
export declare const StaticSiteZipDeploymentARMResource: coreClient.CompositeMapper;
export declare const StaticSiteUserInvitationRequestResource: coreClient.CompositeMapper;
export declare const StaticSiteUserInvitationResponseResource: coreClient.CompositeMapper;
export declare const StaticSiteCustomDomainOverviewARMResource: coreClient.CompositeMapper;
export declare const StaticSiteCustomDomainRequestPropertiesARMResource: coreClient.CompositeMapper;
export declare const StringList: coreClient.CompositeMapper;
export declare const StaticSiteResetPropertiesARMResource: coreClient.CompositeMapper;
export declare const StaticSiteLinkedBackendARMResource: coreClient.CompositeMapper;
export declare const SitePatchResource: coreClient.CompositeMapper;
export declare const CustomHostnameAnalysisResult: coreClient.CompositeMapper;
export declare const BackupRequest: coreClient.CompositeMapper;
export declare const BackupItem: coreClient.CompositeMapper;
export declare const RestoreRequest: coreClient.CompositeMapper;
export declare const CsmPublishingCredentialsPoliciesEntity: coreClient.CompositeMapper;
export declare const SiteConfigResource: coreClient.CompositeMapper;
export declare const SiteAuthSettings: coreClient.CompositeMapper;
export declare const SiteAuthSettingsV2: coreClient.CompositeMapper;
export declare const AzureStoragePropertyDictionaryResource: coreClient.CompositeMapper;
export declare const ApiKVReference: coreClient.CompositeMapper;
export declare const ConnectionStringDictionary: coreClient.CompositeMapper;
export declare const SiteLogsConfig: coreClient.CompositeMapper;
export declare const SlotConfigNamesResource: coreClient.CompositeMapper;
export declare const SiteConfigurationSnapshotInfo: coreClient.CompositeMapper;
export declare const ContinuousWebJob: coreClient.CompositeMapper;
export declare const CsmDeploymentStatus: coreClient.CompositeMapper;
export declare const Deployment: coreClient.CompositeMapper;
export declare const MSDeployStatus: coreClient.CompositeMapper;
export declare const MSDeploy: coreClient.CompositeMapper;
export declare const MSDeployLog: coreClient.CompositeMapper;
export declare const FunctionEnvelope: coreClient.CompositeMapper;
export declare const HostNameBinding: coreClient.CompositeMapper;
export declare const RelayServiceConnectionEntity: coreClient.CompositeMapper;
export declare const WebSiteInstanceStatus: coreClient.CompositeMapper;
export declare const ProcessThreadInfo: coreClient.CompositeMapper;
export declare const ProcessModuleInfo: coreClient.CompositeMapper;
export declare const ProcessInfo: coreClient.CompositeMapper;
export declare const StorageMigrationOptions: coreClient.CompositeMapper;
export declare const StorageMigrationResponse: coreClient.CompositeMapper;
export declare const MigrateMySqlRequest: coreClient.CompositeMapper;
export declare const MigrateMySqlStatus: coreClient.CompositeMapper;
export declare const SwiftVirtualNetwork: coreClient.CompositeMapper;
export declare const NetworkFeatures: coreClient.CompositeMapper;
export declare const SitePhpErrorLogFlag: coreClient.CompositeMapper;
export declare const PremierAddOnPatchResource: coreClient.CompositeMapper;
export declare const PrivateAccess: coreClient.CompositeMapper;
export declare const PublicCertificate: coreClient.CompositeMapper;
export declare const DeletedAppRestoreRequest: coreClient.CompositeMapper;
export declare const SnapshotRestoreRequest: coreClient.CompositeMapper;
export declare const SiteExtensionInfo: coreClient.CompositeMapper;
export declare const SlotDifference: coreClient.CompositeMapper;
export declare const SiteSourceControl: coreClient.CompositeMapper;
export declare const TriggeredWebJob: coreClient.CompositeMapper;
export declare const TriggeredJobHistory: coreClient.CompositeMapper;
export declare const WebJob: coreClient.CompositeMapper;
export declare const WorkflowOutputParameter: coreClient.CompositeMapper;
export declare const WorkflowRun: coreClient.CompositeMapper;
export declare const WorkflowRunAction: coreClient.CompositeMapper;
export declare const WorkflowTrigger: coreClient.CompositeMapper;
export declare const WorkflowTriggerHistory: coreClient.CompositeMapper;
export declare const RunActionCorrelation: coreClient.CompositeMapper;
export declare const ExpressionRoot: coreClient.CompositeMapper;
export declare const AzureResourceErrorInfo: coreClient.CompositeMapper;
export declare const OperationResult: coreClient.CompositeMapper;
export declare const WorkflowRunActionRepetitionDefinition: coreClient.CompositeMapper;
export declare const RequestHistory: coreClient.CompositeMapper;
export declare const Workflow: coreClient.CompositeMapper;
export declare const WorkflowVersion: coreClient.CompositeMapper;
export declare const WorkflowRunActionRepetitionProperties: coreClient.CompositeMapper;
//# sourceMappingURL=mappers.d.ts.map
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
+201
View File
@@ -0,0 +1,201 @@
import { OperationParameter, OperationURLParameter, OperationQueryParameter } from "@azure/core-client";
export declare const accept: OperationParameter;
export declare const $host: OperationURLParameter;
export declare const subscriptionId: OperationURLParameter;
export declare const apiVersion: OperationQueryParameter;
export declare const contentType: OperationParameter;
export declare const appServiceCertificateOrder: OperationParameter;
export declare const resourceGroupName: OperationURLParameter;
export declare const certificateOrderName: OperationURLParameter;
export declare const certificateDistinguishedName: OperationParameter;
export declare const certificateDistinguishedName1: OperationParameter;
export declare const name: OperationURLParameter;
export declare const keyVaultCertificate: OperationParameter;
export declare const keyVaultCertificate1: OperationParameter;
export declare const reissueCertificateOrderRequest: OperationParameter;
export declare const renewCertificateOrderRequest: OperationParameter;
export declare const nameIdentifier: OperationParameter;
export declare const siteSealRequest: OperationParameter;
export declare const nextLink: OperationURLParameter;
export declare const detectorName: OperationURLParameter;
export declare const startTime: OperationQueryParameter;
export declare const endTime: OperationQueryParameter;
export declare const timeGrain: OperationQueryParameter;
export declare const identifier: OperationParameter;
export declare const parameters: OperationParameter;
export declare const domainName: OperationURLParameter;
export declare const domain: OperationParameter;
export declare const domainName1: OperationURLParameter;
export declare const forceHardDeleteDomain: OperationQueryParameter;
export declare const domain1: OperationParameter;
export declare const domainOwnershipIdentifier: OperationParameter;
export declare const agreementOption: OperationParameter;
export declare const hostingEnvironmentEnvelope: OperationParameter;
export declare const forceDelete: OperationQueryParameter;
export declare const hostingEnvironmentEnvelope1: OperationParameter;
export declare const vnetInfo: OperationParameter;
export declare const customDnsSuffixConfiguration: OperationParameter;
export declare const aseNetworkingConfiguration: OperationParameter;
export declare const diagnosticsName: OperationURLParameter;
export declare const multiRolePoolEnvelope: OperationParameter;
export declare const instance: OperationURLParameter;
export declare const privateEndpointConnectionName: OperationURLParameter;
export declare const privateEndpointWrapper: OperationParameter;
export declare const propertiesToInclude: OperationQueryParameter;
export declare const filter: OperationQueryParameter;
export declare const workerPoolName: OperationURLParameter;
export declare const workerPoolEnvelope: OperationParameter;
export declare const detailed: OperationQueryParameter;
export declare const appServicePlan: OperationParameter;
export declare const appServicePlan1: OperationParameter;
export declare const namespaceName: OperationURLParameter;
export declare const relayName: OperationURLParameter;
export declare const softRestart: OperationQueryParameter;
export declare const skipToken: OperationQueryParameter;
export declare const top: OperationQueryParameter;
export declare const vnetName: OperationURLParameter;
export declare const gatewayName: OperationURLParameter;
export declare const connectionEnvelope: OperationParameter;
export declare const routeName: OperationURLParameter;
export declare const route: OperationParameter;
export declare const workerName: OperationURLParameter;
export declare const certificateEnvelope: OperationParameter;
export declare const certificateEnvelope1: OperationParameter;
export declare const containerAppEnvelope: OperationParameter;
export declare const containerAppName: OperationURLParameter;
export declare const location: OperationURLParameter;
export declare const deletedSiteId: OperationURLParameter;
export declare const siteName: OperationURLParameter;
export declare const diagnosticCategory: OperationURLParameter;
export declare const analysisName: OperationURLParameter;
export declare const slot: OperationURLParameter;
export declare const operationId: OperationURLParameter;
export declare const kubeEnvironmentEnvelope: OperationParameter;
export declare const kubeEnvironmentEnvelope1: OperationParameter;
export declare const osTypeSelected: OperationQueryParameter;
export declare const stackOsType: OperationQueryParameter;
export declare const stackOsType1: OperationQueryParameter;
export declare const stackOsType2: OperationQueryParameter;
export declare const stackOsType3: OperationQueryParameter;
export declare const osTypeSelected1: OperationQueryParameter;
export declare const featured: OperationQueryParameter;
export declare const hostingEnvironmentName: OperationURLParameter;
export declare const expiredOnly: OperationQueryParameter;
export declare const environmentName: OperationQueryParameter;
export declare const updateSeen: OperationQueryParameter;
export declare const recommendationId: OperationQueryParameter;
export declare const userDetails: OperationParameter;
export declare const sourceControlType: OperationURLParameter;
export declare const requestMessage: OperationParameter;
export declare const billingLocation: OperationQueryParameter;
export declare const osType: OperationQueryParameter;
export declare const name1: OperationParameter;
export declare const typeParam: OperationParameter;
export declare const isFqdn: OperationParameter;
export declare const hostname: OperationQueryParameter;
export declare const sku: OperationQueryParameter;
export declare const linuxWorkersEnabled: OperationQueryParameter;
export declare const xenonWorkersEnabled: OperationQueryParameter;
export declare const linuxDynamicWorkersEnabled: OperationQueryParameter;
export declare const parameters1: OperationParameter;
export declare const moveResourceEnvelope: OperationParameter;
export declare const validateRequest: OperationParameter;
export declare const staticSitesWorkflowPreviewRequest: OperationParameter;
export declare const staticSiteEnvelope: OperationParameter;
export declare const staticSiteEnvelope1: OperationParameter;
export declare const authprovider: OperationURLParameter;
export declare const userid: OperationURLParameter;
export declare const staticSiteUserEnvelope: OperationParameter;
export declare const environmentName1: OperationURLParameter;
export declare const appSettings: OperationParameter;
export declare const functionAppName: OperationURLParameter;
export declare const staticSiteUserProvidedFunctionEnvelope: OperationParameter;
export declare const isForced: OperationQueryParameter;
export declare const staticSiteZipDeploymentEnvelope: OperationParameter;
export declare const staticSiteUserRolesInvitationEnvelope: OperationParameter;
export declare const staticSiteCustomDomainRequestPropertiesEnvelope: OperationParameter;
export declare const resetPropertiesEnvelope: OperationParameter;
export declare const staticSiteLinkedBackendEnvelope: OperationParameter;
export declare const linkedBackendName: OperationURLParameter;
export declare const isCleaningAuthConfig: OperationQueryParameter;
export declare const includeSlots: OperationQueryParameter;
export declare const siteEnvelope: OperationParameter;
export declare const deleteMetrics: OperationQueryParameter;
export declare const deleteEmptyServerFarm: OperationQueryParameter;
export declare const siteEnvelope1: OperationParameter;
export declare const hostName: OperationQueryParameter;
export declare const slotSwapEntity: OperationParameter;
export declare const request1: OperationParameter;
export declare const backupId: OperationURLParameter;
export declare const request2: OperationParameter;
export declare const csmPublishingAccessPoliciesEntity: OperationParameter;
export declare const siteAuthSettings: OperationParameter;
export declare const siteAuthSettingsV2: OperationParameter;
export declare const azureStorageAccounts: OperationParameter;
export declare const appSettingKey: OperationURLParameter;
export declare const connectionStringKey: OperationURLParameter;
export declare const connectionStrings: OperationParameter;
export declare const siteLogsConfig: OperationParameter;
export declare const metadata: OperationParameter;
export declare const pushSettings: OperationParameter;
export declare const slotConfigNames: OperationParameter;
export declare const siteConfig: OperationParameter;
export declare const snapshotId: OperationURLParameter;
export declare const accept1: OperationParameter;
export declare const accept2: OperationParameter;
export declare const webJobName: OperationURLParameter;
export declare const deploymentStatusId: OperationURLParameter;
export declare const id: OperationURLParameter;
export declare const deployment: OperationParameter;
export declare const domainOwnershipIdentifierName: OperationURLParameter;
export declare const domainOwnershipIdentifier1: OperationParameter;
export declare const mSDeploy: OperationParameter;
export declare const functionName: OperationURLParameter;
export declare const functionEnvelope: OperationParameter;
export declare const key: OperationParameter;
export declare const keyName: OperationURLParameter;
export declare const keyType: OperationURLParameter;
export declare const hostName1: OperationURLParameter;
export declare const hostNameBinding: OperationParameter;
export declare const connectionEnvelope1: OperationParameter;
export declare const entityName: OperationURLParameter;
export declare const connectionEnvelope2: OperationParameter;
export declare const instanceId: OperationURLParameter;
export declare const processId: OperationURLParameter;
export declare const baseAddress: OperationURLParameter;
export declare const migrationOptions: OperationParameter;
export declare const subscriptionName: OperationQueryParameter;
export declare const migrationRequestEnvelope: OperationParameter;
export declare const connectionEnvelope3: OperationParameter;
export declare const view: OperationURLParameter;
export declare const durationInSeconds: OperationQueryParameter;
export declare const maxFrameLength: OperationQueryParameter;
export declare const sasUrl: OperationQueryParameter;
export declare const premierAddOnName: OperationURLParameter;
export declare const premierAddOn: OperationParameter;
export declare const premierAddOn1: OperationParameter;
export declare const access: OperationParameter;
export declare const publicCertificateName: OperationURLParameter;
export declare const publicCertificate: OperationParameter;
export declare const publishingProfileOptions: OperationParameter;
export declare const accept3: OperationParameter;
export declare const synchronous: OperationQueryParameter;
export declare const restoreRequest: OperationParameter;
export declare const restoreRequest1: OperationParameter;
export declare const siteExtensionId: OperationURLParameter;
export declare const siteSourceControl: OperationParameter;
export declare const additionalFlags: OperationQueryParameter;
export declare const connectionEnvelope4: OperationParameter;
export declare const keyType1: OperationParameter;
export declare const workflowName: OperationURLParameter;
export declare const validate: OperationParameter;
export declare const top1: OperationQueryParameter;
export declare const filter1: OperationQueryParameter;
export declare const runName: OperationURLParameter;
export declare const actionName: OperationURLParameter;
export declare const repetitionName: OperationURLParameter;
export declare const requestHistoryName: OperationURLParameter;
export declare const triggerName: OperationURLParameter;
export declare const historyName: OperationURLParameter;
export declare const versionId: OperationURLParameter;
//# sourceMappingURL=parameters.d.ts.map
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
@@ -0,0 +1,232 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { AppServiceCertificateOrders } from "../operationsInterfaces";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import { PollerLike, PollOperationState } from "@azure/core-lro";
import { AppServiceCertificateOrder, AppServiceCertificateOrdersListOptionalParams, AppServiceCertificateOrdersListByResourceGroupOptionalParams, AppServiceCertificateResource, AppServiceCertificateOrdersListCertificatesOptionalParams, AppServiceCertificateOrdersValidatePurchaseInformationOptionalParams, AppServiceCertificateOrdersGetOptionalParams, AppServiceCertificateOrdersGetResponse, AppServiceCertificateOrdersCreateOrUpdateOptionalParams, AppServiceCertificateOrdersCreateOrUpdateResponse, AppServiceCertificateOrdersDeleteOptionalParams, AppServiceCertificateOrderPatchResource, AppServiceCertificateOrdersUpdateOptionalParams, AppServiceCertificateOrdersUpdateResponse, AppServiceCertificateOrdersGetCertificateOptionalParams, AppServiceCertificateOrdersGetCertificateResponse, AppServiceCertificateOrdersCreateOrUpdateCertificateOptionalParams, AppServiceCertificateOrdersCreateOrUpdateCertificateResponse, AppServiceCertificateOrdersDeleteCertificateOptionalParams, AppServiceCertificatePatchResource, AppServiceCertificateOrdersUpdateCertificateOptionalParams, AppServiceCertificateOrdersUpdateCertificateResponse, ReissueCertificateOrderRequest, AppServiceCertificateOrdersReissueOptionalParams, RenewCertificateOrderRequest, AppServiceCertificateOrdersRenewOptionalParams, AppServiceCertificateOrdersResendEmailOptionalParams, NameIdentifier, AppServiceCertificateOrdersResendRequestEmailsOptionalParams, SiteSealRequest, AppServiceCertificateOrdersRetrieveSiteSealOptionalParams, AppServiceCertificateOrdersRetrieveSiteSealResponse, AppServiceCertificateOrdersVerifyDomainOwnershipOptionalParams, AppServiceCertificateOrdersRetrieveCertificateActionsOptionalParams, AppServiceCertificateOrdersRetrieveCertificateActionsResponse, AppServiceCertificateOrdersRetrieveCertificateEmailHistoryOptionalParams, AppServiceCertificateOrdersRetrieveCertificateEmailHistoryResponse } from "../models";
/** Class containing AppServiceCertificateOrders operations. */
export declare class AppServiceCertificateOrdersImpl implements AppServiceCertificateOrders {
private readonly client;
/**
* Initialize a new instance of the class AppServiceCertificateOrders class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient);
/**
* Description for List all certificate orders in a subscription.
* @param options The options parameters.
*/
list(options?: AppServiceCertificateOrdersListOptionalParams): PagedAsyncIterableIterator<AppServiceCertificateOrder>;
private listPagingPage;
private listPagingAll;
/**
* Description for Get certificate orders in a resource group.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param options The options parameters.
*/
listByResourceGroup(resourceGroupName: string, options?: AppServiceCertificateOrdersListByResourceGroupOptionalParams): PagedAsyncIterableIterator<AppServiceCertificateOrder>;
private listByResourceGroupPagingPage;
private listByResourceGroupPagingAll;
/**
* Description for List all certificates associated with a certificate order.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param certificateOrderName Name of the certificate order.
* @param options The options parameters.
*/
listCertificates(resourceGroupName: string, certificateOrderName: string, options?: AppServiceCertificateOrdersListCertificatesOptionalParams): PagedAsyncIterableIterator<AppServiceCertificateResource>;
private listCertificatesPagingPage;
private listCertificatesPagingAll;
/**
* Description for List all certificate orders in a subscription.
* @param options The options parameters.
*/
private _list;
/**
* Description for Validate information for a certificate order.
* @param appServiceCertificateOrder Information for a certificate order.
* @param options The options parameters.
*/
validatePurchaseInformation(appServiceCertificateOrder: AppServiceCertificateOrder, options?: AppServiceCertificateOrdersValidatePurchaseInformationOptionalParams): Promise<void>;
/**
* Description for Get certificate orders in a resource group.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param options The options parameters.
*/
private _listByResourceGroup;
/**
* Description for Get a certificate order.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param certificateOrderName Name of the certificate order..
* @param options The options parameters.
*/
get(resourceGroupName: string, certificateOrderName: string, options?: AppServiceCertificateOrdersGetOptionalParams): Promise<AppServiceCertificateOrdersGetResponse>;
/**
* Description for Create or update a certificate purchase order.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param certificateOrderName Name of the certificate order.
* @param certificateDistinguishedName Distinguished name to use for the certificate order.
* @param options The options parameters.
*/
beginCreateOrUpdate(resourceGroupName: string, certificateOrderName: string, certificateDistinguishedName: AppServiceCertificateOrder, options?: AppServiceCertificateOrdersCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<AppServiceCertificateOrdersCreateOrUpdateResponse>, AppServiceCertificateOrdersCreateOrUpdateResponse>>;
/**
* Description for Create or update a certificate purchase order.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param certificateOrderName Name of the certificate order.
* @param certificateDistinguishedName Distinguished name to use for the certificate order.
* @param options The options parameters.
*/
beginCreateOrUpdateAndWait(resourceGroupName: string, certificateOrderName: string, certificateDistinguishedName: AppServiceCertificateOrder, options?: AppServiceCertificateOrdersCreateOrUpdateOptionalParams): Promise<AppServiceCertificateOrdersCreateOrUpdateResponse>;
/**
* Description for Delete an existing certificate order.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param certificateOrderName Name of the certificate order.
* @param options The options parameters.
*/
delete(resourceGroupName: string, certificateOrderName: string, options?: AppServiceCertificateOrdersDeleteOptionalParams): Promise<void>;
/**
* Description for Create or update a certificate purchase order.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param certificateOrderName Name of the certificate order.
* @param certificateDistinguishedName Distinguished name to use for the certificate order.
* @param options The options parameters.
*/
update(resourceGroupName: string, certificateOrderName: string, certificateDistinguishedName: AppServiceCertificateOrderPatchResource, options?: AppServiceCertificateOrdersUpdateOptionalParams): Promise<AppServiceCertificateOrdersUpdateResponse>;
/**
* Description for List all certificates associated with a certificate order.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param certificateOrderName Name of the certificate order.
* @param options The options parameters.
*/
private _listCertificates;
/**
* Description for Get the certificate associated with a certificate order.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param certificateOrderName Name of the certificate order.
* @param name Name of the certificate.
* @param options The options parameters.
*/
getCertificate(resourceGroupName: string, certificateOrderName: string, name: string, options?: AppServiceCertificateOrdersGetCertificateOptionalParams): Promise<AppServiceCertificateOrdersGetCertificateResponse>;
/**
* Description for Creates or updates a certificate and associates with key vault secret.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param certificateOrderName Name of the certificate order.
* @param name Name of the certificate.
* @param keyVaultCertificate Key vault certificate resource Id.
* @param options The options parameters.
*/
beginCreateOrUpdateCertificate(resourceGroupName: string, certificateOrderName: string, name: string, keyVaultCertificate: AppServiceCertificateResource, options?: AppServiceCertificateOrdersCreateOrUpdateCertificateOptionalParams): Promise<PollerLike<PollOperationState<AppServiceCertificateOrdersCreateOrUpdateCertificateResponse>, AppServiceCertificateOrdersCreateOrUpdateCertificateResponse>>;
/**
* Description for Creates or updates a certificate and associates with key vault secret.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param certificateOrderName Name of the certificate order.
* @param name Name of the certificate.
* @param keyVaultCertificate Key vault certificate resource Id.
* @param options The options parameters.
*/
beginCreateOrUpdateCertificateAndWait(resourceGroupName: string, certificateOrderName: string, name: string, keyVaultCertificate: AppServiceCertificateResource, options?: AppServiceCertificateOrdersCreateOrUpdateCertificateOptionalParams): Promise<AppServiceCertificateOrdersCreateOrUpdateCertificateResponse>;
/**
* Description for Delete the certificate associated with a certificate order.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param certificateOrderName Name of the certificate order.
* @param name Name of the certificate.
* @param options The options parameters.
*/
deleteCertificate(resourceGroupName: string, certificateOrderName: string, name: string, options?: AppServiceCertificateOrdersDeleteCertificateOptionalParams): Promise<void>;
/**
* Description for Creates or updates a certificate and associates with key vault secret.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param certificateOrderName Name of the certificate order.
* @param name Name of the certificate.
* @param keyVaultCertificate Key vault certificate resource Id.
* @param options The options parameters.
*/
updateCertificate(resourceGroupName: string, certificateOrderName: string, name: string, keyVaultCertificate: AppServiceCertificatePatchResource, options?: AppServiceCertificateOrdersUpdateCertificateOptionalParams): Promise<AppServiceCertificateOrdersUpdateCertificateResponse>;
/**
* Description for Reissue an existing certificate order.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param certificateOrderName Name of the certificate order.
* @param reissueCertificateOrderRequest Parameters for the reissue.
* @param options The options parameters.
*/
reissue(resourceGroupName: string, certificateOrderName: string, reissueCertificateOrderRequest: ReissueCertificateOrderRequest, options?: AppServiceCertificateOrdersReissueOptionalParams): Promise<void>;
/**
* Description for Renew an existing certificate order.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param certificateOrderName Name of the certificate order.
* @param renewCertificateOrderRequest Renew parameters
* @param options The options parameters.
*/
renew(resourceGroupName: string, certificateOrderName: string, renewCertificateOrderRequest: RenewCertificateOrderRequest, options?: AppServiceCertificateOrdersRenewOptionalParams): Promise<void>;
/**
* Description for Resend certificate email.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param certificateOrderName Name of the certificate order.
* @param options The options parameters.
*/
resendEmail(resourceGroupName: string, certificateOrderName: string, options?: AppServiceCertificateOrdersResendEmailOptionalParams): Promise<void>;
/**
* Resend domain verification ownership email containing steps on how to verify a domain for a given
* certificate order
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param certificateOrderName Name of the certificate order.
* @param nameIdentifier Email address
* @param options The options parameters.
*/
resendRequestEmails(resourceGroupName: string, certificateOrderName: string, nameIdentifier: NameIdentifier, options?: AppServiceCertificateOrdersResendRequestEmailsOptionalParams): Promise<void>;
/**
* This method is used to obtain the site seal information for an issued certificate. A site seal is a
* graphic that the certificate purchaser can embed on their web site to show their visitors
* information about their SSL certificate. If a web site visitor clicks on the site seal image, a
* pop-up page is displayed that contains detailed information about the SSL certificate. The site seal
* token is used to link the site seal graphic image to the appropriate certificate details pop-up page
* display when a user clicks on the site seal. The site seal images are expected to be static images
* and hosted by the reseller, to minimize delays for customer page load times.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param certificateOrderName Name of the certificate order.
* @param siteSealRequest Site seal request.
* @param options The options parameters.
*/
retrieveSiteSeal(resourceGroupName: string, certificateOrderName: string, siteSealRequest: SiteSealRequest, options?: AppServiceCertificateOrdersRetrieveSiteSealOptionalParams): Promise<AppServiceCertificateOrdersRetrieveSiteSealResponse>;
/**
* Description for Verify domain ownership for this certificate order.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param certificateOrderName Name of the certificate order.
* @param options The options parameters.
*/
verifyDomainOwnership(resourceGroupName: string, certificateOrderName: string, options?: AppServiceCertificateOrdersVerifyDomainOwnershipOptionalParams): Promise<void>;
/**
* Description for Retrieve the list of certificate actions.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the certificate order.
* @param options The options parameters.
*/
retrieveCertificateActions(resourceGroupName: string, name: string, options?: AppServiceCertificateOrdersRetrieveCertificateActionsOptionalParams): Promise<AppServiceCertificateOrdersRetrieveCertificateActionsResponse>;
/**
* Description for Retrieve email history.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the certificate order.
* @param options The options parameters.
*/
retrieveCertificateEmailHistory(resourceGroupName: string, name: string, options?: AppServiceCertificateOrdersRetrieveCertificateEmailHistoryOptionalParams): Promise<AppServiceCertificateOrdersRetrieveCertificateEmailHistoryResponse>;
/**
* ListNext
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
private _listNext;
/**
* ListByResourceGroupNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
* @param options The options parameters.
*/
private _listByResourceGroupNext;
/**
* ListCertificatesNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param certificateOrderName Name of the certificate order.
* @param nextLink The nextLink from the previous successful call to the ListCertificates method.
* @param options The options parameters.
*/
private _listCertificatesNext;
}
//# sourceMappingURL=appServiceCertificateOrders.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"appServiceCertificateOrders.d.ts","sourceRoot":"","sources":["../../../src/operations/appServiceCertificateOrders.ts"],"names":[],"mappings":"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"}
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
@@ -0,0 +1,822 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { AppServiceEnvironments } from "../operationsInterfaces";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import { PollerLike, PollOperationState } from "@azure/core-lro";
import { AppServiceEnvironmentResource, AppServiceEnvironmentsListOptionalParams, AppServiceEnvironmentsListByResourceGroupOptionalParams, StampCapacity, AppServiceEnvironmentsListCapacitiesOptionalParams, Site, VirtualNetworkProfile, AppServiceEnvironmentsChangeVnetOptionalParams, InboundEnvironmentEndpoint, AppServiceEnvironmentsGetInboundNetworkDependenciesEndpointsOptionalParams, WorkerPoolResource, AppServiceEnvironmentsListMultiRolePoolsOptionalParams, ResourceMetricDefinition, AppServiceEnvironmentsListMultiRolePoolInstanceMetricDefinitionsOptionalParams, AppServiceEnvironmentsListMultiRoleMetricDefinitionsOptionalParams, SkuInfo, AppServiceEnvironmentsListMultiRolePoolSkusOptionalParams, Usage, AppServiceEnvironmentsListMultiRoleUsagesOptionalParams, OutboundEnvironmentEndpoint, AppServiceEnvironmentsGetOutboundNetworkDependenciesEndpointsOptionalParams, RemotePrivateEndpointConnectionARMResource, AppServiceEnvironmentsGetPrivateEndpointConnectionListOptionalParams, AppServiceEnvironmentsResumeOptionalParams, AppServicePlan, AppServiceEnvironmentsListAppServicePlansOptionalParams, AppServiceEnvironmentsListWebAppsOptionalParams, AppServiceEnvironmentsSuspendOptionalParams, CsmUsageQuota, AppServiceEnvironmentsListUsagesOptionalParams, AppServiceEnvironmentsListWorkerPoolsOptionalParams, AppServiceEnvironmentsListWorkerPoolInstanceMetricDefinitionsOptionalParams, AppServiceEnvironmentsListWebWorkerMetricDefinitionsOptionalParams, AppServiceEnvironmentsListWorkerPoolSkusOptionalParams, AppServiceEnvironmentsListWebWorkerUsagesOptionalParams, AppServiceEnvironmentsGetOptionalParams, AppServiceEnvironmentsGetResponse, AppServiceEnvironmentsCreateOrUpdateOptionalParams, AppServiceEnvironmentsCreateOrUpdateResponse, AppServiceEnvironmentsDeleteOptionalParams, AppServiceEnvironmentPatchResource, AppServiceEnvironmentsUpdateOptionalParams, AppServiceEnvironmentsUpdateResponse, AppServiceEnvironmentsGetVipInfoOptionalParams, AppServiceEnvironmentsGetVipInfoResponse, AppServiceEnvironmentsGetAseCustomDnsSuffixConfigurationOptionalParams, AppServiceEnvironmentsGetAseCustomDnsSuffixConfigurationResponse, CustomDnsSuffixConfiguration, AppServiceEnvironmentsUpdateAseCustomDnsSuffixConfigurationOptionalParams, AppServiceEnvironmentsUpdateAseCustomDnsSuffixConfigurationResponse, AppServiceEnvironmentsDeleteAseCustomDnsSuffixConfigurationOptionalParams, AppServiceEnvironmentsDeleteAseCustomDnsSuffixConfigurationResponse, AppServiceEnvironmentsGetAseV3NetworkingConfigurationOptionalParams, AppServiceEnvironmentsGetAseV3NetworkingConfigurationResponse, AseV3NetworkingConfiguration, AppServiceEnvironmentsUpdateAseNetworkingConfigurationOptionalParams, AppServiceEnvironmentsUpdateAseNetworkingConfigurationResponse, AppServiceEnvironmentsListDiagnosticsOptionalParams, AppServiceEnvironmentsListDiagnosticsResponse, AppServiceEnvironmentsGetDiagnosticsItemOptionalParams, AppServiceEnvironmentsGetDiagnosticsItemResponse, AppServiceEnvironmentsGetMultiRolePoolOptionalParams, AppServiceEnvironmentsGetMultiRolePoolResponse, AppServiceEnvironmentsCreateOrUpdateMultiRolePoolOptionalParams, AppServiceEnvironmentsCreateOrUpdateMultiRolePoolResponse, AppServiceEnvironmentsUpdateMultiRolePoolOptionalParams, AppServiceEnvironmentsUpdateMultiRolePoolResponse, AppServiceEnvironmentsTestUpgradeAvailableNotificationOptionalParams, AppServiceEnvironmentsUpgradeOptionalParams, AppServiceEnvironmentsListOperationsOptionalParams, AppServiceEnvironmentsListOperationsResponse, AppServiceEnvironmentsGetPrivateEndpointConnectionOptionalParams, AppServiceEnvironmentsGetPrivateEndpointConnectionResponse, PrivateLinkConnectionApprovalRequestResource, AppServiceEnvironmentsApproveOrRejectPrivateEndpointConnectionOptionalParams, AppServiceEnvironmentsApproveOrRejectPrivateEndpointConnectionResponse, AppServiceEnvironmentsDeletePrivateEndpointConnectionOptionalParams, AppServiceEnvironmentsDeletePrivateEndpointConnectionResponse, AppServiceEnvironmentsGetPrivateLinkResourcesOptionalParams, AppServiceEnvironmentsGetPrivateLinkResourcesResponse, AppServiceEnvironmentsRebootOptionalParams, AppServiceEnvironmentsGetWorkerPoolOptionalParams, AppServiceEnvironmentsGetWorkerPoolResponse, AppServiceEnvironmentsCreateOrUpdateWorkerPoolOptionalParams, AppServiceEnvironmentsCreateOrUpdateWorkerPoolResponse, AppServiceEnvironmentsUpdateWorkerPoolOptionalParams, AppServiceEnvironmentsUpdateWorkerPoolResponse } from "../models";
/** Class containing AppServiceEnvironments operations. */
export declare class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
private readonly client;
/**
* Initialize a new instance of the class AppServiceEnvironments class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient);
/**
* Description for Get all App Service Environments for a subscription.
* @param options The options parameters.
*/
list(options?: AppServiceEnvironmentsListOptionalParams): PagedAsyncIterableIterator<AppServiceEnvironmentResource>;
private listPagingPage;
private listPagingAll;
/**
* Description for Get all App Service Environments in a resource group.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param options The options parameters.
*/
listByResourceGroup(resourceGroupName: string, options?: AppServiceEnvironmentsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<AppServiceEnvironmentResource>;
private listByResourceGroupPagingPage;
private listByResourceGroupPagingAll;
/**
* Description for Get the used, available, and total worker capacity an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
listCapacities(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsListCapacitiesOptionalParams): PagedAsyncIterableIterator<StampCapacity>;
private listCapacitiesPagingPage;
private listCapacitiesPagingAll;
/**
* Description for Move an App Service Environment to a different VNET.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param vnetInfo Details for the new virtual network.
* @param options The options parameters.
*/
beginListChangeVnetAndWait(resourceGroupName: string, name: string, vnetInfo: VirtualNetworkProfile, options?: AppServiceEnvironmentsChangeVnetOptionalParams): PagedAsyncIterableIterator<Site>;
private changeVnetPagingPage;
private changeVnetPagingAll;
/**
* Description for Get the network endpoints of all inbound dependencies of an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
listInboundNetworkDependenciesEndpoints(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsGetInboundNetworkDependenciesEndpointsOptionalParams): PagedAsyncIterableIterator<InboundEnvironmentEndpoint>;
private getInboundNetworkDependenciesEndpointsPagingPage;
private getInboundNetworkDependenciesEndpointsPagingAll;
/**
* Description for Get all multi-role pools.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
listMultiRolePools(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsListMultiRolePoolsOptionalParams): PagedAsyncIterableIterator<WorkerPoolResource>;
private listMultiRolePoolsPagingPage;
private listMultiRolePoolsPagingAll;
/**
* Description for Get metric definitions for a specific instance of a multi-role pool of an App
* Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param instance Name of the instance in the multi-role pool.
* @param options The options parameters.
*/
listMultiRolePoolInstanceMetricDefinitions(resourceGroupName: string, name: string, instance: string, options?: AppServiceEnvironmentsListMultiRolePoolInstanceMetricDefinitionsOptionalParams): PagedAsyncIterableIterator<ResourceMetricDefinition>;
private listMultiRolePoolInstanceMetricDefinitionsPagingPage;
private listMultiRolePoolInstanceMetricDefinitionsPagingAll;
/**
* Description for Get metric definitions for a multi-role pool of an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
listMultiRoleMetricDefinitions(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsListMultiRoleMetricDefinitionsOptionalParams): PagedAsyncIterableIterator<ResourceMetricDefinition>;
private listMultiRoleMetricDefinitionsPagingPage;
private listMultiRoleMetricDefinitionsPagingAll;
/**
* Description for Get available SKUs for scaling a multi-role pool.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
listMultiRolePoolSkus(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsListMultiRolePoolSkusOptionalParams): PagedAsyncIterableIterator<SkuInfo>;
private listMultiRolePoolSkusPagingPage;
private listMultiRolePoolSkusPagingAll;
/**
* Description for Get usage metrics for a multi-role pool of an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
listMultiRoleUsages(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsListMultiRoleUsagesOptionalParams): PagedAsyncIterableIterator<Usage>;
private listMultiRoleUsagesPagingPage;
private listMultiRoleUsagesPagingAll;
/**
* Description for Get the network endpoints of all outbound dependencies of an App Service
* Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
listOutboundNetworkDependenciesEndpoints(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsGetOutboundNetworkDependenciesEndpointsOptionalParams): PagedAsyncIterableIterator<OutboundEnvironmentEndpoint>;
private getOutboundNetworkDependenciesEndpointsPagingPage;
private getOutboundNetworkDependenciesEndpointsPagingAll;
/**
* Description for Gets the list of private endpoints associated with a hosting environment
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
listPrivateEndpointConnectionList(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsGetPrivateEndpointConnectionListOptionalParams): PagedAsyncIterableIterator<RemotePrivateEndpointConnectionARMResource>;
private getPrivateEndpointConnectionListPagingPage;
private getPrivateEndpointConnectionListPagingAll;
/**
* Description for Resume an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
beginListResumeAndWait(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsResumeOptionalParams): PagedAsyncIterableIterator<Site>;
private resumePagingPage;
private resumePagingAll;
/**
* Description for Get all App Service plans in an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
listAppServicePlans(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsListAppServicePlansOptionalParams): PagedAsyncIterableIterator<AppServicePlan>;
private listAppServicePlansPagingPage;
private listAppServicePlansPagingAll;
/**
* Description for Get all apps in an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
listWebApps(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsListWebAppsOptionalParams): PagedAsyncIterableIterator<Site>;
private listWebAppsPagingPage;
private listWebAppsPagingAll;
/**
* Description for Suspend an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
beginListSuspendAndWait(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsSuspendOptionalParams): PagedAsyncIterableIterator<Site>;
private suspendPagingPage;
private suspendPagingAll;
/**
* Description for Get global usage metrics of an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
listUsages(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsListUsagesOptionalParams): PagedAsyncIterableIterator<CsmUsageQuota>;
private listUsagesPagingPage;
private listUsagesPagingAll;
/**
* Description for Get all worker pools of an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
listWorkerPools(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsListWorkerPoolsOptionalParams): PagedAsyncIterableIterator<WorkerPoolResource>;
private listWorkerPoolsPagingPage;
private listWorkerPoolsPagingAll;
/**
* Description for Get metric definitions for a specific instance of a worker pool of an App Service
* Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param workerPoolName Name of the worker pool.
* @param instance Name of the instance in the worker pool.
* @param options The options parameters.
*/
listWorkerPoolInstanceMetricDefinitions(resourceGroupName: string, name: string, workerPoolName: string, instance: string, options?: AppServiceEnvironmentsListWorkerPoolInstanceMetricDefinitionsOptionalParams): PagedAsyncIterableIterator<ResourceMetricDefinition>;
private listWorkerPoolInstanceMetricDefinitionsPagingPage;
private listWorkerPoolInstanceMetricDefinitionsPagingAll;
/**
* Description for Get metric definitions for a worker pool of an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param workerPoolName Name of the worker pool.
* @param options The options parameters.
*/
listWebWorkerMetricDefinitions(resourceGroupName: string, name: string, workerPoolName: string, options?: AppServiceEnvironmentsListWebWorkerMetricDefinitionsOptionalParams): PagedAsyncIterableIterator<ResourceMetricDefinition>;
private listWebWorkerMetricDefinitionsPagingPage;
private listWebWorkerMetricDefinitionsPagingAll;
/**
* Description for Get available SKUs for scaling a worker pool.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param workerPoolName Name of the worker pool.
* @param options The options parameters.
*/
listWorkerPoolSkus(resourceGroupName: string, name: string, workerPoolName: string, options?: AppServiceEnvironmentsListWorkerPoolSkusOptionalParams): PagedAsyncIterableIterator<SkuInfo>;
private listWorkerPoolSkusPagingPage;
private listWorkerPoolSkusPagingAll;
/**
* Description for Get usage metrics for a worker pool of an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param workerPoolName Name of the worker pool.
* @param options The options parameters.
*/
listWebWorkerUsages(resourceGroupName: string, name: string, workerPoolName: string, options?: AppServiceEnvironmentsListWebWorkerUsagesOptionalParams): PagedAsyncIterableIterator<Usage>;
private listWebWorkerUsagesPagingPage;
private listWebWorkerUsagesPagingAll;
/**
* Description for Get all App Service Environments for a subscription.
* @param options The options parameters.
*/
private _list;
/**
* Description for Get all App Service Environments in a resource group.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param options The options parameters.
*/
private _listByResourceGroup;
/**
* Description for Get the properties of an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
get(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsGetOptionalParams): Promise<AppServiceEnvironmentsGetResponse>;
/**
* Description for Create or update an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param hostingEnvironmentEnvelope Configuration details of the App Service Environment.
* @param options The options parameters.
*/
beginCreateOrUpdate(resourceGroupName: string, name: string, hostingEnvironmentEnvelope: AppServiceEnvironmentResource, options?: AppServiceEnvironmentsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<AppServiceEnvironmentsCreateOrUpdateResponse>, AppServiceEnvironmentsCreateOrUpdateResponse>>;
/**
* Description for Create or update an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param hostingEnvironmentEnvelope Configuration details of the App Service Environment.
* @param options The options parameters.
*/
beginCreateOrUpdateAndWait(resourceGroupName: string, name: string, hostingEnvironmentEnvelope: AppServiceEnvironmentResource, options?: AppServiceEnvironmentsCreateOrUpdateOptionalParams): Promise<AppServiceEnvironmentsCreateOrUpdateResponse>;
/**
* Description for Delete an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
beginDelete(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
/**
* Description for Delete an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
beginDeleteAndWait(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsDeleteOptionalParams): Promise<void>;
/**
* Description for Create or update an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param hostingEnvironmentEnvelope Configuration details of the App Service Environment.
* @param options The options parameters.
*/
update(resourceGroupName: string, name: string, hostingEnvironmentEnvelope: AppServiceEnvironmentPatchResource, options?: AppServiceEnvironmentsUpdateOptionalParams): Promise<AppServiceEnvironmentsUpdateResponse>;
/**
* Description for Get the used, available, and total worker capacity an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
private _listCapacities;
/**
* Description for Get IP addresses assigned to an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
getVipInfo(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsGetVipInfoOptionalParams): Promise<AppServiceEnvironmentsGetVipInfoResponse>;
/**
* Description for Move an App Service Environment to a different VNET.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param vnetInfo Details for the new virtual network.
* @param options The options parameters.
*/
private _changeVnet;
/**
* Get Custom Dns Suffix configuration of an App Service Environment
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
getAseCustomDnsSuffixConfiguration(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsGetAseCustomDnsSuffixConfigurationOptionalParams): Promise<AppServiceEnvironmentsGetAseCustomDnsSuffixConfigurationResponse>;
/**
* Update Custom Dns Suffix configuration of an App Service Environment
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param customDnsSuffixConfiguration Full view of the custom domain suffix configuration for ASEv3.
* @param options The options parameters.
*/
updateAseCustomDnsSuffixConfiguration(resourceGroupName: string, name: string, customDnsSuffixConfiguration: CustomDnsSuffixConfiguration, options?: AppServiceEnvironmentsUpdateAseCustomDnsSuffixConfigurationOptionalParams): Promise<AppServiceEnvironmentsUpdateAseCustomDnsSuffixConfigurationResponse>;
/**
* Delete Custom Dns Suffix configuration of an App Service Environment
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
deleteAseCustomDnsSuffixConfiguration(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsDeleteAseCustomDnsSuffixConfigurationOptionalParams): Promise<AppServiceEnvironmentsDeleteAseCustomDnsSuffixConfigurationResponse>;
/**
* Description for Get networking configuration of an App Service Environment
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
getAseV3NetworkingConfiguration(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsGetAseV3NetworkingConfigurationOptionalParams): Promise<AppServiceEnvironmentsGetAseV3NetworkingConfigurationResponse>;
/**
* Description for Update networking configuration of an App Service Environment
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param aseNetworkingConfiguration Full view of networking configuration for an ASE.
* @param options The options parameters.
*/
updateAseNetworkingConfiguration(resourceGroupName: string, name: string, aseNetworkingConfiguration: AseV3NetworkingConfiguration, options?: AppServiceEnvironmentsUpdateAseNetworkingConfigurationOptionalParams): Promise<AppServiceEnvironmentsUpdateAseNetworkingConfigurationResponse>;
/**
* Description for Get diagnostic information for an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
listDiagnostics(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsListDiagnosticsOptionalParams): Promise<AppServiceEnvironmentsListDiagnosticsResponse>;
/**
* Description for Get a diagnostics item for an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param diagnosticsName Name of the diagnostics item.
* @param options The options parameters.
*/
getDiagnosticsItem(resourceGroupName: string, name: string, diagnosticsName: string, options?: AppServiceEnvironmentsGetDiagnosticsItemOptionalParams): Promise<AppServiceEnvironmentsGetDiagnosticsItemResponse>;
/**
* Description for Get the network endpoints of all inbound dependencies of an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
private _getInboundNetworkDependenciesEndpoints;
/**
* Description for Get all multi-role pools.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
private _listMultiRolePools;
/**
* Description for Get properties of a multi-role pool.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
getMultiRolePool(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsGetMultiRolePoolOptionalParams): Promise<AppServiceEnvironmentsGetMultiRolePoolResponse>;
/**
* Description for Create or update a multi-role pool.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param multiRolePoolEnvelope Properties of the multi-role pool.
* @param options The options parameters.
*/
beginCreateOrUpdateMultiRolePool(resourceGroupName: string, name: string, multiRolePoolEnvelope: WorkerPoolResource, options?: AppServiceEnvironmentsCreateOrUpdateMultiRolePoolOptionalParams): Promise<PollerLike<PollOperationState<AppServiceEnvironmentsCreateOrUpdateMultiRolePoolResponse>, AppServiceEnvironmentsCreateOrUpdateMultiRolePoolResponse>>;
/**
* Description for Create or update a multi-role pool.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param multiRolePoolEnvelope Properties of the multi-role pool.
* @param options The options parameters.
*/
beginCreateOrUpdateMultiRolePoolAndWait(resourceGroupName: string, name: string, multiRolePoolEnvelope: WorkerPoolResource, options?: AppServiceEnvironmentsCreateOrUpdateMultiRolePoolOptionalParams): Promise<AppServiceEnvironmentsCreateOrUpdateMultiRolePoolResponse>;
/**
* Description for Create or update a multi-role pool.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param multiRolePoolEnvelope Properties of the multi-role pool.
* @param options The options parameters.
*/
updateMultiRolePool(resourceGroupName: string, name: string, multiRolePoolEnvelope: WorkerPoolResource, options?: AppServiceEnvironmentsUpdateMultiRolePoolOptionalParams): Promise<AppServiceEnvironmentsUpdateMultiRolePoolResponse>;
/**
* Description for Get metric definitions for a specific instance of a multi-role pool of an App
* Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param instance Name of the instance in the multi-role pool.
* @param options The options parameters.
*/
private _listMultiRolePoolInstanceMetricDefinitions;
/**
* Description for Get metric definitions for a multi-role pool of an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
private _listMultiRoleMetricDefinitions;
/**
* Description for Get available SKUs for scaling a multi-role pool.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
private _listMultiRolePoolSkus;
/**
* Send a test notification that an upgrade is available for this App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
testUpgradeAvailableNotification(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsTestUpgradeAvailableNotificationOptionalParams): Promise<void>;
/**
* Description for Initiate an upgrade of an App Service Environment if one is available.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
beginUpgrade(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsUpgradeOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
/**
* Description for Initiate an upgrade of an App Service Environment if one is available.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
beginUpgradeAndWait(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsUpgradeOptionalParams): Promise<void>;
/**
* Description for Get usage metrics for a multi-role pool of an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
private _listMultiRoleUsages;
/**
* Description for List all currently running operations on the App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
listOperations(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsListOperationsOptionalParams): Promise<AppServiceEnvironmentsListOperationsResponse>;
/**
* Description for Get the network endpoints of all outbound dependencies of an App Service
* Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
private _getOutboundNetworkDependenciesEndpoints;
/**
* Description for Gets the list of private endpoints associated with a hosting environment
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
private _getPrivateEndpointConnectionList;
/**
* Description for Gets a private endpoint connection
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param privateEndpointConnectionName Name of the private endpoint connection.
* @param options The options parameters.
*/
getPrivateEndpointConnection(resourceGroupName: string, name: string, privateEndpointConnectionName: string, options?: AppServiceEnvironmentsGetPrivateEndpointConnectionOptionalParams): Promise<AppServiceEnvironmentsGetPrivateEndpointConnectionResponse>;
/**
* Description for Approves or rejects a private endpoint connection
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param privateEndpointConnectionName
* @param privateEndpointWrapper Private Endpoint Connection Approval ARM resource.
* @param options The options parameters.
*/
beginApproveOrRejectPrivateEndpointConnection(resourceGroupName: string, name: string, privateEndpointConnectionName: string, privateEndpointWrapper: PrivateLinkConnectionApprovalRequestResource, options?: AppServiceEnvironmentsApproveOrRejectPrivateEndpointConnectionOptionalParams): Promise<PollerLike<PollOperationState<AppServiceEnvironmentsApproveOrRejectPrivateEndpointConnectionResponse>, AppServiceEnvironmentsApproveOrRejectPrivateEndpointConnectionResponse>>;
/**
* Description for Approves or rejects a private endpoint connection
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param privateEndpointConnectionName
* @param privateEndpointWrapper Private Endpoint Connection Approval ARM resource.
* @param options The options parameters.
*/
beginApproveOrRejectPrivateEndpointConnectionAndWait(resourceGroupName: string, name: string, privateEndpointConnectionName: string, privateEndpointWrapper: PrivateLinkConnectionApprovalRequestResource, options?: AppServiceEnvironmentsApproveOrRejectPrivateEndpointConnectionOptionalParams): Promise<AppServiceEnvironmentsApproveOrRejectPrivateEndpointConnectionResponse>;
/**
* Description for Deletes a private endpoint connection
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param privateEndpointConnectionName
* @param options The options parameters.
*/
beginDeletePrivateEndpointConnection(resourceGroupName: string, name: string, privateEndpointConnectionName: string, options?: AppServiceEnvironmentsDeletePrivateEndpointConnectionOptionalParams): Promise<PollerLike<PollOperationState<AppServiceEnvironmentsDeletePrivateEndpointConnectionResponse>, AppServiceEnvironmentsDeletePrivateEndpointConnectionResponse>>;
/**
* Description for Deletes a private endpoint connection
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param privateEndpointConnectionName
* @param options The options parameters.
*/
beginDeletePrivateEndpointConnectionAndWait(resourceGroupName: string, name: string, privateEndpointConnectionName: string, options?: AppServiceEnvironmentsDeletePrivateEndpointConnectionOptionalParams): Promise<AppServiceEnvironmentsDeletePrivateEndpointConnectionResponse>;
/**
* Description for Gets the private link resources
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
getPrivateLinkResources(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsGetPrivateLinkResourcesOptionalParams): Promise<AppServiceEnvironmentsGetPrivateLinkResourcesResponse>;
/**
* Description for Reboot all machines in an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
reboot(resourceGroupName: string, name: string, options?: AppServiceEnvironmentsRebootOptionalParams): Promise<void>;
/**
* Description for Resume an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
private _resume;
/**
* Description for Get all App Service plans in an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
private _listAppServicePlans;
/**
* Description for Get all apps in an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
private _listWebApps;
/**
* Description for Suspend an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
private _suspend;
/**
* Description for Get global usage metrics of an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
private _listUsages;
/**
* Description for Get all worker pools of an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param options The options parameters.
*/
private _listWorkerPools;
/**
* Description for Get properties of a worker pool.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param workerPoolName Name of the worker pool.
* @param options The options parameters.
*/
getWorkerPool(resourceGroupName: string, name: string, workerPoolName: string, options?: AppServiceEnvironmentsGetWorkerPoolOptionalParams): Promise<AppServiceEnvironmentsGetWorkerPoolResponse>;
/**
* Description for Create or update a worker pool.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param workerPoolName Name of the worker pool.
* @param workerPoolEnvelope Properties of the worker pool.
* @param options The options parameters.
*/
beginCreateOrUpdateWorkerPool(resourceGroupName: string, name: string, workerPoolName: string, workerPoolEnvelope: WorkerPoolResource, options?: AppServiceEnvironmentsCreateOrUpdateWorkerPoolOptionalParams): Promise<PollerLike<PollOperationState<AppServiceEnvironmentsCreateOrUpdateWorkerPoolResponse>, AppServiceEnvironmentsCreateOrUpdateWorkerPoolResponse>>;
/**
* Description for Create or update a worker pool.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param workerPoolName Name of the worker pool.
* @param workerPoolEnvelope Properties of the worker pool.
* @param options The options parameters.
*/
beginCreateOrUpdateWorkerPoolAndWait(resourceGroupName: string, name: string, workerPoolName: string, workerPoolEnvelope: WorkerPoolResource, options?: AppServiceEnvironmentsCreateOrUpdateWorkerPoolOptionalParams): Promise<AppServiceEnvironmentsCreateOrUpdateWorkerPoolResponse>;
/**
* Description for Create or update a worker pool.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param workerPoolName Name of the worker pool.
* @param workerPoolEnvelope Properties of the worker pool.
* @param options The options parameters.
*/
updateWorkerPool(resourceGroupName: string, name: string, workerPoolName: string, workerPoolEnvelope: WorkerPoolResource, options?: AppServiceEnvironmentsUpdateWorkerPoolOptionalParams): Promise<AppServiceEnvironmentsUpdateWorkerPoolResponse>;
/**
* Description for Get metric definitions for a specific instance of a worker pool of an App Service
* Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param workerPoolName Name of the worker pool.
* @param instance Name of the instance in the worker pool.
* @param options The options parameters.
*/
private _listWorkerPoolInstanceMetricDefinitions;
/**
* Description for Get metric definitions for a worker pool of an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param workerPoolName Name of the worker pool.
* @param options The options parameters.
*/
private _listWebWorkerMetricDefinitions;
/**
* Description for Get available SKUs for scaling a worker pool.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param workerPoolName Name of the worker pool.
* @param options The options parameters.
*/
private _listWorkerPoolSkus;
/**
* Description for Get usage metrics for a worker pool of an App Service Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param workerPoolName Name of the worker pool.
* @param options The options parameters.
*/
private _listWebWorkerUsages;
/**
* ListNext
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
private _listNext;
/**
* ListByResourceGroupNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
* @param options The options parameters.
*/
private _listByResourceGroupNext;
/**
* ListCapacitiesNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param nextLink The nextLink from the previous successful call to the ListCapacities method.
* @param options The options parameters.
*/
private _listCapacitiesNext;
/**
* ChangeVnetNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param vnetInfo Details for the new virtual network.
* @param nextLink The nextLink from the previous successful call to the ChangeVnet method.
* @param options The options parameters.
*/
private _changeVnetNext;
/**
* GetInboundNetworkDependenciesEndpointsNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param nextLink The nextLink from the previous successful call to the
* GetInboundNetworkDependenciesEndpoints method.
* @param options The options parameters.
*/
private _getInboundNetworkDependenciesEndpointsNext;
/**
* ListMultiRolePoolsNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param nextLink The nextLink from the previous successful call to the ListMultiRolePools method.
* @param options The options parameters.
*/
private _listMultiRolePoolsNext;
/**
* ListMultiRolePoolInstanceMetricDefinitionsNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param instance Name of the instance in the multi-role pool.
* @param nextLink The nextLink from the previous successful call to the
* ListMultiRolePoolInstanceMetricDefinitions method.
* @param options The options parameters.
*/
private _listMultiRolePoolInstanceMetricDefinitionsNext;
/**
* ListMultiRoleMetricDefinitionsNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param nextLink The nextLink from the previous successful call to the ListMultiRoleMetricDefinitions
* method.
* @param options The options parameters.
*/
private _listMultiRoleMetricDefinitionsNext;
/**
* ListMultiRolePoolSkusNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param nextLink The nextLink from the previous successful call to the ListMultiRolePoolSkus method.
* @param options The options parameters.
*/
private _listMultiRolePoolSkusNext;
/**
* ListMultiRoleUsagesNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param nextLink The nextLink from the previous successful call to the ListMultiRoleUsages method.
* @param options The options parameters.
*/
private _listMultiRoleUsagesNext;
/**
* GetOutboundNetworkDependenciesEndpointsNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param nextLink The nextLink from the previous successful call to the
* GetOutboundNetworkDependenciesEndpoints method.
* @param options The options parameters.
*/
private _getOutboundNetworkDependenciesEndpointsNext;
/**
* GetPrivateEndpointConnectionListNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param nextLink The nextLink from the previous successful call to the
* GetPrivateEndpointConnectionList method.
* @param options The options parameters.
*/
private _getPrivateEndpointConnectionListNext;
/**
* ResumeNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param nextLink The nextLink from the previous successful call to the Resume method.
* @param options The options parameters.
*/
private _resumeNext;
/**
* ListAppServicePlansNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param nextLink The nextLink from the previous successful call to the ListAppServicePlans method.
* @param options The options parameters.
*/
private _listAppServicePlansNext;
/**
* ListWebAppsNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param nextLink The nextLink from the previous successful call to the ListWebApps method.
* @param options The options parameters.
*/
private _listWebAppsNext;
/**
* SuspendNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param nextLink The nextLink from the previous successful call to the Suspend method.
* @param options The options parameters.
*/
private _suspendNext;
/**
* ListUsagesNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param nextLink The nextLink from the previous successful call to the ListUsages method.
* @param options The options parameters.
*/
private _listUsagesNext;
/**
* ListWorkerPoolsNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param nextLink The nextLink from the previous successful call to the ListWorkerPools method.
* @param options The options parameters.
*/
private _listWorkerPoolsNext;
/**
* ListWorkerPoolInstanceMetricDefinitionsNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param workerPoolName Name of the worker pool.
* @param instance Name of the instance in the worker pool.
* @param nextLink The nextLink from the previous successful call to the
* ListWorkerPoolInstanceMetricDefinitions method.
* @param options The options parameters.
*/
private _listWorkerPoolInstanceMetricDefinitionsNext;
/**
* ListWebWorkerMetricDefinitionsNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param workerPoolName Name of the worker pool.
* @param nextLink The nextLink from the previous successful call to the ListWebWorkerMetricDefinitions
* method.
* @param options The options parameters.
*/
private _listWebWorkerMetricDefinitionsNext;
/**
* ListWorkerPoolSkusNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param workerPoolName Name of the worker pool.
* @param nextLink The nextLink from the previous successful call to the ListWorkerPoolSkus method.
* @param options The options parameters.
*/
private _listWorkerPoolSkusNext;
/**
* ListWebWorkerUsagesNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param workerPoolName Name of the worker pool.
* @param nextLink The nextLink from the previous successful call to the ListWebWorkerUsages method.
* @param options The options parameters.
*/
private _listWebWorkerUsagesNext;
}
//# sourceMappingURL=appServiceEnvironments.d.ts.map
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
@@ -0,0 +1,338 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { AppServicePlans } from "../operationsInterfaces";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import { PollerLike, PollOperationState } from "@azure/core-lro";
import { AppServicePlan, AppServicePlansListOptionalParams, AppServicePlansListByResourceGroupOptionalParams, AppServicePlansListWebAppsByHybridConnectionOptionalParams, HybridConnection, AppServicePlansListHybridConnectionsOptionalParams, Site, AppServicePlansListWebAppsOptionalParams, CsmUsageQuota, AppServicePlansListUsagesOptionalParams, AppServicePlansGetOptionalParams, AppServicePlansGetResponse, AppServicePlansCreateOrUpdateOptionalParams, AppServicePlansCreateOrUpdateResponse, AppServicePlansDeleteOptionalParams, AppServicePlanPatchResource, AppServicePlansUpdateOptionalParams, AppServicePlansUpdateResponse, AppServicePlansListCapabilitiesOptionalParams, AppServicePlansListCapabilitiesResponse, AppServicePlansGetHybridConnectionOptionalParams, AppServicePlansGetHybridConnectionResponse, AppServicePlansDeleteHybridConnectionOptionalParams, AppServicePlansListHybridConnectionKeysOptionalParams, AppServicePlansListHybridConnectionKeysResponse, AppServicePlansGetHybridConnectionPlanLimitOptionalParams, AppServicePlansGetHybridConnectionPlanLimitResponse, AppServicePlansRestartWebAppsOptionalParams, AppServicePlansGetServerFarmSkusOptionalParams, AppServicePlansGetServerFarmSkusResponse, AppServicePlansListVnetsOptionalParams, AppServicePlansListVnetsResponse, AppServicePlansGetVnetFromServerFarmOptionalParams, AppServicePlansGetVnetFromServerFarmResponse, AppServicePlansGetVnetGatewayOptionalParams, AppServicePlansGetVnetGatewayResponse, VnetGateway, AppServicePlansUpdateVnetGatewayOptionalParams, AppServicePlansUpdateVnetGatewayResponse, AppServicePlansListRoutesForVnetOptionalParams, AppServicePlansListRoutesForVnetResponse, AppServicePlansGetRouteForVnetOptionalParams, AppServicePlansGetRouteForVnetResponse, VnetRoute, AppServicePlansCreateOrUpdateVnetRouteOptionalParams, AppServicePlansCreateOrUpdateVnetRouteResponse, AppServicePlansDeleteVnetRouteOptionalParams, AppServicePlansUpdateVnetRouteOptionalParams, AppServicePlansUpdateVnetRouteResponse, AppServicePlansRebootWorkerOptionalParams } from "../models";
/** Class containing AppServicePlans operations. */
export declare class AppServicePlansImpl implements AppServicePlans {
private readonly client;
/**
* Initialize a new instance of the class AppServicePlans class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient);
/**
* Description for Get all App Service plans for a subscription.
* @param options The options parameters.
*/
list(options?: AppServicePlansListOptionalParams): PagedAsyncIterableIterator<AppServicePlan>;
private listPagingPage;
private listPagingAll;
/**
* Description for Get all App Service plans in a resource group.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param options The options parameters.
*/
listByResourceGroup(resourceGroupName: string, options?: AppServicePlansListByResourceGroupOptionalParams): PagedAsyncIterableIterator<AppServicePlan>;
private listByResourceGroupPagingPage;
private listByResourceGroupPagingAll;
/**
* Description for Get all apps that use a Hybrid Connection in an App Service Plan.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service plan.
* @param namespaceName Name of the Hybrid Connection namespace.
* @param relayName Name of the Hybrid Connection relay.
* @param options The options parameters.
*/
listWebAppsByHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options?: AppServicePlansListWebAppsByHybridConnectionOptionalParams): PagedAsyncIterableIterator<string>;
private listWebAppsByHybridConnectionPagingPage;
private listWebAppsByHybridConnectionPagingAll;
/**
* Description for Retrieve all Hybrid Connections in use in an App Service plan.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service plan.
* @param options The options parameters.
*/
listHybridConnections(resourceGroupName: string, name: string, options?: AppServicePlansListHybridConnectionsOptionalParams): PagedAsyncIterableIterator<HybridConnection>;
private listHybridConnectionsPagingPage;
private listHybridConnectionsPagingAll;
/**
* Description for Get all apps associated with an App Service plan.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service plan.
* @param options The options parameters.
*/
listWebApps(resourceGroupName: string, name: string, options?: AppServicePlansListWebAppsOptionalParams): PagedAsyncIterableIterator<Site>;
private listWebAppsPagingPage;
private listWebAppsPagingAll;
/**
* Description for Gets server farm usage information
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of App Service Plan
* @param options The options parameters.
*/
listUsages(resourceGroupName: string, name: string, options?: AppServicePlansListUsagesOptionalParams): PagedAsyncIterableIterator<CsmUsageQuota>;
private listUsagesPagingPage;
private listUsagesPagingAll;
/**
* Description for Get all App Service plans for a subscription.
* @param options The options parameters.
*/
private _list;
/**
* Description for Get all App Service plans in a resource group.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param options The options parameters.
*/
private _listByResourceGroup;
/**
* Description for Get an App Service plan.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service plan.
* @param options The options parameters.
*/
get(resourceGroupName: string, name: string, options?: AppServicePlansGetOptionalParams): Promise<AppServicePlansGetResponse>;
/**
* Description for Creates or updates an App Service Plan.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service plan.
* @param appServicePlan Details of the App Service plan.
* @param options The options parameters.
*/
beginCreateOrUpdate(resourceGroupName: string, name: string, appServicePlan: AppServicePlan, options?: AppServicePlansCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<AppServicePlansCreateOrUpdateResponse>, AppServicePlansCreateOrUpdateResponse>>;
/**
* Description for Creates or updates an App Service Plan.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service plan.
* @param appServicePlan Details of the App Service plan.
* @param options The options parameters.
*/
beginCreateOrUpdateAndWait(resourceGroupName: string, name: string, appServicePlan: AppServicePlan, options?: AppServicePlansCreateOrUpdateOptionalParams): Promise<AppServicePlansCreateOrUpdateResponse>;
/**
* Description for Delete an App Service plan.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service plan.
* @param options The options parameters.
*/
delete(resourceGroupName: string, name: string, options?: AppServicePlansDeleteOptionalParams): Promise<void>;
/**
* Description for Creates or updates an App Service Plan.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service plan.
* @param appServicePlan Details of the App Service plan.
* @param options The options parameters.
*/
update(resourceGroupName: string, name: string, appServicePlan: AppServicePlanPatchResource, options?: AppServicePlansUpdateOptionalParams): Promise<AppServicePlansUpdateResponse>;
/**
* Description for List all capabilities of an App Service plan.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service plan.
* @param options The options parameters.
*/
listCapabilities(resourceGroupName: string, name: string, options?: AppServicePlansListCapabilitiesOptionalParams): Promise<AppServicePlansListCapabilitiesResponse>;
/**
* Description for Retrieve a Hybrid Connection in use in an App Service plan.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service plan.
* @param namespaceName Name of the Service Bus namespace.
* @param relayName Name of the Service Bus relay.
* @param options The options parameters.
*/
getHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options?: AppServicePlansGetHybridConnectionOptionalParams): Promise<AppServicePlansGetHybridConnectionResponse>;
/**
* Description for Delete a Hybrid Connection in use in an App Service plan.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service plan.
* @param namespaceName Name of the Service Bus namespace.
* @param relayName Name of the Service Bus relay.
* @param options The options parameters.
*/
deleteHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options?: AppServicePlansDeleteHybridConnectionOptionalParams): Promise<void>;
/**
* Description for Get the send key name and value of a Hybrid Connection.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service plan.
* @param namespaceName The name of the Service Bus namespace.
* @param relayName The name of the Service Bus relay.
* @param options The options parameters.
*/
listHybridConnectionKeys(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options?: AppServicePlansListHybridConnectionKeysOptionalParams): Promise<AppServicePlansListHybridConnectionKeysResponse>;
/**
* Description for Get all apps that use a Hybrid Connection in an App Service Plan.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service plan.
* @param namespaceName Name of the Hybrid Connection namespace.
* @param relayName Name of the Hybrid Connection relay.
* @param options The options parameters.
*/
private _listWebAppsByHybridConnection;
/**
* Description for Get the maximum number of Hybrid Connections allowed in an App Service plan.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service plan.
* @param options The options parameters.
*/
getHybridConnectionPlanLimit(resourceGroupName: string, name: string, options?: AppServicePlansGetHybridConnectionPlanLimitOptionalParams): Promise<AppServicePlansGetHybridConnectionPlanLimitResponse>;
/**
* Description for Retrieve all Hybrid Connections in use in an App Service plan.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service plan.
* @param options The options parameters.
*/
private _listHybridConnections;
/**
* Description for Restart all apps in an App Service plan.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service plan.
* @param options The options parameters.
*/
restartWebApps(resourceGroupName: string, name: string, options?: AppServicePlansRestartWebAppsOptionalParams): Promise<void>;
/**
* Description for Get all apps associated with an App Service plan.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service plan.
* @param options The options parameters.
*/
private _listWebApps;
/**
* Description for Gets all selectable SKUs for a given App Service Plan
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of App Service Plan
* @param options The options parameters.
*/
getServerFarmSkus(resourceGroupName: string, name: string, options?: AppServicePlansGetServerFarmSkusOptionalParams): Promise<AppServicePlansGetServerFarmSkusResponse>;
/**
* Description for Gets server farm usage information
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of App Service Plan
* @param options The options parameters.
*/
private _listUsages;
/**
* Description for Get all Virtual Networks associated with an App Service plan.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service plan.
* @param options The options parameters.
*/
listVnets(resourceGroupName: string, name: string, options?: AppServicePlansListVnetsOptionalParams): Promise<AppServicePlansListVnetsResponse>;
/**
* Description for Get a Virtual Network associated with an App Service plan.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service plan.
* @param vnetName Name of the Virtual Network.
* @param options The options parameters.
*/
getVnetFromServerFarm(resourceGroupName: string, name: string, vnetName: string, options?: AppServicePlansGetVnetFromServerFarmOptionalParams): Promise<AppServicePlansGetVnetFromServerFarmResponse>;
/**
* Description for Get a Virtual Network gateway.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service plan.
* @param vnetName Name of the Virtual Network.
* @param gatewayName Name of the gateway. Only the 'primary' gateway is supported.
* @param options The options parameters.
*/
getVnetGateway(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, options?: AppServicePlansGetVnetGatewayOptionalParams): Promise<AppServicePlansGetVnetGatewayResponse>;
/**
* Description for Update a Virtual Network gateway.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service plan.
* @param vnetName Name of the Virtual Network.
* @param gatewayName Name of the gateway. Only the 'primary' gateway is supported.
* @param connectionEnvelope Definition of the gateway.
* @param options The options parameters.
*/
updateVnetGateway(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, connectionEnvelope: VnetGateway, options?: AppServicePlansUpdateVnetGatewayOptionalParams): Promise<AppServicePlansUpdateVnetGatewayResponse>;
/**
* Description for Get all routes that are associated with a Virtual Network in an App Service plan.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service plan.
* @param vnetName Name of the Virtual Network.
* @param options The options parameters.
*/
listRoutesForVnet(resourceGroupName: string, name: string, vnetName: string, options?: AppServicePlansListRoutesForVnetOptionalParams): Promise<AppServicePlansListRoutesForVnetResponse>;
/**
* Description for Get a Virtual Network route in an App Service plan.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service plan.
* @param vnetName Name of the Virtual Network.
* @param routeName Name of the Virtual Network route.
* @param options The options parameters.
*/
getRouteForVnet(resourceGroupName: string, name: string, vnetName: string, routeName: string, options?: AppServicePlansGetRouteForVnetOptionalParams): Promise<AppServicePlansGetRouteForVnetResponse>;
/**
* Description for Create or update a Virtual Network route in an App Service plan.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service plan.
* @param vnetName Name of the Virtual Network.
* @param routeName Name of the Virtual Network route.
* @param route Definition of the Virtual Network route.
* @param options The options parameters.
*/
createOrUpdateVnetRoute(resourceGroupName: string, name: string, vnetName: string, routeName: string, route: VnetRoute, options?: AppServicePlansCreateOrUpdateVnetRouteOptionalParams): Promise<AppServicePlansCreateOrUpdateVnetRouteResponse>;
/**
* Description for Delete a Virtual Network route in an App Service plan.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service plan.
* @param vnetName Name of the Virtual Network.
* @param routeName Name of the Virtual Network route.
* @param options The options parameters.
*/
deleteVnetRoute(resourceGroupName: string, name: string, vnetName: string, routeName: string, options?: AppServicePlansDeleteVnetRouteOptionalParams): Promise<void>;
/**
* Description for Create or update a Virtual Network route in an App Service plan.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service plan.
* @param vnetName Name of the Virtual Network.
* @param routeName Name of the Virtual Network route.
* @param route Definition of the Virtual Network route.
* @param options The options parameters.
*/
updateVnetRoute(resourceGroupName: string, name: string, vnetName: string, routeName: string, route: VnetRoute, options?: AppServicePlansUpdateVnetRouteOptionalParams): Promise<AppServicePlansUpdateVnetRouteResponse>;
/**
* Description for Reboot a worker machine in an App Service plan.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service plan.
* @param workerName Name of worker machine, which typically starts with RD.
* @param options The options parameters.
*/
rebootWorker(resourceGroupName: string, name: string, workerName: string, options?: AppServicePlansRebootWorkerOptionalParams): Promise<void>;
/**
* ListNext
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
private _listNext;
/**
* ListByResourceGroupNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
* @param options The options parameters.
*/
private _listByResourceGroupNext;
/**
* ListWebAppsByHybridConnectionNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service plan.
* @param namespaceName Name of the Hybrid Connection namespace.
* @param relayName Name of the Hybrid Connection relay.
* @param nextLink The nextLink from the previous successful call to the ListWebAppsByHybridConnection
* method.
* @param options The options parameters.
*/
private _listWebAppsByHybridConnectionNext;
/**
* ListHybridConnectionsNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service plan.
* @param nextLink The nextLink from the previous successful call to the ListHybridConnections method.
* @param options The options parameters.
*/
private _listHybridConnectionsNext;
/**
* ListWebAppsNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service plan.
* @param nextLink The nextLink from the previous successful call to the ListWebApps method.
* @param options The options parameters.
*/
private _listWebAppsNext;
/**
* ListUsagesNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of App Service Plan
* @param nextLink The nextLink from the previous successful call to the ListUsages method.
* @param options The options parameters.
*/
private _listUsagesNext;
}
//# sourceMappingURL=appServicePlans.d.ts.map
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
@@ -0,0 +1,47 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { CertificateOrdersDiagnostics } from "../operationsInterfaces";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import { DetectorResponse, CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponseOptionalParams, CertificateOrdersDiagnosticsGetAppServiceCertificateOrderDetectorResponseOptionalParams, CertificateOrdersDiagnosticsGetAppServiceCertificateOrderDetectorResponseResponse } from "../models";
/** Class containing CertificateOrdersDiagnostics operations. */
export declare class CertificateOrdersDiagnosticsImpl implements CertificateOrdersDiagnostics {
private readonly client;
/**
* Initialize a new instance of the class CertificateOrdersDiagnostics class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient);
/**
* Description for Microsoft.CertificateRegistration to get the list of detectors for this RP.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param certificateOrderName The certificate order name for which the response is needed.
* @param options The options parameters.
*/
listAppServiceCertificateOrderDetectorResponse(resourceGroupName: string, certificateOrderName: string, options?: CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponseOptionalParams): PagedAsyncIterableIterator<DetectorResponse>;
private listAppServiceCertificateOrderDetectorResponsePagingPage;
private listAppServiceCertificateOrderDetectorResponsePagingAll;
/**
* Description for Microsoft.CertificateRegistration to get the list of detectors for this RP.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param certificateOrderName The certificate order name for which the response is needed.
* @param options The options parameters.
*/
private _listAppServiceCertificateOrderDetectorResponse;
/**
* Description for Microsoft.CertificateRegistration call to get a detector response from App Lens.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param certificateOrderName The certificate order name for which the response is needed.
* @param detectorName The detector name which needs to be run.
* @param options The options parameters.
*/
getAppServiceCertificateOrderDetectorResponse(resourceGroupName: string, certificateOrderName: string, detectorName: string, options?: CertificateOrdersDiagnosticsGetAppServiceCertificateOrderDetectorResponseOptionalParams): Promise<CertificateOrdersDiagnosticsGetAppServiceCertificateOrderDetectorResponseResponse>;
/**
* ListAppServiceCertificateOrderDetectorResponseNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param certificateOrderName The certificate order name for which the response is needed.
* @param nextLink The nextLink from the previous successful call to the
* ListAppServiceCertificateOrderDetectorResponse method.
* @param options The options parameters.
*/
private _listAppServiceCertificateOrderDetectorResponseNext;
}
//# sourceMappingURL=certificateOrdersDiagnostics.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"certificateOrdersDiagnostics.d.ts","sourceRoot":"","sources":["../../../src/operations/certificateOrdersDiagnostics.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAIvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,gBAAgB,EAEhB,wFAAwF,EAExF,uFAAuF,EACvF,iFAAiF,EAElF,MAAM,WAAW,CAAC;AAGnB,gEAAgE;AAChE,qBAAa,gCACX,YAAW,4BAA4B;IACvC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;;;OAKG;IACI,8CAA8C,CACnD,iBAAiB,EAAE,MAAM,EACzB,oBAAoB,EAAE,MAAM,EAC5B,OAAO,CAAC,EAAE,wFAAwF,GACjG,0BAA0B,CAAC,gBAAgB,CAAC;YA2BhC,wDAAwD;YAiCxD,uDAAuD;IActE;;;;;OAKG;IACH,OAAO,CAAC,+CAA+C;IAavD;;;;;;OAMG;IACH,6CAA6C,CAC3C,iBAAiB,EAAE,MAAM,EACzB,oBAAoB,EAAE,MAAM,EAC5B,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,uFAAuF,GAChG,OAAO,CACR,iFAAiF,CAClF;IAOD;;;;;;;OAOG;IACH,OAAO,CAAC,mDAAmD;CAa5D"}
@@ -0,0 +1,187 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
import { setContinuationToken } from "../pagingHelper";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/// <reference lib="esnext.asynciterable" />
/** Class containing CertificateOrdersDiagnostics operations. */
export class CertificateOrdersDiagnosticsImpl {
/**
* Initialize a new instance of the class CertificateOrdersDiagnostics class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* Description for Microsoft.CertificateRegistration to get the list of detectors for this RP.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param certificateOrderName The certificate order name for which the response is needed.
* @param options The options parameters.
*/
listAppServiceCertificateOrderDetectorResponse(resourceGroupName, certificateOrderName, options) {
const iter = this.listAppServiceCertificateOrderDetectorResponsePagingAll(resourceGroupName, certificateOrderName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listAppServiceCertificateOrderDetectorResponsePagingPage(resourceGroupName, certificateOrderName, options, settings);
}
};
}
listAppServiceCertificateOrderDetectorResponsePagingPage(resourceGroupName, certificateOrderName, options, settings) {
return __asyncGenerator(this, arguments, function* listAppServiceCertificateOrderDetectorResponsePagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._listAppServiceCertificateOrderDetectorResponse(resourceGroupName, certificateOrderName, options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listAppServiceCertificateOrderDetectorResponseNext(resourceGroupName, certificateOrderName, continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
listAppServiceCertificateOrderDetectorResponsePagingAll(resourceGroupName, certificateOrderName, options) {
return __asyncGenerator(this, arguments, function* listAppServiceCertificateOrderDetectorResponsePagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.listAppServiceCertificateOrderDetectorResponsePagingPage(resourceGroupName, certificateOrderName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* Description for Microsoft.CertificateRegistration to get the list of detectors for this RP.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param certificateOrderName The certificate order name for which the response is needed.
* @param options The options parameters.
*/
_listAppServiceCertificateOrderDetectorResponse(resourceGroupName, certificateOrderName, options) {
return this.client.sendOperationRequest({ resourceGroupName, certificateOrderName, options }, listAppServiceCertificateOrderDetectorResponseOperationSpec);
}
/**
* Description for Microsoft.CertificateRegistration call to get a detector response from App Lens.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param certificateOrderName The certificate order name for which the response is needed.
* @param detectorName The detector name which needs to be run.
* @param options The options parameters.
*/
getAppServiceCertificateOrderDetectorResponse(resourceGroupName, certificateOrderName, detectorName, options) {
return this.client.sendOperationRequest({ resourceGroupName, certificateOrderName, detectorName, options }, getAppServiceCertificateOrderDetectorResponseOperationSpec);
}
/**
* ListAppServiceCertificateOrderDetectorResponseNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param certificateOrderName The certificate order name for which the response is needed.
* @param nextLink The nextLink from the previous successful call to the
* ListAppServiceCertificateOrderDetectorResponse method.
* @param options The options parameters.
*/
_listAppServiceCertificateOrderDetectorResponseNext(resourceGroupName, certificateOrderName, nextLink, options) {
return this.client.sendOperationRequest({ resourceGroupName, certificateOrderName, nextLink, options }, listAppServiceCertificateOrderDetectorResponseNextOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listAppServiceCertificateOrderDetectorResponseOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/detectors",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DetectorResponseCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.certificateOrderName
],
headerParameters: [Parameters.accept],
serializer
};
const getAppServiceCertificateOrderDetectorResponseOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/detectors/{detectorName}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DetectorResponse
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [
Parameters.apiVersion,
Parameters.startTime,
Parameters.endTime,
Parameters.timeGrain
],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.certificateOrderName,
Parameters.detectorName
],
headerParameters: [Parameters.accept],
serializer
};
const listAppServiceCertificateOrderDetectorResponseNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DetectorResponseCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.certificateOrderName,
Parameters.nextLink
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=certificateOrdersDiagnostics.js.map
@@ -0,0 +1 @@
{"version":3,"file":"certificateOrdersDiagnostics.js","sourceRoot":"","sources":["../../../src/operations/certificateOrdersDiagnostics.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,34 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { CertificateRegistrationProvider } from "../operationsInterfaces";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import { CsmOperationDescription, CertificateRegistrationProviderListOperationsOptionalParams } from "../models";
/** Class containing CertificateRegistrationProvider operations. */
export declare class CertificateRegistrationProviderImpl implements CertificateRegistrationProvider {
private readonly client;
/**
* Initialize a new instance of the class CertificateRegistrationProvider class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient);
/**
* Description for Implements Csm operations Api to exposes the list of available Csm Apis under the
* resource provider
* @param options The options parameters.
*/
listOperations(options?: CertificateRegistrationProviderListOperationsOptionalParams): PagedAsyncIterableIterator<CsmOperationDescription>;
private listOperationsPagingPage;
private listOperationsPagingAll;
/**
* Description for Implements Csm operations Api to exposes the list of available Csm Apis under the
* resource provider
* @param options The options parameters.
*/
private _listOperations;
/**
* ListOperationsNext
* @param nextLink The nextLink from the previous successful call to the ListOperations method.
* @param options The options parameters.
*/
private _listOperationsNext;
}
//# sourceMappingURL=certificateRegistrationProvider.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"certificateRegistrationProvider.d.ts","sourceRoot":"","sources":["../../../src/operations/certificateRegistrationProvider.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,+BAA+B,EAAE,MAAM,yBAAyB,CAAC;AAI1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,uBAAuB,EAEvB,2DAA2D,EAG5D,MAAM,WAAW,CAAC;AAGnB,mEAAmE;AACnE,qBAAa,mCACX,YAAW,+BAA+B;IAC1C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;;OAIG;IACI,cAAc,CACnB,OAAO,CAAC,EAAE,2DAA2D,GACpE,0BAA0B,CAAC,uBAAuB,CAAC;YAkBvC,wBAAwB;YAsBxB,uBAAuB;IAQtC;;;;OAIG;IACH,OAAO,CAAC,eAAe;IASvB;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;CAS5B"}
@@ -0,0 +1,134 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
import { setContinuationToken } from "../pagingHelper";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/// <reference lib="esnext.asynciterable" />
/** Class containing CertificateRegistrationProvider operations. */
export class CertificateRegistrationProviderImpl {
/**
* Initialize a new instance of the class CertificateRegistrationProvider class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* Description for Implements Csm operations Api to exposes the list of available Csm Apis under the
* resource provider
* @param options The options parameters.
*/
listOperations(options) {
const iter = this.listOperationsPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listOperationsPagingPage(options, settings);
}
};
}
listOperationsPagingPage(options, settings) {
return __asyncGenerator(this, arguments, function* listOperationsPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._listOperations(options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listOperationsNext(continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
listOperationsPagingAll(options) {
return __asyncGenerator(this, arguments, function* listOperationsPagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.listOperationsPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* Description for Implements Csm operations Api to exposes the list of available Csm Apis under the
* resource provider
* @param options The options parameters.
*/
_listOperations(options) {
return this.client.sendOperationRequest({ options }, listOperationsOperationSpec);
}
/**
* ListOperationsNext
* @param nextLink The nextLink from the previous successful call to the ListOperations method.
* @param options The options parameters.
*/
_listOperationsNext(nextLink, options) {
return this.client.sendOperationRequest({ nextLink, options }, listOperationsNextOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationsOperationSpec = {
path: "/providers/Microsoft.CertificateRegistration/operations",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.CsmOperationCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host],
headerParameters: [Parameters.accept],
serializer
};
const listOperationsNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.CsmOperationCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host, Parameters.nextLink],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=certificateRegistrationProvider.js.map
@@ -0,0 +1 @@
{"version":3,"file":"certificateRegistrationProvider.js","sourceRoot":"","sources":["../../../src/operations/certificateRegistrationProvider.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,83 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { Certificates } from "../operationsInterfaces";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import { Certificate, CertificatesListOptionalParams, CertificatesListByResourceGroupOptionalParams, CertificatesGetOptionalParams, CertificatesGetResponse, CertificatesCreateOrUpdateOptionalParams, CertificatesCreateOrUpdateResponse, CertificatesDeleteOptionalParams, CertificatePatchResource, CertificatesUpdateOptionalParams, CertificatesUpdateResponse } from "../models";
/** Class containing Certificates operations. */
export declare class CertificatesImpl implements Certificates {
private readonly client;
/**
* Initialize a new instance of the class Certificates class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient);
/**
* Description for Get all certificates for a subscription.
* @param options The options parameters.
*/
list(options?: CertificatesListOptionalParams): PagedAsyncIterableIterator<Certificate>;
private listPagingPage;
private listPagingAll;
/**
* Description for Get all certificates in a resource group.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param options The options parameters.
*/
listByResourceGroup(resourceGroupName: string, options?: CertificatesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Certificate>;
private listByResourceGroupPagingPage;
private listByResourceGroupPagingAll;
/**
* Description for Get all certificates for a subscription.
* @param options The options parameters.
*/
private _list;
/**
* Description for Get all certificates in a resource group.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param options The options parameters.
*/
private _listByResourceGroup;
/**
* Description for Get a certificate.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the certificate.
* @param options The options parameters.
*/
get(resourceGroupName: string, name: string, options?: CertificatesGetOptionalParams): Promise<CertificatesGetResponse>;
/**
* Description for Create or update a certificate.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the certificate.
* @param certificateEnvelope Details of certificate, if it exists already.
* @param options The options parameters.
*/
createOrUpdate(resourceGroupName: string, name: string, certificateEnvelope: Certificate, options?: CertificatesCreateOrUpdateOptionalParams): Promise<CertificatesCreateOrUpdateResponse>;
/**
* Description for Delete a certificate.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the certificate.
* @param options The options parameters.
*/
delete(resourceGroupName: string, name: string, options?: CertificatesDeleteOptionalParams): Promise<void>;
/**
* Description for Create or update a certificate.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the certificate.
* @param certificateEnvelope Details of certificate, if it exists already.
* @param options The options parameters.
*/
update(resourceGroupName: string, name: string, certificateEnvelope: CertificatePatchResource, options?: CertificatesUpdateOptionalParams): Promise<CertificatesUpdateResponse>;
/**
* ListNext
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
private _listNext;
/**
* ListByResourceGroupNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
* @param options The options parameters.
*/
private _listByResourceGroupNext;
}
//# sourceMappingURL=certificates.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"certificates.d.ts","sourceRoot":"","sources":["../../../src/operations/certificates.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAIvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,WAAW,EAEX,8BAA8B,EAG9B,6CAA6C,EAE7C,6BAA6B,EAC7B,uBAAuB,EACvB,wCAAwC,EACxC,kCAAkC,EAClC,gCAAgC,EAChC,wBAAwB,EACxB,gCAAgC,EAChC,0BAA0B,EAG3B,MAAM,WAAW,CAAC;AAGnB,gDAAgD;AAChD,qBAAa,gBAAiB,YAAW,YAAY;IACnD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,8BAA8B,GACvC,0BAA0B,CAAC,WAAW,CAAC;YAkB3B,cAAc;YAsBd,aAAa;IAQ5B;;;;OAIG;IACI,mBAAmB,CACxB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,6CAA6C,GACtD,0BAA0B,CAAC,WAAW,CAAC;YAsB3B,6BAA6B;YA2B7B,4BAA4B;IAY3C;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,oBAAoB;IAU5B;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,uBAAuB,CAAC;IAOnC;;;;;;OAMG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,mBAAmB,EAAE,WAAW,EAChC,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kCAAkC,CAAC;IAO9C;;;;;OAKG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,mBAAmB,EAAE,wBAAwB,EAC7C,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC;IAOtC;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAUjB;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB;CAUjC"}
@@ -0,0 +1,379 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
import { setContinuationToken } from "../pagingHelper";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/// <reference lib="esnext.asynciterable" />
/** Class containing Certificates operations. */
export class CertificatesImpl {
/**
* Initialize a new instance of the class Certificates class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* Description for Get all certificates for a subscription.
* @param options The options parameters.
*/
list(options) {
const iter = this.listPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listPagingPage(options, settings);
}
};
}
listPagingPage(options, settings) {
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._list(options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listNext(continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
listPagingAll(options) {
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* Description for Get all certificates in a resource group.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param options The options parameters.
*/
listByResourceGroup(resourceGroupName, options) {
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
}
};
}
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._listByResourceGroup(resourceGroupName, options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
listByResourceGroupPagingAll(resourceGroupName, options) {
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
var e_2, _a;
try {
for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_2_1) { e_2 = { error: e_2_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_2) throw e_2.error; }
}
});
}
/**
* Description for Get all certificates for a subscription.
* @param options The options parameters.
*/
_list(options) {
return this.client.sendOperationRequest({ options }, listOperationSpec);
}
/**
* Description for Get all certificates in a resource group.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param options The options parameters.
*/
_listByResourceGroup(resourceGroupName, options) {
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
}
/**
* Description for Get a certificate.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the certificate.
* @param options The options parameters.
*/
get(resourceGroupName, name, options) {
return this.client.sendOperationRequest({ resourceGroupName, name, options }, getOperationSpec);
}
/**
* Description for Create or update a certificate.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the certificate.
* @param certificateEnvelope Details of certificate, if it exists already.
* @param options The options parameters.
*/
createOrUpdate(resourceGroupName, name, certificateEnvelope, options) {
return this.client.sendOperationRequest({ resourceGroupName, name, certificateEnvelope, options }, createOrUpdateOperationSpec);
}
/**
* Description for Delete a certificate.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the certificate.
* @param options The options parameters.
*/
delete(resourceGroupName, name, options) {
return this.client.sendOperationRequest({ resourceGroupName, name, options }, deleteOperationSpec);
}
/**
* Description for Create or update a certificate.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the certificate.
* @param certificateEnvelope Details of certificate, if it exists already.
* @param options The options parameters.
*/
update(resourceGroupName, name, certificateEnvelope, options) {
return this.client.sendOperationRequest({ resourceGroupName, name, certificateEnvelope, options }, updateOperationSpec);
}
/**
* ListNext
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
_listNext(nextLink, options) {
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
}
/**
* ListByResourceGroupNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
* @param options The options parameters.
*/
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/certificates",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.CertificateCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion, Parameters.filter],
urlParameters: [Parameters.$host, Parameters.subscriptionId],
headerParameters: [Parameters.accept],
serializer
};
const listByResourceGroupOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/certificates",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.CertificateCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName
],
headerParameters: [Parameters.accept],
serializer
};
const getOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/certificates/{name}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.Certificate
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name
],
headerParameters: [Parameters.accept],
serializer
};
const createOrUpdateOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/certificates/{name}",
httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.Certificate
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
requestBody: Parameters.certificateEnvelope,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const deleteOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/certificates/{name}",
httpMethod: "DELETE",
responses: {
200: {},
204: {},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name
],
headerParameters: [Parameters.accept],
serializer
};
const updateOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/certificates/{name}",
httpMethod: "PATCH",
responses: {
200: {
bodyMapper: Mappers.Certificate
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
requestBody: Parameters.certificateEnvelope1,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const listNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.CertificateCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion, Parameters.filter],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.nextLink
],
headerParameters: [Parameters.accept],
serializer
};
const listByResourceGroupNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.CertificateCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.nextLink
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=certificates.js.map
File diff suppressed because one or more lines are too long
@@ -0,0 +1,97 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { ContainerApps } from "../operationsInterfaces";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import { PollerLike, PollOperationState } from "@azure/core-lro";
import { ContainerApp, ContainerAppsListBySubscriptionOptionalParams, ContainerAppsListByResourceGroupOptionalParams, ContainerAppsGetOptionalParams, ContainerAppsGetResponse, ContainerAppsCreateOrUpdateOptionalParams, ContainerAppsCreateOrUpdateResponse, ContainerAppsDeleteOptionalParams, ContainerAppsListSecretsOptionalParams, ContainerAppsListSecretsResponse } from "../models";
/** Class containing ContainerApps operations. */
export declare class ContainerAppsImpl implements ContainerApps {
private readonly client;
/**
* Initialize a new instance of the class ContainerApps class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient);
/**
* Get the Container Apps in a given subscription.
* @param options The options parameters.
*/
listBySubscription(options?: ContainerAppsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<ContainerApp>;
private listBySubscriptionPagingPage;
private listBySubscriptionPagingAll;
/**
* Get the Container Apps in a given resource group.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param options The options parameters.
*/
listByResourceGroup(resourceGroupName: string, options?: ContainerAppsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ContainerApp>;
private listByResourceGroupPagingPage;
private listByResourceGroupPagingAll;
/**
* Get the Container Apps in a given subscription.
* @param options The options parameters.
*/
private _listBySubscription;
/**
* Get the Container Apps in a given resource group.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param options The options parameters.
*/
private _listByResourceGroup;
/**
* Get the properties of a Container App.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the Container App.
* @param options The options parameters.
*/
get(resourceGroupName: string, name: string, options?: ContainerAppsGetOptionalParams): Promise<ContainerAppsGetResponse>;
/**
* Description for Create or update a Container App.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the Container App.
* @param containerAppEnvelope Container App.
* @param options The options parameters.
*/
beginCreateOrUpdate(resourceGroupName: string, name: string, containerAppEnvelope: ContainerApp, options?: ContainerAppsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<ContainerAppsCreateOrUpdateResponse>, ContainerAppsCreateOrUpdateResponse>>;
/**
* Description for Create or update a Container App.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the Container App.
* @param containerAppEnvelope Container App.
* @param options The options parameters.
*/
beginCreateOrUpdateAndWait(resourceGroupName: string, name: string, containerAppEnvelope: ContainerApp, options?: ContainerAppsCreateOrUpdateOptionalParams): Promise<ContainerAppsCreateOrUpdateResponse>;
/**
* Description for Delete a Container App.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the Container App.
* @param options The options parameters.
*/
beginDelete(resourceGroupName: string, name: string, options?: ContainerAppsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
/**
* Description for Delete a Container App.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the Container App.
* @param options The options parameters.
*/
beginDeleteAndWait(resourceGroupName: string, name: string, options?: ContainerAppsDeleteOptionalParams): Promise<void>;
/**
* List secrets for a container app
* @param name Name of the Container App.
* @param options The options parameters.
*/
listSecrets(name: string, options?: ContainerAppsListSecretsOptionalParams): Promise<ContainerAppsListSecretsResponse>;
/**
* ListBySubscriptionNext
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
* @param options The options parameters.
*/
private _listBySubscriptionNext;
/**
* ListByResourceGroupNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
* @param options The options parameters.
*/
private _listByResourceGroupNext;
}
//# sourceMappingURL=containerApps.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"containerApps.d.ts","sourceRoot":"","sources":["../../../src/operations/containerApps.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAIxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,YAAY,EAEZ,6CAA6C,EAG7C,8CAA8C,EAE9C,8BAA8B,EAC9B,wBAAwB,EACxB,yCAAyC,EACzC,mCAAmC,EACnC,iCAAiC,EACjC,sCAAsC,EACtC,gCAAgC,EAGjC,MAAM,WAAW,CAAC;AAGnB,iDAAiD;AACjD,qBAAa,iBAAkB,YAAW,aAAa;IACrD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;OAGG;IACI,kBAAkB,CACvB,OAAO,CAAC,EAAE,6CAA6C,GACtD,0BAA0B,CAAC,YAAY,CAAC;YAkB5B,4BAA4B;YAsB5B,2BAA2B;IAQ1C;;;;OAIG;IACI,mBAAmB,CACxB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,8CAA8C,GACvD,0BAA0B,CAAC,YAAY,CAAC;YAsB5B,6BAA6B;YA2B7B,4BAA4B;IAY3C;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAS3B;;;;OAIG;IACH,OAAO,CAAC,oBAAoB;IAU5B;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,wBAAwB,CAAC;IAOpC;;;;;;OAMG;IACG,mBAAmB,CACvB,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,oBAAoB,EAAE,YAAY,EAClC,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CACR,UAAU,CACR,kBAAkB,CAAC,mCAAmC,CAAC,EACvD,mCAAmC,CACpC,CACF;IAqDD;;;;;;OAMG;IACG,0BAA0B,CAC9B,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,oBAAoB,EAAE,YAAY,EAClC,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,mCAAmC,CAAC;IAU/C;;;;;OAKG;IACG,WAAW,CACf,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;IAqDtD;;;;;OAKG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,IAAI,CAAC;IAKhB;;;;OAIG;IACH,WAAW,CACT,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,gCAAgC,CAAC;IAO5C;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IAU/B;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB;CAUjC"}
@@ -0,0 +1,471 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
import { setContinuationToken } from "../pagingHelper";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { LroEngine } from "@azure/core-lro";
import { LroImpl } from "../lroImpl";
/// <reference lib="esnext.asynciterable" />
/** Class containing ContainerApps operations. */
export class ContainerAppsImpl {
/**
* Initialize a new instance of the class ContainerApps class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* Get the Container Apps in a given subscription.
* @param options The options parameters.
*/
listBySubscription(options) {
const iter = this.listBySubscriptionPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listBySubscriptionPagingPage(options, settings);
}
};
}
listBySubscriptionPagingPage(options, settings) {
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._listBySubscription(options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listBySubscriptionNext(continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
listBySubscriptionPagingAll(options) {
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* Get the Container Apps in a given resource group.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param options The options parameters.
*/
listByResourceGroup(resourceGroupName, options) {
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
}
};
}
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._listByResourceGroup(resourceGroupName, options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
listByResourceGroupPagingAll(resourceGroupName, options) {
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
var e_2, _a;
try {
for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_2_1) { e_2 = { error: e_2_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_2) throw e_2.error; }
}
});
}
/**
* Get the Container Apps in a given subscription.
* @param options The options parameters.
*/
_listBySubscription(options) {
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
}
/**
* Get the Container Apps in a given resource group.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param options The options parameters.
*/
_listByResourceGroup(resourceGroupName, options) {
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
}
/**
* Get the properties of a Container App.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the Container App.
* @param options The options parameters.
*/
get(resourceGroupName, name, options) {
return this.client.sendOperationRequest({ resourceGroupName, name, options }, getOperationSpec);
}
/**
* Description for Create or update a Container App.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the Container App.
* @param containerAppEnvelope Container App.
* @param options The options parameters.
*/
beginCreateOrUpdate(resourceGroupName, name, containerAppEnvelope, options) {
return __awaiter(this, void 0, void 0, function* () {
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
return this.client.sendOperationRequest(args, spec);
});
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
var _a;
let currentRawResponse = undefined;
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
const callback = (rawResponse, flatResponse) => {
currentRawResponse = rawResponse;
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
};
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
const flatResponse = yield directSendOperation(updatedArgs, spec);
return {
flatResponse,
rawResponse: {
statusCode: currentRawResponse.status,
body: currentRawResponse.parsedBody,
headers: currentRawResponse.headers.toJSON()
}
};
});
const lro = new LroImpl(sendOperation, { resourceGroupName, name, containerAppEnvelope, options }, createOrUpdateOperationSpec);
const poller = new LroEngine(lro, {
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
});
yield poller.poll();
return poller;
});
}
/**
* Description for Create or update a Container App.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the Container App.
* @param containerAppEnvelope Container App.
* @param options The options parameters.
*/
beginCreateOrUpdateAndWait(resourceGroupName, name, containerAppEnvelope, options) {
return __awaiter(this, void 0, void 0, function* () {
const poller = yield this.beginCreateOrUpdate(resourceGroupName, name, containerAppEnvelope, options);
return poller.pollUntilDone();
});
}
/**
* Description for Delete a Container App.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the Container App.
* @param options The options parameters.
*/
beginDelete(resourceGroupName, name, options) {
return __awaiter(this, void 0, void 0, function* () {
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
return this.client.sendOperationRequest(args, spec);
});
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
var _a;
let currentRawResponse = undefined;
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
const callback = (rawResponse, flatResponse) => {
currentRawResponse = rawResponse;
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
};
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
const flatResponse = yield directSendOperation(updatedArgs, spec);
return {
flatResponse,
rawResponse: {
statusCode: currentRawResponse.status,
body: currentRawResponse.parsedBody,
headers: currentRawResponse.headers.toJSON()
}
};
});
const lro = new LroImpl(sendOperation, { resourceGroupName, name, options }, deleteOperationSpec);
const poller = new LroEngine(lro, {
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
});
yield poller.poll();
return poller;
});
}
/**
* Description for Delete a Container App.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the Container App.
* @param options The options parameters.
*/
beginDeleteAndWait(resourceGroupName, name, options) {
return __awaiter(this, void 0, void 0, function* () {
const poller = yield this.beginDelete(resourceGroupName, name, options);
return poller.pollUntilDone();
});
}
/**
* List secrets for a container app
* @param name Name of the Container App.
* @param options The options parameters.
*/
listSecrets(name, options) {
return this.client.sendOperationRequest({ name, options }, listSecretsOperationSpec);
}
/**
* ListBySubscriptionNext
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
* @param options The options parameters.
*/
_listBySubscriptionNext(nextLink, options) {
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
}
/**
* ListByResourceGroupNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
* @param options The options parameters.
*/
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listBySubscriptionOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/containerApps",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ContainerAppCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host, Parameters.subscriptionId],
headerParameters: [Parameters.accept],
serializer
};
const listByResourceGroupOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/containerApps",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ContainerAppCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName
],
headerParameters: [Parameters.accept],
serializer
};
const getOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/containerApps/{name}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ContainerApp
},
404: {
isError: true
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name
],
headerParameters: [Parameters.accept],
serializer
};
const createOrUpdateOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/containerApps/{name}",
httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.ContainerApp
},
201: {
bodyMapper: Mappers.ContainerApp
},
202: {
bodyMapper: Mappers.ContainerApp
},
204: {
bodyMapper: Mappers.ContainerApp
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
requestBody: Parameters.containerAppEnvelope,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const deleteOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/containerApps/{name}",
httpMethod: "DELETE",
responses: {
200: {},
201: {},
202: {},
204: {},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name
],
headerParameters: [Parameters.accept],
serializer
};
const listSecretsOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/containerApps/{name}/listSecrets",
httpMethod: "POST",
responses: {
200: {
bodyMapper: Mappers.SecretsCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.name],
headerParameters: [Parameters.accept],
serializer
};
const listBySubscriptionNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ContainerAppCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.nextLink
],
headerParameters: [Parameters.accept],
serializer
};
const listByResourceGroupNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ContainerAppCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.nextLink
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=containerApps.js.map
File diff suppressed because one or more lines are too long
@@ -0,0 +1,70 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { ContainerAppsRevisions } from "../operationsInterfaces";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import { Revision, ContainerAppsRevisionsListRevisionsOptionalParams, ContainerAppsRevisionsGetRevisionOptionalParams, ContainerAppsRevisionsGetRevisionResponse, ContainerAppsRevisionsActivateRevisionOptionalParams, ContainerAppsRevisionsDeactivateRevisionOptionalParams, ContainerAppsRevisionsRestartRevisionOptionalParams } from "../models";
/** Class containing ContainerAppsRevisions operations. */
export declare class ContainerAppsRevisionsImpl implements ContainerAppsRevisions {
private readonly client;
/**
* Initialize a new instance of the class ContainerAppsRevisions class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient);
/**
* Get the Revisions for a given Container App.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param containerAppName Name of the Container App for which Revisions are needed.
* @param options The options parameters.
*/
listRevisions(resourceGroupName: string, containerAppName: string, options?: ContainerAppsRevisionsListRevisionsOptionalParams): PagedAsyncIterableIterator<Revision>;
private listRevisionsPagingPage;
private listRevisionsPagingAll;
/**
* Get the Revisions for a given Container App.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param containerAppName Name of the Container App for which Revisions are needed.
* @param options The options parameters.
*/
private _listRevisions;
/**
* Get a revision of a Container App.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param containerAppName Name of the Container App.
* @param name Name of the Container App Revision.
* @param options The options parameters.
*/
getRevision(resourceGroupName: string, containerAppName: string, name: string, options?: ContainerAppsRevisionsGetRevisionOptionalParams): Promise<ContainerAppsRevisionsGetRevisionResponse>;
/**
* Activates a revision for a Container App
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param containerAppName Name of the Container App.
* @param name Name of the Container App Revision to activate
* @param options The options parameters.
*/
activateRevision(resourceGroupName: string, containerAppName: string, name: string, options?: ContainerAppsRevisionsActivateRevisionOptionalParams): Promise<void>;
/**
* Deactivates a revision for a Container App
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param containerAppName Name of the Container App.
* @param name Name of the Container App Revision to deactivate
* @param options The options parameters.
*/
deactivateRevision(resourceGroupName: string, containerAppName: string, name: string, options?: ContainerAppsRevisionsDeactivateRevisionOptionalParams): Promise<void>;
/**
* Restarts a revision for a Container App
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param containerAppName Name of the Container App.
* @param name Name of the Container App Revision to restart
* @param options The options parameters.
*/
restartRevision(resourceGroupName: string, containerAppName: string, name: string, options?: ContainerAppsRevisionsRestartRevisionOptionalParams): Promise<void>;
/**
* ListRevisionsNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param containerAppName Name of the Container App for which Revisions are needed.
* @param nextLink The nextLink from the previous successful call to the ListRevisions method.
* @param options The options parameters.
*/
private _listRevisionsNext;
}
//# sourceMappingURL=containerAppsRevisions.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"containerAppsRevisions.d.ts","sourceRoot":"","sources":["../../../src/operations/containerAppsRevisions.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAIjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,QAAQ,EAER,iDAAiD,EAEjD,+CAA+C,EAC/C,yCAAyC,EACzC,oDAAoD,EACpD,sDAAsD,EACtD,mDAAmD,EAEpD,MAAM,WAAW,CAAC;AAGnB,0DAA0D;AAC1D,qBAAa,0BAA2B,YAAW,sBAAsB;IACvE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;;;OAKG;IACI,aAAa,CAClB,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE,iDAAiD,GAC1D,0BAA0B,CAAC,QAAQ,CAAC;YA2BxB,uBAAuB;YAiCvB,sBAAsB;IAcrC;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAWtB;;;;;;OAMG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,+CAA+C,GACxD,OAAO,CAAC,yCAAyC,CAAC;IAOrD;;;;;;OAMG;IACH,gBAAgB,CACd,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,oDAAoD,GAC7D,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;;OAMG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,sDAAsD,GAC/D,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;;OAMG;IACH,eAAe,CACb,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,mDAAmD,GAC5D,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;;OAMG;IACH,OAAO,CAAC,kBAAkB;CAW3B"}
@@ -0,0 +1,271 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
import { setContinuationToken } from "../pagingHelper";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/// <reference lib="esnext.asynciterable" />
/** Class containing ContainerAppsRevisions operations. */
export class ContainerAppsRevisionsImpl {
/**
* Initialize a new instance of the class ContainerAppsRevisions class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* Get the Revisions for a given Container App.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param containerAppName Name of the Container App for which Revisions are needed.
* @param options The options parameters.
*/
listRevisions(resourceGroupName, containerAppName, options) {
const iter = this.listRevisionsPagingAll(resourceGroupName, containerAppName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listRevisionsPagingPage(resourceGroupName, containerAppName, options, settings);
}
};
}
listRevisionsPagingPage(resourceGroupName, containerAppName, options, settings) {
return __asyncGenerator(this, arguments, function* listRevisionsPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._listRevisions(resourceGroupName, containerAppName, options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listRevisionsNext(resourceGroupName, containerAppName, continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
listRevisionsPagingAll(resourceGroupName, containerAppName, options) {
return __asyncGenerator(this, arguments, function* listRevisionsPagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.listRevisionsPagingPage(resourceGroupName, containerAppName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* Get the Revisions for a given Container App.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param containerAppName Name of the Container App for which Revisions are needed.
* @param options The options parameters.
*/
_listRevisions(resourceGroupName, containerAppName, options) {
return this.client.sendOperationRequest({ resourceGroupName, containerAppName, options }, listRevisionsOperationSpec);
}
/**
* Get a revision of a Container App.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param containerAppName Name of the Container App.
* @param name Name of the Container App Revision.
* @param options The options parameters.
*/
getRevision(resourceGroupName, containerAppName, name, options) {
return this.client.sendOperationRequest({ resourceGroupName, containerAppName, name, options }, getRevisionOperationSpec);
}
/**
* Activates a revision for a Container App
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param containerAppName Name of the Container App.
* @param name Name of the Container App Revision to activate
* @param options The options parameters.
*/
activateRevision(resourceGroupName, containerAppName, name, options) {
return this.client.sendOperationRequest({ resourceGroupName, containerAppName, name, options }, activateRevisionOperationSpec);
}
/**
* Deactivates a revision for a Container App
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param containerAppName Name of the Container App.
* @param name Name of the Container App Revision to deactivate
* @param options The options parameters.
*/
deactivateRevision(resourceGroupName, containerAppName, name, options) {
return this.client.sendOperationRequest({ resourceGroupName, containerAppName, name, options }, deactivateRevisionOperationSpec);
}
/**
* Restarts a revision for a Container App
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param containerAppName Name of the Container App.
* @param name Name of the Container App Revision to restart
* @param options The options parameters.
*/
restartRevision(resourceGroupName, containerAppName, name, options) {
return this.client.sendOperationRequest({ resourceGroupName, containerAppName, name, options }, restartRevisionOperationSpec);
}
/**
* ListRevisionsNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param containerAppName Name of the Container App for which Revisions are needed.
* @param nextLink The nextLink from the previous successful call to the ListRevisions method.
* @param options The options parameters.
*/
_listRevisionsNext(resourceGroupName, containerAppName, nextLink, options) {
return this.client.sendOperationRequest({ resourceGroupName, containerAppName, nextLink, options }, listRevisionsNextOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listRevisionsOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/containerApps/{containerAppName}/revisions",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.RevisionCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.containerAppName
],
headerParameters: [Parameters.accept],
serializer
};
const getRevisionOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/containerApps/{containerAppName}/revisions/{name}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.Revision
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.containerAppName
],
headerParameters: [Parameters.accept],
serializer
};
const activateRevisionOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/containerApps/{containerAppName}/revisions/{name}/activate",
httpMethod: "POST",
responses: {
200: {},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.containerAppName
],
headerParameters: [Parameters.accept],
serializer
};
const deactivateRevisionOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/containerApps/{containerAppName}/revisions/{name}/deactivate",
httpMethod: "POST",
responses: {
200: {},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.containerAppName
],
headerParameters: [Parameters.accept],
serializer
};
const restartRevisionOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/containerApps/{containerAppName}/revisions/{name}/restart",
httpMethod: "POST",
responses: {
200: {},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.containerAppName
],
headerParameters: [Parameters.accept],
serializer
};
const listRevisionsNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.RevisionCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.nextLink,
Parameters.containerAppName
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=containerAppsRevisions.js.map
File diff suppressed because one or more lines are too long
@@ -0,0 +1,60 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { DeletedWebApps } from "../operationsInterfaces";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import { DeletedSite, DeletedWebAppsListOptionalParams, DeletedWebAppsListByLocationOptionalParams, DeletedWebAppsGetDeletedWebAppByLocationOptionalParams, DeletedWebAppsGetDeletedWebAppByLocationResponse } from "../models";
/** Class containing DeletedWebApps operations. */
export declare class DeletedWebAppsImpl implements DeletedWebApps {
private readonly client;
/**
* Initialize a new instance of the class DeletedWebApps class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient);
/**
* Description for Get all deleted apps for a subscription.
* @param options The options parameters.
*/
list(options?: DeletedWebAppsListOptionalParams): PagedAsyncIterableIterator<DeletedSite>;
private listPagingPage;
private listPagingAll;
/**
* Description for Get all deleted apps for a subscription at location
* @param location
* @param options The options parameters.
*/
listByLocation(location: string, options?: DeletedWebAppsListByLocationOptionalParams): PagedAsyncIterableIterator<DeletedSite>;
private listByLocationPagingPage;
private listByLocationPagingAll;
/**
* Description for Get all deleted apps for a subscription.
* @param options The options parameters.
*/
private _list;
/**
* Description for Get all deleted apps for a subscription at location
* @param location
* @param options The options parameters.
*/
private _listByLocation;
/**
* Description for Get deleted app for a subscription at location.
* @param location
* @param deletedSiteId The numeric ID of the deleted app, e.g. 12345
* @param options The options parameters.
*/
getDeletedWebAppByLocation(location: string, deletedSiteId: string, options?: DeletedWebAppsGetDeletedWebAppByLocationOptionalParams): Promise<DeletedWebAppsGetDeletedWebAppByLocationResponse>;
/**
* ListNext
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
private _listNext;
/**
* ListByLocationNext
* @param location
* @param nextLink The nextLink from the previous successful call to the ListByLocation method.
* @param options The options parameters.
*/
private _listByLocationNext;
}
//# sourceMappingURL=deletedWebApps.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"deletedWebApps.d.ts","sourceRoot":"","sources":["../../../src/operations/deletedWebApps.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAIzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,WAAW,EAEX,gCAAgC,EAGhC,0CAA0C,EAE1C,sDAAsD,EACtD,gDAAgD,EAGjD,MAAM,WAAW,CAAC;AAGnB,kDAAkD;AAClD,qBAAa,kBAAmB,YAAW,cAAc;IACvD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,gCAAgC,GACzC,0BAA0B,CAAC,WAAW,CAAC;YAkB3B,cAAc;YAsBd,aAAa;IAQ5B;;;;OAIG;IACI,cAAc,CACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,0CAA0C,GACnD,0BAA0B,CAAC,WAAW,CAAC;YAkB3B,wBAAwB;YA2BxB,uBAAuB;IAStC;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,eAAe;IAUvB;;;;;OAKG;IACH,0BAA0B,CACxB,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,sDAAsD,GAC/D,OAAO,CAAC,gDAAgD,CAAC;IAO5D;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAUjB;;;;;OAKG;IACH,OAAO,CAAC,mBAAmB;CAU5B"}
@@ -0,0 +1,284 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
import { setContinuationToken } from "../pagingHelper";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/// <reference lib="esnext.asynciterable" />
/** Class containing DeletedWebApps operations. */
export class DeletedWebAppsImpl {
/**
* Initialize a new instance of the class DeletedWebApps class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* Description for Get all deleted apps for a subscription.
* @param options The options parameters.
*/
list(options) {
const iter = this.listPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listPagingPage(options, settings);
}
};
}
listPagingPage(options, settings) {
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._list(options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listNext(continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
listPagingAll(options) {
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* Description for Get all deleted apps for a subscription at location
* @param location
* @param options The options parameters.
*/
listByLocation(location, options) {
const iter = this.listByLocationPagingAll(location, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listByLocationPagingPage(location, options, settings);
}
};
}
listByLocationPagingPage(location, options, settings) {
return __asyncGenerator(this, arguments, function* listByLocationPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._listByLocation(location, options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listByLocationNext(location, continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
listByLocationPagingAll(location, options) {
return __asyncGenerator(this, arguments, function* listByLocationPagingAll_1() {
var e_2, _a;
try {
for (var _b = __asyncValues(this.listByLocationPagingPage(location, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_2_1) { e_2 = { error: e_2_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_2) throw e_2.error; }
}
});
}
/**
* Description for Get all deleted apps for a subscription.
* @param options The options parameters.
*/
_list(options) {
return this.client.sendOperationRequest({ options }, listOperationSpec);
}
/**
* Description for Get all deleted apps for a subscription at location
* @param location
* @param options The options parameters.
*/
_listByLocation(location, options) {
return this.client.sendOperationRequest({ location, options }, listByLocationOperationSpec);
}
/**
* Description for Get deleted app for a subscription at location.
* @param location
* @param deletedSiteId The numeric ID of the deleted app, e.g. 12345
* @param options The options parameters.
*/
getDeletedWebAppByLocation(location, deletedSiteId, options) {
return this.client.sendOperationRequest({ location, deletedSiteId, options }, getDeletedWebAppByLocationOperationSpec);
}
/**
* ListNext
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
_listNext(nextLink, options) {
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
}
/**
* ListByLocationNext
* @param location
* @param nextLink The nextLink from the previous successful call to the ListByLocation method.
* @param options The options parameters.
*/
_listByLocationNext(location, nextLink, options) {
return this.client.sendOperationRequest({ location, nextLink, options }, listByLocationNextOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/deletedSites",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DeletedWebAppCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host, Parameters.subscriptionId],
headerParameters: [Parameters.accept],
serializer
};
const listByLocationOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/deletedSites",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DeletedWebAppCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.location
],
headerParameters: [Parameters.accept],
serializer
};
const getDeletedWebAppByLocationOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/deletedSites/{deletedSiteId}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DeletedSite
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.location,
Parameters.deletedSiteId
],
headerParameters: [Parameters.accept],
serializer
};
const listNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DeletedWebAppCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.nextLink
],
headerParameters: [Parameters.accept],
serializer
};
const listByLocationNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DeletedWebAppCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.nextLink,
Parameters.location
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=deletedWebApps.js.map
File diff suppressed because one or more lines are too long
@@ -0,0 +1,377 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { Diagnostics } from "../operationsInterfaces";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import { DetectorResponse, DiagnosticsListHostingEnvironmentDetectorResponsesOptionalParams, DiagnosticsListSiteDetectorResponsesOptionalParams, DiagnosticCategory, DiagnosticsListSiteDiagnosticCategoriesOptionalParams, AnalysisDefinition, DiagnosticsListSiteAnalysesOptionalParams, DetectorDefinitionResource, DiagnosticsListSiteDetectorsOptionalParams, DiagnosticsListSiteDetectorResponsesSlotOptionalParams, DiagnosticsListSiteDiagnosticCategoriesSlotOptionalParams, DiagnosticsListSiteAnalysesSlotOptionalParams, DiagnosticsListSiteDetectorsSlotOptionalParams, DiagnosticsGetHostingEnvironmentDetectorResponseOptionalParams, DiagnosticsGetHostingEnvironmentDetectorResponseResponse, DiagnosticsGetSiteDetectorResponseOptionalParams, DiagnosticsGetSiteDetectorResponseResponse, DiagnosticsGetSiteDiagnosticCategoryOptionalParams, DiagnosticsGetSiteDiagnosticCategoryResponse, DiagnosticsGetSiteAnalysisOptionalParams, DiagnosticsGetSiteAnalysisResponse, DiagnosticsExecuteSiteAnalysisOptionalParams, DiagnosticsExecuteSiteAnalysisResponse, DiagnosticsGetSiteDetectorOptionalParams, DiagnosticsGetSiteDetectorResponse, DiagnosticsExecuteSiteDetectorOptionalParams, DiagnosticsExecuteSiteDetectorResponse, DiagnosticsGetSiteDetectorResponseSlotOptionalParams, DiagnosticsGetSiteDetectorResponseSlotResponse, DiagnosticsGetSiteDiagnosticCategorySlotOptionalParams, DiagnosticsGetSiteDiagnosticCategorySlotResponse, DiagnosticsGetSiteAnalysisSlotOptionalParams, DiagnosticsGetSiteAnalysisSlotResponse, DiagnosticsExecuteSiteAnalysisSlotOptionalParams, DiagnosticsExecuteSiteAnalysisSlotResponse, DiagnosticsGetSiteDetectorSlotOptionalParams, DiagnosticsGetSiteDetectorSlotResponse, DiagnosticsExecuteSiteDetectorSlotOptionalParams, DiagnosticsExecuteSiteDetectorSlotResponse } from "../models";
/** Class containing Diagnostics operations. */
export declare class DiagnosticsImpl implements Diagnostics {
private readonly client;
/**
* Initialize a new instance of the class Diagnostics class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient);
/**
* Description for List Hosting Environment Detector Responses
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site Name
* @param options The options parameters.
*/
listHostingEnvironmentDetectorResponses(resourceGroupName: string, name: string, options?: DiagnosticsListHostingEnvironmentDetectorResponsesOptionalParams): PagedAsyncIterableIterator<DetectorResponse>;
private listHostingEnvironmentDetectorResponsesPagingPage;
private listHostingEnvironmentDetectorResponsesPagingAll;
/**
* Description for List Site Detector Responses
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param options The options parameters.
*/
listSiteDetectorResponses(resourceGroupName: string, siteName: string, options?: DiagnosticsListSiteDetectorResponsesOptionalParams): PagedAsyncIterableIterator<DetectorResponse>;
private listSiteDetectorResponsesPagingPage;
private listSiteDetectorResponsesPagingAll;
/**
* Description for Get Diagnostics Categories
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param options The options parameters.
*/
listSiteDiagnosticCategories(resourceGroupName: string, siteName: string, options?: DiagnosticsListSiteDiagnosticCategoriesOptionalParams): PagedAsyncIterableIterator<DiagnosticCategory>;
private listSiteDiagnosticCategoriesPagingPage;
private listSiteDiagnosticCategoriesPagingAll;
/**
* Description for Get Site Analyses
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param diagnosticCategory Diagnostic Category
* @param options The options parameters.
*/
listSiteAnalyses(resourceGroupName: string, siteName: string, diagnosticCategory: string, options?: DiagnosticsListSiteAnalysesOptionalParams): PagedAsyncIterableIterator<AnalysisDefinition>;
private listSiteAnalysesPagingPage;
private listSiteAnalysesPagingAll;
/**
* Description for Get Detectors
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param diagnosticCategory Diagnostic Category
* @param options The options parameters.
*/
listSiteDetectors(resourceGroupName: string, siteName: string, diagnosticCategory: string, options?: DiagnosticsListSiteDetectorsOptionalParams): PagedAsyncIterableIterator<DetectorDefinitionResource>;
private listSiteDetectorsPagingPage;
private listSiteDetectorsPagingAll;
/**
* Description for List Site Detector Responses
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param slot Slot Name
* @param options The options parameters.
*/
listSiteDetectorResponsesSlot(resourceGroupName: string, siteName: string, slot: string, options?: DiagnosticsListSiteDetectorResponsesSlotOptionalParams): PagedAsyncIterableIterator<DetectorResponse>;
private listSiteDetectorResponsesSlotPagingPage;
private listSiteDetectorResponsesSlotPagingAll;
/**
* Description for Get Diagnostics Categories
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param slot Slot Name
* @param options The options parameters.
*/
listSiteDiagnosticCategoriesSlot(resourceGroupName: string, siteName: string, slot: string, options?: DiagnosticsListSiteDiagnosticCategoriesSlotOptionalParams): PagedAsyncIterableIterator<DiagnosticCategory>;
private listSiteDiagnosticCategoriesSlotPagingPage;
private listSiteDiagnosticCategoriesSlotPagingAll;
/**
* Description for Get Site Analyses
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param diagnosticCategory Diagnostic Category
* @param slot Slot Name
* @param options The options parameters.
*/
listSiteAnalysesSlot(resourceGroupName: string, siteName: string, diagnosticCategory: string, slot: string, options?: DiagnosticsListSiteAnalysesSlotOptionalParams): PagedAsyncIterableIterator<AnalysisDefinition>;
private listSiteAnalysesSlotPagingPage;
private listSiteAnalysesSlotPagingAll;
/**
* Description for Get Detectors
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param diagnosticCategory Diagnostic Category
* @param slot Slot Name
* @param options The options parameters.
*/
listSiteDetectorsSlot(resourceGroupName: string, siteName: string, diagnosticCategory: string, slot: string, options?: DiagnosticsListSiteDetectorsSlotOptionalParams): PagedAsyncIterableIterator<DetectorDefinitionResource>;
private listSiteDetectorsSlotPagingPage;
private listSiteDetectorsSlotPagingAll;
/**
* Description for List Hosting Environment Detector Responses
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site Name
* @param options The options parameters.
*/
private _listHostingEnvironmentDetectorResponses;
/**
* Description for Get Hosting Environment Detector Response
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name App Service Environment Name
* @param detectorName Detector Resource Name
* @param options The options parameters.
*/
getHostingEnvironmentDetectorResponse(resourceGroupName: string, name: string, detectorName: string, options?: DiagnosticsGetHostingEnvironmentDetectorResponseOptionalParams): Promise<DiagnosticsGetHostingEnvironmentDetectorResponseResponse>;
/**
* Description for List Site Detector Responses
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param options The options parameters.
*/
private _listSiteDetectorResponses;
/**
* Description for Get site detector response
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param detectorName Detector Resource Name
* @param options The options parameters.
*/
getSiteDetectorResponse(resourceGroupName: string, siteName: string, detectorName: string, options?: DiagnosticsGetSiteDetectorResponseOptionalParams): Promise<DiagnosticsGetSiteDetectorResponseResponse>;
/**
* Description for Get Diagnostics Categories
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param options The options parameters.
*/
private _listSiteDiagnosticCategories;
/**
* Description for Get Diagnostics Category
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param diagnosticCategory Diagnostic Category
* @param options The options parameters.
*/
getSiteDiagnosticCategory(resourceGroupName: string, siteName: string, diagnosticCategory: string, options?: DiagnosticsGetSiteDiagnosticCategoryOptionalParams): Promise<DiagnosticsGetSiteDiagnosticCategoryResponse>;
/**
* Description for Get Site Analyses
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param diagnosticCategory Diagnostic Category
* @param options The options parameters.
*/
private _listSiteAnalyses;
/**
* Description for Get Site Analysis
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param diagnosticCategory Diagnostic Category
* @param analysisName Analysis Name
* @param options The options parameters.
*/
getSiteAnalysis(resourceGroupName: string, siteName: string, diagnosticCategory: string, analysisName: string, options?: DiagnosticsGetSiteAnalysisOptionalParams): Promise<DiagnosticsGetSiteAnalysisResponse>;
/**
* Description for Execute Analysis
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param diagnosticCategory Category Name
* @param analysisName Analysis Resource Name
* @param options The options parameters.
*/
executeSiteAnalysis(resourceGroupName: string, siteName: string, diagnosticCategory: string, analysisName: string, options?: DiagnosticsExecuteSiteAnalysisOptionalParams): Promise<DiagnosticsExecuteSiteAnalysisResponse>;
/**
* Description for Get Detectors
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param diagnosticCategory Diagnostic Category
* @param options The options parameters.
*/
private _listSiteDetectors;
/**
* Description for Get Detector
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param diagnosticCategory Diagnostic Category
* @param detectorName Detector Name
* @param options The options parameters.
*/
getSiteDetector(resourceGroupName: string, siteName: string, diagnosticCategory: string, detectorName: string, options?: DiagnosticsGetSiteDetectorOptionalParams): Promise<DiagnosticsGetSiteDetectorResponse>;
/**
* Description for Execute Detector
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param detectorName Detector Resource Name
* @param diagnosticCategory Category Name
* @param options The options parameters.
*/
executeSiteDetector(resourceGroupName: string, siteName: string, detectorName: string, diagnosticCategory: string, options?: DiagnosticsExecuteSiteDetectorOptionalParams): Promise<DiagnosticsExecuteSiteDetectorResponse>;
/**
* Description for List Site Detector Responses
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param slot Slot Name
* @param options The options parameters.
*/
private _listSiteDetectorResponsesSlot;
/**
* Description for Get site detector response
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param detectorName Detector Resource Name
* @param slot Slot Name
* @param options The options parameters.
*/
getSiteDetectorResponseSlot(resourceGroupName: string, siteName: string, detectorName: string, slot: string, options?: DiagnosticsGetSiteDetectorResponseSlotOptionalParams): Promise<DiagnosticsGetSiteDetectorResponseSlotResponse>;
/**
* Description for Get Diagnostics Categories
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param slot Slot Name
* @param options The options parameters.
*/
private _listSiteDiagnosticCategoriesSlot;
/**
* Description for Get Diagnostics Category
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param diagnosticCategory Diagnostic Category
* @param slot Slot Name
* @param options The options parameters.
*/
getSiteDiagnosticCategorySlot(resourceGroupName: string, siteName: string, diagnosticCategory: string, slot: string, options?: DiagnosticsGetSiteDiagnosticCategorySlotOptionalParams): Promise<DiagnosticsGetSiteDiagnosticCategorySlotResponse>;
/**
* Description for Get Site Analyses
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param diagnosticCategory Diagnostic Category
* @param slot Slot Name
* @param options The options parameters.
*/
private _listSiteAnalysesSlot;
/**
* Description for Get Site Analysis
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param diagnosticCategory Diagnostic Category
* @param analysisName Analysis Name
* @param slot Slot - optional
* @param options The options parameters.
*/
getSiteAnalysisSlot(resourceGroupName: string, siteName: string, diagnosticCategory: string, analysisName: string, slot: string, options?: DiagnosticsGetSiteAnalysisSlotOptionalParams): Promise<DiagnosticsGetSiteAnalysisSlotResponse>;
/**
* Description for Execute Analysis
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param diagnosticCategory Category Name
* @param analysisName Analysis Resource Name
* @param slot Slot Name
* @param options The options parameters.
*/
executeSiteAnalysisSlot(resourceGroupName: string, siteName: string, diagnosticCategory: string, analysisName: string, slot: string, options?: DiagnosticsExecuteSiteAnalysisSlotOptionalParams): Promise<DiagnosticsExecuteSiteAnalysisSlotResponse>;
/**
* Description for Get Detectors
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param diagnosticCategory Diagnostic Category
* @param slot Slot Name
* @param options The options parameters.
*/
private _listSiteDetectorsSlot;
/**
* Description for Get Detector
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param diagnosticCategory Diagnostic Category
* @param detectorName Detector Name
* @param slot Slot Name
* @param options The options parameters.
*/
getSiteDetectorSlot(resourceGroupName: string, siteName: string, diagnosticCategory: string, detectorName: string, slot: string, options?: DiagnosticsGetSiteDetectorSlotOptionalParams): Promise<DiagnosticsGetSiteDetectorSlotResponse>;
/**
* Description for Execute Detector
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param detectorName Detector Resource Name
* @param diagnosticCategory Category Name
* @param slot Slot Name
* @param options The options parameters.
*/
executeSiteDetectorSlot(resourceGroupName: string, siteName: string, detectorName: string, diagnosticCategory: string, slot: string, options?: DiagnosticsExecuteSiteDetectorSlotOptionalParams): Promise<DiagnosticsExecuteSiteDetectorSlotResponse>;
/**
* ListHostingEnvironmentDetectorResponsesNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site Name
* @param nextLink The nextLink from the previous successful call to the
* ListHostingEnvironmentDetectorResponses method.
* @param options The options parameters.
*/
private _listHostingEnvironmentDetectorResponsesNext;
/**
* ListSiteDetectorResponsesNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param nextLink The nextLink from the previous successful call to the ListSiteDetectorResponses
* method.
* @param options The options parameters.
*/
private _listSiteDetectorResponsesNext;
/**
* ListSiteDiagnosticCategoriesNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param nextLink The nextLink from the previous successful call to the ListSiteDiagnosticCategories
* method.
* @param options The options parameters.
*/
private _listSiteDiagnosticCategoriesNext;
/**
* ListSiteAnalysesNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param diagnosticCategory Diagnostic Category
* @param nextLink The nextLink from the previous successful call to the ListSiteAnalyses method.
* @param options The options parameters.
*/
private _listSiteAnalysesNext;
/**
* ListSiteDetectorsNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param diagnosticCategory Diagnostic Category
* @param nextLink The nextLink from the previous successful call to the ListSiteDetectors method.
* @param options The options parameters.
*/
private _listSiteDetectorsNext;
/**
* ListSiteDetectorResponsesSlotNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param slot Slot Name
* @param nextLink The nextLink from the previous successful call to the ListSiteDetectorResponsesSlot
* method.
* @param options The options parameters.
*/
private _listSiteDetectorResponsesSlotNext;
/**
* ListSiteDiagnosticCategoriesSlotNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param slot Slot Name
* @param nextLink The nextLink from the previous successful call to the
* ListSiteDiagnosticCategoriesSlot method.
* @param options The options parameters.
*/
private _listSiteDiagnosticCategoriesSlotNext;
/**
* ListSiteAnalysesSlotNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param diagnosticCategory Diagnostic Category
* @param slot Slot Name
* @param nextLink The nextLink from the previous successful call to the ListSiteAnalysesSlot method.
* @param options The options parameters.
*/
private _listSiteAnalysesSlotNext;
/**
* ListSiteDetectorsSlotNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name
* @param diagnosticCategory Diagnostic Category
* @param slot Slot Name
* @param nextLink The nextLink from the previous successful call to the ListSiteDetectorsSlot method.
* @param options The options parameters.
*/
private _listSiteDetectorsSlotNext;
}
//# sourceMappingURL=diagnostics.d.ts.map
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
@@ -0,0 +1,34 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { DomainRegistrationProvider } from "../operationsInterfaces";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import { CsmOperationDescription, DomainRegistrationProviderListOperationsOptionalParams } from "../models";
/** Class containing DomainRegistrationProvider operations. */
export declare class DomainRegistrationProviderImpl implements DomainRegistrationProvider {
private readonly client;
/**
* Initialize a new instance of the class DomainRegistrationProvider class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient);
/**
* Description for Implements Csm operations Api to exposes the list of available Csm Apis under the
* resource provider
* @param options The options parameters.
*/
listOperations(options?: DomainRegistrationProviderListOperationsOptionalParams): PagedAsyncIterableIterator<CsmOperationDescription>;
private listOperationsPagingPage;
private listOperationsPagingAll;
/**
* Description for Implements Csm operations Api to exposes the list of available Csm Apis under the
* resource provider
* @param options The options parameters.
*/
private _listOperations;
/**
* ListOperationsNext
* @param nextLink The nextLink from the previous successful call to the ListOperations method.
* @param options The options parameters.
*/
private _listOperationsNext;
}
//# sourceMappingURL=domainRegistrationProvider.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"domainRegistrationProvider.d.ts","sourceRoot":"","sources":["../../../src/operations/domainRegistrationProvider.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAIrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,uBAAuB,EAEvB,sDAAsD,EAGvD,MAAM,WAAW,CAAC;AAGnB,8DAA8D;AAC9D,qBAAa,8BACX,YAAW,0BAA0B;IACrC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;;OAIG;IACI,cAAc,CACnB,OAAO,CAAC,EAAE,sDAAsD,GAC/D,0BAA0B,CAAC,uBAAuB,CAAC;YAkBvC,wBAAwB;YAsBxB,uBAAuB;IAQtC;;;;OAIG;IACH,OAAO,CAAC,eAAe;IASvB;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;CAS5B"}
@@ -0,0 +1,134 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
import { setContinuationToken } from "../pagingHelper";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/// <reference lib="esnext.asynciterable" />
/** Class containing DomainRegistrationProvider operations. */
export class DomainRegistrationProviderImpl {
/**
* Initialize a new instance of the class DomainRegistrationProvider class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* Description for Implements Csm operations Api to exposes the list of available Csm Apis under the
* resource provider
* @param options The options parameters.
*/
listOperations(options) {
const iter = this.listOperationsPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listOperationsPagingPage(options, settings);
}
};
}
listOperationsPagingPage(options, settings) {
return __asyncGenerator(this, arguments, function* listOperationsPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._listOperations(options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listOperationsNext(continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
listOperationsPagingAll(options) {
return __asyncGenerator(this, arguments, function* listOperationsPagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.listOperationsPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* Description for Implements Csm operations Api to exposes the list of available Csm Apis under the
* resource provider
* @param options The options parameters.
*/
_listOperations(options) {
return this.client.sendOperationRequest({ options }, listOperationsOperationSpec);
}
/**
* ListOperationsNext
* @param nextLink The nextLink from the previous successful call to the ListOperations method.
* @param options The options parameters.
*/
_listOperationsNext(nextLink, options) {
return this.client.sendOperationRequest({ nextLink, options }, listOperationsNextOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationsOperationSpec = {
path: "/providers/Microsoft.DomainRegistration/operations",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.CsmOperationCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host],
headerParameters: [Parameters.accept],
serializer
};
const listOperationsNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.CsmOperationCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host, Parameters.nextLink],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=domainRegistrationProvider.js.map
@@ -0,0 +1 @@
{"version":3,"file":"domainRegistrationProvider.js","sourceRoot":"","sources":["../../../src/operations/domainRegistrationProvider.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAUnD,4CAA4C;AAC5C,8DAA8D;AAC9D,MAAM,OAAO,8BAA8B;IAIzC;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,cAAc,CACnB,OAAgE;QAEhE,MAAM,IAAI,GAAG,IAAI,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC;QACnD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE;oBACzB,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;iBACpE;gBACD,OAAO,IAAI,CAAC,wBAAwB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAC1D,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,wBAAwB,CACrC,OAAgE,EAChE,QAAuB;;YAEvB,IAAI,MAAwD,CAAC;YAC7D,IAAI,iBAAiB,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,iBAAiB,CAAC;YACpD,IAAI,CAAC,iBAAiB,EAAE;gBACtB,MAAM,GAAG,cAAM,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAA,CAAC;gBAC7C,IAAI,IAAI,GAAG,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC;gBAC9B,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CAAC;gBACpC,oBAAoB,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;gBAC9C,oBAAM,IAAI,CAAA,CAAC;aACZ;YACD,OAAO,iBAAiB,EAAE;gBACxB,MAAM,GAAG,cAAM,IAAI,CAAC,mBAAmB,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAA,CAAC;gBACpE,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CAAC;gBACpC,IAAI,IAAI,GAAG,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC;gBAC9B,oBAAoB,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;gBAC9C,oBAAM,IAAI,CAAA,CAAC;aACZ;QACH,CAAC;KAAA;IAEc,uBAAuB,CACpC,OAAgE;;;;gBAEhE,KAAyB,IAAA,KAAA,cAAA,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAA,IAAA;oBAApD,MAAM,IAAI,WAAA,CAAA;oBACnB,cAAA,KAAK,CAAC,CAAC,iBAAA,cAAA,IAAI,CAAA,CAAA,CAAA,CAAC;iBACb;;;;;;;;;QACH,CAAC;KAAA;IAED;;;;OAIG;IACK,eAAe,CACrB,OAAgE;QAEhE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,OAAO,EAAE,EACX,2BAA2B,CAC5B,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACK,mBAAmB,CACzB,QAAgB,EAChB,OAAoE;QAEpE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,OAAO,EAAE,EACrB,+BAA+B,CAChC,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,2BAA2B,GAA6B;IAC5D,IAAI,EAAE,oDAAoD;IAC1D,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,+BAA+B,GAA6B;IAChE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
+199
View File
@@ -0,0 +1,199 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { Domains } from "../operationsInterfaces";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import { PollerLike, PollOperationState } from "@azure/core-lro";
import { Domain, DomainsListOptionalParams, NameIdentifier, DomainRecommendationSearchParameters, DomainsListRecommendationsOptionalParams, DomainsListByResourceGroupOptionalParams, DomainOwnershipIdentifier, DomainsListOwnershipIdentifiersOptionalParams, DomainsCheckAvailabilityOptionalParams, DomainsCheckAvailabilityResponse, DomainsGetControlCenterSsoRequestOptionalParams, DomainsGetControlCenterSsoRequestResponse, DomainsGetOptionalParams, DomainsGetResponse, DomainsCreateOrUpdateOptionalParams, DomainsCreateOrUpdateResponse, DomainsDeleteOptionalParams, DomainPatchResource, DomainsUpdateOptionalParams, DomainsUpdateResponse, DomainsGetOwnershipIdentifierOptionalParams, DomainsGetOwnershipIdentifierResponse, DomainsCreateOrUpdateOwnershipIdentifierOptionalParams, DomainsCreateOrUpdateOwnershipIdentifierResponse, DomainsDeleteOwnershipIdentifierOptionalParams, DomainsUpdateOwnershipIdentifierOptionalParams, DomainsUpdateOwnershipIdentifierResponse, DomainsRenewOptionalParams, DomainsTransferOutOptionalParams, DomainsTransferOutResponse } from "../models";
/** Class containing Domains operations. */
export declare class DomainsImpl implements Domains {
private readonly client;
/**
* Initialize a new instance of the class Domains class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient);
/**
* Description for Get all domains in a subscription.
* @param options The options parameters.
*/
list(options?: DomainsListOptionalParams): PagedAsyncIterableIterator<Domain>;
private listPagingPage;
private listPagingAll;
/**
* Description for Get domain name recommendations based on keywords.
* @param parameters Search parameters for domain name recommendations.
* @param options The options parameters.
*/
listRecommendations(parameters: DomainRecommendationSearchParameters, options?: DomainsListRecommendationsOptionalParams): PagedAsyncIterableIterator<NameIdentifier>;
private listRecommendationsPagingPage;
private listRecommendationsPagingAll;
/**
* Description for Get all domains in a resource group.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param options The options parameters.
*/
listByResourceGroup(resourceGroupName: string, options?: DomainsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Domain>;
private listByResourceGroupPagingPage;
private listByResourceGroupPagingAll;
/**
* Description for Lists domain ownership identifiers.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param domainName Name of domain.
* @param options The options parameters.
*/
listOwnershipIdentifiers(resourceGroupName: string, domainName: string, options?: DomainsListOwnershipIdentifiersOptionalParams): PagedAsyncIterableIterator<DomainOwnershipIdentifier>;
private listOwnershipIdentifiersPagingPage;
private listOwnershipIdentifiersPagingAll;
/**
* Description for Check if a domain is available for registration.
* @param identifier Name of the domain.
* @param options The options parameters.
*/
checkAvailability(identifier: NameIdentifier, options?: DomainsCheckAvailabilityOptionalParams): Promise<DomainsCheckAvailabilityResponse>;
/**
* Description for Get all domains in a subscription.
* @param options The options parameters.
*/
private _list;
/**
* Description for Generate a single sign-on request for the domain management portal.
* @param options The options parameters.
*/
getControlCenterSsoRequest(options?: DomainsGetControlCenterSsoRequestOptionalParams): Promise<DomainsGetControlCenterSsoRequestResponse>;
/**
* Description for Get domain name recommendations based on keywords.
* @param parameters Search parameters for domain name recommendations.
* @param options The options parameters.
*/
private _listRecommendations;
/**
* Description for Get all domains in a resource group.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param options The options parameters.
*/
private _listByResourceGroup;
/**
* Description for Get a domain.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param domainName Name of the domain.
* @param options The options parameters.
*/
get(resourceGroupName: string, domainName: string, options?: DomainsGetOptionalParams): Promise<DomainsGetResponse>;
/**
* Description for Creates or updates a domain.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param domainName Name of the domain.
* @param domain Domain registration information.
* @param options The options parameters.
*/
beginCreateOrUpdate(resourceGroupName: string, domainName: string, domain: Domain, options?: DomainsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<DomainsCreateOrUpdateResponse>, DomainsCreateOrUpdateResponse>>;
/**
* Description for Creates or updates a domain.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param domainName Name of the domain.
* @param domain Domain registration information.
* @param options The options parameters.
*/
beginCreateOrUpdateAndWait(resourceGroupName: string, domainName: string, domain: Domain, options?: DomainsCreateOrUpdateOptionalParams): Promise<DomainsCreateOrUpdateResponse>;
/**
* Description for Delete a domain.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param domainName Name of the domain.
* @param options The options parameters.
*/
delete(resourceGroupName: string, domainName: string, options?: DomainsDeleteOptionalParams): Promise<void>;
/**
* Description for Creates or updates a domain.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param domainName Name of the domain.
* @param domain Domain registration information.
* @param options The options parameters.
*/
update(resourceGroupName: string, domainName: string, domain: DomainPatchResource, options?: DomainsUpdateOptionalParams): Promise<DomainsUpdateResponse>;
/**
* Description for Lists domain ownership identifiers.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param domainName Name of domain.
* @param options The options parameters.
*/
private _listOwnershipIdentifiers;
/**
* Description for Get ownership identifier for domain
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param domainName Name of domain.
* @param name Name of identifier.
* @param options The options parameters.
*/
getOwnershipIdentifier(resourceGroupName: string, domainName: string, name: string, options?: DomainsGetOwnershipIdentifierOptionalParams): Promise<DomainsGetOwnershipIdentifierResponse>;
/**
* Description for Creates an ownership identifier for a domain or updates identifier details for an
* existing identifier
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param domainName Name of domain.
* @param name Name of identifier.
* @param domainOwnershipIdentifier A JSON representation of the domain ownership properties.
* @param options The options parameters.
*/
createOrUpdateOwnershipIdentifier(resourceGroupName: string, domainName: string, name: string, domainOwnershipIdentifier: DomainOwnershipIdentifier, options?: DomainsCreateOrUpdateOwnershipIdentifierOptionalParams): Promise<DomainsCreateOrUpdateOwnershipIdentifierResponse>;
/**
* Description for Delete ownership identifier for domain
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param domainName Name of domain.
* @param name Name of identifier.
* @param options The options parameters.
*/
deleteOwnershipIdentifier(resourceGroupName: string, domainName: string, name: string, options?: DomainsDeleteOwnershipIdentifierOptionalParams): Promise<void>;
/**
* Description for Creates an ownership identifier for a domain or updates identifier details for an
* existing identifier
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param domainName Name of domain.
* @param name Name of identifier.
* @param domainOwnershipIdentifier A JSON representation of the domain ownership properties.
* @param options The options parameters.
*/
updateOwnershipIdentifier(resourceGroupName: string, domainName: string, name: string, domainOwnershipIdentifier: DomainOwnershipIdentifier, options?: DomainsUpdateOwnershipIdentifierOptionalParams): Promise<DomainsUpdateOwnershipIdentifierResponse>;
/**
* Description for Renew a domain.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param domainName Name of the domain.
* @param options The options parameters.
*/
renew(resourceGroupName: string, domainName: string, options?: DomainsRenewOptionalParams): Promise<void>;
/**
* Transfer out domain to another registrar
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param domainName Name of domain.
* @param options The options parameters.
*/
transferOut(resourceGroupName: string, domainName: string, options?: DomainsTransferOutOptionalParams): Promise<DomainsTransferOutResponse>;
/**
* ListNext
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
private _listNext;
/**
* ListRecommendationsNext
* @param parameters Search parameters for domain name recommendations.
* @param nextLink The nextLink from the previous successful call to the ListRecommendations method.
* @param options The options parameters.
*/
private _listRecommendationsNext;
/**
* ListByResourceGroupNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
* @param options The options parameters.
*/
private _listByResourceGroupNext;
/**
* ListOwnershipIdentifiersNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param domainName Name of domain.
* @param nextLink The nextLink from the previous successful call to the ListOwnershipIdentifiers
* method.
* @param options The options parameters.
*/
private _listOwnershipIdentifiersNext;
}
//# sourceMappingURL=domains.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"domains.d.ts","sourceRoot":"","sources":["../../../src/operations/domains.ts"],"names":[],"mappings":"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"}
+935
View File
@@ -0,0 +1,935 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
import { setContinuationToken } from "../pagingHelper";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { LroEngine } from "@azure/core-lro";
import { LroImpl } from "../lroImpl";
/// <reference lib="esnext.asynciterable" />
/** Class containing Domains operations. */
export class DomainsImpl {
/**
* Initialize a new instance of the class Domains class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* Description for Get all domains in a subscription.
* @param options The options parameters.
*/
list(options) {
const iter = this.listPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listPagingPage(options, settings);
}
};
}
listPagingPage(options, settings) {
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._list(options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listNext(continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
listPagingAll(options) {
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* Description for Get domain name recommendations based on keywords.
* @param parameters Search parameters for domain name recommendations.
* @param options The options parameters.
*/
listRecommendations(parameters, options) {
const iter = this.listRecommendationsPagingAll(parameters, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listRecommendationsPagingPage(parameters, options, settings);
}
};
}
listRecommendationsPagingPage(parameters, options, settings) {
return __asyncGenerator(this, arguments, function* listRecommendationsPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._listRecommendations(parameters, options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listRecommendationsNext(parameters, continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
listRecommendationsPagingAll(parameters, options) {
return __asyncGenerator(this, arguments, function* listRecommendationsPagingAll_1() {
var e_2, _a;
try {
for (var _b = __asyncValues(this.listRecommendationsPagingPage(parameters, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_2_1) { e_2 = { error: e_2_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_2) throw e_2.error; }
}
});
}
/**
* Description for Get all domains in a resource group.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param options The options parameters.
*/
listByResourceGroup(resourceGroupName, options) {
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
}
};
}
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._listByResourceGroup(resourceGroupName, options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
listByResourceGroupPagingAll(resourceGroupName, options) {
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
var e_3, _a;
try {
for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_3_1) { e_3 = { error: e_3_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_3) throw e_3.error; }
}
});
}
/**
* Description for Lists domain ownership identifiers.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param domainName Name of domain.
* @param options The options parameters.
*/
listOwnershipIdentifiers(resourceGroupName, domainName, options) {
const iter = this.listOwnershipIdentifiersPagingAll(resourceGroupName, domainName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listOwnershipIdentifiersPagingPage(resourceGroupName, domainName, options, settings);
}
};
}
listOwnershipIdentifiersPagingPage(resourceGroupName, domainName, options, settings) {
return __asyncGenerator(this, arguments, function* listOwnershipIdentifiersPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._listOwnershipIdentifiers(resourceGroupName, domainName, options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listOwnershipIdentifiersNext(resourceGroupName, domainName, continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
listOwnershipIdentifiersPagingAll(resourceGroupName, domainName, options) {
return __asyncGenerator(this, arguments, function* listOwnershipIdentifiersPagingAll_1() {
var e_4, _a;
try {
for (var _b = __asyncValues(this.listOwnershipIdentifiersPagingPage(resourceGroupName, domainName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_4_1) { e_4 = { error: e_4_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_4) throw e_4.error; }
}
});
}
/**
* Description for Check if a domain is available for registration.
* @param identifier Name of the domain.
* @param options The options parameters.
*/
checkAvailability(identifier, options) {
return this.client.sendOperationRequest({ identifier, options }, checkAvailabilityOperationSpec);
}
/**
* Description for Get all domains in a subscription.
* @param options The options parameters.
*/
_list(options) {
return this.client.sendOperationRequest({ options }, listOperationSpec);
}
/**
* Description for Generate a single sign-on request for the domain management portal.
* @param options The options parameters.
*/
getControlCenterSsoRequest(options) {
return this.client.sendOperationRequest({ options }, getControlCenterSsoRequestOperationSpec);
}
/**
* Description for Get domain name recommendations based on keywords.
* @param parameters Search parameters for domain name recommendations.
* @param options The options parameters.
*/
_listRecommendations(parameters, options) {
return this.client.sendOperationRequest({ parameters, options }, listRecommendationsOperationSpec);
}
/**
* Description for Get all domains in a resource group.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param options The options parameters.
*/
_listByResourceGroup(resourceGroupName, options) {
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
}
/**
* Description for Get a domain.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param domainName Name of the domain.
* @param options The options parameters.
*/
get(resourceGroupName, domainName, options) {
return this.client.sendOperationRequest({ resourceGroupName, domainName, options }, getOperationSpec);
}
/**
* Description for Creates or updates a domain.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param domainName Name of the domain.
* @param domain Domain registration information.
* @param options The options parameters.
*/
beginCreateOrUpdate(resourceGroupName, domainName, domain, options) {
return __awaiter(this, void 0, void 0, function* () {
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
return this.client.sendOperationRequest(args, spec);
});
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
var _a;
let currentRawResponse = undefined;
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
const callback = (rawResponse, flatResponse) => {
currentRawResponse = rawResponse;
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
};
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
const flatResponse = yield directSendOperation(updatedArgs, spec);
return {
flatResponse,
rawResponse: {
statusCode: currentRawResponse.status,
body: currentRawResponse.parsedBody,
headers: currentRawResponse.headers.toJSON()
}
};
});
const lro = new LroImpl(sendOperation, { resourceGroupName, domainName, domain, options }, createOrUpdateOperationSpec);
const poller = new LroEngine(lro, {
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
});
yield poller.poll();
return poller;
});
}
/**
* Description for Creates or updates a domain.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param domainName Name of the domain.
* @param domain Domain registration information.
* @param options The options parameters.
*/
beginCreateOrUpdateAndWait(resourceGroupName, domainName, domain, options) {
return __awaiter(this, void 0, void 0, function* () {
const poller = yield this.beginCreateOrUpdate(resourceGroupName, domainName, domain, options);
return poller.pollUntilDone();
});
}
/**
* Description for Delete a domain.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param domainName Name of the domain.
* @param options The options parameters.
*/
delete(resourceGroupName, domainName, options) {
return this.client.sendOperationRequest({ resourceGroupName, domainName, options }, deleteOperationSpec);
}
/**
* Description for Creates or updates a domain.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param domainName Name of the domain.
* @param domain Domain registration information.
* @param options The options parameters.
*/
update(resourceGroupName, domainName, domain, options) {
return this.client.sendOperationRequest({ resourceGroupName, domainName, domain, options }, updateOperationSpec);
}
/**
* Description for Lists domain ownership identifiers.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param domainName Name of domain.
* @param options The options parameters.
*/
_listOwnershipIdentifiers(resourceGroupName, domainName, options) {
return this.client.sendOperationRequest({ resourceGroupName, domainName, options }, listOwnershipIdentifiersOperationSpec);
}
/**
* Description for Get ownership identifier for domain
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param domainName Name of domain.
* @param name Name of identifier.
* @param options The options parameters.
*/
getOwnershipIdentifier(resourceGroupName, domainName, name, options) {
return this.client.sendOperationRequest({ resourceGroupName, domainName, name, options }, getOwnershipIdentifierOperationSpec);
}
/**
* Description for Creates an ownership identifier for a domain or updates identifier details for an
* existing identifier
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param domainName Name of domain.
* @param name Name of identifier.
* @param domainOwnershipIdentifier A JSON representation of the domain ownership properties.
* @param options The options parameters.
*/
createOrUpdateOwnershipIdentifier(resourceGroupName, domainName, name, domainOwnershipIdentifier, options) {
return this.client.sendOperationRequest({
resourceGroupName,
domainName,
name,
domainOwnershipIdentifier,
options
}, createOrUpdateOwnershipIdentifierOperationSpec);
}
/**
* Description for Delete ownership identifier for domain
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param domainName Name of domain.
* @param name Name of identifier.
* @param options The options parameters.
*/
deleteOwnershipIdentifier(resourceGroupName, domainName, name, options) {
return this.client.sendOperationRequest({ resourceGroupName, domainName, name, options }, deleteOwnershipIdentifierOperationSpec);
}
/**
* Description for Creates an ownership identifier for a domain or updates identifier details for an
* existing identifier
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param domainName Name of domain.
* @param name Name of identifier.
* @param domainOwnershipIdentifier A JSON representation of the domain ownership properties.
* @param options The options parameters.
*/
updateOwnershipIdentifier(resourceGroupName, domainName, name, domainOwnershipIdentifier, options) {
return this.client.sendOperationRequest({
resourceGroupName,
domainName,
name,
domainOwnershipIdentifier,
options
}, updateOwnershipIdentifierOperationSpec);
}
/**
* Description for Renew a domain.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param domainName Name of the domain.
* @param options The options parameters.
*/
renew(resourceGroupName, domainName, options) {
return this.client.sendOperationRequest({ resourceGroupName, domainName, options }, renewOperationSpec);
}
/**
* Transfer out domain to another registrar
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param domainName Name of domain.
* @param options The options parameters.
*/
transferOut(resourceGroupName, domainName, options) {
return this.client.sendOperationRequest({ resourceGroupName, domainName, options }, transferOutOperationSpec);
}
/**
* ListNext
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
_listNext(nextLink, options) {
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
}
/**
* ListRecommendationsNext
* @param parameters Search parameters for domain name recommendations.
* @param nextLink The nextLink from the previous successful call to the ListRecommendations method.
* @param options The options parameters.
*/
_listRecommendationsNext(parameters, nextLink, options) {
return this.client.sendOperationRequest({ parameters, nextLink, options }, listRecommendationsNextOperationSpec);
}
/**
* ListByResourceGroupNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
* @param options The options parameters.
*/
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
}
/**
* ListOwnershipIdentifiersNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param domainName Name of domain.
* @param nextLink The nextLink from the previous successful call to the ListOwnershipIdentifiers
* method.
* @param options The options parameters.
*/
_listOwnershipIdentifiersNext(resourceGroupName, domainName, nextLink, options) {
return this.client.sendOperationRequest({ resourceGroupName, domainName, nextLink, options }, listOwnershipIdentifiersNextOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const checkAvailabilityOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/checkDomainAvailability",
httpMethod: "POST",
responses: {
200: {
bodyMapper: Mappers.DomainAvailabilityCheckResult
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
requestBody: Parameters.identifier,
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host, Parameters.subscriptionId],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const listOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/domains",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DomainCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host, Parameters.subscriptionId],
headerParameters: [Parameters.accept],
serializer
};
const getControlCenterSsoRequestOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/generateSsoRequest",
httpMethod: "POST",
responses: {
200: {
bodyMapper: Mappers.DomainControlCenterSsoRequest
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host, Parameters.subscriptionId],
headerParameters: [Parameters.accept],
serializer
};
const listRecommendationsOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/listDomainRecommendations",
httpMethod: "POST",
responses: {
200: {
bodyMapper: Mappers.NameIdentifierCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
requestBody: Parameters.parameters,
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host, Parameters.subscriptionId],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const listByResourceGroupOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DomainCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName
],
headerParameters: [Parameters.accept],
serializer
};
const getOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.Domain
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.domainName
],
headerParameters: [Parameters.accept],
serializer
};
const createOrUpdateOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}",
httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.Domain
},
201: {
bodyMapper: Mappers.Domain
},
202: {
bodyMapper: Mappers.Domain
},
204: {
bodyMapper: Mappers.Domain
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
requestBody: Parameters.domain,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.domainName1
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const deleteOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}",
httpMethod: "DELETE",
responses: {
200: {},
204: {},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion, Parameters.forceHardDeleteDomain],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.domainName
],
headerParameters: [Parameters.accept],
serializer
};
const updateOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}",
httpMethod: "PATCH",
responses: {
200: {
bodyMapper: Mappers.Domain
},
202: {
bodyMapper: Mappers.Domain
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
requestBody: Parameters.domain1,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.domainName1
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const listOwnershipIdentifiersOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DomainOwnershipIdentifierCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.domainName
],
headerParameters: [Parameters.accept],
serializer
};
const getOwnershipIdentifierOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DomainOwnershipIdentifier
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.domainName
],
headerParameters: [Parameters.accept],
serializer
};
const createOrUpdateOwnershipIdentifierOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}",
httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.DomainOwnershipIdentifier
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
requestBody: Parameters.domainOwnershipIdentifier,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.domainName
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const deleteOwnershipIdentifierOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}",
httpMethod: "DELETE",
responses: {
200: {},
204: {},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.domainName
],
headerParameters: [Parameters.accept],
serializer
};
const updateOwnershipIdentifierOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}",
httpMethod: "PATCH",
responses: {
200: {
bodyMapper: Mappers.DomainOwnershipIdentifier
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
requestBody: Parameters.domainOwnershipIdentifier,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.domainName
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const renewOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/renew",
httpMethod: "POST",
responses: {
200: {},
202: {},
204: {},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.domainName
],
headerParameters: [Parameters.accept],
serializer
};
const transferOutOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/transferOut",
httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.Domain
},
400: {
isError: true
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.domainName
],
headerParameters: [Parameters.accept],
serializer
};
const listNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DomainCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.nextLink
],
headerParameters: [Parameters.accept],
serializer
};
const listRecommendationsNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.NameIdentifierCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.nextLink
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const listByResourceGroupNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DomainCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.nextLink
],
headerParameters: [Parameters.accept],
serializer
};
const listOwnershipIdentifiersNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DomainOwnershipIdentifierCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.nextLink,
Parameters.domainName
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=domains.js.map
File diff suppressed because one or more lines are too long
+32
View File
@@ -0,0 +1,32 @@
import { Global } from "../operationsInterfaces";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import { GlobalGetDeletedWebAppOptionalParams, GlobalGetDeletedWebAppResponse, GlobalGetDeletedWebAppSnapshotsOptionalParams, GlobalGetDeletedWebAppSnapshotsResponse, GlobalGetSubscriptionOperationWithAsyncResponseOptionalParams } from "../models";
/** Class containing Global operations. */
export declare class GlobalImpl implements Global {
private readonly client;
/**
* Initialize a new instance of the class Global class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient);
/**
* Description for Get deleted app for a subscription.
* @param deletedSiteId The numeric ID of the deleted app, e.g. 12345
* @param options The options parameters.
*/
getDeletedWebApp(deletedSiteId: string, options?: GlobalGetDeletedWebAppOptionalParams): Promise<GlobalGetDeletedWebAppResponse>;
/**
* Description for Get all deleted apps for a subscription.
* @param deletedSiteId The numeric ID of the deleted app, e.g. 12345
* @param options The options parameters.
*/
getDeletedWebAppSnapshots(deletedSiteId: string, options?: GlobalGetDeletedWebAppSnapshotsOptionalParams): Promise<GlobalGetDeletedWebAppSnapshotsResponse>;
/**
* Description for Gets an operation in a subscription and given region
* @param location Location name
* @param operationId Operation Id
* @param options The options parameters.
*/
getSubscriptionOperationWithAsyncResponse(location: string, operationId: string, options?: GlobalGetSubscriptionOperationWithAsyncResponseOptionalParams): Promise<void>;
}
//# sourceMappingURL=global.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../../src/operations/global.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAIjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,oCAAoC,EACpC,8BAA8B,EAC9B,6CAA6C,EAC7C,uCAAuC,EACvC,6DAA6D,EAC9D,MAAM,WAAW,CAAC;AAEnB,0CAA0C;AAC1C,qBAAa,UAAW,YAAW,MAAM;IACvC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;;OAIG;IACH,gBAAgB,CACd,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,oCAAoC,GAC7C,OAAO,CAAC,8BAA8B,CAAC;IAO1C;;;;OAIG;IACH,yBAAyB,CACvB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,6CAA6C,GACtD,OAAO,CAAC,uCAAuC,CAAC;IAOnD;;;;;OAKG;IACH,yCAAyC,CACvC,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,6DAA6D,GACtE,OAAO,CAAC,IAAI,CAAC;CAMjB"}
+112
View File
@@ -0,0 +1,112 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/** Class containing Global operations. */
export class GlobalImpl {
/**
* Initialize a new instance of the class Global class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* Description for Get deleted app for a subscription.
* @param deletedSiteId The numeric ID of the deleted app, e.g. 12345
* @param options The options parameters.
*/
getDeletedWebApp(deletedSiteId, options) {
return this.client.sendOperationRequest({ deletedSiteId, options }, getDeletedWebAppOperationSpec);
}
/**
* Description for Get all deleted apps for a subscription.
* @param deletedSiteId The numeric ID of the deleted app, e.g. 12345
* @param options The options parameters.
*/
getDeletedWebAppSnapshots(deletedSiteId, options) {
return this.client.sendOperationRequest({ deletedSiteId, options }, getDeletedWebAppSnapshotsOperationSpec);
}
/**
* Description for Gets an operation in a subscription and given region
* @param location Location name
* @param operationId Operation Id
* @param options The options parameters.
*/
getSubscriptionOperationWithAsyncResponse(location, operationId, options) {
return this.client.sendOperationRequest({ location, operationId, options }, getSubscriptionOperationWithAsyncResponseOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const getDeletedWebAppOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/deletedSites/{deletedSiteId}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DeletedSite
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.deletedSiteId
],
headerParameters: [Parameters.accept],
serializer
};
const getDeletedWebAppSnapshotsOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/deletedSites/{deletedSiteId}/snapshots",
httpMethod: "GET",
responses: {
200: {
bodyMapper: {
type: {
name: "Sequence",
element: { type: { name: "Composite", className: "Snapshot" } }
}
}
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.deletedSiteId
],
headerParameters: [Parameters.accept],
serializer
};
const getSubscriptionOperationWithAsyncResponseOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/operations/{operationId}",
httpMethod: "GET",
responses: {
204: {},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.location,
Parameters.operationId
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=global.js.map
@@ -0,0 +1 @@
{"version":3,"file":"global.js","sourceRoot":"","sources":["../../../src/operations/global.ts"],"names":[],"mappings":"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"}
+30
View File
@@ -0,0 +1,30 @@
export * from "./appServiceCertificateOrders";
export * from "./certificateOrdersDiagnostics";
export * from "./certificateRegistrationProvider";
export * from "./domains";
export * from "./topLevelDomains";
export * from "./domainRegistrationProvider";
export * from "./appServiceEnvironments";
export * from "./appServicePlans";
export * from "./certificates";
export * from "./containerApps";
export * from "./containerAppsRevisions";
export * from "./deletedWebApps";
export * from "./diagnostics";
export * from "./global";
export * from "./kubeEnvironments";
export * from "./provider";
export * from "./recommendations";
export * from "./resourceHealthMetadataOperations";
export * from "./staticSites";
export * from "./webApps";
export * from "./workflows";
export * from "./workflowRuns";
export * from "./workflowRunActions";
export * from "./workflowRunActionRepetitions";
export * from "./workflowRunActionRepetitionsRequestHistories";
export * from "./workflowRunActionScopeRepetitions";
export * from "./workflowTriggers";
export * from "./workflowTriggerHistories";
export * from "./workflowVersions";
//# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oCAAoC,CAAC;AACnD,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gDAAgD,CAAC;AAC/D,cAAc,qCAAqC,CAAC;AACpD,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC"}
+37
View File
@@ -0,0 +1,37 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
export * from "./appServiceCertificateOrders";
export * from "./certificateOrdersDiagnostics";
export * from "./certificateRegistrationProvider";
export * from "./domains";
export * from "./topLevelDomains";
export * from "./domainRegistrationProvider";
export * from "./appServiceEnvironments";
export * from "./appServicePlans";
export * from "./certificates";
export * from "./containerApps";
export * from "./containerAppsRevisions";
export * from "./deletedWebApps";
export * from "./diagnostics";
export * from "./global";
export * from "./kubeEnvironments";
export * from "./provider";
export * from "./recommendations";
export * from "./resourceHealthMetadataOperations";
export * from "./staticSites";
export * from "./webApps";
export * from "./workflows";
export * from "./workflowRuns";
export * from "./workflowRunActions";
export * from "./workflowRunActionRepetitions";
export * from "./workflowRunActionRepetitionsRequestHistories";
export * from "./workflowRunActionScopeRepetitions";
export * from "./workflowTriggers";
export * from "./workflowTriggerHistories";
export * from "./workflowVersions";
//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oCAAoC,CAAC;AACnD,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gDAAgD,CAAC;AAC/D,cAAc,qCAAqC,CAAC;AACpD,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,99 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { KubeEnvironments } from "../operationsInterfaces";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import { PollerLike, PollOperationState } from "@azure/core-lro";
import { KubeEnvironment, KubeEnvironmentsListBySubscriptionOptionalParams, KubeEnvironmentsListByResourceGroupOptionalParams, KubeEnvironmentsGetOptionalParams, KubeEnvironmentsGetResponse, KubeEnvironmentsCreateOrUpdateOptionalParams, KubeEnvironmentsCreateOrUpdateResponse, KubeEnvironmentsDeleteOptionalParams, KubeEnvironmentPatchResource, KubeEnvironmentsUpdateOptionalParams, KubeEnvironmentsUpdateResponse } from "../models";
/** Class containing KubeEnvironments operations. */
export declare class KubeEnvironmentsImpl implements KubeEnvironments {
private readonly client;
/**
* Initialize a new instance of the class KubeEnvironments class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient);
/**
* Description for Get all Kubernetes Environments for a subscription.
* @param options The options parameters.
*/
listBySubscription(options?: KubeEnvironmentsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<KubeEnvironment>;
private listBySubscriptionPagingPage;
private listBySubscriptionPagingAll;
/**
* Description for Get all the Kubernetes Environments in a resource group.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param options The options parameters.
*/
listByResourceGroup(resourceGroupName: string, options?: KubeEnvironmentsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<KubeEnvironment>;
private listByResourceGroupPagingPage;
private listByResourceGroupPagingAll;
/**
* Description for Get all Kubernetes Environments for a subscription.
* @param options The options parameters.
*/
private _listBySubscription;
/**
* Description for Get all the Kubernetes Environments in a resource group.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param options The options parameters.
*/
private _listByResourceGroup;
/**
* Description for Get the properties of a Kubernetes Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the Kubernetes Environment.
* @param options The options parameters.
*/
get(resourceGroupName: string, name: string, options?: KubeEnvironmentsGetOptionalParams): Promise<KubeEnvironmentsGetResponse>;
/**
* Description for Creates or updates a Kubernetes Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the Kubernetes Environment.
* @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment.
* @param options The options parameters.
*/
beginCreateOrUpdate(resourceGroupName: string, name: string, kubeEnvironmentEnvelope: KubeEnvironment, options?: KubeEnvironmentsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<KubeEnvironmentsCreateOrUpdateResponse>, KubeEnvironmentsCreateOrUpdateResponse>>;
/**
* Description for Creates or updates a Kubernetes Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the Kubernetes Environment.
* @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment.
* @param options The options parameters.
*/
beginCreateOrUpdateAndWait(resourceGroupName: string, name: string, kubeEnvironmentEnvelope: KubeEnvironment, options?: KubeEnvironmentsCreateOrUpdateOptionalParams): Promise<KubeEnvironmentsCreateOrUpdateResponse>;
/**
* Description for Delete a Kubernetes Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the Kubernetes Environment.
* @param options The options parameters.
*/
beginDelete(resourceGroupName: string, name: string, options?: KubeEnvironmentsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
/**
* Description for Delete a Kubernetes Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the Kubernetes Environment.
* @param options The options parameters.
*/
beginDeleteAndWait(resourceGroupName: string, name: string, options?: KubeEnvironmentsDeleteOptionalParams): Promise<void>;
/**
* Description for Creates or updates a Kubernetes Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the Kubernetes Environment.
* @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment.
* @param options The options parameters.
*/
update(resourceGroupName: string, name: string, kubeEnvironmentEnvelope: KubeEnvironmentPatchResource, options?: KubeEnvironmentsUpdateOptionalParams): Promise<KubeEnvironmentsUpdateResponse>;
/**
* ListBySubscriptionNext
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
* @param options The options parameters.
*/
private _listBySubscriptionNext;
/**
* ListByResourceGroupNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
* @param options The options parameters.
*/
private _listByResourceGroupNext;
}
//# sourceMappingURL=kubeEnvironments.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"kubeEnvironments.d.ts","sourceRoot":"","sources":["../../../src/operations/kubeEnvironments.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAI3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,eAAe,EAEf,gDAAgD,EAGhD,iDAAiD,EAEjD,iCAAiC,EACjC,2BAA2B,EAC3B,4CAA4C,EAC5C,sCAAsC,EACtC,oCAAoC,EACpC,4BAA4B,EAC5B,oCAAoC,EACpC,8BAA8B,EAG/B,MAAM,WAAW,CAAC;AAGnB,oDAAoD;AACpD,qBAAa,oBAAqB,YAAW,gBAAgB;IAC3D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;OAGG;IACI,kBAAkB,CACvB,OAAO,CAAC,EAAE,gDAAgD,GACzD,0BAA0B,CAAC,eAAe,CAAC;YAkB/B,4BAA4B;YAsB5B,2BAA2B;IAQ1C;;;;OAIG;IACI,mBAAmB,CACxB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,iDAAiD,GAC1D,0BAA0B,CAAC,eAAe,CAAC;YAsB/B,6BAA6B;YA2B7B,4BAA4B;IAY3C;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAS3B;;;;OAIG;IACH,OAAO,CAAC,oBAAoB;IAU5B;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,2BAA2B,CAAC;IAOvC;;;;;;OAMG;IACG,mBAAmB,CACvB,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,uBAAuB,EAAE,eAAe,EACxC,OAAO,CAAC,EAAE,4CAA4C,GACrD,OAAO,CACR,UAAU,CACR,kBAAkB,CAAC,sCAAsC,CAAC,EAC1D,sCAAsC,CACvC,CACF;IAqDD;;;;;;OAMG;IACG,0BAA0B,CAC9B,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,uBAAuB,EAAE,eAAe,EACxC,OAAO,CAAC,EAAE,4CAA4C,GACrD,OAAO,CAAC,sCAAsC,CAAC;IAUlD;;;;;OAKG;IACG,WAAW,CACf,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,oCAAoC,GAC7C,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;IAqDtD;;;;;OAKG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,oCAAoC,GAC7C,OAAO,CAAC,IAAI,CAAC;IAKhB;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,uBAAuB,EAAE,4BAA4B,EACrD,OAAO,CAAC,EAAE,oCAAoC,GAC7C,OAAO,CAAC,8BAA8B,CAAC;IAO1C;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IAU/B;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB;CAUjC"}
@@ -0,0 +1,480 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
import { setContinuationToken } from "../pagingHelper";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { LroEngine } from "@azure/core-lro";
import { LroImpl } from "../lroImpl";
/// <reference lib="esnext.asynciterable" />
/** Class containing KubeEnvironments operations. */
export class KubeEnvironmentsImpl {
/**
* Initialize a new instance of the class KubeEnvironments class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* Description for Get all Kubernetes Environments for a subscription.
* @param options The options parameters.
*/
listBySubscription(options) {
const iter = this.listBySubscriptionPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listBySubscriptionPagingPage(options, settings);
}
};
}
listBySubscriptionPagingPage(options, settings) {
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._listBySubscription(options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listBySubscriptionNext(continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
listBySubscriptionPagingAll(options) {
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* Description for Get all the Kubernetes Environments in a resource group.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param options The options parameters.
*/
listByResourceGroup(resourceGroupName, options) {
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
}
};
}
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._listByResourceGroup(resourceGroupName, options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
listByResourceGroupPagingAll(resourceGroupName, options) {
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
var e_2, _a;
try {
for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_2_1) { e_2 = { error: e_2_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_2) throw e_2.error; }
}
});
}
/**
* Description for Get all Kubernetes Environments for a subscription.
* @param options The options parameters.
*/
_listBySubscription(options) {
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
}
/**
* Description for Get all the Kubernetes Environments in a resource group.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param options The options parameters.
*/
_listByResourceGroup(resourceGroupName, options) {
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
}
/**
* Description for Get the properties of a Kubernetes Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the Kubernetes Environment.
* @param options The options parameters.
*/
get(resourceGroupName, name, options) {
return this.client.sendOperationRequest({ resourceGroupName, name, options }, getOperationSpec);
}
/**
* Description for Creates or updates a Kubernetes Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the Kubernetes Environment.
* @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment.
* @param options The options parameters.
*/
beginCreateOrUpdate(resourceGroupName, name, kubeEnvironmentEnvelope, options) {
return __awaiter(this, void 0, void 0, function* () {
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
return this.client.sendOperationRequest(args, spec);
});
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
var _a;
let currentRawResponse = undefined;
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
const callback = (rawResponse, flatResponse) => {
currentRawResponse = rawResponse;
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
};
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
const flatResponse = yield directSendOperation(updatedArgs, spec);
return {
flatResponse,
rawResponse: {
statusCode: currentRawResponse.status,
body: currentRawResponse.parsedBody,
headers: currentRawResponse.headers.toJSON()
}
};
});
const lro = new LroImpl(sendOperation, { resourceGroupName, name, kubeEnvironmentEnvelope, options }, createOrUpdateOperationSpec);
const poller = new LroEngine(lro, {
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
});
yield poller.poll();
return poller;
});
}
/**
* Description for Creates or updates a Kubernetes Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the Kubernetes Environment.
* @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment.
* @param options The options parameters.
*/
beginCreateOrUpdateAndWait(resourceGroupName, name, kubeEnvironmentEnvelope, options) {
return __awaiter(this, void 0, void 0, function* () {
const poller = yield this.beginCreateOrUpdate(resourceGroupName, name, kubeEnvironmentEnvelope, options);
return poller.pollUntilDone();
});
}
/**
* Description for Delete a Kubernetes Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the Kubernetes Environment.
* @param options The options parameters.
*/
beginDelete(resourceGroupName, name, options) {
return __awaiter(this, void 0, void 0, function* () {
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
return this.client.sendOperationRequest(args, spec);
});
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
var _a;
let currentRawResponse = undefined;
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
const callback = (rawResponse, flatResponse) => {
currentRawResponse = rawResponse;
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
};
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
const flatResponse = yield directSendOperation(updatedArgs, spec);
return {
flatResponse,
rawResponse: {
statusCode: currentRawResponse.status,
body: currentRawResponse.parsedBody,
headers: currentRawResponse.headers.toJSON()
}
};
});
const lro = new LroImpl(sendOperation, { resourceGroupName, name, options }, deleteOperationSpec);
const poller = new LroEngine(lro, {
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
});
yield poller.poll();
return poller;
});
}
/**
* Description for Delete a Kubernetes Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the Kubernetes Environment.
* @param options The options parameters.
*/
beginDeleteAndWait(resourceGroupName, name, options) {
return __awaiter(this, void 0, void 0, function* () {
const poller = yield this.beginDelete(resourceGroupName, name, options);
return poller.pollUntilDone();
});
}
/**
* Description for Creates or updates a Kubernetes Environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the Kubernetes Environment.
* @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment.
* @param options The options parameters.
*/
update(resourceGroupName, name, kubeEnvironmentEnvelope, options) {
return this.client.sendOperationRequest({ resourceGroupName, name, kubeEnvironmentEnvelope, options }, updateOperationSpec);
}
/**
* ListBySubscriptionNext
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
* @param options The options parameters.
*/
_listBySubscriptionNext(nextLink, options) {
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
}
/**
* ListByResourceGroupNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
* @param options The options parameters.
*/
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listBySubscriptionOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/kubeEnvironments",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.KubeEnvironmentCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host, Parameters.subscriptionId],
headerParameters: [Parameters.accept],
serializer
};
const listByResourceGroupOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/kubeEnvironments",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.KubeEnvironmentCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName
],
headerParameters: [Parameters.accept],
serializer
};
const getOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/kubeEnvironments/{name}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.KubeEnvironment
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name
],
headerParameters: [Parameters.accept],
serializer
};
const createOrUpdateOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/kubeEnvironments/{name}",
httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.KubeEnvironment
},
201: {
bodyMapper: Mappers.KubeEnvironment
},
202: {
bodyMapper: Mappers.KubeEnvironment
},
204: {
bodyMapper: Mappers.KubeEnvironment
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
requestBody: Parameters.kubeEnvironmentEnvelope,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const deleteOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/kubeEnvironments/{name}",
httpMethod: "DELETE",
responses: {
200: {},
201: {},
202: {},
204: {},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name
],
headerParameters: [Parameters.accept],
serializer
};
const updateOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/kubeEnvironments/{name}",
httpMethod: "PATCH",
responses: {
200: {
bodyMapper: Mappers.KubeEnvironment
},
201: {
bodyMapper: Mappers.KubeEnvironment
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
requestBody: Parameters.kubeEnvironmentEnvelope1,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const listBySubscriptionNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.KubeEnvironmentCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.nextLink
],
headerParameters: [Parameters.accept],
serializer
};
const listByResourceGroupNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.KubeEnvironmentCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.nextLink
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=kubeEnvironments.js.map
File diff suppressed because one or more lines are too long
@@ -0,0 +1,151 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { Provider } from "../operationsInterfaces";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import { ApplicationStackResource, ProviderGetAvailableStacksOptionalParams, FunctionAppStack, ProviderGetFunctionAppStacksOptionalParams, ProviderGetFunctionAppStacksForLocationOptionalParams, WebAppStack, ProviderGetWebAppStacksForLocationOptionalParams, CsmOperationDescription, ProviderListOperationsOptionalParams, ProviderGetWebAppStacksOptionalParams, ProviderGetAvailableStacksOnPremOptionalParams } from "../models";
/** Class containing Provider operations. */
export declare class ProviderImpl implements Provider {
private readonly client;
/**
* Initialize a new instance of the class Provider class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient);
/**
* Description for Get available application frameworks and their versions
* @param options The options parameters.
*/
listAvailableStacks(options?: ProviderGetAvailableStacksOptionalParams): PagedAsyncIterableIterator<ApplicationStackResource>;
private getAvailableStacksPagingPage;
private getAvailableStacksPagingAll;
/**
* Description for Get available Function app frameworks and their versions
* @param options The options parameters.
*/
listFunctionAppStacks(options?: ProviderGetFunctionAppStacksOptionalParams): PagedAsyncIterableIterator<FunctionAppStack>;
private getFunctionAppStacksPagingPage;
private getFunctionAppStacksPagingAll;
/**
* Description for Get available Function app frameworks and their versions for location
* @param location Function App stack location.
* @param options The options parameters.
*/
listFunctionAppStacksForLocation(location: string, options?: ProviderGetFunctionAppStacksForLocationOptionalParams): PagedAsyncIterableIterator<FunctionAppStack>;
private getFunctionAppStacksForLocationPagingPage;
private getFunctionAppStacksForLocationPagingAll;
/**
* Description for Get available Web app frameworks and their versions for location
* @param location Web App stack location.
* @param options The options parameters.
*/
listWebAppStacksForLocation(location: string, options?: ProviderGetWebAppStacksForLocationOptionalParams): PagedAsyncIterableIterator<WebAppStack>;
private getWebAppStacksForLocationPagingPage;
private getWebAppStacksForLocationPagingAll;
/**
* Description for Gets all available operations for the Microsoft.Web resource provider. Also exposes
* resource metric definitions
* @param options The options parameters.
*/
listOperations(options?: ProviderListOperationsOptionalParams): PagedAsyncIterableIterator<CsmOperationDescription>;
private listOperationsPagingPage;
private listOperationsPagingAll;
/**
* Description for Get available Web app frameworks and their versions
* @param options The options parameters.
*/
listWebAppStacks(options?: ProviderGetWebAppStacksOptionalParams): PagedAsyncIterableIterator<WebAppStack>;
private getWebAppStacksPagingPage;
private getWebAppStacksPagingAll;
/**
* Description for Get available application frameworks and their versions
* @param options The options parameters.
*/
listAvailableStacksOnPrem(options?: ProviderGetAvailableStacksOnPremOptionalParams): PagedAsyncIterableIterator<ApplicationStackResource>;
private getAvailableStacksOnPremPagingPage;
private getAvailableStacksOnPremPagingAll;
/**
* Description for Get available application frameworks and their versions
* @param options The options parameters.
*/
private _getAvailableStacks;
/**
* Description for Get available Function app frameworks and their versions
* @param options The options parameters.
*/
private _getFunctionAppStacks;
/**
* Description for Get available Function app frameworks and their versions for location
* @param location Function App stack location.
* @param options The options parameters.
*/
private _getFunctionAppStacksForLocation;
/**
* Description for Get available Web app frameworks and their versions for location
* @param location Web App stack location.
* @param options The options parameters.
*/
private _getWebAppStacksForLocation;
/**
* Description for Gets all available operations for the Microsoft.Web resource provider. Also exposes
* resource metric definitions
* @param options The options parameters.
*/
private _listOperations;
/**
* Description for Get available Web app frameworks and their versions
* @param options The options parameters.
*/
private _getWebAppStacks;
/**
* Description for Get available application frameworks and their versions
* @param options The options parameters.
*/
private _getAvailableStacksOnPrem;
/**
* GetAvailableStacksNext
* @param nextLink The nextLink from the previous successful call to the GetAvailableStacks method.
* @param options The options parameters.
*/
private _getAvailableStacksNext;
/**
* GetFunctionAppStacksNext
* @param nextLink The nextLink from the previous successful call to the GetFunctionAppStacks method.
* @param options The options parameters.
*/
private _getFunctionAppStacksNext;
/**
* GetFunctionAppStacksForLocationNext
* @param location Function App stack location.
* @param nextLink The nextLink from the previous successful call to the
* GetFunctionAppStacksForLocation method.
* @param options The options parameters.
*/
private _getFunctionAppStacksForLocationNext;
/**
* GetWebAppStacksForLocationNext
* @param location Web App stack location.
* @param nextLink The nextLink from the previous successful call to the GetWebAppStacksForLocation
* method.
* @param options The options parameters.
*/
private _getWebAppStacksForLocationNext;
/**
* ListOperationsNext
* @param nextLink The nextLink from the previous successful call to the ListOperations method.
* @param options The options parameters.
*/
private _listOperationsNext;
/**
* GetWebAppStacksNext
* @param nextLink The nextLink from the previous successful call to the GetWebAppStacks method.
* @param options The options parameters.
*/
private _getWebAppStacksNext;
/**
* GetAvailableStacksOnPremNext
* @param nextLink The nextLink from the previous successful call to the GetAvailableStacksOnPrem
* method.
* @param options The options parameters.
*/
private _getAvailableStacksOnPremNext;
}
//# sourceMappingURL=provider.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../src/operations/provider.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAInD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,wBAAwB,EAExB,wCAAwC,EAExC,gBAAgB,EAEhB,0CAA0C,EAG1C,qDAAqD,EAErD,WAAW,EAEX,gDAAgD,EAEhD,uBAAuB,EAEvB,oCAAoC,EAGpC,qCAAqC,EAGrC,8CAA8C,EAS/C,MAAM,WAAW,CAAC;AAGnB,4CAA4C;AAC5C,qBAAa,YAAa,YAAW,QAAQ;IAC3C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;OAGG;IACI,mBAAmB,CACxB,OAAO,CAAC,EAAE,wCAAwC,GACjD,0BAA0B,CAAC,wBAAwB,CAAC;YAkBxC,4BAA4B;YAsB5B,2BAA2B;IAQ1C;;;OAGG;IACI,qBAAqB,CAC1B,OAAO,CAAC,EAAE,0CAA0C,GACnD,0BAA0B,CAAC,gBAAgB,CAAC;YAkBhC,8BAA8B;YAsB9B,6BAA6B;IAQ5C;;;;OAIG;IACI,gCAAgC,CACrC,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,qDAAqD,GAC9D,0BAA0B,CAAC,gBAAgB,CAAC;YAyBhC,yCAAyC;YA2BzC,wCAAwC;IAYvD;;;;OAIG;IACI,2BAA2B,CAChC,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,gDAAgD,GACzD,0BAA0B,CAAC,WAAW,CAAC;YAsB3B,oCAAoC;YA2BpC,mCAAmC;IAYlD;;;;OAIG;IACI,cAAc,CACnB,OAAO,CAAC,EAAE,oCAAoC,GAC7C,0BAA0B,CAAC,uBAAuB,CAAC;YAkBvC,wBAAwB;YAsBxB,uBAAuB;IAQtC;;;OAGG;IACI,gBAAgB,CACrB,OAAO,CAAC,EAAE,qCAAqC,GAC9C,0BAA0B,CAAC,WAAW,CAAC;YAkB3B,yBAAyB;YAsBzB,wBAAwB;IAQvC;;;OAGG;IACI,yBAAyB,CAC9B,OAAO,CAAC,EAAE,8CAA8C,GACvD,0BAA0B,CAAC,wBAAwB,CAAC;YAkBxC,kCAAkC;YAyBlC,iCAAiC;IAQhD;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAS3B;;;OAGG;IACH,OAAO,CAAC,qBAAqB;IAS7B;;;;OAIG;IACH,OAAO,CAAC,gCAAgC;IAUxC;;;;OAIG;IACH,OAAO,CAAC,2BAA2B;IAUnC;;;;OAIG;IACH,OAAO,CAAC,eAAe;IASvB;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IASxB;;;OAGG;IACH,OAAO,CAAC,yBAAyB;IASjC;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IAU/B;;;;OAIG;IACH,OAAO,CAAC,yBAAyB;IAUjC;;;;;;OAMG;IACH,OAAO,CAAC,oCAAoC;IAW5C;;;;;;OAMG;IACH,OAAO,CAAC,+BAA+B;IAWvC;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;IAU3B;;;;OAIG;IACH,OAAO,CAAC,oBAAoB;IAU5B;;;;;OAKG;IACH,OAAO,CAAC,6BAA6B;CAStC"}
+783
View File
@@ -0,0 +1,783 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
import { setContinuationToken } from "../pagingHelper";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/// <reference lib="esnext.asynciterable" />
/** Class containing Provider operations. */
export class ProviderImpl {
/**
* Initialize a new instance of the class Provider class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* Description for Get available application frameworks and their versions
* @param options The options parameters.
*/
listAvailableStacks(options) {
const iter = this.getAvailableStacksPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.getAvailableStacksPagingPage(options, settings);
}
};
}
getAvailableStacksPagingPage(options, settings) {
return __asyncGenerator(this, arguments, function* getAvailableStacksPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._getAvailableStacks(options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._getAvailableStacksNext(continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
getAvailableStacksPagingAll(options) {
return __asyncGenerator(this, arguments, function* getAvailableStacksPagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.getAvailableStacksPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* Description for Get available Function app frameworks and their versions
* @param options The options parameters.
*/
listFunctionAppStacks(options) {
const iter = this.getFunctionAppStacksPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.getFunctionAppStacksPagingPage(options, settings);
}
};
}
getFunctionAppStacksPagingPage(options, settings) {
return __asyncGenerator(this, arguments, function* getFunctionAppStacksPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._getFunctionAppStacks(options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._getFunctionAppStacksNext(continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
getFunctionAppStacksPagingAll(options) {
return __asyncGenerator(this, arguments, function* getFunctionAppStacksPagingAll_1() {
var e_2, _a;
try {
for (var _b = __asyncValues(this.getFunctionAppStacksPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_2_1) { e_2 = { error: e_2_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_2) throw e_2.error; }
}
});
}
/**
* Description for Get available Function app frameworks and their versions for location
* @param location Function App stack location.
* @param options The options parameters.
*/
listFunctionAppStacksForLocation(location, options) {
const iter = this.getFunctionAppStacksForLocationPagingAll(location, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.getFunctionAppStacksForLocationPagingPage(location, options, settings);
}
};
}
getFunctionAppStacksForLocationPagingPage(location, options, settings) {
return __asyncGenerator(this, arguments, function* getFunctionAppStacksForLocationPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._getFunctionAppStacksForLocation(location, options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._getFunctionAppStacksForLocationNext(location, continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
getFunctionAppStacksForLocationPagingAll(location, options) {
return __asyncGenerator(this, arguments, function* getFunctionAppStacksForLocationPagingAll_1() {
var e_3, _a;
try {
for (var _b = __asyncValues(this.getFunctionAppStacksForLocationPagingPage(location, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_3_1) { e_3 = { error: e_3_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_3) throw e_3.error; }
}
});
}
/**
* Description for Get available Web app frameworks and their versions for location
* @param location Web App stack location.
* @param options The options parameters.
*/
listWebAppStacksForLocation(location, options) {
const iter = this.getWebAppStacksForLocationPagingAll(location, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.getWebAppStacksForLocationPagingPage(location, options, settings);
}
};
}
getWebAppStacksForLocationPagingPage(location, options, settings) {
return __asyncGenerator(this, arguments, function* getWebAppStacksForLocationPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._getWebAppStacksForLocation(location, options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._getWebAppStacksForLocationNext(location, continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
getWebAppStacksForLocationPagingAll(location, options) {
return __asyncGenerator(this, arguments, function* getWebAppStacksForLocationPagingAll_1() {
var e_4, _a;
try {
for (var _b = __asyncValues(this.getWebAppStacksForLocationPagingPage(location, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_4_1) { e_4 = { error: e_4_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_4) throw e_4.error; }
}
});
}
/**
* Description for Gets all available operations for the Microsoft.Web resource provider. Also exposes
* resource metric definitions
* @param options The options parameters.
*/
listOperations(options) {
const iter = this.listOperationsPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listOperationsPagingPage(options, settings);
}
};
}
listOperationsPagingPage(options, settings) {
return __asyncGenerator(this, arguments, function* listOperationsPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._listOperations(options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listOperationsNext(continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
listOperationsPagingAll(options) {
return __asyncGenerator(this, arguments, function* listOperationsPagingAll_1() {
var e_5, _a;
try {
for (var _b = __asyncValues(this.listOperationsPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_5_1) { e_5 = { error: e_5_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_5) throw e_5.error; }
}
});
}
/**
* Description for Get available Web app frameworks and their versions
* @param options The options parameters.
*/
listWebAppStacks(options) {
const iter = this.getWebAppStacksPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.getWebAppStacksPagingPage(options, settings);
}
};
}
getWebAppStacksPagingPage(options, settings) {
return __asyncGenerator(this, arguments, function* getWebAppStacksPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._getWebAppStacks(options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._getWebAppStacksNext(continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
getWebAppStacksPagingAll(options) {
return __asyncGenerator(this, arguments, function* getWebAppStacksPagingAll_1() {
var e_6, _a;
try {
for (var _b = __asyncValues(this.getWebAppStacksPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_6_1) { e_6 = { error: e_6_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_6) throw e_6.error; }
}
});
}
/**
* Description for Get available application frameworks and their versions
* @param options The options parameters.
*/
listAvailableStacksOnPrem(options) {
const iter = this.getAvailableStacksOnPremPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.getAvailableStacksOnPremPagingPage(options, settings);
}
};
}
getAvailableStacksOnPremPagingPage(options, settings) {
return __asyncGenerator(this, arguments, function* getAvailableStacksOnPremPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._getAvailableStacksOnPrem(options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._getAvailableStacksOnPremNext(continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
getAvailableStacksOnPremPagingAll(options) {
return __asyncGenerator(this, arguments, function* getAvailableStacksOnPremPagingAll_1() {
var e_7, _a;
try {
for (var _b = __asyncValues(this.getAvailableStacksOnPremPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_7_1) { e_7 = { error: e_7_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_7) throw e_7.error; }
}
});
}
/**
* Description for Get available application frameworks and their versions
* @param options The options parameters.
*/
_getAvailableStacks(options) {
return this.client.sendOperationRequest({ options }, getAvailableStacksOperationSpec);
}
/**
* Description for Get available Function app frameworks and their versions
* @param options The options parameters.
*/
_getFunctionAppStacks(options) {
return this.client.sendOperationRequest({ options }, getFunctionAppStacksOperationSpec);
}
/**
* Description for Get available Function app frameworks and their versions for location
* @param location Function App stack location.
* @param options The options parameters.
*/
_getFunctionAppStacksForLocation(location, options) {
return this.client.sendOperationRequest({ location, options }, getFunctionAppStacksForLocationOperationSpec);
}
/**
* Description for Get available Web app frameworks and their versions for location
* @param location Web App stack location.
* @param options The options parameters.
*/
_getWebAppStacksForLocation(location, options) {
return this.client.sendOperationRequest({ location, options }, getWebAppStacksForLocationOperationSpec);
}
/**
* Description for Gets all available operations for the Microsoft.Web resource provider. Also exposes
* resource metric definitions
* @param options The options parameters.
*/
_listOperations(options) {
return this.client.sendOperationRequest({ options }, listOperationsOperationSpec);
}
/**
* Description for Get available Web app frameworks and their versions
* @param options The options parameters.
*/
_getWebAppStacks(options) {
return this.client.sendOperationRequest({ options }, getWebAppStacksOperationSpec);
}
/**
* Description for Get available application frameworks and their versions
* @param options The options parameters.
*/
_getAvailableStacksOnPrem(options) {
return this.client.sendOperationRequest({ options }, getAvailableStacksOnPremOperationSpec);
}
/**
* GetAvailableStacksNext
* @param nextLink The nextLink from the previous successful call to the GetAvailableStacks method.
* @param options The options parameters.
*/
_getAvailableStacksNext(nextLink, options) {
return this.client.sendOperationRequest({ nextLink, options }, getAvailableStacksNextOperationSpec);
}
/**
* GetFunctionAppStacksNext
* @param nextLink The nextLink from the previous successful call to the GetFunctionAppStacks method.
* @param options The options parameters.
*/
_getFunctionAppStacksNext(nextLink, options) {
return this.client.sendOperationRequest({ nextLink, options }, getFunctionAppStacksNextOperationSpec);
}
/**
* GetFunctionAppStacksForLocationNext
* @param location Function App stack location.
* @param nextLink The nextLink from the previous successful call to the
* GetFunctionAppStacksForLocation method.
* @param options The options parameters.
*/
_getFunctionAppStacksForLocationNext(location, nextLink, options) {
return this.client.sendOperationRequest({ location, nextLink, options }, getFunctionAppStacksForLocationNextOperationSpec);
}
/**
* GetWebAppStacksForLocationNext
* @param location Web App stack location.
* @param nextLink The nextLink from the previous successful call to the GetWebAppStacksForLocation
* method.
* @param options The options parameters.
*/
_getWebAppStacksForLocationNext(location, nextLink, options) {
return this.client.sendOperationRequest({ location, nextLink, options }, getWebAppStacksForLocationNextOperationSpec);
}
/**
* ListOperationsNext
* @param nextLink The nextLink from the previous successful call to the ListOperations method.
* @param options The options parameters.
*/
_listOperationsNext(nextLink, options) {
return this.client.sendOperationRequest({ nextLink, options }, listOperationsNextOperationSpec);
}
/**
* GetWebAppStacksNext
* @param nextLink The nextLink from the previous successful call to the GetWebAppStacks method.
* @param options The options parameters.
*/
_getWebAppStacksNext(nextLink, options) {
return this.client.sendOperationRequest({ nextLink, options }, getWebAppStacksNextOperationSpec);
}
/**
* GetAvailableStacksOnPremNext
* @param nextLink The nextLink from the previous successful call to the GetAvailableStacksOnPrem
* method.
* @param options The options parameters.
*/
_getAvailableStacksOnPremNext(nextLink, options) {
return this.client.sendOperationRequest({ nextLink, options }, getAvailableStacksOnPremNextOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const getAvailableStacksOperationSpec = {
path: "/providers/Microsoft.Web/availableStacks",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ApplicationStackCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion, Parameters.osTypeSelected],
urlParameters: [Parameters.$host],
headerParameters: [Parameters.accept],
serializer
};
const getFunctionAppStacksOperationSpec = {
path: "/providers/Microsoft.Web/functionAppStacks",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.FunctionAppStackCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion, Parameters.stackOsType],
urlParameters: [Parameters.$host],
headerParameters: [Parameters.accept],
serializer
};
const getFunctionAppStacksForLocationOperationSpec = {
path: "/providers/Microsoft.Web/locations/{location}/functionAppStacks",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.FunctionAppStackCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion, Parameters.stackOsType1],
urlParameters: [Parameters.$host, Parameters.location],
headerParameters: [Parameters.accept],
serializer
};
const getWebAppStacksForLocationOperationSpec = {
path: "/providers/Microsoft.Web/locations/{location}/webAppStacks",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.WebAppStackCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion, Parameters.stackOsType2],
urlParameters: [Parameters.$host, Parameters.location],
headerParameters: [Parameters.accept],
serializer
};
const listOperationsOperationSpec = {
path: "/providers/Microsoft.Web/operations",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.CsmOperationCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host],
headerParameters: [Parameters.accept],
serializer
};
const getWebAppStacksOperationSpec = {
path: "/providers/Microsoft.Web/webAppStacks",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.WebAppStackCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion, Parameters.stackOsType3],
urlParameters: [Parameters.$host],
headerParameters: [Parameters.accept],
serializer
};
const getAvailableStacksOnPremOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/availableStacks",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ApplicationStackCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion, Parameters.osTypeSelected1],
urlParameters: [Parameters.$host, Parameters.subscriptionId],
headerParameters: [Parameters.accept],
serializer
};
const getAvailableStacksNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ApplicationStackCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion, Parameters.osTypeSelected],
urlParameters: [Parameters.$host, Parameters.nextLink],
headerParameters: [Parameters.accept],
serializer
};
const getFunctionAppStacksNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.FunctionAppStackCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion, Parameters.stackOsType],
urlParameters: [Parameters.$host, Parameters.nextLink],
headerParameters: [Parameters.accept],
serializer
};
const getFunctionAppStacksForLocationNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.FunctionAppStackCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion, Parameters.stackOsType1],
urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.location],
headerParameters: [Parameters.accept],
serializer
};
const getWebAppStacksForLocationNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.WebAppStackCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion, Parameters.stackOsType2],
urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.location],
headerParameters: [Parameters.accept],
serializer
};
const listOperationsNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.CsmOperationCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host, Parameters.nextLink],
headerParameters: [Parameters.accept],
serializer
};
const getWebAppStacksNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.WebAppStackCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion, Parameters.stackOsType3],
urlParameters: [Parameters.$host, Parameters.nextLink],
headerParameters: [Parameters.accept],
serializer
};
const getAvailableStacksOnPremNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ApplicationStackCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion, Parameters.osTypeSelected1],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.nextLink
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=provider.js.map
File diff suppressed because one or more lines are too long
@@ -0,0 +1,205 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { Recommendations } from "../operationsInterfaces";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import { Recommendation, RecommendationsListOptionalParams, RecommendationsListHistoryForHostingEnvironmentOptionalParams, RecommendationsListRecommendedRulesForHostingEnvironmentOptionalParams, RecommendationsListHistoryForWebAppOptionalParams, RecommendationsListRecommendedRulesForWebAppOptionalParams, RecommendationsResetAllFiltersOptionalParams, RecommendationsDisableRecommendationForSubscriptionOptionalParams, RecommendationsDisableAllForHostingEnvironmentOptionalParams, RecommendationsResetAllFiltersForHostingEnvironmentOptionalParams, RecommendationsGetRuleDetailsByHostingEnvironmentOptionalParams, RecommendationsGetRuleDetailsByHostingEnvironmentResponse, RecommendationsDisableRecommendationForHostingEnvironmentOptionalParams, RecommendationsDisableAllForWebAppOptionalParams, RecommendationsResetAllFiltersForWebAppOptionalParams, RecommendationsGetRuleDetailsByWebAppOptionalParams, RecommendationsGetRuleDetailsByWebAppResponse, RecommendationsDisableRecommendationForSiteOptionalParams } from "../models";
/** Class containing Recommendations operations. */
export declare class RecommendationsImpl implements Recommendations {
private readonly client;
/**
* Initialize a new instance of the class Recommendations class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient);
/**
* Description for List all recommendations for a subscription.
* @param options The options parameters.
*/
list(options?: RecommendationsListOptionalParams): PagedAsyncIterableIterator<Recommendation>;
private listPagingPage;
private listPagingAll;
/**
* Description for Get past recommendations for an app, optionally specified by the time range.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param hostingEnvironmentName Name of the hosting environment.
* @param options The options parameters.
*/
listHistoryForHostingEnvironment(resourceGroupName: string, hostingEnvironmentName: string, options?: RecommendationsListHistoryForHostingEnvironmentOptionalParams): PagedAsyncIterableIterator<Recommendation>;
private listHistoryForHostingEnvironmentPagingPage;
private listHistoryForHostingEnvironmentPagingAll;
/**
* Description for Get all recommendations for a hosting environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param hostingEnvironmentName Name of the app.
* @param options The options parameters.
*/
listRecommendedRulesForHostingEnvironment(resourceGroupName: string, hostingEnvironmentName: string, options?: RecommendationsListRecommendedRulesForHostingEnvironmentOptionalParams): PagedAsyncIterableIterator<Recommendation>;
private listRecommendedRulesForHostingEnvironmentPagingPage;
private listRecommendedRulesForHostingEnvironmentPagingAll;
/**
* Description for Get past recommendations for an app, optionally specified by the time range.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Name of the app.
* @param options The options parameters.
*/
listHistoryForWebApp(resourceGroupName: string, siteName: string, options?: RecommendationsListHistoryForWebAppOptionalParams): PagedAsyncIterableIterator<Recommendation>;
private listHistoryForWebAppPagingPage;
private listHistoryForWebAppPagingAll;
/**
* Description for Get all recommendations for an app.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Name of the app.
* @param options The options parameters.
*/
listRecommendedRulesForWebApp(resourceGroupName: string, siteName: string, options?: RecommendationsListRecommendedRulesForWebAppOptionalParams): PagedAsyncIterableIterator<Recommendation>;
private listRecommendedRulesForWebAppPagingPage;
private listRecommendedRulesForWebAppPagingAll;
/**
* Description for List all recommendations for a subscription.
* @param options The options parameters.
*/
private _list;
/**
* Description for Reset all recommendation opt-out settings for a subscription.
* @param options The options parameters.
*/
resetAllFilters(options?: RecommendationsResetAllFiltersOptionalParams): Promise<void>;
/**
* Description for Disables the specified rule so it will not apply to a subscription in the future.
* @param name Rule name
* @param options The options parameters.
*/
disableRecommendationForSubscription(name: string, options?: RecommendationsDisableRecommendationForSubscriptionOptionalParams): Promise<void>;
/**
* Description for Get past recommendations for an app, optionally specified by the time range.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param hostingEnvironmentName Name of the hosting environment.
* @param options The options parameters.
*/
private _listHistoryForHostingEnvironment;
/**
* Description for Get all recommendations for a hosting environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param hostingEnvironmentName Name of the app.
* @param options The options parameters.
*/
private _listRecommendedRulesForHostingEnvironment;
/**
* Description for Disable all recommendations for an app.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param environmentName Name of the app.
* @param hostingEnvironmentName
* @param options The options parameters.
*/
disableAllForHostingEnvironment(resourceGroupName: string, environmentName: string, hostingEnvironmentName: string, options?: RecommendationsDisableAllForHostingEnvironmentOptionalParams): Promise<void>;
/**
* Description for Reset all recommendation opt-out settings for an app.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param environmentName Name of the app.
* @param hostingEnvironmentName
* @param options The options parameters.
*/
resetAllFiltersForHostingEnvironment(resourceGroupName: string, environmentName: string, hostingEnvironmentName: string, options?: RecommendationsResetAllFiltersForHostingEnvironmentOptionalParams): Promise<void>;
/**
* Description for Get a recommendation rule for an app.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param hostingEnvironmentName Name of the hosting environment.
* @param name Name of the recommendation.
* @param options The options parameters.
*/
getRuleDetailsByHostingEnvironment(resourceGroupName: string, hostingEnvironmentName: string, name: string, options?: RecommendationsGetRuleDetailsByHostingEnvironmentOptionalParams): Promise<RecommendationsGetRuleDetailsByHostingEnvironmentResponse>;
/**
* Description for Disables the specific rule for a web site permanently.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param environmentName Site name
* @param name Rule name
* @param hostingEnvironmentName
* @param options The options parameters.
*/
disableRecommendationForHostingEnvironment(resourceGroupName: string, environmentName: string, name: string, hostingEnvironmentName: string, options?: RecommendationsDisableRecommendationForHostingEnvironmentOptionalParams): Promise<void>;
/**
* Description for Get past recommendations for an app, optionally specified by the time range.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Name of the app.
* @param options The options parameters.
*/
private _listHistoryForWebApp;
/**
* Description for Get all recommendations for an app.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Name of the app.
* @param options The options parameters.
*/
private _listRecommendedRulesForWebApp;
/**
* Description for Disable all recommendations for an app.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Name of the app.
* @param options The options parameters.
*/
disableAllForWebApp(resourceGroupName: string, siteName: string, options?: RecommendationsDisableAllForWebAppOptionalParams): Promise<void>;
/**
* Description for Reset all recommendation opt-out settings for an app.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Name of the app.
* @param options The options parameters.
*/
resetAllFiltersForWebApp(resourceGroupName: string, siteName: string, options?: RecommendationsResetAllFiltersForWebAppOptionalParams): Promise<void>;
/**
* Description for Get a recommendation rule for an app.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Name of the app.
* @param name Name of the recommendation.
* @param options The options parameters.
*/
getRuleDetailsByWebApp(resourceGroupName: string, siteName: string, name: string, options?: RecommendationsGetRuleDetailsByWebAppOptionalParams): Promise<RecommendationsGetRuleDetailsByWebAppResponse>;
/**
* Description for Disables the specific rule for a web site permanently.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site name
* @param name Rule name
* @param options The options parameters.
*/
disableRecommendationForSite(resourceGroupName: string, siteName: string, name: string, options?: RecommendationsDisableRecommendationForSiteOptionalParams): Promise<void>;
/**
* ListNext
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
private _listNext;
/**
* ListHistoryForHostingEnvironmentNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param hostingEnvironmentName Name of the hosting environment.
* @param nextLink The nextLink from the previous successful call to the
* ListHistoryForHostingEnvironment method.
* @param options The options parameters.
*/
private _listHistoryForHostingEnvironmentNext;
/**
* ListRecommendedRulesForHostingEnvironmentNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param hostingEnvironmentName Name of the app.
* @param nextLink The nextLink from the previous successful call to the
* ListRecommendedRulesForHostingEnvironment method.
* @param options The options parameters.
*/
private _listRecommendedRulesForHostingEnvironmentNext;
/**
* ListHistoryForWebAppNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Name of the app.
* @param nextLink The nextLink from the previous successful call to the ListHistoryForWebApp method.
* @param options The options parameters.
*/
private _listHistoryForWebAppNext;
/**
* ListRecommendedRulesForWebAppNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Name of the app.
* @param nextLink The nextLink from the previous successful call to the ListRecommendedRulesForWebApp
* method.
* @param options The options parameters.
*/
private _listRecommendedRulesForWebAppNext;
}
//# sourceMappingURL=recommendations.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"recommendations.d.ts","sourceRoot":"","sources":["../../../src/operations/recommendations.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,967 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
import { setContinuationToken } from "../pagingHelper";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/// <reference lib="esnext.asynciterable" />
/** Class containing Recommendations operations. */
export class RecommendationsImpl {
/**
* Initialize a new instance of the class Recommendations class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* Description for List all recommendations for a subscription.
* @param options The options parameters.
*/
list(options) {
const iter = this.listPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listPagingPage(options, settings);
}
};
}
listPagingPage(options, settings) {
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._list(options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listNext(continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
listPagingAll(options) {
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* Description for Get past recommendations for an app, optionally specified by the time range.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param hostingEnvironmentName Name of the hosting environment.
* @param options The options parameters.
*/
listHistoryForHostingEnvironment(resourceGroupName, hostingEnvironmentName, options) {
const iter = this.listHistoryForHostingEnvironmentPagingAll(resourceGroupName, hostingEnvironmentName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listHistoryForHostingEnvironmentPagingPage(resourceGroupName, hostingEnvironmentName, options, settings);
}
};
}
listHistoryForHostingEnvironmentPagingPage(resourceGroupName, hostingEnvironmentName, options, settings) {
return __asyncGenerator(this, arguments, function* listHistoryForHostingEnvironmentPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._listHistoryForHostingEnvironment(resourceGroupName, hostingEnvironmentName, options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listHistoryForHostingEnvironmentNext(resourceGroupName, hostingEnvironmentName, continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
listHistoryForHostingEnvironmentPagingAll(resourceGroupName, hostingEnvironmentName, options) {
return __asyncGenerator(this, arguments, function* listHistoryForHostingEnvironmentPagingAll_1() {
var e_2, _a;
try {
for (var _b = __asyncValues(this.listHistoryForHostingEnvironmentPagingPage(resourceGroupName, hostingEnvironmentName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_2_1) { e_2 = { error: e_2_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_2) throw e_2.error; }
}
});
}
/**
* Description for Get all recommendations for a hosting environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param hostingEnvironmentName Name of the app.
* @param options The options parameters.
*/
listRecommendedRulesForHostingEnvironment(resourceGroupName, hostingEnvironmentName, options) {
const iter = this.listRecommendedRulesForHostingEnvironmentPagingAll(resourceGroupName, hostingEnvironmentName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listRecommendedRulesForHostingEnvironmentPagingPage(resourceGroupName, hostingEnvironmentName, options, settings);
}
};
}
listRecommendedRulesForHostingEnvironmentPagingPage(resourceGroupName, hostingEnvironmentName, options, settings) {
return __asyncGenerator(this, arguments, function* listRecommendedRulesForHostingEnvironmentPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._listRecommendedRulesForHostingEnvironment(resourceGroupName, hostingEnvironmentName, options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listRecommendedRulesForHostingEnvironmentNext(resourceGroupName, hostingEnvironmentName, continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
listRecommendedRulesForHostingEnvironmentPagingAll(resourceGroupName, hostingEnvironmentName, options) {
return __asyncGenerator(this, arguments, function* listRecommendedRulesForHostingEnvironmentPagingAll_1() {
var e_3, _a;
try {
for (var _b = __asyncValues(this.listRecommendedRulesForHostingEnvironmentPagingPage(resourceGroupName, hostingEnvironmentName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_3_1) { e_3 = { error: e_3_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_3) throw e_3.error; }
}
});
}
/**
* Description for Get past recommendations for an app, optionally specified by the time range.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Name of the app.
* @param options The options parameters.
*/
listHistoryForWebApp(resourceGroupName, siteName, options) {
const iter = this.listHistoryForWebAppPagingAll(resourceGroupName, siteName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listHistoryForWebAppPagingPage(resourceGroupName, siteName, options, settings);
}
};
}
listHistoryForWebAppPagingPage(resourceGroupName, siteName, options, settings) {
return __asyncGenerator(this, arguments, function* listHistoryForWebAppPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._listHistoryForWebApp(resourceGroupName, siteName, options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listHistoryForWebAppNext(resourceGroupName, siteName, continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
listHistoryForWebAppPagingAll(resourceGroupName, siteName, options) {
return __asyncGenerator(this, arguments, function* listHistoryForWebAppPagingAll_1() {
var e_4, _a;
try {
for (var _b = __asyncValues(this.listHistoryForWebAppPagingPage(resourceGroupName, siteName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_4_1) { e_4 = { error: e_4_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_4) throw e_4.error; }
}
});
}
/**
* Description for Get all recommendations for an app.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Name of the app.
* @param options The options parameters.
*/
listRecommendedRulesForWebApp(resourceGroupName, siteName, options) {
const iter = this.listRecommendedRulesForWebAppPagingAll(resourceGroupName, siteName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listRecommendedRulesForWebAppPagingPage(resourceGroupName, siteName, options, settings);
}
};
}
listRecommendedRulesForWebAppPagingPage(resourceGroupName, siteName, options, settings) {
return __asyncGenerator(this, arguments, function* listRecommendedRulesForWebAppPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._listRecommendedRulesForWebApp(resourceGroupName, siteName, options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listRecommendedRulesForWebAppNext(resourceGroupName, siteName, continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
listRecommendedRulesForWebAppPagingAll(resourceGroupName, siteName, options) {
return __asyncGenerator(this, arguments, function* listRecommendedRulesForWebAppPagingAll_1() {
var e_5, _a;
try {
for (var _b = __asyncValues(this.listRecommendedRulesForWebAppPagingPage(resourceGroupName, siteName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_5_1) { e_5 = { error: e_5_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_5) throw e_5.error; }
}
});
}
/**
* Description for List all recommendations for a subscription.
* @param options The options parameters.
*/
_list(options) {
return this.client.sendOperationRequest({ options }, listOperationSpec);
}
/**
* Description for Reset all recommendation opt-out settings for a subscription.
* @param options The options parameters.
*/
resetAllFilters(options) {
return this.client.sendOperationRequest({ options }, resetAllFiltersOperationSpec);
}
/**
* Description for Disables the specified rule so it will not apply to a subscription in the future.
* @param name Rule name
* @param options The options parameters.
*/
disableRecommendationForSubscription(name, options) {
return this.client.sendOperationRequest({ name, options }, disableRecommendationForSubscriptionOperationSpec);
}
/**
* Description for Get past recommendations for an app, optionally specified by the time range.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param hostingEnvironmentName Name of the hosting environment.
* @param options The options parameters.
*/
_listHistoryForHostingEnvironment(resourceGroupName, hostingEnvironmentName, options) {
return this.client.sendOperationRequest({ resourceGroupName, hostingEnvironmentName, options }, listHistoryForHostingEnvironmentOperationSpec);
}
/**
* Description for Get all recommendations for a hosting environment.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param hostingEnvironmentName Name of the app.
* @param options The options parameters.
*/
_listRecommendedRulesForHostingEnvironment(resourceGroupName, hostingEnvironmentName, options) {
return this.client.sendOperationRequest({ resourceGroupName, hostingEnvironmentName, options }, listRecommendedRulesForHostingEnvironmentOperationSpec);
}
/**
* Description for Disable all recommendations for an app.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param environmentName Name of the app.
* @param hostingEnvironmentName
* @param options The options parameters.
*/
disableAllForHostingEnvironment(resourceGroupName, environmentName, hostingEnvironmentName, options) {
return this.client.sendOperationRequest({ resourceGroupName, environmentName, hostingEnvironmentName, options }, disableAllForHostingEnvironmentOperationSpec);
}
/**
* Description for Reset all recommendation opt-out settings for an app.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param environmentName Name of the app.
* @param hostingEnvironmentName
* @param options The options parameters.
*/
resetAllFiltersForHostingEnvironment(resourceGroupName, environmentName, hostingEnvironmentName, options) {
return this.client.sendOperationRequest({ resourceGroupName, environmentName, hostingEnvironmentName, options }, resetAllFiltersForHostingEnvironmentOperationSpec);
}
/**
* Description for Get a recommendation rule for an app.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param hostingEnvironmentName Name of the hosting environment.
* @param name Name of the recommendation.
* @param options The options parameters.
*/
getRuleDetailsByHostingEnvironment(resourceGroupName, hostingEnvironmentName, name, options) {
return this.client.sendOperationRequest({ resourceGroupName, hostingEnvironmentName, name, options }, getRuleDetailsByHostingEnvironmentOperationSpec);
}
/**
* Description for Disables the specific rule for a web site permanently.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param environmentName Site name
* @param name Rule name
* @param hostingEnvironmentName
* @param options The options parameters.
*/
disableRecommendationForHostingEnvironment(resourceGroupName, environmentName, name, hostingEnvironmentName, options) {
return this.client.sendOperationRequest({
resourceGroupName,
environmentName,
name,
hostingEnvironmentName,
options
}, disableRecommendationForHostingEnvironmentOperationSpec);
}
/**
* Description for Get past recommendations for an app, optionally specified by the time range.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Name of the app.
* @param options The options parameters.
*/
_listHistoryForWebApp(resourceGroupName, siteName, options) {
return this.client.sendOperationRequest({ resourceGroupName, siteName, options }, listHistoryForWebAppOperationSpec);
}
/**
* Description for Get all recommendations for an app.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Name of the app.
* @param options The options parameters.
*/
_listRecommendedRulesForWebApp(resourceGroupName, siteName, options) {
return this.client.sendOperationRequest({ resourceGroupName, siteName, options }, listRecommendedRulesForWebAppOperationSpec);
}
/**
* Description for Disable all recommendations for an app.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Name of the app.
* @param options The options parameters.
*/
disableAllForWebApp(resourceGroupName, siteName, options) {
return this.client.sendOperationRequest({ resourceGroupName, siteName, options }, disableAllForWebAppOperationSpec);
}
/**
* Description for Reset all recommendation opt-out settings for an app.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Name of the app.
* @param options The options parameters.
*/
resetAllFiltersForWebApp(resourceGroupName, siteName, options) {
return this.client.sendOperationRequest({ resourceGroupName, siteName, options }, resetAllFiltersForWebAppOperationSpec);
}
/**
* Description for Get a recommendation rule for an app.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Name of the app.
* @param name Name of the recommendation.
* @param options The options parameters.
*/
getRuleDetailsByWebApp(resourceGroupName, siteName, name, options) {
return this.client.sendOperationRequest({ resourceGroupName, siteName, name, options }, getRuleDetailsByWebAppOperationSpec);
}
/**
* Description for Disables the specific rule for a web site permanently.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site name
* @param name Rule name
* @param options The options parameters.
*/
disableRecommendationForSite(resourceGroupName, siteName, name, options) {
return this.client.sendOperationRequest({ resourceGroupName, siteName, name, options }, disableRecommendationForSiteOperationSpec);
}
/**
* ListNext
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
_listNext(nextLink, options) {
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
}
/**
* ListHistoryForHostingEnvironmentNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param hostingEnvironmentName Name of the hosting environment.
* @param nextLink The nextLink from the previous successful call to the
* ListHistoryForHostingEnvironment method.
* @param options The options parameters.
*/
_listHistoryForHostingEnvironmentNext(resourceGroupName, hostingEnvironmentName, nextLink, options) {
return this.client.sendOperationRequest({ resourceGroupName, hostingEnvironmentName, nextLink, options }, listHistoryForHostingEnvironmentNextOperationSpec);
}
/**
* ListRecommendedRulesForHostingEnvironmentNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param hostingEnvironmentName Name of the app.
* @param nextLink The nextLink from the previous successful call to the
* ListRecommendedRulesForHostingEnvironment method.
* @param options The options parameters.
*/
_listRecommendedRulesForHostingEnvironmentNext(resourceGroupName, hostingEnvironmentName, nextLink, options) {
return this.client.sendOperationRequest({ resourceGroupName, hostingEnvironmentName, nextLink, options }, listRecommendedRulesForHostingEnvironmentNextOperationSpec);
}
/**
* ListHistoryForWebAppNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Name of the app.
* @param nextLink The nextLink from the previous successful call to the ListHistoryForWebApp method.
* @param options The options parameters.
*/
_listHistoryForWebAppNext(resourceGroupName, siteName, nextLink, options) {
return this.client.sendOperationRequest({ resourceGroupName, siteName, nextLink, options }, listHistoryForWebAppNextOperationSpec);
}
/**
* ListRecommendedRulesForWebAppNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Name of the app.
* @param nextLink The nextLink from the previous successful call to the ListRecommendedRulesForWebApp
* method.
* @param options The options parameters.
*/
_listRecommendedRulesForWebAppNext(resourceGroupName, siteName, nextLink, options) {
return this.client.sendOperationRequest({ resourceGroupName, siteName, nextLink, options }, listRecommendedRulesForWebAppNextOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.RecommendationCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [
Parameters.apiVersion,
Parameters.filter,
Parameters.featured
],
urlParameters: [Parameters.$host, Parameters.subscriptionId],
headerParameters: [Parameters.accept],
serializer
};
const resetAllFiltersOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations/reset",
httpMethod: "POST",
responses: {
204: {},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host, Parameters.subscriptionId],
headerParameters: [Parameters.accept],
serializer
};
const disableRecommendationForSubscriptionOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations/{name}/disable",
httpMethod: "POST",
responses: {
200: {},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.name],
headerParameters: [Parameters.accept],
serializer
};
const listHistoryForHostingEnvironmentOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendationHistory",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.RecommendationCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [
Parameters.apiVersion,
Parameters.filter,
Parameters.expiredOnly
],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.hostingEnvironmentName
],
headerParameters: [Parameters.accept],
serializer
};
const listRecommendedRulesForHostingEnvironmentOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.RecommendationCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [
Parameters.apiVersion,
Parameters.filter,
Parameters.featured
],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.hostingEnvironmentName
],
headerParameters: [Parameters.accept],
serializer
};
const disableAllForHostingEnvironmentOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/disable",
httpMethod: "POST",
responses: {
204: {},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion, Parameters.environmentName],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.hostingEnvironmentName
],
headerParameters: [Parameters.accept],
serializer
};
const resetAllFiltersForHostingEnvironmentOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/reset",
httpMethod: "POST",
responses: {
204: {},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion, Parameters.environmentName],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.hostingEnvironmentName
],
headerParameters: [Parameters.accept],
serializer
};
const getRuleDetailsByHostingEnvironmentOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/{name}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.RecommendationRule
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [
Parameters.apiVersion,
Parameters.updateSeen,
Parameters.recommendationId
],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.hostingEnvironmentName
],
headerParameters: [Parameters.accept],
serializer
};
const disableRecommendationForHostingEnvironmentOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/{name}/disable",
httpMethod: "POST",
responses: {
200: {},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion, Parameters.environmentName],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.hostingEnvironmentName
],
headerParameters: [Parameters.accept],
serializer
};
const listHistoryForWebAppOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendationHistory",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.RecommendationCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [
Parameters.apiVersion,
Parameters.filter,
Parameters.expiredOnly
],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.siteName
],
headerParameters: [Parameters.accept],
serializer
};
const listRecommendedRulesForWebAppOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.RecommendationCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [
Parameters.apiVersion,
Parameters.filter,
Parameters.featured
],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.siteName
],
headerParameters: [Parameters.accept],
serializer
};
const disableAllForWebAppOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/disable",
httpMethod: "POST",
responses: {
204: {},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.siteName
],
headerParameters: [Parameters.accept],
serializer
};
const resetAllFiltersForWebAppOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/reset",
httpMethod: "POST",
responses: {
204: {},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.siteName
],
headerParameters: [Parameters.accept],
serializer
};
const getRuleDetailsByWebAppOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/{name}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.RecommendationRule
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [
Parameters.apiVersion,
Parameters.updateSeen,
Parameters.recommendationId
],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.siteName
],
headerParameters: [Parameters.accept],
serializer
};
const disableRecommendationForSiteOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/{name}/disable",
httpMethod: "POST",
responses: {
200: {},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.siteName
],
headerParameters: [Parameters.accept],
serializer
};
const listNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.RecommendationCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [
Parameters.apiVersion,
Parameters.filter,
Parameters.featured
],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.nextLink
],
headerParameters: [Parameters.accept],
serializer
};
const listHistoryForHostingEnvironmentNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.RecommendationCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [
Parameters.apiVersion,
Parameters.filter,
Parameters.expiredOnly
],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.nextLink,
Parameters.hostingEnvironmentName
],
headerParameters: [Parameters.accept],
serializer
};
const listRecommendedRulesForHostingEnvironmentNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.RecommendationCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [
Parameters.apiVersion,
Parameters.filter,
Parameters.featured
],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.nextLink,
Parameters.hostingEnvironmentName
],
headerParameters: [Parameters.accept],
serializer
};
const listHistoryForWebAppNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.RecommendationCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [
Parameters.apiVersion,
Parameters.filter,
Parameters.expiredOnly
],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.nextLink,
Parameters.siteName
],
headerParameters: [Parameters.accept],
serializer
};
const listRecommendedRulesForWebAppNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.RecommendationCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [
Parameters.apiVersion,
Parameters.filter,
Parameters.featured
],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.nextLink,
Parameters.siteName
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=recommendations.js.map
File diff suppressed because one or more lines are too long
@@ -0,0 +1,125 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { ResourceHealthMetadataOperations } from "../operationsInterfaces";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import { ResourceHealthMetadata, ResourceHealthMetadataListOptionalParams, ResourceHealthMetadataListByResourceGroupOptionalParams, ResourceHealthMetadataListBySiteOptionalParams, ResourceHealthMetadataListBySiteSlotOptionalParams, ResourceHealthMetadataGetBySiteOptionalParams, ResourceHealthMetadataGetBySiteResponse, ResourceHealthMetadataGetBySiteSlotOptionalParams, ResourceHealthMetadataGetBySiteSlotResponse } from "../models";
/** Class containing ResourceHealthMetadataOperations operations. */
export declare class ResourceHealthMetadataOperationsImpl implements ResourceHealthMetadataOperations {
private readonly client;
/**
* Initialize a new instance of the class ResourceHealthMetadataOperations class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient);
/**
* Description for List all ResourceHealthMetadata for all sites in the subscription.
* @param options The options parameters.
*/
list(options?: ResourceHealthMetadataListOptionalParams): PagedAsyncIterableIterator<ResourceHealthMetadata>;
private listPagingPage;
private listPagingAll;
/**
* Description for List all ResourceHealthMetadata for all sites in the resource group in the
* subscription.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param options The options parameters.
*/
listByResourceGroup(resourceGroupName: string, options?: ResourceHealthMetadataListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ResourceHealthMetadata>;
private listByResourceGroupPagingPage;
private listByResourceGroupPagingAll;
/**
* Description for Gets the category of ResourceHealthMetadata to use for the given site as a
* collection
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of web app.
* @param options The options parameters.
*/
listBySite(resourceGroupName: string, name: string, options?: ResourceHealthMetadataListBySiteOptionalParams): PagedAsyncIterableIterator<ResourceHealthMetadata>;
private listBySitePagingPage;
private listBySitePagingAll;
/**
* Description for Gets the category of ResourceHealthMetadata to use for the given site as a
* collection
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of web app.
* @param slot Name of web app slot. If not specified then will default to production slot.
* @param options The options parameters.
*/
listBySiteSlot(resourceGroupName: string, name: string, slot: string, options?: ResourceHealthMetadataListBySiteSlotOptionalParams): PagedAsyncIterableIterator<ResourceHealthMetadata>;
private listBySiteSlotPagingPage;
private listBySiteSlotPagingAll;
/**
* Description for List all ResourceHealthMetadata for all sites in the subscription.
* @param options The options parameters.
*/
private _list;
/**
* Description for List all ResourceHealthMetadata for all sites in the resource group in the
* subscription.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param options The options parameters.
*/
private _listByResourceGroup;
/**
* Description for Gets the category of ResourceHealthMetadata to use for the given site as a
* collection
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of web app.
* @param options The options parameters.
*/
private _listBySite;
/**
* Description for Gets the category of ResourceHealthMetadata to use for the given site
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of web app
* @param options The options parameters.
*/
getBySite(resourceGroupName: string, name: string, options?: ResourceHealthMetadataGetBySiteOptionalParams): Promise<ResourceHealthMetadataGetBySiteResponse>;
/**
* Description for Gets the category of ResourceHealthMetadata to use for the given site as a
* collection
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of web app.
* @param slot Name of web app slot. If not specified then will default to production slot.
* @param options The options parameters.
*/
private _listBySiteSlot;
/**
* Description for Gets the category of ResourceHealthMetadata to use for the given site
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of web app
* @param slot Name of web app slot. If not specified then will default to production slot.
* @param options The options parameters.
*/
getBySiteSlot(resourceGroupName: string, name: string, slot: string, options?: ResourceHealthMetadataGetBySiteSlotOptionalParams): Promise<ResourceHealthMetadataGetBySiteSlotResponse>;
/**
* ListNext
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
private _listNext;
/**
* ListByResourceGroupNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
* @param options The options parameters.
*/
private _listByResourceGroupNext;
/**
* ListBySiteNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of web app.
* @param nextLink The nextLink from the previous successful call to the ListBySite method.
* @param options The options parameters.
*/
private _listBySiteNext;
/**
* ListBySiteSlotNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of web app.
* @param slot Name of web app slot. If not specified then will default to production slot.
* @param nextLink The nextLink from the previous successful call to the ListBySiteSlot method.
* @param options The options parameters.
*/
private _listBySiteSlotNext;
}
//# sourceMappingURL=resourceHealthMetadataOperations.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"resourceHealthMetadataOperations.d.ts","sourceRoot":"","sources":["../../../src/operations/resourceHealthMetadataOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,gCAAgC,EAAE,MAAM,yBAAyB,CAAC;AAI3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,sBAAsB,EAEtB,wCAAwC,EAGxC,uDAAuD,EAGvD,8CAA8C,EAG9C,kDAAkD,EAElD,6CAA6C,EAC7C,uCAAuC,EACvC,iDAAiD,EACjD,2CAA2C,EAK5C,MAAM,WAAW,CAAC;AAGnB,oEAAoE;AACpE,qBAAa,oCACX,YAAW,gCAAgC;IAC3C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,wCAAwC,GACjD,0BAA0B,CAAC,sBAAsB,CAAC;YAkBtC,cAAc;YAsBd,aAAa;IAQ5B;;;;;OAKG;IACI,mBAAmB,CACxB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,uDAAuD,GAChE,0BAA0B,CAAC,sBAAsB,CAAC;YAsBtC,6BAA6B;YA2B7B,4BAA4B;IAY3C;;;;;;OAMG;IACI,UAAU,CACf,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,8CAA8C,GACvD,0BAA0B,CAAC,sBAAsB,CAAC;YAuBtC,oBAAoB;YA6BpB,mBAAmB;IAclC;;;;;;;OAOG;IACI,cAAc,CACnB,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,kDAAkD,GAC3D,0BAA0B,CAAC,sBAAsB,CAAC;YA6BtC,wBAAwB;YAoCxB,uBAAuB;IAgBtC;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;;OAKG;IACH,OAAO,CAAC,oBAAoB;IAU5B;;;;;;OAMG;IACH,OAAO,CAAC,WAAW;IAWnB;;;;;OAKG;IACH,SAAS,CACP,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,6CAA6C,GACtD,OAAO,CAAC,uCAAuC,CAAC;IAOnD;;;;;;;OAOG;IACH,OAAO,CAAC,eAAe;IAYvB;;;;;;OAMG;IACH,aAAa,CACX,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,iDAAiD,GAC1D,OAAO,CAAC,2CAA2C,CAAC;IAOvD;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAUjB;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB;IAWhC;;;;;;OAMG;IACH,OAAO,CAAC,eAAe;IAYvB;;;;;;;OAOG;IACH,OAAO,CAAC,mBAAmB;CAY5B"}
@@ -0,0 +1,573 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
import { setContinuationToken } from "../pagingHelper";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/// <reference lib="esnext.asynciterable" />
/** Class containing ResourceHealthMetadataOperations operations. */
export class ResourceHealthMetadataOperationsImpl {
/**
* Initialize a new instance of the class ResourceHealthMetadataOperations class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* Description for List all ResourceHealthMetadata for all sites in the subscription.
* @param options The options parameters.
*/
list(options) {
const iter = this.listPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listPagingPage(options, settings);
}
};
}
listPagingPage(options, settings) {
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._list(options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listNext(continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
listPagingAll(options) {
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* Description for List all ResourceHealthMetadata for all sites in the resource group in the
* subscription.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param options The options parameters.
*/
listByResourceGroup(resourceGroupName, options) {
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
}
};
}
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._listByResourceGroup(resourceGroupName, options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
listByResourceGroupPagingAll(resourceGroupName, options) {
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
var e_2, _a;
try {
for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_2_1) { e_2 = { error: e_2_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_2) throw e_2.error; }
}
});
}
/**
* Description for Gets the category of ResourceHealthMetadata to use for the given site as a
* collection
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of web app.
* @param options The options parameters.
*/
listBySite(resourceGroupName, name, options) {
const iter = this.listBySitePagingAll(resourceGroupName, name, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listBySitePagingPage(resourceGroupName, name, options, settings);
}
};
}
listBySitePagingPage(resourceGroupName, name, options, settings) {
return __asyncGenerator(this, arguments, function* listBySitePagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._listBySite(resourceGroupName, name, options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listBySiteNext(resourceGroupName, name, continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
listBySitePagingAll(resourceGroupName, name, options) {
return __asyncGenerator(this, arguments, function* listBySitePagingAll_1() {
var e_3, _a;
try {
for (var _b = __asyncValues(this.listBySitePagingPage(resourceGroupName, name, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_3_1) { e_3 = { error: e_3_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_3) throw e_3.error; }
}
});
}
/**
* Description for Gets the category of ResourceHealthMetadata to use for the given site as a
* collection
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of web app.
* @param slot Name of web app slot. If not specified then will default to production slot.
* @param options The options parameters.
*/
listBySiteSlot(resourceGroupName, name, slot, options) {
const iter = this.listBySiteSlotPagingAll(resourceGroupName, name, slot, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listBySiteSlotPagingPage(resourceGroupName, name, slot, options, settings);
}
};
}
listBySiteSlotPagingPage(resourceGroupName, name, slot, options, settings) {
return __asyncGenerator(this, arguments, function* listBySiteSlotPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._listBySiteSlot(resourceGroupName, name, slot, options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listBySiteSlotNext(resourceGroupName, name, slot, continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
listBySiteSlotPagingAll(resourceGroupName, name, slot, options) {
return __asyncGenerator(this, arguments, function* listBySiteSlotPagingAll_1() {
var e_4, _a;
try {
for (var _b = __asyncValues(this.listBySiteSlotPagingPage(resourceGroupName, name, slot, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_4_1) { e_4 = { error: e_4_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_4) throw e_4.error; }
}
});
}
/**
* Description for List all ResourceHealthMetadata for all sites in the subscription.
* @param options The options parameters.
*/
_list(options) {
return this.client.sendOperationRequest({ options }, listOperationSpec);
}
/**
* Description for List all ResourceHealthMetadata for all sites in the resource group in the
* subscription.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param options The options parameters.
*/
_listByResourceGroup(resourceGroupName, options) {
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
}
/**
* Description for Gets the category of ResourceHealthMetadata to use for the given site as a
* collection
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of web app.
* @param options The options parameters.
*/
_listBySite(resourceGroupName, name, options) {
return this.client.sendOperationRequest({ resourceGroupName, name, options }, listBySiteOperationSpec);
}
/**
* Description for Gets the category of ResourceHealthMetadata to use for the given site
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of web app
* @param options The options parameters.
*/
getBySite(resourceGroupName, name, options) {
return this.client.sendOperationRequest({ resourceGroupName, name, options }, getBySiteOperationSpec);
}
/**
* Description for Gets the category of ResourceHealthMetadata to use for the given site as a
* collection
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of web app.
* @param slot Name of web app slot. If not specified then will default to production slot.
* @param options The options parameters.
*/
_listBySiteSlot(resourceGroupName, name, slot, options) {
return this.client.sendOperationRequest({ resourceGroupName, name, slot, options }, listBySiteSlotOperationSpec);
}
/**
* Description for Gets the category of ResourceHealthMetadata to use for the given site
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of web app
* @param slot Name of web app slot. If not specified then will default to production slot.
* @param options The options parameters.
*/
getBySiteSlot(resourceGroupName, name, slot, options) {
return this.client.sendOperationRequest({ resourceGroupName, name, slot, options }, getBySiteSlotOperationSpec);
}
/**
* ListNext
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
_listNext(nextLink, options) {
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
}
/**
* ListByResourceGroupNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
* @param options The options parameters.
*/
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
}
/**
* ListBySiteNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of web app.
* @param nextLink The nextLink from the previous successful call to the ListBySite method.
* @param options The options parameters.
*/
_listBySiteNext(resourceGroupName, name, nextLink, options) {
return this.client.sendOperationRequest({ resourceGroupName, name, nextLink, options }, listBySiteNextOperationSpec);
}
/**
* ListBySiteSlotNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of web app.
* @param slot Name of web app slot. If not specified then will default to production slot.
* @param nextLink The nextLink from the previous successful call to the ListBySiteSlot method.
* @param options The options parameters.
*/
_listBySiteSlotNext(resourceGroupName, name, slot, nextLink, options) {
return this.client.sendOperationRequest({ resourceGroupName, name, slot, nextLink, options }, listBySiteSlotNextOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/resourceHealthMetadata",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ResourceHealthMetadataCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host, Parameters.subscriptionId],
headerParameters: [Parameters.accept],
serializer
};
const listByResourceGroupOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/resourceHealthMetadata",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ResourceHealthMetadataCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName
],
headerParameters: [Parameters.accept],
serializer
};
const listBySiteOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/resourceHealthMetadata",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ResourceHealthMetadataCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name
],
headerParameters: [Parameters.accept],
serializer
};
const getBySiteOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/resourceHealthMetadata/default",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ResourceHealthMetadata
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name
],
headerParameters: [Parameters.accept],
serializer
};
const listBySiteSlotOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/resourceHealthMetadata",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ResourceHealthMetadataCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.slot
],
headerParameters: [Parameters.accept],
serializer
};
const getBySiteSlotOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/resourceHealthMetadata/default",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ResourceHealthMetadata
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.slot
],
headerParameters: [Parameters.accept],
serializer
};
const listNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ResourceHealthMetadataCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.nextLink
],
headerParameters: [Parameters.accept],
serializer
};
const listByResourceGroupNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ResourceHealthMetadataCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.nextLink
],
headerParameters: [Parameters.accept],
serializer
};
const listBySiteNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ResourceHealthMetadataCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.nextLink
],
headerParameters: [Parameters.accept],
serializer
};
const listBySiteSlotNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ResourceHealthMetadataCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.nextLink,
Parameters.slot
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=resourceHealthMetadataOperations.js.map
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
@@ -0,0 +1,62 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { TopLevelDomains } from "../operationsInterfaces";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import { TopLevelDomain, TopLevelDomainsListOptionalParams, TldLegalAgreement, TopLevelDomainAgreementOption, TopLevelDomainsListAgreementsOptionalParams, TopLevelDomainsGetOptionalParams, TopLevelDomainsGetResponse } from "../models";
/** Class containing TopLevelDomains operations. */
export declare class TopLevelDomainsImpl implements TopLevelDomains {
private readonly client;
/**
* Initialize a new instance of the class TopLevelDomains class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient);
/**
* Description for Get all top-level domains supported for registration.
* @param options The options parameters.
*/
list(options?: TopLevelDomainsListOptionalParams): PagedAsyncIterableIterator<TopLevelDomain>;
private listPagingPage;
private listPagingAll;
/**
* Description for Gets all legal agreements that user needs to accept before purchasing a domain.
* @param name Name of the top-level domain.
* @param agreementOption Domain agreement options.
* @param options The options parameters.
*/
listAgreements(name: string, agreementOption: TopLevelDomainAgreementOption, options?: TopLevelDomainsListAgreementsOptionalParams): PagedAsyncIterableIterator<TldLegalAgreement>;
private listAgreementsPagingPage;
private listAgreementsPagingAll;
/**
* Description for Get all top-level domains supported for registration.
* @param options The options parameters.
*/
private _list;
/**
* Description for Get details of a top-level domain.
* @param name Name of the top-level domain.
* @param options The options parameters.
*/
get(name: string, options?: TopLevelDomainsGetOptionalParams): Promise<TopLevelDomainsGetResponse>;
/**
* Description for Gets all legal agreements that user needs to accept before purchasing a domain.
* @param name Name of the top-level domain.
* @param agreementOption Domain agreement options.
* @param options The options parameters.
*/
private _listAgreements;
/**
* ListNext
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
private _listNext;
/**
* ListAgreementsNext
* @param name Name of the top-level domain.
* @param agreementOption Domain agreement options.
* @param nextLink The nextLink from the previous successful call to the ListAgreements method.
* @param options The options parameters.
*/
private _listAgreementsNext;
}
//# sourceMappingURL=topLevelDomains.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"topLevelDomains.d.ts","sourceRoot":"","sources":["../../../src/operations/topLevelDomains.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAI1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,cAAc,EAEd,iCAAiC,EAEjC,iBAAiB,EACjB,6BAA6B,EAE7B,2CAA2C,EAE3C,gCAAgC,EAChC,0BAA0B,EAG3B,MAAM,WAAW,CAAC;AAGnB,mDAAmD;AACnD,qBAAa,mBAAoB,YAAW,eAAe;IACzD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,iCAAiC,GAC1C,0BAA0B,CAAC,cAAc,CAAC;YAkB9B,cAAc;YAsBd,aAAa;IAQ5B;;;;;OAKG;IACI,cAAc,CACnB,IAAI,EAAE,MAAM,EACZ,eAAe,EAAE,6BAA6B,EAC9C,OAAO,CAAC,EAAE,2CAA2C,GACpD,0BAA0B,CAAC,iBAAiB,CAAC;YAuBjC,wBAAwB;YA6BxB,uBAAuB;IActC;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,GAAG,CACD,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC;IAOtC;;;;;OAKG;IACH,OAAO,CAAC,eAAe;IAWvB;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAUjB;;;;;;OAMG;IACH,OAAO,CAAC,mBAAmB;CAW5B"}
@@ -0,0 +1,280 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
import { setContinuationToken } from "../pagingHelper";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/// <reference lib="esnext.asynciterable" />
/** Class containing TopLevelDomains operations. */
export class TopLevelDomainsImpl {
/**
* Initialize a new instance of the class TopLevelDomains class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* Description for Get all top-level domains supported for registration.
* @param options The options parameters.
*/
list(options) {
const iter = this.listPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listPagingPage(options, settings);
}
};
}
listPagingPage(options, settings) {
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._list(options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listNext(continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
listPagingAll(options) {
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* Description for Gets all legal agreements that user needs to accept before purchasing a domain.
* @param name Name of the top-level domain.
* @param agreementOption Domain agreement options.
* @param options The options parameters.
*/
listAgreements(name, agreementOption, options) {
const iter = this.listAgreementsPagingAll(name, agreementOption, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listAgreementsPagingPage(name, agreementOption, options, settings);
}
};
}
listAgreementsPagingPage(name, agreementOption, options, settings) {
return __asyncGenerator(this, arguments, function* listAgreementsPagingPage_1() {
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._listAgreements(name, agreementOption, options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listAgreementsNext(name, agreementOption, continuationToken, options));
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
});
}
listAgreementsPagingAll(name, agreementOption, options) {
return __asyncGenerator(this, arguments, function* listAgreementsPagingAll_1() {
var e_2, _a;
try {
for (var _b = __asyncValues(this.listAgreementsPagingPage(name, agreementOption, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_2_1) { e_2 = { error: e_2_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_2) throw e_2.error; }
}
});
}
/**
* Description for Get all top-level domains supported for registration.
* @param options The options parameters.
*/
_list(options) {
return this.client.sendOperationRequest({ options }, listOperationSpec);
}
/**
* Description for Get details of a top-level domain.
* @param name Name of the top-level domain.
* @param options The options parameters.
*/
get(name, options) {
return this.client.sendOperationRequest({ name, options }, getOperationSpec);
}
/**
* Description for Gets all legal agreements that user needs to accept before purchasing a domain.
* @param name Name of the top-level domain.
* @param agreementOption Domain agreement options.
* @param options The options parameters.
*/
_listAgreements(name, agreementOption, options) {
return this.client.sendOperationRequest({ name, agreementOption, options }, listAgreementsOperationSpec);
}
/**
* ListNext
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
_listNext(nextLink, options) {
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
}
/**
* ListAgreementsNext
* @param name Name of the top-level domain.
* @param agreementOption Domain agreement options.
* @param nextLink The nextLink from the previous successful call to the ListAgreements method.
* @param options The options parameters.
*/
_listAgreementsNext(name, agreementOption, nextLink, options) {
return this.client.sendOperationRequest({ name, agreementOption, nextLink, options }, listAgreementsNextOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.TopLevelDomainCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host, Parameters.subscriptionId],
headerParameters: [Parameters.accept],
serializer
};
const getOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.TopLevelDomain
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.name],
headerParameters: [Parameters.accept],
serializer
};
const listAgreementsOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name}/listAgreements",
httpMethod: "POST",
responses: {
200: {
bodyMapper: Mappers.TldLegalAgreementCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
requestBody: Parameters.agreementOption,
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.name],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const listNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.TopLevelDomainCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.nextLink
],
headerParameters: [Parameters.accept],
serializer
};
const listAgreementsNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.TldLegalAgreementCollection
},
default: {
bodyMapper: Mappers.DefaultErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.name,
Parameters.nextLink
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
//# sourceMappingURL=topLevelDomains.js.map
File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More