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
+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";
+34
View File
@@ -0,0 +1,34 @@
/*
* 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 { LongRunningOperation, LroResponse } from "@azure/core-lro";
export class LroImpl<T> implements LongRunningOperation<T> {
constructor(
private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,
private args: Record<string, unknown>,
private spec: {
readonly requestBody?: unknown;
readonly path?: string;
readonly httpMethod: string;
} & Record<string, any>,
public requestPath: string = spec.path!,
public requestMethod: string = spec.httpMethod
) {}
public async sendInitialRequest(): Promise<LroResponse<T>> {
return this.sendOperationFn(this.args, this.spec);
}
public async sendPollRequest(path: string): Promise<LroResponse<T>> {
const { requestBody, ...restSpec } = this.spec;
return this.sendOperationFn(this.args, {
...restSpec,
path,
httpMethod: "GET"
});
}
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,260 @@
/*
* 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
import { setContinuationToken } from "../pagingHelper";
import { CertificateOrdersDiagnostics } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import {
DetectorResponse,
CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponseNextOptionalParams,
CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponseOptionalParams,
CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponseResponse,
CertificateOrdersDiagnosticsGetAppServiceCertificateOrderDetectorResponseOptionalParams,
CertificateOrdersDiagnosticsGetAppServiceCertificateOrderDetectorResponseResponse,
CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponseNextResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Class containing CertificateOrdersDiagnostics operations. */
export class CertificateOrdersDiagnosticsImpl
implements CertificateOrdersDiagnostics {
private readonly client: WebSiteManagementClient;
/**
* Initialize a new instance of the class CertificateOrdersDiagnostics class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient) {
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.
*/
public listAppServiceCertificateOrderDetectorResponse(
resourceGroupName: string,
certificateOrderName: string,
options?: CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponseOptionalParams
): PagedAsyncIterableIterator<DetectorResponse> {
const iter = this.listAppServiceCertificateOrderDetectorResponsePagingAll(
resourceGroupName,
certificateOrderName,
options
);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listAppServiceCertificateOrderDetectorResponsePagingPage(
resourceGroupName,
certificateOrderName,
options,
settings
);
}
};
}
private async *listAppServiceCertificateOrderDetectorResponsePagingPage(
resourceGroupName: string,
certificateOrderName: string,
options?: CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponseOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<DetectorResponse[]> {
let result: CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponseResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._listAppServiceCertificateOrderDetectorResponse(
resourceGroupName,
certificateOrderName,
options
);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listAppServiceCertificateOrderDetectorResponseNext(
resourceGroupName,
certificateOrderName,
continuationToken,
options
);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *listAppServiceCertificateOrderDetectorResponsePagingAll(
resourceGroupName: string,
certificateOrderName: string,
options?: CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponseOptionalParams
): AsyncIterableIterator<DetectorResponse> {
for await (const page of this.listAppServiceCertificateOrderDetectorResponsePagingPage(
resourceGroupName,
certificateOrderName,
options
)) {
yield* page;
}
}
/**
* 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(
resourceGroupName: string,
certificateOrderName: string,
options?: CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponseOptionalParams
): Promise<
CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponseResponse
> {
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: string,
certificateOrderName: string,
detectorName: string,
options?: CertificateOrdersDiagnosticsGetAppServiceCertificateOrderDetectorResponseOptionalParams
): Promise<
CertificateOrdersDiagnosticsGetAppServiceCertificateOrderDetectorResponseResponse
> {
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.
*/
private _listAppServiceCertificateOrderDetectorResponseNext(
resourceGroupName: string,
certificateOrderName: string,
nextLink: string,
options?: CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponseNextOptionalParams
): Promise<
CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponseNextResponse
> {
return this.client.sendOperationRequest(
{ resourceGroupName, certificateOrderName, nextLink, options },
listAppServiceCertificateOrderDetectorResponseNextOperationSpec
);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listAppServiceCertificateOrderDetectorResponseOperationSpec: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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
};
@@ -0,0 +1,156 @@
/*
* 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
import { setContinuationToken } from "../pagingHelper";
import { CertificateRegistrationProvider } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import {
CsmOperationDescription,
CertificateRegistrationProviderListOperationsNextOptionalParams,
CertificateRegistrationProviderListOperationsOptionalParams,
CertificateRegistrationProviderListOperationsResponse,
CertificateRegistrationProviderListOperationsNextResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Class containing CertificateRegistrationProvider operations. */
export class CertificateRegistrationProviderImpl
implements CertificateRegistrationProvider {
private readonly client: WebSiteManagementClient;
/**
* Initialize a new instance of the class CertificateRegistrationProvider class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient) {
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.
*/
public listOperations(
options?: CertificateRegistrationProviderListOperationsOptionalParams
): PagedAsyncIterableIterator<CsmOperationDescription> {
const iter = this.listOperationsPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listOperationsPagingPage(options, settings);
}
};
}
private async *listOperationsPagingPage(
options?: CertificateRegistrationProviderListOperationsOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<CsmOperationDescription[]> {
let result: CertificateRegistrationProviderListOperationsResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._listOperations(options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listOperationsNext(continuationToken, options);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *listOperationsPagingAll(
options?: CertificateRegistrationProviderListOperationsOptionalParams
): AsyncIterableIterator<CsmOperationDescription> {
for await (const page of this.listOperationsPagingPage(options)) {
yield* page;
}
}
/**
* 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(
options?: CertificateRegistrationProviderListOperationsOptionalParams
): Promise<CertificateRegistrationProviderListOperationsResponse> {
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.
*/
private _listOperationsNext(
nextLink: string,
options?: CertificateRegistrationProviderListOperationsNextOptionalParams
): Promise<CertificateRegistrationProviderListOperationsNextResponse> {
return this.client.sendOperationRequest(
{ nextLink, options },
listOperationsNextOperationSpec
);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationsOperationSpec: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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
};
+472
View File
@@ -0,0 +1,472 @@
/*
* 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
import { setContinuationToken } from "../pagingHelper";
import { Certificates } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import {
Certificate,
CertificatesListNextOptionalParams,
CertificatesListOptionalParams,
CertificatesListResponse,
CertificatesListByResourceGroupNextOptionalParams,
CertificatesListByResourceGroupOptionalParams,
CertificatesListByResourceGroupResponse,
CertificatesGetOptionalParams,
CertificatesGetResponse,
CertificatesCreateOrUpdateOptionalParams,
CertificatesCreateOrUpdateResponse,
CertificatesDeleteOptionalParams,
CertificatePatchResource,
CertificatesUpdateOptionalParams,
CertificatesUpdateResponse,
CertificatesListNextResponse,
CertificatesListByResourceGroupNextResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Class containing Certificates operations. */
export class CertificatesImpl implements Certificates {
private readonly client: WebSiteManagementClient;
/**
* Initialize a new instance of the class Certificates class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient) {
this.client = client;
}
/**
* Description for Get all certificates for a subscription.
* @param options The options parameters.
*/
public list(
options?: CertificatesListOptionalParams
): PagedAsyncIterableIterator<Certificate> {
const iter = this.listPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listPagingPage(options, settings);
}
};
}
private async *listPagingPage(
options?: CertificatesListOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<Certificate[]> {
let result: CertificatesListResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._list(options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listNext(continuationToken, options);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *listPagingAll(
options?: CertificatesListOptionalParams
): AsyncIterableIterator<Certificate> {
for await (const page of this.listPagingPage(options)) {
yield* page;
}
}
/**
* 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.
*/
public listByResourceGroup(
resourceGroupName: string,
options?: CertificatesListByResourceGroupOptionalParams
): PagedAsyncIterableIterator<Certificate> {
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listByResourceGroupPagingPage(
resourceGroupName,
options,
settings
);
}
};
}
private async *listByResourceGroupPagingPage(
resourceGroupName: string,
options?: CertificatesListByResourceGroupOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<Certificate[]> {
let result: CertificatesListByResourceGroupResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._listByResourceGroup(resourceGroupName, options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listByResourceGroupNext(
resourceGroupName,
continuationToken,
options
);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *listByResourceGroupPagingAll(
resourceGroupName: string,
options?: CertificatesListByResourceGroupOptionalParams
): AsyncIterableIterator<Certificate> {
for await (const page of this.listByResourceGroupPagingPage(
resourceGroupName,
options
)) {
yield* page;
}
}
/**
* Description for Get all certificates for a subscription.
* @param options The options parameters.
*/
private _list(
options?: CertificatesListOptionalParams
): Promise<CertificatesListResponse> {
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.
*/
private _listByResourceGroup(
resourceGroupName: string,
options?: CertificatesListByResourceGroupOptionalParams
): Promise<CertificatesListByResourceGroupResponse> {
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: string,
name: string,
options?: CertificatesGetOptionalParams
): Promise<CertificatesGetResponse> {
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: string,
name: string,
certificateEnvelope: Certificate,
options?: CertificatesCreateOrUpdateOptionalParams
): Promise<CertificatesCreateOrUpdateResponse> {
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: string,
name: string,
options?: CertificatesDeleteOptionalParams
): Promise<void> {
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: string,
name: string,
certificateEnvelope: CertificatePatchResource,
options?: CertificatesUpdateOptionalParams
): Promise<CertificatesUpdateResponse> {
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.
*/
private _listNext(
nextLink: string,
options?: CertificatesListNextOptionalParams
): Promise<CertificatesListNextResponse> {
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.
*/
private _listByResourceGroupNext(
resourceGroupName: string,
nextLink: string,
options?: CertificatesListByResourceGroupNextOptionalParams
): Promise<CertificatesListByResourceGroupNextResponse> {
return this.client.sendOperationRequest(
{ resourceGroupName, nextLink, options },
listByResourceGroupNextOperationSpec
);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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
};
+613
View File
@@ -0,0 +1,613 @@
/*
* 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
import { setContinuationToken } from "../pagingHelper";
import { ContainerApps } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
import { LroImpl } from "../lroImpl";
import {
ContainerApp,
ContainerAppsListBySubscriptionNextOptionalParams,
ContainerAppsListBySubscriptionOptionalParams,
ContainerAppsListBySubscriptionResponse,
ContainerAppsListByResourceGroupNextOptionalParams,
ContainerAppsListByResourceGroupOptionalParams,
ContainerAppsListByResourceGroupResponse,
ContainerAppsGetOptionalParams,
ContainerAppsGetResponse,
ContainerAppsCreateOrUpdateOptionalParams,
ContainerAppsCreateOrUpdateResponse,
ContainerAppsDeleteOptionalParams,
ContainerAppsListSecretsOptionalParams,
ContainerAppsListSecretsResponse,
ContainerAppsListBySubscriptionNextResponse,
ContainerAppsListByResourceGroupNextResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Class containing ContainerApps operations. */
export class ContainerAppsImpl implements ContainerApps {
private readonly client: WebSiteManagementClient;
/**
* Initialize a new instance of the class ContainerApps class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient) {
this.client = client;
}
/**
* Get the Container Apps in a given subscription.
* @param options The options parameters.
*/
public listBySubscription(
options?: ContainerAppsListBySubscriptionOptionalParams
): PagedAsyncIterableIterator<ContainerApp> {
const iter = this.listBySubscriptionPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listBySubscriptionPagingPage(options, settings);
}
};
}
private async *listBySubscriptionPagingPage(
options?: ContainerAppsListBySubscriptionOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<ContainerApp[]> {
let result: ContainerAppsListBySubscriptionResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._listBySubscription(options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listBySubscriptionNext(continuationToken, options);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *listBySubscriptionPagingAll(
options?: ContainerAppsListBySubscriptionOptionalParams
): AsyncIterableIterator<ContainerApp> {
for await (const page of this.listBySubscriptionPagingPage(options)) {
yield* page;
}
}
/**
* 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.
*/
public listByResourceGroup(
resourceGroupName: string,
options?: ContainerAppsListByResourceGroupOptionalParams
): PagedAsyncIterableIterator<ContainerApp> {
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listByResourceGroupPagingPage(
resourceGroupName,
options,
settings
);
}
};
}
private async *listByResourceGroupPagingPage(
resourceGroupName: string,
options?: ContainerAppsListByResourceGroupOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<ContainerApp[]> {
let result: ContainerAppsListByResourceGroupResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._listByResourceGroup(resourceGroupName, options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listByResourceGroupNext(
resourceGroupName,
continuationToken,
options
);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *listByResourceGroupPagingAll(
resourceGroupName: string,
options?: ContainerAppsListByResourceGroupOptionalParams
): AsyncIterableIterator<ContainerApp> {
for await (const page of this.listByResourceGroupPagingPage(
resourceGroupName,
options
)) {
yield* page;
}
}
/**
* Get the Container Apps in a given subscription.
* @param options The options parameters.
*/
private _listBySubscription(
options?: ContainerAppsListBySubscriptionOptionalParams
): Promise<ContainerAppsListBySubscriptionResponse> {
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.
*/
private _listByResourceGroup(
resourceGroupName: string,
options?: ContainerAppsListByResourceGroupOptionalParams
): Promise<ContainerAppsListByResourceGroupResponse> {
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: string,
name: string,
options?: ContainerAppsGetOptionalParams
): Promise<ContainerAppsGetResponse> {
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.
*/
async beginCreateOrUpdate(
resourceGroupName: string,
name: string,
containerAppEnvelope: ContainerApp,
options?: ContainerAppsCreateOrUpdateOptionalParams
): Promise<
PollerLike<
PollOperationState<ContainerAppsCreateOrUpdateResponse>,
ContainerAppsCreateOrUpdateResponse
>
> {
const directSendOperation = async (
args: coreClient.OperationArguments,
spec: coreClient.OperationSpec
): Promise<ContainerAppsCreateOrUpdateResponse> => {
return this.client.sendOperationRequest(args, spec);
};
const sendOperation = async (
args: coreClient.OperationArguments,
spec: coreClient.OperationSpec
) => {
let currentRawResponse:
| coreClient.FullOperationResponse
| undefined = undefined;
const providedCallback = args.options?.onResponse;
const callback: coreClient.RawResponseCallback = (
rawResponse: coreClient.FullOperationResponse,
flatResponse: unknown
) => {
currentRawResponse = rawResponse;
providedCallback?.(rawResponse, flatResponse);
};
const updatedArgs = {
...args,
options: {
...args.options,
onResponse: callback
}
};
const flatResponse = await 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?.resumeFrom,
intervalInMs: options?.updateIntervalInMs
});
await 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.
*/
async beginCreateOrUpdateAndWait(
resourceGroupName: string,
name: string,
containerAppEnvelope: ContainerApp,
options?: ContainerAppsCreateOrUpdateOptionalParams
): Promise<ContainerAppsCreateOrUpdateResponse> {
const poller = await 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.
*/
async beginDelete(
resourceGroupName: string,
name: string,
options?: ContainerAppsDeleteOptionalParams
): Promise<PollerLike<PollOperationState<void>, void>> {
const directSendOperation = async (
args: coreClient.OperationArguments,
spec: coreClient.OperationSpec
): Promise<void> => {
return this.client.sendOperationRequest(args, spec);
};
const sendOperation = async (
args: coreClient.OperationArguments,
spec: coreClient.OperationSpec
) => {
let currentRawResponse:
| coreClient.FullOperationResponse
| undefined = undefined;
const providedCallback = args.options?.onResponse;
const callback: coreClient.RawResponseCallback = (
rawResponse: coreClient.FullOperationResponse,
flatResponse: unknown
) => {
currentRawResponse = rawResponse;
providedCallback?.(rawResponse, flatResponse);
};
const updatedArgs = {
...args,
options: {
...args.options,
onResponse: callback
}
};
const flatResponse = await 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?.resumeFrom,
intervalInMs: options?.updateIntervalInMs
});
await 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.
*/
async beginDeleteAndWait(
resourceGroupName: string,
name: string,
options?: ContainerAppsDeleteOptionalParams
): Promise<void> {
const poller = await 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: string,
options?: ContainerAppsListSecretsOptionalParams
): Promise<ContainerAppsListSecretsResponse> {
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.
*/
private _listBySubscriptionNext(
nextLink: string,
options?: ContainerAppsListBySubscriptionNextOptionalParams
): Promise<ContainerAppsListBySubscriptionNextResponse> {
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.
*/
private _listByResourceGroupNext(
resourceGroupName: string,
nextLink: string,
options?: ContainerAppsListByResourceGroupNextOptionalParams
): Promise<ContainerAppsListByResourceGroupNextResponse> {
return this.client.sendOperationRequest(
{ resourceGroupName, nextLink, options },
listByResourceGroupNextOperationSpec
);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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
};
@@ -0,0 +1,370 @@
/*
* 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
import { setContinuationToken } from "../pagingHelper";
import { ContainerAppsRevisions } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import {
Revision,
ContainerAppsRevisionsListRevisionsNextOptionalParams,
ContainerAppsRevisionsListRevisionsOptionalParams,
ContainerAppsRevisionsListRevisionsResponse,
ContainerAppsRevisionsGetRevisionOptionalParams,
ContainerAppsRevisionsGetRevisionResponse,
ContainerAppsRevisionsActivateRevisionOptionalParams,
ContainerAppsRevisionsDeactivateRevisionOptionalParams,
ContainerAppsRevisionsRestartRevisionOptionalParams,
ContainerAppsRevisionsListRevisionsNextResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Class containing ContainerAppsRevisions operations. */
export class ContainerAppsRevisionsImpl implements ContainerAppsRevisions {
private readonly client: WebSiteManagementClient;
/**
* Initialize a new instance of the class ContainerAppsRevisions class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient) {
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.
*/
public listRevisions(
resourceGroupName: string,
containerAppName: string,
options?: ContainerAppsRevisionsListRevisionsOptionalParams
): PagedAsyncIterableIterator<Revision> {
const iter = this.listRevisionsPagingAll(
resourceGroupName,
containerAppName,
options
);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listRevisionsPagingPage(
resourceGroupName,
containerAppName,
options,
settings
);
}
};
}
private async *listRevisionsPagingPage(
resourceGroupName: string,
containerAppName: string,
options?: ContainerAppsRevisionsListRevisionsOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<Revision[]> {
let result: ContainerAppsRevisionsListRevisionsResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._listRevisions(
resourceGroupName,
containerAppName,
options
);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listRevisionsNext(
resourceGroupName,
containerAppName,
continuationToken,
options
);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *listRevisionsPagingAll(
resourceGroupName: string,
containerAppName: string,
options?: ContainerAppsRevisionsListRevisionsOptionalParams
): AsyncIterableIterator<Revision> {
for await (const page of this.listRevisionsPagingPage(
resourceGroupName,
containerAppName,
options
)) {
yield* page;
}
}
/**
* 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(
resourceGroupName: string,
containerAppName: string,
options?: ContainerAppsRevisionsListRevisionsOptionalParams
): Promise<ContainerAppsRevisionsListRevisionsResponse> {
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: string,
containerAppName: string,
name: string,
options?: ContainerAppsRevisionsGetRevisionOptionalParams
): Promise<ContainerAppsRevisionsGetRevisionResponse> {
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: string,
containerAppName: string,
name: string,
options?: ContainerAppsRevisionsActivateRevisionOptionalParams
): Promise<void> {
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: string,
containerAppName: string,
name: string,
options?: ContainerAppsRevisionsDeactivateRevisionOptionalParams
): Promise<void> {
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: string,
containerAppName: string,
name: string,
options?: ContainerAppsRevisionsRestartRevisionOptionalParams
): Promise<void> {
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.
*/
private _listRevisionsNext(
resourceGroupName: string,
containerAppName: string,
nextLink: string,
options?: ContainerAppsRevisionsListRevisionsNextOptionalParams
): Promise<ContainerAppsRevisionsListRevisionsNextResponse> {
return this.client.sendOperationRequest(
{ resourceGroupName, containerAppName, nextLink, options },
listRevisionsNextOperationSpec
);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listRevisionsOperationSpec: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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
};
+335
View File
@@ -0,0 +1,335 @@
/*
* 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
import { setContinuationToken } from "../pagingHelper";
import { DeletedWebApps } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import {
DeletedSite,
DeletedWebAppsListNextOptionalParams,
DeletedWebAppsListOptionalParams,
DeletedWebAppsListResponse,
DeletedWebAppsListByLocationNextOptionalParams,
DeletedWebAppsListByLocationOptionalParams,
DeletedWebAppsListByLocationResponse,
DeletedWebAppsGetDeletedWebAppByLocationOptionalParams,
DeletedWebAppsGetDeletedWebAppByLocationResponse,
DeletedWebAppsListNextResponse,
DeletedWebAppsListByLocationNextResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Class containing DeletedWebApps operations. */
export class DeletedWebAppsImpl implements DeletedWebApps {
private readonly client: WebSiteManagementClient;
/**
* Initialize a new instance of the class DeletedWebApps class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient) {
this.client = client;
}
/**
* Description for Get all deleted apps for a subscription.
* @param options The options parameters.
*/
public list(
options?: DeletedWebAppsListOptionalParams
): PagedAsyncIterableIterator<DeletedSite> {
const iter = this.listPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listPagingPage(options, settings);
}
};
}
private async *listPagingPage(
options?: DeletedWebAppsListOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<DeletedSite[]> {
let result: DeletedWebAppsListResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._list(options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listNext(continuationToken, options);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *listPagingAll(
options?: DeletedWebAppsListOptionalParams
): AsyncIterableIterator<DeletedSite> {
for await (const page of this.listPagingPage(options)) {
yield* page;
}
}
/**
* Description for Get all deleted apps for a subscription at location
* @param location
* @param options The options parameters.
*/
public listByLocation(
location: string,
options?: DeletedWebAppsListByLocationOptionalParams
): PagedAsyncIterableIterator<DeletedSite> {
const iter = this.listByLocationPagingAll(location, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listByLocationPagingPage(location, options, settings);
}
};
}
private async *listByLocationPagingPage(
location: string,
options?: DeletedWebAppsListByLocationOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<DeletedSite[]> {
let result: DeletedWebAppsListByLocationResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._listByLocation(location, options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listByLocationNext(
location,
continuationToken,
options
);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *listByLocationPagingAll(
location: string,
options?: DeletedWebAppsListByLocationOptionalParams
): AsyncIterableIterator<DeletedSite> {
for await (const page of this.listByLocationPagingPage(location, options)) {
yield* page;
}
}
/**
* Description for Get all deleted apps for a subscription.
* @param options The options parameters.
*/
private _list(
options?: DeletedWebAppsListOptionalParams
): Promise<DeletedWebAppsListResponse> {
return this.client.sendOperationRequest({ options }, listOperationSpec);
}
/**
* Description for Get all deleted apps for a subscription at location
* @param location
* @param options The options parameters.
*/
private _listByLocation(
location: string,
options?: DeletedWebAppsListByLocationOptionalParams
): Promise<DeletedWebAppsListByLocationResponse> {
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: string,
deletedSiteId: string,
options?: DeletedWebAppsGetDeletedWebAppByLocationOptionalParams
): Promise<DeletedWebAppsGetDeletedWebAppByLocationResponse> {
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.
*/
private _listNext(
nextLink: string,
options?: DeletedWebAppsListNextOptionalParams
): Promise<DeletedWebAppsListNextResponse> {
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.
*/
private _listByLocationNext(
location: string,
nextLink: string,
options?: DeletedWebAppsListByLocationNextOptionalParams
): Promise<DeletedWebAppsListByLocationNextResponse> {
return this.client.sendOperationRequest(
{ location, nextLink, options },
listByLocationNextOperationSpec
);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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
};
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,156 @@
/*
* 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
import { setContinuationToken } from "../pagingHelper";
import { DomainRegistrationProvider } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import {
CsmOperationDescription,
DomainRegistrationProviderListOperationsNextOptionalParams,
DomainRegistrationProviderListOperationsOptionalParams,
DomainRegistrationProviderListOperationsResponse,
DomainRegistrationProviderListOperationsNextResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Class containing DomainRegistrationProvider operations. */
export class DomainRegistrationProviderImpl
implements DomainRegistrationProvider {
private readonly client: WebSiteManagementClient;
/**
* Initialize a new instance of the class DomainRegistrationProvider class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient) {
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.
*/
public listOperations(
options?: DomainRegistrationProviderListOperationsOptionalParams
): PagedAsyncIterableIterator<CsmOperationDescription> {
const iter = this.listOperationsPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listOperationsPagingPage(options, settings);
}
};
}
private async *listOperationsPagingPage(
options?: DomainRegistrationProviderListOperationsOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<CsmOperationDescription[]> {
let result: DomainRegistrationProviderListOperationsResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._listOperations(options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listOperationsNext(continuationToken, options);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *listOperationsPagingAll(
options?: DomainRegistrationProviderListOperationsOptionalParams
): AsyncIterableIterator<CsmOperationDescription> {
for await (const page of this.listOperationsPagingPage(options)) {
yield* page;
}
}
/**
* 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(
options?: DomainRegistrationProviderListOperationsOptionalParams
): Promise<DomainRegistrationProviderListOperationsResponse> {
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.
*/
private _listOperationsNext(
nextLink: string,
options?: DomainRegistrationProviderListOperationsNextOptionalParams
): Promise<DomainRegistrationProviderListOperationsNextResponse> {
return this.client.sendOperationRequest(
{ nextLink, options },
listOperationsNextOperationSpec
);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationsOperationSpec: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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
};
File diff suppressed because it is too large Load Diff
+150
View File
@@ -0,0 +1,150 @@
/*
* 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 { Global } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import {
GlobalGetDeletedWebAppOptionalParams,
GlobalGetDeletedWebAppResponse,
GlobalGetDeletedWebAppSnapshotsOptionalParams,
GlobalGetDeletedWebAppSnapshotsResponse,
GlobalGetSubscriptionOperationWithAsyncResponseOptionalParams
} from "../models";
/** Class containing Global operations. */
export class GlobalImpl implements Global {
private readonly client: WebSiteManagementClient;
/**
* Initialize a new instance of the class Global class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient) {
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: string,
options?: GlobalGetDeletedWebAppOptionalParams
): Promise<GlobalGetDeletedWebAppResponse> {
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: string,
options?: GlobalGetDeletedWebAppSnapshotsOptionalParams
): Promise<GlobalGetDeletedWebAppSnapshotsResponse> {
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: string,
operationId: string,
options?: GlobalGetSubscriptionOperationWithAsyncResponseOptionalParams
): Promise<void> {
return this.client.sendOperationRequest(
{ location, operationId, options },
getSubscriptionOperationWithAsyncResponseOperationSpec
);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const getDeletedWebAppOperationSpec: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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
};
+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";
+626
View File
@@ -0,0 +1,626 @@
/*
* 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
import { setContinuationToken } from "../pagingHelper";
import { KubeEnvironments } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
import { LroImpl } from "../lroImpl";
import {
KubeEnvironment,
KubeEnvironmentsListBySubscriptionNextOptionalParams,
KubeEnvironmentsListBySubscriptionOptionalParams,
KubeEnvironmentsListBySubscriptionResponse,
KubeEnvironmentsListByResourceGroupNextOptionalParams,
KubeEnvironmentsListByResourceGroupOptionalParams,
KubeEnvironmentsListByResourceGroupResponse,
KubeEnvironmentsGetOptionalParams,
KubeEnvironmentsGetResponse,
KubeEnvironmentsCreateOrUpdateOptionalParams,
KubeEnvironmentsCreateOrUpdateResponse,
KubeEnvironmentsDeleteOptionalParams,
KubeEnvironmentPatchResource,
KubeEnvironmentsUpdateOptionalParams,
KubeEnvironmentsUpdateResponse,
KubeEnvironmentsListBySubscriptionNextResponse,
KubeEnvironmentsListByResourceGroupNextResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Class containing KubeEnvironments operations. */
export class KubeEnvironmentsImpl implements KubeEnvironments {
private readonly client: WebSiteManagementClient;
/**
* Initialize a new instance of the class KubeEnvironments class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient) {
this.client = client;
}
/**
* Description for Get all Kubernetes Environments for a subscription.
* @param options The options parameters.
*/
public listBySubscription(
options?: KubeEnvironmentsListBySubscriptionOptionalParams
): PagedAsyncIterableIterator<KubeEnvironment> {
const iter = this.listBySubscriptionPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listBySubscriptionPagingPage(options, settings);
}
};
}
private async *listBySubscriptionPagingPage(
options?: KubeEnvironmentsListBySubscriptionOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<KubeEnvironment[]> {
let result: KubeEnvironmentsListBySubscriptionResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._listBySubscription(options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listBySubscriptionNext(continuationToken, options);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *listBySubscriptionPagingAll(
options?: KubeEnvironmentsListBySubscriptionOptionalParams
): AsyncIterableIterator<KubeEnvironment> {
for await (const page of this.listBySubscriptionPagingPage(options)) {
yield* page;
}
}
/**
* 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.
*/
public listByResourceGroup(
resourceGroupName: string,
options?: KubeEnvironmentsListByResourceGroupOptionalParams
): PagedAsyncIterableIterator<KubeEnvironment> {
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listByResourceGroupPagingPage(
resourceGroupName,
options,
settings
);
}
};
}
private async *listByResourceGroupPagingPage(
resourceGroupName: string,
options?: KubeEnvironmentsListByResourceGroupOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<KubeEnvironment[]> {
let result: KubeEnvironmentsListByResourceGroupResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._listByResourceGroup(resourceGroupName, options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listByResourceGroupNext(
resourceGroupName,
continuationToken,
options
);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *listByResourceGroupPagingAll(
resourceGroupName: string,
options?: KubeEnvironmentsListByResourceGroupOptionalParams
): AsyncIterableIterator<KubeEnvironment> {
for await (const page of this.listByResourceGroupPagingPage(
resourceGroupName,
options
)) {
yield* page;
}
}
/**
* Description for Get all Kubernetes Environments for a subscription.
* @param options The options parameters.
*/
private _listBySubscription(
options?: KubeEnvironmentsListBySubscriptionOptionalParams
): Promise<KubeEnvironmentsListBySubscriptionResponse> {
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.
*/
private _listByResourceGroup(
resourceGroupName: string,
options?: KubeEnvironmentsListByResourceGroupOptionalParams
): Promise<KubeEnvironmentsListByResourceGroupResponse> {
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: string,
name: string,
options?: KubeEnvironmentsGetOptionalParams
): Promise<KubeEnvironmentsGetResponse> {
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.
*/
async beginCreateOrUpdate(
resourceGroupName: string,
name: string,
kubeEnvironmentEnvelope: KubeEnvironment,
options?: KubeEnvironmentsCreateOrUpdateOptionalParams
): Promise<
PollerLike<
PollOperationState<KubeEnvironmentsCreateOrUpdateResponse>,
KubeEnvironmentsCreateOrUpdateResponse
>
> {
const directSendOperation = async (
args: coreClient.OperationArguments,
spec: coreClient.OperationSpec
): Promise<KubeEnvironmentsCreateOrUpdateResponse> => {
return this.client.sendOperationRequest(args, spec);
};
const sendOperation = async (
args: coreClient.OperationArguments,
spec: coreClient.OperationSpec
) => {
let currentRawResponse:
| coreClient.FullOperationResponse
| undefined = undefined;
const providedCallback = args.options?.onResponse;
const callback: coreClient.RawResponseCallback = (
rawResponse: coreClient.FullOperationResponse,
flatResponse: unknown
) => {
currentRawResponse = rawResponse;
providedCallback?.(rawResponse, flatResponse);
};
const updatedArgs = {
...args,
options: {
...args.options,
onResponse: callback
}
};
const flatResponse = await 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?.resumeFrom,
intervalInMs: options?.updateIntervalInMs
});
await 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.
*/
async beginCreateOrUpdateAndWait(
resourceGroupName: string,
name: string,
kubeEnvironmentEnvelope: KubeEnvironment,
options?: KubeEnvironmentsCreateOrUpdateOptionalParams
): Promise<KubeEnvironmentsCreateOrUpdateResponse> {
const poller = await 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.
*/
async beginDelete(
resourceGroupName: string,
name: string,
options?: KubeEnvironmentsDeleteOptionalParams
): Promise<PollerLike<PollOperationState<void>, void>> {
const directSendOperation = async (
args: coreClient.OperationArguments,
spec: coreClient.OperationSpec
): Promise<void> => {
return this.client.sendOperationRequest(args, spec);
};
const sendOperation = async (
args: coreClient.OperationArguments,
spec: coreClient.OperationSpec
) => {
let currentRawResponse:
| coreClient.FullOperationResponse
| undefined = undefined;
const providedCallback = args.options?.onResponse;
const callback: coreClient.RawResponseCallback = (
rawResponse: coreClient.FullOperationResponse,
flatResponse: unknown
) => {
currentRawResponse = rawResponse;
providedCallback?.(rawResponse, flatResponse);
};
const updatedArgs = {
...args,
options: {
...args.options,
onResponse: callback
}
};
const flatResponse = await 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?.resumeFrom,
intervalInMs: options?.updateIntervalInMs
});
await 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.
*/
async beginDeleteAndWait(
resourceGroupName: string,
name: string,
options?: KubeEnvironmentsDeleteOptionalParams
): Promise<void> {
const poller = await 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: string,
name: string,
kubeEnvironmentEnvelope: KubeEnvironmentPatchResource,
options?: KubeEnvironmentsUpdateOptionalParams
): Promise<KubeEnvironmentsUpdateResponse> {
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.
*/
private _listBySubscriptionNext(
nextLink: string,
options?: KubeEnvironmentsListBySubscriptionNextOptionalParams
): Promise<KubeEnvironmentsListBySubscriptionNextResponse> {
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.
*/
private _listByResourceGroupNext(
resourceGroupName: string,
nextLink: string,
options?: KubeEnvironmentsListByResourceGroupNextOptionalParams
): Promise<KubeEnvironmentsListByResourceGroupNextResponse> {
return this.client.sendOperationRequest(
{ resourceGroupName, nextLink, options },
listByResourceGroupNextOperationSpec
);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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
};
+918
View File
@@ -0,0 +1,918 @@
/*
* 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
import { setContinuationToken } from "../pagingHelper";
import { Provider } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import {
ApplicationStackResource,
ProviderGetAvailableStacksNextOptionalParams,
ProviderGetAvailableStacksOptionalParams,
ProviderGetAvailableStacksResponse,
FunctionAppStack,
ProviderGetFunctionAppStacksNextOptionalParams,
ProviderGetFunctionAppStacksOptionalParams,
ProviderGetFunctionAppStacksResponse,
ProviderGetFunctionAppStacksForLocationNextOptionalParams,
ProviderGetFunctionAppStacksForLocationOptionalParams,
ProviderGetFunctionAppStacksForLocationResponse,
WebAppStack,
ProviderGetWebAppStacksForLocationNextOptionalParams,
ProviderGetWebAppStacksForLocationOptionalParams,
ProviderGetWebAppStacksForLocationResponse,
CsmOperationDescription,
ProviderListOperationsNextOptionalParams,
ProviderListOperationsOptionalParams,
ProviderListOperationsResponse,
ProviderGetWebAppStacksNextOptionalParams,
ProviderGetWebAppStacksOptionalParams,
ProviderGetWebAppStacksResponse,
ProviderGetAvailableStacksOnPremNextOptionalParams,
ProviderGetAvailableStacksOnPremOptionalParams,
ProviderGetAvailableStacksOnPremResponse,
ProviderGetAvailableStacksNextResponse,
ProviderGetFunctionAppStacksNextResponse,
ProviderGetFunctionAppStacksForLocationNextResponse,
ProviderGetWebAppStacksForLocationNextResponse,
ProviderListOperationsNextResponse,
ProviderGetWebAppStacksNextResponse,
ProviderGetAvailableStacksOnPremNextResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Class containing Provider operations. */
export class ProviderImpl implements Provider {
private readonly client: WebSiteManagementClient;
/**
* Initialize a new instance of the class Provider class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient) {
this.client = client;
}
/**
* Description for Get available application frameworks and their versions
* @param options The options parameters.
*/
public listAvailableStacks(
options?: ProviderGetAvailableStacksOptionalParams
): PagedAsyncIterableIterator<ApplicationStackResource> {
const iter = this.getAvailableStacksPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.getAvailableStacksPagingPage(options, settings);
}
};
}
private async *getAvailableStacksPagingPage(
options?: ProviderGetAvailableStacksOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<ApplicationStackResource[]> {
let result: ProviderGetAvailableStacksResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._getAvailableStacks(options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._getAvailableStacksNext(continuationToken, options);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *getAvailableStacksPagingAll(
options?: ProviderGetAvailableStacksOptionalParams
): AsyncIterableIterator<ApplicationStackResource> {
for await (const page of this.getAvailableStacksPagingPage(options)) {
yield* page;
}
}
/**
* Description for Get available Function app frameworks and their versions
* @param options The options parameters.
*/
public listFunctionAppStacks(
options?: ProviderGetFunctionAppStacksOptionalParams
): PagedAsyncIterableIterator<FunctionAppStack> {
const iter = this.getFunctionAppStacksPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.getFunctionAppStacksPagingPage(options, settings);
}
};
}
private async *getFunctionAppStacksPagingPage(
options?: ProviderGetFunctionAppStacksOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<FunctionAppStack[]> {
let result: ProviderGetFunctionAppStacksResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._getFunctionAppStacks(options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._getFunctionAppStacksNext(continuationToken, options);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *getFunctionAppStacksPagingAll(
options?: ProviderGetFunctionAppStacksOptionalParams
): AsyncIterableIterator<FunctionAppStack> {
for await (const page of this.getFunctionAppStacksPagingPage(options)) {
yield* page;
}
}
/**
* Description for Get available Function app frameworks and their versions for location
* @param location Function App stack location.
* @param options The options parameters.
*/
public listFunctionAppStacksForLocation(
location: string,
options?: ProviderGetFunctionAppStacksForLocationOptionalParams
): PagedAsyncIterableIterator<FunctionAppStack> {
const iter = this.getFunctionAppStacksForLocationPagingAll(
location,
options
);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.getFunctionAppStacksForLocationPagingPage(
location,
options,
settings
);
}
};
}
private async *getFunctionAppStacksForLocationPagingPage(
location: string,
options?: ProviderGetFunctionAppStacksForLocationOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<FunctionAppStack[]> {
let result: ProviderGetFunctionAppStacksForLocationResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._getFunctionAppStacksForLocation(location, options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._getFunctionAppStacksForLocationNext(
location,
continuationToken,
options
);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *getFunctionAppStacksForLocationPagingAll(
location: string,
options?: ProviderGetFunctionAppStacksForLocationOptionalParams
): AsyncIterableIterator<FunctionAppStack> {
for await (const page of this.getFunctionAppStacksForLocationPagingPage(
location,
options
)) {
yield* page;
}
}
/**
* Description for Get available Web app frameworks and their versions for location
* @param location Web App stack location.
* @param options The options parameters.
*/
public listWebAppStacksForLocation(
location: string,
options?: ProviderGetWebAppStacksForLocationOptionalParams
): PagedAsyncIterableIterator<WebAppStack> {
const iter = this.getWebAppStacksForLocationPagingAll(location, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.getWebAppStacksForLocationPagingPage(
location,
options,
settings
);
}
};
}
private async *getWebAppStacksForLocationPagingPage(
location: string,
options?: ProviderGetWebAppStacksForLocationOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<WebAppStack[]> {
let result: ProviderGetWebAppStacksForLocationResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._getWebAppStacksForLocation(location, options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._getWebAppStacksForLocationNext(
location,
continuationToken,
options
);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *getWebAppStacksForLocationPagingAll(
location: string,
options?: ProviderGetWebAppStacksForLocationOptionalParams
): AsyncIterableIterator<WebAppStack> {
for await (const page of this.getWebAppStacksForLocationPagingPage(
location,
options
)) {
yield* page;
}
}
/**
* Description for Gets all available operations for the Microsoft.Web resource provider. Also exposes
* resource metric definitions
* @param options The options parameters.
*/
public listOperations(
options?: ProviderListOperationsOptionalParams
): PagedAsyncIterableIterator<CsmOperationDescription> {
const iter = this.listOperationsPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listOperationsPagingPage(options, settings);
}
};
}
private async *listOperationsPagingPage(
options?: ProviderListOperationsOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<CsmOperationDescription[]> {
let result: ProviderListOperationsResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._listOperations(options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listOperationsNext(continuationToken, options);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *listOperationsPagingAll(
options?: ProviderListOperationsOptionalParams
): AsyncIterableIterator<CsmOperationDescription> {
for await (const page of this.listOperationsPagingPage(options)) {
yield* page;
}
}
/**
* Description for Get available Web app frameworks and their versions
* @param options The options parameters.
*/
public listWebAppStacks(
options?: ProviderGetWebAppStacksOptionalParams
): PagedAsyncIterableIterator<WebAppStack> {
const iter = this.getWebAppStacksPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.getWebAppStacksPagingPage(options, settings);
}
};
}
private async *getWebAppStacksPagingPage(
options?: ProviderGetWebAppStacksOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<WebAppStack[]> {
let result: ProviderGetWebAppStacksResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._getWebAppStacks(options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._getWebAppStacksNext(continuationToken, options);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *getWebAppStacksPagingAll(
options?: ProviderGetWebAppStacksOptionalParams
): AsyncIterableIterator<WebAppStack> {
for await (const page of this.getWebAppStacksPagingPage(options)) {
yield* page;
}
}
/**
* Description for Get available application frameworks and their versions
* @param options The options parameters.
*/
public listAvailableStacksOnPrem(
options?: ProviderGetAvailableStacksOnPremOptionalParams
): PagedAsyncIterableIterator<ApplicationStackResource> {
const iter = this.getAvailableStacksOnPremPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.getAvailableStacksOnPremPagingPage(options, settings);
}
};
}
private async *getAvailableStacksOnPremPagingPage(
options?: ProviderGetAvailableStacksOnPremOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<ApplicationStackResource[]> {
let result: ProviderGetAvailableStacksOnPremResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._getAvailableStacksOnPrem(options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._getAvailableStacksOnPremNext(
continuationToken,
options
);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *getAvailableStacksOnPremPagingAll(
options?: ProviderGetAvailableStacksOnPremOptionalParams
): AsyncIterableIterator<ApplicationStackResource> {
for await (const page of this.getAvailableStacksOnPremPagingPage(options)) {
yield* page;
}
}
/**
* Description for Get available application frameworks and their versions
* @param options The options parameters.
*/
private _getAvailableStacks(
options?: ProviderGetAvailableStacksOptionalParams
): Promise<ProviderGetAvailableStacksResponse> {
return this.client.sendOperationRequest(
{ options },
getAvailableStacksOperationSpec
);
}
/**
* Description for Get available Function app frameworks and their versions
* @param options The options parameters.
*/
private _getFunctionAppStacks(
options?: ProviderGetFunctionAppStacksOptionalParams
): Promise<ProviderGetFunctionAppStacksResponse> {
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.
*/
private _getFunctionAppStacksForLocation(
location: string,
options?: ProviderGetFunctionAppStacksForLocationOptionalParams
): Promise<ProviderGetFunctionAppStacksForLocationResponse> {
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.
*/
private _getWebAppStacksForLocation(
location: string,
options?: ProviderGetWebAppStacksForLocationOptionalParams
): Promise<ProviderGetWebAppStacksForLocationResponse> {
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.
*/
private _listOperations(
options?: ProviderListOperationsOptionalParams
): Promise<ProviderListOperationsResponse> {
return this.client.sendOperationRequest(
{ options },
listOperationsOperationSpec
);
}
/**
* Description for Get available Web app frameworks and their versions
* @param options The options parameters.
*/
private _getWebAppStacks(
options?: ProviderGetWebAppStacksOptionalParams
): Promise<ProviderGetWebAppStacksResponse> {
return this.client.sendOperationRequest(
{ options },
getWebAppStacksOperationSpec
);
}
/**
* Description for Get available application frameworks and their versions
* @param options The options parameters.
*/
private _getAvailableStacksOnPrem(
options?: ProviderGetAvailableStacksOnPremOptionalParams
): Promise<ProviderGetAvailableStacksOnPremResponse> {
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.
*/
private _getAvailableStacksNext(
nextLink: string,
options?: ProviderGetAvailableStacksNextOptionalParams
): Promise<ProviderGetAvailableStacksNextResponse> {
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.
*/
private _getFunctionAppStacksNext(
nextLink: string,
options?: ProviderGetFunctionAppStacksNextOptionalParams
): Promise<ProviderGetFunctionAppStacksNextResponse> {
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.
*/
private _getFunctionAppStacksForLocationNext(
location: string,
nextLink: string,
options?: ProviderGetFunctionAppStacksForLocationNextOptionalParams
): Promise<ProviderGetFunctionAppStacksForLocationNextResponse> {
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.
*/
private _getWebAppStacksForLocationNext(
location: string,
nextLink: string,
options?: ProviderGetWebAppStacksForLocationNextOptionalParams
): Promise<ProviderGetWebAppStacksForLocationNextResponse> {
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.
*/
private _listOperationsNext(
nextLink: string,
options?: ProviderListOperationsNextOptionalParams
): Promise<ProviderListOperationsNextResponse> {
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.
*/
private _getWebAppStacksNext(
nextLink: string,
options?: ProviderGetWebAppStacksNextOptionalParams
): Promise<ProviderGetWebAppStacksNextResponse> {
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.
*/
private _getAvailableStacksOnPremNext(
nextLink: string,
options?: ProviderGetAvailableStacksOnPremNextOptionalParams
): Promise<ProviderGetAvailableStacksOnPremNextResponse> {
return this.client.sendOperationRequest(
{ nextLink, options },
getAvailableStacksOnPremNextOperationSpec
);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const getAvailableStacksOperationSpec: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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
};
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,737 @@
/*
* 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
import { setContinuationToken } from "../pagingHelper";
import { ResourceHealthMetadataOperations } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import {
ResourceHealthMetadata,
ResourceHealthMetadataListNextOptionalParams,
ResourceHealthMetadataListOptionalParams,
ResourceHealthMetadataListResponse,
ResourceHealthMetadataListByResourceGroupNextOptionalParams,
ResourceHealthMetadataListByResourceGroupOptionalParams,
ResourceHealthMetadataListByResourceGroupResponse,
ResourceHealthMetadataListBySiteNextOptionalParams,
ResourceHealthMetadataListBySiteOptionalParams,
ResourceHealthMetadataListBySiteResponse,
ResourceHealthMetadataListBySiteSlotNextOptionalParams,
ResourceHealthMetadataListBySiteSlotOptionalParams,
ResourceHealthMetadataListBySiteSlotResponse,
ResourceHealthMetadataGetBySiteOptionalParams,
ResourceHealthMetadataGetBySiteResponse,
ResourceHealthMetadataGetBySiteSlotOptionalParams,
ResourceHealthMetadataGetBySiteSlotResponse,
ResourceHealthMetadataListNextResponse,
ResourceHealthMetadataListByResourceGroupNextResponse,
ResourceHealthMetadataListBySiteNextResponse,
ResourceHealthMetadataListBySiteSlotNextResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Class containing ResourceHealthMetadataOperations operations. */
export class ResourceHealthMetadataOperationsImpl
implements ResourceHealthMetadataOperations {
private readonly client: WebSiteManagementClient;
/**
* Initialize a new instance of the class ResourceHealthMetadataOperations class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient) {
this.client = client;
}
/**
* Description for List all ResourceHealthMetadata for all sites in the subscription.
* @param options The options parameters.
*/
public list(
options?: ResourceHealthMetadataListOptionalParams
): PagedAsyncIterableIterator<ResourceHealthMetadata> {
const iter = this.listPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listPagingPage(options, settings);
}
};
}
private async *listPagingPage(
options?: ResourceHealthMetadataListOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<ResourceHealthMetadata[]> {
let result: ResourceHealthMetadataListResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._list(options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listNext(continuationToken, options);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *listPagingAll(
options?: ResourceHealthMetadataListOptionalParams
): AsyncIterableIterator<ResourceHealthMetadata> {
for await (const page of this.listPagingPage(options)) {
yield* page;
}
}
/**
* 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.
*/
public listByResourceGroup(
resourceGroupName: string,
options?: ResourceHealthMetadataListByResourceGroupOptionalParams
): PagedAsyncIterableIterator<ResourceHealthMetadata> {
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listByResourceGroupPagingPage(
resourceGroupName,
options,
settings
);
}
};
}
private async *listByResourceGroupPagingPage(
resourceGroupName: string,
options?: ResourceHealthMetadataListByResourceGroupOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<ResourceHealthMetadata[]> {
let result: ResourceHealthMetadataListByResourceGroupResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._listByResourceGroup(resourceGroupName, options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listByResourceGroupNext(
resourceGroupName,
continuationToken,
options
);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *listByResourceGroupPagingAll(
resourceGroupName: string,
options?: ResourceHealthMetadataListByResourceGroupOptionalParams
): AsyncIterableIterator<ResourceHealthMetadata> {
for await (const page of this.listByResourceGroupPagingPage(
resourceGroupName,
options
)) {
yield* page;
}
}
/**
* 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.
*/
public listBySite(
resourceGroupName: string,
name: string,
options?: ResourceHealthMetadataListBySiteOptionalParams
): PagedAsyncIterableIterator<ResourceHealthMetadata> {
const iter = this.listBySitePagingAll(resourceGroupName, name, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listBySitePagingPage(
resourceGroupName,
name,
options,
settings
);
}
};
}
private async *listBySitePagingPage(
resourceGroupName: string,
name: string,
options?: ResourceHealthMetadataListBySiteOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<ResourceHealthMetadata[]> {
let result: ResourceHealthMetadataListBySiteResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._listBySite(resourceGroupName, name, options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listBySiteNext(
resourceGroupName,
name,
continuationToken,
options
);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *listBySitePagingAll(
resourceGroupName: string,
name: string,
options?: ResourceHealthMetadataListBySiteOptionalParams
): AsyncIterableIterator<ResourceHealthMetadata> {
for await (const page of this.listBySitePagingPage(
resourceGroupName,
name,
options
)) {
yield* page;
}
}
/**
* 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.
*/
public listBySiteSlot(
resourceGroupName: string,
name: string,
slot: string,
options?: ResourceHealthMetadataListBySiteSlotOptionalParams
): PagedAsyncIterableIterator<ResourceHealthMetadata> {
const iter = this.listBySiteSlotPagingAll(
resourceGroupName,
name,
slot,
options
);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listBySiteSlotPagingPage(
resourceGroupName,
name,
slot,
options,
settings
);
}
};
}
private async *listBySiteSlotPagingPage(
resourceGroupName: string,
name: string,
slot: string,
options?: ResourceHealthMetadataListBySiteSlotOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<ResourceHealthMetadata[]> {
let result: ResourceHealthMetadataListBySiteSlotResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._listBySiteSlot(
resourceGroupName,
name,
slot,
options
);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listBySiteSlotNext(
resourceGroupName,
name,
slot,
continuationToken,
options
);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *listBySiteSlotPagingAll(
resourceGroupName: string,
name: string,
slot: string,
options?: ResourceHealthMetadataListBySiteSlotOptionalParams
): AsyncIterableIterator<ResourceHealthMetadata> {
for await (const page of this.listBySiteSlotPagingPage(
resourceGroupName,
name,
slot,
options
)) {
yield* page;
}
}
/**
* Description for List all ResourceHealthMetadata for all sites in the subscription.
* @param options The options parameters.
*/
private _list(
options?: ResourceHealthMetadataListOptionalParams
): Promise<ResourceHealthMetadataListResponse> {
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.
*/
private _listByResourceGroup(
resourceGroupName: string,
options?: ResourceHealthMetadataListByResourceGroupOptionalParams
): Promise<ResourceHealthMetadataListByResourceGroupResponse> {
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.
*/
private _listBySite(
resourceGroupName: string,
name: string,
options?: ResourceHealthMetadataListBySiteOptionalParams
): Promise<ResourceHealthMetadataListBySiteResponse> {
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: string,
name: string,
options?: ResourceHealthMetadataGetBySiteOptionalParams
): Promise<ResourceHealthMetadataGetBySiteResponse> {
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.
*/
private _listBySiteSlot(
resourceGroupName: string,
name: string,
slot: string,
options?: ResourceHealthMetadataListBySiteSlotOptionalParams
): Promise<ResourceHealthMetadataListBySiteSlotResponse> {
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: string,
name: string,
slot: string,
options?: ResourceHealthMetadataGetBySiteSlotOptionalParams
): Promise<ResourceHealthMetadataGetBySiteSlotResponse> {
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.
*/
private _listNext(
nextLink: string,
options?: ResourceHealthMetadataListNextOptionalParams
): Promise<ResourceHealthMetadataListNextResponse> {
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.
*/
private _listByResourceGroupNext(
resourceGroupName: string,
nextLink: string,
options?: ResourceHealthMetadataListByResourceGroupNextOptionalParams
): Promise<ResourceHealthMetadataListByResourceGroupNextResponse> {
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.
*/
private _listBySiteNext(
resourceGroupName: string,
name: string,
nextLink: string,
options?: ResourceHealthMetadataListBySiteNextOptionalParams
): Promise<ResourceHealthMetadataListBySiteNextResponse> {
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.
*/
private _listBySiteSlotNext(
resourceGroupName: string,
name: string,
slot: string,
nextLink: string,
options?: ResourceHealthMetadataListBySiteSlotNextOptionalParams
): Promise<ResourceHealthMetadataListBySiteSlotNextResponse> {
return this.client.sendOperationRequest(
{ resourceGroupName, name, slot, nextLink, options },
listBySiteSlotNextOperationSpec
);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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
};
File diff suppressed because it is too large Load Diff
+348
View File
@@ -0,0 +1,348 @@
/*
* 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
import { setContinuationToken } from "../pagingHelper";
import { TopLevelDomains } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import {
TopLevelDomain,
TopLevelDomainsListNextOptionalParams,
TopLevelDomainsListOptionalParams,
TopLevelDomainsListResponse,
TldLegalAgreement,
TopLevelDomainAgreementOption,
TopLevelDomainsListAgreementsNextOptionalParams,
TopLevelDomainsListAgreementsOptionalParams,
TopLevelDomainsListAgreementsResponse,
TopLevelDomainsGetOptionalParams,
TopLevelDomainsGetResponse,
TopLevelDomainsListNextResponse,
TopLevelDomainsListAgreementsNextResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Class containing TopLevelDomains operations. */
export class TopLevelDomainsImpl implements TopLevelDomains {
private readonly client: WebSiteManagementClient;
/**
* Initialize a new instance of the class TopLevelDomains class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient) {
this.client = client;
}
/**
* Description for Get all top-level domains supported for registration.
* @param options The options parameters.
*/
public list(
options?: TopLevelDomainsListOptionalParams
): PagedAsyncIterableIterator<TopLevelDomain> {
const iter = this.listPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listPagingPage(options, settings);
}
};
}
private async *listPagingPage(
options?: TopLevelDomainsListOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<TopLevelDomain[]> {
let result: TopLevelDomainsListResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._list(options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listNext(continuationToken, options);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *listPagingAll(
options?: TopLevelDomainsListOptionalParams
): AsyncIterableIterator<TopLevelDomain> {
for await (const page of this.listPagingPage(options)) {
yield* page;
}
}
/**
* 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.
*/
public listAgreements(
name: string,
agreementOption: TopLevelDomainAgreementOption,
options?: TopLevelDomainsListAgreementsOptionalParams
): PagedAsyncIterableIterator<TldLegalAgreement> {
const iter = this.listAgreementsPagingAll(name, agreementOption, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listAgreementsPagingPage(
name,
agreementOption,
options,
settings
);
}
};
}
private async *listAgreementsPagingPage(
name: string,
agreementOption: TopLevelDomainAgreementOption,
options?: TopLevelDomainsListAgreementsOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<TldLegalAgreement[]> {
let result: TopLevelDomainsListAgreementsResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._listAgreements(name, agreementOption, options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listAgreementsNext(
name,
agreementOption,
continuationToken,
options
);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *listAgreementsPagingAll(
name: string,
agreementOption: TopLevelDomainAgreementOption,
options?: TopLevelDomainsListAgreementsOptionalParams
): AsyncIterableIterator<TldLegalAgreement> {
for await (const page of this.listAgreementsPagingPage(
name,
agreementOption,
options
)) {
yield* page;
}
}
/**
* Description for Get all top-level domains supported for registration.
* @param options The options parameters.
*/
private _list(
options?: TopLevelDomainsListOptionalParams
): Promise<TopLevelDomainsListResponse> {
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: string,
options?: TopLevelDomainsGetOptionalParams
): Promise<TopLevelDomainsGetResponse> {
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.
*/
private _listAgreements(
name: string,
agreementOption: TopLevelDomainAgreementOption,
options?: TopLevelDomainsListAgreementsOptionalParams
): Promise<TopLevelDomainsListAgreementsResponse> {
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.
*/
private _listNext(
nextLink: string,
options?: TopLevelDomainsListNextOptionalParams
): Promise<TopLevelDomainsListNextResponse> {
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.
*/
private _listAgreementsNext(
name: string,
agreementOption: TopLevelDomainAgreementOption,
nextLink: string,
options?: TopLevelDomainsListAgreementsNextOptionalParams
): Promise<TopLevelDomainsListAgreementsNextResponse> {
return this.client.sendOperationRequest(
{ name, agreementOption, nextLink, options },
listAgreementsNextOperationSpec
);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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: coreClient.OperationSpec = {
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
};
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,564 @@
/*
* 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
import { setContinuationToken } from "../pagingHelper";
import { WorkflowRunActionRepetitions } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import {
WorkflowRunActionRepetitionDefinition,
WorkflowRunActionRepetitionsListNextOptionalParams,
WorkflowRunActionRepetitionsListOptionalParams,
WorkflowRunActionRepetitionsListResponse,
ExpressionRoot,
WorkflowRunActionRepetitionsListExpressionTracesNextOptionalParams,
WorkflowRunActionRepetitionsListExpressionTracesOptionalParams,
WorkflowRunActionRepetitionsListExpressionTracesResponse,
WorkflowRunActionRepetitionsGetOptionalParams,
WorkflowRunActionRepetitionsGetResponse,
WorkflowRunActionRepetitionsListNextResponse,
WorkflowRunActionRepetitionsListExpressionTracesNextResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Class containing WorkflowRunActionRepetitions operations. */
export class WorkflowRunActionRepetitionsImpl
implements WorkflowRunActionRepetitions {
private readonly client: WebSiteManagementClient;
/**
* Initialize a new instance of the class WorkflowRunActionRepetitions class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient) {
this.client = client;
}
/**
* Get all of a workflow run action repetitions.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param actionName The workflow action name.
* @param options The options parameters.
*/
public list(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
options?: WorkflowRunActionRepetitionsListOptionalParams
): PagedAsyncIterableIterator<WorkflowRunActionRepetitionDefinition> {
const iter = this.listPagingAll(
resourceGroupName,
name,
workflowName,
runName,
actionName,
options
);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listPagingPage(
resourceGroupName,
name,
workflowName,
runName,
actionName,
options,
settings
);
}
};
}
private async *listPagingPage(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
options?: WorkflowRunActionRepetitionsListOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<WorkflowRunActionRepetitionDefinition[]> {
let result: WorkflowRunActionRepetitionsListResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._list(
resourceGroupName,
name,
workflowName,
runName,
actionName,
options
);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listNext(
resourceGroupName,
name,
workflowName,
runName,
actionName,
continuationToken,
options
);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *listPagingAll(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
options?: WorkflowRunActionRepetitionsListOptionalParams
): AsyncIterableIterator<WorkflowRunActionRepetitionDefinition> {
for await (const page of this.listPagingPage(
resourceGroupName,
name,
workflowName,
runName,
actionName,
options
)) {
yield* page;
}
}
/**
* Lists a workflow run expression trace.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param actionName The workflow action name.
* @param repetitionName The workflow repetition.
* @param options The options parameters.
*/
public listExpressionTraces(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
repetitionName: string,
options?: WorkflowRunActionRepetitionsListExpressionTracesOptionalParams
): PagedAsyncIterableIterator<ExpressionRoot> {
const iter = this.listExpressionTracesPagingAll(
resourceGroupName,
name,
workflowName,
runName,
actionName,
repetitionName,
options
);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listExpressionTracesPagingPage(
resourceGroupName,
name,
workflowName,
runName,
actionName,
repetitionName,
options,
settings
);
}
};
}
private async *listExpressionTracesPagingPage(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
repetitionName: string,
options?: WorkflowRunActionRepetitionsListExpressionTracesOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<ExpressionRoot[]> {
let result: WorkflowRunActionRepetitionsListExpressionTracesResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._listExpressionTraces(
resourceGroupName,
name,
workflowName,
runName,
actionName,
repetitionName,
options
);
let page = result.inputs || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listExpressionTracesNext(
resourceGroupName,
name,
workflowName,
runName,
actionName,
repetitionName,
continuationToken,
options
);
continuationToken = result.nextLink;
let page = result.inputs || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *listExpressionTracesPagingAll(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
repetitionName: string,
options?: WorkflowRunActionRepetitionsListExpressionTracesOptionalParams
): AsyncIterableIterator<ExpressionRoot> {
for await (const page of this.listExpressionTracesPagingPage(
resourceGroupName,
name,
workflowName,
runName,
actionName,
repetitionName,
options
)) {
yield* page;
}
}
/**
* Get all of a workflow run action repetitions.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param actionName The workflow action name.
* @param options The options parameters.
*/
private _list(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
options?: WorkflowRunActionRepetitionsListOptionalParams
): Promise<WorkflowRunActionRepetitionsListResponse> {
return this.client.sendOperationRequest(
{ resourceGroupName, name, workflowName, runName, actionName, options },
listOperationSpec
);
}
/**
* Get a workflow run action repetition.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param actionName The workflow action name.
* @param repetitionName The workflow repetition.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
repetitionName: string,
options?: WorkflowRunActionRepetitionsGetOptionalParams
): Promise<WorkflowRunActionRepetitionsGetResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
name,
workflowName,
runName,
actionName,
repetitionName,
options
},
getOperationSpec
);
}
/**
* Lists a workflow run expression trace.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param actionName The workflow action name.
* @param repetitionName The workflow repetition.
* @param options The options parameters.
*/
private _listExpressionTraces(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
repetitionName: string,
options?: WorkflowRunActionRepetitionsListExpressionTracesOptionalParams
): Promise<WorkflowRunActionRepetitionsListExpressionTracesResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
name,
workflowName,
runName,
actionName,
repetitionName,
options
},
listExpressionTracesOperationSpec
);
}
/**
* ListNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param actionName The workflow action name.
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
private _listNext(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
nextLink: string,
options?: WorkflowRunActionRepetitionsListNextOptionalParams
): Promise<WorkflowRunActionRepetitionsListNextResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
name,
workflowName,
runName,
actionName,
nextLink,
options
},
listNextOperationSpec
);
}
/**
* ListExpressionTracesNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param actionName The workflow action name.
* @param repetitionName The workflow repetition.
* @param nextLink The nextLink from the previous successful call to the ListExpressionTraces method.
* @param options The options parameters.
*/
private _listExpressionTracesNext(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
repetitionName: string,
nextLink: string,
options?: WorkflowRunActionRepetitionsListExpressionTracesNextOptionalParams
): Promise<WorkflowRunActionRepetitionsListExpressionTracesNextResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
name,
workflowName,
runName,
actionName,
repetitionName,
nextLink,
options
},
listExpressionTracesNextOperationSpec
);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec: coreClient.OperationSpec = {
path:
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/runs/{runName}/actions/{actionName}/repetitions",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.WorkflowRunActionRepetitionDefinitionCollection
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.workflowName,
Parameters.runName,
Parameters.actionName
],
headerParameters: [Parameters.accept],
serializer
};
const getOperationSpec: coreClient.OperationSpec = {
path:
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/runs/{runName}/actions/{actionName}/repetitions/{repetitionName}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.WorkflowRunActionRepetitionDefinition
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.workflowName,
Parameters.runName,
Parameters.actionName,
Parameters.repetitionName
],
headerParameters: [Parameters.accept],
serializer
};
const listExpressionTracesOperationSpec: coreClient.OperationSpec = {
path:
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/runs/{runName}/actions/{actionName}/repetitions/{repetitionName}/listExpressionTraces",
httpMethod: "POST",
responses: {
200: {
bodyMapper: Mappers.ExpressionTraces
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.workflowName,
Parameters.runName,
Parameters.actionName,
Parameters.repetitionName
],
headerParameters: [Parameters.accept],
serializer
};
const listNextOperationSpec: coreClient.OperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.WorkflowRunActionRepetitionDefinitionCollection
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.nextLink,
Parameters.workflowName,
Parameters.runName,
Parameters.actionName
],
headerParameters: [Parameters.accept],
serializer
};
const listExpressionTracesNextOperationSpec: coreClient.OperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ExpressionTraces
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.nextLink,
Parameters.workflowName,
Parameters.runName,
Parameters.actionName,
Parameters.repetitionName
],
headerParameters: [Parameters.accept],
serializer
};
@@ -0,0 +1,346 @@
/*
* 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
import { setContinuationToken } from "../pagingHelper";
import { WorkflowRunActionRepetitionsRequestHistories } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import {
RequestHistory,
WorkflowRunActionRepetitionsRequestHistoriesListNextOptionalParams,
WorkflowRunActionRepetitionsRequestHistoriesListOptionalParams,
WorkflowRunActionRepetitionsRequestHistoriesListResponse,
WorkflowRunActionRepetitionsRequestHistoriesGetOptionalParams,
WorkflowRunActionRepetitionsRequestHistoriesGetResponse,
WorkflowRunActionRepetitionsRequestHistoriesListNextResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Class containing WorkflowRunActionRepetitionsRequestHistories operations. */
export class WorkflowRunActionRepetitionsRequestHistoriesImpl
implements WorkflowRunActionRepetitionsRequestHistories {
private readonly client: WebSiteManagementClient;
/**
* Initialize a new instance of the class WorkflowRunActionRepetitionsRequestHistories class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient) {
this.client = client;
}
/**
* List a workflow run repetition request history.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param actionName The workflow action name.
* @param repetitionName The workflow repetition.
* @param options The options parameters.
*/
public list(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
repetitionName: string,
options?: WorkflowRunActionRepetitionsRequestHistoriesListOptionalParams
): PagedAsyncIterableIterator<RequestHistory> {
const iter = this.listPagingAll(
resourceGroupName,
name,
workflowName,
runName,
actionName,
repetitionName,
options
);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listPagingPage(
resourceGroupName,
name,
workflowName,
runName,
actionName,
repetitionName,
options,
settings
);
}
};
}
private async *listPagingPage(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
repetitionName: string,
options?: WorkflowRunActionRepetitionsRequestHistoriesListOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<RequestHistory[]> {
let result: WorkflowRunActionRepetitionsRequestHistoriesListResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._list(
resourceGroupName,
name,
workflowName,
runName,
actionName,
repetitionName,
options
);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listNext(
resourceGroupName,
name,
workflowName,
runName,
actionName,
repetitionName,
continuationToken,
options
);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *listPagingAll(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
repetitionName: string,
options?: WorkflowRunActionRepetitionsRequestHistoriesListOptionalParams
): AsyncIterableIterator<RequestHistory> {
for await (const page of this.listPagingPage(
resourceGroupName,
name,
workflowName,
runName,
actionName,
repetitionName,
options
)) {
yield* page;
}
}
/**
* List a workflow run repetition request history.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param actionName The workflow action name.
* @param repetitionName The workflow repetition.
* @param options The options parameters.
*/
private _list(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
repetitionName: string,
options?: WorkflowRunActionRepetitionsRequestHistoriesListOptionalParams
): Promise<WorkflowRunActionRepetitionsRequestHistoriesListResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
name,
workflowName,
runName,
actionName,
repetitionName,
options
},
listOperationSpec
);
}
/**
* Gets a workflow run repetition request history.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param actionName The workflow action name.
* @param repetitionName The workflow repetition.
* @param requestHistoryName The request history name.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
repetitionName: string,
requestHistoryName: string,
options?: WorkflowRunActionRepetitionsRequestHistoriesGetOptionalParams
): Promise<WorkflowRunActionRepetitionsRequestHistoriesGetResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
name,
workflowName,
runName,
actionName,
repetitionName,
requestHistoryName,
options
},
getOperationSpec
);
}
/**
* ListNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param actionName The workflow action name.
* @param repetitionName The workflow repetition.
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
private _listNext(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
repetitionName: string,
nextLink: string,
options?: WorkflowRunActionRepetitionsRequestHistoriesListNextOptionalParams
): Promise<WorkflowRunActionRepetitionsRequestHistoriesListNextResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
name,
workflowName,
runName,
actionName,
repetitionName,
nextLink,
options
},
listNextOperationSpec
);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec: coreClient.OperationSpec = {
path:
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/runs/{runName}/actions/{actionName}/repetitions/{repetitionName}/requestHistories",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.RequestHistoryListResult
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.workflowName,
Parameters.runName,
Parameters.actionName,
Parameters.repetitionName
],
headerParameters: [Parameters.accept],
serializer
};
const getOperationSpec: coreClient.OperationSpec = {
path:
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/runs/{runName}/actions/{actionName}/repetitions/{repetitionName}/requestHistories/{requestHistoryName}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.RequestHistory
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.workflowName,
Parameters.runName,
Parameters.actionName,
Parameters.repetitionName,
Parameters.requestHistoryName
],
headerParameters: [Parameters.accept],
serializer
};
const listNextOperationSpec: coreClient.OperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.RequestHistoryListResult
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.nextLink,
Parameters.workflowName,
Parameters.runName,
Parameters.actionName,
Parameters.repetitionName
],
headerParameters: [Parameters.accept],
serializer
};
@@ -0,0 +1,318 @@
/*
* 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
import { setContinuationToken } from "../pagingHelper";
import { WorkflowRunActionScopeRepetitions } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import {
WorkflowRunActionRepetitionDefinition,
WorkflowRunActionScopeRepetitionsListNextOptionalParams,
WorkflowRunActionScopeRepetitionsListOptionalParams,
WorkflowRunActionScopeRepetitionsListResponse,
WorkflowRunActionScopeRepetitionsGetOptionalParams,
WorkflowRunActionScopeRepetitionsGetResponse,
WorkflowRunActionScopeRepetitionsListNextResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Class containing WorkflowRunActionScopeRepetitions operations. */
export class WorkflowRunActionScopeRepetitionsImpl
implements WorkflowRunActionScopeRepetitions {
private readonly client: WebSiteManagementClient;
/**
* Initialize a new instance of the class WorkflowRunActionScopeRepetitions class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient) {
this.client = client;
}
/**
* List the workflow run action scoped repetitions.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param actionName The workflow action name.
* @param options The options parameters.
*/
public list(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
options?: WorkflowRunActionScopeRepetitionsListOptionalParams
): PagedAsyncIterableIterator<WorkflowRunActionRepetitionDefinition> {
const iter = this.listPagingAll(
resourceGroupName,
name,
workflowName,
runName,
actionName,
options
);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listPagingPage(
resourceGroupName,
name,
workflowName,
runName,
actionName,
options,
settings
);
}
};
}
private async *listPagingPage(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
options?: WorkflowRunActionScopeRepetitionsListOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<WorkflowRunActionRepetitionDefinition[]> {
let result: WorkflowRunActionScopeRepetitionsListResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._list(
resourceGroupName,
name,
workflowName,
runName,
actionName,
options
);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listNext(
resourceGroupName,
name,
workflowName,
runName,
actionName,
continuationToken,
options
);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *listPagingAll(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
options?: WorkflowRunActionScopeRepetitionsListOptionalParams
): AsyncIterableIterator<WorkflowRunActionRepetitionDefinition> {
for await (const page of this.listPagingPage(
resourceGroupName,
name,
workflowName,
runName,
actionName,
options
)) {
yield* page;
}
}
/**
* List the workflow run action scoped repetitions.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param actionName The workflow action name.
* @param options The options parameters.
*/
private _list(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
options?: WorkflowRunActionScopeRepetitionsListOptionalParams
): Promise<WorkflowRunActionScopeRepetitionsListResponse> {
return this.client.sendOperationRequest(
{ resourceGroupName, name, workflowName, runName, actionName, options },
listOperationSpec
);
}
/**
* Get a workflow run action scoped repetition.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param actionName The workflow action name.
* @param repetitionName The workflow repetition.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
repetitionName: string,
options?: WorkflowRunActionScopeRepetitionsGetOptionalParams
): Promise<WorkflowRunActionScopeRepetitionsGetResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
name,
workflowName,
runName,
actionName,
repetitionName,
options
},
getOperationSpec
);
}
/**
* ListNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param actionName The workflow action name.
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
private _listNext(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
nextLink: string,
options?: WorkflowRunActionScopeRepetitionsListNextOptionalParams
): Promise<WorkflowRunActionScopeRepetitionsListNextResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
name,
workflowName,
runName,
actionName,
nextLink,
options
},
listNextOperationSpec
);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec: coreClient.OperationSpec = {
path:
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/runs/{runName}/actions/{actionName}/scopeRepetitions",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.WorkflowRunActionRepetitionDefinitionCollection
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.workflowName,
Parameters.runName,
Parameters.actionName
],
headerParameters: [Parameters.accept],
serializer
};
const getOperationSpec: coreClient.OperationSpec = {
path:
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/runs/{runName}/actions/{actionName}/scopeRepetitions/{repetitionName}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.WorkflowRunActionRepetitionDefinition
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.workflowName,
Parameters.runName,
Parameters.actionName,
Parameters.repetitionName
],
headerParameters: [Parameters.accept],
serializer
};
const listNextOperationSpec: coreClient.OperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.WorkflowRunActionRepetitionDefinitionCollection
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.nextLink,
Parameters.workflowName,
Parameters.runName,
Parameters.actionName
],
headerParameters: [Parameters.accept],
serializer
};
+505
View File
@@ -0,0 +1,505 @@
/*
* 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
import { setContinuationToken } from "../pagingHelper";
import { WorkflowRunActions } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import {
WorkflowRunAction,
WorkflowRunActionsListNextOptionalParams,
WorkflowRunActionsListOptionalParams,
WorkflowRunActionsListResponse,
ExpressionRoot,
WorkflowRunActionsListExpressionTracesNextOptionalParams,
WorkflowRunActionsListExpressionTracesOptionalParams,
WorkflowRunActionsListExpressionTracesResponse,
WorkflowRunActionsGetOptionalParams,
WorkflowRunActionsGetResponse,
WorkflowRunActionsListNextResponse,
WorkflowRunActionsListExpressionTracesNextResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Class containing WorkflowRunActions operations. */
export class WorkflowRunActionsImpl implements WorkflowRunActions {
private readonly client: WebSiteManagementClient;
/**
* Initialize a new instance of the class WorkflowRunActions class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient) {
this.client = client;
}
/**
* Gets a list of workflow run actions.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param options The options parameters.
*/
public list(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
options?: WorkflowRunActionsListOptionalParams
): PagedAsyncIterableIterator<WorkflowRunAction> {
const iter = this.listPagingAll(
resourceGroupName,
name,
workflowName,
runName,
options
);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listPagingPage(
resourceGroupName,
name,
workflowName,
runName,
options,
settings
);
}
};
}
private async *listPagingPage(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
options?: WorkflowRunActionsListOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<WorkflowRunAction[]> {
let result: WorkflowRunActionsListResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._list(
resourceGroupName,
name,
workflowName,
runName,
options
);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listNext(
resourceGroupName,
name,
workflowName,
runName,
continuationToken,
options
);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *listPagingAll(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
options?: WorkflowRunActionsListOptionalParams
): AsyncIterableIterator<WorkflowRunAction> {
for await (const page of this.listPagingPage(
resourceGroupName,
name,
workflowName,
runName,
options
)) {
yield* page;
}
}
/**
* Lists a workflow run expression trace.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param actionName The workflow action name.
* @param options The options parameters.
*/
public listExpressionTraces(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
options?: WorkflowRunActionsListExpressionTracesOptionalParams
): PagedAsyncIterableIterator<ExpressionRoot> {
const iter = this.listExpressionTracesPagingAll(
resourceGroupName,
name,
workflowName,
runName,
actionName,
options
);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listExpressionTracesPagingPage(
resourceGroupName,
name,
workflowName,
runName,
actionName,
options,
settings
);
}
};
}
private async *listExpressionTracesPagingPage(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
options?: WorkflowRunActionsListExpressionTracesOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<ExpressionRoot[]> {
let result: WorkflowRunActionsListExpressionTracesResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._listExpressionTraces(
resourceGroupName,
name,
workflowName,
runName,
actionName,
options
);
let page = result.inputs || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listExpressionTracesNext(
resourceGroupName,
name,
workflowName,
runName,
actionName,
continuationToken,
options
);
continuationToken = result.nextLink;
let page = result.inputs || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *listExpressionTracesPagingAll(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
options?: WorkflowRunActionsListExpressionTracesOptionalParams
): AsyncIterableIterator<ExpressionRoot> {
for await (const page of this.listExpressionTracesPagingPage(
resourceGroupName,
name,
workflowName,
runName,
actionName,
options
)) {
yield* page;
}
}
/**
* Gets a list of workflow run actions.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param options The options parameters.
*/
private _list(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
options?: WorkflowRunActionsListOptionalParams
): Promise<WorkflowRunActionsListResponse> {
return this.client.sendOperationRequest(
{ resourceGroupName, name, workflowName, runName, options },
listOperationSpec
);
}
/**
* Gets a workflow run action.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param actionName The workflow action name.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
options?: WorkflowRunActionsGetOptionalParams
): Promise<WorkflowRunActionsGetResponse> {
return this.client.sendOperationRequest(
{ resourceGroupName, name, workflowName, runName, actionName, options },
getOperationSpec
);
}
/**
* Lists a workflow run expression trace.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param actionName The workflow action name.
* @param options The options parameters.
*/
private _listExpressionTraces(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
options?: WorkflowRunActionsListExpressionTracesOptionalParams
): Promise<WorkflowRunActionsListExpressionTracesResponse> {
return this.client.sendOperationRequest(
{ resourceGroupName, name, workflowName, runName, actionName, options },
listExpressionTracesOperationSpec
);
}
/**
* ListNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
private _listNext(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
nextLink: string,
options?: WorkflowRunActionsListNextOptionalParams
): Promise<WorkflowRunActionsListNextResponse> {
return this.client.sendOperationRequest(
{ resourceGroupName, name, workflowName, runName, nextLink, options },
listNextOperationSpec
);
}
/**
* ListExpressionTracesNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param actionName The workflow action name.
* @param nextLink The nextLink from the previous successful call to the ListExpressionTraces method.
* @param options The options parameters.
*/
private _listExpressionTracesNext(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
nextLink: string,
options?: WorkflowRunActionsListExpressionTracesNextOptionalParams
): Promise<WorkflowRunActionsListExpressionTracesNextResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
name,
workflowName,
runName,
actionName,
nextLink,
options
},
listExpressionTracesNextOperationSpec
);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec: coreClient.OperationSpec = {
path:
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/runs/{runName}/actions",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.WorkflowRunActionListResult
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion, Parameters.top1, Parameters.filter1],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.workflowName,
Parameters.runName
],
headerParameters: [Parameters.accept],
serializer
};
const getOperationSpec: coreClient.OperationSpec = {
path:
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/runs/{runName}/actions/{actionName}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.WorkflowRunAction
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.workflowName,
Parameters.runName,
Parameters.actionName
],
headerParameters: [Parameters.accept],
serializer
};
const listExpressionTracesOperationSpec: coreClient.OperationSpec = {
path:
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/runs/{runName}/actions/{actionName}/listExpressionTraces",
httpMethod: "POST",
responses: {
200: {
bodyMapper: Mappers.ExpressionTraces
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.workflowName,
Parameters.runName,
Parameters.actionName
],
headerParameters: [Parameters.accept],
serializer
};
const listNextOperationSpec: coreClient.OperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.WorkflowRunActionListResult
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion, Parameters.top1, Parameters.filter1],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.nextLink,
Parameters.workflowName,
Parameters.runName
],
headerParameters: [Parameters.accept],
serializer
};
const listExpressionTracesNextOperationSpec: coreClient.OperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ExpressionTraces
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.nextLink,
Parameters.workflowName,
Parameters.runName,
Parameters.actionName
],
headerParameters: [Parameters.accept],
serializer
};
+304
View File
@@ -0,0 +1,304 @@
/*
* 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
import { setContinuationToken } from "../pagingHelper";
import { WorkflowRuns } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import {
WorkflowRun,
WorkflowRunsListNextOptionalParams,
WorkflowRunsListOptionalParams,
WorkflowRunsListResponse,
WorkflowRunsGetOptionalParams,
WorkflowRunsGetResponse,
WorkflowRunsCancelOptionalParams,
WorkflowRunsListNextResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Class containing WorkflowRuns operations. */
export class WorkflowRunsImpl implements WorkflowRuns {
private readonly client: WebSiteManagementClient;
/**
* Initialize a new instance of the class WorkflowRuns class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient) {
this.client = client;
}
/**
* Gets a list of workflow runs.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param options The options parameters.
*/
public list(
resourceGroupName: string,
name: string,
workflowName: string,
options?: WorkflowRunsListOptionalParams
): PagedAsyncIterableIterator<WorkflowRun> {
const iter = this.listPagingAll(
resourceGroupName,
name,
workflowName,
options
);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listPagingPage(
resourceGroupName,
name,
workflowName,
options,
settings
);
}
};
}
private async *listPagingPage(
resourceGroupName: string,
name: string,
workflowName: string,
options?: WorkflowRunsListOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<WorkflowRun[]> {
let result: WorkflowRunsListResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._list(resourceGroupName, name, workflowName, options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listNext(
resourceGroupName,
name,
workflowName,
continuationToken,
options
);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *listPagingAll(
resourceGroupName: string,
name: string,
workflowName: string,
options?: WorkflowRunsListOptionalParams
): AsyncIterableIterator<WorkflowRun> {
for await (const page of this.listPagingPage(
resourceGroupName,
name,
workflowName,
options
)) {
yield* page;
}
}
/**
* Gets a list of workflow runs.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param options The options parameters.
*/
private _list(
resourceGroupName: string,
name: string,
workflowName: string,
options?: WorkflowRunsListOptionalParams
): Promise<WorkflowRunsListResponse> {
return this.client.sendOperationRequest(
{ resourceGroupName, name, workflowName, options },
listOperationSpec
);
}
/**
* Gets a workflow run.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
options?: WorkflowRunsGetOptionalParams
): Promise<WorkflowRunsGetResponse> {
return this.client.sendOperationRequest(
{ resourceGroupName, name, workflowName, runName, options },
getOperationSpec
);
}
/**
* Cancels a workflow run.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param options The options parameters.
*/
cancel(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
options?: WorkflowRunsCancelOptionalParams
): Promise<void> {
return this.client.sendOperationRequest(
{ resourceGroupName, name, workflowName, runName, options },
cancelOperationSpec
);
}
/**
* ListNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
private _listNext(
resourceGroupName: string,
name: string,
workflowName: string,
nextLink: string,
options?: WorkflowRunsListNextOptionalParams
): Promise<WorkflowRunsListNextResponse> {
return this.client.sendOperationRequest(
{ resourceGroupName, name, workflowName, nextLink, options },
listNextOperationSpec
);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec: coreClient.OperationSpec = {
path:
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/runs",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.WorkflowRunListResult
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion, Parameters.top1, Parameters.filter1],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.workflowName
],
headerParameters: [Parameters.accept],
serializer
};
const getOperationSpec: coreClient.OperationSpec = {
path:
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/runs/{runName}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.WorkflowRun
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.workflowName,
Parameters.runName
],
headerParameters: [Parameters.accept],
serializer
};
const cancelOperationSpec: coreClient.OperationSpec = {
path:
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/runs/{runName}/cancel",
httpMethod: "POST",
responses: {
200: {},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.workflowName,
Parameters.runName
],
headerParameters: [Parameters.accept],
serializer
};
const listNextOperationSpec: coreClient.OperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.WorkflowRunListResult
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion, Parameters.top1, Parameters.filter1],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.nextLink,
Parameters.workflowName
],
headerParameters: [Parameters.accept],
serializer
};
@@ -0,0 +1,426 @@
/*
* 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
import { setContinuationToken } from "../pagingHelper";
import { WorkflowTriggerHistories } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
import { LroImpl } from "../lroImpl";
import {
WorkflowTriggerHistory,
WorkflowTriggerHistoriesListNextOptionalParams,
WorkflowTriggerHistoriesListOptionalParams,
WorkflowTriggerHistoriesListResponse,
WorkflowTriggerHistoriesGetOptionalParams,
WorkflowTriggerHistoriesGetResponse,
WorkflowTriggerHistoriesResubmitOptionalParams,
WorkflowTriggerHistoriesListNextResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Class containing WorkflowTriggerHistories operations. */
export class WorkflowTriggerHistoriesImpl implements WorkflowTriggerHistories {
private readonly client: WebSiteManagementClient;
/**
* Initialize a new instance of the class WorkflowTriggerHistories class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient) {
this.client = client;
}
/**
* Gets a list of workflow trigger histories.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param triggerName The workflow trigger name.
* @param options The options parameters.
*/
public list(
resourceGroupName: string,
name: string,
workflowName: string,
triggerName: string,
options?: WorkflowTriggerHistoriesListOptionalParams
): PagedAsyncIterableIterator<WorkflowTriggerHistory> {
const iter = this.listPagingAll(
resourceGroupName,
name,
workflowName,
triggerName,
options
);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listPagingPage(
resourceGroupName,
name,
workflowName,
triggerName,
options,
settings
);
}
};
}
private async *listPagingPage(
resourceGroupName: string,
name: string,
workflowName: string,
triggerName: string,
options?: WorkflowTriggerHistoriesListOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<WorkflowTriggerHistory[]> {
let result: WorkflowTriggerHistoriesListResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._list(
resourceGroupName,
name,
workflowName,
triggerName,
options
);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listNext(
resourceGroupName,
name,
workflowName,
triggerName,
continuationToken,
options
);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *listPagingAll(
resourceGroupName: string,
name: string,
workflowName: string,
triggerName: string,
options?: WorkflowTriggerHistoriesListOptionalParams
): AsyncIterableIterator<WorkflowTriggerHistory> {
for await (const page of this.listPagingPage(
resourceGroupName,
name,
workflowName,
triggerName,
options
)) {
yield* page;
}
}
/**
* Gets a list of workflow trigger histories.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param triggerName The workflow trigger name.
* @param options The options parameters.
*/
private _list(
resourceGroupName: string,
name: string,
workflowName: string,
triggerName: string,
options?: WorkflowTriggerHistoriesListOptionalParams
): Promise<WorkflowTriggerHistoriesListResponse> {
return this.client.sendOperationRequest(
{ resourceGroupName, name, workflowName, triggerName, options },
listOperationSpec
);
}
/**
* Gets a workflow trigger history.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param triggerName The workflow trigger name.
* @param historyName The workflow trigger history name. Corresponds to the run name for triggers that
* resulted in a run.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
name: string,
workflowName: string,
triggerName: string,
historyName: string,
options?: WorkflowTriggerHistoriesGetOptionalParams
): Promise<WorkflowTriggerHistoriesGetResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
name,
workflowName,
triggerName,
historyName,
options
},
getOperationSpec
);
}
/**
* Resubmits a workflow run based on the trigger history.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param triggerName The workflow trigger name.
* @param historyName The workflow trigger history name. Corresponds to the run name for triggers that
* resulted in a run.
* @param options The options parameters.
*/
async beginResubmit(
resourceGroupName: string,
name: string,
workflowName: string,
triggerName: string,
historyName: string,
options?: WorkflowTriggerHistoriesResubmitOptionalParams
): Promise<PollerLike<PollOperationState<void>, void>> {
const directSendOperation = async (
args: coreClient.OperationArguments,
spec: coreClient.OperationSpec
): Promise<void> => {
return this.client.sendOperationRequest(args, spec);
};
const sendOperation = async (
args: coreClient.OperationArguments,
spec: coreClient.OperationSpec
) => {
let currentRawResponse:
| coreClient.FullOperationResponse
| undefined = undefined;
const providedCallback = args.options?.onResponse;
const callback: coreClient.RawResponseCallback = (
rawResponse: coreClient.FullOperationResponse,
flatResponse: unknown
) => {
currentRawResponse = rawResponse;
providedCallback?.(rawResponse, flatResponse);
};
const updatedArgs = {
...args,
options: {
...args.options,
onResponse: callback
}
};
const flatResponse = await directSendOperation(updatedArgs, spec);
return {
flatResponse,
rawResponse: {
statusCode: currentRawResponse!.status,
body: currentRawResponse!.parsedBody,
headers: currentRawResponse!.headers.toJSON()
}
};
};
const lro = new LroImpl(
sendOperation,
{
resourceGroupName,
name,
workflowName,
triggerName,
historyName,
options
},
resubmitOperationSpec
);
const poller = new LroEngine(lro, {
resumeFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
}
/**
* Resubmits a workflow run based on the trigger history.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param triggerName The workflow trigger name.
* @param historyName The workflow trigger history name. Corresponds to the run name for triggers that
* resulted in a run.
* @param options The options parameters.
*/
async beginResubmitAndWait(
resourceGroupName: string,
name: string,
workflowName: string,
triggerName: string,
historyName: string,
options?: WorkflowTriggerHistoriesResubmitOptionalParams
): Promise<void> {
const poller = await this.beginResubmit(
resourceGroupName,
name,
workflowName,
triggerName,
historyName,
options
);
return poller.pollUntilDone();
}
/**
* ListNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param triggerName The workflow trigger name.
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
private _listNext(
resourceGroupName: string,
name: string,
workflowName: string,
triggerName: string,
nextLink: string,
options?: WorkflowTriggerHistoriesListNextOptionalParams
): Promise<WorkflowTriggerHistoriesListNextResponse> {
return this.client.sendOperationRequest(
{ resourceGroupName, name, workflowName, triggerName, nextLink, options },
listNextOperationSpec
);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec: coreClient.OperationSpec = {
path:
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/triggers/{triggerName}/histories",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.WorkflowTriggerHistoryListResult
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion, Parameters.top1, Parameters.filter1],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.workflowName,
Parameters.triggerName
],
headerParameters: [Parameters.accept],
serializer
};
const getOperationSpec: coreClient.OperationSpec = {
path:
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/triggers/{triggerName}/histories/{historyName}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.WorkflowTriggerHistory
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.workflowName,
Parameters.triggerName,
Parameters.historyName
],
headerParameters: [Parameters.accept],
serializer
};
const resubmitOperationSpec: coreClient.OperationSpec = {
path:
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/triggers/{triggerName}/histories/{historyName}/resubmit",
httpMethod: "POST",
responses: {
200: {},
201: {},
202: {},
204: {},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.workflowName,
Parameters.triggerName,
Parameters.historyName
],
headerParameters: [Parameters.accept],
serializer
};
const listNextOperationSpec: coreClient.OperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.WorkflowTriggerHistoryListResult
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion, Parameters.top1, Parameters.filter1],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.nextLink,
Parameters.workflowName,
Parameters.triggerName
],
headerParameters: [Parameters.accept],
serializer
};
+474
View File
@@ -0,0 +1,474 @@
/*
* 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
import { setContinuationToken } from "../pagingHelper";
import { WorkflowTriggers } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
import { LroImpl } from "../lroImpl";
import {
WorkflowTrigger,
WorkflowTriggersListNextOptionalParams,
WorkflowTriggersListOptionalParams,
WorkflowTriggersListResponse,
WorkflowTriggersGetOptionalParams,
WorkflowTriggersGetResponse,
WorkflowTriggersListCallbackUrlOptionalParams,
WorkflowTriggersListCallbackUrlResponse,
WorkflowTriggersRunOptionalParams,
WorkflowTriggersGetSchemaJsonOptionalParams,
WorkflowTriggersGetSchemaJsonResponse,
WorkflowTriggersListNextResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Class containing WorkflowTriggers operations. */
export class WorkflowTriggersImpl implements WorkflowTriggers {
private readonly client: WebSiteManagementClient;
/**
* Initialize a new instance of the class WorkflowTriggers class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient) {
this.client = client;
}
/**
* Gets a list of workflow triggers.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param options The options parameters.
*/
public list(
resourceGroupName: string,
name: string,
workflowName: string,
options?: WorkflowTriggersListOptionalParams
): PagedAsyncIterableIterator<WorkflowTrigger> {
const iter = this.listPagingAll(
resourceGroupName,
name,
workflowName,
options
);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listPagingPage(
resourceGroupName,
name,
workflowName,
options,
settings
);
}
};
}
private async *listPagingPage(
resourceGroupName: string,
name: string,
workflowName: string,
options?: WorkflowTriggersListOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<WorkflowTrigger[]> {
let result: WorkflowTriggersListResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._list(resourceGroupName, name, workflowName, options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listNext(
resourceGroupName,
name,
workflowName,
continuationToken,
options
);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *listPagingAll(
resourceGroupName: string,
name: string,
workflowName: string,
options?: WorkflowTriggersListOptionalParams
): AsyncIterableIterator<WorkflowTrigger> {
for await (const page of this.listPagingPage(
resourceGroupName,
name,
workflowName,
options
)) {
yield* page;
}
}
/**
* Gets a list of workflow triggers.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param options The options parameters.
*/
private _list(
resourceGroupName: string,
name: string,
workflowName: string,
options?: WorkflowTriggersListOptionalParams
): Promise<WorkflowTriggersListResponse> {
return this.client.sendOperationRequest(
{ resourceGroupName, name, workflowName, options },
listOperationSpec
);
}
/**
* Gets a workflow trigger.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param triggerName The workflow trigger name.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
name: string,
workflowName: string,
triggerName: string,
options?: WorkflowTriggersGetOptionalParams
): Promise<WorkflowTriggersGetResponse> {
return this.client.sendOperationRequest(
{ resourceGroupName, name, workflowName, triggerName, options },
getOperationSpec
);
}
/**
* Get the callback URL for a workflow trigger.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param triggerName The workflow trigger name.
* @param options The options parameters.
*/
listCallbackUrl(
resourceGroupName: string,
name: string,
workflowName: string,
triggerName: string,
options?: WorkflowTriggersListCallbackUrlOptionalParams
): Promise<WorkflowTriggersListCallbackUrlResponse> {
return this.client.sendOperationRequest(
{ resourceGroupName, name, workflowName, triggerName, options },
listCallbackUrlOperationSpec
);
}
/**
* Runs a workflow trigger.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param triggerName The workflow trigger name.
* @param options The options parameters.
*/
async beginRun(
resourceGroupName: string,
name: string,
workflowName: string,
triggerName: string,
options?: WorkflowTriggersRunOptionalParams
): Promise<PollerLike<PollOperationState<void>, void>> {
const directSendOperation = async (
args: coreClient.OperationArguments,
spec: coreClient.OperationSpec
): Promise<void> => {
return this.client.sendOperationRequest(args, spec);
};
const sendOperation = async (
args: coreClient.OperationArguments,
spec: coreClient.OperationSpec
) => {
let currentRawResponse:
| coreClient.FullOperationResponse
| undefined = undefined;
const providedCallback = args.options?.onResponse;
const callback: coreClient.RawResponseCallback = (
rawResponse: coreClient.FullOperationResponse,
flatResponse: unknown
) => {
currentRawResponse = rawResponse;
providedCallback?.(rawResponse, flatResponse);
};
const updatedArgs = {
...args,
options: {
...args.options,
onResponse: callback
}
};
const flatResponse = await directSendOperation(updatedArgs, spec);
return {
flatResponse,
rawResponse: {
statusCode: currentRawResponse!.status,
body: currentRawResponse!.parsedBody,
headers: currentRawResponse!.headers.toJSON()
}
};
};
const lro = new LroImpl(
sendOperation,
{ resourceGroupName, name, workflowName, triggerName, options },
runOperationSpec
);
const poller = new LroEngine(lro, {
resumeFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
}
/**
* Runs a workflow trigger.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param triggerName The workflow trigger name.
* @param options The options parameters.
*/
async beginRunAndWait(
resourceGroupName: string,
name: string,
workflowName: string,
triggerName: string,
options?: WorkflowTriggersRunOptionalParams
): Promise<void> {
const poller = await this.beginRun(
resourceGroupName,
name,
workflowName,
triggerName,
options
);
return poller.pollUntilDone();
}
/**
* Get the trigger schema as JSON.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param triggerName The workflow trigger name.
* @param options The options parameters.
*/
getSchemaJson(
resourceGroupName: string,
name: string,
workflowName: string,
triggerName: string,
options?: WorkflowTriggersGetSchemaJsonOptionalParams
): Promise<WorkflowTriggersGetSchemaJsonResponse> {
return this.client.sendOperationRequest(
{ resourceGroupName, name, workflowName, triggerName, options },
getSchemaJsonOperationSpec
);
}
/**
* ListNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
private _listNext(
resourceGroupName: string,
name: string,
workflowName: string,
nextLink: string,
options?: WorkflowTriggersListNextOptionalParams
): Promise<WorkflowTriggersListNextResponse> {
return this.client.sendOperationRequest(
{ resourceGroupName, name, workflowName, nextLink, options },
listNextOperationSpec
);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec: coreClient.OperationSpec = {
path:
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/triggers",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.WorkflowTriggerListResult
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion, Parameters.top1, Parameters.filter1],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.workflowName
],
headerParameters: [Parameters.accept],
serializer
};
const getOperationSpec: coreClient.OperationSpec = {
path:
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/triggers/{triggerName}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.WorkflowTrigger
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.workflowName,
Parameters.triggerName
],
headerParameters: [Parameters.accept],
serializer
};
const listCallbackUrlOperationSpec: coreClient.OperationSpec = {
path:
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/triggers/{triggerName}/listCallbackUrl",
httpMethod: "POST",
responses: {
200: {
bodyMapper: Mappers.WorkflowTriggerCallbackUrl
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.workflowName,
Parameters.triggerName
],
headerParameters: [Parameters.accept],
serializer
};
const runOperationSpec: coreClient.OperationSpec = {
path:
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/triggers/{triggerName}/run",
httpMethod: "POST",
responses: {
200: {},
201: {},
202: {},
204: {},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.workflowName,
Parameters.triggerName
],
headerParameters: [Parameters.accept],
serializer
};
const getSchemaJsonOperationSpec: coreClient.OperationSpec = {
path:
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/triggers/{triggerName}/schemas/json",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.JsonSchema
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.workflowName,
Parameters.triggerName
],
headerParameters: [Parameters.accept],
serializer
};
const listNextOperationSpec: coreClient.OperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.WorkflowTriggerListResult
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion, Parameters.top1, Parameters.filter1],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.nextLink,
Parameters.workflowName
],
headerParameters: [Parameters.accept],
serializer
};
+260
View File
@@ -0,0 +1,260 @@
/*
* 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
import { setContinuationToken } from "../pagingHelper";
import { WorkflowVersions } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import {
WorkflowVersion,
WorkflowVersionsListNextOptionalParams,
WorkflowVersionsListOptionalParams,
WorkflowVersionsListResponse,
WorkflowVersionsGetOptionalParams,
WorkflowVersionsGetResponse,
WorkflowVersionsListNextResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Class containing WorkflowVersions operations. */
export class WorkflowVersionsImpl implements WorkflowVersions {
private readonly client: WebSiteManagementClient;
/**
* Initialize a new instance of the class WorkflowVersions class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient) {
this.client = client;
}
/**
* Gets a list of workflow versions.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param options The options parameters.
*/
public list(
resourceGroupName: string,
name: string,
workflowName: string,
options?: WorkflowVersionsListOptionalParams
): PagedAsyncIterableIterator<WorkflowVersion> {
const iter = this.listPagingAll(
resourceGroupName,
name,
workflowName,
options
);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listPagingPage(
resourceGroupName,
name,
workflowName,
options,
settings
);
}
};
}
private async *listPagingPage(
resourceGroupName: string,
name: string,
workflowName: string,
options?: WorkflowVersionsListOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<WorkflowVersion[]> {
let result: WorkflowVersionsListResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._list(resourceGroupName, name, workflowName, options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listNext(
resourceGroupName,
name,
workflowName,
continuationToken,
options
);
continuationToken = result.nextLink;
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}
}
private async *listPagingAll(
resourceGroupName: string,
name: string,
workflowName: string,
options?: WorkflowVersionsListOptionalParams
): AsyncIterableIterator<WorkflowVersion> {
for await (const page of this.listPagingPage(
resourceGroupName,
name,
workflowName,
options
)) {
yield* page;
}
}
/**
* Gets a list of workflow versions.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param options The options parameters.
*/
private _list(
resourceGroupName: string,
name: string,
workflowName: string,
options?: WorkflowVersionsListOptionalParams
): Promise<WorkflowVersionsListResponse> {
return this.client.sendOperationRequest(
{ resourceGroupName, name, workflowName, options },
listOperationSpec
);
}
/**
* Gets a workflow version.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param versionId The workflow versionId.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
name: string,
workflowName: string,
versionId: string,
options?: WorkflowVersionsGetOptionalParams
): Promise<WorkflowVersionsGetResponse> {
return this.client.sendOperationRequest(
{ resourceGroupName, name, workflowName, versionId, options },
getOperationSpec
);
}
/**
* ListNext
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
private _listNext(
resourceGroupName: string,
name: string,
workflowName: string,
nextLink: string,
options?: WorkflowVersionsListNextOptionalParams
): Promise<WorkflowVersionsListNextResponse> {
return this.client.sendOperationRequest(
{ resourceGroupName, name, workflowName, nextLink, options },
listNextOperationSpec
);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec: coreClient.OperationSpec = {
path:
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/versions",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.WorkflowVersionListResult
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion, Parameters.top1],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.workflowName
],
headerParameters: [Parameters.accept],
serializer
};
const getOperationSpec: coreClient.OperationSpec = {
path:
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/versions/{versionId}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.WorkflowVersion
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.workflowName,
Parameters.versionId
],
headerParameters: [Parameters.accept],
serializer
};
const listNextOperationSpec: coreClient.OperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.WorkflowVersionListResult
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion, Parameters.top1],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.nextLink,
Parameters.workflowName
],
headerParameters: [Parameters.accept],
serializer
};
+123
View File
@@ -0,0 +1,123 @@
/*
* 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 { Workflows } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { WebSiteManagementClient } from "../webSiteManagementClient";
import {
RegenerateActionParameter,
WorkflowsRegenerateAccessKeyOptionalParams,
Workflow,
WorkflowsValidateOptionalParams
} from "../models";
/** Class containing Workflows operations. */
export class WorkflowsImpl implements Workflows {
private readonly client: WebSiteManagementClient;
/**
* Initialize a new instance of the class Workflows class.
* @param client Reference to the service client
*/
constructor(client: WebSiteManagementClient) {
this.client = client;
}
/**
* Regenerates the callback URL access key for request triggers.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param keyType The access key type.
* @param options The options parameters.
*/
regenerateAccessKey(
resourceGroupName: string,
name: string,
workflowName: string,
keyType: RegenerateActionParameter,
options?: WorkflowsRegenerateAccessKeyOptionalParams
): Promise<void> {
return this.client.sendOperationRequest(
{ resourceGroupName, name, workflowName, keyType, options },
regenerateAccessKeyOperationSpec
);
}
/**
* Validates the workflow definition.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param validate The workflow.
* @param options The options parameters.
*/
validate(
resourceGroupName: string,
name: string,
workflowName: string,
validate: Workflow,
options?: WorkflowsValidateOptionalParams
): Promise<void> {
return this.client.sendOperationRequest(
{ resourceGroupName, name, workflowName, validate, options },
validateOperationSpec
);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const regenerateAccessKeyOperationSpec: coreClient.OperationSpec = {
path:
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/regenerateAccessKey",
httpMethod: "POST",
responses: {
200: {},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
requestBody: Parameters.keyType1,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.workflowName
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const validateOperationSpec: coreClient.OperationSpec = {
path:
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/validate",
httpMethod: "POST",
responses: {
200: {},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
requestBody: Parameters.validate,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.name,
Parameters.workflowName
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
@@ -0,0 +1,339 @@
/*
* 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 { PagedAsyncIterableIterator } from "@azure/core-paging";
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";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a AppServiceCertificateOrders. */
export interface AppServiceCertificateOrders {
/**
* Description for List all certificate orders in a subscription.
* @param options The options parameters.
*/
list(
options?: AppServiceCertificateOrdersListOptionalParams
): PagedAsyncIterableIterator<AppServiceCertificateOrder>;
/**
* 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>;
/**
* 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>;
/**
* 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 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 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
>;
}
@@ -0,0 +1,805 @@
/*
* 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 { PagedAsyncIterableIterator } from "@azure/core-paging";
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";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a AppServiceEnvironments. */
export interface AppServiceEnvironments {
/**
* Description for Get all App Service Environments for a subscription.
* @param options The options parameters.
*/
list(
options?: AppServiceEnvironmentsListOptionalParams
): PagedAsyncIterableIterator<AppServiceEnvironmentResource>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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 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>;
/**
* 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 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>;
/**
* 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 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 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 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>;
}
@@ -0,0 +1,432 @@
/*
* 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 { PagedAsyncIterableIterator } from "@azure/core-paging";
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";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a AppServicePlans. */
export interface AppServicePlans {
/**
* Description for Get all App Service plans for a subscription.
* @param options The options parameters.
*/
list(
options?: AppServicePlansListOptionalParams
): PagedAsyncIterableIterator<AppServicePlan>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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 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 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 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 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>;
}
@@ -0,0 +1,46 @@
/*
* 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 { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
DetectorResponse,
CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponseOptionalParams,
CertificateOrdersDiagnosticsGetAppServiceCertificateOrderDetectorResponseOptionalParams,
CertificateOrdersDiagnosticsGetAppServiceCertificateOrderDetectorResponseResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a CertificateOrdersDiagnostics. */
export interface CertificateOrdersDiagnostics {
/**
* 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>;
/**
* 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
>;
}
@@ -0,0 +1,26 @@
/*
* 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 { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
CsmOperationDescription,
CertificateRegistrationProviderListOperationsOptionalParams
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a CertificateRegistrationProvider. */
export interface CertificateRegistrationProvider {
/**
* 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>;
}
@@ -0,0 +1,91 @@
/*
* 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 { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
Certificate,
CertificatesListOptionalParams,
CertificatesListByResourceGroupOptionalParams,
CertificatesGetOptionalParams,
CertificatesGetResponse,
CertificatesCreateOrUpdateOptionalParams,
CertificatesCreateOrUpdateResponse,
CertificatesDeleteOptionalParams,
CertificatePatchResource,
CertificatesUpdateOptionalParams,
CertificatesUpdateResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a Certificates. */
export interface Certificates {
/**
* Description for Get all certificates for a subscription.
* @param options The options parameters.
*/
list(
options?: CertificatesListOptionalParams
): PagedAsyncIterableIterator<Certificate>;
/**
* 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>;
/**
* 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>;
}
@@ -0,0 +1,116 @@
/*
* 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 { PagedAsyncIterableIterator } from "@azure/core-paging";
import { PollerLike, PollOperationState } from "@azure/core-lro";
import {
ContainerApp,
ContainerAppsListBySubscriptionOptionalParams,
ContainerAppsListByResourceGroupOptionalParams,
ContainerAppsGetOptionalParams,
ContainerAppsGetResponse,
ContainerAppsCreateOrUpdateOptionalParams,
ContainerAppsCreateOrUpdateResponse,
ContainerAppsDeleteOptionalParams,
ContainerAppsListSecretsOptionalParams,
ContainerAppsListSecretsResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a ContainerApps. */
export interface ContainerApps {
/**
* Get the Container Apps in a given subscription.
* @param options The options parameters.
*/
listBySubscription(
options?: ContainerAppsListBySubscriptionOptionalParams
): PagedAsyncIterableIterator<ContainerApp>;
/**
* 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>;
/**
* 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>;
}
@@ -0,0 +1,86 @@
/*
* 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 { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
Revision,
ContainerAppsRevisionsListRevisionsOptionalParams,
ContainerAppsRevisionsGetRevisionOptionalParams,
ContainerAppsRevisionsGetRevisionResponse,
ContainerAppsRevisionsActivateRevisionOptionalParams,
ContainerAppsRevisionsDeactivateRevisionOptionalParams,
ContainerAppsRevisionsRestartRevisionOptionalParams
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a ContainerAppsRevisions. */
export interface ContainerAppsRevisions {
/**
* 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>;
/**
* 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>;
}
@@ -0,0 +1,48 @@
/*
* 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 { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
DeletedSite,
DeletedWebAppsListOptionalParams,
DeletedWebAppsListByLocationOptionalParams,
DeletedWebAppsGetDeletedWebAppByLocationOptionalParams,
DeletedWebAppsGetDeletedWebAppByLocationResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a DeletedWebApps. */
export interface DeletedWebApps {
/**
* Description for Get all deleted apps for a subscription.
* @param options The options parameters.
*/
list(
options?: DeletedWebAppsListOptionalParams
): PagedAsyncIterableIterator<DeletedSite>;
/**
* 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>;
/**
* 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>;
}
@@ -0,0 +1,367 @@
/*
* 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 { PagedAsyncIterableIterator } from "@azure/core-paging";
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";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a Diagnostics. */
export interface Diagnostics {
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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 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 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 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 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 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 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 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 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>;
}
@@ -0,0 +1,26 @@
/*
* 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 { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
CsmOperationDescription,
DomainRegistrationProviderListOperationsOptionalParams
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a DomainRegistrationProvider. */
export interface DomainRegistrationProvider {
/**
* 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>;
}
+243
View File
@@ -0,0 +1,243 @@
/*
* 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 { PagedAsyncIterableIterator } from "@azure/core-paging";
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";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a Domains. */
export interface Domains {
/**
* Description for Get all domains in a subscription.
* @param options The options parameters.
*/
list(options?: DomainsListOptionalParams): PagedAsyncIterableIterator<Domain>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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 Generate a single sign-on request for the domain management portal.
* @param options The options parameters.
*/
getControlCenterSsoRequest(
options?: DomainsGetControlCenterSsoRequestOptionalParams
): Promise<DomainsGetControlCenterSsoRequestResponse>;
/**
* 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 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>;
}
+48
View File
@@ -0,0 +1,48 @@
/*
* 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 {
GlobalGetDeletedWebAppOptionalParams,
GlobalGetDeletedWebAppResponse,
GlobalGetDeletedWebAppSnapshotsOptionalParams,
GlobalGetDeletedWebAppSnapshotsResponse,
GlobalGetSubscriptionOperationWithAsyncResponseOptionalParams
} from "../models";
/** Interface representing a Global. */
export interface Global {
/**
* 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>;
}
+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";
@@ -0,0 +1,121 @@
/*
* 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 { PagedAsyncIterableIterator } from "@azure/core-paging";
import { PollerLike, PollOperationState } from "@azure/core-lro";
import {
KubeEnvironment,
KubeEnvironmentsListBySubscriptionOptionalParams,
KubeEnvironmentsListByResourceGroupOptionalParams,
KubeEnvironmentsGetOptionalParams,
KubeEnvironmentsGetResponse,
KubeEnvironmentsCreateOrUpdateOptionalParams,
KubeEnvironmentsCreateOrUpdateResponse,
KubeEnvironmentsDeleteOptionalParams,
KubeEnvironmentPatchResource,
KubeEnvironmentsUpdateOptionalParams,
KubeEnvironmentsUpdateResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a KubeEnvironments. */
export interface KubeEnvironments {
/**
* Description for Get all Kubernetes Environments for a subscription.
* @param options The options parameters.
*/
listBySubscription(
options?: KubeEnvironmentsListBySubscriptionOptionalParams
): PagedAsyncIterableIterator<KubeEnvironment>;
/**
* 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>;
/**
* 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>;
}
@@ -0,0 +1,81 @@
/*
* 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 { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
ApplicationStackResource,
ProviderGetAvailableStacksOptionalParams,
FunctionAppStack,
ProviderGetFunctionAppStacksOptionalParams,
ProviderGetFunctionAppStacksForLocationOptionalParams,
WebAppStack,
ProviderGetWebAppStacksForLocationOptionalParams,
CsmOperationDescription,
ProviderListOperationsOptionalParams,
ProviderGetWebAppStacksOptionalParams,
ProviderGetAvailableStacksOnPremOptionalParams
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a Provider. */
export interface Provider {
/**
* Description for Get available application frameworks and their versions
* @param options The options parameters.
*/
listAvailableStacks(
options?: ProviderGetAvailableStacksOptionalParams
): PagedAsyncIterableIterator<ApplicationStackResource>;
/**
* Description for Get available Function app frameworks and their versions
* @param options The options parameters.
*/
listFunctionAppStacks(
options?: ProviderGetFunctionAppStacksOptionalParams
): PagedAsyncIterableIterator<FunctionAppStack>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* Description for Get available Web app frameworks and their versions
* @param options The options parameters.
*/
listWebAppStacks(
options?: ProviderGetWebAppStacksOptionalParams
): PagedAsyncIterableIterator<WebAppStack>;
/**
* Description for Get available application frameworks and their versions
* @param options The options parameters.
*/
listAvailableStacksOnPrem(
options?: ProviderGetAvailableStacksOnPremOptionalParams
): PagedAsyncIterableIterator<ApplicationStackResource>;
}
@@ -0,0 +1,203 @@
/*
* 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 { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
Recommendation,
RecommendationsListOptionalParams,
RecommendationsListHistoryForHostingEnvironmentOptionalParams,
RecommendationsListRecommendedRulesForHostingEnvironmentOptionalParams,
RecommendationsListHistoryForWebAppOptionalParams,
RecommendationsListRecommendedRulesForWebAppOptionalParams,
RecommendationsResetAllFiltersOptionalParams,
RecommendationsDisableRecommendationForSubscriptionOptionalParams,
RecommendationsDisableAllForHostingEnvironmentOptionalParams,
RecommendationsResetAllFiltersForHostingEnvironmentOptionalParams,
RecommendationsGetRuleDetailsByHostingEnvironmentOptionalParams,
RecommendationsGetRuleDetailsByHostingEnvironmentResponse,
RecommendationsDisableRecommendationForHostingEnvironmentOptionalParams,
RecommendationsDisableAllForWebAppOptionalParams,
RecommendationsResetAllFiltersForWebAppOptionalParams,
RecommendationsGetRuleDetailsByWebAppOptionalParams,
RecommendationsGetRuleDetailsByWebAppResponse,
RecommendationsDisableRecommendationForSiteOptionalParams
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a Recommendations. */
export interface Recommendations {
/**
* Description for List all recommendations for a subscription.
* @param options The options parameters.
*/
list(
options?: RecommendationsListOptionalParams
): PagedAsyncIterableIterator<Recommendation>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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 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 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>;
}
@@ -0,0 +1,92 @@
/*
* 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 { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
ResourceHealthMetadata,
ResourceHealthMetadataListOptionalParams,
ResourceHealthMetadataListByResourceGroupOptionalParams,
ResourceHealthMetadataListBySiteOptionalParams,
ResourceHealthMetadataListBySiteSlotOptionalParams,
ResourceHealthMetadataGetBySiteOptionalParams,
ResourceHealthMetadataGetBySiteResponse,
ResourceHealthMetadataGetBySiteSlotOptionalParams,
ResourceHealthMetadataGetBySiteSlotResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a ResourceHealthMetadataOperations. */
export interface ResourceHealthMetadataOperations {
/**
* Description for List all ResourceHealthMetadata for all sites in the subscription.
* @param options The options parameters.
*/
list(
options?: ResourceHealthMetadataListOptionalParams
): PagedAsyncIterableIterator<ResourceHealthMetadata>;
/**
* 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>;
/**
* 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>;
/**
* 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>;
/**
* 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
* @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>;
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,50 @@
/*
* 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 { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
TopLevelDomain,
TopLevelDomainsListOptionalParams,
TldLegalAgreement,
TopLevelDomainAgreementOption,
TopLevelDomainsListAgreementsOptionalParams,
TopLevelDomainsGetOptionalParams,
TopLevelDomainsGetResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a TopLevelDomains. */
export interface TopLevelDomains {
/**
* Description for Get all top-level domains supported for registration.
* @param options The options parameters.
*/
list(
options?: TopLevelDomainsListOptionalParams
): PagedAsyncIterableIterator<TopLevelDomain>;
/**
* 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>;
/**
* 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>;
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,77 @@
/*
* 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 { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
WorkflowRunActionRepetitionDefinition,
WorkflowRunActionRepetitionsListOptionalParams,
ExpressionRoot,
WorkflowRunActionRepetitionsListExpressionTracesOptionalParams,
WorkflowRunActionRepetitionsGetOptionalParams,
WorkflowRunActionRepetitionsGetResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a WorkflowRunActionRepetitions. */
export interface WorkflowRunActionRepetitions {
/**
* Get all of a workflow run action repetitions.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param actionName The workflow action name.
* @param options The options parameters.
*/
list(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
options?: WorkflowRunActionRepetitionsListOptionalParams
): PagedAsyncIterableIterator<WorkflowRunActionRepetitionDefinition>;
/**
* Lists a workflow run expression trace.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param actionName The workflow action name.
* @param repetitionName The workflow repetition.
* @param options The options parameters.
*/
listExpressionTraces(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
repetitionName: string,
options?: WorkflowRunActionRepetitionsListExpressionTracesOptionalParams
): PagedAsyncIterableIterator<ExpressionRoot>;
/**
* Get a workflow run action repetition.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param actionName The workflow action name.
* @param repetitionName The workflow repetition.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
repetitionName: string,
options?: WorkflowRunActionRepetitionsGetOptionalParams
): Promise<WorkflowRunActionRepetitionsGetResponse>;
}
@@ -0,0 +1,60 @@
/*
* 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 { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
RequestHistory,
WorkflowRunActionRepetitionsRequestHistoriesListOptionalParams,
WorkflowRunActionRepetitionsRequestHistoriesGetOptionalParams,
WorkflowRunActionRepetitionsRequestHistoriesGetResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a WorkflowRunActionRepetitionsRequestHistories. */
export interface WorkflowRunActionRepetitionsRequestHistories {
/**
* List a workflow run repetition request history.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param actionName The workflow action name.
* @param repetitionName The workflow repetition.
* @param options The options parameters.
*/
list(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
repetitionName: string,
options?: WorkflowRunActionRepetitionsRequestHistoriesListOptionalParams
): PagedAsyncIterableIterator<RequestHistory>;
/**
* Gets a workflow run repetition request history.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param actionName The workflow action name.
* @param repetitionName The workflow repetition.
* @param requestHistoryName The request history name.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
repetitionName: string,
requestHistoryName: string,
options?: WorkflowRunActionRepetitionsRequestHistoriesGetOptionalParams
): Promise<WorkflowRunActionRepetitionsRequestHistoriesGetResponse>;
}
@@ -0,0 +1,56 @@
/*
* 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 { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
WorkflowRunActionRepetitionDefinition,
WorkflowRunActionScopeRepetitionsListOptionalParams,
WorkflowRunActionScopeRepetitionsGetOptionalParams,
WorkflowRunActionScopeRepetitionsGetResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a WorkflowRunActionScopeRepetitions. */
export interface WorkflowRunActionScopeRepetitions {
/**
* List the workflow run action scoped repetitions.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param actionName The workflow action name.
* @param options The options parameters.
*/
list(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
options?: WorkflowRunActionScopeRepetitionsListOptionalParams
): PagedAsyncIterableIterator<WorkflowRunActionRepetitionDefinition>;
/**
* Get a workflow run action scoped repetition.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param actionName The workflow action name.
* @param repetitionName The workflow repetition.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
repetitionName: string,
options?: WorkflowRunActionScopeRepetitionsGetOptionalParams
): Promise<WorkflowRunActionScopeRepetitionsGetResponse>;
}
@@ -0,0 +1,71 @@
/*
* 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 { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
WorkflowRunAction,
WorkflowRunActionsListOptionalParams,
ExpressionRoot,
WorkflowRunActionsListExpressionTracesOptionalParams,
WorkflowRunActionsGetOptionalParams,
WorkflowRunActionsGetResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a WorkflowRunActions. */
export interface WorkflowRunActions {
/**
* Gets a list of workflow run actions.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param options The options parameters.
*/
list(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
options?: WorkflowRunActionsListOptionalParams
): PagedAsyncIterableIterator<WorkflowRunAction>;
/**
* Lists a workflow run expression trace.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param actionName The workflow action name.
* @param options The options parameters.
*/
listExpressionTraces(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
options?: WorkflowRunActionsListExpressionTracesOptionalParams
): PagedAsyncIterableIterator<ExpressionRoot>;
/**
* Gets a workflow run action.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param actionName The workflow action name.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
actionName: string,
options?: WorkflowRunActionsGetOptionalParams
): Promise<WorkflowRunActionsGetResponse>;
}
@@ -0,0 +1,64 @@
/*
* 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 { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
WorkflowRun,
WorkflowRunsListOptionalParams,
WorkflowRunsGetOptionalParams,
WorkflowRunsGetResponse,
WorkflowRunsCancelOptionalParams
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a WorkflowRuns. */
export interface WorkflowRuns {
/**
* Gets a list of workflow runs.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param options The options parameters.
*/
list(
resourceGroupName: string,
name: string,
workflowName: string,
options?: WorkflowRunsListOptionalParams
): PagedAsyncIterableIterator<WorkflowRun>;
/**
* Gets a workflow run.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
options?: WorkflowRunsGetOptionalParams
): Promise<WorkflowRunsGetResponse>;
/**
* Cancels a workflow run.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param runName The workflow run name.
* @param options The options parameters.
*/
cancel(
resourceGroupName: string,
name: string,
workflowName: string,
runName: string,
options?: WorkflowRunsCancelOptionalParams
): Promise<void>;
}
@@ -0,0 +1,91 @@
/*
* 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 { PagedAsyncIterableIterator } from "@azure/core-paging";
import { PollerLike, PollOperationState } from "@azure/core-lro";
import {
WorkflowTriggerHistory,
WorkflowTriggerHistoriesListOptionalParams,
WorkflowTriggerHistoriesGetOptionalParams,
WorkflowTriggerHistoriesGetResponse,
WorkflowTriggerHistoriesResubmitOptionalParams
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a WorkflowTriggerHistories. */
export interface WorkflowTriggerHistories {
/**
* Gets a list of workflow trigger histories.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param triggerName The workflow trigger name.
* @param options The options parameters.
*/
list(
resourceGroupName: string,
name: string,
workflowName: string,
triggerName: string,
options?: WorkflowTriggerHistoriesListOptionalParams
): PagedAsyncIterableIterator<WorkflowTriggerHistory>;
/**
* Gets a workflow trigger history.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param triggerName The workflow trigger name.
* @param historyName The workflow trigger history name. Corresponds to the run name for triggers that
* resulted in a run.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
name: string,
workflowName: string,
triggerName: string,
historyName: string,
options?: WorkflowTriggerHistoriesGetOptionalParams
): Promise<WorkflowTriggerHistoriesGetResponse>;
/**
* Resubmits a workflow run based on the trigger history.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param triggerName The workflow trigger name.
* @param historyName The workflow trigger history name. Corresponds to the run name for triggers that
* resulted in a run.
* @param options The options parameters.
*/
beginResubmit(
resourceGroupName: string,
name: string,
workflowName: string,
triggerName: string,
historyName: string,
options?: WorkflowTriggerHistoriesResubmitOptionalParams
): Promise<PollerLike<PollOperationState<void>, void>>;
/**
* Resubmits a workflow run based on the trigger history.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param triggerName The workflow trigger name.
* @param historyName The workflow trigger history name. Corresponds to the run name for triggers that
* resulted in a run.
* @param options The options parameters.
*/
beginResubmitAndWait(
resourceGroupName: string,
name: string,
workflowName: string,
triggerName: string,
historyName: string,
options?: WorkflowTriggerHistoriesResubmitOptionalParams
): Promise<void>;
}
@@ -0,0 +1,114 @@
/*
* 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 { PagedAsyncIterableIterator } from "@azure/core-paging";
import { PollerLike, PollOperationState } from "@azure/core-lro";
import {
WorkflowTrigger,
WorkflowTriggersListOptionalParams,
WorkflowTriggersGetOptionalParams,
WorkflowTriggersGetResponse,
WorkflowTriggersListCallbackUrlOptionalParams,
WorkflowTriggersListCallbackUrlResponse,
WorkflowTriggersRunOptionalParams,
WorkflowTriggersGetSchemaJsonOptionalParams,
WorkflowTriggersGetSchemaJsonResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a WorkflowTriggers. */
export interface WorkflowTriggers {
/**
* Gets a list of workflow triggers.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param options The options parameters.
*/
list(
resourceGroupName: string,
name: string,
workflowName: string,
options?: WorkflowTriggersListOptionalParams
): PagedAsyncIterableIterator<WorkflowTrigger>;
/**
* Gets a workflow trigger.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param triggerName The workflow trigger name.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
name: string,
workflowName: string,
triggerName: string,
options?: WorkflowTriggersGetOptionalParams
): Promise<WorkflowTriggersGetResponse>;
/**
* Get the callback URL for a workflow trigger.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param triggerName The workflow trigger name.
* @param options The options parameters.
*/
listCallbackUrl(
resourceGroupName: string,
name: string,
workflowName: string,
triggerName: string,
options?: WorkflowTriggersListCallbackUrlOptionalParams
): Promise<WorkflowTriggersListCallbackUrlResponse>;
/**
* Runs a workflow trigger.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param triggerName The workflow trigger name.
* @param options The options parameters.
*/
beginRun(
resourceGroupName: string,
name: string,
workflowName: string,
triggerName: string,
options?: WorkflowTriggersRunOptionalParams
): Promise<PollerLike<PollOperationState<void>, void>>;
/**
* Runs a workflow trigger.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param triggerName The workflow trigger name.
* @param options The options parameters.
*/
beginRunAndWait(
resourceGroupName: string,
name: string,
workflowName: string,
triggerName: string,
options?: WorkflowTriggersRunOptionalParams
): Promise<void>;
/**
* Get the trigger schema as JSON.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param triggerName The workflow trigger name.
* @param options The options parameters.
*/
getSchemaJson(
resourceGroupName: string,
name: string,
workflowName: string,
triggerName: string,
options?: WorkflowTriggersGetSchemaJsonOptionalParams
): Promise<WorkflowTriggersGetSchemaJsonResponse>;
}
@@ -0,0 +1,48 @@
/*
* 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 { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
WorkflowVersion,
WorkflowVersionsListOptionalParams,
WorkflowVersionsGetOptionalParams,
WorkflowVersionsGetResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a WorkflowVersions. */
export interface WorkflowVersions {
/**
* Gets a list of workflow versions.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param options The options parameters.
*/
list(
resourceGroupName: string,
name: string,
workflowName: string,
options?: WorkflowVersionsListOptionalParams
): PagedAsyncIterableIterator<WorkflowVersion>;
/**
* Gets a workflow version.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param versionId The workflow versionId.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
name: string,
workflowName: string,
versionId: string,
options?: WorkflowVersionsGetOptionalParams
): Promise<WorkflowVersionsGetResponse>;
}
@@ -0,0 +1,48 @@
/*
* 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 {
RegenerateActionParameter,
WorkflowsRegenerateAccessKeyOptionalParams,
Workflow,
WorkflowsValidateOptionalParams
} from "../models";
/** Interface representing a Workflows. */
export interface Workflows {
/**
* Regenerates the callback URL access key for request triggers.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param keyType The access key type.
* @param options The options parameters.
*/
regenerateAccessKey(
resourceGroupName: string,
name: string,
workflowName: string,
keyType: RegenerateActionParameter,
options?: WorkflowsRegenerateAccessKeyOptionalParams
): Promise<void>;
/**
* Validates the workflow definition.
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param workflowName The workflow name.
* @param validate The workflow.
* @param options The options parameters.
*/
validate(
resourceGroupName: string,
name: string,
workflowName: string,
validate: Workflow,
options?: WorkflowsValidateOptionalParams
): Promise<void>;
}
+39
View File
@@ -0,0 +1,39 @@
/*
* 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 interface PageInfo {
continuationToken?: string;
}
const pageMap = new WeakMap<object, PageInfo>();
/**
* Given a result page from a pageable operation, returns a
* continuation token that can be used to begin paging from
* that point later.
* @param page A result object from calling .byPage() on a paged operation.
* @returns The continuation token that can be passed into byPage().
*/
export function getContinuationToken(page: unknown): string | undefined {
if (typeof page !== "object" || page === null) {
return undefined;
}
return pageMap.get(page)?.continuationToken;
}
export function setContinuationToken(
page: unknown,
continuationToken: string | undefined
): void {
if (typeof page !== "object" || page === null || !continuationToken) {
return;
}
const pageInfo = pageMap.get(page) ?? {};
pageInfo.continuationToken = continuationToken;
pageMap.set(page, pageInfo);
}
File diff suppressed because it is too large Load Diff