diff --git a/packages/@azure/applicationinsights-query/.npmignore b/packages/@azure/applicationinsights-query/.npmignore
deleted file mode 100644
index a07a455ac10c..000000000000
--- a/packages/@azure/applicationinsights-query/.npmignore
+++ /dev/null
@@ -1,35 +0,0 @@
-#git
-.git
-.gitignore
-#gulp
-gulpfile.js
-#documentation
-doc/
-docs/
-#dependencies
-node_modules/
-#samples
-sample/
-samples/
-#tests
-test/
-tests/
-coverage/
-#tools and scripts
-tools/
-scripts/
-#IDE settings
-*.sln
-.vscode/
-.idea
-.editorconfig
-.ntvs_analysis.*
-#build tools
-.travis.yml
-.jenkins.yml
-.codeclimate.yml
-appveyor.yml
-# Nuget packages #
-.nuget/
-packages/
-packages.config
diff --git a/packages/@azure/applicationinsights-query/README.md b/packages/@azure/applicationinsights-query/README.md
index 8e9cf468858a..5eb513ac6934 100644
--- a/packages/@azure/applicationinsights-query/README.md
+++ b/packages/@azure/applicationinsights-query/README.md
@@ -1,26 +1,33 @@
-# An isomorphic javascript sdk for - ApplicationInsightsDataClient
-This project provides an isomorphic javascript package. Right now it supports:
-- node.js version 6.x.x or higher
-- browser javascript
+## An isomorphic javascript sdk for - ApplicationInsightsDataClient
-## How to Install
+This package contains an isomorphic SDK for ApplicationInsightsDataClient.
+
+### Currently supported environments
+
+- Node.js version 6.x.x or higher
+- Browser JavaScript
+
+### How to Install
-- nodejs
```
npm install @azure/applicationinsights-query
```
-- browser
-```html
-
-```
-## How to use
+### How to use
-### nodejs - Authentication, client creation and get metrics as an example written in TypeScript.
+#### nodejs - Authentication, client creation and get metrics as an example written in TypeScript.
+
+##### Install @azure/ms-rest-nodeauth
+
+```
+npm install @azure/ms-rest-nodeauth
+```
+
+##### Sample code
```ts
-import * as msRest from "ms-rest-js";
-import * as msRestNodeAuth from "ms-rest-nodeauth";
+import * as msRest from "@azure/ms-rest-js";
+import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
import { ApplicationInsightsDataClient, ApplicationInsightsDataModels, ApplicationInsightsDataMappers } from "@azure/applicationinsights-query";
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
@@ -44,7 +51,17 @@ msRestNodeAuth.interactiveLogin().then((creds) => {
});
```
-### browser - Authentication, client creation and get metrics as an example written in javascript.
+#### browser - Authentication, client creation and get metrics as an example written in JavaScript.
+
+##### Install @azure/ms-rest-browserauth
+
+```
+npm install @azure/ms-rest-browserauth
+```
+
+##### Sample code
+
+See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
- index.html
```html
@@ -52,8 +69,8 @@ msRestNodeAuth.interactiveLogin().then((creds) => {
@azure/applicationinsights-query sample
-
-
+
+
-
-
+
```
-# Related projects
- - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
+## Related projects
+
+- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
diff --git a/packages/@azure/applicationinsights-query/lib/applicationInsightsDataClient.ts b/packages/@azure/applicationinsights-query/lib/applicationInsightsDataClient.ts
index 84e7e9a73a2f..df88350debaa 100644
--- a/packages/@azure/applicationinsights-query/lib/applicationInsightsDataClient.ts
+++ b/packages/@azure/applicationinsights-query/lib/applicationInsightsDataClient.ts
@@ -8,7 +8,7 @@
* regenerated.
*/
-import * as msRest from "ms-rest-js";
+import * as msRest from "@azure/ms-rest-js";
import * as Models from "./models";
import * as Mappers from "./models/mappers";
import * as operations from "./operations";
diff --git a/packages/@azure/applicationinsights-query/lib/applicationInsightsDataClientContext.ts b/packages/@azure/applicationinsights-query/lib/applicationInsightsDataClientContext.ts
index 9f9576c352b7..490c2684263f 100644
--- a/packages/@azure/applicationinsights-query/lib/applicationInsightsDataClientContext.ts
+++ b/packages/@azure/applicationinsights-query/lib/applicationInsightsDataClientContext.ts
@@ -8,11 +8,11 @@
* regenerated.
*/
-import * as msRest from "ms-rest-js";
+import * as msRest from "@azure/ms-rest-js";
import * as Models from "./models";
const packageName = "@azure/applicationinsights-query";
-const packageVersion = "1.0.0-preview";
+const packageVersion = "0.1.0";
export class ApplicationInsightsDataClientContext extends msRest.ServiceClient {
credentials: msRest.ServiceClientCredentials;
@@ -30,6 +30,10 @@ export class ApplicationInsightsDataClientContext extends msRest.ServiceClient {
if (!options) {
options = {};
}
+ if(!options.userAgent) {
+ const defaultUserAgent = msRest.getDefaultUserAgentValue();
+ options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
+ }
super(credentials, options);
@@ -37,6 +41,5 @@ export class ApplicationInsightsDataClientContext extends msRest.ServiceClient {
this.requestContentType = "application/json; charset=utf-8";
this.credentials = credentials;
- this.addUserAgentInfo(`${packageName}/${packageVersion}`);
}
}
diff --git a/packages/@azure/applicationinsights-query/lib/models/index.ts b/packages/@azure/applicationinsights-query/lib/models/index.ts
index 5389d15fea7d..50135f90faa0 100644
--- a/packages/@azure/applicationinsights-query/lib/models/index.ts
+++ b/packages/@azure/applicationinsights-query/lib/models/index.ts
@@ -8,8 +8,8 @@
* regenerated.
*/
-import { ServiceClientOptions } from "ms-rest-js";
-import * as msRest from "ms-rest-js";
+import { ServiceClientOptions } from "@azure/ms-rest-js";
+import * as msRest from "@azure/ms-rest-js";
/**
@@ -1920,145 +1920,51 @@ export interface EventsGetOptionalParams extends msRest.RequestOptionsBase {
/**
* Defines values for MetricId.
- * Possible values include: 'requests/count', 'requests/duration',
- * 'requests/failed', 'users/count', 'users/authenticated', 'pageViews/count',
- * 'pageViews/duration', 'client/processingDuration', 'client/receiveDuration',
- * 'client/networkDuration', 'client/sendDuration', 'client/totalDuration',
- * 'dependencies/count', 'dependencies/failed', 'dependencies/duration',
- * 'exceptions/count', 'exceptions/browser', 'exceptions/server',
+ * Possible values include: 'requests/count', 'requests/duration', 'requests/failed',
+ * 'users/count', 'users/authenticated', 'pageViews/count', 'pageViews/duration',
+ * 'client/processingDuration', 'client/receiveDuration', 'client/networkDuration',
+ * 'client/sendDuration', 'client/totalDuration', 'dependencies/count', 'dependencies/failed',
+ * 'dependencies/duration', 'exceptions/count', 'exceptions/browser', 'exceptions/server',
* 'sessions/count', 'performanceCounters/requestExecutionTime',
- * 'performanceCounters/requestsPerSecond',
- * 'performanceCounters/requestsInQueue',
- * 'performanceCounters/memoryAvailableBytes',
- * 'performanceCounters/exceptionsPerSecond',
- * 'performanceCounters/processCpuPercentage',
- * 'performanceCounters/processIOBytesPerSecond',
- * 'performanceCounters/processPrivateBytes',
- * 'performanceCounters/processorCpuPercentage',
- * 'availabilityResults/availabilityPercentage',
- * 'availabilityResults/duration', 'billing/telemetryCount',
- * 'customEvents/count'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: MetricId = "someUnknownValueThatWillStillBeValid";
+ * 'performanceCounters/requestsPerSecond', 'performanceCounters/requestsInQueue',
+ * 'performanceCounters/memoryAvailableBytes', 'performanceCounters/exceptionsPerSecond',
+ * 'performanceCounters/processCpuPercentage', 'performanceCounters/processIOBytesPerSecond',
+ * 'performanceCounters/processPrivateBytes', 'performanceCounters/processorCpuPercentage',
+ * 'availabilityResults/availabilityPercentage', 'availabilityResults/duration',
+ * 'billing/telemetryCount', 'customEvents/count'
* @readonly
* @enum {string}
*/
-export enum MetricId {
- Requestscount = 'requests/count',
- Requestsduration = 'requests/duration',
- Requestsfailed = 'requests/failed',
- Userscount = 'users/count',
- Usersauthenticated = 'users/authenticated',
- PageViewscount = 'pageViews/count',
- PageViewsduration = 'pageViews/duration',
- ClientprocessingDuration = 'client/processingDuration',
- ClientreceiveDuration = 'client/receiveDuration',
- ClientnetworkDuration = 'client/networkDuration',
- ClientsendDuration = 'client/sendDuration',
- ClienttotalDuration = 'client/totalDuration',
- Dependenciescount = 'dependencies/count',
- Dependenciesfailed = 'dependencies/failed',
- Dependenciesduration = 'dependencies/duration',
- Exceptionscount = 'exceptions/count',
- Exceptionsbrowser = 'exceptions/browser',
- Exceptionsserver = 'exceptions/server',
- Sessionscount = 'sessions/count',
- PerformanceCountersrequestExecutionTime = 'performanceCounters/requestExecutionTime',
- PerformanceCountersrequestsPerSecond = 'performanceCounters/requestsPerSecond',
- PerformanceCountersrequestsInQueue = 'performanceCounters/requestsInQueue',
- PerformanceCountersmemoryAvailableBytes = 'performanceCounters/memoryAvailableBytes',
- PerformanceCountersexceptionsPerSecond = 'performanceCounters/exceptionsPerSecond',
- PerformanceCountersprocessCpuPercentage = 'performanceCounters/processCpuPercentage',
- PerformanceCountersprocessIOBytesPerSecond = 'performanceCounters/processIOBytesPerSecond',
- PerformanceCountersprocessPrivateBytes = 'performanceCounters/processPrivateBytes',
- PerformanceCountersprocessorCpuPercentage = 'performanceCounters/processorCpuPercentage',
- AvailabilityResultsavailabilityPercentage = 'availabilityResults/availabilityPercentage',
- AvailabilityResultsduration = 'availabilityResults/duration',
- BillingtelemetryCount = 'billing/telemetryCount',
- CustomEventscount = 'customEvents/count',
-}
+export type MetricId = 'requests/count' | 'requests/duration' | 'requests/failed' | 'users/count' | 'users/authenticated' | 'pageViews/count' | 'pageViews/duration' | 'client/processingDuration' | 'client/receiveDuration' | 'client/networkDuration' | 'client/sendDuration' | 'client/totalDuration' | 'dependencies/count' | 'dependencies/failed' | 'dependencies/duration' | 'exceptions/count' | 'exceptions/browser' | 'exceptions/server' | 'sessions/count' | 'performanceCounters/requestExecutionTime' | 'performanceCounters/requestsPerSecond' | 'performanceCounters/requestsInQueue' | 'performanceCounters/memoryAvailableBytes' | 'performanceCounters/exceptionsPerSecond' | 'performanceCounters/processCpuPercentage' | 'performanceCounters/processIOBytesPerSecond' | 'performanceCounters/processPrivateBytes' | 'performanceCounters/processorCpuPercentage' | 'availabilityResults/availabilityPercentage' | 'availabilityResults/duration' | 'billing/telemetryCount' | 'customEvents/count';
/**
* Defines values for MetricsAggregation.
* Possible values include: 'min', 'max', 'avg', 'sum', 'count', 'unique'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: MetricsAggregation =
- * "someUnknownValueThatWillStillBeValid";
* @readonly
* @enum {string}
*/
-export enum MetricsAggregation {
- Min = 'min',
- Max = 'max',
- Avg = 'avg',
- Sum = 'sum',
- Count = 'count',
- Unique = 'unique',
-}
+export type MetricsAggregation = 'min' | 'max' | 'avg' | 'sum' | 'count' | 'unique';
/**
* Defines values for MetricsSegment.
* Possible values include: 'applicationBuild', 'applicationVersion',
- * 'authenticatedOrAnonymousTraffic', 'browser', 'browserVersion', 'city',
- * 'cloudRoleName', 'cloudServiceName', 'continent', 'countryOrRegion',
- * 'deploymentId', 'deploymentUnit', 'deviceType', 'environment',
- * 'hostingLocation', 'instanceName'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: MetricsSegment =
- * "someUnknownValueThatWillStillBeValid";
+ * 'authenticatedOrAnonymousTraffic', 'browser', 'browserVersion', 'city', 'cloudRoleName',
+ * 'cloudServiceName', 'continent', 'countryOrRegion', 'deploymentId', 'deploymentUnit',
+ * 'deviceType', 'environment', 'hostingLocation', 'instanceName'
* @readonly
* @enum {string}
*/
-export enum MetricsSegment {
- ApplicationBuild = 'applicationBuild',
- ApplicationVersion = 'applicationVersion',
- AuthenticatedOrAnonymousTraffic = 'authenticatedOrAnonymousTraffic',
- Browser = 'browser',
- BrowserVersion = 'browserVersion',
- City = 'city',
- CloudRoleName = 'cloudRoleName',
- CloudServiceName = 'cloudServiceName',
- Continent = 'continent',
- CountryOrRegion = 'countryOrRegion',
- DeploymentId = 'deploymentId',
- DeploymentUnit = 'deploymentUnit',
- DeviceType = 'deviceType',
- Environment = 'environment',
- HostingLocation = 'hostingLocation',
- InstanceName = 'instanceName',
-}
+export type MetricsSegment = 'applicationBuild' | 'applicationVersion' | 'authenticatedOrAnonymousTraffic' | 'browser' | 'browserVersion' | 'city' | 'cloudRoleName' | 'cloudServiceName' | 'continent' | 'countryOrRegion' | 'deploymentId' | 'deploymentUnit' | 'deviceType' | 'environment' | 'hostingLocation' | 'instanceName';
/**
* Defines values for EventType.
- * Possible values include: '$all', 'traces', 'customEvents', 'pageViews',
- * 'browserTimings', 'requests', 'dependencies', 'exceptions',
- * 'availabilityResults', 'performanceCounters', 'customMetrics'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: EventType = "someUnknownValueThatWillStillBeValid";
+ * Possible values include: '$all', 'traces', 'customEvents', 'pageViews', 'browserTimings',
+ * 'requests', 'dependencies', 'exceptions', 'availabilityResults', 'performanceCounters',
+ * 'customMetrics'
* @readonly
* @enum {string}
*/
-export enum EventType {
- All = '$all',
- Traces = 'traces',
- CustomEvents = 'customEvents',
- PageViews = 'pageViews',
- BrowserTimings = 'browserTimings',
- Requests = 'requests',
- Dependencies = 'dependencies',
- Exceptions = 'exceptions',
- AvailabilityResults = 'availabilityResults',
- PerformanceCounters = 'performanceCounters',
- CustomMetrics = 'customMetrics',
-}
+export type EventType = '$all' | 'traces' | 'customEvents' | 'pageViews' | 'browserTimings' | 'requests' | 'dependencies' | 'exceptions' | 'availabilityResults' | 'performanceCounters' | 'customMetrics';
/**
* Contains response data for the get operation.
diff --git a/packages/@azure/applicationinsights-query/lib/models/mappers.ts b/packages/@azure/applicationinsights-query/lib/models/mappers.ts
index 9f95aef34876..41143e2b862a 100644
--- a/packages/@azure/applicationinsights-query/lib/models/mappers.ts
+++ b/packages/@azure/applicationinsights-query/lib/models/mappers.ts
@@ -8,7 +8,7 @@
* regenerated.
*/
-import * as msRest from "ms-rest-js";
+import * as msRest from "@azure/ms-rest-js";
export const MetricsPostBodySchemaParameters: msRest.CompositeMapper = {
@@ -729,11 +729,6 @@ export const EventsResults: msRest.CompositeMapper = {
element: {
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "type",
- clientName: "type"
- },
- uberParent: "EventsResultData",
className: "EventsResultData"
}
}
@@ -765,11 +760,6 @@ export const EventsResult: msRest.CompositeMapper = {
serializedName: "value",
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "type",
- clientName: "type"
- },
- uberParent: "EventsResultData",
className: "EventsResultData"
}
}
diff --git a/packages/@azure/applicationinsights-query/lib/models/parameters.ts b/packages/@azure/applicationinsights-query/lib/models/parameters.ts
index caae83e3d0e9..34c02d6dcd4a 100644
--- a/packages/@azure/applicationinsights-query/lib/models/parameters.ts
+++ b/packages/@azure/applicationinsights-query/lib/models/parameters.ts
@@ -8,7 +8,7 @@
* regenerated.
*/
-import * as msRest from "ms-rest-js";
+import * as msRest from "@azure/ms-rest-js";
export const aggregation: msRest.OperationQueryParameter = {
parameterPath: [
diff --git a/packages/@azure/applicationinsights-query/lib/operations/events.ts b/packages/@azure/applicationinsights-query/lib/operations/events.ts
index 37b6e1fac47c..d6c8cfc3e584 100644
--- a/packages/@azure/applicationinsights-query/lib/operations/events.ts
+++ b/packages/@azure/applicationinsights-query/lib/operations/events.ts
@@ -8,7 +8,7 @@
* regenerated.
*/
-import * as msRest from "ms-rest-js";
+import * as msRest from "@azure/ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/eventsMappers";
import * as Parameters from "../models/parameters";
@@ -63,7 +63,7 @@ export class Events {
* @param callback The callback
*/
getByType(appId: string, eventType: Models.EventType, options: Models.EventsGetByTypeOptionalParams, callback: msRest.ServiceCallback): void;
- getByType(appId: string, eventType: Models.EventType, options?: Models.EventsGetByTypeOptionalParams, callback?: msRest.ServiceCallback): Promise {
+ getByType(appId: string, eventType: Models.EventType, options?: Models.EventsGetByTypeOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
appId,
@@ -114,7 +114,7 @@ export class Events {
* @param callback The callback
*/
get(appId: string, eventType: Models.EventType, eventId: string, options: Models.EventsGetOptionalParams, callback: msRest.ServiceCallback): void;
- get(appId: string, eventType: Models.EventType, eventId: string, options?: Models.EventsGetOptionalParams, callback?: msRest.ServiceCallback): Promise {
+ get(appId: string, eventType: Models.EventType, eventId: string, options?: Models.EventsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
appId,
diff --git a/packages/@azure/applicationinsights-query/lib/operations/metrics.ts b/packages/@azure/applicationinsights-query/lib/operations/metrics.ts
index e34781a30188..56a1c8e0b26f 100644
--- a/packages/@azure/applicationinsights-query/lib/operations/metrics.ts
+++ b/packages/@azure/applicationinsights-query/lib/operations/metrics.ts
@@ -8,7 +8,7 @@
* regenerated.
*/
-import * as msRest from "ms-rest-js";
+import * as msRest from "@azure/ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/metricsMappers";
import * as Parameters from "../models/parameters";
@@ -87,7 +87,7 @@ export class Metrics {
* @param callback The callback
*/
get(appId: string, metricId: Models.MetricId, options: Models.MetricsGetOptionalParams, callback: msRest.ServiceCallback): void;
- get(appId: string, metricId: Models.MetricId, options?: Models.MetricsGetOptionalParams, callback?: msRest.ServiceCallback): Promise {
+ get(appId: string, metricId: Models.MetricId, options?: Models.MetricsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
appId,
@@ -123,7 +123,7 @@ export class Metrics {
* @param callback The callback
*/
getMultiple(appId: string, body: Models.MetricsPostBodySchema[], options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- getMultiple(appId: string, body: Models.MetricsPostBodySchema[], options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ getMultiple(appId: string, body: Models.MetricsPostBodySchema[], options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
appId,
@@ -156,7 +156,7 @@ export class Metrics {
* @param callback The callback
*/
getMetadata(appId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- getMetadata(appId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ getMetadata(appId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
appId,
diff --git a/packages/@azure/applicationinsights-query/lib/operations/query.ts b/packages/@azure/applicationinsights-query/lib/operations/query.ts
index f4b7a8b79bc5..2a3420a07463 100644
--- a/packages/@azure/applicationinsights-query/lib/operations/query.ts
+++ b/packages/@azure/applicationinsights-query/lib/operations/query.ts
@@ -8,7 +8,7 @@
* regenerated.
*/
-import * as msRest from "ms-rest-js";
+import * as msRest from "@azure/ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/queryMappers";
import * as Parameters from "../models/parameters";
@@ -56,7 +56,7 @@ export class Query {
* @param callback The callback
*/
execute(appId: string, body: Models.QueryBody, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- execute(appId: string, body: Models.QueryBody, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ execute(appId: string, body: Models.QueryBody, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
appId,
diff --git a/packages/@azure/applicationinsights-query/package.json b/packages/@azure/applicationinsights-query/package.json
index 5e13d3e7c1f5..efee07b714af 100644
--- a/packages/@azure/applicationinsights-query/package.json
+++ b/packages/@azure/applicationinsights-query/package.json
@@ -4,7 +4,7 @@
"description": "ApplicationInsightsDataClient Library with typescript type definitions for node.js and browser.",
"version": "0.1.0",
"dependencies": {
- "ms-rest-js": "^1.0.455",
+ "@azure/ms-rest-js": "^1.1.0",
"tslib": "^1.9.3"
},
"keywords": [
@@ -32,10 +32,23 @@
"bugs": {
"url": "https://github.com/azure/azure-sdk-for-js/issues"
},
+ "files": [
+ "dist/**/*.js",
+ "dist/**/*.js.map",
+ "dist/**/*.d.ts",
+ "dist/**/*.d.ts.map",
+ "esm/**/*.js",
+ "esm/**/*.js.map",
+ "esm/**/*.d.ts",
+ "esm/**/*.d.ts.map",
+ "lib/**/*.ts",
+ "rollup.config.js",
+ "tsconfig.json"
+ ],
"scripts": {
"build": "tsc && rollup -c rollup.config.js && npm run minify",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/applicationinsights-query.js.map'\" -o ./dist/applicationinsights-query.min.js ./dist/applicationinsights-query.js",
- "prepare": "npm run build"
+ "prepack": "npm install && npm run build"
},
"sideEffects": false
-}
\ No newline at end of file
+}
diff --git a/packages/@azure/applicationinsights-query/rollup.config.js b/packages/@azure/applicationinsights-query/rollup.config.js
index b5a572964cb3..85ed89401a88 100644
--- a/packages/@azure/applicationinsights-query/rollup.config.js
+++ b/packages/@azure/applicationinsights-query/rollup.config.js
@@ -4,15 +4,15 @@ import nodeResolve from "rollup-plugin-node-resolve";
*/
const config = {
input: './esm/applicationInsightsDataClient.js',
- external: ["ms-rest-js", "ms-rest-azure-js"],
+ external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"],
output: {
file: "./dist/applicationinsights-query.js",
format: "umd",
name: "Azure.ApplicationinsightsQuery",
sourcemap: true,
globals: {
- "ms-rest-js": "msRest",
- "ms-rest-azure-js": "msRestAzure"
+ "@azure/ms-rest-js": "msRest",
+ "@azure/ms-rest-azure-js": "msRestAzure"
},
banner: `/*
* Copyright (c) Microsoft Corporation. All rights reserved.
diff --git a/packages/@azure/applicationinsights-query/tsconfig.esm.json b/packages/@azure/applicationinsights-query/tsconfig.esm.json
deleted file mode 100644
index 0b3aed07505c..000000000000
--- a/packages/@azure/applicationinsights-query/tsconfig.esm.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "extends": "./tsconfig",
- "compilerOptions": {
- "outDir": "./esm",
- "module": "es6",
- "target": "es5"
- }
-}
diff --git a/packages/@azure/applicationinsights-query/tsconfig.json b/packages/@azure/applicationinsights-query/tsconfig.json
index f32d1664f320..51ea90961ce5 100644
--- a/packages/@azure/applicationinsights-query/tsconfig.json
+++ b/packages/@azure/applicationinsights-query/tsconfig.json
@@ -14,6 +14,6 @@
"outDir": "./esm",
"importHelpers": true
},
- "include": ["./lib/**/*"],
+ "include": ["./lib/**/*.ts"],
"exclude": ["node_modules"]
}
diff --git a/packages/@azure/applicationinsights-query/webpack.config.js b/packages/@azure/applicationinsights-query/webpack.config.js
deleted file mode 100644
index 148210d73ad8..000000000000
--- a/packages/@azure/applicationinsights-query/webpack.config.js
+++ /dev/null
@@ -1,30 +0,0 @@
-// This is a template webpack config file with minimal configuration.
-// Users are free to create their own webpack configuration files in their application.
-const path = require('path');
-
-/**
- * @type {import('webpack').Configuration}
- */
-const config = {
- mode: 'production',
- entry: './esm/applicationInsightsDataClient.js',
- devtool: 'source-map',
- output: {
- filename: 'applicationInsightsDataClientBundle.js',
- path: __dirname,
- libraryTarget: 'var',
- library: 'applicationInsightsDataClient'
- },
- // "ms-rest-js" and "ms-rest-azure-js" are dependencies of this library.
- // Customer is expected to import/include this library in browser javascript
- // (probably using the script tag in their html file).
- externals: {
- "ms-rest-js": "msRest",
- "ms-rest-azure-js": "msRestAzure"
- },
- resolve: {
- extensions: [".tsx", ".ts", ".js"]
- }
-};
-
-module.exports = config;
diff --git a/packages/@azure/arm-advisor/.npmignore b/packages/@azure/arm-advisor/.npmignore
deleted file mode 100644
index 3b46bc6202d8..000000000000
--- a/packages/@azure/arm-advisor/.npmignore
+++ /dev/null
@@ -1,35 +0,0 @@
-#git
-.git
-.gitignore
-#gulp
-gulpfile.js
-#documentation
-doc/
-docs/
-#dependencies
-node_modules/
-#samples
-sample/
-samples/
-#tests
-test/
-tests/
-coverage/
-#tools and scripts
-tools/
-scripts/
-#IDE settings
-*.sln
-.vscode/
-.idea
-.editorconfig
-.ntvs_analysis.*
-#build tools
-.travis.yml
-.jenkins.yml
-.codeclimate.yml
-appveyor.yml
-# Nuget packages #
-.nuget/
-packages/
-packages.config
diff --git a/packages/@azure/arm-advisor/README.md b/packages/@azure/arm-advisor/README.md
index 4b4d1466ac51..7d64fd72219f 100644
--- a/packages/@azure/arm-advisor/README.md
+++ b/packages/@azure/arm-advisor/README.md
@@ -1,24 +1,34 @@
-# Azure AdvisorManagementClient SDK for JavaScript
+## Azure AdvisorManagementClient SDK for JavaScript
+
This package contains an isomorphic SDK for AdvisorManagementClient.
-## Currently supported environments
+### Currently supported environments
+
- Node.js version 6.x.x or higher
- Browser JavaScript
-## How to Install
+### How to Install
+
```
npm install @azure/arm-advisor
```
+### How to use
+
+#### nodejs - Authentication, client creation and listBySubscription configurations as an example written in TypeScript.
-## How to use
+##### Install @azure/ms-rest-nodeauth
+
+```
+npm install @azure/ms-rest-nodeauth
+```
-### nodejs - Authentication, client creation and listBySubscription configurations as an example written in TypeScript.
+##### Sample code
```ts
-import * as msRest from "ms-rest-js";
-import * as msRestAzure from "ms-rest-azure-js";
-import * as msRestNodeAuth from "ms-rest-nodeauth";
+import * as msRest from "@azure/ms-rest-js";
+import * as msRestAzure from "@azure/ms-rest-azure-js";
+import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
import { AdvisorManagementClient, AdvisorManagementModels, AdvisorManagementMappers } from "@azure/arm-advisor";
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
@@ -33,7 +43,16 @@ msRestNodeAuth.interactiveLogin().then((creds) => {
});
```
-### browser - Authentication, client creation and listBySubscription configurations as an example written in JavaScript.
+#### browser - Authentication, client creation and listBySubscription configurations as an example written in JavaScript.
+
+##### Install @azure/ms-rest-browserauth
+
+```
+npm install @azure/ms-rest-browserauth
+```
+
+##### Sample code
+
See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
- index.html
@@ -42,11 +61,11 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
@azure/arm-advisor sample
-
-
-
+
+
+
-
-
-
+
```
-# Related projects
- - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
+## Related projects
+
+- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
diff --git a/packages/@azure/arm-advisor/lib/advisorManagementClient.ts b/packages/@azure/arm-advisor/lib/advisorManagementClient.ts
index a264f695551e..643eaf226574 100644
--- a/packages/@azure/arm-advisor/lib/advisorManagementClient.ts
+++ b/packages/@azure/arm-advisor/lib/advisorManagementClient.ts
@@ -8,7 +8,7 @@
* regenerated.
*/
-import * as msRest from "ms-rest-js";
+import * as msRest from "@azure/ms-rest-js";
import * as Models from "./models";
import * as Mappers from "./models/mappers";
import * as operations from "./operations";
diff --git a/packages/@azure/arm-advisor/lib/advisorManagementClientContext.ts b/packages/@azure/arm-advisor/lib/advisorManagementClientContext.ts
index 8944b075b419..82f5adb2547f 100644
--- a/packages/@azure/arm-advisor/lib/advisorManagementClientContext.ts
+++ b/packages/@azure/arm-advisor/lib/advisorManagementClientContext.ts
@@ -9,23 +9,16 @@
*/
import * as Models from "./models";
-import * as msRest from "ms-rest-js";
-import * as msRestAzure from "ms-rest-azure-js";
+import * as msRest from "@azure/ms-rest-js";
+import * as msRestAzure from "@azure/ms-rest-azure-js";
const packageName = "@azure/arm-advisor";
-const packageVersion = "1.0.0";
+const packageVersion = "0.1.0";
export class AdvisorManagementClientContext extends msRestAzure.AzureServiceClient {
-
credentials: msRest.ServiceClientCredentials;
-
subscriptionId: string;
-
- apiVersion: string;
-
- acceptLanguage: string;
-
- longRunningOperationRetryTimeout: number;
+ apiVersion?: string;
/**
* Initializes a new instance of the AdvisorManagementClient class.
@@ -44,6 +37,11 @@ export class AdvisorManagementClientContext extends msRestAzure.AzureServiceClie
if (!options) {
options = {};
}
+ if(!options.userAgent) {
+ const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
+ options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
+ }
+
super(credentials, options);
this.apiVersion = '2017-04-19';
@@ -54,7 +52,6 @@ export class AdvisorManagementClientContext extends msRestAzure.AzureServiceClie
this.credentials = credentials;
this.subscriptionId = subscriptionId;
- this.addUserAgentInfo(`${packageName}/${packageVersion}`);
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
this.acceptLanguage = options.acceptLanguage;
}
diff --git a/packages/@azure/arm-advisor/lib/models/index.ts b/packages/@azure/arm-advisor/lib/models/index.ts
index b3a2dd31ec9a..21d9a82bd89e 100644
--- a/packages/@azure/arm-advisor/lib/models/index.ts
+++ b/packages/@azure/arm-advisor/lib/models/index.ts
@@ -8,8 +8,8 @@
* regenerated.
*/
-import { BaseResource, CloudError, AzureServiceClientOptions } from "ms-rest-azure-js";
-import * as msRest from "ms-rest-js";
+import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
+import * as msRest from "@azure/ms-rest-js";
export { BaseResource, CloudError };
@@ -394,53 +394,27 @@ export interface SuppressionContractListResult extends Array"someUnknownValueThatWillStillBeValid";
+ * Possible values include: 'HighAvailability', 'Security', 'Performance', 'Cost'
* @readonly
* @enum {string}
*/
-export enum Category {
- HighAvailability = 'HighAvailability',
- Security = 'Security',
- Performance = 'Performance',
- Cost = 'Cost',
-}
+export type Category = 'HighAvailability' | 'Security' | 'Performance' | 'Cost';
/**
* Defines values for Impact.
* Possible values include: 'High', 'Medium', 'Low'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: Impact = "someUnknownValueThatWillStillBeValid";
* @readonly
* @enum {string}
*/
-export enum Impact {
- High = 'High',
- Medium = 'Medium',
- Low = 'Low',
-}
+export type Impact = 'High' | 'Medium' | 'Low';
/**
* Defines values for Risk.
* Possible values include: 'Error', 'Warning', 'None'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: Risk = "someUnknownValueThatWillStillBeValid";
* @readonly
* @enum {string}
*/
-export enum Risk {
- Error = 'Error',
- Warning = 'Warning',
- None = 'None',
-}
+export type Risk = 'Error' | 'Warning' | 'None';
/**
* Contains response data for the listBySubscription operation.
diff --git a/packages/@azure/arm-advisor/lib/models/mappers.ts b/packages/@azure/arm-advisor/lib/models/mappers.ts
index 9c9fd300d599..ffd0fb954f60 100644
--- a/packages/@azure/arm-advisor/lib/models/mappers.ts
+++ b/packages/@azure/arm-advisor/lib/models/mappers.ts
@@ -8,8 +8,8 @@
* regenerated.
*/
-import { CloudErrorMapper, BaseResourceMapper } from "ms-rest-azure-js";
-import * as msRest from "ms-rest-js";
+import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js";
+import * as msRest from "@azure/ms-rest-js";
export const CloudError = CloudErrorMapper;
export const BaseResource = BaseResourceMapper;
diff --git a/packages/@azure/arm-advisor/lib/models/parameters.ts b/packages/@azure/arm-advisor/lib/models/parameters.ts
index 286d580a8c30..4c86c5e6de44 100644
--- a/packages/@azure/arm-advisor/lib/models/parameters.ts
+++ b/packages/@azure/arm-advisor/lib/models/parameters.ts
@@ -8,7 +8,7 @@
* regenerated.
*/
-import * as msRest from "ms-rest-js";
+import * as msRest from "@azure/ms-rest-js";
export const acceptLanguage: msRest.OperationParameter = {
parameterPath: "acceptLanguage",
diff --git a/packages/@azure/arm-advisor/lib/operations/configurations.ts b/packages/@azure/arm-advisor/lib/operations/configurations.ts
index 49b402ad74e0..91d1ae84a445 100644
--- a/packages/@azure/arm-advisor/lib/operations/configurations.ts
+++ b/packages/@azure/arm-advisor/lib/operations/configurations.ts
@@ -8,7 +8,7 @@
* regenerated.
*/
-import * as msRest from "ms-rest-js";
+import * as msRest from "@azure/ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/configurationsMappers";
import * as Parameters from "../models/parameters";
@@ -43,7 +43,7 @@ export class Configurations {
* @param callback The callback
*/
listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listBySubscription(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
options
@@ -72,7 +72,7 @@ export class Configurations {
* @param callback The callback
*/
createInSubscription(configContract: Models.ConfigData, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- createInSubscription(configContract: Models.ConfigData, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ createInSubscription(configContract: Models.ConfigData, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
configContract,
@@ -100,7 +100,7 @@ export class Configurations {
* @param callback The callback
*/
listByResourceGroup(resourceGroup: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listByResourceGroup(resourceGroup: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ listByResourceGroup(resourceGroup: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroup,
@@ -131,7 +131,7 @@ export class Configurations {
* @param callback The callback
*/
createInResourceGroup(configContract: Models.ConfigData, resourceGroup: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- createInResourceGroup(configContract: Models.ConfigData, resourceGroup: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ createInResourceGroup(configContract: Models.ConfigData, resourceGroup: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
configContract,
@@ -162,7 +162,7 @@ export class Configurations {
* @param callback The callback
*/
listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
nextPageLink,
diff --git a/packages/@azure/arm-advisor/lib/operations/operations.ts b/packages/@azure/arm-advisor/lib/operations/operations.ts
index 78d441202340..8dccfa50fbeb 100644
--- a/packages/@azure/arm-advisor/lib/operations/operations.ts
+++ b/packages/@azure/arm-advisor/lib/operations/operations.ts
@@ -8,7 +8,7 @@
* regenerated.
*/
-import * as msRest from "ms-rest-js";
+import * as msRest from "@azure/ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/operationsMappers";
import * as Parameters from "../models/parameters";
@@ -41,7 +41,7 @@ export class Operations {
* @param callback The callback
*/
list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
options
@@ -68,7 +68,7 @@ export class Operations {
* @param callback The callback
*/
listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
nextPageLink,
diff --git a/packages/@azure/arm-advisor/lib/operations/recommendations.ts b/packages/@azure/arm-advisor/lib/operations/recommendations.ts
index ba5b831de7d7..8ab48e349ad8 100644
--- a/packages/@azure/arm-advisor/lib/operations/recommendations.ts
+++ b/packages/@azure/arm-advisor/lib/operations/recommendations.ts
@@ -8,7 +8,7 @@
* regenerated.
*/
-import * as msRest from "ms-rest-js";
+import * as msRest from "@azure/ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/recommendationsMappers";
import * as Parameters from "../models/parameters";
@@ -43,7 +43,7 @@ export class Recommendations {
* @param callback The callback
*/
generate(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- generate(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ generate(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
options
@@ -75,7 +75,7 @@ export class Recommendations {
* @param callback The callback
*/
getGenerateStatus(operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- getGenerateStatus(operationId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ getGenerateStatus(operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
operationId,
@@ -101,7 +101,7 @@ export class Recommendations {
* @param callback The callback
*/
list(options: Models.RecommendationsListOptionalParams, callback: msRest.ServiceCallback): void;
- list(options?: Models.RecommendationsListOptionalParams, callback?: msRest.ServiceCallback): Promise {
+ list(options?: Models.RecommendationsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
options
@@ -134,7 +134,7 @@ export class Recommendations {
* @param callback The callback
*/
get(resourceUri: string, recommendationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- get(resourceUri: string, recommendationId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ get(resourceUri: string, recommendationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceUri,
@@ -164,7 +164,7 @@ export class Recommendations {
* @param callback The callback
*/
listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
nextPageLink,
diff --git a/packages/@azure/arm-advisor/lib/operations/suppressions.ts b/packages/@azure/arm-advisor/lib/operations/suppressions.ts
index b950c2d4de15..e0ac5c30e4b7 100644
--- a/packages/@azure/arm-advisor/lib/operations/suppressions.ts
+++ b/packages/@azure/arm-advisor/lib/operations/suppressions.ts
@@ -8,7 +8,7 @@
* regenerated.
*/
-import * as msRest from "ms-rest-js";
+import * as msRest from "@azure/ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/suppressionsMappers";
import * as Parameters from "../models/parameters";
@@ -53,7 +53,7 @@ export class Suppressions {
* @param callback The callback
*/
get(resourceUri: string, recommendationId: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- get(resourceUri: string, recommendationId: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ get(resourceUri: string, recommendationId: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceUri,
@@ -97,7 +97,7 @@ export class Suppressions {
* @param callback The callback
*/
create(resourceUri: string, recommendationId: string, name: string, suppressionContract: Models.SuppressionContract, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- create(resourceUri: string, recommendationId: string, name: string, suppressionContract: Models.SuppressionContract, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ create(resourceUri: string, recommendationId: string, name: string, suppressionContract: Models.SuppressionContract, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceUri,
@@ -138,7 +138,7 @@ export class Suppressions {
* @param callback The callback
*/
deleteMethod(resourceUri: string, recommendationId: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- deleteMethod(resourceUri: string, recommendationId: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ deleteMethod(resourceUri: string, recommendationId: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceUri,
@@ -166,7 +166,7 @@ export class Suppressions {
* @param callback The callback
*/
list(options: Models.SuppressionsListOptionalParams, callback: msRest.ServiceCallback): void;
- list(options?: Models.SuppressionsListOptionalParams, callback?: msRest.ServiceCallback): Promise {
+ list(options?: Models.SuppressionsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
options
@@ -194,7 +194,7 @@ export class Suppressions {
* @param callback The callback
*/
listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
nextPageLink,
diff --git a/packages/@azure/arm-advisor/package.json b/packages/@azure/arm-advisor/package.json
index 56cdf9637c40..5afd2caee1d1 100644
--- a/packages/@azure/arm-advisor/package.json
+++ b/packages/@azure/arm-advisor/package.json
@@ -4,8 +4,8 @@
"description": "AdvisorManagementClient Library with typescript type definitions for node.js and browser.",
"version": "0.1.0",
"dependencies": {
- "ms-rest-azure-js": "^1.0.176",
- "ms-rest-js": "^1.0.455",
+ "@azure/ms-rest-azure-js": "^1.1.0",
+ "@azure/ms-rest-js": "^1.1.0",
"tslib": "^1.9.3"
},
"keywords": [
@@ -33,10 +33,23 @@
"bugs": {
"url": "https://github.com/azure/azure-sdk-for-js/issues"
},
+ "files": [
+ "dist/**/*.js",
+ "dist/**/*.js.map",
+ "dist/**/*.d.ts",
+ "dist/**/*.d.ts.map",
+ "esm/**/*.js",
+ "esm/**/*.js.map",
+ "esm/**/*.d.ts",
+ "esm/**/*.d.ts.map",
+ "lib/**/*.ts",
+ "rollup.config.js",
+ "tsconfig.json"
+ ],
"scripts": {
"build": "tsc && rollup -c rollup.config.js && npm run minify",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-advisor.js.map'\" -o ./dist/arm-advisor.min.js ./dist/arm-advisor.js",
- "prepare": "npm run build"
+ "prepack": "npm install && npm run build"
},
"sideEffects": false
-}
\ No newline at end of file
+}
diff --git a/packages/@azure/arm-advisor/rollup.config.js b/packages/@azure/arm-advisor/rollup.config.js
index b5b72d81e488..19c4680fc09c 100644
--- a/packages/@azure/arm-advisor/rollup.config.js
+++ b/packages/@azure/arm-advisor/rollup.config.js
@@ -4,15 +4,15 @@ import nodeResolve from "rollup-plugin-node-resolve";
*/
const config = {
input: './esm/advisorManagementClient.js',
- external: ["ms-rest-js", "ms-rest-azure-js"],
+ external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"],
output: {
file: "./dist/arm-advisor.js",
format: "umd",
name: "Azure.ArmAdvisor",
sourcemap: true,
globals: {
- "ms-rest-js": "msRest",
- "ms-rest-azure-js": "msRestAzure"
+ "@azure/ms-rest-js": "msRest",
+ "@azure/ms-rest-azure-js": "msRestAzure"
},
banner: `/*
* Copyright (c) Microsoft Corporation. All rights reserved.
diff --git a/packages/@azure/arm-advisor/tsconfig.json b/packages/@azure/arm-advisor/tsconfig.json
index f32d1664f320..51ea90961ce5 100644
--- a/packages/@azure/arm-advisor/tsconfig.json
+++ b/packages/@azure/arm-advisor/tsconfig.json
@@ -14,6 +14,6 @@
"outDir": "./esm",
"importHelpers": true
},
- "include": ["./lib/**/*"],
+ "include": ["./lib/**/*.ts"],
"exclude": ["node_modules"]
}
diff --git a/packages/@azure/arm-analysisservices/.npmignore b/packages/@azure/arm-analysisservices/.npmignore
deleted file mode 100644
index 3b46bc6202d8..000000000000
--- a/packages/@azure/arm-analysisservices/.npmignore
+++ /dev/null
@@ -1,35 +0,0 @@
-#git
-.git
-.gitignore
-#gulp
-gulpfile.js
-#documentation
-doc/
-docs/
-#dependencies
-node_modules/
-#samples
-sample/
-samples/
-#tests
-test/
-tests/
-coverage/
-#tools and scripts
-tools/
-scripts/
-#IDE settings
-*.sln
-.vscode/
-.idea
-.editorconfig
-.ntvs_analysis.*
-#build tools
-.travis.yml
-.jenkins.yml
-.codeclimate.yml
-appveyor.yml
-# Nuget packages #
-.nuget/
-packages/
-packages.config
diff --git a/packages/@azure/arm-analysisservices/README.md b/packages/@azure/arm-analysisservices/README.md
index 2681047e5520..6b1506abc46a 100644
--- a/packages/@azure/arm-analysisservices/README.md
+++ b/packages/@azure/arm-analysisservices/README.md
@@ -1,24 +1,34 @@
-# Azure AnalysisServicesManagementClient SDK for JavaScript
+## Azure AnalysisServicesManagementClient SDK for JavaScript
+
This package contains an isomorphic SDK for AnalysisServicesManagementClient.
-## Currently supported environments
+### Currently supported environments
+
- Node.js version 6.x.x or higher
- Browser JavaScript
-## How to Install
+### How to Install
+
```
npm install @azure/arm-analysisservices
```
+### How to use
+
+#### nodejs - Authentication, client creation and getDetails servers as an example written in TypeScript.
-## How to use
+##### Install @azure/ms-rest-nodeauth
+
+```
+npm install @azure/ms-rest-nodeauth
+```
-### nodejs - Authentication, client creation and getDetails servers as an example written in TypeScript.
+##### Sample code
```ts
-import * as msRest from "ms-rest-js";
-import * as msRestAzure from "ms-rest-azure-js";
-import * as msRestNodeAuth from "ms-rest-nodeauth";
+import * as msRest from "@azure/ms-rest-js";
+import * as msRestAzure from "@azure/ms-rest-azure-js";
+import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
import { AnalysisServicesManagementClient, AnalysisServicesManagementModels, AnalysisServicesManagementMappers } from "@azure/arm-analysisservices";
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
@@ -35,7 +45,16 @@ msRestNodeAuth.interactiveLogin().then((creds) => {
});
```
-### browser - Authentication, client creation and getDetails servers as an example written in JavaScript.
+#### browser - Authentication, client creation and getDetails servers as an example written in JavaScript.
+
+##### Install @azure/ms-rest-browserauth
+
+```
+npm install @azure/ms-rest-browserauth
+```
+
+##### Sample code
+
See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
- index.html
@@ -44,11 +63,11 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
@azure/arm-analysisservices sample
-
-
-
+
+
+
-
-
-
+
```
-# Related projects
- - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
+## Related projects
+
+- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
diff --git a/packages/@azure/arm-analysisservices/lib/analysisServicesManagementClient.ts b/packages/@azure/arm-analysisservices/lib/analysisServicesManagementClient.ts
index 5cf2a21fa146..2d67bb6378b1 100644
--- a/packages/@azure/arm-analysisservices/lib/analysisServicesManagementClient.ts
+++ b/packages/@azure/arm-analysisservices/lib/analysisServicesManagementClient.ts
@@ -8,7 +8,7 @@
* regenerated.
*/
-import * as msRest from "ms-rest-js";
+import * as msRest from "@azure/ms-rest-js";
import * as Models from "./models";
import * as Mappers from "./models/mappers";
import * as operations from "./operations";
diff --git a/packages/@azure/arm-analysisservices/lib/analysisServicesManagementClientContext.ts b/packages/@azure/arm-analysisservices/lib/analysisServicesManagementClientContext.ts
index 5412d2dccb3e..2655345e5084 100644
--- a/packages/@azure/arm-analysisservices/lib/analysisServicesManagementClientContext.ts
+++ b/packages/@azure/arm-analysisservices/lib/analysisServicesManagementClientContext.ts
@@ -9,23 +9,16 @@
*/
import * as Models from "./models";
-import * as msRest from "ms-rest-js";
-import * as msRestAzure from "ms-rest-azure-js";
+import * as msRest from "@azure/ms-rest-js";
+import * as msRestAzure from "@azure/ms-rest-azure-js";
const packageName = "@azure/arm-analysisservices";
-const packageVersion = "1.0.0";
+const packageVersion = "0.1.0";
export class AnalysisServicesManagementClientContext extends msRestAzure.AzureServiceClient {
-
credentials: msRest.ServiceClientCredentials;
-
subscriptionId: string;
-
- apiVersion: string;
-
- acceptLanguage: string;
-
- longRunningOperationRetryTimeout: number;
+ apiVersion?: string;
/**
* Initializes a new instance of the AnalysisServicesManagementClient class.
@@ -45,6 +38,11 @@ export class AnalysisServicesManagementClientContext extends msRestAzure.AzureSe
if (!options) {
options = {};
}
+ if(!options.userAgent) {
+ const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
+ options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
+ }
+
super(credentials, options);
this.apiVersion = '2017-08-01';
@@ -55,7 +53,6 @@ export class AnalysisServicesManagementClientContext extends msRestAzure.AzureSe
this.credentials = credentials;
this.subscriptionId = subscriptionId;
- this.addUserAgentInfo(`${packageName}/${packageVersion}`);
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
this.acceptLanguage = options.acceptLanguage;
}
diff --git a/packages/@azure/arm-analysisservices/lib/models/index.ts b/packages/@azure/arm-analysisservices/lib/models/index.ts
index a8ee829a7b3d..3f9e871bceee 100644
--- a/packages/@azure/arm-analysisservices/lib/models/index.ts
+++ b/packages/@azure/arm-analysisservices/lib/models/index.ts
@@ -8,8 +8,8 @@
* regenerated.
*/
-import { BaseResource, CloudError, AzureServiceClientOptions } from "ms-rest-azure-js";
-import * as msRest from "ms-rest-js";
+import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
+import * as msRest from "@azure/ms-rest-js";
export { BaseResource, CloudError };
@@ -543,73 +543,28 @@ export interface OperationListResult extends Array {
/**
* Defines values for SkuTier.
* Possible values include: 'Development', 'Basic', 'Standard'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: SkuTier = "someUnknownValueThatWillStillBeValid";
* @readonly
* @enum {string}
*/
-export enum SkuTier {
- Development = 'Development',
- Basic = 'Basic',
- Standard = 'Standard',
-}
+export type SkuTier = 'Development' | 'Basic' | 'Standard';
/**
* Defines values for State.
- * Possible values include: 'Deleting', 'Succeeded', 'Failed', 'Paused',
- * 'Suspended', 'Provisioning', 'Updating', 'Suspending', 'Pausing',
- * 'Resuming', 'Preparing', 'Scaling'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: State = "someUnknownValueThatWillStillBeValid";
+ * Possible values include: 'Deleting', 'Succeeded', 'Failed', 'Paused', 'Suspended',
+ * 'Provisioning', 'Updating', 'Suspending', 'Pausing', 'Resuming', 'Preparing', 'Scaling'
* @readonly
* @enum {string}
*/
-export enum State {
- Deleting = 'Deleting',
- Succeeded = 'Succeeded',
- Failed = 'Failed',
- Paused = 'Paused',
- Suspended = 'Suspended',
- Provisioning = 'Provisioning',
- Updating = 'Updating',
- Suspending = 'Suspending',
- Pausing = 'Pausing',
- Resuming = 'Resuming',
- Preparing = 'Preparing',
- Scaling = 'Scaling',
-}
+export type State = 'Deleting' | 'Succeeded' | 'Failed' | 'Paused' | 'Suspended' | 'Provisioning' | 'Updating' | 'Suspending' | 'Pausing' | 'Resuming' | 'Preparing' | 'Scaling';
/**
* Defines values for ProvisioningState.
- * Possible values include: 'Deleting', 'Succeeded', 'Failed', 'Paused',
- * 'Suspended', 'Provisioning', 'Updating', 'Suspending', 'Pausing',
- * 'Resuming', 'Preparing', 'Scaling'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: ProvisioningState =
- * "someUnknownValueThatWillStillBeValid";
+ * Possible values include: 'Deleting', 'Succeeded', 'Failed', 'Paused', 'Suspended',
+ * 'Provisioning', 'Updating', 'Suspending', 'Pausing', 'Resuming', 'Preparing', 'Scaling'
* @readonly
* @enum {string}
*/
-export enum ProvisioningState {
- Deleting = 'Deleting',
- Succeeded = 'Succeeded',
- Failed = 'Failed',
- Paused = 'Paused',
- Suspended = 'Suspended',
- Provisioning = 'Provisioning',
- Updating = 'Updating',
- Suspending = 'Suspending',
- Pausing = 'Pausing',
- Resuming = 'Resuming',
- Preparing = 'Preparing',
- Scaling = 'Scaling',
-}
+export type ProvisioningState = 'Deleting' | 'Succeeded' | 'Failed' | 'Paused' | 'Suspended' | 'Provisioning' | 'Updating' | 'Suspending' | 'Pausing' | 'Resuming' | 'Preparing' | 'Scaling';
/**
* Defines values for ConnectionMode.
@@ -617,10 +572,7 @@ export enum ProvisioningState {
* @readonly
* @enum {string}
*/
-export enum ConnectionMode {
- All = 'All',
- ReadOnly = 'ReadOnly',
-}
+export type ConnectionMode = 'All' | 'ReadOnly';
/**
* Defines values for Status.
@@ -628,9 +580,7 @@ export enum ConnectionMode {
* @readonly
* @enum {string}
*/
-export enum Status {
- Live = 'Live',
-}
+export type Status = 'Live';
/**
* Contains response data for the getDetails operation.
diff --git a/packages/@azure/arm-analysisservices/lib/models/mappers.ts b/packages/@azure/arm-analysisservices/lib/models/mappers.ts
index ec62d376ff21..0a5ec0f18454 100644
--- a/packages/@azure/arm-analysisservices/lib/models/mappers.ts
+++ b/packages/@azure/arm-analysisservices/lib/models/mappers.ts
@@ -8,8 +8,8 @@
* regenerated.
*/
-import { CloudErrorMapper, BaseResourceMapper } from "ms-rest-azure-js";
-import * as msRest from "ms-rest-js";
+import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js";
+import * as msRest from "@azure/ms-rest-js";
export const CloudError = CloudErrorMapper;
export const BaseResource = BaseResourceMapper;
diff --git a/packages/@azure/arm-analysisservices/lib/models/parameters.ts b/packages/@azure/arm-analysisservices/lib/models/parameters.ts
index ace4ef6db6d0..f105f633287c 100644
--- a/packages/@azure/arm-analysisservices/lib/models/parameters.ts
+++ b/packages/@azure/arm-analysisservices/lib/models/parameters.ts
@@ -8,7 +8,7 @@
* regenerated.
*/
-import * as msRest from "ms-rest-js";
+import * as msRest from "@azure/ms-rest-js";
export const acceptLanguage: msRest.OperationParameter = {
parameterPath: "acceptLanguage",
diff --git a/packages/@azure/arm-analysisservices/lib/operations/operations.ts b/packages/@azure/arm-analysisservices/lib/operations/operations.ts
index a8570528bd41..accd15e90fb1 100644
--- a/packages/@azure/arm-analysisservices/lib/operations/operations.ts
+++ b/packages/@azure/arm-analysisservices/lib/operations/operations.ts
@@ -8,7 +8,7 @@
* regenerated.
*/
-import * as msRest from "ms-rest-js";
+import * as msRest from "@azure/ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/operationsMappers";
import * as Parameters from "../models/parameters";
@@ -41,7 +41,7 @@ export class Operations {
* @param callback The callback
*/
list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
options
@@ -68,7 +68,7 @@ export class Operations {
* @param callback The callback
*/
listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
nextPageLink,
diff --git a/packages/@azure/arm-analysisservices/lib/operations/servers.ts b/packages/@azure/arm-analysisservices/lib/operations/servers.ts
index 2154df9f151e..4229322d7bf1 100644
--- a/packages/@azure/arm-analysisservices/lib/operations/servers.ts
+++ b/packages/@azure/arm-analysisservices/lib/operations/servers.ts
@@ -8,8 +8,8 @@
* regenerated.
*/
-import * as msRest from "ms-rest-js";
-import * as msRestAzure from "ms-rest-azure-js";
+import * as msRest from "@azure/ms-rest-js";
+import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as Models from "../models";
import * as Mappers from "../models/serversMappers";
import * as Parameters from "../models/parameters";
@@ -54,7 +54,7 @@ export class Servers {
* @param callback The callback
*/
getDetails(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- getDetails(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ getDetails(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -160,7 +160,7 @@ export class Servers {
* @param callback The callback
*/
listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -185,7 +185,7 @@ export class Servers {
* @param callback The callback
*/
list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
options
@@ -209,7 +209,7 @@ export class Servers {
* @param callback The callback
*/
listSkusForNew(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listSkusForNew(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ listSkusForNew(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
options
@@ -245,7 +245,7 @@ export class Servers {
* @param callback The callback
*/
listSkusForExisting(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listSkusForExisting(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ listSkusForExisting(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -280,7 +280,7 @@ export class Servers {
* @param callback The callback
*/
listGatewayStatus(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listGatewayStatus(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ listGatewayStatus(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -318,7 +318,7 @@ export class Servers {
* @param callback The callback
*/
dissociateGateway(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- dissociateGateway(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ dissociateGateway(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -350,7 +350,7 @@ export class Servers {
* @param callback The callback
*/
checkNameAvailability(location: string, serverParameters: Models.CheckServerNameAvailabilityParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- checkNameAvailability(location: string, serverParameters: Models.CheckServerNameAvailabilityParameters, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ checkNameAvailability(location: string, serverParameters: Models.CheckServerNameAvailabilityParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
location,
@@ -382,7 +382,7 @@ export class Servers {
* @param callback The callback
*/
listOperationResults(location: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listOperationResults(location: string, operationId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ listOperationResults(location: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
location,
@@ -414,7 +414,7 @@ export class Servers {
* @param callback The callback
*/
listOperationStatuses(location: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listOperationStatuses(location: string, operationId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ listOperationStatuses(location: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
location,
diff --git a/packages/@azure/arm-analysisservices/package.json b/packages/@azure/arm-analysisservices/package.json
index d139712ff53b..92575f3ad53a 100644
--- a/packages/@azure/arm-analysisservices/package.json
+++ b/packages/@azure/arm-analysisservices/package.json
@@ -4,8 +4,8 @@
"description": "AnalysisServicesManagementClient Library with typescript type definitions for node.js and browser.",
"version": "0.1.0",
"dependencies": {
- "ms-rest-azure-js": "^1.0.176",
- "ms-rest-js": "^1.0.455",
+ "@azure/ms-rest-azure-js": "^1.1.0",
+ "@azure/ms-rest-js": "^1.1.0",
"tslib": "^1.9.3"
},
"keywords": [
@@ -33,10 +33,23 @@
"bugs": {
"url": "https://github.com/azure/azure-sdk-for-js/issues"
},
+ "files": [
+ "dist/**/*.js",
+ "dist/**/*.js.map",
+ "dist/**/*.d.ts",
+ "dist/**/*.d.ts.map",
+ "esm/**/*.js",
+ "esm/**/*.js.map",
+ "esm/**/*.d.ts",
+ "esm/**/*.d.ts.map",
+ "lib/**/*.ts",
+ "rollup.config.js",
+ "tsconfig.json"
+ ],
"scripts": {
"build": "tsc && rollup -c rollup.config.js && npm run minify",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-analysisservices.js.map'\" -o ./dist/arm-analysisservices.min.js ./dist/arm-analysisservices.js",
- "prepare": "npm run build"
+ "prepack": "npm install && npm run build"
},
"sideEffects": false
-}
\ No newline at end of file
+}
diff --git a/packages/@azure/arm-analysisservices/rollup.config.js b/packages/@azure/arm-analysisservices/rollup.config.js
index 8bbe397c841c..757fa640e8e0 100644
--- a/packages/@azure/arm-analysisservices/rollup.config.js
+++ b/packages/@azure/arm-analysisservices/rollup.config.js
@@ -4,15 +4,15 @@ import nodeResolve from "rollup-plugin-node-resolve";
*/
const config = {
input: './esm/analysisServicesManagementClient.js',
- external: ["ms-rest-js", "ms-rest-azure-js"],
+ external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"],
output: {
file: "./dist/arm-analysisservices.js",
format: "umd",
name: "Azure.ArmAnalysisservices",
sourcemap: true,
globals: {
- "ms-rest-js": "msRest",
- "ms-rest-azure-js": "msRestAzure"
+ "@azure/ms-rest-js": "msRest",
+ "@azure/ms-rest-azure-js": "msRestAzure"
},
banner: `/*
* Copyright (c) Microsoft Corporation. All rights reserved.
diff --git a/packages/@azure/arm-analysisservices/tsconfig.json b/packages/@azure/arm-analysisservices/tsconfig.json
index f32d1664f320..51ea90961ce5 100644
--- a/packages/@azure/arm-analysisservices/tsconfig.json
+++ b/packages/@azure/arm-analysisservices/tsconfig.json
@@ -14,6 +14,6 @@
"outDir": "./esm",
"importHelpers": true
},
- "include": ["./lib/**/*"],
+ "include": ["./lib/**/*.ts"],
"exclude": ["node_modules"]
}
diff --git a/packages/@azure/arm-apimanagement/.npmignore b/packages/@azure/arm-apimanagement/.npmignore
deleted file mode 100644
index a07a455ac10c..000000000000
--- a/packages/@azure/arm-apimanagement/.npmignore
+++ /dev/null
@@ -1,35 +0,0 @@
-#git
-.git
-.gitignore
-#gulp
-gulpfile.js
-#documentation
-doc/
-docs/
-#dependencies
-node_modules/
-#samples
-sample/
-samples/
-#tests
-test/
-tests/
-coverage/
-#tools and scripts
-tools/
-scripts/
-#IDE settings
-*.sln
-.vscode/
-.idea
-.editorconfig
-.ntvs_analysis.*
-#build tools
-.travis.yml
-.jenkins.yml
-.codeclimate.yml
-appveyor.yml
-# Nuget packages #
-.nuget/
-packages/
-packages.config
diff --git a/packages/@azure/arm-apimanagement/README.md b/packages/@azure/arm-apimanagement/README.md
index b76430ac2e4f..bb77bf0bdd00 100644
--- a/packages/@azure/arm-apimanagement/README.md
+++ b/packages/@azure/arm-apimanagement/README.md
@@ -1,24 +1,34 @@
-# Azure ApiManagementClient SDK for JavaScript
+## Azure ApiManagementClient SDK for JavaScript
+
This package contains an isomorphic SDK for ApiManagementClient.
-## Currently supported environments
+### Currently supported environments
+
- Node.js version 6.x.x or higher
- Browser JavaScript
-## How to Install
+### How to Install
+
```
npm install @azure/arm-apimanagement
```
+### How to use
+
+#### nodejs - Authentication, client creation and listByService policy as an example written in TypeScript.
-## How to use
+##### Install @azure/ms-rest-nodeauth
+
+```
+npm install @azure/ms-rest-nodeauth
+```
-### nodejs - Authentication, client creation and listByService policy as an example written in TypeScript.
+##### Sample code
```ts
-import * as msRest from "ms-rest-js";
-import * as msRestAzure from "ms-rest-azure-js";
-import * as msRestNodeAuth from "ms-rest-nodeauth";
+import * as msRest from "@azure/ms-rest-js";
+import * as msRestAzure from "@azure/ms-rest-azure-js";
+import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
import { ApiManagementClient, ApiManagementModels, ApiManagementMappers } from "@azure/arm-apimanagement";
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
@@ -36,7 +46,16 @@ msRestNodeAuth.interactiveLogin().then((creds) => {
});
```
-### browser - Authentication, client creation and listByService policy as an example written in JavaScript.
+#### browser - Authentication, client creation and listByService policy as an example written in JavaScript.
+
+##### Install @azure/ms-rest-browserauth
+
+```
+npm install @azure/ms-rest-browserauth
+```
+
+##### Sample code
+
See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
- index.html
@@ -45,11 +64,11 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
@azure/arm-apimanagement sample
-
-
-
+
+
+
-
-
-
+
```
-# Related projects
- - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
+## Related projects
+
+- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
diff --git a/packages/@azure/arm-apimanagement/dist/arm-apimanagement.js b/packages/@azure/arm-apimanagement/dist/arm-apimanagement.js
deleted file mode 100644
index 5ea0b257bc48..000000000000
--- a/packages/@azure/arm-apimanagement/dist/arm-apimanagement.js
+++ /dev/null
@@ -1,27566 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-(function (global, factory) {
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('ms-rest-azure-js'), require('ms-rest-js')) :
- typeof define === 'function' && define.amd ? define(['exports', 'ms-rest-azure-js', 'ms-rest-js'], factory) :
- (factory((global.Azure = global.Azure || {}, global.Azure.ArmApimanagement = {}),global.msRestAzure,global.msRest));
-}(this, (function (exports,msRestAzure,msRest) { 'use strict';
-
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
-
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
-
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /* global Reflect, Promise */
-
- var extendStatics = function(d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
-
- function __extends(d, b) {
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- }
-
- var __assign = function() {
- __assign = Object.assign || function __assign(t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
- /**
- * Defines values for PolicyContentFormat.
- * Possible values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: PolicyContentFormat =
- * "someUnknownValueThatWillStillBeValid";
- * @readonly
- * @enum {string}
- */
- var PolicyContentFormat;
- (function (PolicyContentFormat) {
- /**
- * The contents are inline and Content type is an XML document.
- */
- PolicyContentFormat["Xml"] = "xml";
- /**
- * The policy XML document is hosted on a http endpoint accessible from the
- * API Management service.
- */
- PolicyContentFormat["XmlLink"] = "xml-link";
- /**
- * The contents are inline and Content type is a non XML encoded policy
- * document.
- */
- PolicyContentFormat["Rawxml"] = "rawxml";
- /**
- * The policy document is not Xml encoded and is hosted on a http endpoint
- * accessible from the API Management service.
- */
- PolicyContentFormat["RawxmlLink"] = "rawxml-link";
- })(PolicyContentFormat || (PolicyContentFormat = {}));
- /**
- * Defines values for Protocol.
- * Possible values include: 'http', 'https'
- * @readonly
- * @enum {string}
- */
- var Protocol;
- (function (Protocol) {
- Protocol["Http"] = "http";
- Protocol["Https"] = "https";
- })(Protocol || (Protocol = {}));
- /**
- * Defines values for ContentFormat.
- * Possible values include: 'wadl-xml', 'wadl-link-json', 'swagger-json',
- * 'swagger-link-json', 'wsdl', 'wsdl-link'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: ContentFormat =
- * "someUnknownValueThatWillStillBeValid";
- * @readonly
- * @enum {string}
- */
- var ContentFormat;
- (function (ContentFormat) {
- /**
- * The contents are inline and Content type is a WADL document.
- */
- ContentFormat["WadlXml"] = "wadl-xml";
- /**
- * The WADL document is hosted on a publicly accessible internet address.
- */
- ContentFormat["WadlLinkJson"] = "wadl-link-json";
- /**
- * The contents are inline and Content Type is a OpenApi 2.0 Document.
- */
- ContentFormat["SwaggerJson"] = "swagger-json";
- /**
- * The Open Api 2.0 document is hosted on a publicly accessible internet
- * address.
- */
- ContentFormat["SwaggerLinkJson"] = "swagger-link-json";
- /**
- * The contents are inline and the document is a WSDL/Soap document.
- */
- ContentFormat["Wsdl"] = "wsdl";
- /**
- * The WSDL document is hosted on a publicly accessible internet address.
- */
- ContentFormat["WsdlLink"] = "wsdl-link";
- })(ContentFormat || (ContentFormat = {}));
- /**
- * Defines values for SoapApiType.
- * Possible values include: 'SoapToRest', 'SoapPassThrough'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: SoapApiType =
- * "someUnknownValueThatWillStillBeValid";
- * @readonly
- * @enum {string}
- */
- var SoapApiType;
- (function (SoapApiType) {
- /**
- * Imports a SOAP API having a RESTful front end.
- */
- SoapApiType["SoapToRest"] = "http";
- /**
- * Imports the Soap API having a SOAP front end.
- */
- SoapApiType["SoapPassThrough"] = "soap";
- })(SoapApiType || (SoapApiType = {}));
- /**
- * Defines values for BearerTokenSendingMethods.
- * Possible values include: 'authorizationHeader', 'query'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: BearerTokenSendingMethods =
- * "someUnknownValueThatWillStillBeValid";
- * @readonly
- * @enum {string}
- */
- var BearerTokenSendingMethods;
- (function (BearerTokenSendingMethods) {
- /**
- * Access token will be transmitted in the Authorization header using Bearer
- * schema
- */
- BearerTokenSendingMethods["AuthorizationHeader"] = "authorizationHeader";
- /**
- * Access token will be transmitted as query parameters.
- */
- BearerTokenSendingMethods["Query"] = "query";
- })(BearerTokenSendingMethods || (BearerTokenSendingMethods = {}));
- /**
- * Defines values for ApiType.
- * Possible values include: 'http', 'soap'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: ApiType = "someUnknownValueThatWillStillBeValid";
- * @readonly
- * @enum {string}
- */
- var ApiType;
- (function (ApiType) {
- ApiType["Http"] = "http";
- ApiType["Soap"] = "soap";
- })(ApiType || (ApiType = {}));
- /**
- * Defines values for State.
- * Possible values include: 'proposed', 'open', 'removed', 'resolved', 'closed'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: State = "someUnknownValueThatWillStillBeValid";
- * @readonly
- * @enum {string}
- */
- var State;
- (function (State) {
- /**
- * The issue is proposed.
- */
- State["Proposed"] = "proposed";
- /**
- * The issue is opened.
- */
- State["Open"] = "open";
- /**
- * The issue was removed.
- */
- State["Removed"] = "removed";
- /**
- * The issue is now resolved.
- */
- State["Resolved"] = "resolved";
- /**
- * The issue was closed.
- */
- State["Closed"] = "closed";
- })(State || (State = {}));
- /**
- * Defines values for LoggerType.
- * Possible values include: 'azureEventHub', 'applicationInsights'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: LoggerType = "someUnknownValueThatWillStillBeValid";
- * @readonly
- * @enum {string}
- */
- var LoggerType;
- (function (LoggerType) {
- /**
- * Azure Event Hub as log destination.
- */
- LoggerType["AzureEventHub"] = "azureEventHub";
- /**
- * Azure Application Insights as log destination.
- */
- LoggerType["ApplicationInsights"] = "applicationInsights";
- })(LoggerType || (LoggerType = {}));
- /**
- * Defines values for ProductState.
- * Possible values include: 'notPublished', 'published'
- * @readonly
- * @enum {string}
- */
- var ProductState;
- (function (ProductState) {
- ProductState["NotPublished"] = "notPublished";
- ProductState["Published"] = "published";
- })(ProductState || (ProductState = {}));
- /**
- * Defines values for GrantType.
- * Possible values include: 'authorizationCode', 'implicit',
- * 'resourceOwnerPassword', 'clientCredentials'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: GrantType = "someUnknownValueThatWillStillBeValid";
- * @readonly
- * @enum {string}
- */
- var GrantType;
- (function (GrantType) {
- /**
- * Authorization Code Grant flow as described
- * https://tools.ietf.org/html/rfc6749#section-4.1.
- */
- GrantType["AuthorizationCode"] = "authorizationCode";
- /**
- * Implicit Code Grant flow as described
- * https://tools.ietf.org/html/rfc6749#section-4.2.
- */
- GrantType["Implicit"] = "implicit";
- /**
- * Resource Owner Password Grant flow as described
- * https://tools.ietf.org/html/rfc6749#section-4.3.
- */
- GrantType["ResourceOwnerPassword"] = "resourceOwnerPassword";
- /**
- * Client Credentials Grant flow as described
- * https://tools.ietf.org/html/rfc6749#section-4.4.
- */
- GrantType["ClientCredentials"] = "clientCredentials";
- })(GrantType || (GrantType = {}));
- /**
- * Defines values for AuthorizationMethod.
- * Possible values include: 'HEAD', 'OPTIONS', 'TRACE', 'GET', 'POST', 'PUT',
- * 'PATCH', 'DELETE'
- * @readonly
- * @enum {string}
- */
- var AuthorizationMethod;
- (function (AuthorizationMethod) {
- AuthorizationMethod["HEAD"] = "HEAD";
- AuthorizationMethod["OPTIONS"] = "OPTIONS";
- AuthorizationMethod["TRACE"] = "TRACE";
- AuthorizationMethod["GET"] = "GET";
- AuthorizationMethod["POST"] = "POST";
- AuthorizationMethod["PUT"] = "PUT";
- AuthorizationMethod["PATCH"] = "PATCH";
- AuthorizationMethod["DELETE"] = "DELETE";
- })(AuthorizationMethod || (AuthorizationMethod = {}));
- /**
- * Defines values for ClientAuthenticationMethod.
- * Possible values include: 'Basic', 'Body'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: ClientAuthenticationMethod =
- * "someUnknownValueThatWillStillBeValid";
- * @readonly
- * @enum {string}
- */
- var ClientAuthenticationMethod;
- (function (ClientAuthenticationMethod) {
- /**
- * Basic Client Authentication method.
- */
- ClientAuthenticationMethod["Basic"] = "Basic";
- /**
- * Body based Authentication method.
- */
- ClientAuthenticationMethod["Body"] = "Body";
- })(ClientAuthenticationMethod || (ClientAuthenticationMethod = {}));
- /**
- * Defines values for BearerTokenSendingMethod.
- * Possible values include: 'authorizationHeader', 'query'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: BearerTokenSendingMethod =
- * "someUnknownValueThatWillStillBeValid";
- * @readonly
- * @enum {string}
- */
- var BearerTokenSendingMethod;
- (function (BearerTokenSendingMethod) {
- BearerTokenSendingMethod["AuthorizationHeader"] = "authorizationHeader";
- BearerTokenSendingMethod["Query"] = "query";
- })(BearerTokenSendingMethod || (BearerTokenSendingMethod = {}));
- /**
- * Defines values for BackendProtocol.
- * Possible values include: 'http', 'soap'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: BackendProtocol =
- * "someUnknownValueThatWillStillBeValid";
- * @readonly
- * @enum {string}
- */
- var BackendProtocol;
- (function (BackendProtocol) {
- /**
- * The Backend is a RESTful service.
- */
- BackendProtocol["Http"] = "http";
- /**
- * The Backend is a SOAP service.
- */
- BackendProtocol["Soap"] = "soap";
- })(BackendProtocol || (BackendProtocol = {}));
- /**
- * Defines values for HostnameType.
- * Possible values include: 'Proxy', 'Portal', 'Management', 'Scm'
- * @readonly
- * @enum {string}
- */
- var HostnameType;
- (function (HostnameType) {
- HostnameType["Proxy"] = "Proxy";
- HostnameType["Portal"] = "Portal";
- HostnameType["Management"] = "Management";
- HostnameType["Scm"] = "Scm";
- })(HostnameType || (HostnameType = {}));
- /**
- * Defines values for SkuType.
- * Possible values include: 'Developer', 'Standard', 'Premium', 'Basic'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: SkuType = "someUnknownValueThatWillStillBeValid";
- * @readonly
- * @enum {string}
- */
- var SkuType;
- (function (SkuType) {
- /**
- * Developer SKU of Api Management.
- */
- SkuType["Developer"] = "Developer";
- /**
- * Standard SKU of Api Management.
- */
- SkuType["Standard"] = "Standard";
- /**
- * Premium SKU of Api Management.
- */
- SkuType["Premium"] = "Premium";
- /**
- * Basic SKU of Api Management.
- */
- SkuType["Basic"] = "Basic";
- })(SkuType || (SkuType = {}));
- /**
- * Defines values for VirtualNetworkType.
- * Possible values include: 'None', 'External', 'Internal'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: VirtualNetworkType =
- * "someUnknownValueThatWillStillBeValid";
- * @readonly
- * @enum {string}
- */
- var VirtualNetworkType;
- (function (VirtualNetworkType) {
- /**
- * The service is not part of any Virtual Network.
- */
- VirtualNetworkType["None"] = "None";
- /**
- * The service is part of Virtual Network and it is accessible from Internet.
- */
- VirtualNetworkType["External"] = "External";
- /**
- * The service is part of Virtual Network and it is only accessible from
- * within the virtual network.
- */
- VirtualNetworkType["Internal"] = "Internal";
- })(VirtualNetworkType || (VirtualNetworkType = {}));
- /**
- * Defines values for NameAvailabilityReason.
- * Possible values include: 'Valid', 'Invalid', 'AlreadyExists'
- * @readonly
- * @enum {string}
- */
- var NameAvailabilityReason;
- (function (NameAvailabilityReason) {
- NameAvailabilityReason["Valid"] = "Valid";
- NameAvailabilityReason["Invalid"] = "Invalid";
- NameAvailabilityReason["AlreadyExists"] = "AlreadyExists";
- })(NameAvailabilityReason || (NameAvailabilityReason = {}));
- /**
- * Defines values for GroupType.
- * Possible values include: 'custom', 'system', 'external'
- * @readonly
- * @enum {string}
- */
- var GroupType;
- (function (GroupType) {
- GroupType["Custom"] = "custom";
- GroupType["System"] = "system";
- GroupType["External"] = "external";
- })(GroupType || (GroupType = {}));
- /**
- * Defines values for Confirmation.
- * Possible values include: 'signup', 'invite'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: Confirmation =
- * "someUnknownValueThatWillStillBeValid";
- * @readonly
- * @enum {string}
- */
- var Confirmation;
- (function (Confirmation) {
- /**
- * Send an e-mail to the user confirming they have successfully signed up.
- */
- Confirmation["Signup"] = "signup";
- /**
- * Send an e-mail inviting the user to sign-up and complete registration.
- */
- Confirmation["Invite"] = "invite";
- })(Confirmation || (Confirmation = {}));
- /**
- * Defines values for UserState.
- * Possible values include: 'active', 'blocked', 'pending', 'deleted'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: UserState = "someUnknownValueThatWillStillBeValid";
- * @readonly
- * @enum {string}
- */
- var UserState;
- (function (UserState) {
- /**
- * User state is active.
- */
- UserState["Active"] = "active";
- /**
- * User is blocked. Blocked users cannot authenticate at developer portal or
- * call API.
- */
- UserState["Blocked"] = "blocked";
- /**
- * User account is pending. Requires identity confirmation before it can be
- * made active.
- */
- UserState["Pending"] = "pending";
- /**
- * User account is closed. All identities and related entities are removed.
- */
- UserState["Deleted"] = "deleted";
- })(UserState || (UserState = {}));
- /**
- * Defines values for IdentityProviderType.
- * Possible values include: 'facebook', 'google', 'microsoft', 'twitter',
- * 'aad', 'aadB2C'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: IdentityProviderType =
- * "someUnknownValueThatWillStillBeValid";
- * @readonly
- * @enum {string}
- */
- var IdentityProviderType;
- (function (IdentityProviderType) {
- /**
- * Facebook as Identity provider.
- */
- IdentityProviderType["Facebook"] = "facebook";
- /**
- * Google as Identity provider.
- */
- IdentityProviderType["Google"] = "google";
- /**
- * Microsoft Live as Identity provider.
- */
- IdentityProviderType["Microsoft"] = "microsoft";
- /**
- * Twitter as Identity provider.
- */
- IdentityProviderType["Twitter"] = "twitter";
- /**
- * Azure Active Directory as Identity provider.
- */
- IdentityProviderType["Aad"] = "aad";
- /**
- * Azure Active Directory B2C as Identity provider.
- */
- IdentityProviderType["AadB2C"] = "aadB2C";
- })(IdentityProviderType || (IdentityProviderType = {}));
- /**
- * Defines values for ConnectivityStatusType.
- * Possible values include: 'initializing', 'success', 'failure'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: ConnectivityStatusType =
- * "someUnknownValueThatWillStillBeValid";
- * @readonly
- * @enum {string}
- */
- var ConnectivityStatusType;
- (function (ConnectivityStatusType) {
- ConnectivityStatusType["Initializing"] = "initializing";
- ConnectivityStatusType["Success"] = "success";
- ConnectivityStatusType["Failure"] = "failure";
- })(ConnectivityStatusType || (ConnectivityStatusType = {}));
- /**
- * Defines values for SubscriptionState.
- * Possible values include: 'suspended', 'active', 'expired', 'submitted',
- * 'rejected', 'cancelled'
- * @readonly
- * @enum {string}
- */
- var SubscriptionState;
- (function (SubscriptionState) {
- SubscriptionState["Suspended"] = "suspended";
- SubscriptionState["Active"] = "active";
- SubscriptionState["Expired"] = "expired";
- SubscriptionState["Submitted"] = "submitted";
- SubscriptionState["Rejected"] = "rejected";
- SubscriptionState["Cancelled"] = "cancelled";
- })(SubscriptionState || (SubscriptionState = {}));
- /**
- * Defines values for AsyncOperationStatus.
- * Possible values include: 'Started', 'InProgress', 'Succeeded', 'Failed'
- * @readonly
- * @enum {string}
- */
- var AsyncOperationStatus;
- (function (AsyncOperationStatus) {
- AsyncOperationStatus["Started"] = "Started";
- AsyncOperationStatus["InProgress"] = "InProgress";
- AsyncOperationStatus["Succeeded"] = "Succeeded";
- AsyncOperationStatus["Failed"] = "Failed";
- })(AsyncOperationStatus || (AsyncOperationStatus = {}));
- /**
- * Defines values for KeyType.
- * Possible values include: 'primary', 'secondary'
- * @readonly
- * @enum {string}
- */
- var KeyType;
- (function (KeyType) {
- KeyType["Primary"] = "primary";
- KeyType["Secondary"] = "secondary";
- })(KeyType || (KeyType = {}));
- /**
- * Defines values for VersioningScheme.
- * Possible values include: 'Segment', 'Query', 'Header'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: VersioningScheme =
- * "someUnknownValueThatWillStillBeValid";
- * @readonly
- * @enum {string}
- */
- var VersioningScheme;
- (function (VersioningScheme) {
- /**
- * The API Version is passed in a path segment.
- */
- VersioningScheme["Segment"] = "Segment";
- /**
- * The API Version is passed in a query parameter.
- */
- VersioningScheme["Query"] = "Query";
- /**
- * The API Version is passed in a HTTP header.
- */
- VersioningScheme["Header"] = "Header";
- })(VersioningScheme || (VersioningScheme = {}));
- /**
- * Defines values for TemplateName.
- * Possible values include: 'applicationApprovedNotificationMessage',
- * 'accountClosedDeveloper',
- * 'quotaLimitApproachingDeveloperNotificationMessage',
- * 'newDeveloperNotificationMessage', 'emailChangeIdentityDefault',
- * 'inviteUserNotificationMessage', 'newCommentNotificationMessage',
- * 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage',
- * 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault',
- * 'passwordResetByAdminNotificationMessage',
- * 'rejectDeveloperNotificationMessage', 'requestDeveloperNotificationMessage'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: TemplateName =
- * "someUnknownValueThatWillStillBeValid";
- * @readonly
- * @enum {string}
- */
- var TemplateName;
- (function (TemplateName) {
- TemplateName["ApplicationApprovedNotificationMessage"] = "applicationApprovedNotificationMessage";
- TemplateName["AccountClosedDeveloper"] = "accountClosedDeveloper";
- TemplateName["QuotaLimitApproachingDeveloperNotificationMessage"] = "quotaLimitApproachingDeveloperNotificationMessage";
- TemplateName["NewDeveloperNotificationMessage"] = "newDeveloperNotificationMessage";
- TemplateName["EmailChangeIdentityDefault"] = "emailChangeIdentityDefault";
- TemplateName["InviteUserNotificationMessage"] = "inviteUserNotificationMessage";
- TemplateName["NewCommentNotificationMessage"] = "newCommentNotificationMessage";
- TemplateName["ConfirmSignUpIdentityDefault"] = "confirmSignUpIdentityDefault";
- TemplateName["NewIssueNotificationMessage"] = "newIssueNotificationMessage";
- TemplateName["PurchaseDeveloperNotificationMessage"] = "purchaseDeveloperNotificationMessage";
- TemplateName["PasswordResetIdentityDefault"] = "passwordResetIdentityDefault";
- TemplateName["PasswordResetByAdminNotificationMessage"] = "passwordResetByAdminNotificationMessage";
- TemplateName["RejectDeveloperNotificationMessage"] = "rejectDeveloperNotificationMessage";
- TemplateName["RequestDeveloperNotificationMessage"] = "requestDeveloperNotificationMessage";
- })(TemplateName || (TemplateName = {}));
- /**
- * Defines values for NotificationName.
- * Possible values include: 'RequestPublisherNotificationMessage',
- * 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage',
- * 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher',
- * 'QuotaLimitApproachingPublisherNotificationMessage'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: NotificationName =
- * "someUnknownValueThatWillStillBeValid";
- * @readonly
- * @enum {string}
- */
- var NotificationName;
- (function (NotificationName) {
- /**
- * The following email recipients and users will receive email notifications
- * about subscription requests for API products requiring approval.
- */
- NotificationName["RequestPublisherNotificationMessage"] = "RequestPublisherNotificationMessage";
- /**
- * The following email recipients and users will receive email notifications
- * about new API product subscriptions.
- */
- NotificationName["PurchasePublisherNotificationMessage"] = "PurchasePublisherNotificationMessage";
- /**
- * The following email recipients and users will receive email notifications
- * when new applications are submitted to the application gallery.
- */
- NotificationName["NewApplicationNotificationMessage"] = "NewApplicationNotificationMessage";
- /**
- * The following recipients will receive blind carbon copies of all emails
- * sent to developers.
- */
- NotificationName["BCC"] = "BCC";
- /**
- * The following email recipients and users will receive email notifications
- * when a new issue or comment is submitted on the developer portal.
- */
- NotificationName["NewIssuePublisherNotificationMessage"] = "NewIssuePublisherNotificationMessage";
- /**
- * The following email recipients and users will receive email notifications
- * when developer closes his account.
- */
- NotificationName["AccountClosedPublisher"] = "AccountClosedPublisher";
- /**
- * The following email recipients and users will receive email notifications
- * when subscription usage gets close to usage quota.
- */
- NotificationName["QuotaLimitApproachingPublisherNotificationMessage"] = "QuotaLimitApproachingPublisherNotificationMessage";
- })(NotificationName || (NotificationName = {}));
- /**
- * Defines values for PolicyScopeContract.
- * Possible values include: 'Tenant', 'Product', 'Api', 'Operation', 'All'
- * @readonly
- * @enum {string}
- */
- var PolicyScopeContract;
- (function (PolicyScopeContract) {
- PolicyScopeContract["Tenant"] = "Tenant";
- PolicyScopeContract["Product"] = "Product";
- PolicyScopeContract["Api"] = "Api";
- PolicyScopeContract["Operation"] = "Operation";
- PolicyScopeContract["All"] = "All";
- })(PolicyScopeContract || (PolicyScopeContract = {}));
- /**
- * Defines values for ExportFormat.
- * Possible values include: 'Swagger', 'Wsdl', 'Wadl'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: ExportFormat =
- * "someUnknownValueThatWillStillBeValid";
- * @readonly
- * @enum {string}
- */
- var ExportFormat;
- (function (ExportFormat) {
- /**
- * Export the Api Definition in OpenApi Specification 2.0 format to the
- * Storage Blob.
- */
- ExportFormat["Swagger"] = "swagger-link";
- /**
- * Export the Api Definition in WSDL Schema to Storage Blob. This is only
- * supported for APIs of Type `soap`
- */
- ExportFormat["Wsdl"] = "wsdl-link";
- /**
- * Export the Api Definition in WADL Schema to Storage Blob.
- */
- ExportFormat["Wadl"] = "wadl-link";
- })(ExportFormat || (ExportFormat = {}));
- /**
- * Defines values for VersioningScheme1.
- * Possible values include: 'Segment', 'Query', 'Header'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: VersioningScheme1 =
- * "someUnknownValueThatWillStillBeValid";
- * @readonly
- * @enum {string}
- */
- var VersioningScheme1;
- (function (VersioningScheme1) {
- VersioningScheme1["Segment"] = "Segment";
- VersioningScheme1["Query"] = "Query";
- VersioningScheme1["Header"] = "Header";
- })(VersioningScheme1 || (VersioningScheme1 = {}));
- /**
- * Defines values for StoreName.
- * Possible values include: 'CertificateAuthority', 'Root'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: StoreName = "someUnknownValueThatWillStillBeValid";
- * @readonly
- * @enum {string}
- */
- var StoreName;
- (function (StoreName) {
- StoreName["CertificateAuthority"] = "CertificateAuthority";
- StoreName["Root"] = "Root";
- })(StoreName || (StoreName = {}));
-
- var index = /*#__PURE__*/Object.freeze({
- get PolicyContentFormat () { return PolicyContentFormat; },
- get Protocol () { return Protocol; },
- get ContentFormat () { return ContentFormat; },
- get SoapApiType () { return SoapApiType; },
- get BearerTokenSendingMethods () { return BearerTokenSendingMethods; },
- get ApiType () { return ApiType; },
- get State () { return State; },
- get LoggerType () { return LoggerType; },
- get ProductState () { return ProductState; },
- get GrantType () { return GrantType; },
- get AuthorizationMethod () { return AuthorizationMethod; },
- get ClientAuthenticationMethod () { return ClientAuthenticationMethod; },
- get BearerTokenSendingMethod () { return BearerTokenSendingMethod; },
- get BackendProtocol () { return BackendProtocol; },
- get HostnameType () { return HostnameType; },
- get SkuType () { return SkuType; },
- get VirtualNetworkType () { return VirtualNetworkType; },
- get NameAvailabilityReason () { return NameAvailabilityReason; },
- get GroupType () { return GroupType; },
- get Confirmation () { return Confirmation; },
- get UserState () { return UserState; },
- get IdentityProviderType () { return IdentityProviderType; },
- get ConnectivityStatusType () { return ConnectivityStatusType; },
- get SubscriptionState () { return SubscriptionState; },
- get AsyncOperationStatus () { return AsyncOperationStatus; },
- get KeyType () { return KeyType; },
- get VersioningScheme () { return VersioningScheme; },
- get TemplateName () { return TemplateName; },
- get NotificationName () { return NotificationName; },
- get PolicyScopeContract () { return PolicyScopeContract; },
- get ExportFormat () { return ExportFormat; },
- get VersioningScheme1 () { return VersioningScheme1; },
- get StoreName () { return StoreName; }
- });
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
- var CloudError = msRestAzure.CloudErrorMapper;
- var BaseResource = msRestAzure.BaseResourceMapper;
- var ErrorFieldContract = {
- serializedName: "ErrorFieldContract",
- type: {
- name: "Composite",
- className: "ErrorFieldContract",
- modelProperties: {
- code: {
- serializedName: "code",
- type: {
- name: "String"
- }
- },
- message: {
- serializedName: "message",
- type: {
- name: "String"
- }
- },
- target: {
- serializedName: "target",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ErrorResponseBody = {
- serializedName: "ErrorResponseBody",
- type: {
- name: "Composite",
- className: "ErrorResponseBody",
- modelProperties: {
- code: {
- serializedName: "code",
- type: {
- name: "String"
- }
- },
- message: {
- serializedName: "message",
- type: {
- name: "String"
- }
- },
- details: {
- serializedName: "details",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ErrorFieldContract"
- }
- }
- }
- }
- }
- }
- };
- var ErrorResponse = {
- serializedName: "ErrorResponse",
- type: {
- name: "Composite",
- className: "ErrorResponse",
- modelProperties: {
- code: {
- serializedName: "error.code",
- type: {
- name: "String"
- }
- },
- message: {
- serializedName: "error.message",
- type: {
- name: "String"
- }
- },
- details: {
- serializedName: "error.details",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ErrorFieldContract"
- }
- }
- }
- }
- }
- }
- };
- var Resource = {
- serializedName: "Resource",
- type: {
- name: "Composite",
- className: "Resource",
- modelProperties: {
- id: {
- readOnly: true,
- serializedName: "id",
- type: {
- name: "String"
- }
- },
- name: {
- readOnly: true,
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- type: {
- readOnly: true,
- serializedName: "type",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var PolicyContract = {
- serializedName: "PolicyContract",
- type: {
- name: "Composite",
- className: "PolicyContract",
- modelProperties: __assign({}, Resource.type.modelProperties, { policyContent: {
- required: true,
- serializedName: "properties.policyContent",
- type: {
- name: "String"
- }
- }, contentFormat: {
- serializedName: "properties.contentFormat",
- defaultValue: 'xml',
- type: {
- name: "String"
- }
- } })
- }
- };
- var PolicyCollection = {
- serializedName: "PolicyCollection",
- type: {
- name: "Composite",
- className: "PolicyCollection",
- modelProperties: {
- value: {
- serializedName: "value",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "PolicyContract"
- }
- }
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var PolicySnippetContract = {
- serializedName: "PolicySnippetContract",
- type: {
- name: "Composite",
- className: "PolicySnippetContract",
- modelProperties: {
- name: {
- readOnly: true,
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- content: {
- readOnly: true,
- serializedName: "content",
- type: {
- name: "String"
- }
- },
- toolTip: {
- readOnly: true,
- serializedName: "toolTip",
- type: {
- name: "String"
- }
- },
- scope: {
- readOnly: true,
- serializedName: "scope",
- type: {
- name: "Number"
- }
- }
- }
- }
- };
- var PolicySnippetsCollection = {
- serializedName: "PolicySnippetsCollection",
- type: {
- name: "Composite",
- className: "PolicySnippetsCollection",
- modelProperties: {
- value: {
- serializedName: "value",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "PolicySnippetContract"
- }
- }
- }
- }
- }
- }
- };
- var RegionContract = {
- serializedName: "RegionContract",
- type: {
- name: "Composite",
- className: "RegionContract",
- modelProperties: {
- name: {
- readOnly: true,
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- isMasterRegion: {
- serializedName: "isMasterRegion",
- type: {
- name: "Boolean"
- }
- },
- isDeleted: {
- serializedName: "isDeleted",
- type: {
- name: "Boolean"
- }
- }
- }
- }
- };
- var ApiExportResult = {
- serializedName: "ApiExportResult",
- type: {
- name: "Composite",
- className: "ApiExportResult",
- modelProperties: {
- link: {
- serializedName: "link",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiVersionSetContractDetails = {
- serializedName: "ApiVersionSetContractDetails",
- type: {
- name: "Composite",
- className: "ApiVersionSetContractDetails",
- modelProperties: {
- id: {
- serializedName: "id",
- type: {
- name: "String"
- }
- },
- description: {
- serializedName: "description",
- type: {
- name: "String"
- }
- },
- versioningScheme: {
- serializedName: "versioningScheme",
- type: {
- name: "String"
- }
- },
- versionQueryName: {
- serializedName: "versionQueryName",
- type: {
- name: "String"
- }
- },
- versionHeaderName: {
- serializedName: "versionHeaderName",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiEntityBaseContract = {
- serializedName: "ApiEntityBaseContract",
- type: {
- name: "Composite",
- className: "ApiEntityBaseContract",
- modelProperties: {
- description: {
- serializedName: "description",
- type: {
- name: "String"
- }
- },
- authenticationSettings: {
- serializedName: "authenticationSettings",
- type: {
- name: "Composite",
- className: "AuthenticationSettingsContract"
- }
- },
- subscriptionKeyParameterNames: {
- serializedName: "subscriptionKeyParameterNames",
- type: {
- name: "Composite",
- className: "SubscriptionKeyParameterNamesContract"
- }
- },
- apiType: {
- serializedName: "type",
- type: {
- name: "String"
- }
- },
- apiRevision: {
- serializedName: "apiRevision",
- constraints: {
- MaxLength: 100,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- apiVersion: {
- serializedName: "apiVersion",
- constraints: {
- MaxLength: 100
- },
- type: {
- name: "String"
- }
- },
- isCurrent: {
- readOnly: true,
- serializedName: "isCurrent",
- type: {
- name: "Boolean"
- }
- },
- isOnline: {
- readOnly: true,
- serializedName: "isOnline",
- type: {
- name: "Boolean"
- }
- },
- apiRevisionDescription: {
- serializedName: "apiRevisionDescription",
- constraints: {
- MaxLength: 256
- },
- type: {
- name: "String"
- }
- },
- apiVersionDescription: {
- serializedName: "apiVersionDescription",
- constraints: {
- MaxLength: 256
- },
- type: {
- name: "String"
- }
- },
- apiVersionSetId: {
- serializedName: "apiVersionSetId",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiContractProperties = {
- serializedName: "ApiContractProperties",
- type: {
- name: "Composite",
- className: "ApiContractProperties",
- modelProperties: __assign({}, ApiEntityBaseContract.type.modelProperties, { displayName: {
- serializedName: "displayName",
- constraints: {
- MaxLength: 300,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }, serviceUrl: {
- serializedName: "serviceUrl",
- constraints: {
- MaxLength: 2000,
- MinLength: 0
- },
- type: {
- name: "String"
- }
- }, path: {
- required: true,
- serializedName: "path",
- constraints: {
- MaxLength: 400,
- MinLength: 0
- },
- type: {
- name: "String"
- }
- }, protocols: {
- serializedName: "protocols",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Enum",
- allowedValues: [
- "http",
- "https"
- ]
- }
- }
- }
- }, apiVersionSet: {
- serializedName: "apiVersionSet",
- type: {
- name: "Composite",
- className: "ApiVersionSetContractDetails"
- }
- } })
- }
- };
- var ApiContract = {
- serializedName: "ApiContract",
- type: {
- name: "Composite",
- className: "ApiContract",
- modelProperties: __assign({}, Resource.type.modelProperties, { description: {
- serializedName: "properties.description",
- type: {
- name: "String"
- }
- }, authenticationSettings: {
- serializedName: "properties.authenticationSettings",
- type: {
- name: "Composite",
- className: "AuthenticationSettingsContract"
- }
- }, subscriptionKeyParameterNames: {
- serializedName: "properties.subscriptionKeyParameterNames",
- type: {
- name: "Composite",
- className: "SubscriptionKeyParameterNamesContract"
- }
- }, apiType: {
- serializedName: "properties.type",
- type: {
- name: "String"
- }
- }, apiRevision: {
- serializedName: "properties.apiRevision",
- constraints: {
- MaxLength: 100,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }, apiVersion: {
- serializedName: "properties.apiVersion",
- constraints: {
- MaxLength: 100
- },
- type: {
- name: "String"
- }
- }, isCurrent: {
- readOnly: true,
- serializedName: "properties.isCurrent",
- type: {
- name: "Boolean"
- }
- }, isOnline: {
- readOnly: true,
- serializedName: "properties.isOnline",
- type: {
- name: "Boolean"
- }
- }, apiRevisionDescription: {
- serializedName: "properties.apiRevisionDescription",
- constraints: {
- MaxLength: 256
- },
- type: {
- name: "String"
- }
- }, apiVersionDescription: {
- serializedName: "properties.apiVersionDescription",
- constraints: {
- MaxLength: 256
- },
- type: {
- name: "String"
- }
- }, apiVersionSetId: {
- serializedName: "properties.apiVersionSetId",
- type: {
- name: "String"
- }
- }, displayName: {
- serializedName: "properties.displayName",
- constraints: {
- MaxLength: 300,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }, serviceUrl: {
- serializedName: "properties.serviceUrl",
- constraints: {
- MaxLength: 2000,
- MinLength: 0
- },
- type: {
- name: "String"
- }
- }, path: {
- required: true,
- serializedName: "properties.path",
- constraints: {
- MaxLength: 400,
- MinLength: 0
- },
- type: {
- name: "String"
- }
- }, protocols: {
- serializedName: "properties.protocols",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Enum",
- allowedValues: [
- "http",
- "https"
- ]
- }
- }
- }
- }, apiVersionSet: {
- serializedName: "properties.apiVersionSet",
- type: {
- name: "Composite",
- className: "ApiVersionSetContractDetails"
- }
- } })
- }
- };
- var ApiCreateOrUpdatePropertiesWsdlSelector = {
- serializedName: "ApiCreateOrUpdateProperties_wsdlSelector",
- type: {
- name: "Composite",
- className: "ApiCreateOrUpdatePropertiesWsdlSelector",
- modelProperties: {
- wsdlServiceName: {
- serializedName: "wsdlServiceName",
- type: {
- name: "String"
- }
- },
- wsdlEndpointName: {
- serializedName: "wsdlEndpointName",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiCreateOrUpdateParameter = {
- serializedName: "ApiCreateOrUpdateParameter",
- type: {
- name: "Composite",
- className: "ApiCreateOrUpdateParameter",
- modelProperties: {
- description: {
- serializedName: "properties.description",
- type: {
- name: "String"
- }
- },
- authenticationSettings: {
- serializedName: "properties.authenticationSettings",
- type: {
- name: "Composite",
- className: "AuthenticationSettingsContract"
- }
- },
- subscriptionKeyParameterNames: {
- serializedName: "properties.subscriptionKeyParameterNames",
- type: {
- name: "Composite",
- className: "SubscriptionKeyParameterNamesContract"
- }
- },
- apiType: {
- serializedName: "properties.type",
- type: {
- name: "String"
- }
- },
- apiRevision: {
- serializedName: "properties.apiRevision",
- constraints: {
- MaxLength: 100,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- apiVersion: {
- serializedName: "properties.apiVersion",
- constraints: {
- MaxLength: 100
- },
- type: {
- name: "String"
- }
- },
- isCurrent: {
- readOnly: true,
- serializedName: "properties.isCurrent",
- type: {
- name: "Boolean"
- }
- },
- isOnline: {
- readOnly: true,
- serializedName: "properties.isOnline",
- type: {
- name: "Boolean"
- }
- },
- apiRevisionDescription: {
- serializedName: "properties.apiRevisionDescription",
- constraints: {
- MaxLength: 256
- },
- type: {
- name: "String"
- }
- },
- apiVersionDescription: {
- serializedName: "properties.apiVersionDescription",
- constraints: {
- MaxLength: 256
- },
- type: {
- name: "String"
- }
- },
- apiVersionSetId: {
- serializedName: "properties.apiVersionSetId",
- type: {
- name: "String"
- }
- },
- displayName: {
- serializedName: "properties.displayName",
- constraints: {
- MaxLength: 300,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- serviceUrl: {
- serializedName: "properties.serviceUrl",
- constraints: {
- MaxLength: 2000,
- MinLength: 0
- },
- type: {
- name: "String"
- }
- },
- path: {
- required: true,
- serializedName: "properties.path",
- constraints: {
- MaxLength: 400,
- MinLength: 0
- },
- type: {
- name: "String"
- }
- },
- protocols: {
- serializedName: "properties.protocols",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Enum",
- allowedValues: [
- "http",
- "https"
- ]
- }
- }
- }
- },
- apiVersionSet: {
- serializedName: "properties.apiVersionSet",
- type: {
- name: "Composite",
- className: "ApiVersionSetContractDetails"
- }
- },
- contentValue: {
- serializedName: "properties.contentValue",
- type: {
- name: "String"
- }
- },
- contentFormat: {
- serializedName: "properties.contentFormat",
- type: {
- name: "String"
- }
- },
- wsdlSelector: {
- serializedName: "properties.wsdlSelector",
- type: {
- name: "Composite",
- className: "ApiCreateOrUpdatePropertiesWsdlSelector"
- }
- },
- soapApiType: {
- serializedName: "properties.apiType",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiUpdateContract = {
- serializedName: "ApiUpdateContract",
- type: {
- name: "Composite",
- className: "ApiUpdateContract",
- modelProperties: {
- description: {
- serializedName: "properties.description",
- type: {
- name: "String"
- }
- },
- authenticationSettings: {
- serializedName: "properties.authenticationSettings",
- type: {
- name: "Composite",
- className: "AuthenticationSettingsContract"
- }
- },
- subscriptionKeyParameterNames: {
- serializedName: "properties.subscriptionKeyParameterNames",
- type: {
- name: "Composite",
- className: "SubscriptionKeyParameterNamesContract"
- }
- },
- apiType: {
- serializedName: "properties.type",
- type: {
- name: "String"
- }
- },
- apiRevision: {
- serializedName: "properties.apiRevision",
- constraints: {
- MaxLength: 100,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- apiVersion: {
- serializedName: "properties.apiVersion",
- constraints: {
- MaxLength: 100
- },
- type: {
- name: "String"
- }
- },
- isCurrent: {
- readOnly: true,
- serializedName: "properties.isCurrent",
- type: {
- name: "Boolean"
- }
- },
- isOnline: {
- readOnly: true,
- serializedName: "properties.isOnline",
- type: {
- name: "Boolean"
- }
- },
- apiRevisionDescription: {
- serializedName: "properties.apiRevisionDescription",
- constraints: {
- MaxLength: 256
- },
- type: {
- name: "String"
- }
- },
- apiVersionDescription: {
- serializedName: "properties.apiVersionDescription",
- constraints: {
- MaxLength: 256
- },
- type: {
- name: "String"
- }
- },
- apiVersionSetId: {
- serializedName: "properties.apiVersionSetId",
- type: {
- name: "String"
- }
- },
- displayName: {
- serializedName: "properties.displayName",
- constraints: {
- MaxLength: 300,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- serviceUrl: {
- serializedName: "properties.serviceUrl",
- constraints: {
- MaxLength: 2000,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- path: {
- serializedName: "properties.path",
- constraints: {
- MaxLength: 400,
- MinLength: 0
- },
- type: {
- name: "String"
- }
- },
- protocols: {
- serializedName: "properties.protocols",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Enum",
- allowedValues: [
- "http",
- "https"
- ]
- }
- }
- }
- }
- }
- }
- };
- var OAuth2AuthenticationSettingsContract = {
- serializedName: "OAuth2AuthenticationSettingsContract",
- type: {
- name: "Composite",
- className: "OAuth2AuthenticationSettingsContract",
- modelProperties: {
- authorizationServerId: {
- serializedName: "authorizationServerId",
- type: {
- name: "String"
- }
- },
- scope: {
- serializedName: "scope",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var OpenIdAuthenticationSettingsContract = {
- serializedName: "OpenIdAuthenticationSettingsContract",
- type: {
- name: "Composite",
- className: "OpenIdAuthenticationSettingsContract",
- modelProperties: {
- openidProviderId: {
- serializedName: "openidProviderId",
- type: {
- name: "String"
- }
- },
- bearerTokenSendingMethods: {
- serializedName: "bearerTokenSendingMethods",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- }
- }
- }
- };
- var AuthenticationSettingsContract = {
- serializedName: "AuthenticationSettingsContract",
- type: {
- name: "Composite",
- className: "AuthenticationSettingsContract",
- modelProperties: {
- oAuth2: {
- serializedName: "oAuth2",
- type: {
- name: "Composite",
- className: "OAuth2AuthenticationSettingsContract"
- }
- },
- openid: {
- serializedName: "openid",
- type: {
- name: "Composite",
- className: "OpenIdAuthenticationSettingsContract"
- }
- },
- subscriptionKeyRequired: {
- serializedName: "subscriptionKeyRequired",
- type: {
- name: "Boolean"
- }
- }
- }
- }
- };
- var SubscriptionKeyParameterNamesContract = {
- serializedName: "SubscriptionKeyParameterNamesContract",
- type: {
- name: "Composite",
- className: "SubscriptionKeyParameterNamesContract",
- modelProperties: {
- header: {
- serializedName: "header",
- type: {
- name: "String"
- }
- },
- query: {
- serializedName: "query",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiRevisionContract = {
- serializedName: "ApiRevisionContract",
- type: {
- name: "Composite",
- className: "ApiRevisionContract",
- modelProperties: {
- apiId: {
- readOnly: true,
- serializedName: "apiId",
- type: {
- name: "String"
- }
- },
- apiRevision: {
- readOnly: true,
- serializedName: "apiRevision",
- constraints: {
- MaxLength: 100,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- createdDateTime: {
- readOnly: true,
- serializedName: "createdDateTime",
- type: {
- name: "DateTime"
- }
- },
- updatedDateTime: {
- readOnly: true,
- serializedName: "updatedDateTime",
- type: {
- name: "DateTime"
- }
- },
- description: {
- readOnly: true,
- serializedName: "description",
- constraints: {
- MaxLength: 256
- },
- type: {
- name: "String"
- }
- },
- privateUrl: {
- readOnly: true,
- serializedName: "privateUrl",
- type: {
- name: "String"
- }
- },
- isOnline: {
- readOnly: true,
- serializedName: "isOnline",
- type: {
- name: "Boolean"
- }
- },
- isCurrent: {
- readOnly: true,
- serializedName: "isCurrent",
- type: {
- name: "Boolean"
- }
- }
- }
- }
- };
- var ApiRevisionInfoContract = {
- serializedName: "ApiRevisionInfoContract",
- type: {
- name: "Composite",
- className: "ApiRevisionInfoContract",
- modelProperties: {
- sourceApiId: {
- serializedName: "sourceApiId",
- type: {
- name: "String"
- }
- },
- apiVersionName: {
- serializedName: "apiVersionName",
- constraints: {
- MaxLength: 100
- },
- type: {
- name: "String"
- }
- },
- apiRevisionDescription: {
- serializedName: "apiRevisionDescription",
- constraints: {
- MaxLength: 256
- },
- type: {
- name: "String"
- }
- },
- apiVersionSet: {
- serializedName: "apiVersionSet",
- type: {
- name: "Composite",
- className: "ApiVersionSetContractDetails"
- }
- }
- }
- }
- };
- var ApiReleaseContract = {
- serializedName: "ApiReleaseContract",
- type: {
- name: "Composite",
- className: "ApiReleaseContract",
- modelProperties: __assign({}, Resource.type.modelProperties, { apiId: {
- serializedName: "properties.apiId",
- type: {
- name: "String"
- }
- }, createdDateTime: {
- readOnly: true,
- serializedName: "properties.createdDateTime",
- type: {
- name: "DateTime"
- }
- }, updatedDateTime: {
- readOnly: true,
- serializedName: "properties.updatedDateTime",
- type: {
- name: "DateTime"
- }
- }, notes: {
- serializedName: "properties.notes",
- type: {
- name: "String"
- }
- } })
- }
- };
- var OperationContract = {
- serializedName: "OperationContract",
- type: {
- name: "Composite",
- className: "OperationContract",
- modelProperties: __assign({}, Resource.type.modelProperties, { templateParameters: {
- serializedName: "properties.templateParameters",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ParameterContract"
- }
- }
- }
- }, description: {
- serializedName: "properties.description",
- constraints: {
- MaxLength: 1000
- },
- type: {
- name: "String"
- }
- }, request: {
- serializedName: "properties.request",
- type: {
- name: "Composite",
- className: "RequestContract"
- }
- }, responses: {
- serializedName: "properties.responses",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ResponseContract"
- }
- }
- }
- }, policies: {
- serializedName: "properties.policies",
- type: {
- name: "String"
- }
- }, displayName: {
- required: true,
- serializedName: "properties.displayName",
- constraints: {
- MaxLength: 300,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }, method: {
- required: true,
- serializedName: "properties.method",
- type: {
- name: "String"
- }
- }, urlTemplate: {
- required: true,
- serializedName: "properties.urlTemplate",
- constraints: {
- MaxLength: 1000,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- } })
- }
- };
- var ParameterContract = {
- serializedName: "ParameterContract",
- type: {
- name: "Composite",
- className: "ParameterContract",
- modelProperties: {
- name: {
- required: true,
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- description: {
- serializedName: "description",
- type: {
- name: "String"
- }
- },
- type: {
- required: true,
- serializedName: "type",
- type: {
- name: "String"
- }
- },
- defaultValue: {
- serializedName: "defaultValue",
- type: {
- name: "String"
- }
- },
- required: {
- serializedName: "required",
- type: {
- name: "Boolean"
- }
- },
- values: {
- serializedName: "values",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- }
- }
- }
- };
- var RepresentationContract = {
- serializedName: "RepresentationContract",
- type: {
- name: "Composite",
- className: "RepresentationContract",
- modelProperties: {
- contentType: {
- required: true,
- serializedName: "contentType",
- type: {
- name: "String"
- }
- },
- sample: {
- serializedName: "sample",
- type: {
- name: "String"
- }
- },
- schemaId: {
- serializedName: "schemaId",
- type: {
- name: "String"
- }
- },
- typeName: {
- serializedName: "typeName",
- type: {
- name: "String"
- }
- },
- formParameters: {
- serializedName: "formParameters",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ParameterContract"
- }
- }
- }
- }
- }
- }
- };
- var RequestContract = {
- serializedName: "RequestContract",
- type: {
- name: "Composite",
- className: "RequestContract",
- modelProperties: {
- description: {
- serializedName: "description",
- type: {
- name: "String"
- }
- },
- queryParameters: {
- serializedName: "queryParameters",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ParameterContract"
- }
- }
- }
- },
- headers: {
- serializedName: "headers",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ParameterContract"
- }
- }
- }
- },
- representations: {
- serializedName: "representations",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "RepresentationContract"
- }
- }
- }
- }
- }
- }
- };
- var ResponseContract = {
- serializedName: "ResponseContract",
- type: {
- name: "Composite",
- className: "ResponseContract",
- modelProperties: {
- statusCode: {
- required: true,
- serializedName: "statusCode",
- type: {
- name: "Number"
- }
- },
- description: {
- serializedName: "description",
- type: {
- name: "String"
- }
- },
- representations: {
- serializedName: "representations",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "RepresentationContract"
- }
- }
- }
- },
- headers: {
- serializedName: "headers",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ParameterContract"
- }
- }
- }
- }
- }
- }
- };
- var OperationEntityBaseContract = {
- serializedName: "OperationEntityBaseContract",
- type: {
- name: "Composite",
- className: "OperationEntityBaseContract",
- modelProperties: {
- templateParameters: {
- serializedName: "templateParameters",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ParameterContract"
- }
- }
- }
- },
- description: {
- serializedName: "description",
- constraints: {
- MaxLength: 1000
- },
- type: {
- name: "String"
- }
- },
- request: {
- serializedName: "request",
- type: {
- name: "Composite",
- className: "RequestContract"
- }
- },
- responses: {
- serializedName: "responses",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ResponseContract"
- }
- }
- }
- },
- policies: {
- serializedName: "policies",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var OperationUpdateContract = {
- serializedName: "OperationUpdateContract",
- type: {
- name: "Composite",
- className: "OperationUpdateContract",
- modelProperties: {
- templateParameters: {
- serializedName: "properties.templateParameters",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ParameterContract"
- }
- }
- }
- },
- description: {
- serializedName: "properties.description",
- constraints: {
- MaxLength: 1000
- },
- type: {
- name: "String"
- }
- },
- request: {
- serializedName: "properties.request",
- type: {
- name: "Composite",
- className: "RequestContract"
- }
- },
- responses: {
- serializedName: "properties.responses",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ResponseContract"
- }
- }
- }
- },
- policies: {
- serializedName: "properties.policies",
- type: {
- name: "String"
- }
- },
- displayName: {
- serializedName: "properties.displayName",
- constraints: {
- MaxLength: 300,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- method: {
- serializedName: "properties.method",
- type: {
- name: "String"
- }
- },
- urlTemplate: {
- serializedName: "properties.urlTemplate",
- constraints: {
- MaxLength: 1000,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var SchemaContract = {
- serializedName: "SchemaContract",
- type: {
- name: "Composite",
- className: "SchemaContract",
- modelProperties: __assign({}, Resource.type.modelProperties, { contentType: {
- required: true,
- serializedName: "properties.contentType",
- type: {
- name: "String"
- }
- }, value: {
- serializedName: "properties.document.value",
- type: {
- name: "String"
- }
- } })
- }
- };
- var IssueContract = {
- serializedName: "IssueContract",
- type: {
- name: "Composite",
- className: "IssueContract",
- modelProperties: __assign({}, Resource.type.modelProperties, { title: {
- required: true,
- serializedName: "properties.title",
- type: {
- name: "String"
- }
- }, description: {
- required: true,
- serializedName: "properties.description",
- type: {
- name: "String"
- }
- }, createdDate: {
- serializedName: "properties.createdDate",
- type: {
- name: "DateTime"
- }
- }, state: {
- serializedName: "properties.state",
- type: {
- name: "String"
- }
- }, userId: {
- required: true,
- serializedName: "properties.userId",
- type: {
- name: "String"
- }
- }, apiId: {
- serializedName: "properties.apiId",
- type: {
- name: "String"
- }
- } })
- }
- };
- var IssueCommentContract = {
- serializedName: "IssueCommentContract",
- type: {
- name: "Composite",
- className: "IssueCommentContract",
- modelProperties: __assign({}, Resource.type.modelProperties, { text: {
- required: true,
- serializedName: "properties.text",
- type: {
- name: "String"
- }
- }, createdDate: {
- serializedName: "properties.createdDate",
- type: {
- name: "DateTime"
- }
- }, userId: {
- required: true,
- serializedName: "properties.userId",
- type: {
- name: "String"
- }
- } })
- }
- };
- var IssueAttachmentContract = {
- serializedName: "IssueAttachmentContract",
- type: {
- name: "Composite",
- className: "IssueAttachmentContract",
- modelProperties: __assign({}, Resource.type.modelProperties, { title: {
- required: true,
- serializedName: "properties.title",
- type: {
- name: "String"
- }
- }, contentFormat: {
- required: true,
- serializedName: "properties.contentFormat",
- type: {
- name: "String"
- }
- }, content: {
- required: true,
- serializedName: "properties.content",
- type: {
- name: "String"
- }
- } })
- }
- };
- var LoggerContract = {
- serializedName: "LoggerContract",
- type: {
- name: "Composite",
- className: "LoggerContract",
- modelProperties: __assign({}, Resource.type.modelProperties, { loggerType: {
- required: true,
- serializedName: "properties.loggerType",
- type: {
- name: "String"
- }
- }, description: {
- serializedName: "properties.description",
- constraints: {
- MaxLength: 256
- },
- type: {
- name: "String"
- }
- }, credentials: {
- required: true,
- serializedName: "properties.credentials",
- type: {
- name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
- }
- }
- }, isBuffered: {
- serializedName: "properties.isBuffered",
- type: {
- name: "Boolean"
- }
- } })
- }
- };
- var DiagnosticContract = {
- serializedName: "DiagnosticContract",
- type: {
- name: "Composite",
- className: "DiagnosticContract",
- modelProperties: __assign({}, Resource.type.modelProperties, { enabled: {
- required: true,
- serializedName: "properties.enabled",
- type: {
- name: "Boolean"
- }
- } })
- }
- };
- var ProductEntityBaseParameters = {
- serializedName: "ProductEntityBaseParameters",
- type: {
- name: "Composite",
- className: "ProductEntityBaseParameters",
- modelProperties: {
- description: {
- serializedName: "description",
- constraints: {
- MaxLength: 1000,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- terms: {
- serializedName: "terms",
- type: {
- name: "String"
- }
- },
- subscriptionRequired: {
- serializedName: "subscriptionRequired",
- type: {
- name: "Boolean"
- }
- },
- approvalRequired: {
- serializedName: "approvalRequired",
- type: {
- name: "Boolean"
- }
- },
- subscriptionsLimit: {
- serializedName: "subscriptionsLimit",
- type: {
- name: "Number"
- }
- },
- state: {
- serializedName: "state",
- type: {
- name: "Enum",
- allowedValues: [
- "notPublished",
- "published"
- ]
- }
- }
- }
- }
- };
- var ProductTagResourceContractProperties = {
- serializedName: "ProductTagResourceContractProperties",
- type: {
- name: "Composite",
- className: "ProductTagResourceContractProperties",
- modelProperties: __assign({}, ProductEntityBaseParameters.type.modelProperties, { id: {
- serializedName: "id",
- type: {
- name: "String"
- }
- }, name: {
- required: true,
- serializedName: "name",
- constraints: {
- MaxLength: 300,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- } })
- }
- };
- var OperationTagResourceContractProperties = {
- serializedName: "OperationTagResourceContractProperties",
- type: {
- name: "Composite",
- className: "OperationTagResourceContractProperties",
- modelProperties: {
- id: {
- serializedName: "id",
- type: {
- name: "String"
- }
- },
- name: {
- readOnly: true,
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- apiName: {
- readOnly: true,
- serializedName: "apiName",
- type: {
- name: "String"
- }
- },
- apiRevision: {
- readOnly: true,
- serializedName: "apiRevision",
- type: {
- name: "String"
- }
- },
- apiVersion: {
- readOnly: true,
- serializedName: "apiVersion",
- type: {
- name: "String"
- }
- },
- description: {
- readOnly: true,
- serializedName: "description",
- type: {
- name: "String"
- }
- },
- method: {
- readOnly: true,
- serializedName: "method",
- type: {
- name: "String"
- }
- },
- urlTemplate: {
- readOnly: true,
- serializedName: "urlTemplate",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiTagResourceContractProperties = {
- serializedName: "ApiTagResourceContractProperties",
- type: {
- name: "Composite",
- className: "ApiTagResourceContractProperties",
- modelProperties: __assign({}, ApiEntityBaseContract.type.modelProperties, { id: {
- serializedName: "id",
- type: {
- name: "String"
- }
- }, name: {
- serializedName: "name",
- constraints: {
- MaxLength: 300,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }, serviceUrl: {
- serializedName: "serviceUrl",
- constraints: {
- MaxLength: 2000,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }, path: {
- serializedName: "path",
- constraints: {
- MaxLength: 400,
- MinLength: 0
- },
- type: {
- name: "String"
- }
- }, protocols: {
- serializedName: "protocols",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Enum",
- allowedValues: [
- "http",
- "https"
- ]
- }
- }
- }
- } })
- }
- };
- var TagTagResourceContractProperties = {
- serializedName: "TagTagResourceContractProperties",
- type: {
- name: "Composite",
- className: "TagTagResourceContractProperties",
- modelProperties: {
- id: {
- serializedName: "id",
- type: {
- name: "String"
- }
- },
- name: {
- serializedName: "name",
- constraints: {
- MaxLength: 160,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var TagResourceContract = {
- serializedName: "TagResourceContract",
- type: {
- name: "Composite",
- className: "TagResourceContract",
- modelProperties: {
- tag: {
- required: true,
- serializedName: "tag",
- type: {
- name: "Composite",
- className: "TagTagResourceContractProperties"
- }
- },
- api: {
- serializedName: "api",
- type: {
- name: "Composite",
- className: "ApiTagResourceContractProperties"
- }
- },
- operation: {
- serializedName: "operation",
- type: {
- name: "Composite",
- className: "OperationTagResourceContractProperties"
- }
- },
- product: {
- serializedName: "product",
- type: {
- name: "Composite",
- className: "ProductTagResourceContractProperties"
- }
- }
- }
- }
- };
- var ProductContract = {
- serializedName: "ProductContract",
- type: {
- name: "Composite",
- className: "ProductContract",
- modelProperties: __assign({}, Resource.type.modelProperties, { description: {
- serializedName: "properties.description",
- constraints: {
- MaxLength: 1000,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }, terms: {
- serializedName: "properties.terms",
- type: {
- name: "String"
- }
- }, subscriptionRequired: {
- serializedName: "properties.subscriptionRequired",
- type: {
- name: "Boolean"
- }
- }, approvalRequired: {
- serializedName: "properties.approvalRequired",
- type: {
- name: "Boolean"
- }
- }, subscriptionsLimit: {
- serializedName: "properties.subscriptionsLimit",
- type: {
- name: "Number"
- }
- }, state: {
- serializedName: "properties.state",
- type: {
- name: "Enum",
- allowedValues: [
- "notPublished",
- "published"
- ]
- }
- }, displayName: {
- required: true,
- serializedName: "properties.displayName",
- constraints: {
- MaxLength: 300,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- } })
- }
- };
- var AuthorizationServerContract = {
- serializedName: "AuthorizationServerContract",
- type: {
- name: "Composite",
- className: "AuthorizationServerContract",
- modelProperties: __assign({}, Resource.type.modelProperties, { description: {
- serializedName: "properties.description",
- type: {
- name: "String"
- }
- }, authorizationMethods: {
- serializedName: "properties.authorizationMethods",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Enum",
- allowedValues: [
- "HEAD",
- "OPTIONS",
- "TRACE",
- "GET",
- "POST",
- "PUT",
- "PATCH",
- "DELETE"
- ]
- }
- }
- }
- }, clientAuthenticationMethod: {
- serializedName: "properties.clientAuthenticationMethod",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- }, tokenBodyParameters: {
- serializedName: "properties.tokenBodyParameters",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "TokenBodyParameterContract"
- }
- }
- }
- }, tokenEndpoint: {
- serializedName: "properties.tokenEndpoint",
- type: {
- name: "String"
- }
- }, supportState: {
- serializedName: "properties.supportState",
- type: {
- name: "Boolean"
- }
- }, defaultScope: {
- serializedName: "properties.defaultScope",
- type: {
- name: "String"
- }
- }, bearerTokenSendingMethods: {
- serializedName: "properties.bearerTokenSendingMethods",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- }, clientSecret: {
- serializedName: "properties.clientSecret",
- type: {
- name: "String"
- }
- }, resourceOwnerUsername: {
- serializedName: "properties.resourceOwnerUsername",
- type: {
- name: "String"
- }
- }, resourceOwnerPassword: {
- serializedName: "properties.resourceOwnerPassword",
- type: {
- name: "String"
- }
- }, displayName: {
- required: true,
- serializedName: "properties.displayName",
- constraints: {
- MaxLength: 50,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }, clientRegistrationEndpoint: {
- required: true,
- serializedName: "properties.clientRegistrationEndpoint",
- type: {
- name: "String"
- }
- }, authorizationEndpoint: {
- required: true,
- serializedName: "properties.authorizationEndpoint",
- type: {
- name: "String"
- }
- }, grantTypes: {
- required: true,
- serializedName: "properties.grantTypes",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- }, clientId: {
- required: true,
- serializedName: "properties.clientId",
- type: {
- name: "String"
- }
- } })
- }
- };
- var AuthorizationServerUpdateContract = {
- serializedName: "AuthorizationServerUpdateContract",
- type: {
- name: "Composite",
- className: "AuthorizationServerUpdateContract",
- modelProperties: __assign({}, Resource.type.modelProperties, { description: {
- serializedName: "properties.description",
- type: {
- name: "String"
- }
- }, authorizationMethods: {
- serializedName: "properties.authorizationMethods",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Enum",
- allowedValues: [
- "HEAD",
- "OPTIONS",
- "TRACE",
- "GET",
- "POST",
- "PUT",
- "PATCH",
- "DELETE"
- ]
- }
- }
- }
- }, clientAuthenticationMethod: {
- serializedName: "properties.clientAuthenticationMethod",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- }, tokenBodyParameters: {
- serializedName: "properties.tokenBodyParameters",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "TokenBodyParameterContract"
- }
- }
- }
- }, tokenEndpoint: {
- serializedName: "properties.tokenEndpoint",
- type: {
- name: "String"
- }
- }, supportState: {
- serializedName: "properties.supportState",
- type: {
- name: "Boolean"
- }
- }, defaultScope: {
- serializedName: "properties.defaultScope",
- type: {
- name: "String"
- }
- }, bearerTokenSendingMethods: {
- serializedName: "properties.bearerTokenSendingMethods",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- }, clientSecret: {
- serializedName: "properties.clientSecret",
- type: {
- name: "String"
- }
- }, resourceOwnerUsername: {
- serializedName: "properties.resourceOwnerUsername",
- type: {
- name: "String"
- }
- }, resourceOwnerPassword: {
- serializedName: "properties.resourceOwnerPassword",
- type: {
- name: "String"
- }
- }, displayName: {
- serializedName: "properties.displayName",
- constraints: {
- MaxLength: 50,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }, clientRegistrationEndpoint: {
- serializedName: "properties.clientRegistrationEndpoint",
- type: {
- name: "String"
- }
- }, authorizationEndpoint: {
- serializedName: "properties.authorizationEndpoint",
- type: {
- name: "String"
- }
- }, grantTypes: {
- serializedName: "properties.grantTypes",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- }, clientId: {
- serializedName: "properties.clientId",
- type: {
- name: "String"
- }
- } })
- }
- };
- var TokenBodyParameterContract = {
- serializedName: "TokenBodyParameterContract",
- type: {
- name: "Composite",
- className: "TokenBodyParameterContract",
- modelProperties: {
- name: {
- required: true,
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- value: {
- required: true,
- serializedName: "value",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var AuthorizationServerContractBaseProperties = {
- serializedName: "AuthorizationServerContractBaseProperties",
- type: {
- name: "Composite",
- className: "AuthorizationServerContractBaseProperties",
- modelProperties: {
- description: {
- serializedName: "description",
- type: {
- name: "String"
- }
- },
- authorizationMethods: {
- serializedName: "authorizationMethods",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Enum",
- allowedValues: [
- "HEAD",
- "OPTIONS",
- "TRACE",
- "GET",
- "POST",
- "PUT",
- "PATCH",
- "DELETE"
- ]
- }
- }
- }
- },
- clientAuthenticationMethod: {
- serializedName: "clientAuthenticationMethod",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- },
- tokenBodyParameters: {
- serializedName: "tokenBodyParameters",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "TokenBodyParameterContract"
- }
- }
- }
- },
- tokenEndpoint: {
- serializedName: "tokenEndpoint",
- type: {
- name: "String"
- }
- },
- supportState: {
- serializedName: "supportState",
- type: {
- name: "Boolean"
- }
- },
- defaultScope: {
- serializedName: "defaultScope",
- type: {
- name: "String"
- }
- },
- bearerTokenSendingMethods: {
- serializedName: "bearerTokenSendingMethods",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- },
- clientSecret: {
- serializedName: "clientSecret",
- type: {
- name: "String"
- }
- },
- resourceOwnerUsername: {
- serializedName: "resourceOwnerUsername",
- type: {
- name: "String"
- }
- },
- resourceOwnerPassword: {
- serializedName: "resourceOwnerPassword",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var BackendAuthorizationHeaderCredentials = {
- serializedName: "BackendAuthorizationHeaderCredentials",
- type: {
- name: "Composite",
- className: "BackendAuthorizationHeaderCredentials",
- modelProperties: {
- scheme: {
- required: true,
- serializedName: "scheme",
- constraints: {
- MaxLength: 100,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- parameter: {
- required: true,
- serializedName: "parameter",
- constraints: {
- MaxLength: 300,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var X509CertificateName = {
- serializedName: "X509CertificateName",
- type: {
- name: "Composite",
- className: "X509CertificateName",
- modelProperties: {
- name: {
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- issuerCertificateThumbprint: {
- serializedName: "issuerCertificateThumbprint",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var BackendServiceFabricClusterProperties = {
- serializedName: "BackendServiceFabricClusterProperties",
- type: {
- name: "Composite",
- className: "BackendServiceFabricClusterProperties",
- modelProperties: {
- clientCertificatethumbprint: {
- required: true,
- serializedName: "clientCertificatethumbprint",
- type: {
- name: "String"
- }
- },
- maxPartitionResolutionRetries: {
- serializedName: "maxPartitionResolutionRetries",
- type: {
- name: "Number"
- }
- },
- managementEndpoints: {
- required: true,
- serializedName: "managementEndpoints",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- },
- serverCertificateThumbprints: {
- serializedName: "serverCertificateThumbprints",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- },
- serverX509Names: {
- serializedName: "serverX509Names",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "X509CertificateName"
- }
- }
- }
- }
- }
- }
- };
- var BackendProperties = {
- serializedName: "BackendProperties",
- type: {
- name: "Composite",
- className: "BackendProperties",
- modelProperties: {
- serviceFabricCluster: {
- serializedName: "serviceFabricCluster",
- type: {
- name: "Composite",
- className: "BackendServiceFabricClusterProperties"
- }
- }
- }
- }
- };
- var BackendCredentialsContract = {
- serializedName: "BackendCredentialsContract",
- type: {
- name: "Composite",
- className: "BackendCredentialsContract",
- modelProperties: {
- certificate: {
- serializedName: "certificate",
- constraints: {
- MaxItems: 32
- },
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- },
- query: {
- serializedName: "query",
- type: {
- name: "Dictionary",
- value: {
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- }
- }
- },
- header: {
- serializedName: "header",
- type: {
- name: "Dictionary",
- value: {
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- }
- }
- },
- authorization: {
- serializedName: "authorization",
- type: {
- name: "Composite",
- className: "BackendAuthorizationHeaderCredentials"
- }
- }
- }
- }
- };
- var BackendProxyContract = {
- serializedName: "BackendProxyContract",
- type: {
- name: "Composite",
- className: "BackendProxyContract",
- modelProperties: {
- url: {
- required: true,
- serializedName: "url",
- constraints: {
- MaxLength: 2000,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- username: {
- serializedName: "username",
- type: {
- name: "String"
- }
- },
- password: {
- serializedName: "password",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var BackendTlsProperties = {
- serializedName: "BackendTlsProperties",
- type: {
- name: "Composite",
- className: "BackendTlsProperties",
- modelProperties: {
- validateCertificateChain: {
- serializedName: "validateCertificateChain",
- defaultValue: true,
- type: {
- name: "Boolean"
- }
- },
- validateCertificateName: {
- serializedName: "validateCertificateName",
- defaultValue: true,
- type: {
- name: "Boolean"
- }
- }
- }
- }
- };
- var BackendBaseParameters = {
- serializedName: "BackendBaseParameters",
- type: {
- name: "Composite",
- className: "BackendBaseParameters",
- modelProperties: {
- title: {
- serializedName: "title",
- constraints: {
- MaxLength: 300,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- description: {
- serializedName: "description",
- constraints: {
- MaxLength: 2000,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- resourceId: {
- serializedName: "resourceId",
- constraints: {
- MaxLength: 2000,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- properties: {
- serializedName: "properties",
- type: {
- name: "Composite",
- className: "BackendProperties"
- }
- },
- credentials: {
- serializedName: "credentials",
- type: {
- name: "Composite",
- className: "BackendCredentialsContract"
- }
- },
- proxy: {
- serializedName: "proxy",
- type: {
- name: "Composite",
- className: "BackendProxyContract"
- }
- },
- tls: {
- serializedName: "tls",
- type: {
- name: "Composite",
- className: "BackendTlsProperties"
- }
- }
- }
- }
- };
- var BackendContract = {
- serializedName: "BackendContract",
- type: {
- name: "Composite",
- className: "BackendContract",
- modelProperties: __assign({}, Resource.type.modelProperties, { title: {
- serializedName: "properties.title",
- constraints: {
- MaxLength: 300,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }, description: {
- serializedName: "properties.description",
- constraints: {
- MaxLength: 2000,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }, resourceId: {
- serializedName: "properties.resourceId",
- constraints: {
- MaxLength: 2000,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }, properties: {
- serializedName: "properties.properties",
- type: {
- name: "Composite",
- className: "BackendProperties"
- }
- }, credentials: {
- serializedName: "properties.credentials",
- type: {
- name: "Composite",
- className: "BackendCredentialsContract"
- }
- }, proxy: {
- serializedName: "properties.proxy",
- type: {
- name: "Composite",
- className: "BackendProxyContract"
- }
- }, tls: {
- serializedName: "properties.tls",
- type: {
- name: "Composite",
- className: "BackendTlsProperties"
- }
- }, url: {
- required: true,
- serializedName: "properties.url",
- constraints: {
- MaxLength: 2000,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }, protocol: {
- required: true,
- serializedName: "properties.protocol",
- type: {
- name: "String"
- }
- } })
- }
- };
- var BackendUpdateParameters = {
- serializedName: "BackendUpdateParameters",
- type: {
- name: "Composite",
- className: "BackendUpdateParameters",
- modelProperties: {
- title: {
- serializedName: "properties.title",
- constraints: {
- MaxLength: 300,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- description: {
- serializedName: "properties.description",
- constraints: {
- MaxLength: 2000,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- resourceId: {
- serializedName: "properties.resourceId",
- constraints: {
- MaxLength: 2000,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- properties: {
- serializedName: "properties.properties",
- type: {
- name: "Composite",
- className: "BackendProperties"
- }
- },
- credentials: {
- serializedName: "properties.credentials",
- type: {
- name: "Composite",
- className: "BackendCredentialsContract"
- }
- },
- proxy: {
- serializedName: "properties.proxy",
- type: {
- name: "Composite",
- className: "BackendProxyContract"
- }
- },
- tls: {
- serializedName: "properties.tls",
- type: {
- name: "Composite",
- className: "BackendTlsProperties"
- }
- },
- url: {
- serializedName: "properties.url",
- constraints: {
- MaxLength: 2000,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- protocol: {
- serializedName: "properties.protocol",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var BackendReconnectContract = {
- serializedName: "BackendReconnectContract",
- type: {
- name: "Composite",
- className: "BackendReconnectContract",
- modelProperties: __assign({}, Resource.type.modelProperties, { after: {
- serializedName: "properties.after",
- type: {
- name: "TimeSpan"
- }
- } })
- }
- };
- var CertificateContract = {
- serializedName: "CertificateContract",
- type: {
- name: "Composite",
- className: "CertificateContract",
- modelProperties: __assign({}, Resource.type.modelProperties, { subject: {
- required: true,
- serializedName: "properties.subject",
- type: {
- name: "String"
- }
- }, thumbprint: {
- required: true,
- serializedName: "properties.thumbprint",
- type: {
- name: "String"
- }
- }, expirationDate: {
- required: true,
- serializedName: "properties.expirationDate",
- type: {
- name: "DateTime"
- }
- } })
- }
- };
- var CertificateCreateOrUpdateParameters = {
- serializedName: "CertificateCreateOrUpdateParameters",
- type: {
- name: "Composite",
- className: "CertificateCreateOrUpdateParameters",
- modelProperties: {
- data: {
- required: true,
- serializedName: "properties.data",
- type: {
- name: "String"
- }
- },
- password: {
- required: true,
- serializedName: "properties.password",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var CertificateInformation = {
- serializedName: "CertificateInformation",
- type: {
- name: "Composite",
- className: "CertificateInformation",
- modelProperties: {
- expiry: {
- required: true,
- serializedName: "expiry",
- type: {
- name: "DateTime"
- }
- },
- thumbprint: {
- required: true,
- serializedName: "thumbprint",
- type: {
- name: "String"
- }
- },
- subject: {
- required: true,
- serializedName: "subject",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var CertificateConfiguration = {
- serializedName: "CertificateConfiguration",
- type: {
- name: "Composite",
- className: "CertificateConfiguration",
- modelProperties: {
- encodedCertificate: {
- serializedName: "encodedCertificate",
- type: {
- name: "String"
- }
- },
- certificatePassword: {
- serializedName: "certificatePassword",
- type: {
- name: "String"
- }
- },
- storeName: {
- required: true,
- serializedName: "storeName",
- type: {
- name: "String"
- }
- },
- certificate: {
- serializedName: "certificate",
- type: {
- name: "Composite",
- className: "CertificateInformation"
- }
- }
- }
- }
- };
- var HostnameConfiguration = {
- serializedName: "HostnameConfiguration",
- type: {
- name: "Composite",
- className: "HostnameConfiguration",
- modelProperties: {
- type: {
- required: true,
- serializedName: "type",
- type: {
- name: "Enum",
- allowedValues: [
- "Proxy",
- "Portal",
- "Management",
- "Scm"
- ]
- }
- },
- hostName: {
- required: true,
- serializedName: "hostName",
- type: {
- name: "String"
- }
- },
- keyVaultId: {
- serializedName: "keyVaultId",
- type: {
- name: "String"
- }
- },
- encodedCertificate: {
- serializedName: "encodedCertificate",
- type: {
- name: "String"
- }
- },
- certificatePassword: {
- serializedName: "certificatePassword",
- type: {
- name: "String"
- }
- },
- defaultSslBinding: {
- serializedName: "defaultSslBinding",
- defaultValue: false,
- type: {
- name: "Boolean"
- }
- },
- negotiateClientCertificate: {
- serializedName: "negotiateClientCertificate",
- defaultValue: false,
- type: {
- name: "Boolean"
- }
- },
- certificate: {
- serializedName: "certificate",
- type: {
- name: "Composite",
- className: "CertificateInformation"
- }
- }
- }
- }
- };
- var VirtualNetworkConfiguration = {
- serializedName: "VirtualNetworkConfiguration",
- type: {
- name: "Composite",
- className: "VirtualNetworkConfiguration",
- modelProperties: {
- vnetid: {
- readOnly: true,
- serializedName: "vnetid",
- type: {
- name: "String"
- }
- },
- subnetname: {
- readOnly: true,
- serializedName: "subnetname",
- type: {
- name: "String"
- }
- },
- subnetResourceId: {
- serializedName: "subnetResourceId",
- constraints: {
- Pattern: /^\/subscriptions\/[^\/]*\/resourceGroups\/[^\/]*\/providers\/Microsoft.(ClassicNetwork|Network)\/virtualNetworks\/[^\/]*\/subnets\/[^\/]*$/
- },
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiManagementServiceSkuProperties = {
- serializedName: "ApiManagementServiceSkuProperties",
- type: {
- name: "Composite",
- className: "ApiManagementServiceSkuProperties",
- modelProperties: {
- name: {
- required: true,
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- capacity: {
- serializedName: "capacity",
- defaultValue: 1,
- type: {
- name: "Number"
- }
- }
- }
- }
- };
- var AdditionalLocation = {
- serializedName: "AdditionalLocation",
- type: {
- name: "Composite",
- className: "AdditionalLocation",
- modelProperties: {
- location: {
- required: true,
- serializedName: "location",
- type: {
- name: "String"
- }
- },
- sku: {
- required: true,
- serializedName: "sku",
- type: {
- name: "Composite",
- className: "ApiManagementServiceSkuProperties"
- }
- },
- publicIPAddresses: {
- readOnly: true,
- serializedName: "publicIPAddresses",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- },
- privateIPAddresses: {
- readOnly: true,
- serializedName: "privateIPAddresses",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- },
- virtualNetworkConfiguration: {
- serializedName: "virtualNetworkConfiguration",
- type: {
- name: "Composite",
- className: "VirtualNetworkConfiguration"
- }
- },
- gatewayRegionalUrl: {
- readOnly: true,
- serializedName: "gatewayRegionalUrl",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiManagementServiceBackupRestoreParameters = {
- serializedName: "ApiManagementServiceBackupRestoreParameters",
- type: {
- name: "Composite",
- className: "ApiManagementServiceBackupRestoreParameters",
- modelProperties: {
- storageAccount: {
- required: true,
- serializedName: "storageAccount",
- type: {
- name: "String"
- }
- },
- accessKey: {
- required: true,
- serializedName: "accessKey",
- type: {
- name: "String"
- }
- },
- containerName: {
- required: true,
- serializedName: "containerName",
- type: {
- name: "String"
- }
- },
- backupName: {
- required: true,
- serializedName: "backupName",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiManagementServiceBaseProperties = {
- serializedName: "ApiManagementServiceBaseProperties",
- type: {
- name: "Composite",
- className: "ApiManagementServiceBaseProperties",
- modelProperties: {
- notificationSenderEmail: {
- serializedName: "notificationSenderEmail",
- constraints: {
- MaxLength: 100
- },
- type: {
- name: "String"
- }
- },
- provisioningState: {
- readOnly: true,
- serializedName: "provisioningState",
- type: {
- name: "String"
- }
- },
- targetProvisioningState: {
- readOnly: true,
- serializedName: "targetProvisioningState",
- type: {
- name: "String"
- }
- },
- createdAtUtc: {
- readOnly: true,
- serializedName: "createdAtUtc",
- type: {
- name: "DateTime"
- }
- },
- gatewayUrl: {
- readOnly: true,
- serializedName: "gatewayUrl",
- type: {
- name: "String"
- }
- },
- gatewayRegionalUrl: {
- readOnly: true,
- serializedName: "gatewayRegionalUrl",
- type: {
- name: "String"
- }
- },
- portalUrl: {
- readOnly: true,
- serializedName: "portalUrl",
- type: {
- name: "String"
- }
- },
- managementApiUrl: {
- readOnly: true,
- serializedName: "managementApiUrl",
- type: {
- name: "String"
- }
- },
- scmUrl: {
- readOnly: true,
- serializedName: "scmUrl",
- type: {
- name: "String"
- }
- },
- hostnameConfigurations: {
- serializedName: "hostnameConfigurations",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "HostnameConfiguration"
- }
- }
- }
- },
- publicIPAddresses: {
- readOnly: true,
- serializedName: "publicIPAddresses",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- },
- privateIPAddresses: {
- readOnly: true,
- serializedName: "privateIPAddresses",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- },
- virtualNetworkConfiguration: {
- serializedName: "virtualNetworkConfiguration",
- type: {
- name: "Composite",
- className: "VirtualNetworkConfiguration"
- }
- },
- additionalLocations: {
- serializedName: "additionalLocations",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "AdditionalLocation"
- }
- }
- }
- },
- customProperties: {
- serializedName: "customProperties",
- type: {
- name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
- }
- }
- },
- certificates: {
- serializedName: "certificates",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "CertificateConfiguration"
- }
- }
- }
- },
- virtualNetworkType: {
- serializedName: "virtualNetworkType",
- defaultValue: 'None',
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiManagementServiceIdentity = {
- serializedName: "ApiManagementServiceIdentity",
- type: {
- name: "Composite",
- className: "ApiManagementServiceIdentity",
- modelProperties: {
- type: {
- required: true,
- isConstant: true,
- serializedName: "type",
- defaultValue: 'SystemAssigned',
- type: {
- name: "String"
- }
- },
- principalId: {
- readOnly: true,
- serializedName: "principalId",
- type: {
- name: "Uuid"
- }
- },
- tenantId: {
- readOnly: true,
- serializedName: "tenantId",
- type: {
- name: "Uuid"
- }
- }
- }
- }
- };
- var ApimResource = {
- serializedName: "ApimResource",
- type: {
- name: "Composite",
- className: "ApimResource",
- modelProperties: {
- id: {
- readOnly: true,
- serializedName: "id",
- type: {
- name: "String"
- }
- },
- name: {
- readOnly: true,
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- type: {
- readOnly: true,
- serializedName: "type",
- type: {
- name: "String"
- }
- },
- tags: {
- serializedName: "tags",
- type: {
- name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
- }
- }
- }
- }
- }
- };
- var ApiManagementServiceResource = {
- serializedName: "ApiManagementServiceResource",
- type: {
- name: "Composite",
- className: "ApiManagementServiceResource",
- modelProperties: __assign({}, ApimResource.type.modelProperties, { notificationSenderEmail: {
- serializedName: "properties.notificationSenderEmail",
- constraints: {
- MaxLength: 100
- },
- type: {
- name: "String"
- }
- }, provisioningState: {
- readOnly: true,
- serializedName: "properties.provisioningState",
- type: {
- name: "String"
- }
- }, targetProvisioningState: {
- readOnly: true,
- serializedName: "properties.targetProvisioningState",
- type: {
- name: "String"
- }
- }, createdAtUtc: {
- readOnly: true,
- serializedName: "properties.createdAtUtc",
- type: {
- name: "DateTime"
- }
- }, gatewayUrl: {
- readOnly: true,
- serializedName: "properties.gatewayUrl",
- type: {
- name: "String"
- }
- }, gatewayRegionalUrl: {
- readOnly: true,
- serializedName: "properties.gatewayRegionalUrl",
- type: {
- name: "String"
- }
- }, portalUrl: {
- readOnly: true,
- serializedName: "properties.portalUrl",
- type: {
- name: "String"
- }
- }, managementApiUrl: {
- readOnly: true,
- serializedName: "properties.managementApiUrl",
- type: {
- name: "String"
- }
- }, scmUrl: {
- readOnly: true,
- serializedName: "properties.scmUrl",
- type: {
- name: "String"
- }
- }, hostnameConfigurations: {
- serializedName: "properties.hostnameConfigurations",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "HostnameConfiguration"
- }
- }
- }
- }, publicIPAddresses: {
- readOnly: true,
- serializedName: "properties.publicIPAddresses",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- }, privateIPAddresses: {
- readOnly: true,
- serializedName: "properties.privateIPAddresses",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- }, virtualNetworkConfiguration: {
- serializedName: "properties.virtualNetworkConfiguration",
- type: {
- name: "Composite",
- className: "VirtualNetworkConfiguration"
- }
- }, additionalLocations: {
- serializedName: "properties.additionalLocations",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "AdditionalLocation"
- }
- }
- }
- }, customProperties: {
- serializedName: "properties.customProperties",
- type: {
- name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
- }
- }
- }, certificates: {
- serializedName: "properties.certificates",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "CertificateConfiguration"
- }
- }
- }
- }, virtualNetworkType: {
- serializedName: "properties.virtualNetworkType",
- defaultValue: 'None',
- type: {
- name: "String"
- }
- }, publisherEmail: {
- required: true,
- serializedName: "properties.publisherEmail",
- constraints: {
- MaxLength: 100
- },
- type: {
- name: "String"
- }
- }, publisherName: {
- required: true,
- serializedName: "properties.publisherName",
- constraints: {
- MaxLength: 100
- },
- type: {
- name: "String"
- }
- }, sku: {
- required: true,
- serializedName: "sku",
- type: {
- name: "Composite",
- className: "ApiManagementServiceSkuProperties"
- }
- }, identity: {
- serializedName: "identity",
- type: {
- name: "Composite",
- className: "ApiManagementServiceIdentity"
- }
- }, location: {
- required: true,
- serializedName: "location",
- type: {
- name: "String"
- }
- }, etag: {
- readOnly: true,
- serializedName: "etag",
- type: {
- name: "String"
- }
- } })
- }
- };
- var ApiManagementServiceUpdateParameters = {
- serializedName: "ApiManagementServiceUpdateParameters",
- type: {
- name: "Composite",
- className: "ApiManagementServiceUpdateParameters",
- modelProperties: __assign({}, ApimResource.type.modelProperties, { notificationSenderEmail: {
- serializedName: "properties.notificationSenderEmail",
- constraints: {
- MaxLength: 100
- },
- type: {
- name: "String"
- }
- }, provisioningState: {
- readOnly: true,
- serializedName: "properties.provisioningState",
- type: {
- name: "String"
- }
- }, targetProvisioningState: {
- readOnly: true,
- serializedName: "properties.targetProvisioningState",
- type: {
- name: "String"
- }
- }, createdAtUtc: {
- readOnly: true,
- serializedName: "properties.createdAtUtc",
- type: {
- name: "DateTime"
- }
- }, gatewayUrl: {
- readOnly: true,
- serializedName: "properties.gatewayUrl",
- type: {
- name: "String"
- }
- }, gatewayRegionalUrl: {
- readOnly: true,
- serializedName: "properties.gatewayRegionalUrl",
- type: {
- name: "String"
- }
- }, portalUrl: {
- readOnly: true,
- serializedName: "properties.portalUrl",
- type: {
- name: "String"
- }
- }, managementApiUrl: {
- readOnly: true,
- serializedName: "properties.managementApiUrl",
- type: {
- name: "String"
- }
- }, scmUrl: {
- readOnly: true,
- serializedName: "properties.scmUrl",
- type: {
- name: "String"
- }
- }, hostnameConfigurations: {
- serializedName: "properties.hostnameConfigurations",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "HostnameConfiguration"
- }
- }
- }
- }, publicIPAddresses: {
- readOnly: true,
- serializedName: "properties.publicIPAddresses",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- }, privateIPAddresses: {
- readOnly: true,
- serializedName: "properties.privateIPAddresses",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- }, virtualNetworkConfiguration: {
- serializedName: "properties.virtualNetworkConfiguration",
- type: {
- name: "Composite",
- className: "VirtualNetworkConfiguration"
- }
- }, additionalLocations: {
- serializedName: "properties.additionalLocations",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "AdditionalLocation"
- }
- }
- }
- }, customProperties: {
- serializedName: "properties.customProperties",
- type: {
- name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
- }
- }
- }, certificates: {
- serializedName: "properties.certificates",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "CertificateConfiguration"
- }
- }
- }
- }, virtualNetworkType: {
- serializedName: "properties.virtualNetworkType",
- defaultValue: 'None',
- type: {
- name: "String"
- }
- }, publisherEmail: {
- serializedName: "properties.publisherEmail",
- constraints: {
- MaxLength: 100
- },
- type: {
- name: "String"
- }
- }, publisherName: {
- serializedName: "properties.publisherName",
- constraints: {
- MaxLength: 100
- },
- type: {
- name: "String"
- }
- }, sku: {
- serializedName: "sku",
- type: {
- name: "Composite",
- className: "ApiManagementServiceSkuProperties"
- }
- }, identity: {
- serializedName: "identity",
- type: {
- name: "Composite",
- className: "ApiManagementServiceIdentity"
- }
- }, etag: {
- readOnly: true,
- serializedName: "etag",
- type: {
- name: "String"
- }
- } })
- }
- };
- var ApiManagementServiceGetSsoTokenResult = {
- serializedName: "ApiManagementServiceGetSsoTokenResult",
- type: {
- name: "Composite",
- className: "ApiManagementServiceGetSsoTokenResult",
- modelProperties: {
- redirectUri: {
- serializedName: "redirectUri",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiManagementServiceCheckNameAvailabilityParameters = {
- serializedName: "ApiManagementServiceCheckNameAvailabilityParameters",
- type: {
- name: "Composite",
- className: "ApiManagementServiceCheckNameAvailabilityParameters",
- modelProperties: {
- name: {
- required: true,
- serializedName: "name",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiManagementServiceNameAvailabilityResult = {
- serializedName: "ApiManagementServiceNameAvailabilityResult",
- type: {
- name: "Composite",
- className: "ApiManagementServiceNameAvailabilityResult",
- modelProperties: {
- nameAvailable: {
- readOnly: true,
- serializedName: "nameAvailable",
- type: {
- name: "Boolean"
- }
- },
- message: {
- readOnly: true,
- serializedName: "message",
- type: {
- name: "String"
- }
- },
- reason: {
- serializedName: "reason",
- type: {
- name: "Enum",
- allowedValues: [
- "Valid",
- "Invalid",
- "AlreadyExists"
- ]
- }
- }
- }
- }
- };
- var ApiManagementServiceApplyNetworkConfigurationParameters = {
- serializedName: "ApiManagementServiceApplyNetworkConfigurationParameters",
- type: {
- name: "Composite",
- className: "ApiManagementServiceApplyNetworkConfigurationParameters",
- modelProperties: {
- location: {
- serializedName: "location",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiManagementServiceUploadCertificateParameters = {
- serializedName: "ApiManagementServiceUploadCertificateParameters",
- type: {
- name: "Composite",
- className: "ApiManagementServiceUploadCertificateParameters",
- modelProperties: {
- type: {
- required: true,
- serializedName: "type",
- type: {
- name: "Enum",
- allowedValues: [
- "Proxy",
- "Portal",
- "Management",
- "Scm"
- ]
- }
- },
- certificate: {
- required: true,
- serializedName: "certificate",
- type: {
- name: "String"
- }
- },
- certificatePassword: {
- required: true,
- serializedName: "certificate_password",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var HostnameConfigurationOld = {
- serializedName: "HostnameConfigurationOld",
- type: {
- name: "Composite",
- className: "HostnameConfigurationOld",
- modelProperties: {
- type: {
- required: true,
- serializedName: "type",
- type: {
- name: "Enum",
- allowedValues: [
- "Proxy",
- "Portal",
- "Management",
- "Scm"
- ]
- }
- },
- hostname: {
- required: true,
- serializedName: "hostname",
- type: {
- name: "String"
- }
- },
- certificate: {
- required: true,
- serializedName: "certificate",
- type: {
- name: "Composite",
- className: "CertificateInformation"
- }
- }
- }
- }
- };
- var ApiManagementServiceUpdateHostnameParameters = {
- serializedName: "ApiManagementServiceUpdateHostnameParameters",
- type: {
- name: "Composite",
- className: "ApiManagementServiceUpdateHostnameParameters",
- modelProperties: {
- update: {
- serializedName: "update",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "HostnameConfigurationOld"
- }
- }
- }
- },
- deleteProperty: {
- serializedName: "delete",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Enum",
- allowedValues: [
- "Proxy",
- "Portal",
- "Management",
- "Scm"
- ]
- }
- }
- }
- }
- }
- }
- };
- var OperationDisplay = {
- serializedName: "Operation_display",
- type: {
- name: "Composite",
- className: "OperationDisplay",
- modelProperties: {
- provider: {
- serializedName: "provider",
- type: {
- name: "String"
- }
- },
- operation: {
- serializedName: "operation",
- type: {
- name: "String"
- }
- },
- resource: {
- serializedName: "resource",
- type: {
- name: "String"
- }
- },
- description: {
- serializedName: "description",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var Operation = {
- serializedName: "Operation",
- type: {
- name: "Composite",
- className: "Operation",
- modelProperties: {
- name: {
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- display: {
- serializedName: "display",
- type: {
- name: "Composite",
- className: "OperationDisplay"
- }
- },
- origin: {
- serializedName: "origin",
- type: {
- name: "String"
- }
- },
- properties: {
- serializedName: "properties",
- type: {
- name: "Object"
- }
- }
- }
- }
- };
- var EmailTemplateParametersContractProperties = {
- serializedName: "EmailTemplateParametersContractProperties",
- type: {
- name: "Composite",
- className: "EmailTemplateParametersContractProperties",
- modelProperties: {
- name: {
- serializedName: "name",
- constraints: {
- MaxLength: 256,
- MinLength: 1,
- Pattern: /^[A-Za-z0-9-._]+$/
- },
- type: {
- name: "String"
- }
- },
- title: {
- serializedName: "title",
- constraints: {
- MaxLength: 4096,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- description: {
- serializedName: "description",
- constraints: {
- MaxLength: 256,
- MinLength: 1,
- Pattern: /^[A-Za-z0-9-._]+$/
- },
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var EmailTemplateContract = {
- serializedName: "EmailTemplateContract",
- type: {
- name: "Composite",
- className: "EmailTemplateContract",
- modelProperties: __assign({}, Resource.type.modelProperties, { subject: {
- required: true,
- serializedName: "properties.subject",
- constraints: {
- MaxLength: 1000,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }, body: {
- required: true,
- serializedName: "properties.body",
- constraints: {
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }, title: {
- serializedName: "properties.title",
- type: {
- name: "String"
- }
- }, description: {
- serializedName: "properties.description",
- type: {
- name: "String"
- }
- }, isDefault: {
- readOnly: true,
- serializedName: "properties.isDefault",
- type: {
- name: "Boolean"
- }
- }, parameters: {
- serializedName: "properties.parameters",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "EmailTemplateParametersContractProperties"
- }
- }
- }
- } })
- }
- };
- var EmailTemplateUpdateParameters = {
- serializedName: "EmailTemplateUpdateParameters",
- type: {
- name: "Composite",
- className: "EmailTemplateUpdateParameters",
- modelProperties: {
- subject: {
- serializedName: "properties.subject",
- constraints: {
- MaxLength: 1000,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- title: {
- serializedName: "properties.title",
- type: {
- name: "String"
- }
- },
- description: {
- serializedName: "properties.description",
- type: {
- name: "String"
- }
- },
- body: {
- serializedName: "properties.body",
- constraints: {
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- parameters: {
- serializedName: "properties.parameters",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "EmailTemplateParametersContractProperties"
- }
- }
- }
- }
- }
- }
- };
- var GroupContractProperties = {
- serializedName: "GroupContractProperties",
- type: {
- name: "Composite",
- className: "GroupContractProperties",
- modelProperties: {
- displayName: {
- required: true,
- serializedName: "displayName",
- constraints: {
- MaxLength: 300,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- description: {
- serializedName: "description",
- constraints: {
- MaxLength: 1000
- },
- type: {
- name: "String"
- }
- },
- builtIn: {
- readOnly: true,
- serializedName: "builtIn",
- type: {
- name: "Boolean"
- }
- },
- type: {
- serializedName: "type",
- type: {
- name: "Enum",
- allowedValues: [
- "custom",
- "system",
- "external"
- ]
- }
- },
- externalId: {
- serializedName: "externalId",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var GroupContract = {
- serializedName: "GroupContract",
- type: {
- name: "Composite",
- className: "GroupContract",
- modelProperties: __assign({}, Resource.type.modelProperties, { displayName: {
- required: true,
- serializedName: "properties.displayName",
- constraints: {
- MaxLength: 300,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }, description: {
- serializedName: "properties.description",
- constraints: {
- MaxLength: 1000
- },
- type: {
- name: "String"
- }
- }, builtIn: {
- readOnly: true,
- serializedName: "properties.builtIn",
- type: {
- name: "Boolean"
- }
- }, groupContractType: {
- serializedName: "properties.type",
- type: {
- name: "Enum",
- allowedValues: [
- "custom",
- "system",
- "external"
- ]
- }
- }, externalId: {
- serializedName: "properties.externalId",
- type: {
- name: "String"
- }
- } })
- }
- };
- var GroupCreateParameters = {
- serializedName: "GroupCreateParameters",
- type: {
- name: "Composite",
- className: "GroupCreateParameters",
- modelProperties: {
- displayName: {
- required: true,
- serializedName: "properties.displayName",
- constraints: {
- MaxLength: 300,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- description: {
- serializedName: "properties.description",
- type: {
- name: "String"
- }
- },
- type: {
- serializedName: "properties.type",
- type: {
- name: "Enum",
- allowedValues: [
- "custom",
- "system",
- "external"
- ]
- }
- },
- externalId: {
- serializedName: "properties.externalId",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var GroupUpdateParameters = {
- serializedName: "GroupUpdateParameters",
- type: {
- name: "Composite",
- className: "GroupUpdateParameters",
- modelProperties: {
- displayName: {
- serializedName: "properties.displayName",
- constraints: {
- MaxLength: 300,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- description: {
- serializedName: "properties.description",
- type: {
- name: "String"
- }
- },
- type: {
- serializedName: "properties.type",
- type: {
- name: "Enum",
- allowedValues: [
- "custom",
- "system",
- "external"
- ]
- }
- },
- externalId: {
- serializedName: "properties.externalId",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var UserIdentityContract = {
- serializedName: "UserIdentityContract",
- type: {
- name: "Composite",
- className: "UserIdentityContract",
- modelProperties: {
- provider: {
- serializedName: "provider",
- type: {
- name: "String"
- }
- },
- id: {
- serializedName: "id",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var UserEntityBaseParameters = {
- serializedName: "UserEntityBaseParameters",
- type: {
- name: "Composite",
- className: "UserEntityBaseParameters",
- modelProperties: {
- state: {
- serializedName: "state",
- defaultValue: 'active',
- type: {
- name: "String"
- }
- },
- note: {
- serializedName: "note",
- type: {
- name: "String"
- }
- },
- identities: {
- readOnly: true,
- serializedName: "identities",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "UserIdentityContract"
- }
- }
- }
- }
- }
- }
- };
- var UserContract = {
- serializedName: "UserContract",
- type: {
- name: "Composite",
- className: "UserContract",
- modelProperties: __assign({}, Resource.type.modelProperties, { state: {
- serializedName: "properties.state",
- defaultValue: 'active',
- type: {
- name: "String"
- }
- }, note: {
- serializedName: "properties.note",
- type: {
- name: "String"
- }
- }, identities: {
- readOnly: true,
- serializedName: "properties.identities",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "UserIdentityContract"
- }
- }
- }
- }, firstName: {
- serializedName: "properties.firstName",
- type: {
- name: "String"
- }
- }, lastName: {
- serializedName: "properties.lastName",
- type: {
- name: "String"
- }
- }, email: {
- serializedName: "properties.email",
- type: {
- name: "String"
- }
- }, registrationDate: {
- serializedName: "properties.registrationDate",
- type: {
- name: "DateTime"
- }
- }, groups: {
- readOnly: true,
- serializedName: "properties.groups",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "GroupContractProperties"
- }
- }
- }
- } })
- }
- };
- var IdentityProviderContract = {
- serializedName: "IdentityProviderContract",
- type: {
- name: "Composite",
- className: "IdentityProviderContract",
- modelProperties: __assign({}, Resource.type.modelProperties, { identityProviderContractType: {
- serializedName: "properties.type",
- type: {
- name: "String"
- }
- }, allowedTenants: {
- serializedName: "properties.allowedTenants",
- constraints: {
- MaxItems: 32
- },
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- }, signupPolicyName: {
- serializedName: "properties.signupPolicyName",
- constraints: {
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }, signinPolicyName: {
- serializedName: "properties.signinPolicyName",
- constraints: {
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }, profileEditingPolicyName: {
- serializedName: "properties.profileEditingPolicyName",
- constraints: {
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }, passwordResetPolicyName: {
- serializedName: "properties.passwordResetPolicyName",
- constraints: {
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }, clientId: {
- required: true,
- serializedName: "properties.clientId",
- constraints: {
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }, clientSecret: {
- required: true,
- serializedName: "properties.clientSecret",
- constraints: {
- MinLength: 1
- },
- type: {
- name: "String"
- }
- } })
- }
- };
- var IdentityProviderUpdateParameters = {
- serializedName: "IdentityProviderUpdateParameters",
- type: {
- name: "Composite",
- className: "IdentityProviderUpdateParameters",
- modelProperties: {
- type: {
- serializedName: "properties.type",
- type: {
- name: "String"
- }
- },
- allowedTenants: {
- serializedName: "properties.allowedTenants",
- constraints: {
- MaxItems: 32
- },
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- },
- signupPolicyName: {
- serializedName: "properties.signupPolicyName",
- constraints: {
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- signinPolicyName: {
- serializedName: "properties.signinPolicyName",
- constraints: {
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- profileEditingPolicyName: {
- serializedName: "properties.profileEditingPolicyName",
- constraints: {
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- passwordResetPolicyName: {
- serializedName: "properties.passwordResetPolicyName",
- constraints: {
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- clientId: {
- serializedName: "properties.clientId",
- constraints: {
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- clientSecret: {
- serializedName: "properties.clientSecret",
- constraints: {
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var IdentityProviderBaseParameters = {
- serializedName: "IdentityProviderBaseParameters",
- type: {
- name: "Composite",
- className: "IdentityProviderBaseParameters",
- modelProperties: {
- type: {
- serializedName: "type",
- type: {
- name: "String"
- }
- },
- allowedTenants: {
- serializedName: "allowedTenants",
- constraints: {
- MaxItems: 32
- },
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- },
- signupPolicyName: {
- serializedName: "signupPolicyName",
- constraints: {
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- signinPolicyName: {
- serializedName: "signinPolicyName",
- constraints: {
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- profileEditingPolicyName: {
- serializedName: "profileEditingPolicyName",
- constraints: {
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- passwordResetPolicyName: {
- serializedName: "passwordResetPolicyName",
- constraints: {
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var LoggerUpdateContract = {
- serializedName: "LoggerUpdateContract",
- type: {
- name: "Composite",
- className: "LoggerUpdateContract",
- modelProperties: {
- loggerType: {
- serializedName: "properties.loggerType",
- type: {
- name: "String"
- }
- },
- description: {
- serializedName: "properties.description",
- type: {
- name: "String"
- }
- },
- credentials: {
- serializedName: "properties.credentials",
- type: {
- name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
- }
- }
- },
- isBuffered: {
- serializedName: "properties.isBuffered",
- type: {
- name: "Boolean"
- }
- }
- }
- }
- };
- var RecipientsContractProperties = {
- serializedName: "RecipientsContractProperties",
- type: {
- name: "Composite",
- className: "RecipientsContractProperties",
- modelProperties: {
- emails: {
- serializedName: "emails",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- },
- users: {
- serializedName: "users",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- }
- }
- }
- };
- var NotificationContract = {
- serializedName: "NotificationContract",
- type: {
- name: "Composite",
- className: "NotificationContract",
- modelProperties: __assign({}, Resource.type.modelProperties, { title: {
- required: true,
- serializedName: "properties.title",
- constraints: {
- MaxLength: 1000,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }, description: {
- serializedName: "properties.description",
- type: {
- name: "String"
- }
- }, recipients: {
- serializedName: "properties.recipients",
- type: {
- name: "Composite",
- className: "RecipientsContractProperties"
- }
- } })
- }
- };
- var RecipientUserContract = {
- serializedName: "RecipientUserContract",
- type: {
- name: "Composite",
- className: "RecipientUserContract",
- modelProperties: __assign({}, Resource.type.modelProperties, { userId: {
- serializedName: "properties.userId",
- type: {
- name: "String"
- }
- } })
- }
- };
- var RecipientUserCollection = {
- serializedName: "RecipientUserCollection",
- type: {
- name: "Composite",
- className: "RecipientUserCollection",
- modelProperties: {
- value: {
- serializedName: "value",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "RecipientUserContract"
- }
- }
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var RecipientEmailContract = {
- serializedName: "RecipientEmailContract",
- type: {
- name: "Composite",
- className: "RecipientEmailContract",
- modelProperties: __assign({}, Resource.type.modelProperties, { email: {
- serializedName: "properties.email",
- type: {
- name: "String"
- }
- } })
- }
- };
- var RecipientEmailCollection = {
- serializedName: "RecipientEmailCollection",
- type: {
- name: "Composite",
- className: "RecipientEmailCollection",
- modelProperties: {
- value: {
- serializedName: "value",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "RecipientEmailContract"
- }
- }
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ConnectivityStatusContract = {
- serializedName: "ConnectivityStatusContract",
- type: {
- name: "Composite",
- className: "ConnectivityStatusContract",
- modelProperties: {
- name: {
- required: true,
- serializedName: "name",
- constraints: {
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- status: {
- required: true,
- serializedName: "status",
- type: {
- name: "String"
- }
- },
- error: {
- serializedName: "error",
- type: {
- name: "String"
- }
- },
- lastUpdated: {
- required: true,
- serializedName: "lastUpdated",
- type: {
- name: "DateTime"
- }
- },
- lastStatusChange: {
- required: true,
- serializedName: "lastStatusChange",
- type: {
- name: "DateTime"
- }
- }
- }
- }
- };
- var NetworkStatusContract = {
- serializedName: "NetworkStatusContract",
- type: {
- name: "Composite",
- className: "NetworkStatusContract",
- modelProperties: {
- dnsServers: {
- required: true,
- serializedName: "dnsServers",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- },
- connectivityStatus: {
- required: true,
- serializedName: "connectivityStatus",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ConnectivityStatusContract"
- }
- }
- }
- }
- }
- }
- };
- var NetworkStatusContractByLocation = {
- serializedName: "NetworkStatusContractByLocation",
- type: {
- name: "Composite",
- className: "NetworkStatusContractByLocation",
- modelProperties: {
- location: {
- serializedName: "location",
- constraints: {
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- networkStatus: {
- serializedName: "networkStatus",
- type: {
- name: "Composite",
- className: "NetworkStatusContract"
- }
- }
- }
- }
- };
- var OpenidConnectProviderContract = {
- serializedName: "OpenidConnectProviderContract",
- type: {
- name: "Composite",
- className: "OpenidConnectProviderContract",
- modelProperties: __assign({}, Resource.type.modelProperties, { displayName: {
- required: true,
- serializedName: "properties.displayName",
- constraints: {
- MaxLength: 50
- },
- type: {
- name: "String"
- }
- }, description: {
- serializedName: "properties.description",
- type: {
- name: "String"
- }
- }, metadataEndpoint: {
- required: true,
- serializedName: "properties.metadataEndpoint",
- type: {
- name: "String"
- }
- }, clientId: {
- required: true,
- serializedName: "properties.clientId",
- type: {
- name: "String"
- }
- }, clientSecret: {
- serializedName: "properties.clientSecret",
- type: {
- name: "String"
- }
- } })
- }
- };
- var OpenidConnectProviderUpdateContract = {
- serializedName: "OpenidConnectProviderUpdateContract",
- type: {
- name: "Composite",
- className: "OpenidConnectProviderUpdateContract",
- modelProperties: {
- displayName: {
- serializedName: "properties.displayName",
- constraints: {
- MaxLength: 50
- },
- type: {
- name: "String"
- }
- },
- description: {
- serializedName: "properties.description",
- type: {
- name: "String"
- }
- },
- metadataEndpoint: {
- serializedName: "properties.metadataEndpoint",
- type: {
- name: "String"
- }
- },
- clientId: {
- serializedName: "properties.clientId",
- type: {
- name: "String"
- }
- },
- clientSecret: {
- serializedName: "properties.clientSecret",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var PortalSigninSettings = {
- serializedName: "PortalSigninSettings",
- type: {
- name: "Composite",
- className: "PortalSigninSettings",
- modelProperties: __assign({}, Resource.type.modelProperties, { enabled: {
- serializedName: "properties.enabled",
- type: {
- name: "Boolean"
- }
- } })
- }
- };
- var TermsOfServiceProperties = {
- serializedName: "TermsOfServiceProperties",
- type: {
- name: "Composite",
- className: "TermsOfServiceProperties",
- modelProperties: {
- text: {
- serializedName: "text",
- type: {
- name: "String"
- }
- },
- enabled: {
- serializedName: "enabled",
- type: {
- name: "Boolean"
- }
- },
- consentRequired: {
- serializedName: "consentRequired",
- type: {
- name: "Boolean"
- }
- }
- }
- }
- };
- var PortalSignupSettings = {
- serializedName: "PortalSignupSettings",
- type: {
- name: "Composite",
- className: "PortalSignupSettings",
- modelProperties: __assign({}, Resource.type.modelProperties, { enabled: {
- serializedName: "properties.enabled",
- type: {
- name: "Boolean"
- }
- }, termsOfService: {
- serializedName: "properties.termsOfService",
- type: {
- name: "Composite",
- className: "TermsOfServiceProperties"
- }
- } })
- }
- };
- var SubscriptionsDelegationSettingsProperties = {
- serializedName: "SubscriptionsDelegationSettingsProperties",
- type: {
- name: "Composite",
- className: "SubscriptionsDelegationSettingsProperties",
- modelProperties: {
- enabled: {
- serializedName: "enabled",
- type: {
- name: "Boolean"
- }
- }
- }
- }
- };
- var RegistrationDelegationSettingsProperties = {
- serializedName: "RegistrationDelegationSettingsProperties",
- type: {
- name: "Composite",
- className: "RegistrationDelegationSettingsProperties",
- modelProperties: {
- enabled: {
- serializedName: "enabled",
- type: {
- name: "Boolean"
- }
- }
- }
- }
- };
- var PortalDelegationSettings = {
- serializedName: "PortalDelegationSettings",
- type: {
- name: "Composite",
- className: "PortalDelegationSettings",
- modelProperties: __assign({}, Resource.type.modelProperties, { url: {
- serializedName: "properties.url",
- type: {
- name: "String"
- }
- }, validationKey: {
- serializedName: "properties.validationKey",
- type: {
- name: "String"
- }
- }, subscriptions: {
- serializedName: "properties.subscriptions",
- type: {
- name: "Composite",
- className: "SubscriptionsDelegationSettingsProperties"
- }
- }, userRegistration: {
- serializedName: "properties.userRegistration",
- type: {
- name: "Composite",
- className: "RegistrationDelegationSettingsProperties"
- }
- } })
- }
- };
- var ProductUpdateParameters = {
- serializedName: "ProductUpdateParameters",
- type: {
- name: "Composite",
- className: "ProductUpdateParameters",
- modelProperties: {
- description: {
- serializedName: "properties.description",
- constraints: {
- MaxLength: 1000,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- terms: {
- serializedName: "properties.terms",
- type: {
- name: "String"
- }
- },
- subscriptionRequired: {
- serializedName: "properties.subscriptionRequired",
- type: {
- name: "Boolean"
- }
- },
- approvalRequired: {
- serializedName: "properties.approvalRequired",
- type: {
- name: "Boolean"
- }
- },
- subscriptionsLimit: {
- serializedName: "properties.subscriptionsLimit",
- type: {
- name: "Number"
- }
- },
- state: {
- serializedName: "properties.state",
- type: {
- name: "Enum",
- allowedValues: [
- "notPublished",
- "published"
- ]
- }
- },
- displayName: {
- serializedName: "properties.displayName",
- constraints: {
- MaxLength: 300,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var SubscriptionContract = {
- serializedName: "SubscriptionContract",
- type: {
- name: "Composite",
- className: "SubscriptionContract",
- modelProperties: __assign({}, Resource.type.modelProperties, { userId: {
- required: true,
- serializedName: "properties.userId",
- type: {
- name: "String"
- }
- }, productId: {
- required: true,
- serializedName: "properties.productId",
- type: {
- name: "String"
- }
- }, displayName: {
- serializedName: "properties.displayName",
- constraints: {
- MaxLength: 100,
- MinLength: 0
- },
- type: {
- name: "String"
- }
- }, state: {
- required: true,
- serializedName: "properties.state",
- type: {
- name: "Enum",
- allowedValues: [
- "suspended",
- "active",
- "expired",
- "submitted",
- "rejected",
- "cancelled"
- ]
- }
- }, createdDate: {
- readOnly: true,
- serializedName: "properties.createdDate",
- type: {
- name: "DateTime"
- }
- }, startDate: {
- serializedName: "properties.startDate",
- type: {
- name: "DateTime"
- }
- }, expirationDate: {
- serializedName: "properties.expirationDate",
- type: {
- name: "DateTime"
- }
- }, endDate: {
- serializedName: "properties.endDate",
- type: {
- name: "DateTime"
- }
- }, notificationDate: {
- serializedName: "properties.notificationDate",
- type: {
- name: "DateTime"
- }
- }, primaryKey: {
- required: true,
- serializedName: "properties.primaryKey",
- constraints: {
- MaxLength: 256,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }, secondaryKey: {
- required: true,
- serializedName: "properties.secondaryKey",
- constraints: {
- MaxLength: 256,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }, stateComment: {
- serializedName: "properties.stateComment",
- type: {
- name: "String"
- }
- } })
- }
- };
- var PropertyContract = {
- serializedName: "PropertyContract",
- type: {
- name: "Composite",
- className: "PropertyContract",
- modelProperties: __assign({}, Resource.type.modelProperties, { tags: {
- serializedName: "properties.tags",
- constraints: {
- MaxItems: 32
- },
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- }, secret: {
- serializedName: "properties.secret",
- type: {
- name: "Boolean"
- }
- }, displayName: {
- required: true,
- serializedName: "properties.displayName",
- constraints: {
- MaxLength: 256,
- MinLength: 1,
- Pattern: /^[A-Za-z0-9-._]+$/
- },
- type: {
- name: "String"
- }
- }, value: {
- required: true,
- serializedName: "properties.value",
- constraints: {
- MaxLength: 4096,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- } })
- }
- };
- var PropertyUpdateParameters = {
- serializedName: "PropertyUpdateParameters",
- type: {
- name: "Composite",
- className: "PropertyUpdateParameters",
- modelProperties: {
- tags: {
- serializedName: "properties.tags",
- constraints: {
- MaxItems: 32
- },
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- },
- secret: {
- serializedName: "properties.secret",
- type: {
- name: "Boolean"
- }
- },
- displayName: {
- serializedName: "properties.displayName",
- constraints: {
- MaxLength: 256,
- MinLength: 1,
- Pattern: /^[A-Za-z0-9-._]+$/
- },
- type: {
- name: "String"
- }
- },
- value: {
- serializedName: "properties.value",
- constraints: {
- MaxLength: 4096,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var PropertyEntityBaseParameters = {
- serializedName: "PropertyEntityBaseParameters",
- type: {
- name: "Composite",
- className: "PropertyEntityBaseParameters",
- modelProperties: {
- tags: {
- serializedName: "tags",
- constraints: {
- MaxItems: 32
- },
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- },
- secret: {
- serializedName: "secret",
- type: {
- name: "Boolean"
- }
- }
- }
- }
- };
- var QuotaCounterValueContractProperties = {
- serializedName: "QuotaCounterValueContractProperties",
- type: {
- name: "Composite",
- className: "QuotaCounterValueContractProperties",
- modelProperties: {
- callsCount: {
- serializedName: "callsCount",
- type: {
- name: "Number"
- }
- },
- kbTransferred: {
- serializedName: "kbTransferred",
- type: {
- name: "Number"
- }
- }
- }
- }
- };
- var QuotaCounterContract = {
- serializedName: "QuotaCounterContract",
- type: {
- name: "Composite",
- className: "QuotaCounterContract",
- modelProperties: {
- counterKey: {
- required: true,
- serializedName: "counterKey",
- constraints: {
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- periodKey: {
- required: true,
- serializedName: "periodKey",
- constraints: {
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- periodStartTime: {
- required: true,
- serializedName: "periodStartTime",
- type: {
- name: "DateTime"
- }
- },
- periodEndTime: {
- required: true,
- serializedName: "periodEndTime",
- type: {
- name: "DateTime"
- }
- },
- value: {
- serializedName: "value",
- type: {
- name: "Composite",
- className: "QuotaCounterValueContractProperties"
- }
- }
- }
- }
- };
- var QuotaCounterCollection = {
- serializedName: "QuotaCounterCollection",
- type: {
- name: "Composite",
- className: "QuotaCounterCollection",
- modelProperties: {
- value: {
- serializedName: "value",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "QuotaCounterContract"
- }
- }
- }
- },
- count: {
- serializedName: "count",
- type: {
- name: "Number"
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var QuotaCounterValueContract = {
- serializedName: "QuotaCounterValueContract",
- type: {
- name: "Composite",
- className: "QuotaCounterValueContract",
- modelProperties: {
- callsCount: {
- serializedName: "value.callsCount",
- type: {
- name: "Number"
- }
- },
- kbTransferred: {
- serializedName: "value.kbTransferred",
- type: {
- name: "Number"
- }
- }
- }
- }
- };
- var ReportRecordContract = {
- serializedName: "ReportRecordContract",
- type: {
- name: "Composite",
- className: "ReportRecordContract",
- modelProperties: {
- name: {
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- timestamp: {
- serializedName: "timestamp",
- type: {
- name: "DateTime"
- }
- },
- interval: {
- serializedName: "interval",
- type: {
- name: "String"
- }
- },
- country: {
- serializedName: "country",
- type: {
- name: "String"
- }
- },
- region: {
- serializedName: "region",
- type: {
- name: "String"
- }
- },
- zip: {
- serializedName: "zip",
- type: {
- name: "String"
- }
- },
- userId: {
- readOnly: true,
- serializedName: "userId",
- type: {
- name: "String"
- }
- },
- productId: {
- readOnly: true,
- serializedName: "productId",
- type: {
- name: "String"
- }
- },
- apiId: {
- serializedName: "apiId",
- type: {
- name: "String"
- }
- },
- operationId: {
- serializedName: "operationId",
- type: {
- name: "String"
- }
- },
- apiRegion: {
- serializedName: "apiRegion",
- type: {
- name: "String"
- }
- },
- subscriptionId: {
- serializedName: "subscriptionId",
- type: {
- name: "String"
- }
- },
- callCountSuccess: {
- serializedName: "callCountSuccess",
- type: {
- name: "Number"
- }
- },
- callCountBlocked: {
- serializedName: "callCountBlocked",
- type: {
- name: "Number"
- }
- },
- callCountFailed: {
- serializedName: "callCountFailed",
- type: {
- name: "Number"
- }
- },
- callCountOther: {
- serializedName: "callCountOther",
- type: {
- name: "Number"
- }
- },
- callCountTotal: {
- serializedName: "callCountTotal",
- type: {
- name: "Number"
- }
- },
- bandwidth: {
- serializedName: "bandwidth",
- type: {
- name: "Number"
- }
- },
- cacheHitCount: {
- serializedName: "cacheHitCount",
- type: {
- name: "Number"
- }
- },
- cacheMissCount: {
- serializedName: "cacheMissCount",
- type: {
- name: "Number"
- }
- },
- apiTimeAvg: {
- serializedName: "apiTimeAvg",
- type: {
- name: "Number"
- }
- },
- apiTimeMin: {
- serializedName: "apiTimeMin",
- type: {
- name: "Number"
- }
- },
- apiTimeMax: {
- serializedName: "apiTimeMax",
- type: {
- name: "Number"
- }
- },
- serviceTimeAvg: {
- serializedName: "serviceTimeAvg",
- type: {
- name: "Number"
- }
- },
- serviceTimeMin: {
- serializedName: "serviceTimeMin",
- type: {
- name: "Number"
- }
- },
- serviceTimeMax: {
- serializedName: "serviceTimeMax",
- type: {
- name: "Number"
- }
- }
- }
- }
- };
- var RequestReportRecordContract = {
- serializedName: "RequestReportRecordContract",
- type: {
- name: "Composite",
- className: "RequestReportRecordContract",
- modelProperties: {
- apiId: {
- serializedName: "apiId",
- type: {
- name: "String"
- }
- },
- operationId: {
- serializedName: "operationId",
- type: {
- name: "String"
- }
- },
- productId: {
- readOnly: true,
- serializedName: "productId",
- type: {
- name: "String"
- }
- },
- userId: {
- readOnly: true,
- serializedName: "userId",
- type: {
- name: "String"
- }
- },
- method: {
- serializedName: "method",
- type: {
- name: "String"
- }
- },
- url: {
- serializedName: "url",
- type: {
- name: "String"
- }
- },
- ipAddress: {
- serializedName: "ipAddress",
- type: {
- name: "String"
- }
- },
- backendResponseCode: {
- serializedName: "backendResponseCode",
- type: {
- name: "String"
- }
- },
- responseCode: {
- serializedName: "responseCode",
- type: {
- name: "Number"
- }
- },
- responseSize: {
- serializedName: "responseSize",
- type: {
- name: "Number"
- }
- },
- timestamp: {
- serializedName: "timestamp",
- type: {
- name: "DateTime"
- }
- },
- cache: {
- serializedName: "cache",
- type: {
- name: "String"
- }
- },
- apiTime: {
- serializedName: "apiTime",
- type: {
- name: "Number"
- }
- },
- serviceTime: {
- serializedName: "serviceTime",
- type: {
- name: "Number"
- }
- },
- apiRegion: {
- serializedName: "apiRegion",
- type: {
- name: "String"
- }
- },
- subscriptionId: {
- serializedName: "subscriptionId",
- type: {
- name: "String"
- }
- },
- requestId: {
- serializedName: "requestId",
- type: {
- name: "String"
- }
- },
- requestSize: {
- serializedName: "requestSize",
- type: {
- name: "Number"
- }
- }
- }
- }
- };
- var SubscriptionCreateParameters = {
- serializedName: "SubscriptionCreateParameters",
- type: {
- name: "Composite",
- className: "SubscriptionCreateParameters",
- modelProperties: {
- userId: {
- required: true,
- serializedName: "properties.userId",
- type: {
- name: "String"
- }
- },
- productId: {
- required: true,
- serializedName: "properties.productId",
- type: {
- name: "String"
- }
- },
- displayName: {
- required: true,
- serializedName: "properties.displayName",
- constraints: {
- MaxLength: 100,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- primaryKey: {
- serializedName: "properties.primaryKey",
- constraints: {
- MaxLength: 256,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- secondaryKey: {
- serializedName: "properties.secondaryKey",
- constraints: {
- MaxLength: 256,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- state: {
- serializedName: "properties.state",
- type: {
- name: "Enum",
- allowedValues: [
- "suspended",
- "active",
- "expired",
- "submitted",
- "rejected",
- "cancelled"
- ]
- }
- }
- }
- }
- };
- var SubscriptionUpdateParameters = {
- serializedName: "SubscriptionUpdateParameters",
- type: {
- name: "Composite",
- className: "SubscriptionUpdateParameters",
- modelProperties: {
- userId: {
- serializedName: "properties.userId",
- type: {
- name: "String"
- }
- },
- productId: {
- serializedName: "properties.productId",
- type: {
- name: "String"
- }
- },
- expirationDate: {
- serializedName: "properties.expirationDate",
- type: {
- name: "DateTime"
- }
- },
- displayName: {
- serializedName: "properties.displayName",
- type: {
- name: "String"
- }
- },
- primaryKey: {
- serializedName: "properties.primaryKey",
- constraints: {
- MaxLength: 256,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- secondaryKey: {
- serializedName: "properties.secondaryKey",
- constraints: {
- MaxLength: 256,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- state: {
- serializedName: "properties.state",
- type: {
- name: "Enum",
- allowedValues: [
- "suspended",
- "active",
- "expired",
- "submitted",
- "rejected",
- "cancelled"
- ]
- }
- },
- stateComment: {
- serializedName: "properties.stateComment",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var TagContract = {
- serializedName: "TagContract",
- type: {
- name: "Composite",
- className: "TagContract",
- modelProperties: __assign({}, Resource.type.modelProperties, { displayName: {
- required: true,
- serializedName: "properties.displayName",
- constraints: {
- MaxLength: 160,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- } })
- }
- };
- var TagCreateUpdateParameters = {
- serializedName: "TagCreateUpdateParameters",
- type: {
- name: "Composite",
- className: "TagCreateUpdateParameters",
- modelProperties: {
- displayName: {
- required: true,
- serializedName: "properties.displayName",
- constraints: {
- MaxLength: 160,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var TagDescriptionContract = {
- serializedName: "TagDescriptionContract",
- type: {
- name: "Composite",
- className: "TagDescriptionContract",
- modelProperties: __assign({}, Resource.type.modelProperties, { description: {
- serializedName: "properties.description",
- type: {
- name: "String"
- }
- }, externalDocsUrl: {
- serializedName: "properties.externalDocsUrl",
- constraints: {
- MaxLength: 2000
- },
- type: {
- name: "String"
- }
- }, externalDocsDescription: {
- serializedName: "properties.externalDocsDescription",
- type: {
- name: "String"
- }
- }, displayName: {
- serializedName: "properties.displayName",
- constraints: {
- MaxLength: 160,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- } })
- }
- };
- var TagDescriptionCreateParameters = {
- serializedName: "TagDescriptionCreateParameters",
- type: {
- name: "Composite",
- className: "TagDescriptionCreateParameters",
- modelProperties: {
- description: {
- serializedName: "properties.description",
- type: {
- name: "String"
- }
- },
- externalDocsUrl: {
- serializedName: "properties.externalDocsUrl",
- constraints: {
- MaxLength: 2000
- },
- type: {
- name: "String"
- }
- },
- externalDocsDescription: {
- serializedName: "properties.externalDocsDescription",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var AccessInformationContract = {
- serializedName: "AccessInformationContract",
- type: {
- name: "Composite",
- className: "AccessInformationContract",
- modelProperties: {
- id: {
- serializedName: "id",
- type: {
- name: "String"
- }
- },
- primaryKey: {
- serializedName: "primaryKey",
- type: {
- name: "String"
- }
- },
- secondaryKey: {
- serializedName: "secondaryKey",
- type: {
- name: "String"
- }
- },
- enabled: {
- serializedName: "enabled",
- type: {
- name: "Boolean"
- }
- }
- }
- }
- };
- var AccessInformationUpdateParameters = {
- serializedName: "AccessInformationUpdateParameters",
- type: {
- name: "Composite",
- className: "AccessInformationUpdateParameters",
- modelProperties: {
- enabled: {
- serializedName: "enabled",
- type: {
- name: "Boolean"
- }
- }
- }
- }
- };
- var DeployConfigurationParameters = {
- serializedName: "DeployConfigurationParameters",
- type: {
- name: "Composite",
- className: "DeployConfigurationParameters",
- modelProperties: {
- branch: {
- required: true,
- serializedName: "branch",
- type: {
- name: "String"
- }
- },
- force: {
- serializedName: "force",
- type: {
- name: "Boolean"
- }
- }
- }
- }
- };
- var OperationResultLogItemContract = {
- serializedName: "OperationResultLogItemContract",
- type: {
- name: "Composite",
- className: "OperationResultLogItemContract",
- modelProperties: {
- objectType: {
- serializedName: "objectType",
- type: {
- name: "String"
- }
- },
- action: {
- serializedName: "action",
- type: {
- name: "String"
- }
- },
- objectKey: {
- serializedName: "objectKey",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var OperationResultContract = {
- serializedName: "OperationResultContract",
- type: {
- name: "Composite",
- className: "OperationResultContract",
- modelProperties: {
- id: {
- serializedName: "id",
- type: {
- name: "String"
- }
- },
- status: {
- serializedName: "status",
- type: {
- name: "Enum",
- allowedValues: [
- "Started",
- "InProgress",
- "Succeeded",
- "Failed"
- ]
- }
- },
- started: {
- serializedName: "started",
- type: {
- name: "DateTime"
- }
- },
- updated: {
- serializedName: "updated",
- type: {
- name: "DateTime"
- }
- },
- resultInfo: {
- serializedName: "resultInfo",
- type: {
- name: "String"
- }
- },
- error: {
- serializedName: "error",
- type: {
- name: "Composite",
- className: "ErrorResponseBody"
- }
- },
- actionLog: {
- readOnly: true,
- serializedName: "actionLog",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "OperationResultLogItemContract"
- }
- }
- }
- }
- }
- }
- };
- var SaveConfigurationParameter = {
- serializedName: "SaveConfigurationParameter",
- type: {
- name: "Composite",
- className: "SaveConfigurationParameter",
- modelProperties: {
- branch: {
- required: true,
- serializedName: "branch",
- type: {
- name: "String"
- }
- },
- force: {
- serializedName: "force",
- type: {
- name: "Boolean"
- }
- }
- }
- }
- };
- var TenantConfigurationSyncStateContract = {
- serializedName: "TenantConfigurationSyncStateContract",
- type: {
- name: "Composite",
- className: "TenantConfigurationSyncStateContract",
- modelProperties: {
- branch: {
- serializedName: "branch",
- type: {
- name: "String"
- }
- },
- commitId: {
- serializedName: "commitId",
- type: {
- name: "String"
- }
- },
- isExport: {
- serializedName: "isExport",
- type: {
- name: "Boolean"
- }
- },
- isSynced: {
- serializedName: "isSynced",
- type: {
- name: "Boolean"
- }
- },
- isGitEnabled: {
- serializedName: "isGitEnabled",
- type: {
- name: "Boolean"
- }
- },
- syncDate: {
- serializedName: "syncDate",
- type: {
- name: "DateTime"
- }
- },
- configurationChangeDate: {
- serializedName: "configurationChangeDate",
- type: {
- name: "DateTime"
- }
- }
- }
- }
- };
- var GenerateSsoUrlResult = {
- serializedName: "GenerateSsoUrlResult",
- type: {
- name: "Composite",
- className: "GenerateSsoUrlResult",
- modelProperties: {
- value: {
- serializedName: "value",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var UserCreateParameters = {
- serializedName: "UserCreateParameters",
- type: {
- name: "Composite",
- className: "UserCreateParameters",
- modelProperties: {
- state: {
- serializedName: "properties.state",
- defaultValue: 'active',
- type: {
- name: "String"
- }
- },
- note: {
- serializedName: "properties.note",
- type: {
- name: "String"
- }
- },
- identities: {
- readOnly: true,
- serializedName: "properties.identities",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "UserIdentityContract"
- }
- }
- }
- },
- email: {
- required: true,
- serializedName: "properties.email",
- constraints: {
- MaxLength: 254,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- firstName: {
- required: true,
- serializedName: "properties.firstName",
- constraints: {
- MaxLength: 100,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- lastName: {
- required: true,
- serializedName: "properties.lastName",
- constraints: {
- MaxLength: 100,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- password: {
- serializedName: "properties.password",
- type: {
- name: "String"
- }
- },
- confirmation: {
- serializedName: "properties.confirmation",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var UserTokenParameters = {
- serializedName: "UserTokenParameters",
- type: {
- name: "Composite",
- className: "UserTokenParameters",
- modelProperties: {
- keyType: {
- required: true,
- serializedName: "keyType",
- defaultValue: 'primary',
- type: {
- name: "Enum",
- allowedValues: [
- "primary",
- "secondary"
- ]
- }
- },
- expiry: {
- required: true,
- serializedName: "expiry",
- type: {
- name: "DateTime"
- }
- }
- }
- }
- };
- var UserTokenResult = {
- serializedName: "UserTokenResult",
- type: {
- name: "Composite",
- className: "UserTokenResult",
- modelProperties: {
- value: {
- serializedName: "value",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var UserUpdateParameters = {
- serializedName: "UserUpdateParameters",
- type: {
- name: "Composite",
- className: "UserUpdateParameters",
- modelProperties: {
- state: {
- serializedName: "properties.state",
- defaultValue: 'active',
- type: {
- name: "String"
- }
- },
- note: {
- serializedName: "properties.note",
- type: {
- name: "String"
- }
- },
- identities: {
- readOnly: true,
- serializedName: "properties.identities",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "UserIdentityContract"
- }
- }
- }
- },
- email: {
- serializedName: "properties.email",
- constraints: {
- MaxLength: 254,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- password: {
- serializedName: "properties.password",
- type: {
- name: "String"
- }
- },
- firstName: {
- serializedName: "properties.firstName",
- constraints: {
- MaxLength: 100,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- lastName: {
- serializedName: "properties.lastName",
- constraints: {
- MaxLength: 100,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiVersionSetContract = {
- serializedName: "ApiVersionSetContract",
- type: {
- name: "Composite",
- className: "ApiVersionSetContract",
- modelProperties: __assign({}, Resource.type.modelProperties, { description: {
- serializedName: "properties.description",
- type: {
- name: "String"
- }
- }, versionQueryName: {
- serializedName: "properties.versionQueryName",
- constraints: {
- MaxLength: 100,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }, versionHeaderName: {
- serializedName: "properties.versionHeaderName",
- constraints: {
- MaxLength: 100,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }, displayName: {
- required: true,
- serializedName: "properties.displayName",
- constraints: {
- MaxLength: 100,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }, versioningScheme: {
- required: true,
- serializedName: "properties.versioningScheme",
- type: {
- name: "String"
- }
- } })
- }
- };
- var ApiVersionSetEntityBase = {
- serializedName: "ApiVersionSetEntityBase",
- type: {
- name: "Composite",
- className: "ApiVersionSetEntityBase",
- modelProperties: {
- description: {
- serializedName: "description",
- type: {
- name: "String"
- }
- },
- versionQueryName: {
- serializedName: "versionQueryName",
- constraints: {
- MaxLength: 100,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- versionHeaderName: {
- serializedName: "versionHeaderName",
- constraints: {
- MaxLength: 100,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiVersionSetUpdateParameters = {
- serializedName: "ApiVersionSetUpdateParameters",
- type: {
- name: "Composite",
- className: "ApiVersionSetUpdateParameters",
- modelProperties: {
- description: {
- serializedName: "properties.description",
- type: {
- name: "String"
- }
- },
- versionQueryName: {
- serializedName: "properties.versionQueryName",
- constraints: {
- MaxLength: 100,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- versionHeaderName: {
- serializedName: "properties.versionHeaderName",
- constraints: {
- MaxLength: 100,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- displayName: {
- serializedName: "properties.displayName",
- constraints: {
- MaxLength: 100,
- MinLength: 1
- },
- type: {
- name: "String"
- }
- },
- versioningScheme: {
- serializedName: "properties.versioningScheme",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var PolicyGetEntityTagHeaders = {
- serializedName: "policy-getentitytag-headers",
- type: {
- name: "Composite",
- className: "PolicyGetEntityTagHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var PolicyGetHeaders = {
- serializedName: "policy-get-headers",
- type: {
- name: "Composite",
- className: "PolicyGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiGetEntityTagHeaders = {
- serializedName: "api-getentitytag-headers",
- type: {
- name: "Composite",
- className: "ApiGetEntityTagHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiGetHeaders = {
- serializedName: "api-get-headers",
- type: {
- name: "Composite",
- className: "ApiGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiCreateOrUpdateHeaders = {
- serializedName: "api-createorupdate-headers",
- type: {
- name: "Composite",
- className: "ApiCreateOrUpdateHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiReleaseGetEntityTagHeaders = {
- serializedName: "apirelease-getentitytag-headers",
- type: {
- name: "Composite",
- className: "ApiReleaseGetEntityTagHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiOperationGetEntityTagHeaders = {
- serializedName: "apioperation-getentitytag-headers",
- type: {
- name: "Composite",
- className: "ApiOperationGetEntityTagHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiOperationGetHeaders = {
- serializedName: "apioperation-get-headers",
- type: {
- name: "Composite",
- className: "ApiOperationGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiOperationPolicyGetEntityTagHeaders = {
- serializedName: "apioperationpolicy-getentitytag-headers",
- type: {
- name: "Composite",
- className: "ApiOperationPolicyGetEntityTagHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiOperationPolicyGetHeaders = {
- serializedName: "apioperationpolicy-get-headers",
- type: {
- name: "Composite",
- className: "ApiOperationPolicyGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiPolicyListByApiHeaders = {
- serializedName: "apipolicy-listbyapi-headers",
- type: {
- name: "Composite",
- className: "ApiPolicyListByApiHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiPolicyGetEntityTagHeaders = {
- serializedName: "apipolicy-getentitytag-headers",
- type: {
- name: "Composite",
- className: "ApiPolicyGetEntityTagHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiPolicyGetHeaders = {
- serializedName: "apipolicy-get-headers",
- type: {
- name: "Composite",
- className: "ApiPolicyGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiSchemaListByApiHeaders = {
- serializedName: "apischema-listbyapi-headers",
- type: {
- name: "Composite",
- className: "ApiSchemaListByApiHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiSchemaGetEntityTagHeaders = {
- serializedName: "apischema-getentitytag-headers",
- type: {
- name: "Composite",
- className: "ApiSchemaGetEntityTagHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiSchemaGetHeaders = {
- serializedName: "apischema-get-headers",
- type: {
- name: "Composite",
- className: "ApiSchemaGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiDiagnosticGetEntityTagHeaders = {
- serializedName: "apidiagnostic-getentitytag-headers",
- type: {
- name: "Composite",
- className: "ApiDiagnosticGetEntityTagHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiDiagnosticGetHeaders = {
- serializedName: "apidiagnostic-get-headers",
- type: {
- name: "Composite",
- className: "ApiDiagnosticGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiIssueGetEntityTagHeaders = {
- serializedName: "apiissue-getentitytag-headers",
- type: {
- name: "Composite",
- className: "ApiIssueGetEntityTagHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiIssueGetHeaders = {
- serializedName: "apiissue-get-headers",
- type: {
- name: "Composite",
- className: "ApiIssueGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiIssueCommentGetEntityTagHeaders = {
- serializedName: "apiissuecomment-getentitytag-headers",
- type: {
- name: "Composite",
- className: "ApiIssueCommentGetEntityTagHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiIssueCommentGetHeaders = {
- serializedName: "apiissuecomment-get-headers",
- type: {
- name: "Composite",
- className: "ApiIssueCommentGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiIssueAttachmentGetEntityTagHeaders = {
- serializedName: "apiissueattachment-getentitytag-headers",
- type: {
- name: "Composite",
- className: "ApiIssueAttachmentGetEntityTagHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiIssueAttachmentGetHeaders = {
- serializedName: "apiissueattachment-get-headers",
- type: {
- name: "Composite",
- className: "ApiIssueAttachmentGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var AuthorizationServerGetEntityTagHeaders = {
- serializedName: "authorizationserver-getentitytag-headers",
- type: {
- name: "Composite",
- className: "AuthorizationServerGetEntityTagHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var AuthorizationServerGetHeaders = {
- serializedName: "authorizationserver-get-headers",
- type: {
- name: "Composite",
- className: "AuthorizationServerGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var BackendGetEntityTagHeaders = {
- serializedName: "backend-getentitytag-headers",
- type: {
- name: "Composite",
- className: "BackendGetEntityTagHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var BackendGetHeaders = {
- serializedName: "backend-get-headers",
- type: {
- name: "Composite",
- className: "BackendGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var CertificateGetEntityTagHeaders = {
- serializedName: "certificate-getentitytag-headers",
- type: {
- name: "Composite",
- className: "CertificateGetEntityTagHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var CertificateGetHeaders = {
- serializedName: "certificate-get-headers",
- type: {
- name: "Composite",
- className: "CertificateGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var DiagnosticGetEntityTagHeaders = {
- serializedName: "diagnostic-getentitytag-headers",
- type: {
- name: "Composite",
- className: "DiagnosticGetEntityTagHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var DiagnosticGetHeaders = {
- serializedName: "diagnostic-get-headers",
- type: {
- name: "Composite",
- className: "DiagnosticGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var EmailTemplateGetEntityTagHeaders = {
- serializedName: "emailtemplate-getentitytag-headers",
- type: {
- name: "Composite",
- className: "EmailTemplateGetEntityTagHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var EmailTemplateGetHeaders = {
- serializedName: "emailtemplate-get-headers",
- type: {
- name: "Composite",
- className: "EmailTemplateGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var GroupGetEntityTagHeaders = {
- serializedName: "group-getentitytag-headers",
- type: {
- name: "Composite",
- className: "GroupGetEntityTagHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var GroupGetHeaders = {
- serializedName: "group-get-headers",
- type: {
- name: "Composite",
- className: "GroupGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var IdentityProviderGetEntityTagHeaders = {
- serializedName: "identityprovider-getentitytag-headers",
- type: {
- name: "Composite",
- className: "IdentityProviderGetEntityTagHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var IdentityProviderGetHeaders = {
- serializedName: "identityprovider-get-headers",
- type: {
- name: "Composite",
- className: "IdentityProviderGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var LoggerGetEntityTagHeaders = {
- serializedName: "logger-getentitytag-headers",
- type: {
- name: "Composite",
- className: "LoggerGetEntityTagHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var LoggerGetHeaders = {
- serializedName: "logger-get-headers",
- type: {
- name: "Composite",
- className: "LoggerGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var OpenIdConnectProviderGetEntityTagHeaders = {
- serializedName: "openidconnectprovider-getentitytag-headers",
- type: {
- name: "Composite",
- className: "OpenIdConnectProviderGetEntityTagHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var OpenIdConnectProviderGetHeaders = {
- serializedName: "openidconnectprovider-get-headers",
- type: {
- name: "Composite",
- className: "OpenIdConnectProviderGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var SignInSettingsGetEntityTagHeaders = {
- serializedName: "signinsettings-getentitytag-headers",
- type: {
- name: "Composite",
- className: "SignInSettingsGetEntityTagHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var SignInSettingsGetHeaders = {
- serializedName: "signinsettings-get-headers",
- type: {
- name: "Composite",
- className: "SignInSettingsGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var SignUpSettingsGetEntityTagHeaders = {
- serializedName: "signupsettings-getentitytag-headers",
- type: {
- name: "Composite",
- className: "SignUpSettingsGetEntityTagHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var SignUpSettingsGetHeaders = {
- serializedName: "signupsettings-get-headers",
- type: {
- name: "Composite",
- className: "SignUpSettingsGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var DelegationSettingsGetEntityTagHeaders = {
- serializedName: "delegationsettings-getentitytag-headers",
- type: {
- name: "Composite",
- className: "DelegationSettingsGetEntityTagHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var DelegationSettingsGetHeaders = {
- serializedName: "delegationsettings-get-headers",
- type: {
- name: "Composite",
- className: "DelegationSettingsGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ProductGetEntityTagHeaders = {
- serializedName: "product-getentitytag-headers",
- type: {
- name: "Composite",
- className: "ProductGetEntityTagHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ProductGetHeaders = {
- serializedName: "product-get-headers",
- type: {
- name: "Composite",
- className: "ProductGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ProductPolicyListByProductHeaders = {
- serializedName: "productpolicy-listbyproduct-headers",
- type: {
- name: "Composite",
- className: "ProductPolicyListByProductHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ProductPolicyGetEntityTagHeaders = {
- serializedName: "productpolicy-getentitytag-headers",
- type: {
- name: "Composite",
- className: "ProductPolicyGetEntityTagHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ProductPolicyGetHeaders = {
- serializedName: "productpolicy-get-headers",
- type: {
- name: "Composite",
- className: "ProductPolicyGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var PropertyGetEntityTagHeaders = {
- serializedName: "property-getentitytag-headers",
- type: {
- name: "Composite",
- className: "PropertyGetEntityTagHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var PropertyGetHeaders = {
- serializedName: "property-get-headers",
- type: {
- name: "Composite",
- className: "PropertyGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var SubscriptionGetEntityTagHeaders = {
- serializedName: "subscription-getentitytag-headers",
- type: {
- name: "Composite",
- className: "SubscriptionGetEntityTagHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var SubscriptionGetHeaders = {
- serializedName: "subscription-get-headers",
- type: {
- name: "Composite",
- className: "SubscriptionGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var TagGetEntityStateHeaders = {
- serializedName: "tag-getentitystate-headers",
- type: {
- name: "Composite",
- className: "TagGetEntityStateHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var TagGetHeaders = {
- serializedName: "tag-get-headers",
- type: {
- name: "Composite",
- className: "TagGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var TagGetEntityStateByApiHeaders = {
- serializedName: "tag-getentitystatebyapi-headers",
- type: {
- name: "Composite",
- className: "TagGetEntityStateByApiHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var TagGetByApiHeaders = {
- serializedName: "tag-getbyapi-headers",
- type: {
- name: "Composite",
- className: "TagGetByApiHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var TagDescriptionGetEntityStateHeaders = {
- serializedName: "tagdescription-getentitystate-headers",
- type: {
- name: "Composite",
- className: "TagDescriptionGetEntityStateHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var TagDescriptionGetHeaders = {
- serializedName: "tagdescription-get-headers",
- type: {
- name: "Composite",
- className: "TagDescriptionGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var TagGetEntityStateByOperationHeaders = {
- serializedName: "tag-getentitystatebyoperation-headers",
- type: {
- name: "Composite",
- className: "TagGetEntityStateByOperationHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var TagGetByOperationHeaders = {
- serializedName: "tag-getbyoperation-headers",
- type: {
- name: "Composite",
- className: "TagGetByOperationHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var TagGetEntityStateByProductHeaders = {
- serializedName: "tag-getentitystatebyproduct-headers",
- type: {
- name: "Composite",
- className: "TagGetEntityStateByProductHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var TagGetByProductHeaders = {
- serializedName: "tag-getbyproduct-headers",
- type: {
- name: "Composite",
- className: "TagGetByProductHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var TenantAccessGetHeaders = {
- serializedName: "tenantaccess-get-headers",
- type: {
- name: "Composite",
- className: "TenantAccessGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var TenantAccessGitGetHeaders = {
- serializedName: "tenantaccessgit-get-headers",
- type: {
- name: "Composite",
- className: "TenantAccessGitGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var UserGetEntityTagHeaders = {
- serializedName: "user-getentitytag-headers",
- type: {
- name: "Composite",
- className: "UserGetEntityTagHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var UserGetHeaders = {
- serializedName: "user-get-headers",
- type: {
- name: "Composite",
- className: "UserGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiVersionSetGetEntityTagHeaders = {
- serializedName: "apiversionset-getentitytag-headers",
- type: {
- name: "Composite",
- className: "ApiVersionSetGetEntityTagHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiVersionSetGetHeaders = {
- serializedName: "apiversionset-get-headers",
- type: {
- name: "Composite",
- className: "ApiVersionSetGetHeaders",
- modelProperties: {
- eTag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var RegionListResult = {
- serializedName: "RegionListResult",
- type: {
- name: "Composite",
- className: "RegionListResult",
- modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "RegionContract"
- }
- }
- }
- },
- count: {
- serializedName: "count",
- type: {
- name: "Number"
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiCollection = {
- serializedName: "ApiCollection",
- type: {
- name: "Composite",
- className: "ApiCollection",
- modelProperties: {
- value: {
- readOnly: true,
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ApiContract"
- }
- }
- }
- },
- nextLink: {
- readOnly: true,
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var TagResourceCollection = {
- serializedName: "TagResourceCollection",
- type: {
- name: "Composite",
- className: "TagResourceCollection",
- modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "TagResourceContract"
- }
- }
- }
- },
- count: {
- serializedName: "count",
- type: {
- name: "Number"
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiRevisionCollection = {
- serializedName: "ApiRevisionCollection",
- type: {
- name: "Composite",
- className: "ApiRevisionCollection",
- modelProperties: {
- value: {
- readOnly: true,
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ApiRevisionContract"
- }
- }
- }
- },
- nextLink: {
- readOnly: true,
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiReleaseCollection = {
- serializedName: "ApiReleaseCollection",
- type: {
- name: "Composite",
- className: "ApiReleaseCollection",
- modelProperties: {
- value: {
- readOnly: true,
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ApiReleaseContract"
- }
- }
- }
- },
- nextLink: {
- readOnly: true,
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var OperationCollection = {
- serializedName: "OperationCollection",
- type: {
- name: "Composite",
- className: "OperationCollection",
- modelProperties: {
- value: {
- readOnly: true,
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "OperationContract"
- }
- }
- }
- },
- nextLink: {
- readOnly: true,
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ProductCollection = {
- serializedName: "ProductCollection",
- type: {
- name: "Composite",
- className: "ProductCollection",
- modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ProductContract"
- }
- }
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var SchemaCollection = {
- serializedName: "SchemaCollection",
- type: {
- name: "Composite",
- className: "SchemaCollection",
- modelProperties: {
- value: {
- readOnly: true,
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "SchemaContract"
- }
- }
- }
- },
- nextLink: {
- readOnly: true,
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var DiagnosticCollection = {
- serializedName: "DiagnosticCollection",
- type: {
- name: "Composite",
- className: "DiagnosticCollection",
- modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "DiagnosticContract"
- }
- }
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var LoggerCollection = {
- serializedName: "LoggerCollection",
- type: {
- name: "Composite",
- className: "LoggerCollection",
- modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "LoggerContract"
- }
- }
- }
- },
- count: {
- serializedName: "count",
- type: {
- name: "Number"
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var IssueCollection = {
- serializedName: "IssueCollection",
- type: {
- name: "Composite",
- className: "IssueCollection",
- modelProperties: {
- value: {
- readOnly: true,
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "IssueContract"
- }
- }
- }
- },
- nextLink: {
- readOnly: true,
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var IssueCommentCollection = {
- serializedName: "IssueCommentCollection",
- type: {
- name: "Composite",
- className: "IssueCommentCollection",
- modelProperties: {
- value: {
- readOnly: true,
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "IssueCommentContract"
- }
- }
- }
- },
- nextLink: {
- readOnly: true,
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var IssueAttachmentCollection = {
- serializedName: "IssueAttachmentCollection",
- type: {
- name: "Composite",
- className: "IssueAttachmentCollection",
- modelProperties: {
- value: {
- readOnly: true,
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "IssueAttachmentContract"
- }
- }
- }
- },
- nextLink: {
- readOnly: true,
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var AuthorizationServerCollection = {
- serializedName: "AuthorizationServerCollection",
- type: {
- name: "Composite",
- className: "AuthorizationServerCollection",
- modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "AuthorizationServerContract"
- }
- }
- }
- },
- count: {
- serializedName: "count",
- type: {
- name: "Number"
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var BackendCollection = {
- serializedName: "BackendCollection",
- type: {
- name: "Composite",
- className: "BackendCollection",
- modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "BackendContract"
- }
- }
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var CertificateCollection = {
- serializedName: "CertificateCollection",
- type: {
- name: "Composite",
- className: "CertificateCollection",
- modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "CertificateContract"
- }
- }
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var OperationListResult = {
- serializedName: "OperationListResult",
- type: {
- name: "Composite",
- className: "OperationListResult",
- modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "Operation"
- }
- }
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiManagementServiceListResult = {
- serializedName: "ApiManagementServiceListResult",
- type: {
- name: "Composite",
- className: "ApiManagementServiceListResult",
- modelProperties: {
- value: {
- required: true,
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ApiManagementServiceResource"
- }
- }
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var EmailTemplateCollection = {
- serializedName: "EmailTemplateCollection",
- type: {
- name: "Composite",
- className: "EmailTemplateCollection",
- modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "EmailTemplateContract"
- }
- }
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var GroupCollection = {
- serializedName: "GroupCollection",
- type: {
- name: "Composite",
- className: "GroupCollection",
- modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "GroupContract"
- }
- }
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var UserCollection = {
- serializedName: "UserCollection",
- type: {
- name: "Composite",
- className: "UserCollection",
- modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "UserContract"
- }
- }
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var IdentityProviderList = {
- serializedName: "IdentityProviderList",
- type: {
- name: "Composite",
- className: "IdentityProviderList",
- modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "IdentityProviderContract"
- }
- }
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var NotificationCollection = {
- serializedName: "NotificationCollection",
- type: {
- name: "Composite",
- className: "NotificationCollection",
- modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "NotificationContract"
- }
- }
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var OpenIdConnectProviderCollection = {
- serializedName: "OpenIdConnectProviderCollection",
- type: {
- name: "Composite",
- className: "OpenIdConnectProviderCollection",
- modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "OpenidConnectProviderContract"
- }
- }
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var SubscriptionCollection = {
- serializedName: "SubscriptionCollection",
- type: {
- name: "Composite",
- className: "SubscriptionCollection",
- modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "SubscriptionContract"
- }
- }
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var PropertyCollection = {
- serializedName: "PropertyCollection",
- type: {
- name: "Composite",
- className: "PropertyCollection",
- modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "PropertyContract"
- }
- }
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ReportCollection = {
- serializedName: "ReportCollection",
- type: {
- name: "Composite",
- className: "ReportCollection",
- modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ReportRecordContract"
- }
- }
- }
- },
- count: {
- serializedName: "count",
- type: {
- name: "Number"
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var RequestReportCollection = {
- serializedName: "RequestReportCollection",
- type: {
- name: "Composite",
- className: "RequestReportCollection",
- modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "RequestReportRecordContract"
- }
- }
- }
- },
- count: {
- serializedName: "count",
- type: {
- name: "Number"
- }
- }
- }
- }
- };
- var TagCollection = {
- serializedName: "TagCollection",
- type: {
- name: "Composite",
- className: "TagCollection",
- modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "TagContract"
- }
- }
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var TagDescriptionCollection = {
- serializedName: "TagDescriptionCollection",
- type: {
- name: "Composite",
- className: "TagDescriptionCollection",
- modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "TagDescriptionContract"
- }
- }
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var UserIdentityCollection = {
- serializedName: "UserIdentityCollection",
- type: {
- name: "Composite",
- className: "UserIdentityCollection",
- modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "UserIdentityContract"
- }
- }
- }
- },
- count: {
- serializedName: "count",
- type: {
- name: "Number"
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
- var ApiVersionSetCollection = {
- serializedName: "ApiVersionSetCollection",
- type: {
- name: "Composite",
- className: "ApiVersionSetCollection",
- modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ApiVersionSetContract"
- }
- }
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
- };
-
- var mappers = /*#__PURE__*/Object.freeze({
- CloudError: CloudError,
- BaseResource: BaseResource,
- ErrorFieldContract: ErrorFieldContract,
- ErrorResponseBody: ErrorResponseBody,
- ErrorResponse: ErrorResponse,
- Resource: Resource,
- PolicyContract: PolicyContract,
- PolicyCollection: PolicyCollection,
- PolicySnippetContract: PolicySnippetContract,
- PolicySnippetsCollection: PolicySnippetsCollection,
- RegionContract: RegionContract,
- ApiExportResult: ApiExportResult,
- ApiVersionSetContractDetails: ApiVersionSetContractDetails,
- ApiEntityBaseContract: ApiEntityBaseContract,
- ApiContractProperties: ApiContractProperties,
- ApiContract: ApiContract,
- ApiCreateOrUpdatePropertiesWsdlSelector: ApiCreateOrUpdatePropertiesWsdlSelector,
- ApiCreateOrUpdateParameter: ApiCreateOrUpdateParameter,
- ApiUpdateContract: ApiUpdateContract,
- OAuth2AuthenticationSettingsContract: OAuth2AuthenticationSettingsContract,
- OpenIdAuthenticationSettingsContract: OpenIdAuthenticationSettingsContract,
- AuthenticationSettingsContract: AuthenticationSettingsContract,
- SubscriptionKeyParameterNamesContract: SubscriptionKeyParameterNamesContract,
- ApiRevisionContract: ApiRevisionContract,
- ApiRevisionInfoContract: ApiRevisionInfoContract,
- ApiReleaseContract: ApiReleaseContract,
- OperationContract: OperationContract,
- ParameterContract: ParameterContract,
- RepresentationContract: RepresentationContract,
- RequestContract: RequestContract,
- ResponseContract: ResponseContract,
- OperationEntityBaseContract: OperationEntityBaseContract,
- OperationUpdateContract: OperationUpdateContract,
- SchemaContract: SchemaContract,
- IssueContract: IssueContract,
- IssueCommentContract: IssueCommentContract,
- IssueAttachmentContract: IssueAttachmentContract,
- LoggerContract: LoggerContract,
- DiagnosticContract: DiagnosticContract,
- ProductEntityBaseParameters: ProductEntityBaseParameters,
- ProductTagResourceContractProperties: ProductTagResourceContractProperties,
- OperationTagResourceContractProperties: OperationTagResourceContractProperties,
- ApiTagResourceContractProperties: ApiTagResourceContractProperties,
- TagTagResourceContractProperties: TagTagResourceContractProperties,
- TagResourceContract: TagResourceContract,
- ProductContract: ProductContract,
- AuthorizationServerContract: AuthorizationServerContract,
- AuthorizationServerUpdateContract: AuthorizationServerUpdateContract,
- TokenBodyParameterContract: TokenBodyParameterContract,
- AuthorizationServerContractBaseProperties: AuthorizationServerContractBaseProperties,
- BackendAuthorizationHeaderCredentials: BackendAuthorizationHeaderCredentials,
- X509CertificateName: X509CertificateName,
- BackendServiceFabricClusterProperties: BackendServiceFabricClusterProperties,
- BackendProperties: BackendProperties,
- BackendCredentialsContract: BackendCredentialsContract,
- BackendProxyContract: BackendProxyContract,
- BackendTlsProperties: BackendTlsProperties,
- BackendBaseParameters: BackendBaseParameters,
- BackendContract: BackendContract,
- BackendUpdateParameters: BackendUpdateParameters,
- BackendReconnectContract: BackendReconnectContract,
- CertificateContract: CertificateContract,
- CertificateCreateOrUpdateParameters: CertificateCreateOrUpdateParameters,
- CertificateInformation: CertificateInformation,
- CertificateConfiguration: CertificateConfiguration,
- HostnameConfiguration: HostnameConfiguration,
- VirtualNetworkConfiguration: VirtualNetworkConfiguration,
- ApiManagementServiceSkuProperties: ApiManagementServiceSkuProperties,
- AdditionalLocation: AdditionalLocation,
- ApiManagementServiceBackupRestoreParameters: ApiManagementServiceBackupRestoreParameters,
- ApiManagementServiceBaseProperties: ApiManagementServiceBaseProperties,
- ApiManagementServiceIdentity: ApiManagementServiceIdentity,
- ApimResource: ApimResource,
- ApiManagementServiceResource: ApiManagementServiceResource,
- ApiManagementServiceUpdateParameters: ApiManagementServiceUpdateParameters,
- ApiManagementServiceGetSsoTokenResult: ApiManagementServiceGetSsoTokenResult,
- ApiManagementServiceCheckNameAvailabilityParameters: ApiManagementServiceCheckNameAvailabilityParameters,
- ApiManagementServiceNameAvailabilityResult: ApiManagementServiceNameAvailabilityResult,
- ApiManagementServiceApplyNetworkConfigurationParameters: ApiManagementServiceApplyNetworkConfigurationParameters,
- ApiManagementServiceUploadCertificateParameters: ApiManagementServiceUploadCertificateParameters,
- HostnameConfigurationOld: HostnameConfigurationOld,
- ApiManagementServiceUpdateHostnameParameters: ApiManagementServiceUpdateHostnameParameters,
- OperationDisplay: OperationDisplay,
- Operation: Operation,
- EmailTemplateParametersContractProperties: EmailTemplateParametersContractProperties,
- EmailTemplateContract: EmailTemplateContract,
- EmailTemplateUpdateParameters: EmailTemplateUpdateParameters,
- GroupContractProperties: GroupContractProperties,
- GroupContract: GroupContract,
- GroupCreateParameters: GroupCreateParameters,
- GroupUpdateParameters: GroupUpdateParameters,
- UserIdentityContract: UserIdentityContract,
- UserEntityBaseParameters: UserEntityBaseParameters,
- UserContract: UserContract,
- IdentityProviderContract: IdentityProviderContract,
- IdentityProviderUpdateParameters: IdentityProviderUpdateParameters,
- IdentityProviderBaseParameters: IdentityProviderBaseParameters,
- LoggerUpdateContract: LoggerUpdateContract,
- RecipientsContractProperties: RecipientsContractProperties,
- NotificationContract: NotificationContract,
- RecipientUserContract: RecipientUserContract,
- RecipientUserCollection: RecipientUserCollection,
- RecipientEmailContract: RecipientEmailContract,
- RecipientEmailCollection: RecipientEmailCollection,
- ConnectivityStatusContract: ConnectivityStatusContract,
- NetworkStatusContract: NetworkStatusContract,
- NetworkStatusContractByLocation: NetworkStatusContractByLocation,
- OpenidConnectProviderContract: OpenidConnectProviderContract,
- OpenidConnectProviderUpdateContract: OpenidConnectProviderUpdateContract,
- PortalSigninSettings: PortalSigninSettings,
- TermsOfServiceProperties: TermsOfServiceProperties,
- PortalSignupSettings: PortalSignupSettings,
- SubscriptionsDelegationSettingsProperties: SubscriptionsDelegationSettingsProperties,
- RegistrationDelegationSettingsProperties: RegistrationDelegationSettingsProperties,
- PortalDelegationSettings: PortalDelegationSettings,
- ProductUpdateParameters: ProductUpdateParameters,
- SubscriptionContract: SubscriptionContract,
- PropertyContract: PropertyContract,
- PropertyUpdateParameters: PropertyUpdateParameters,
- PropertyEntityBaseParameters: PropertyEntityBaseParameters,
- QuotaCounterValueContractProperties: QuotaCounterValueContractProperties,
- QuotaCounterContract: QuotaCounterContract,
- QuotaCounterCollection: QuotaCounterCollection,
- QuotaCounterValueContract: QuotaCounterValueContract,
- ReportRecordContract: ReportRecordContract,
- RequestReportRecordContract: RequestReportRecordContract,
- SubscriptionCreateParameters: SubscriptionCreateParameters,
- SubscriptionUpdateParameters: SubscriptionUpdateParameters,
- TagContract: TagContract,
- TagCreateUpdateParameters: TagCreateUpdateParameters,
- TagDescriptionContract: TagDescriptionContract,
- TagDescriptionCreateParameters: TagDescriptionCreateParameters,
- AccessInformationContract: AccessInformationContract,
- AccessInformationUpdateParameters: AccessInformationUpdateParameters,
- DeployConfigurationParameters: DeployConfigurationParameters,
- OperationResultLogItemContract: OperationResultLogItemContract,
- OperationResultContract: OperationResultContract,
- SaveConfigurationParameter: SaveConfigurationParameter,
- TenantConfigurationSyncStateContract: TenantConfigurationSyncStateContract,
- GenerateSsoUrlResult: GenerateSsoUrlResult,
- UserCreateParameters: UserCreateParameters,
- UserTokenParameters: UserTokenParameters,
- UserTokenResult: UserTokenResult,
- UserUpdateParameters: UserUpdateParameters,
- ApiVersionSetContract: ApiVersionSetContract,
- ApiVersionSetEntityBase: ApiVersionSetEntityBase,
- ApiVersionSetUpdateParameters: ApiVersionSetUpdateParameters,
- PolicyGetEntityTagHeaders: PolicyGetEntityTagHeaders,
- PolicyGetHeaders: PolicyGetHeaders,
- ApiGetEntityTagHeaders: ApiGetEntityTagHeaders,
- ApiGetHeaders: ApiGetHeaders,
- ApiCreateOrUpdateHeaders: ApiCreateOrUpdateHeaders,
- ApiReleaseGetEntityTagHeaders: ApiReleaseGetEntityTagHeaders,
- ApiOperationGetEntityTagHeaders: ApiOperationGetEntityTagHeaders,
- ApiOperationGetHeaders: ApiOperationGetHeaders,
- ApiOperationPolicyGetEntityTagHeaders: ApiOperationPolicyGetEntityTagHeaders,
- ApiOperationPolicyGetHeaders: ApiOperationPolicyGetHeaders,
- ApiPolicyListByApiHeaders: ApiPolicyListByApiHeaders,
- ApiPolicyGetEntityTagHeaders: ApiPolicyGetEntityTagHeaders,
- ApiPolicyGetHeaders: ApiPolicyGetHeaders,
- ApiSchemaListByApiHeaders: ApiSchemaListByApiHeaders,
- ApiSchemaGetEntityTagHeaders: ApiSchemaGetEntityTagHeaders,
- ApiSchemaGetHeaders: ApiSchemaGetHeaders,
- ApiDiagnosticGetEntityTagHeaders: ApiDiagnosticGetEntityTagHeaders,
- ApiDiagnosticGetHeaders: ApiDiagnosticGetHeaders,
- ApiIssueGetEntityTagHeaders: ApiIssueGetEntityTagHeaders,
- ApiIssueGetHeaders: ApiIssueGetHeaders,
- ApiIssueCommentGetEntityTagHeaders: ApiIssueCommentGetEntityTagHeaders,
- ApiIssueCommentGetHeaders: ApiIssueCommentGetHeaders,
- ApiIssueAttachmentGetEntityTagHeaders: ApiIssueAttachmentGetEntityTagHeaders,
- ApiIssueAttachmentGetHeaders: ApiIssueAttachmentGetHeaders,
- AuthorizationServerGetEntityTagHeaders: AuthorizationServerGetEntityTagHeaders,
- AuthorizationServerGetHeaders: AuthorizationServerGetHeaders,
- BackendGetEntityTagHeaders: BackendGetEntityTagHeaders,
- BackendGetHeaders: BackendGetHeaders,
- CertificateGetEntityTagHeaders: CertificateGetEntityTagHeaders,
- CertificateGetHeaders: CertificateGetHeaders,
- DiagnosticGetEntityTagHeaders: DiagnosticGetEntityTagHeaders,
- DiagnosticGetHeaders: DiagnosticGetHeaders,
- EmailTemplateGetEntityTagHeaders: EmailTemplateGetEntityTagHeaders,
- EmailTemplateGetHeaders: EmailTemplateGetHeaders,
- GroupGetEntityTagHeaders: GroupGetEntityTagHeaders,
- GroupGetHeaders: GroupGetHeaders,
- IdentityProviderGetEntityTagHeaders: IdentityProviderGetEntityTagHeaders,
- IdentityProviderGetHeaders: IdentityProviderGetHeaders,
- LoggerGetEntityTagHeaders: LoggerGetEntityTagHeaders,
- LoggerGetHeaders: LoggerGetHeaders,
- OpenIdConnectProviderGetEntityTagHeaders: OpenIdConnectProviderGetEntityTagHeaders,
- OpenIdConnectProviderGetHeaders: OpenIdConnectProviderGetHeaders,
- SignInSettingsGetEntityTagHeaders: SignInSettingsGetEntityTagHeaders,
- SignInSettingsGetHeaders: SignInSettingsGetHeaders,
- SignUpSettingsGetEntityTagHeaders: SignUpSettingsGetEntityTagHeaders,
- SignUpSettingsGetHeaders: SignUpSettingsGetHeaders,
- DelegationSettingsGetEntityTagHeaders: DelegationSettingsGetEntityTagHeaders,
- DelegationSettingsGetHeaders: DelegationSettingsGetHeaders,
- ProductGetEntityTagHeaders: ProductGetEntityTagHeaders,
- ProductGetHeaders: ProductGetHeaders,
- ProductPolicyListByProductHeaders: ProductPolicyListByProductHeaders,
- ProductPolicyGetEntityTagHeaders: ProductPolicyGetEntityTagHeaders,
- ProductPolicyGetHeaders: ProductPolicyGetHeaders,
- PropertyGetEntityTagHeaders: PropertyGetEntityTagHeaders,
- PropertyGetHeaders: PropertyGetHeaders,
- SubscriptionGetEntityTagHeaders: SubscriptionGetEntityTagHeaders,
- SubscriptionGetHeaders: SubscriptionGetHeaders,
- TagGetEntityStateHeaders: TagGetEntityStateHeaders,
- TagGetHeaders: TagGetHeaders,
- TagGetEntityStateByApiHeaders: TagGetEntityStateByApiHeaders,
- TagGetByApiHeaders: TagGetByApiHeaders,
- TagDescriptionGetEntityStateHeaders: TagDescriptionGetEntityStateHeaders,
- TagDescriptionGetHeaders: TagDescriptionGetHeaders,
- TagGetEntityStateByOperationHeaders: TagGetEntityStateByOperationHeaders,
- TagGetByOperationHeaders: TagGetByOperationHeaders,
- TagGetEntityStateByProductHeaders: TagGetEntityStateByProductHeaders,
- TagGetByProductHeaders: TagGetByProductHeaders,
- TenantAccessGetHeaders: TenantAccessGetHeaders,
- TenantAccessGitGetHeaders: TenantAccessGitGetHeaders,
- UserGetEntityTagHeaders: UserGetEntityTagHeaders,
- UserGetHeaders: UserGetHeaders,
- ApiVersionSetGetEntityTagHeaders: ApiVersionSetGetEntityTagHeaders,
- ApiVersionSetGetHeaders: ApiVersionSetGetHeaders,
- RegionListResult: RegionListResult,
- ApiCollection: ApiCollection,
- TagResourceCollection: TagResourceCollection,
- ApiRevisionCollection: ApiRevisionCollection,
- ApiReleaseCollection: ApiReleaseCollection,
- OperationCollection: OperationCollection,
- ProductCollection: ProductCollection,
- SchemaCollection: SchemaCollection,
- DiagnosticCollection: DiagnosticCollection,
- LoggerCollection: LoggerCollection,
- IssueCollection: IssueCollection,
- IssueCommentCollection: IssueCommentCollection,
- IssueAttachmentCollection: IssueAttachmentCollection,
- AuthorizationServerCollection: AuthorizationServerCollection,
- BackendCollection: BackendCollection,
- CertificateCollection: CertificateCollection,
- OperationListResult: OperationListResult,
- ApiManagementServiceListResult: ApiManagementServiceListResult,
- EmailTemplateCollection: EmailTemplateCollection,
- GroupCollection: GroupCollection,
- UserCollection: UserCollection,
- IdentityProviderList: IdentityProviderList,
- NotificationCollection: NotificationCollection,
- OpenIdConnectProviderCollection: OpenIdConnectProviderCollection,
- SubscriptionCollection: SubscriptionCollection,
- PropertyCollection: PropertyCollection,
- ReportCollection: ReportCollection,
- RequestReportCollection: RequestReportCollection,
- TagCollection: TagCollection,
- TagDescriptionCollection: TagDescriptionCollection,
- UserIdentityCollection: UserIdentityCollection,
- ApiVersionSetCollection: ApiVersionSetCollection
- });
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
- var Mappers = /*#__PURE__*/Object.freeze({
- PolicyCollection: PolicyCollection,
- PolicyContract: PolicyContract,
- Resource: Resource,
- BaseResource: BaseResource,
- CloudError: CloudError,
- PolicyGetEntityTagHeaders: PolicyGetEntityTagHeaders,
- ErrorResponse: ErrorResponse,
- ErrorFieldContract: ErrorFieldContract,
- PolicyGetHeaders: PolicyGetHeaders,
- ApiContract: ApiContract,
- AuthenticationSettingsContract: AuthenticationSettingsContract,
- OAuth2AuthenticationSettingsContract: OAuth2AuthenticationSettingsContract,
- OpenIdAuthenticationSettingsContract: OpenIdAuthenticationSettingsContract,
- SubscriptionKeyParameterNamesContract: SubscriptionKeyParameterNamesContract,
- ApiVersionSetContractDetails: ApiVersionSetContractDetails,
- ApiReleaseContract: ApiReleaseContract,
- OperationContract: OperationContract,
- ParameterContract: ParameterContract,
- RequestContract: RequestContract,
- RepresentationContract: RepresentationContract,
- ResponseContract: ResponseContract,
- SchemaContract: SchemaContract,
- IssueContract: IssueContract,
- IssueCommentContract: IssueCommentContract,
- IssueAttachmentContract: IssueAttachmentContract,
- LoggerContract: LoggerContract,
- DiagnosticContract: DiagnosticContract,
- ProductContract: ProductContract,
- AuthorizationServerContract: AuthorizationServerContract,
- TokenBodyParameterContract: TokenBodyParameterContract,
- AuthorizationServerUpdateContract: AuthorizationServerUpdateContract,
- BackendContract: BackendContract,
- BackendProperties: BackendProperties,
- BackendServiceFabricClusterProperties: BackendServiceFabricClusterProperties,
- X509CertificateName: X509CertificateName,
- BackendCredentialsContract: BackendCredentialsContract,
- BackendAuthorizationHeaderCredentials: BackendAuthorizationHeaderCredentials,
- BackendProxyContract: BackendProxyContract,
- BackendTlsProperties: BackendTlsProperties,
- BackendReconnectContract: BackendReconnectContract,
- CertificateContract: CertificateContract,
- ApimResource: ApimResource,
- ApiManagementServiceUpdateParameters: ApiManagementServiceUpdateParameters,
- HostnameConfiguration: HostnameConfiguration,
- CertificateInformation: CertificateInformation,
- VirtualNetworkConfiguration: VirtualNetworkConfiguration,
- AdditionalLocation: AdditionalLocation,
- ApiManagementServiceSkuProperties: ApiManagementServiceSkuProperties,
- CertificateConfiguration: CertificateConfiguration,
- ApiManagementServiceIdentity: ApiManagementServiceIdentity,
- EmailTemplateContract: EmailTemplateContract,
- EmailTemplateParametersContractProperties: EmailTemplateParametersContractProperties,
- GroupContract: GroupContract,
- UserContract: UserContract,
- UserIdentityContract: UserIdentityContract,
- GroupContractProperties: GroupContractProperties,
- IdentityProviderContract: IdentityProviderContract,
- NotificationContract: NotificationContract,
- RecipientsContractProperties: RecipientsContractProperties,
- RecipientUserContract: RecipientUserContract,
- RecipientEmailContract: RecipientEmailContract,
- OpenidConnectProviderContract: OpenidConnectProviderContract,
- PortalSigninSettings: PortalSigninSettings,
- PortalSignupSettings: PortalSignupSettings,
- TermsOfServiceProperties: TermsOfServiceProperties,
- PortalDelegationSettings: PortalDelegationSettings,
- SubscriptionsDelegationSettingsProperties: SubscriptionsDelegationSettingsProperties,
- RegistrationDelegationSettingsProperties: RegistrationDelegationSettingsProperties,
- SubscriptionContract: SubscriptionContract,
- PropertyContract: PropertyContract,
- TagContract: TagContract,
- TagDescriptionContract: TagDescriptionContract,
- ApiVersionSetContract: ApiVersionSetContract,
- ApiManagementServiceResource: ApiManagementServiceResource
- });
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
- var acceptLanguage = {
- parameterPath: "acceptLanguage",
- mapper: {
- serializedName: "accept-language",
- defaultValue: 'en-US',
- type: {
- name: "String"
- }
- }
- };
- var accessName = {
- parameterPath: "accessName",
- mapper: {
- required: true,
- isConstant: true,
- serializedName: "accessName",
- defaultValue: 'access',
- type: {
- name: "String"
- }
- }
- };
- var apiId0 = {
- parameterPath: "apiId",
- mapper: {
- required: true,
- serializedName: "apiId",
- constraints: {
- MaxLength: 256,
- MinLength: 1,
- Pattern: /^[^*#&+:<>?]+$/
- },
- type: {
- name: "String"
- }
- }
- };
- var apiId1 = {
- parameterPath: "apiId",
- mapper: {
- required: true,
- serializedName: "apiId",
- constraints: {
- MaxLength: 80,
- MinLength: 1,
- Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/
- },
- type: {
- name: "String"
- }
- }
- };
- var apiVersion = {
- parameterPath: "apiVersion",
- mapper: {
- required: true,
- serializedName: "api-version",
- type: {
- name: "String"
- }
- }
- };
- var attachmentId = {
- parameterPath: "attachmentId",
- mapper: {
- required: true,
- serializedName: "attachmentId",
- constraints: {
- MaxLength: 256,
- MinLength: 1,
- Pattern: /^[^*#&+:<>?]+$/
- },
- type: {
- name: "String"
- }
- }
- };
- var authsid = {
- parameterPath: "authsid",
- mapper: {
- required: true,
- serializedName: "authsid",
- constraints: {
- MaxLength: 80,
- MinLength: 1,
- Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/
- },
- type: {
- name: "String"
- }
- }
- };
- var backendid = {
- parameterPath: "backendid",
- mapper: {
- required: true,
- serializedName: "backendid",
- constraints: {
- MaxLength: 80,
- MinLength: 1,
- Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/
- },
- type: {
- name: "String"
- }
- }
- };
- var certificateId = {
- parameterPath: "certificateId",
- mapper: {
- required: true,
- serializedName: "certificateId",
- constraints: {
- MaxLength: 80,
- MinLength: 1,
- Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/
- },
- type: {
- name: "String"
- }
- }
- };
- var commentId = {
- parameterPath: "commentId",
- mapper: {
- required: true,
- serializedName: "commentId",
- constraints: {
- MaxLength: 256,
- MinLength: 1,
- Pattern: /^[^*#&+:<>?]+$/
- },
- type: {
- name: "String"
- }
- }
- };
- var configurationName = {
- parameterPath: "configurationName",
- mapper: {
- required: true,
- isConstant: true,
- serializedName: "configurationName",
- defaultValue: 'configuration',
- type: {
- name: "String"
- }
- }
- };
- var deleteRevisions = {
- parameterPath: [
- "options",
- "deleteRevisions"
- ],
- mapper: {
- serializedName: "deleteRevisions",
- type: {
- name: "Boolean"
- }
- }
- };
- var deleteSubscriptions = {
- parameterPath: [
- "options",
- "deleteSubscriptions"
- ],
- mapper: {
- serializedName: "deleteSubscriptions",
- type: {
- name: "Boolean"
- }
- }
- };
- var diagnosticId = {
- parameterPath: "diagnosticId",
- mapper: {
- required: true,
- serializedName: "diagnosticId",
- constraints: {
- MaxLength: 80,
- MinLength: 1,
- Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/
- },
- type: {
- name: "String"
- }
- }
- };
- var email = {
- parameterPath: "email",
- mapper: {
- required: true,
- serializedName: "email",
- type: {
- name: "String"
- }
- }
- };
- var expandApiVersionSet = {
- parameterPath: [
- "options",
- "expandApiVersionSet"
- ],
- mapper: {
- serializedName: "expandApiVersionSet",
- defaultValue: false,
- type: {
- name: "Boolean"
- }
- }
- };
- var expandGroups = {
- parameterPath: [
- "options",
- "expandGroups"
- ],
- mapper: {
- serializedName: "expandGroups",
- type: {
- name: "Boolean"
- }
- }
- };
- var exportParameter = {
- parameterPath: "exportParameter",
- mapper: {
- required: true,
- isConstant: true,
- serializedName: "export",
- defaultValue: 'true',
- type: {
- name: "String"
- }
- }
- };
- var filter0 = {
- parameterPath: [
- "options",
- "filter"
- ],
- mapper: {
- serializedName: "$filter",
- type: {
- name: "String"
- }
- }
- };
- var filter1 = {
- parameterPath: "filter",
- mapper: {
- required: true,
- serializedName: "$filter",
- type: {
- name: "String"
- }
- }
- };
- var format = {
- parameterPath: "format",
- mapper: {
- required: true,
- serializedName: "format",
- type: {
- name: "String"
- }
- }
- };
- var groupId = {
- parameterPath: "groupId",
- mapper: {
- required: true,
- serializedName: "groupId",
- constraints: {
- MaxLength: 80,
- MinLength: 1,
- Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/
- },
- type: {
- name: "String"
- }
- }
- };
- var identityProviderName = {
- parameterPath: "identityProviderName",
- mapper: {
- required: true,
- serializedName: "identityProviderName",
- type: {
- name: "String"
- }
- }
- };
- var ifMatch0 = {
- parameterPath: "ifMatch",
- mapper: {
- required: true,
- serializedName: "If-Match",
- type: {
- name: "String"
- }
- }
- };
- var ifMatch1 = {
- parameterPath: [
- "options",
- "ifMatch"
- ],
- mapper: {
- serializedName: "If-Match",
- type: {
- name: "String"
- }
- }
- };
- var interval = {
- parameterPath: "interval",
- mapper: {
- required: true,
- serializedName: "interval",
- type: {
- name: "TimeSpan"
- }
- }
- };
- var issueId = {
- parameterPath: "issueId",
- mapper: {
- required: true,
- serializedName: "issueId",
- constraints: {
- MaxLength: 256,
- MinLength: 1,
- Pattern: /^[^*#&+:<>?]+$/
- },
- type: {
- name: "String"
- }
- }
- };
- var locationName = {
- parameterPath: "locationName",
- mapper: {
- required: true,
- serializedName: "locationName",
- constraints: {
- MinLength: 1
- },
- type: {
- name: "String"
- }
- }
- };
- var loggerid = {
- parameterPath: "loggerid",
- mapper: {
- required: true,
- serializedName: "loggerid",
- constraints: {
- MaxLength: 80,
- Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/
- },
- type: {
- name: "String"
- }
- }
- };
- var nextPageLink = {
- parameterPath: "nextPageLink",
- mapper: {
- required: true,
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- },
- skipEncoding: true
- };
- var notificationName = {
- parameterPath: "notificationName",
- mapper: {
- required: true,
- serializedName: "notificationName",
- type: {
- name: "String"
- }
- }
- };
- var notify = {
- parameterPath: [
- "options",
- "notify"
- ],
- mapper: {
- serializedName: "notify",
- type: {
- name: "Boolean"
- }
- }
- };
- var operationId = {
- parameterPath: "operationId",
- mapper: {
- required: true,
- serializedName: "operationId",
- constraints: {
- MaxLength: 80,
- MinLength: 1,
- Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/
- },
- type: {
- name: "String"
- }
- }
- };
- var opid = {
- parameterPath: "opid",
- mapper: {
- required: true,
- serializedName: "opid",
- constraints: {
- MaxLength: 256,
- Pattern: /^[^*#&+:<>?]+$/
- },
- type: {
- name: "String"
- }
- }
- };
- var policyId = {
- parameterPath: "policyId",
- mapper: {
- required: true,
- isConstant: true,
- serializedName: "policyId",
- defaultValue: 'policy',
- type: {
- name: "String"
- }
- }
- };
- var productId = {
- parameterPath: "productId",
- mapper: {
- required: true,
- serializedName: "productId",
- constraints: {
- MaxLength: 80,
- MinLength: 1,
- Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/
- },
- type: {
- name: "String"
- }
- }
- };
- var propId = {
- parameterPath: "propId",
- mapper: {
- required: true,
- serializedName: "propId",
- constraints: {
- MaxLength: 80,
- Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/
- },
- type: {
- name: "String"
- }
- }
- };
- var quotaCounterKey = {
- parameterPath: "quotaCounterKey",
- mapper: {
- required: true,
- serializedName: "quotaCounterKey",
- type: {
- name: "String"
- }
- }
- };
- var quotaPeriodKey = {
- parameterPath: "quotaPeriodKey",
- mapper: {
- required: true,
- serializedName: "quotaPeriodKey",
- type: {
- name: "String"
- }
- }
- };
- var releaseId = {
- parameterPath: "releaseId",
- mapper: {
- required: true,
- serializedName: "releaseId",
- constraints: {
- MaxLength: 80,
- MinLength: 1,
- Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/
- },
- type: {
- name: "String"
- }
- }
- };
- var resourceGroupName = {
- parameterPath: "resourceGroupName",
- mapper: {
- required: true,
- serializedName: "resourceGroupName",
- type: {
- name: "String"
- }
- }
- };
- var schemaId = {
- parameterPath: "schemaId",
- mapper: {
- required: true,
- serializedName: "schemaId",
- constraints: {
- MaxLength: 80,
- MinLength: 1,
- Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/
- },
- type: {
- name: "String"
- }
- }
- };
- var scope = {
- parameterPath: [
- "options",
- "scope"
- ],
- mapper: {
- serializedName: "scope",
- type: {
- name: "Enum",
- allowedValues: [
- "Tenant",
- "Product",
- "Api",
- "Operation",
- "All"
- ]
- }
- }
- };
- var serviceName = {
- parameterPath: "serviceName",
- mapper: {
- required: true,
- serializedName: "serviceName",
- constraints: {
- MaxLength: 50,
- MinLength: 1,
- Pattern: /^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$/
- },
- type: {
- name: "String"
- }
- }
- };
- var sid = {
- parameterPath: "sid",
- mapper: {
- required: true,
- serializedName: "sid",
- constraints: {
- MaxLength: 80,
- Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/
- },
- type: {
- name: "String"
- }
- }
- };
- var skip = {
- parameterPath: [
- "options",
- "skip"
- ],
- mapper: {
- serializedName: "$skip",
- constraints: {
- InclusiveMinimum: 0
- },
- type: {
- name: "Number"
- }
- }
- };
- var subscriptionId = {
- parameterPath: "subscriptionId",
- mapper: {
- required: true,
- serializedName: "subscriptionId",
- type: {
- name: "String"
- }
- }
- };
- var tagId = {
- parameterPath: "tagId",
- mapper: {
- required: true,
- serializedName: "tagId",
- constraints: {
- MaxLength: 80,
- MinLength: 1,
- Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/
- },
- type: {
- name: "String"
- }
- }
- };
- var templateName = {
- parameterPath: "templateName",
- mapper: {
- required: true,
- serializedName: "templateName",
- type: {
- name: "String"
- }
- }
- };
- var top = {
- parameterPath: [
- "options",
- "top"
- ],
- mapper: {
- serializedName: "$top",
- constraints: {
- InclusiveMinimum: 1
- },
- type: {
- name: "Number"
- }
- }
- };
- var uid = {
- parameterPath: "uid",
- mapper: {
- required: true,
- serializedName: "uid",
- constraints: {
- MaxLength: 80,
- MinLength: 1,
- Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/
- },
- type: {
- name: "String"
- }
- }
- };
- var versionSetId = {
- parameterPath: "versionSetId",
- mapper: {
- required: true,
- serializedName: "versionSetId",
- constraints: {
- MaxLength: 80,
- MinLength: 1,
- Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/
- },
- type: {
- name: "String"
- }
- }
- };
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
- /** Class representing a Policy. */
- var Policy = /** @class */ (function () {
- /**
- * Create a Policy.
- * @param {ApiManagementClientContext} client Reference to the service client.
- */
- function Policy(client) {
- this.client = client;
- }
- Policy.prototype.listByService = function (resourceGroupName$$1, serviceName$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- options: options
- }, listByServiceOperationSpec, callback);
- };
- Policy.prototype.getEntityTag = function (resourceGroupName$$1, serviceName$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- options: options
- }, getEntityTagOperationSpec, callback);
- };
- Policy.prototype.get = function (resourceGroupName$$1, serviceName$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- options: options
- }, getOperationSpec, callback);
- };
- Policy.prototype.createOrUpdate = function (resourceGroupName$$1, serviceName$$1, parameters, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- parameters: parameters,
- options: options
- }, createOrUpdateOperationSpec, callback);
- };
- Policy.prototype.deleteMethod = function (resourceGroupName$$1, serviceName$$1, ifMatch, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- ifMatch: ifMatch,
- options: options
- }, deleteMethodOperationSpec, callback);
- };
- return Policy;
- }());
- // Operation Specifications
- var serializer = new msRest.Serializer(Mappers);
- var listByServiceOperationSpec = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies",
- urlParameters: [
- resourceGroupName,
- serviceName,
- subscriptionId
- ],
- queryParameters: [
- scope,
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: PolicyCollection
- },
- default: {
- bodyMapper: CloudError
- }
- },
- serializer: serializer
- };
- var getEntityTagOperationSpec = {
- httpMethod: "HEAD",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- policyId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- headersMapper: PolicyGetEntityTagHeaders
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer
- };
- var getOperationSpec = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- policyId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: PolicyContract,
- headersMapper: PolicyGetHeaders
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer
- };
- var createOrUpdateOperationSpec = {
- httpMethod: "PUT",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- policyId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: __assign({}, PolicyContract, { required: true })
- },
- responses: {
- 200: {
- bodyMapper: PolicyContract
- },
- 201: {
- bodyMapper: PolicyContract
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer
- };
- var deleteMethodOperationSpec = {
- httpMethod: "DELETE",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- policyId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- ifMatch0,
- acceptLanguage
- ],
- responses: {
- 200: {},
- 204: {},
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer
- };
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
- var Mappers$1 = /*#__PURE__*/Object.freeze({
- PolicySnippetsCollection: PolicySnippetsCollection,
- PolicySnippetContract: PolicySnippetContract,
- CloudError: CloudError
- });
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
- /** Class representing a PolicySnippets. */
- var PolicySnippets = /** @class */ (function () {
- /**
- * Create a PolicySnippets.
- * @param {ApiManagementClientContext} client Reference to the service client.
- */
- function PolicySnippets(client) {
- this.client = client;
- }
- PolicySnippets.prototype.listByService = function (resourceGroupName$$1, serviceName$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- options: options
- }, listByServiceOperationSpec$1, callback);
- };
- return PolicySnippets;
- }());
- // Operation Specifications
- var serializer$1 = new msRest.Serializer(Mappers$1);
- var listByServiceOperationSpec$1 = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policySnippets",
- urlParameters: [
- resourceGroupName,
- serviceName,
- subscriptionId
- ],
- queryParameters: [
- scope,
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: PolicySnippetsCollection
- },
- default: {
- bodyMapper: CloudError
- }
- },
- serializer: serializer$1
- };
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
- var Mappers$2 = /*#__PURE__*/Object.freeze({
- RegionListResult: RegionListResult,
- RegionContract: RegionContract,
- CloudError: CloudError
- });
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
- /** Class representing a Regions. */
- var Regions = /** @class */ (function () {
- /**
- * Create a Regions.
- * @param {ApiManagementClientContext} client Reference to the service client.
- */
- function Regions(client) {
- this.client = client;
- }
- Regions.prototype.listByService = function (resourceGroupName$$1, serviceName$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- options: options
- }, listByServiceOperationSpec$2, callback);
- };
- Regions.prototype.listByServiceNext = function (nextPageLink$$1, options, callback) {
- return this.client.sendOperationRequest({
- nextPageLink: nextPageLink$$1,
- options: options
- }, listByServiceNextOperationSpec, callback);
- };
- return Regions;
- }());
- // Operation Specifications
- var serializer$2 = new msRest.Serializer(Mappers$2);
- var listByServiceOperationSpec$2 = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/regions",
- urlParameters: [
- resourceGroupName,
- serviceName,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: RegionListResult
- },
- default: {
- bodyMapper: CloudError
- }
- },
- serializer: serializer$2
- };
- var listByServiceNextOperationSpec = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
- path: "{nextLink}",
- urlParameters: [
- nextPageLink
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: RegionListResult
- },
- default: {
- bodyMapper: CloudError
- }
- },
- serializer: serializer$2
- };
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
- var Mappers$3 = /*#__PURE__*/Object.freeze({
- ApiCollection: ApiCollection,
- ApiContract: ApiContract,
- Resource: Resource,
- BaseResource: BaseResource,
- AuthenticationSettingsContract: AuthenticationSettingsContract,
- OAuth2AuthenticationSettingsContract: OAuth2AuthenticationSettingsContract,
- OpenIdAuthenticationSettingsContract: OpenIdAuthenticationSettingsContract,
- SubscriptionKeyParameterNamesContract: SubscriptionKeyParameterNamesContract,
- ApiVersionSetContractDetails: ApiVersionSetContractDetails,
- ErrorResponse: ErrorResponse,
- ErrorFieldContract: ErrorFieldContract,
- ApiGetEntityTagHeaders: ApiGetEntityTagHeaders,
- ApiGetHeaders: ApiGetHeaders,
- ApiCreateOrUpdateParameter: ApiCreateOrUpdateParameter,
- ApiCreateOrUpdatePropertiesWsdlSelector: ApiCreateOrUpdatePropertiesWsdlSelector,
- ApiCreateOrUpdateHeaders: ApiCreateOrUpdateHeaders,
- ApiUpdateContract: ApiUpdateContract,
- TagResourceCollection: TagResourceCollection,
- TagResourceContract: TagResourceContract,
- TagTagResourceContractProperties: TagTagResourceContractProperties,
- ApiTagResourceContractProperties: ApiTagResourceContractProperties,
- ApiEntityBaseContract: ApiEntityBaseContract,
- OperationTagResourceContractProperties: OperationTagResourceContractProperties,
- ProductTagResourceContractProperties: ProductTagResourceContractProperties,
- ProductEntityBaseParameters: ProductEntityBaseParameters,
- CloudError: CloudError,
- PolicyContract: PolicyContract,
- ApiContractProperties: ApiContractProperties,
- ApiReleaseContract: ApiReleaseContract,
- OperationContract: OperationContract,
- ParameterContract: ParameterContract,
- RequestContract: RequestContract,
- RepresentationContract: RepresentationContract,
- ResponseContract: ResponseContract,
- SchemaContract: SchemaContract,
- IssueContract: IssueContract,
- IssueCommentContract: IssueCommentContract,
- IssueAttachmentContract: IssueAttachmentContract,
- LoggerContract: LoggerContract,
- DiagnosticContract: DiagnosticContract,
- ProductContract: ProductContract,
- AuthorizationServerContract: AuthorizationServerContract,
- TokenBodyParameterContract: TokenBodyParameterContract,
- AuthorizationServerUpdateContract: AuthorizationServerUpdateContract,
- BackendContract: BackendContract,
- BackendProperties: BackendProperties,
- BackendServiceFabricClusterProperties: BackendServiceFabricClusterProperties,
- X509CertificateName: X509CertificateName,
- BackendCredentialsContract: BackendCredentialsContract,
- BackendAuthorizationHeaderCredentials: BackendAuthorizationHeaderCredentials,
- BackendProxyContract: BackendProxyContract,
- BackendTlsProperties: BackendTlsProperties,
- BackendReconnectContract: BackendReconnectContract,
- CertificateContract: CertificateContract,
- ApimResource: ApimResource,
- ApiManagementServiceUpdateParameters: ApiManagementServiceUpdateParameters,
- HostnameConfiguration: HostnameConfiguration,
- CertificateInformation: CertificateInformation,
- VirtualNetworkConfiguration: VirtualNetworkConfiguration,
- AdditionalLocation: AdditionalLocation,
- ApiManagementServiceSkuProperties: ApiManagementServiceSkuProperties,
- CertificateConfiguration: CertificateConfiguration,
- ApiManagementServiceIdentity: ApiManagementServiceIdentity,
- EmailTemplateContract: EmailTemplateContract,
- EmailTemplateParametersContractProperties: EmailTemplateParametersContractProperties,
- GroupContract: GroupContract,
- UserContract: UserContract,
- UserIdentityContract: UserIdentityContract,
- GroupContractProperties: GroupContractProperties,
- IdentityProviderContract: IdentityProviderContract,
- NotificationContract: NotificationContract,
- RecipientsContractProperties: RecipientsContractProperties,
- RecipientUserContract: RecipientUserContract,
- RecipientEmailContract: RecipientEmailContract,
- OpenidConnectProviderContract: OpenidConnectProviderContract,
- PortalSigninSettings: PortalSigninSettings,
- PortalSignupSettings: PortalSignupSettings,
- TermsOfServiceProperties: TermsOfServiceProperties,
- PortalDelegationSettings: PortalDelegationSettings,
- SubscriptionsDelegationSettingsProperties: SubscriptionsDelegationSettingsProperties,
- RegistrationDelegationSettingsProperties: RegistrationDelegationSettingsProperties,
- SubscriptionContract: SubscriptionContract,
- PropertyContract: PropertyContract,
- TagContract: TagContract,
- TagDescriptionContract: TagDescriptionContract,
- ApiVersionSetContract: ApiVersionSetContract,
- ApiManagementServiceResource: ApiManagementServiceResource
- });
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
- /** Class representing a Api. */
- var Api = /** @class */ (function () {
- /**
- * Create a Api.
- * @param {ApiManagementClientContext} client Reference to the service client.
- */
- function Api(client) {
- this.client = client;
- }
- Api.prototype.listByService = function (resourceGroupName$$1, serviceName$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- options: options
- }, listByServiceOperationSpec$3, callback);
- };
- Api.prototype.getEntityTag = function (resourceGroupName$$1, serviceName$$1, apiId, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- options: options
- }, getEntityTagOperationSpec$1, callback);
- };
- Api.prototype.get = function (resourceGroupName$$1, serviceName$$1, apiId, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- options: options
- }, getOperationSpec$1, callback);
- };
- Api.prototype.createOrUpdate = function (resourceGroupName$$1, serviceName$$1, apiId, parameters, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- parameters: parameters,
- options: options
- }, createOrUpdateOperationSpec$1, callback);
- };
- Api.prototype.update = function (resourceGroupName$$1, serviceName$$1, apiId, parameters, ifMatch, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- parameters: parameters,
- ifMatch: ifMatch,
- options: options
- }, updateOperationSpec, callback);
- };
- Api.prototype.deleteMethod = function (resourceGroupName$$1, serviceName$$1, apiId, ifMatch, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- ifMatch: ifMatch,
- options: options
- }, deleteMethodOperationSpec$1, callback);
- };
- Api.prototype.listByTags = function (resourceGroupName$$1, serviceName$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- options: options
- }, listByTagsOperationSpec, callback);
- };
- Api.prototype.listByServiceNext = function (nextPageLink$$1, options, callback) {
- return this.client.sendOperationRequest({
- nextPageLink: nextPageLink$$1,
- options: options
- }, listByServiceNextOperationSpec$1, callback);
- };
- Api.prototype.listByTagsNext = function (nextPageLink$$1, options, callback) {
- return this.client.sendOperationRequest({
- nextPageLink: nextPageLink$$1,
- options: options
- }, listByTagsNextOperationSpec, callback);
- };
- return Api;
- }());
- // Operation Specifications
- var serializer$3 = new msRest.Serializer(Mappers$3);
- var listByServiceOperationSpec$3 = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis",
- urlParameters: [
- resourceGroupName,
- serviceName,
- subscriptionId
- ],
- queryParameters: [
- filter0,
- top,
- skip,
- apiVersion,
- expandApiVersionSet
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: ApiCollection
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$3
- };
- var getEntityTagOperationSpec$1 = {
- httpMethod: "HEAD",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId0,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- headersMapper: ApiGetEntityTagHeaders
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$3
- };
- var getOperationSpec$1 = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId0,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: ApiContract,
- headersMapper: ApiGetHeaders
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$3
- };
- var createOrUpdateOperationSpec$1 = {
- httpMethod: "PUT",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId0,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- ifMatch1,
- acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: __assign({}, ApiCreateOrUpdateParameter, { required: true })
- },
- responses: {
- 200: {
- bodyMapper: ApiContract,
- headersMapper: ApiCreateOrUpdateHeaders
- },
- 201: {
- bodyMapper: ApiContract,
- headersMapper: ApiCreateOrUpdateHeaders
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$3
- };
- var updateOperationSpec = {
- httpMethod: "PATCH",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId0,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- ifMatch0,
- acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: __assign({}, ApiUpdateContract, { required: true })
- },
- responses: {
- 204: {},
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$3
- };
- var deleteMethodOperationSpec$1 = {
- httpMethod: "DELETE",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId0,
- subscriptionId
- ],
- queryParameters: [
- deleteRevisions,
- apiVersion
- ],
- headerParameters: [
- ifMatch0,
- acceptLanguage
- ],
- responses: {
- 200: {},
- 204: {},
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$3
- };
- var listByTagsOperationSpec = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apisByTags",
- urlParameters: [
- resourceGroupName,
- serviceName,
- subscriptionId
- ],
- queryParameters: [
- filter0,
- top,
- skip,
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: TagResourceCollection
- },
- default: {
- bodyMapper: CloudError
- }
- },
- serializer: serializer$3
- };
- var listByServiceNextOperationSpec$1 = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
- path: "{nextLink}",
- urlParameters: [
- nextPageLink
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: ApiCollection
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$3
- };
- var listByTagsNextOperationSpec = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
- path: "{nextLink}",
- urlParameters: [
- nextPageLink
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: TagResourceCollection
- },
- default: {
- bodyMapper: CloudError
- }
- },
- serializer: serializer$3
- };
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
- var Mappers$4 = /*#__PURE__*/Object.freeze({
- ApiRevisionCollection: ApiRevisionCollection,
- ApiRevisionContract: ApiRevisionContract,
- ErrorResponse: ErrorResponse,
- ErrorFieldContract: ErrorFieldContract
- });
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
- /** Class representing a ApiRevisions. */
- var ApiRevisions = /** @class */ (function () {
- /**
- * Create a ApiRevisions.
- * @param {ApiManagementClientContext} client Reference to the service client.
- */
- function ApiRevisions(client) {
- this.client = client;
- }
- ApiRevisions.prototype.list = function (resourceGroupName$$1, serviceName$$1, apiId, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- options: options
- }, listOperationSpec, callback);
- };
- ApiRevisions.prototype.listNext = function (nextPageLink$$1, options, callback) {
- return this.client.sendOperationRequest({
- nextPageLink: nextPageLink$$1,
- options: options
- }, listNextOperationSpec, callback);
- };
- return ApiRevisions;
- }());
- // Operation Specifications
- var serializer$4 = new msRest.Serializer(Mappers$4);
- var listOperationSpec = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/revisions",
- urlParameters: [
- resourceGroupName,
- serviceName,
- subscriptionId,
- apiId1
- ],
- queryParameters: [
- apiVersion,
- filter0,
- top,
- skip
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: ApiRevisionCollection
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$4
- };
- var listNextOperationSpec = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
- path: "{nextLink}",
- urlParameters: [
- nextPageLink
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: ApiRevisionCollection
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$4
- };
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
- var Mappers$5 = /*#__PURE__*/Object.freeze({
- ApiReleaseCollection: ApiReleaseCollection,
- ApiReleaseContract: ApiReleaseContract,
- Resource: Resource,
- BaseResource: BaseResource,
- ErrorResponse: ErrorResponse,
- ErrorFieldContract: ErrorFieldContract,
- ApiReleaseGetEntityTagHeaders: ApiReleaseGetEntityTagHeaders,
- PolicyContract: PolicyContract,
- ApiContract: ApiContract,
- AuthenticationSettingsContract: AuthenticationSettingsContract,
- OAuth2AuthenticationSettingsContract: OAuth2AuthenticationSettingsContract,
- OpenIdAuthenticationSettingsContract: OpenIdAuthenticationSettingsContract,
- SubscriptionKeyParameterNamesContract: SubscriptionKeyParameterNamesContract,
- ApiVersionSetContractDetails: ApiVersionSetContractDetails,
- OperationContract: OperationContract,
- ParameterContract: ParameterContract,
- RequestContract: RequestContract,
- RepresentationContract: RepresentationContract,
- ResponseContract: ResponseContract,
- SchemaContract: SchemaContract,
- IssueContract: IssueContract,
- IssueCommentContract: IssueCommentContract,
- IssueAttachmentContract: IssueAttachmentContract,
- LoggerContract: LoggerContract,
- DiagnosticContract: DiagnosticContract,
- ProductContract: ProductContract,
- AuthorizationServerContract: AuthorizationServerContract,
- TokenBodyParameterContract: TokenBodyParameterContract,
- AuthorizationServerUpdateContract: AuthorizationServerUpdateContract,
- BackendContract: BackendContract,
- BackendProperties: BackendProperties,
- BackendServiceFabricClusterProperties: BackendServiceFabricClusterProperties,
- X509CertificateName: X509CertificateName,
- BackendCredentialsContract: BackendCredentialsContract,
- BackendAuthorizationHeaderCredentials: BackendAuthorizationHeaderCredentials,
- BackendProxyContract: BackendProxyContract,
- BackendTlsProperties: BackendTlsProperties,
- BackendReconnectContract: BackendReconnectContract,
- CertificateContract: CertificateContract,
- ApimResource: ApimResource,
- ApiManagementServiceUpdateParameters: ApiManagementServiceUpdateParameters,
- HostnameConfiguration: HostnameConfiguration,
- CertificateInformation: CertificateInformation,
- VirtualNetworkConfiguration: VirtualNetworkConfiguration,
- AdditionalLocation: AdditionalLocation,
- ApiManagementServiceSkuProperties: ApiManagementServiceSkuProperties,
- CertificateConfiguration: CertificateConfiguration,
- ApiManagementServiceIdentity: ApiManagementServiceIdentity,
- EmailTemplateContract: EmailTemplateContract,
- EmailTemplateParametersContractProperties: EmailTemplateParametersContractProperties,
- GroupContract: GroupContract,
- UserContract: UserContract,
- UserIdentityContract: UserIdentityContract,
- GroupContractProperties: GroupContractProperties,
- IdentityProviderContract: IdentityProviderContract,
- NotificationContract: NotificationContract,
- RecipientsContractProperties: RecipientsContractProperties,
- RecipientUserContract: RecipientUserContract,
- RecipientEmailContract: RecipientEmailContract,
- OpenidConnectProviderContract: OpenidConnectProviderContract,
- PortalSigninSettings: PortalSigninSettings,
- PortalSignupSettings: PortalSignupSettings,
- TermsOfServiceProperties: TermsOfServiceProperties,
- PortalDelegationSettings: PortalDelegationSettings,
- SubscriptionsDelegationSettingsProperties: SubscriptionsDelegationSettingsProperties,
- RegistrationDelegationSettingsProperties: RegistrationDelegationSettingsProperties,
- SubscriptionContract: SubscriptionContract,
- PropertyContract: PropertyContract,
- TagContract: TagContract,
- TagDescriptionContract: TagDescriptionContract,
- ApiVersionSetContract: ApiVersionSetContract,
- ApiManagementServiceResource: ApiManagementServiceResource
- });
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
- /** Class representing a ApiRelease. */
- var ApiRelease = /** @class */ (function () {
- /**
- * Create a ApiRelease.
- * @param {ApiManagementClientContext} client Reference to the service client.
- */
- function ApiRelease(client) {
- this.client = client;
- }
- ApiRelease.prototype.list = function (resourceGroupName$$1, serviceName$$1, apiId, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- options: options
- }, listOperationSpec$1, callback);
- };
- ApiRelease.prototype.getEntityTag = function (resourceGroupName$$1, serviceName$$1, apiId, releaseId$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- releaseId: releaseId$$1,
- options: options
- }, getEntityTagOperationSpec$2, callback);
- };
- ApiRelease.prototype.get = function (resourceGroupName$$1, serviceName$$1, apiId, releaseId$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- releaseId: releaseId$$1,
- options: options
- }, getOperationSpec$2, callback);
- };
- ApiRelease.prototype.create = function (resourceGroupName$$1, serviceName$$1, apiId, releaseId$$1, parameters, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- releaseId: releaseId$$1,
- parameters: parameters,
- options: options
- }, createOperationSpec, callback);
- };
- ApiRelease.prototype.update = function (resourceGroupName$$1, serviceName$$1, apiId, releaseId$$1, parameters, ifMatch, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- releaseId: releaseId$$1,
- parameters: parameters,
- ifMatch: ifMatch,
- options: options
- }, updateOperationSpec$1, callback);
- };
- ApiRelease.prototype.deleteMethod = function (resourceGroupName$$1, serviceName$$1, apiId, releaseId$$1, ifMatch, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- releaseId: releaseId$$1,
- ifMatch: ifMatch,
- options: options
- }, deleteMethodOperationSpec$2, callback);
- };
- ApiRelease.prototype.listNext = function (nextPageLink$$1, options, callback) {
- return this.client.sendOperationRequest({
- nextPageLink: nextPageLink$$1,
- options: options
- }, listNextOperationSpec$1, callback);
- };
- return ApiRelease;
- }());
- // Operation Specifications
- var serializer$5 = new msRest.Serializer(Mappers$5);
- var listOperationSpec$1 = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId1,
- subscriptionId
- ],
- queryParameters: [
- apiVersion,
- filter0,
- top,
- skip
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: ApiReleaseCollection
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$5
- };
- var getEntityTagOperationSpec$2 = {
- httpMethod: "HEAD",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- subscriptionId,
- apiId1,
- releaseId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- headersMapper: ApiReleaseGetEntityTagHeaders
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$5
- };
- var getOperationSpec$2 = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- subscriptionId,
- apiId1,
- releaseId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: ApiReleaseContract
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$5
- };
- var createOperationSpec = {
- httpMethod: "PUT",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- subscriptionId,
- apiId1,
- releaseId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: __assign({}, ApiReleaseContract, { required: true })
- },
- responses: {
- 200: {
- bodyMapper: ApiReleaseContract
- },
- 201: {
- bodyMapper: ApiReleaseContract
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$5
- };
- var updateOperationSpec$1 = {
- httpMethod: "PATCH",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- subscriptionId,
- apiId1,
- releaseId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- ifMatch0,
- acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: __assign({}, ApiReleaseContract, { required: true })
- },
- responses: {
- 204: {},
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$5
- };
- var deleteMethodOperationSpec$2 = {
- httpMethod: "DELETE",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- subscriptionId,
- apiId1,
- releaseId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- ifMatch0,
- acceptLanguage
- ],
- responses: {
- 200: {},
- 204: {},
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$5
- };
- var listNextOperationSpec$1 = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
- path: "{nextLink}",
- urlParameters: [
- nextPageLink
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: ApiReleaseCollection
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$5
- };
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
- var Mappers$6 = /*#__PURE__*/Object.freeze({
- OperationCollection: OperationCollection,
- OperationContract: OperationContract,
- Resource: Resource,
- BaseResource: BaseResource,
- ParameterContract: ParameterContract,
- RequestContract: RequestContract,
- RepresentationContract: RepresentationContract,
- ResponseContract: ResponseContract,
- ErrorResponse: ErrorResponse,
- ErrorFieldContract: ErrorFieldContract,
- ApiOperationGetEntityTagHeaders: ApiOperationGetEntityTagHeaders,
- ApiOperationGetHeaders: ApiOperationGetHeaders,
- OperationUpdateContract: OperationUpdateContract,
- PolicyContract: PolicyContract,
- ApiContract: ApiContract,
- AuthenticationSettingsContract: AuthenticationSettingsContract,
- OAuth2AuthenticationSettingsContract: OAuth2AuthenticationSettingsContract,
- OpenIdAuthenticationSettingsContract: OpenIdAuthenticationSettingsContract,
- SubscriptionKeyParameterNamesContract: SubscriptionKeyParameterNamesContract,
- ApiVersionSetContractDetails: ApiVersionSetContractDetails,
- ApiReleaseContract: ApiReleaseContract,
- SchemaContract: SchemaContract,
- IssueContract: IssueContract,
- IssueCommentContract: IssueCommentContract,
- IssueAttachmentContract: IssueAttachmentContract,
- LoggerContract: LoggerContract,
- DiagnosticContract: DiagnosticContract,
- ProductContract: ProductContract,
- AuthorizationServerContract: AuthorizationServerContract,
- TokenBodyParameterContract: TokenBodyParameterContract,
- AuthorizationServerUpdateContract: AuthorizationServerUpdateContract,
- BackendContract: BackendContract,
- BackendProperties: BackendProperties,
- BackendServiceFabricClusterProperties: BackendServiceFabricClusterProperties,
- X509CertificateName: X509CertificateName,
- BackendCredentialsContract: BackendCredentialsContract,
- BackendAuthorizationHeaderCredentials: BackendAuthorizationHeaderCredentials,
- BackendProxyContract: BackendProxyContract,
- BackendTlsProperties: BackendTlsProperties,
- BackendReconnectContract: BackendReconnectContract,
- CertificateContract: CertificateContract,
- ApimResource: ApimResource,
- ApiManagementServiceUpdateParameters: ApiManagementServiceUpdateParameters,
- HostnameConfiguration: HostnameConfiguration,
- CertificateInformation: CertificateInformation,
- VirtualNetworkConfiguration: VirtualNetworkConfiguration,
- AdditionalLocation: AdditionalLocation,
- ApiManagementServiceSkuProperties: ApiManagementServiceSkuProperties,
- CertificateConfiguration: CertificateConfiguration,
- ApiManagementServiceIdentity: ApiManagementServiceIdentity,
- EmailTemplateContract: EmailTemplateContract,
- EmailTemplateParametersContractProperties: EmailTemplateParametersContractProperties,
- GroupContract: GroupContract,
- UserContract: UserContract,
- UserIdentityContract: UserIdentityContract,
- GroupContractProperties: GroupContractProperties,
- IdentityProviderContract: IdentityProviderContract,
- NotificationContract: NotificationContract,
- RecipientsContractProperties: RecipientsContractProperties,
- RecipientUserContract: RecipientUserContract,
- RecipientEmailContract: RecipientEmailContract,
- OpenidConnectProviderContract: OpenidConnectProviderContract,
- PortalSigninSettings: PortalSigninSettings,
- PortalSignupSettings: PortalSignupSettings,
- TermsOfServiceProperties: TermsOfServiceProperties,
- PortalDelegationSettings: PortalDelegationSettings,
- SubscriptionsDelegationSettingsProperties: SubscriptionsDelegationSettingsProperties,
- RegistrationDelegationSettingsProperties: RegistrationDelegationSettingsProperties,
- SubscriptionContract: SubscriptionContract,
- PropertyContract: PropertyContract,
- TagContract: TagContract,
- TagDescriptionContract: TagDescriptionContract,
- ApiVersionSetContract: ApiVersionSetContract,
- ApiManagementServiceResource: ApiManagementServiceResource
- });
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
- /** Class representing a ApiOperation. */
- var ApiOperation = /** @class */ (function () {
- /**
- * Create a ApiOperation.
- * @param {ApiManagementClientContext} client Reference to the service client.
- */
- function ApiOperation(client) {
- this.client = client;
- }
- ApiOperation.prototype.listByApi = function (resourceGroupName$$1, serviceName$$1, apiId, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- options: options
- }, listByApiOperationSpec, callback);
- };
- ApiOperation.prototype.getEntityTag = function (resourceGroupName$$1, serviceName$$1, apiId, operationId$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- operationId: operationId$$1,
- options: options
- }, getEntityTagOperationSpec$3, callback);
- };
- ApiOperation.prototype.get = function (resourceGroupName$$1, serviceName$$1, apiId, operationId$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- operationId: operationId$$1,
- options: options
- }, getOperationSpec$3, callback);
- };
- ApiOperation.prototype.createOrUpdate = function (resourceGroupName$$1, serviceName$$1, apiId, operationId$$1, parameters, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- operationId: operationId$$1,
- parameters: parameters,
- options: options
- }, createOrUpdateOperationSpec$2, callback);
- };
- ApiOperation.prototype.update = function (resourceGroupName$$1, serviceName$$1, apiId, operationId$$1, parameters, ifMatch, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- operationId: operationId$$1,
- parameters: parameters,
- ifMatch: ifMatch,
- options: options
- }, updateOperationSpec$2, callback);
- };
- ApiOperation.prototype.deleteMethod = function (resourceGroupName$$1, serviceName$$1, apiId, operationId$$1, ifMatch, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- operationId: operationId$$1,
- ifMatch: ifMatch,
- options: options
- }, deleteMethodOperationSpec$3, callback);
- };
- ApiOperation.prototype.listByApiNext = function (nextPageLink$$1, options, callback) {
- return this.client.sendOperationRequest({
- nextPageLink: nextPageLink$$1,
- options: options
- }, listByApiNextOperationSpec, callback);
- };
- return ApiOperation;
- }());
- // Operation Specifications
- var serializer$6 = new msRest.Serializer(Mappers$6);
- var listByApiOperationSpec = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId0,
- subscriptionId
- ],
- queryParameters: [
- filter0,
- top,
- skip,
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: OperationCollection
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$6
- };
- var getEntityTagOperationSpec$3 = {
- httpMethod: "HEAD",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId0,
- operationId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- headersMapper: ApiOperationGetEntityTagHeaders
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$6
- };
- var getOperationSpec$3 = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId0,
- operationId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: OperationContract,
- headersMapper: ApiOperationGetHeaders
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$6
- };
- var createOrUpdateOperationSpec$2 = {
- httpMethod: "PUT",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId0,
- operationId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- ifMatch1,
- acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: __assign({}, OperationContract, { required: true })
- },
- responses: {
- 200: {
- bodyMapper: OperationContract
- },
- 201: {
- bodyMapper: OperationContract
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$6
- };
- var updateOperationSpec$2 = {
- httpMethod: "PATCH",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId0,
- operationId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- ifMatch0,
- acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: __assign({}, OperationUpdateContract, { required: true })
- },
- responses: {
- 204: {},
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$6
- };
- var deleteMethodOperationSpec$3 = {
- httpMethod: "DELETE",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId0,
- operationId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- ifMatch0,
- acceptLanguage
- ],
- responses: {
- 200: {},
- 204: {},
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$6
- };
- var listByApiNextOperationSpec = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
- path: "{nextLink}",
- urlParameters: [
- nextPageLink
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: OperationCollection
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$6
- };
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
- var Mappers$7 = /*#__PURE__*/Object.freeze({
- PolicyCollection: PolicyCollection,
- PolicyContract: PolicyContract,
- Resource: Resource,
- BaseResource: BaseResource,
- ErrorResponse: ErrorResponse,
- ErrorFieldContract: ErrorFieldContract,
- ApiOperationPolicyGetEntityTagHeaders: ApiOperationPolicyGetEntityTagHeaders,
- ApiOperationPolicyGetHeaders: ApiOperationPolicyGetHeaders,
- ApiContract: ApiContract,
- AuthenticationSettingsContract: AuthenticationSettingsContract,
- OAuth2AuthenticationSettingsContract: OAuth2AuthenticationSettingsContract,
- OpenIdAuthenticationSettingsContract: OpenIdAuthenticationSettingsContract,
- SubscriptionKeyParameterNamesContract: SubscriptionKeyParameterNamesContract,
- ApiVersionSetContractDetails: ApiVersionSetContractDetails,
- ApiReleaseContract: ApiReleaseContract,
- OperationContract: OperationContract,
- ParameterContract: ParameterContract,
- RequestContract: RequestContract,
- RepresentationContract: RepresentationContract,
- ResponseContract: ResponseContract,
- SchemaContract: SchemaContract,
- IssueContract: IssueContract,
- IssueCommentContract: IssueCommentContract,
- IssueAttachmentContract: IssueAttachmentContract,
- LoggerContract: LoggerContract,
- DiagnosticContract: DiagnosticContract,
- ProductContract: ProductContract,
- AuthorizationServerContract: AuthorizationServerContract,
- TokenBodyParameterContract: TokenBodyParameterContract,
- AuthorizationServerUpdateContract: AuthorizationServerUpdateContract,
- BackendContract: BackendContract,
- BackendProperties: BackendProperties,
- BackendServiceFabricClusterProperties: BackendServiceFabricClusterProperties,
- X509CertificateName: X509CertificateName,
- BackendCredentialsContract: BackendCredentialsContract,
- BackendAuthorizationHeaderCredentials: BackendAuthorizationHeaderCredentials,
- BackendProxyContract: BackendProxyContract,
- BackendTlsProperties: BackendTlsProperties,
- BackendReconnectContract: BackendReconnectContract,
- CertificateContract: CertificateContract,
- ApimResource: ApimResource,
- ApiManagementServiceUpdateParameters: ApiManagementServiceUpdateParameters,
- HostnameConfiguration: HostnameConfiguration,
- CertificateInformation: CertificateInformation,
- VirtualNetworkConfiguration: VirtualNetworkConfiguration,
- AdditionalLocation: AdditionalLocation,
- ApiManagementServiceSkuProperties: ApiManagementServiceSkuProperties,
- CertificateConfiguration: CertificateConfiguration,
- ApiManagementServiceIdentity: ApiManagementServiceIdentity,
- EmailTemplateContract: EmailTemplateContract,
- EmailTemplateParametersContractProperties: EmailTemplateParametersContractProperties,
- GroupContract: GroupContract,
- UserContract: UserContract,
- UserIdentityContract: UserIdentityContract,
- GroupContractProperties: GroupContractProperties,
- IdentityProviderContract: IdentityProviderContract,
- NotificationContract: NotificationContract,
- RecipientsContractProperties: RecipientsContractProperties,
- RecipientUserContract: RecipientUserContract,
- RecipientEmailContract: RecipientEmailContract,
- OpenidConnectProviderContract: OpenidConnectProviderContract,
- PortalSigninSettings: PortalSigninSettings,
- PortalSignupSettings: PortalSignupSettings,
- TermsOfServiceProperties: TermsOfServiceProperties,
- PortalDelegationSettings: PortalDelegationSettings,
- SubscriptionsDelegationSettingsProperties: SubscriptionsDelegationSettingsProperties,
- RegistrationDelegationSettingsProperties: RegistrationDelegationSettingsProperties,
- SubscriptionContract: SubscriptionContract,
- PropertyContract: PropertyContract,
- TagContract: TagContract,
- TagDescriptionContract: TagDescriptionContract,
- ApiVersionSetContract: ApiVersionSetContract,
- ApiManagementServiceResource: ApiManagementServiceResource
- });
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
- /** Class representing a ApiOperationPolicy. */
- var ApiOperationPolicy = /** @class */ (function () {
- /**
- * Create a ApiOperationPolicy.
- * @param {ApiManagementClientContext} client Reference to the service client.
- */
- function ApiOperationPolicy(client) {
- this.client = client;
- }
- ApiOperationPolicy.prototype.listByOperation = function (resourceGroupName$$1, serviceName$$1, apiId, operationId$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- operationId: operationId$$1,
- options: options
- }, listByOperationOperationSpec, callback);
- };
- ApiOperationPolicy.prototype.getEntityTag = function (resourceGroupName$$1, serviceName$$1, apiId, operationId$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- operationId: operationId$$1,
- options: options
- }, getEntityTagOperationSpec$4, callback);
- };
- ApiOperationPolicy.prototype.get = function (resourceGroupName$$1, serviceName$$1, apiId, operationId$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- operationId: operationId$$1,
- options: options
- }, getOperationSpec$4, callback);
- };
- ApiOperationPolicy.prototype.createOrUpdate = function (resourceGroupName$$1, serviceName$$1, apiId, operationId$$1, parameters, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- operationId: operationId$$1,
- parameters: parameters,
- options: options
- }, createOrUpdateOperationSpec$3, callback);
- };
- ApiOperationPolicy.prototype.deleteMethod = function (resourceGroupName$$1, serviceName$$1, apiId, operationId$$1, ifMatch, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- operationId: operationId$$1,
- ifMatch: ifMatch,
- options: options
- }, deleteMethodOperationSpec$4, callback);
- };
- return ApiOperationPolicy;
- }());
- // Operation Specifications
- var serializer$7 = new msRest.Serializer(Mappers$7);
- var listByOperationOperationSpec = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId0,
- operationId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: PolicyCollection
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$7
- };
- var getEntityTagOperationSpec$4 = {
- httpMethod: "HEAD",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId0,
- operationId,
- policyId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- headersMapper: ApiOperationPolicyGetEntityTagHeaders
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$7
- };
- var getOperationSpec$4 = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId0,
- operationId,
- policyId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: PolicyContract,
- headersMapper: ApiOperationPolicyGetHeaders
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$7
- };
- var createOrUpdateOperationSpec$3 = {
- httpMethod: "PUT",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId0,
- operationId,
- policyId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- ifMatch1,
- acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: __assign({}, PolicyContract, { required: true })
- },
- responses: {
- 200: {
- bodyMapper: PolicyContract
- },
- 201: {
- bodyMapper: PolicyContract
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$7
- };
- var deleteMethodOperationSpec$4 = {
- httpMethod: "DELETE",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId0,
- operationId,
- policyId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- ifMatch0,
- acceptLanguage
- ],
- responses: {
- 200: {},
- 204: {},
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$7
- };
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
- var Mappers$8 = /*#__PURE__*/Object.freeze({
- ProductCollection: ProductCollection,
- ProductContract: ProductContract,
- Resource: Resource,
- BaseResource: BaseResource,
- ErrorResponse: ErrorResponse,
- ErrorFieldContract: ErrorFieldContract,
- PolicyContract: PolicyContract,
- ApiContract: ApiContract,
- AuthenticationSettingsContract: AuthenticationSettingsContract,
- OAuth2AuthenticationSettingsContract: OAuth2AuthenticationSettingsContract,
- OpenIdAuthenticationSettingsContract: OpenIdAuthenticationSettingsContract,
- SubscriptionKeyParameterNamesContract: SubscriptionKeyParameterNamesContract,
- ApiVersionSetContractDetails: ApiVersionSetContractDetails,
- ApiReleaseContract: ApiReleaseContract,
- OperationContract: OperationContract,
- ParameterContract: ParameterContract,
- RequestContract: RequestContract,
- RepresentationContract: RepresentationContract,
- ResponseContract: ResponseContract,
- SchemaContract: SchemaContract,
- IssueContract: IssueContract,
- IssueCommentContract: IssueCommentContract,
- IssueAttachmentContract: IssueAttachmentContract,
- LoggerContract: LoggerContract,
- DiagnosticContract: DiagnosticContract,
- AuthorizationServerContract: AuthorizationServerContract,
- TokenBodyParameterContract: TokenBodyParameterContract,
- AuthorizationServerUpdateContract: AuthorizationServerUpdateContract,
- BackendContract: BackendContract,
- BackendProperties: BackendProperties,
- BackendServiceFabricClusterProperties: BackendServiceFabricClusterProperties,
- X509CertificateName: X509CertificateName,
- BackendCredentialsContract: BackendCredentialsContract,
- BackendAuthorizationHeaderCredentials: BackendAuthorizationHeaderCredentials,
- BackendProxyContract: BackendProxyContract,
- BackendTlsProperties: BackendTlsProperties,
- BackendReconnectContract: BackendReconnectContract,
- CertificateContract: CertificateContract,
- ApimResource: ApimResource,
- ApiManagementServiceUpdateParameters: ApiManagementServiceUpdateParameters,
- HostnameConfiguration: HostnameConfiguration,
- CertificateInformation: CertificateInformation,
- VirtualNetworkConfiguration: VirtualNetworkConfiguration,
- AdditionalLocation: AdditionalLocation,
- ApiManagementServiceSkuProperties: ApiManagementServiceSkuProperties,
- CertificateConfiguration: CertificateConfiguration,
- ApiManagementServiceIdentity: ApiManagementServiceIdentity,
- EmailTemplateContract: EmailTemplateContract,
- EmailTemplateParametersContractProperties: EmailTemplateParametersContractProperties,
- GroupContract: GroupContract,
- UserContract: UserContract,
- UserIdentityContract: UserIdentityContract,
- GroupContractProperties: GroupContractProperties,
- IdentityProviderContract: IdentityProviderContract,
- NotificationContract: NotificationContract,
- RecipientsContractProperties: RecipientsContractProperties,
- RecipientUserContract: RecipientUserContract,
- RecipientEmailContract: RecipientEmailContract,
- OpenidConnectProviderContract: OpenidConnectProviderContract,
- PortalSigninSettings: PortalSigninSettings,
- PortalSignupSettings: PortalSignupSettings,
- TermsOfServiceProperties: TermsOfServiceProperties,
- PortalDelegationSettings: PortalDelegationSettings,
- SubscriptionsDelegationSettingsProperties: SubscriptionsDelegationSettingsProperties,
- RegistrationDelegationSettingsProperties: RegistrationDelegationSettingsProperties,
- SubscriptionContract: SubscriptionContract,
- PropertyContract: PropertyContract,
- TagContract: TagContract,
- TagDescriptionContract: TagDescriptionContract,
- ApiVersionSetContract: ApiVersionSetContract,
- ApiManagementServiceResource: ApiManagementServiceResource
- });
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
- /** Class representing a ApiProduct. */
- var ApiProduct = /** @class */ (function () {
- /**
- * Create a ApiProduct.
- * @param {ApiManagementClientContext} client Reference to the service client.
- */
- function ApiProduct(client) {
- this.client = client;
- }
- ApiProduct.prototype.listByApis = function (resourceGroupName$$1, serviceName$$1, apiId, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- options: options
- }, listByApisOperationSpec, callback);
- };
- ApiProduct.prototype.listByApisNext = function (nextPageLink$$1, options, callback) {
- return this.client.sendOperationRequest({
- nextPageLink: nextPageLink$$1,
- options: options
- }, listByApisNextOperationSpec, callback);
- };
- return ApiProduct;
- }());
- // Operation Specifications
- var serializer$8 = new msRest.Serializer(Mappers$8);
- var listByApisOperationSpec = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/products",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId1,
- subscriptionId
- ],
- queryParameters: [
- filter0,
- top,
- skip,
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: ProductCollection
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$8
- };
- var listByApisNextOperationSpec = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
- path: "{nextLink}",
- urlParameters: [
- nextPageLink
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: ProductCollection
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$8
- };
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
- var Mappers$9 = /*#__PURE__*/Object.freeze({
- PolicyCollection: PolicyCollection,
- PolicyContract: PolicyContract,
- Resource: Resource,
- BaseResource: BaseResource,
- ApiPolicyListByApiHeaders: ApiPolicyListByApiHeaders,
- ErrorResponse: ErrorResponse,
- ErrorFieldContract: ErrorFieldContract,
- ApiPolicyGetEntityTagHeaders: ApiPolicyGetEntityTagHeaders,
- ApiPolicyGetHeaders: ApiPolicyGetHeaders,
- ApiContract: ApiContract,
- AuthenticationSettingsContract: AuthenticationSettingsContract,
- OAuth2AuthenticationSettingsContract: OAuth2AuthenticationSettingsContract,
- OpenIdAuthenticationSettingsContract: OpenIdAuthenticationSettingsContract,
- SubscriptionKeyParameterNamesContract: SubscriptionKeyParameterNamesContract,
- ApiVersionSetContractDetails: ApiVersionSetContractDetails,
- ApiReleaseContract: ApiReleaseContract,
- OperationContract: OperationContract,
- ParameterContract: ParameterContract,
- RequestContract: RequestContract,
- RepresentationContract: RepresentationContract,
- ResponseContract: ResponseContract,
- SchemaContract: SchemaContract,
- IssueContract: IssueContract,
- IssueCommentContract: IssueCommentContract,
- IssueAttachmentContract: IssueAttachmentContract,
- LoggerContract: LoggerContract,
- DiagnosticContract: DiagnosticContract,
- ProductContract: ProductContract,
- AuthorizationServerContract: AuthorizationServerContract,
- TokenBodyParameterContract: TokenBodyParameterContract,
- AuthorizationServerUpdateContract: AuthorizationServerUpdateContract,
- BackendContract: BackendContract,
- BackendProperties: BackendProperties,
- BackendServiceFabricClusterProperties: BackendServiceFabricClusterProperties,
- X509CertificateName: X509CertificateName,
- BackendCredentialsContract: BackendCredentialsContract,
- BackendAuthorizationHeaderCredentials: BackendAuthorizationHeaderCredentials,
- BackendProxyContract: BackendProxyContract,
- BackendTlsProperties: BackendTlsProperties,
- BackendReconnectContract: BackendReconnectContract,
- CertificateContract: CertificateContract,
- ApimResource: ApimResource,
- ApiManagementServiceUpdateParameters: ApiManagementServiceUpdateParameters,
- HostnameConfiguration: HostnameConfiguration,
- CertificateInformation: CertificateInformation,
- VirtualNetworkConfiguration: VirtualNetworkConfiguration,
- AdditionalLocation: AdditionalLocation,
- ApiManagementServiceSkuProperties: ApiManagementServiceSkuProperties,
- CertificateConfiguration: CertificateConfiguration,
- ApiManagementServiceIdentity: ApiManagementServiceIdentity,
- EmailTemplateContract: EmailTemplateContract,
- EmailTemplateParametersContractProperties: EmailTemplateParametersContractProperties,
- GroupContract: GroupContract,
- UserContract: UserContract,
- UserIdentityContract: UserIdentityContract,
- GroupContractProperties: GroupContractProperties,
- IdentityProviderContract: IdentityProviderContract,
- NotificationContract: NotificationContract,
- RecipientsContractProperties: RecipientsContractProperties,
- RecipientUserContract: RecipientUserContract,
- RecipientEmailContract: RecipientEmailContract,
- OpenidConnectProviderContract: OpenidConnectProviderContract,
- PortalSigninSettings: PortalSigninSettings,
- PortalSignupSettings: PortalSignupSettings,
- TermsOfServiceProperties: TermsOfServiceProperties,
- PortalDelegationSettings: PortalDelegationSettings,
- SubscriptionsDelegationSettingsProperties: SubscriptionsDelegationSettingsProperties,
- RegistrationDelegationSettingsProperties: RegistrationDelegationSettingsProperties,
- SubscriptionContract: SubscriptionContract,
- PropertyContract: PropertyContract,
- TagContract: TagContract,
- TagDescriptionContract: TagDescriptionContract,
- ApiVersionSetContract: ApiVersionSetContract,
- ApiManagementServiceResource: ApiManagementServiceResource
- });
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
- /** Class representing a ApiPolicy. */
- var ApiPolicy = /** @class */ (function () {
- /**
- * Create a ApiPolicy.
- * @param {ApiManagementClientContext} client Reference to the service client.
- */
- function ApiPolicy(client) {
- this.client = client;
- }
- ApiPolicy.prototype.listByApi = function (resourceGroupName$$1, serviceName$$1, apiId, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- options: options
- }, listByApiOperationSpec$1, callback);
- };
- ApiPolicy.prototype.getEntityTag = function (resourceGroupName$$1, serviceName$$1, apiId, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- options: options
- }, getEntityTagOperationSpec$5, callback);
- };
- ApiPolicy.prototype.get = function (resourceGroupName$$1, serviceName$$1, apiId, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- options: options
- }, getOperationSpec$5, callback);
- };
- ApiPolicy.prototype.createOrUpdate = function (resourceGroupName$$1, serviceName$$1, apiId, parameters, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- parameters: parameters,
- options: options
- }, createOrUpdateOperationSpec$4, callback);
- };
- ApiPolicy.prototype.deleteMethod = function (resourceGroupName$$1, serviceName$$1, apiId, ifMatch, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- ifMatch: ifMatch,
- options: options
- }, deleteMethodOperationSpec$5, callback);
- };
- return ApiPolicy;
- }());
- // Operation Specifications
- var serializer$9 = new msRest.Serializer(Mappers$9);
- var listByApiOperationSpec$1 = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId0,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: PolicyCollection,
- headersMapper: ApiPolicyListByApiHeaders
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$9
- };
- var getEntityTagOperationSpec$5 = {
- httpMethod: "HEAD",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId0,
- policyId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- headersMapper: ApiPolicyGetEntityTagHeaders
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$9
- };
- var getOperationSpec$5 = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId0,
- policyId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: PolicyContract,
- headersMapper: ApiPolicyGetHeaders
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$9
- };
- var createOrUpdateOperationSpec$4 = {
- httpMethod: "PUT",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId0,
- policyId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- ifMatch1,
- acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: __assign({}, PolicyContract, { required: true })
- },
- responses: {
- 200: {
- bodyMapper: PolicyContract
- },
- 201: {
- bodyMapper: PolicyContract
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$9
- };
- var deleteMethodOperationSpec$5 = {
- httpMethod: "DELETE",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId0,
- policyId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- ifMatch0,
- acceptLanguage
- ],
- responses: {
- 200: {},
- 204: {},
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$9
- };
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
- var Mappers$a = /*#__PURE__*/Object.freeze({
- SchemaCollection: SchemaCollection,
- SchemaContract: SchemaContract,
- Resource: Resource,
- BaseResource: BaseResource,
- ApiSchemaListByApiHeaders: ApiSchemaListByApiHeaders,
- ErrorResponse: ErrorResponse,
- ErrorFieldContract: ErrorFieldContract,
- ApiSchemaGetEntityTagHeaders: ApiSchemaGetEntityTagHeaders,
- ApiSchemaGetHeaders: ApiSchemaGetHeaders,
- PolicyContract: PolicyContract,
- ApiContract: ApiContract,
- AuthenticationSettingsContract: AuthenticationSettingsContract,
- OAuth2AuthenticationSettingsContract: OAuth2AuthenticationSettingsContract,
- OpenIdAuthenticationSettingsContract: OpenIdAuthenticationSettingsContract,
- SubscriptionKeyParameterNamesContract: SubscriptionKeyParameterNamesContract,
- ApiVersionSetContractDetails: ApiVersionSetContractDetails,
- ApiReleaseContract: ApiReleaseContract,
- OperationContract: OperationContract,
- ParameterContract: ParameterContract,
- RequestContract: RequestContract,
- RepresentationContract: RepresentationContract,
- ResponseContract: ResponseContract,
- IssueContract: IssueContract,
- IssueCommentContract: IssueCommentContract,
- IssueAttachmentContract: IssueAttachmentContract,
- LoggerContract: LoggerContract,
- DiagnosticContract: DiagnosticContract,
- ProductContract: ProductContract,
- AuthorizationServerContract: AuthorizationServerContract,
- TokenBodyParameterContract: TokenBodyParameterContract,
- AuthorizationServerUpdateContract: AuthorizationServerUpdateContract,
- BackendContract: BackendContract,
- BackendProperties: BackendProperties,
- BackendServiceFabricClusterProperties: BackendServiceFabricClusterProperties,
- X509CertificateName: X509CertificateName,
- BackendCredentialsContract: BackendCredentialsContract,
- BackendAuthorizationHeaderCredentials: BackendAuthorizationHeaderCredentials,
- BackendProxyContract: BackendProxyContract,
- BackendTlsProperties: BackendTlsProperties,
- BackendReconnectContract: BackendReconnectContract,
- CertificateContract: CertificateContract,
- ApimResource: ApimResource,
- ApiManagementServiceUpdateParameters: ApiManagementServiceUpdateParameters,
- HostnameConfiguration: HostnameConfiguration,
- CertificateInformation: CertificateInformation,
- VirtualNetworkConfiguration: VirtualNetworkConfiguration,
- AdditionalLocation: AdditionalLocation,
- ApiManagementServiceSkuProperties: ApiManagementServiceSkuProperties,
- CertificateConfiguration: CertificateConfiguration,
- ApiManagementServiceIdentity: ApiManagementServiceIdentity,
- EmailTemplateContract: EmailTemplateContract,
- EmailTemplateParametersContractProperties: EmailTemplateParametersContractProperties,
- GroupContract: GroupContract,
- UserContract: UserContract,
- UserIdentityContract: UserIdentityContract,
- GroupContractProperties: GroupContractProperties,
- IdentityProviderContract: IdentityProviderContract,
- NotificationContract: NotificationContract,
- RecipientsContractProperties: RecipientsContractProperties,
- RecipientUserContract: RecipientUserContract,
- RecipientEmailContract: RecipientEmailContract,
- OpenidConnectProviderContract: OpenidConnectProviderContract,
- PortalSigninSettings: PortalSigninSettings,
- PortalSignupSettings: PortalSignupSettings,
- TermsOfServiceProperties: TermsOfServiceProperties,
- PortalDelegationSettings: PortalDelegationSettings,
- SubscriptionsDelegationSettingsProperties: SubscriptionsDelegationSettingsProperties,
- RegistrationDelegationSettingsProperties: RegistrationDelegationSettingsProperties,
- SubscriptionContract: SubscriptionContract,
- PropertyContract: PropertyContract,
- TagContract: TagContract,
- TagDescriptionContract: TagDescriptionContract,
- ApiVersionSetContract: ApiVersionSetContract,
- ApiManagementServiceResource: ApiManagementServiceResource
- });
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
- /** Class representing a ApiSchema. */
- var ApiSchema = /** @class */ (function () {
- /**
- * Create a ApiSchema.
- * @param {ApiManagementClientContext} client Reference to the service client.
- */
- function ApiSchema(client) {
- this.client = client;
- }
- ApiSchema.prototype.listByApi = function (resourceGroupName$$1, serviceName$$1, apiId, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- options: options
- }, listByApiOperationSpec$2, callback);
- };
- ApiSchema.prototype.getEntityTag = function (resourceGroupName$$1, serviceName$$1, apiId, schemaId$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- schemaId: schemaId$$1,
- options: options
- }, getEntityTagOperationSpec$6, callback);
- };
- ApiSchema.prototype.get = function (resourceGroupName$$1, serviceName$$1, apiId, schemaId$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- schemaId: schemaId$$1,
- options: options
- }, getOperationSpec$6, callback);
- };
- ApiSchema.prototype.createOrUpdate = function (resourceGroupName$$1, serviceName$$1, apiId, schemaId$$1, parameters, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- schemaId: schemaId$$1,
- parameters: parameters,
- options: options
- }, createOrUpdateOperationSpec$5, callback);
- };
- ApiSchema.prototype.deleteMethod = function (resourceGroupName$$1, serviceName$$1, apiId, schemaId$$1, ifMatch, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- schemaId: schemaId$$1,
- ifMatch: ifMatch,
- options: options
- }, deleteMethodOperationSpec$6, callback);
- };
- ApiSchema.prototype.listByApiNext = function (nextPageLink$$1, options, callback) {
- return this.client.sendOperationRequest({
- nextPageLink: nextPageLink$$1,
- options: options
- }, listByApiNextOperationSpec$1, callback);
- };
- return ApiSchema;
- }());
- // Operation Specifications
- var serializer$a = new msRest.Serializer(Mappers$a);
- var listByApiOperationSpec$2 = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId0,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: SchemaCollection,
- headersMapper: ApiSchemaListByApiHeaders
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$a
- };
- var getEntityTagOperationSpec$6 = {
- httpMethod: "HEAD",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId0,
- schemaId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- headersMapper: ApiSchemaGetEntityTagHeaders
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$a
- };
- var getOperationSpec$6 = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId0,
- schemaId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: SchemaContract,
- headersMapper: ApiSchemaGetHeaders
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$a
- };
- var createOrUpdateOperationSpec$5 = {
- httpMethod: "PUT",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId0,
- schemaId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- ifMatch1,
- acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: __assign({}, SchemaContract, { required: true })
- },
- responses: {
- 200: {
- bodyMapper: SchemaContract
- },
- 201: {
- bodyMapper: SchemaContract
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$a
- };
- var deleteMethodOperationSpec$6 = {
- httpMethod: "DELETE",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId0,
- schemaId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- ifMatch0,
- acceptLanguage
- ],
- responses: {
- 200: {},
- 204: {},
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$a
- };
- var listByApiNextOperationSpec$1 = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
- path: "{nextLink}",
- urlParameters: [
- nextPageLink
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: SchemaCollection,
- headersMapper: ApiSchemaListByApiHeaders
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$a
- };
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
- var Mappers$b = /*#__PURE__*/Object.freeze({
- DiagnosticCollection: DiagnosticCollection,
- DiagnosticContract: DiagnosticContract,
- Resource: Resource,
- BaseResource: BaseResource,
- ErrorResponse: ErrorResponse,
- ErrorFieldContract: ErrorFieldContract,
- ApiDiagnosticGetEntityTagHeaders: ApiDiagnosticGetEntityTagHeaders,
- ApiDiagnosticGetHeaders: ApiDiagnosticGetHeaders,
- PolicyContract: PolicyContract,
- ApiContract: ApiContract,
- AuthenticationSettingsContract: AuthenticationSettingsContract,
- OAuth2AuthenticationSettingsContract: OAuth2AuthenticationSettingsContract,
- OpenIdAuthenticationSettingsContract: OpenIdAuthenticationSettingsContract,
- SubscriptionKeyParameterNamesContract: SubscriptionKeyParameterNamesContract,
- ApiVersionSetContractDetails: ApiVersionSetContractDetails,
- ApiReleaseContract: ApiReleaseContract,
- OperationContract: OperationContract,
- ParameterContract: ParameterContract,
- RequestContract: RequestContract,
- RepresentationContract: RepresentationContract,
- ResponseContract: ResponseContract,
- SchemaContract: SchemaContract,
- IssueContract: IssueContract,
- IssueCommentContract: IssueCommentContract,
- IssueAttachmentContract: IssueAttachmentContract,
- LoggerContract: LoggerContract,
- ProductContract: ProductContract,
- AuthorizationServerContract: AuthorizationServerContract,
- TokenBodyParameterContract: TokenBodyParameterContract,
- AuthorizationServerUpdateContract: AuthorizationServerUpdateContract,
- BackendContract: BackendContract,
- BackendProperties: BackendProperties,
- BackendServiceFabricClusterProperties: BackendServiceFabricClusterProperties,
- X509CertificateName: X509CertificateName,
- BackendCredentialsContract: BackendCredentialsContract,
- BackendAuthorizationHeaderCredentials: BackendAuthorizationHeaderCredentials,
- BackendProxyContract: BackendProxyContract,
- BackendTlsProperties: BackendTlsProperties,
- BackendReconnectContract: BackendReconnectContract,
- CertificateContract: CertificateContract,
- ApimResource: ApimResource,
- ApiManagementServiceUpdateParameters: ApiManagementServiceUpdateParameters,
- HostnameConfiguration: HostnameConfiguration,
- CertificateInformation: CertificateInformation,
- VirtualNetworkConfiguration: VirtualNetworkConfiguration,
- AdditionalLocation: AdditionalLocation,
- ApiManagementServiceSkuProperties: ApiManagementServiceSkuProperties,
- CertificateConfiguration: CertificateConfiguration,
- ApiManagementServiceIdentity: ApiManagementServiceIdentity,
- EmailTemplateContract: EmailTemplateContract,
- EmailTemplateParametersContractProperties: EmailTemplateParametersContractProperties,
- GroupContract: GroupContract,
- UserContract: UserContract,
- UserIdentityContract: UserIdentityContract,
- GroupContractProperties: GroupContractProperties,
- IdentityProviderContract: IdentityProviderContract,
- NotificationContract: NotificationContract,
- RecipientsContractProperties: RecipientsContractProperties,
- RecipientUserContract: RecipientUserContract,
- RecipientEmailContract: RecipientEmailContract,
- OpenidConnectProviderContract: OpenidConnectProviderContract,
- PortalSigninSettings: PortalSigninSettings,
- PortalSignupSettings: PortalSignupSettings,
- TermsOfServiceProperties: TermsOfServiceProperties,
- PortalDelegationSettings: PortalDelegationSettings,
- SubscriptionsDelegationSettingsProperties: SubscriptionsDelegationSettingsProperties,
- RegistrationDelegationSettingsProperties: RegistrationDelegationSettingsProperties,
- SubscriptionContract: SubscriptionContract,
- PropertyContract: PropertyContract,
- TagContract: TagContract,
- TagDescriptionContract: TagDescriptionContract,
- ApiVersionSetContract: ApiVersionSetContract,
- ApiManagementServiceResource: ApiManagementServiceResource
- });
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
- /** Class representing a ApiDiagnostic. */
- var ApiDiagnostic = /** @class */ (function () {
- /**
- * Create a ApiDiagnostic.
- * @param {ApiManagementClientContext} client Reference to the service client.
- */
- function ApiDiagnostic(client) {
- this.client = client;
- }
- ApiDiagnostic.prototype.listByService = function (resourceGroupName$$1, serviceName$$1, apiId, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- options: options
- }, listByServiceOperationSpec$4, callback);
- };
- ApiDiagnostic.prototype.getEntityTag = function (resourceGroupName$$1, serviceName$$1, apiId, diagnosticId$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- diagnosticId: diagnosticId$$1,
- options: options
- }, getEntityTagOperationSpec$7, callback);
- };
- ApiDiagnostic.prototype.get = function (resourceGroupName$$1, serviceName$$1, apiId, diagnosticId$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- diagnosticId: diagnosticId$$1,
- options: options
- }, getOperationSpec$7, callback);
- };
- ApiDiagnostic.prototype.createOrUpdate = function (resourceGroupName$$1, serviceName$$1, apiId, diagnosticId$$1, parameters, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- diagnosticId: diagnosticId$$1,
- parameters: parameters,
- options: options
- }, createOrUpdateOperationSpec$6, callback);
- };
- ApiDiagnostic.prototype.update = function (resourceGroupName$$1, serviceName$$1, apiId, diagnosticId$$1, parameters, ifMatch, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- diagnosticId: diagnosticId$$1,
- parameters: parameters,
- ifMatch: ifMatch,
- options: options
- }, updateOperationSpec$3, callback);
- };
- ApiDiagnostic.prototype.deleteMethod = function (resourceGroupName$$1, serviceName$$1, apiId, diagnosticId$$1, ifMatch, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- diagnosticId: diagnosticId$$1,
- ifMatch: ifMatch,
- options: options
- }, deleteMethodOperationSpec$7, callback);
- };
- ApiDiagnostic.prototype.listByServiceNext = function (nextPageLink$$1, options, callback) {
- return this.client.sendOperationRequest({
- nextPageLink: nextPageLink$$1,
- options: options
- }, listByServiceNextOperationSpec$2, callback);
- };
- return ApiDiagnostic;
- }());
- // Operation Specifications
- var serializer$b = new msRest.Serializer(Mappers$b);
- var listByServiceOperationSpec$4 = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId1,
- subscriptionId
- ],
- queryParameters: [
- apiVersion,
- filter0,
- top,
- skip
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: DiagnosticCollection
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$b
- };
- var getEntityTagOperationSpec$7 = {
- httpMethod: "HEAD",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId1,
- diagnosticId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- headersMapper: ApiDiagnosticGetEntityTagHeaders
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$b
- };
- var getOperationSpec$7 = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId1,
- diagnosticId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: DiagnosticContract,
- headersMapper: ApiDiagnosticGetHeaders
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$b
- };
- var createOrUpdateOperationSpec$6 = {
- httpMethod: "PUT",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId1,
- diagnosticId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- ifMatch1,
- acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: __assign({}, DiagnosticContract, { required: true })
- },
- responses: {
- 200: {
- bodyMapper: DiagnosticContract
- },
- 201: {
- bodyMapper: DiagnosticContract
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$b
- };
- var updateOperationSpec$3 = {
- httpMethod: "PATCH",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId1,
- diagnosticId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- ifMatch0,
- acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: __assign({}, DiagnosticContract, { required: true })
- },
- responses: {
- 204: {},
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$b
- };
- var deleteMethodOperationSpec$7 = {
- httpMethod: "DELETE",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId1,
- diagnosticId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- ifMatch0,
- acceptLanguage
- ],
- responses: {
- 200: {},
- 204: {},
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$b
- };
- var listByServiceNextOperationSpec$2 = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
- path: "{nextLink}",
- urlParameters: [
- nextPageLink
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: DiagnosticCollection
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$b
- };
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
- var Mappers$c = /*#__PURE__*/Object.freeze({
- LoggerCollection: LoggerCollection,
- LoggerContract: LoggerContract,
- Resource: Resource,
- BaseResource: BaseResource,
- ErrorResponse: ErrorResponse,
- ErrorFieldContract: ErrorFieldContract,
- PolicyContract: PolicyContract,
- ApiContract: ApiContract,
- AuthenticationSettingsContract: AuthenticationSettingsContract,
- OAuth2AuthenticationSettingsContract: OAuth2AuthenticationSettingsContract,
- OpenIdAuthenticationSettingsContract: OpenIdAuthenticationSettingsContract,
- SubscriptionKeyParameterNamesContract: SubscriptionKeyParameterNamesContract,
- ApiVersionSetContractDetails: ApiVersionSetContractDetails,
- ApiReleaseContract: ApiReleaseContract,
- OperationContract: OperationContract,
- ParameterContract: ParameterContract,
- RequestContract: RequestContract,
- RepresentationContract: RepresentationContract,
- ResponseContract: ResponseContract,
- SchemaContract: SchemaContract,
- IssueContract: IssueContract,
- IssueCommentContract: IssueCommentContract,
- IssueAttachmentContract: IssueAttachmentContract,
- DiagnosticContract: DiagnosticContract,
- ProductContract: ProductContract,
- AuthorizationServerContract: AuthorizationServerContract,
- TokenBodyParameterContract: TokenBodyParameterContract,
- AuthorizationServerUpdateContract: AuthorizationServerUpdateContract,
- BackendContract: BackendContract,
- BackendProperties: BackendProperties,
- BackendServiceFabricClusterProperties: BackendServiceFabricClusterProperties,
- X509CertificateName: X509CertificateName,
- BackendCredentialsContract: BackendCredentialsContract,
- BackendAuthorizationHeaderCredentials: BackendAuthorizationHeaderCredentials,
- BackendProxyContract: BackendProxyContract,
- BackendTlsProperties: BackendTlsProperties,
- BackendReconnectContract: BackendReconnectContract,
- CertificateContract: CertificateContract,
- ApimResource: ApimResource,
- ApiManagementServiceUpdateParameters: ApiManagementServiceUpdateParameters,
- HostnameConfiguration: HostnameConfiguration,
- CertificateInformation: CertificateInformation,
- VirtualNetworkConfiguration: VirtualNetworkConfiguration,
- AdditionalLocation: AdditionalLocation,
- ApiManagementServiceSkuProperties: ApiManagementServiceSkuProperties,
- CertificateConfiguration: CertificateConfiguration,
- ApiManagementServiceIdentity: ApiManagementServiceIdentity,
- EmailTemplateContract: EmailTemplateContract,
- EmailTemplateParametersContractProperties: EmailTemplateParametersContractProperties,
- GroupContract: GroupContract,
- UserContract: UserContract,
- UserIdentityContract: UserIdentityContract,
- GroupContractProperties: GroupContractProperties,
- IdentityProviderContract: IdentityProviderContract,
- NotificationContract: NotificationContract,
- RecipientsContractProperties: RecipientsContractProperties,
- RecipientUserContract: RecipientUserContract,
- RecipientEmailContract: RecipientEmailContract,
- OpenidConnectProviderContract: OpenidConnectProviderContract,
- PortalSigninSettings: PortalSigninSettings,
- PortalSignupSettings: PortalSignupSettings,
- TermsOfServiceProperties: TermsOfServiceProperties,
- PortalDelegationSettings: PortalDelegationSettings,
- SubscriptionsDelegationSettingsProperties: SubscriptionsDelegationSettingsProperties,
- RegistrationDelegationSettingsProperties: RegistrationDelegationSettingsProperties,
- SubscriptionContract: SubscriptionContract,
- PropertyContract: PropertyContract,
- TagContract: TagContract,
- TagDescriptionContract: TagDescriptionContract,
- ApiVersionSetContract: ApiVersionSetContract,
- ApiManagementServiceResource: ApiManagementServiceResource
- });
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
- /** Class representing a ApiDiagnosticLogger. */
- var ApiDiagnosticLogger = /** @class */ (function () {
- /**
- * Create a ApiDiagnosticLogger.
- * @param {ApiManagementClientContext} client Reference to the service client.
- */
- function ApiDiagnosticLogger(client) {
- this.client = client;
- }
- ApiDiagnosticLogger.prototype.listByService = function (resourceGroupName$$1, serviceName$$1, apiId, diagnosticId$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- diagnosticId: diagnosticId$$1,
- options: options
- }, listByServiceOperationSpec$5, callback);
- };
- ApiDiagnosticLogger.prototype.checkEntityExists = function (resourceGroupName$$1, serviceName$$1, apiId, diagnosticId$$1, loggerid$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- diagnosticId: diagnosticId$$1,
- loggerid: loggerid$$1,
- options: options
- }, checkEntityExistsOperationSpec, callback);
- };
- ApiDiagnosticLogger.prototype.createOrUpdate = function (resourceGroupName$$1, serviceName$$1, apiId, diagnosticId$$1, loggerid$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- diagnosticId: diagnosticId$$1,
- loggerid: loggerid$$1,
- options: options
- }, createOrUpdateOperationSpec$7, callback);
- };
- ApiDiagnosticLogger.prototype.deleteMethod = function (resourceGroupName$$1, serviceName$$1, apiId, diagnosticId$$1, loggerid$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- diagnosticId: diagnosticId$$1,
- loggerid: loggerid$$1,
- options: options
- }, deleteMethodOperationSpec$8, callback);
- };
- ApiDiagnosticLogger.prototype.listByServiceNext = function (nextPageLink$$1, options, callback) {
- return this.client.sendOperationRequest({
- nextPageLink: nextPageLink$$1,
- options: options
- }, listByServiceNextOperationSpec$3, callback);
- };
- return ApiDiagnosticLogger;
- }());
- // Operation Specifications
- var serializer$c = new msRest.Serializer(Mappers$c);
- var listByServiceOperationSpec$5 = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}/loggers",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId1,
- subscriptionId,
- diagnosticId
- ],
- queryParameters: [
- apiVersion,
- filter0,
- top,
- skip
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: LoggerCollection
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$c
- };
- var checkEntityExistsOperationSpec = {
- httpMethod: "HEAD",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}/loggers/{loggerid}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId1,
- diagnosticId,
- loggerid,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 204: {},
- 404: {},
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$c
- };
- var createOrUpdateOperationSpec$7 = {
- httpMethod: "PUT",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}/loggers/{loggerid}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId1,
- diagnosticId,
- loggerid,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: LoggerContract
- },
- 201: {
- bodyMapper: LoggerContract
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$c
- };
- var deleteMethodOperationSpec$8 = {
- httpMethod: "DELETE",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}/loggers/{loggerid}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId1,
- diagnosticId,
- loggerid,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {},
- 204: {},
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$c
- };
- var listByServiceNextOperationSpec$3 = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
- path: "{nextLink}",
- urlParameters: [
- nextPageLink
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: LoggerCollection
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$c
- };
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
- var Mappers$d = /*#__PURE__*/Object.freeze({
- IssueCollection: IssueCollection,
- IssueContract: IssueContract,
- Resource: Resource,
- BaseResource: BaseResource,
- ErrorResponse: ErrorResponse,
- ErrorFieldContract: ErrorFieldContract,
- ApiIssueGetEntityTagHeaders: ApiIssueGetEntityTagHeaders,
- ApiIssueGetHeaders: ApiIssueGetHeaders,
- PolicyContract: PolicyContract,
- ApiContract: ApiContract,
- AuthenticationSettingsContract: AuthenticationSettingsContract,
- OAuth2AuthenticationSettingsContract: OAuth2AuthenticationSettingsContract,
- OpenIdAuthenticationSettingsContract: OpenIdAuthenticationSettingsContract,
- SubscriptionKeyParameterNamesContract: SubscriptionKeyParameterNamesContract,
- ApiVersionSetContractDetails: ApiVersionSetContractDetails,
- ApiReleaseContract: ApiReleaseContract,
- OperationContract: OperationContract,
- ParameterContract: ParameterContract,
- RequestContract: RequestContract,
- RepresentationContract: RepresentationContract,
- ResponseContract: ResponseContract,
- SchemaContract: SchemaContract,
- IssueCommentContract: IssueCommentContract,
- IssueAttachmentContract: IssueAttachmentContract,
- LoggerContract: LoggerContract,
- DiagnosticContract: DiagnosticContract,
- ProductContract: ProductContract,
- AuthorizationServerContract: AuthorizationServerContract,
- TokenBodyParameterContract: TokenBodyParameterContract,
- AuthorizationServerUpdateContract: AuthorizationServerUpdateContract,
- BackendContract: BackendContract,
- BackendProperties: BackendProperties,
- BackendServiceFabricClusterProperties: BackendServiceFabricClusterProperties,
- X509CertificateName: X509CertificateName,
- BackendCredentialsContract: BackendCredentialsContract,
- BackendAuthorizationHeaderCredentials: BackendAuthorizationHeaderCredentials,
- BackendProxyContract: BackendProxyContract,
- BackendTlsProperties: BackendTlsProperties,
- BackendReconnectContract: BackendReconnectContract,
- CertificateContract: CertificateContract,
- ApimResource: ApimResource,
- ApiManagementServiceUpdateParameters: ApiManagementServiceUpdateParameters,
- HostnameConfiguration: HostnameConfiguration,
- CertificateInformation: CertificateInformation,
- VirtualNetworkConfiguration: VirtualNetworkConfiguration,
- AdditionalLocation: AdditionalLocation,
- ApiManagementServiceSkuProperties: ApiManagementServiceSkuProperties,
- CertificateConfiguration: CertificateConfiguration,
- ApiManagementServiceIdentity: ApiManagementServiceIdentity,
- EmailTemplateContract: EmailTemplateContract,
- EmailTemplateParametersContractProperties: EmailTemplateParametersContractProperties,
- GroupContract: GroupContract,
- UserContract: UserContract,
- UserIdentityContract: UserIdentityContract,
- GroupContractProperties: GroupContractProperties,
- IdentityProviderContract: IdentityProviderContract,
- NotificationContract: NotificationContract,
- RecipientsContractProperties: RecipientsContractProperties,
- RecipientUserContract: RecipientUserContract,
- RecipientEmailContract: RecipientEmailContract,
- OpenidConnectProviderContract: OpenidConnectProviderContract,
- PortalSigninSettings: PortalSigninSettings,
- PortalSignupSettings: PortalSignupSettings,
- TermsOfServiceProperties: TermsOfServiceProperties,
- PortalDelegationSettings: PortalDelegationSettings,
- SubscriptionsDelegationSettingsProperties: SubscriptionsDelegationSettingsProperties,
- RegistrationDelegationSettingsProperties: RegistrationDelegationSettingsProperties,
- SubscriptionContract: SubscriptionContract,
- PropertyContract: PropertyContract,
- TagContract: TagContract,
- TagDescriptionContract: TagDescriptionContract,
- ApiVersionSetContract: ApiVersionSetContract,
- ApiManagementServiceResource: ApiManagementServiceResource
- });
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
- /** Class representing a ApiIssue. */
- var ApiIssue = /** @class */ (function () {
- /**
- * Create a ApiIssue.
- * @param {ApiManagementClientContext} client Reference to the service client.
- */
- function ApiIssue(client) {
- this.client = client;
- }
- ApiIssue.prototype.listByService = function (resourceGroupName$$1, serviceName$$1, apiId, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- options: options
- }, listByServiceOperationSpec$6, callback);
- };
- ApiIssue.prototype.getEntityTag = function (resourceGroupName$$1, serviceName$$1, apiId, issueId$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- issueId: issueId$$1,
- options: options
- }, getEntityTagOperationSpec$8, callback);
- };
- ApiIssue.prototype.get = function (resourceGroupName$$1, serviceName$$1, apiId, issueId$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- issueId: issueId$$1,
- options: options
- }, getOperationSpec$8, callback);
- };
- ApiIssue.prototype.createOrUpdate = function (resourceGroupName$$1, serviceName$$1, apiId, issueId$$1, parameters, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- issueId: issueId$$1,
- parameters: parameters,
- options: options
- }, createOrUpdateOperationSpec$8, callback);
- };
- ApiIssue.prototype.deleteMethod = function (resourceGroupName$$1, serviceName$$1, apiId, issueId$$1, ifMatch, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- issueId: issueId$$1,
- ifMatch: ifMatch,
- options: options
- }, deleteMethodOperationSpec$9, callback);
- };
- ApiIssue.prototype.listByServiceNext = function (nextPageLink$$1, options, callback) {
- return this.client.sendOperationRequest({
- nextPageLink: nextPageLink$$1,
- options: options
- }, listByServiceNextOperationSpec$4, callback);
- };
- return ApiIssue;
- }());
- // Operation Specifications
- var serializer$d = new msRest.Serializer(Mappers$d);
- var listByServiceOperationSpec$6 = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId1,
- subscriptionId
- ],
- queryParameters: [
- apiVersion,
- filter0,
- top,
- skip
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: IssueCollection
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$d
- };
- var getEntityTagOperationSpec$8 = {
- httpMethod: "HEAD",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId1,
- issueId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- headersMapper: ApiIssueGetEntityTagHeaders
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$d
- };
- var getOperationSpec$8 = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId1,
- issueId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: IssueContract,
- headersMapper: ApiIssueGetHeaders
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$d
- };
- var createOrUpdateOperationSpec$8 = {
- httpMethod: "PUT",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId1,
- issueId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- ifMatch1,
- acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: __assign({}, IssueContract, { required: true })
- },
- responses: {
- 200: {
- bodyMapper: IssueContract
- },
- 201: {
- bodyMapper: IssueContract
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$d
- };
- var deleteMethodOperationSpec$9 = {
- httpMethod: "DELETE",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId1,
- issueId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- ifMatch0,
- acceptLanguage
- ],
- responses: {
- 200: {},
- 204: {},
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$d
- };
- var listByServiceNextOperationSpec$4 = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
- path: "{nextLink}",
- urlParameters: [
- nextPageLink
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: IssueCollection
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$d
- };
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
- var Mappers$e = /*#__PURE__*/Object.freeze({
- IssueCommentCollection: IssueCommentCollection,
- IssueCommentContract: IssueCommentContract,
- Resource: Resource,
- BaseResource: BaseResource,
- ErrorResponse: ErrorResponse,
- ErrorFieldContract: ErrorFieldContract,
- ApiIssueCommentGetEntityTagHeaders: ApiIssueCommentGetEntityTagHeaders,
- ApiIssueCommentGetHeaders: ApiIssueCommentGetHeaders,
- PolicyContract: PolicyContract,
- ApiContract: ApiContract,
- AuthenticationSettingsContract: AuthenticationSettingsContract,
- OAuth2AuthenticationSettingsContract: OAuth2AuthenticationSettingsContract,
- OpenIdAuthenticationSettingsContract: OpenIdAuthenticationSettingsContract,
- SubscriptionKeyParameterNamesContract: SubscriptionKeyParameterNamesContract,
- ApiVersionSetContractDetails: ApiVersionSetContractDetails,
- ApiReleaseContract: ApiReleaseContract,
- OperationContract: OperationContract,
- ParameterContract: ParameterContract,
- RequestContract: RequestContract,
- RepresentationContract: RepresentationContract,
- ResponseContract: ResponseContract,
- SchemaContract: SchemaContract,
- IssueContract: IssueContract,
- IssueAttachmentContract: IssueAttachmentContract,
- LoggerContract: LoggerContract,
- DiagnosticContract: DiagnosticContract,
- ProductContract: ProductContract,
- AuthorizationServerContract: AuthorizationServerContract,
- TokenBodyParameterContract: TokenBodyParameterContract,
- AuthorizationServerUpdateContract: AuthorizationServerUpdateContract,
- BackendContract: BackendContract,
- BackendProperties: BackendProperties,
- BackendServiceFabricClusterProperties: BackendServiceFabricClusterProperties,
- X509CertificateName: X509CertificateName,
- BackendCredentialsContract: BackendCredentialsContract,
- BackendAuthorizationHeaderCredentials: BackendAuthorizationHeaderCredentials,
- BackendProxyContract: BackendProxyContract,
- BackendTlsProperties: BackendTlsProperties,
- BackendReconnectContract: BackendReconnectContract,
- CertificateContract: CertificateContract,
- ApimResource: ApimResource,
- ApiManagementServiceUpdateParameters: ApiManagementServiceUpdateParameters,
- HostnameConfiguration: HostnameConfiguration,
- CertificateInformation: CertificateInformation,
- VirtualNetworkConfiguration: VirtualNetworkConfiguration,
- AdditionalLocation: AdditionalLocation,
- ApiManagementServiceSkuProperties: ApiManagementServiceSkuProperties,
- CertificateConfiguration: CertificateConfiguration,
- ApiManagementServiceIdentity: ApiManagementServiceIdentity,
- EmailTemplateContract: EmailTemplateContract,
- EmailTemplateParametersContractProperties: EmailTemplateParametersContractProperties,
- GroupContract: GroupContract,
- UserContract: UserContract,
- UserIdentityContract: UserIdentityContract,
- GroupContractProperties: GroupContractProperties,
- IdentityProviderContract: IdentityProviderContract,
- NotificationContract: NotificationContract,
- RecipientsContractProperties: RecipientsContractProperties,
- RecipientUserContract: RecipientUserContract,
- RecipientEmailContract: RecipientEmailContract,
- OpenidConnectProviderContract: OpenidConnectProviderContract,
- PortalSigninSettings: PortalSigninSettings,
- PortalSignupSettings: PortalSignupSettings,
- TermsOfServiceProperties: TermsOfServiceProperties,
- PortalDelegationSettings: PortalDelegationSettings,
- SubscriptionsDelegationSettingsProperties: SubscriptionsDelegationSettingsProperties,
- RegistrationDelegationSettingsProperties: RegistrationDelegationSettingsProperties,
- SubscriptionContract: SubscriptionContract,
- PropertyContract: PropertyContract,
- TagContract: TagContract,
- TagDescriptionContract: TagDescriptionContract,
- ApiVersionSetContract: ApiVersionSetContract,
- ApiManagementServiceResource: ApiManagementServiceResource
- });
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
- /** Class representing a ApiIssueComment. */
- var ApiIssueComment = /** @class */ (function () {
- /**
- * Create a ApiIssueComment.
- * @param {ApiManagementClientContext} client Reference to the service client.
- */
- function ApiIssueComment(client) {
- this.client = client;
- }
- ApiIssueComment.prototype.listByService = function (resourceGroupName$$1, serviceName$$1, apiId, issueId$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- issueId: issueId$$1,
- options: options
- }, listByServiceOperationSpec$7, callback);
- };
- ApiIssueComment.prototype.getEntityTag = function (resourceGroupName$$1, serviceName$$1, apiId, issueId$$1, commentId$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- issueId: issueId$$1,
- commentId: commentId$$1,
- options: options
- }, getEntityTagOperationSpec$9, callback);
- };
- ApiIssueComment.prototype.get = function (resourceGroupName$$1, serviceName$$1, apiId, issueId$$1, commentId$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- issueId: issueId$$1,
- commentId: commentId$$1,
- options: options
- }, getOperationSpec$9, callback);
- };
- ApiIssueComment.prototype.createOrUpdate = function (resourceGroupName$$1, serviceName$$1, apiId, issueId$$1, commentId$$1, parameters, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- issueId: issueId$$1,
- commentId: commentId$$1,
- parameters: parameters,
- options: options
- }, createOrUpdateOperationSpec$9, callback);
- };
- ApiIssueComment.prototype.deleteMethod = function (resourceGroupName$$1, serviceName$$1, apiId, issueId$$1, commentId$$1, ifMatch, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- issueId: issueId$$1,
- commentId: commentId$$1,
- ifMatch: ifMatch,
- options: options
- }, deleteMethodOperationSpec$a, callback);
- };
- ApiIssueComment.prototype.listByServiceNext = function (nextPageLink$$1, options, callback) {
- return this.client.sendOperationRequest({
- nextPageLink: nextPageLink$$1,
- options: options
- }, listByServiceNextOperationSpec$5, callback);
- };
- return ApiIssueComment;
- }());
- // Operation Specifications
- var serializer$e = new msRest.Serializer(Mappers$e);
- var listByServiceOperationSpec$7 = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId1,
- issueId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion,
- filter0,
- top,
- skip
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: IssueCommentCollection
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$e
- };
- var getEntityTagOperationSpec$9 = {
- httpMethod: "HEAD",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId1,
- issueId,
- commentId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- headersMapper: ApiIssueCommentGetEntityTagHeaders
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$e
- };
- var getOperationSpec$9 = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId1,
- issueId,
- commentId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: IssueCommentContract,
- headersMapper: ApiIssueCommentGetHeaders
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$e
- };
- var createOrUpdateOperationSpec$9 = {
- httpMethod: "PUT",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId1,
- issueId,
- commentId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- ifMatch1,
- acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: __assign({}, IssueCommentContract, { required: true })
- },
- responses: {
- 200: {
- bodyMapper: IssueCommentContract
- },
- 201: {
- bodyMapper: IssueCommentContract
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$e
- };
- var deleteMethodOperationSpec$a = {
- httpMethod: "DELETE",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId1,
- issueId,
- commentId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- ifMatch0,
- acceptLanguage
- ],
- responses: {
- 200: {},
- 204: {},
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$e
- };
- var listByServiceNextOperationSpec$5 = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
- path: "{nextLink}",
- urlParameters: [
- nextPageLink
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: IssueCommentCollection
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$e
- };
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
- var Mappers$f = /*#__PURE__*/Object.freeze({
- IssueAttachmentCollection: IssueAttachmentCollection,
- IssueAttachmentContract: IssueAttachmentContract,
- Resource: Resource,
- BaseResource: BaseResource,
- ErrorResponse: ErrorResponse,
- ErrorFieldContract: ErrorFieldContract,
- ApiIssueAttachmentGetEntityTagHeaders: ApiIssueAttachmentGetEntityTagHeaders,
- ApiIssueAttachmentGetHeaders: ApiIssueAttachmentGetHeaders,
- PolicyContract: PolicyContract,
- ApiContract: ApiContract,
- AuthenticationSettingsContract: AuthenticationSettingsContract,
- OAuth2AuthenticationSettingsContract: OAuth2AuthenticationSettingsContract,
- OpenIdAuthenticationSettingsContract: OpenIdAuthenticationSettingsContract,
- SubscriptionKeyParameterNamesContract: SubscriptionKeyParameterNamesContract,
- ApiVersionSetContractDetails: ApiVersionSetContractDetails,
- ApiReleaseContract: ApiReleaseContract,
- OperationContract: OperationContract,
- ParameterContract: ParameterContract,
- RequestContract: RequestContract,
- RepresentationContract: RepresentationContract,
- ResponseContract: ResponseContract,
- SchemaContract: SchemaContract,
- IssueContract: IssueContract,
- IssueCommentContract: IssueCommentContract,
- LoggerContract: LoggerContract,
- DiagnosticContract: DiagnosticContract,
- ProductContract: ProductContract,
- AuthorizationServerContract: AuthorizationServerContract,
- TokenBodyParameterContract: TokenBodyParameterContract,
- AuthorizationServerUpdateContract: AuthorizationServerUpdateContract,
- BackendContract: BackendContract,
- BackendProperties: BackendProperties,
- BackendServiceFabricClusterProperties: BackendServiceFabricClusterProperties,
- X509CertificateName: X509CertificateName,
- BackendCredentialsContract: BackendCredentialsContract,
- BackendAuthorizationHeaderCredentials: BackendAuthorizationHeaderCredentials,
- BackendProxyContract: BackendProxyContract,
- BackendTlsProperties: BackendTlsProperties,
- BackendReconnectContract: BackendReconnectContract,
- CertificateContract: CertificateContract,
- ApimResource: ApimResource,
- ApiManagementServiceUpdateParameters: ApiManagementServiceUpdateParameters,
- HostnameConfiguration: HostnameConfiguration,
- CertificateInformation: CertificateInformation,
- VirtualNetworkConfiguration: VirtualNetworkConfiguration,
- AdditionalLocation: AdditionalLocation,
- ApiManagementServiceSkuProperties: ApiManagementServiceSkuProperties,
- CertificateConfiguration: CertificateConfiguration,
- ApiManagementServiceIdentity: ApiManagementServiceIdentity,
- EmailTemplateContract: EmailTemplateContract,
- EmailTemplateParametersContractProperties: EmailTemplateParametersContractProperties,
- GroupContract: GroupContract,
- UserContract: UserContract,
- UserIdentityContract: UserIdentityContract,
- GroupContractProperties: GroupContractProperties,
- IdentityProviderContract: IdentityProviderContract,
- NotificationContract: NotificationContract,
- RecipientsContractProperties: RecipientsContractProperties,
- RecipientUserContract: RecipientUserContract,
- RecipientEmailContract: RecipientEmailContract,
- OpenidConnectProviderContract: OpenidConnectProviderContract,
- PortalSigninSettings: PortalSigninSettings,
- PortalSignupSettings: PortalSignupSettings,
- TermsOfServiceProperties: TermsOfServiceProperties,
- PortalDelegationSettings: PortalDelegationSettings,
- SubscriptionsDelegationSettingsProperties: SubscriptionsDelegationSettingsProperties,
- RegistrationDelegationSettingsProperties: RegistrationDelegationSettingsProperties,
- SubscriptionContract: SubscriptionContract,
- PropertyContract: PropertyContract,
- TagContract: TagContract,
- TagDescriptionContract: TagDescriptionContract,
- ApiVersionSetContract: ApiVersionSetContract,
- ApiManagementServiceResource: ApiManagementServiceResource
- });
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
- /** Class representing a ApiIssueAttachment. */
- var ApiIssueAttachment = /** @class */ (function () {
- /**
- * Create a ApiIssueAttachment.
- * @param {ApiManagementClientContext} client Reference to the service client.
- */
- function ApiIssueAttachment(client) {
- this.client = client;
- }
- ApiIssueAttachment.prototype.listByService = function (resourceGroupName$$1, serviceName$$1, apiId, issueId$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- issueId: issueId$$1,
- options: options
- }, listByServiceOperationSpec$8, callback);
- };
- ApiIssueAttachment.prototype.getEntityTag = function (resourceGroupName$$1, serviceName$$1, apiId, issueId$$1, attachmentId$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- issueId: issueId$$1,
- attachmentId: attachmentId$$1,
- options: options
- }, getEntityTagOperationSpec$a, callback);
- };
- ApiIssueAttachment.prototype.get = function (resourceGroupName$$1, serviceName$$1, apiId, issueId$$1, attachmentId$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- issueId: issueId$$1,
- attachmentId: attachmentId$$1,
- options: options
- }, getOperationSpec$a, callback);
- };
- ApiIssueAttachment.prototype.createOrUpdate = function (resourceGroupName$$1, serviceName$$1, apiId, issueId$$1, attachmentId$$1, parameters, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- issueId: issueId$$1,
- attachmentId: attachmentId$$1,
- parameters: parameters,
- options: options
- }, createOrUpdateOperationSpec$a, callback);
- };
- ApiIssueAttachment.prototype.deleteMethod = function (resourceGroupName$$1, serviceName$$1, apiId, issueId$$1, attachmentId$$1, ifMatch, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- apiId: apiId,
- issueId: issueId$$1,
- attachmentId: attachmentId$$1,
- ifMatch: ifMatch,
- options: options
- }, deleteMethodOperationSpec$b, callback);
- };
- ApiIssueAttachment.prototype.listByServiceNext = function (nextPageLink$$1, options, callback) {
- return this.client.sendOperationRequest({
- nextPageLink: nextPageLink$$1,
- options: options
- }, listByServiceNextOperationSpec$6, callback);
- };
- return ApiIssueAttachment;
- }());
- // Operation Specifications
- var serializer$f = new msRest.Serializer(Mappers$f);
- var listByServiceOperationSpec$8 = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId1,
- issueId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion,
- filter0,
- top,
- skip
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: IssueAttachmentCollection
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$f
- };
- var getEntityTagOperationSpec$a = {
- httpMethod: "HEAD",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId1,
- issueId,
- attachmentId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- headersMapper: ApiIssueAttachmentGetEntityTagHeaders
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$f
- };
- var getOperationSpec$a = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId1,
- issueId,
- attachmentId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: IssueAttachmentContract,
- headersMapper: ApiIssueAttachmentGetHeaders
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$f
- };
- var createOrUpdateOperationSpec$a = {
- httpMethod: "PUT",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId1,
- issueId,
- attachmentId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- ifMatch1,
- acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: __assign({}, IssueAttachmentContract, { required: true })
- },
- responses: {
- 200: {
- bodyMapper: IssueAttachmentContract
- },
- 201: {
- bodyMapper: IssueAttachmentContract
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$f
- };
- var deleteMethodOperationSpec$b = {
- httpMethod: "DELETE",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- apiId1,
- issueId,
- attachmentId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- ifMatch0,
- acceptLanguage
- ],
- responses: {
- 200: {},
- 204: {},
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$f
- };
- var listByServiceNextOperationSpec$6 = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
- path: "{nextLink}",
- urlParameters: [
- nextPageLink
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: IssueAttachmentCollection
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$f
- };
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
- var Mappers$g = /*#__PURE__*/Object.freeze({
- AuthorizationServerCollection: AuthorizationServerCollection,
- AuthorizationServerContract: AuthorizationServerContract,
- Resource: Resource,
- BaseResource: BaseResource,
- TokenBodyParameterContract: TokenBodyParameterContract,
- CloudError: CloudError,
- AuthorizationServerGetEntityTagHeaders: AuthorizationServerGetEntityTagHeaders,
- ErrorResponse: ErrorResponse,
- ErrorFieldContract: ErrorFieldContract,
- AuthorizationServerGetHeaders: AuthorizationServerGetHeaders,
- AuthorizationServerUpdateContract: AuthorizationServerUpdateContract,
- PolicyContract: PolicyContract,
- ApiContract: ApiContract,
- AuthenticationSettingsContract: AuthenticationSettingsContract,
- OAuth2AuthenticationSettingsContract: OAuth2AuthenticationSettingsContract,
- OpenIdAuthenticationSettingsContract: OpenIdAuthenticationSettingsContract,
- SubscriptionKeyParameterNamesContract: SubscriptionKeyParameterNamesContract,
- ApiVersionSetContractDetails: ApiVersionSetContractDetails,
- ApiReleaseContract: ApiReleaseContract,
- OperationContract: OperationContract,
- ParameterContract: ParameterContract,
- RequestContract: RequestContract,
- RepresentationContract: RepresentationContract,
- ResponseContract: ResponseContract,
- SchemaContract: SchemaContract,
- IssueContract: IssueContract,
- IssueCommentContract: IssueCommentContract,
- IssueAttachmentContract: IssueAttachmentContract,
- LoggerContract: LoggerContract,
- DiagnosticContract: DiagnosticContract,
- ProductContract: ProductContract,
- BackendContract: BackendContract,
- BackendProperties: BackendProperties,
- BackendServiceFabricClusterProperties: BackendServiceFabricClusterProperties,
- X509CertificateName: X509CertificateName,
- BackendCredentialsContract: BackendCredentialsContract,
- BackendAuthorizationHeaderCredentials: BackendAuthorizationHeaderCredentials,
- BackendProxyContract: BackendProxyContract,
- BackendTlsProperties: BackendTlsProperties,
- BackendReconnectContract: BackendReconnectContract,
- CertificateContract: CertificateContract,
- ApimResource: ApimResource,
- ApiManagementServiceUpdateParameters: ApiManagementServiceUpdateParameters,
- HostnameConfiguration: HostnameConfiguration,
- CertificateInformation: CertificateInformation,
- VirtualNetworkConfiguration: VirtualNetworkConfiguration,
- AdditionalLocation: AdditionalLocation,
- ApiManagementServiceSkuProperties: ApiManagementServiceSkuProperties,
- CertificateConfiguration: CertificateConfiguration,
- ApiManagementServiceIdentity: ApiManagementServiceIdentity,
- EmailTemplateContract: EmailTemplateContract,
- EmailTemplateParametersContractProperties: EmailTemplateParametersContractProperties,
- GroupContract: GroupContract,
- UserContract: UserContract,
- UserIdentityContract: UserIdentityContract,
- GroupContractProperties: GroupContractProperties,
- IdentityProviderContract: IdentityProviderContract,
- NotificationContract: NotificationContract,
- RecipientsContractProperties: RecipientsContractProperties,
- RecipientUserContract: RecipientUserContract,
- RecipientEmailContract: RecipientEmailContract,
- OpenidConnectProviderContract: OpenidConnectProviderContract,
- PortalSigninSettings: PortalSigninSettings,
- PortalSignupSettings: PortalSignupSettings,
- TermsOfServiceProperties: TermsOfServiceProperties,
- PortalDelegationSettings: PortalDelegationSettings,
- SubscriptionsDelegationSettingsProperties: SubscriptionsDelegationSettingsProperties,
- RegistrationDelegationSettingsProperties: RegistrationDelegationSettingsProperties,
- SubscriptionContract: SubscriptionContract,
- PropertyContract: PropertyContract,
- TagContract: TagContract,
- TagDescriptionContract: TagDescriptionContract,
- ApiVersionSetContract: ApiVersionSetContract,
- ApiManagementServiceResource: ApiManagementServiceResource
- });
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
- /** Class representing a AuthorizationServer. */
- var AuthorizationServer = /** @class */ (function () {
- /**
- * Create a AuthorizationServer.
- * @param {ApiManagementClientContext} client Reference to the service client.
- */
- function AuthorizationServer(client) {
- this.client = client;
- }
- AuthorizationServer.prototype.listByService = function (resourceGroupName$$1, serviceName$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- options: options
- }, listByServiceOperationSpec$9, callback);
- };
- AuthorizationServer.prototype.getEntityTag = function (resourceGroupName$$1, serviceName$$1, authsid$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- authsid: authsid$$1,
- options: options
- }, getEntityTagOperationSpec$b, callback);
- };
- AuthorizationServer.prototype.get = function (resourceGroupName$$1, serviceName$$1, authsid$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- authsid: authsid$$1,
- options: options
- }, getOperationSpec$b, callback);
- };
- AuthorizationServer.prototype.createOrUpdate = function (resourceGroupName$$1, serviceName$$1, authsid$$1, parameters, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- authsid: authsid$$1,
- parameters: parameters,
- options: options
- }, createOrUpdateOperationSpec$b, callback);
- };
- AuthorizationServer.prototype.update = function (resourceGroupName$$1, serviceName$$1, authsid$$1, parameters, ifMatch, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- authsid: authsid$$1,
- parameters: parameters,
- ifMatch: ifMatch,
- options: options
- }, updateOperationSpec$4, callback);
- };
- AuthorizationServer.prototype.deleteMethod = function (resourceGroupName$$1, serviceName$$1, authsid$$1, ifMatch, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- authsid: authsid$$1,
- ifMatch: ifMatch,
- options: options
- }, deleteMethodOperationSpec$c, callback);
- };
- AuthorizationServer.prototype.listByServiceNext = function (nextPageLink$$1, options, callback) {
- return this.client.sendOperationRequest({
- nextPageLink: nextPageLink$$1,
- options: options
- }, listByServiceNextOperationSpec$7, callback);
- };
- return AuthorizationServer;
- }());
- // Operation Specifications
- var serializer$g = new msRest.Serializer(Mappers$g);
- var listByServiceOperationSpec$9 = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers",
- urlParameters: [
- resourceGroupName,
- serviceName,
- subscriptionId
- ],
- queryParameters: [
- filter0,
- top,
- skip,
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: AuthorizationServerCollection
- },
- default: {
- bodyMapper: CloudError
- }
- },
- serializer: serializer$g
- };
- var getEntityTagOperationSpec$b = {
- httpMethod: "HEAD",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- authsid,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- headersMapper: AuthorizationServerGetEntityTagHeaders
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$g
- };
- var getOperationSpec$b = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- authsid,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: AuthorizationServerContract,
- headersMapper: AuthorizationServerGetHeaders
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$g
- };
- var createOrUpdateOperationSpec$b = {
- httpMethod: "PUT",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- authsid,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- ifMatch1,
- acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: __assign({}, AuthorizationServerContract, { required: true })
- },
- responses: {
- 200: {
- bodyMapper: AuthorizationServerContract
- },
- 201: {
- bodyMapper: AuthorizationServerContract
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$g
- };
- var updateOperationSpec$4 = {
- httpMethod: "PATCH",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- authsid,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- ifMatch0,
- acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: __assign({}, AuthorizationServerUpdateContract, { required: true })
- },
- responses: {
- 204: {},
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$g
- };
- var deleteMethodOperationSpec$c = {
- httpMethod: "DELETE",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- authsid,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- ifMatch0,
- acceptLanguage
- ],
- responses: {
- 200: {},
- 204: {},
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$g
- };
- var listByServiceNextOperationSpec$7 = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
- path: "{nextLink}",
- urlParameters: [
- nextPageLink
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: AuthorizationServerCollection
- },
- default: {
- bodyMapper: CloudError
- }
- },
- serializer: serializer$g
- };
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
- var Mappers$h = /*#__PURE__*/Object.freeze({
- BackendCollection: BackendCollection,
- BackendContract: BackendContract,
- Resource: Resource,
- BaseResource: BaseResource,
- BackendProperties: BackendProperties,
- BackendServiceFabricClusterProperties: BackendServiceFabricClusterProperties,
- X509CertificateName: X509CertificateName,
- BackendCredentialsContract: BackendCredentialsContract,
- BackendAuthorizationHeaderCredentials: BackendAuthorizationHeaderCredentials,
- BackendProxyContract: BackendProxyContract,
- BackendTlsProperties: BackendTlsProperties,
- ErrorResponse: ErrorResponse,
- ErrorFieldContract: ErrorFieldContract,
- BackendGetEntityTagHeaders: BackendGetEntityTagHeaders,
- BackendGetHeaders: BackendGetHeaders,
- BackendUpdateParameters: BackendUpdateParameters,
- BackendReconnectContract: BackendReconnectContract,
- PolicyContract: PolicyContract,
- ApiContract: ApiContract,
- AuthenticationSettingsContract: AuthenticationSettingsContract,
- OAuth2AuthenticationSettingsContract: OAuth2AuthenticationSettingsContract,
- OpenIdAuthenticationSettingsContract: OpenIdAuthenticationSettingsContract,
- SubscriptionKeyParameterNamesContract: SubscriptionKeyParameterNamesContract,
- ApiVersionSetContractDetails: ApiVersionSetContractDetails,
- ApiReleaseContract: ApiReleaseContract,
- OperationContract: OperationContract,
- ParameterContract: ParameterContract,
- RequestContract: RequestContract,
- RepresentationContract: RepresentationContract,
- ResponseContract: ResponseContract,
- SchemaContract: SchemaContract,
- IssueContract: IssueContract,
- IssueCommentContract: IssueCommentContract,
- IssueAttachmentContract: IssueAttachmentContract,
- LoggerContract: LoggerContract,
- DiagnosticContract: DiagnosticContract,
- ProductContract: ProductContract,
- AuthorizationServerContract: AuthorizationServerContract,
- TokenBodyParameterContract: TokenBodyParameterContract,
- AuthorizationServerUpdateContract: AuthorizationServerUpdateContract,
- CertificateContract: CertificateContract,
- ApimResource: ApimResource,
- ApiManagementServiceUpdateParameters: ApiManagementServiceUpdateParameters,
- HostnameConfiguration: HostnameConfiguration,
- CertificateInformation: CertificateInformation,
- VirtualNetworkConfiguration: VirtualNetworkConfiguration,
- AdditionalLocation: AdditionalLocation,
- ApiManagementServiceSkuProperties: ApiManagementServiceSkuProperties,
- CertificateConfiguration: CertificateConfiguration,
- ApiManagementServiceIdentity: ApiManagementServiceIdentity,
- EmailTemplateContract: EmailTemplateContract,
- EmailTemplateParametersContractProperties: EmailTemplateParametersContractProperties,
- GroupContract: GroupContract,
- UserContract: UserContract,
- UserIdentityContract: UserIdentityContract,
- GroupContractProperties: GroupContractProperties,
- IdentityProviderContract: IdentityProviderContract,
- NotificationContract: NotificationContract,
- RecipientsContractProperties: RecipientsContractProperties,
- RecipientUserContract: RecipientUserContract,
- RecipientEmailContract: RecipientEmailContract,
- OpenidConnectProviderContract: OpenidConnectProviderContract,
- PortalSigninSettings: PortalSigninSettings,
- PortalSignupSettings: PortalSignupSettings,
- TermsOfServiceProperties: TermsOfServiceProperties,
- PortalDelegationSettings: PortalDelegationSettings,
- SubscriptionsDelegationSettingsProperties: SubscriptionsDelegationSettingsProperties,
- RegistrationDelegationSettingsProperties: RegistrationDelegationSettingsProperties,
- SubscriptionContract: SubscriptionContract,
- PropertyContract: PropertyContract,
- TagContract: TagContract,
- TagDescriptionContract: TagDescriptionContract,
- ApiVersionSetContract: ApiVersionSetContract,
- ApiManagementServiceResource: ApiManagementServiceResource
- });
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
- /** Class representing a Backend. */
- var Backend = /** @class */ (function () {
- /**
- * Create a Backend.
- * @param {ApiManagementClientContext} client Reference to the service client.
- */
- function Backend(client) {
- this.client = client;
- }
- Backend.prototype.listByService = function (resourceGroupName$$1, serviceName$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- options: options
- }, listByServiceOperationSpec$a, callback);
- };
- Backend.prototype.getEntityTag = function (resourceGroupName$$1, serviceName$$1, backendid$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- backendid: backendid$$1,
- options: options
- }, getEntityTagOperationSpec$c, callback);
- };
- Backend.prototype.get = function (resourceGroupName$$1, serviceName$$1, backendid$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- backendid: backendid$$1,
- options: options
- }, getOperationSpec$c, callback);
- };
- Backend.prototype.createOrUpdate = function (resourceGroupName$$1, serviceName$$1, backendid$$1, parameters, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- backendid: backendid$$1,
- parameters: parameters,
- options: options
- }, createOrUpdateOperationSpec$c, callback);
- };
- Backend.prototype.update = function (resourceGroupName$$1, serviceName$$1, backendid$$1, parameters, ifMatch, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- backendid: backendid$$1,
- parameters: parameters,
- ifMatch: ifMatch,
- options: options
- }, updateOperationSpec$5, callback);
- };
- Backend.prototype.deleteMethod = function (resourceGroupName$$1, serviceName$$1, backendid$$1, ifMatch, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- backendid: backendid$$1,
- ifMatch: ifMatch,
- options: options
- }, deleteMethodOperationSpec$d, callback);
- };
- Backend.prototype.reconnect = function (resourceGroupName$$1, serviceName$$1, backendid$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- backendid: backendid$$1,
- options: options
- }, reconnectOperationSpec, callback);
- };
- Backend.prototype.listByServiceNext = function (nextPageLink$$1, options, callback) {
- return this.client.sendOperationRequest({
- nextPageLink: nextPageLink$$1,
- options: options
- }, listByServiceNextOperationSpec$8, callback);
- };
- return Backend;
- }());
- // Operation Specifications
- var serializer$h = new msRest.Serializer(Mappers$h);
- var listByServiceOperationSpec$a = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends",
- urlParameters: [
- resourceGroupName,
- serviceName,
- subscriptionId
- ],
- queryParameters: [
- filter0,
- top,
- skip,
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: BackendCollection
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$h
- };
- var getEntityTagOperationSpec$c = {
- httpMethod: "HEAD",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendid}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- backendid,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- headersMapper: BackendGetEntityTagHeaders
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$h
- };
- var getOperationSpec$c = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendid}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- backendid,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: BackendContract,
- headersMapper: BackendGetHeaders
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$h
- };
- var createOrUpdateOperationSpec$c = {
- httpMethod: "PUT",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendid}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- backendid,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- ifMatch1,
- acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: __assign({}, BackendContract, { required: true })
- },
- responses: {
- 200: {
- bodyMapper: BackendContract
- },
- 201: {
- bodyMapper: BackendContract
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$h
- };
- var updateOperationSpec$5 = {
- httpMethod: "PATCH",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendid}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- backendid,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- ifMatch0,
- acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: __assign({}, BackendUpdateParameters, { required: true })
- },
- responses: {
- 204: {},
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$h
- };
- var deleteMethodOperationSpec$d = {
- httpMethod: "DELETE",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendid}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- backendid,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- ifMatch0,
- acceptLanguage
- ],
- responses: {
- 200: {},
- 204: {},
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$h
- };
- var reconnectOperationSpec = {
- httpMethod: "POST",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendid}/reconnect",
- urlParameters: [
- resourceGroupName,
- serviceName,
- backendid,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- requestBody: {
- parameterPath: [
- "options",
- "parameters"
- ],
- mapper: BackendReconnectContract
- },
- responses: {
- 202: {},
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$h
- };
- var listByServiceNextOperationSpec$8 = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
- path: "{nextLink}",
- urlParameters: [
- nextPageLink
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: BackendCollection
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$h
- };
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
- var Mappers$i = /*#__PURE__*/Object.freeze({
- CertificateCollection: CertificateCollection,
- CertificateContract: CertificateContract,
- Resource: Resource,
- BaseResource: BaseResource,
- ErrorResponse: ErrorResponse,
- ErrorFieldContract: ErrorFieldContract,
- CertificateGetEntityTagHeaders: CertificateGetEntityTagHeaders,
- CertificateGetHeaders: CertificateGetHeaders,
- CertificateCreateOrUpdateParameters: CertificateCreateOrUpdateParameters,
- PolicyContract: PolicyContract,
- ApiContract: ApiContract,
- AuthenticationSettingsContract: AuthenticationSettingsContract,
- OAuth2AuthenticationSettingsContract: OAuth2AuthenticationSettingsContract,
- OpenIdAuthenticationSettingsContract: OpenIdAuthenticationSettingsContract,
- SubscriptionKeyParameterNamesContract: SubscriptionKeyParameterNamesContract,
- ApiVersionSetContractDetails: ApiVersionSetContractDetails,
- ApiReleaseContract: ApiReleaseContract,
- OperationContract: OperationContract,
- ParameterContract: ParameterContract,
- RequestContract: RequestContract,
- RepresentationContract: RepresentationContract,
- ResponseContract: ResponseContract,
- SchemaContract: SchemaContract,
- IssueContract: IssueContract,
- IssueCommentContract: IssueCommentContract,
- IssueAttachmentContract: IssueAttachmentContract,
- LoggerContract: LoggerContract,
- DiagnosticContract: DiagnosticContract,
- ProductContract: ProductContract,
- AuthorizationServerContract: AuthorizationServerContract,
- TokenBodyParameterContract: TokenBodyParameterContract,
- AuthorizationServerUpdateContract: AuthorizationServerUpdateContract,
- BackendContract: BackendContract,
- BackendProperties: BackendProperties,
- BackendServiceFabricClusterProperties: BackendServiceFabricClusterProperties,
- X509CertificateName: X509CertificateName,
- BackendCredentialsContract: BackendCredentialsContract,
- BackendAuthorizationHeaderCredentials: BackendAuthorizationHeaderCredentials,
- BackendProxyContract: BackendProxyContract,
- BackendTlsProperties: BackendTlsProperties,
- BackendReconnectContract: BackendReconnectContract,
- ApimResource: ApimResource,
- ApiManagementServiceUpdateParameters: ApiManagementServiceUpdateParameters,
- HostnameConfiguration: HostnameConfiguration,
- CertificateInformation: CertificateInformation,
- VirtualNetworkConfiguration: VirtualNetworkConfiguration,
- AdditionalLocation: AdditionalLocation,
- ApiManagementServiceSkuProperties: ApiManagementServiceSkuProperties,
- CertificateConfiguration: CertificateConfiguration,
- ApiManagementServiceIdentity: ApiManagementServiceIdentity,
- EmailTemplateContract: EmailTemplateContract,
- EmailTemplateParametersContractProperties: EmailTemplateParametersContractProperties,
- GroupContract: GroupContract,
- UserContract: UserContract,
- UserIdentityContract: UserIdentityContract,
- GroupContractProperties: GroupContractProperties,
- IdentityProviderContract: IdentityProviderContract,
- NotificationContract: NotificationContract,
- RecipientsContractProperties: RecipientsContractProperties,
- RecipientUserContract: RecipientUserContract,
- RecipientEmailContract: RecipientEmailContract,
- OpenidConnectProviderContract: OpenidConnectProviderContract,
- PortalSigninSettings: PortalSigninSettings,
- PortalSignupSettings: PortalSignupSettings,
- TermsOfServiceProperties: TermsOfServiceProperties,
- PortalDelegationSettings: PortalDelegationSettings,
- SubscriptionsDelegationSettingsProperties: SubscriptionsDelegationSettingsProperties,
- RegistrationDelegationSettingsProperties: RegistrationDelegationSettingsProperties,
- SubscriptionContract: SubscriptionContract,
- PropertyContract: PropertyContract,
- TagContract: TagContract,
- TagDescriptionContract: TagDescriptionContract,
- ApiVersionSetContract: ApiVersionSetContract,
- ApiManagementServiceResource: ApiManagementServiceResource
- });
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
- /** Class representing a Certificate. */
- var Certificate = /** @class */ (function () {
- /**
- * Create a Certificate.
- * @param {ApiManagementClientContext} client Reference to the service client.
- */
- function Certificate(client) {
- this.client = client;
- }
- Certificate.prototype.listByService = function (resourceGroupName$$1, serviceName$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- options: options
- }, listByServiceOperationSpec$b, callback);
- };
- Certificate.prototype.getEntityTag = function (resourceGroupName$$1, serviceName$$1, certificateId$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- certificateId: certificateId$$1,
- options: options
- }, getEntityTagOperationSpec$d, callback);
- };
- Certificate.prototype.get = function (resourceGroupName$$1, serviceName$$1, certificateId$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- certificateId: certificateId$$1,
- options: options
- }, getOperationSpec$d, callback);
- };
- Certificate.prototype.createOrUpdate = function (resourceGroupName$$1, serviceName$$1, certificateId$$1, parameters, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- certificateId: certificateId$$1,
- parameters: parameters,
- options: options
- }, createOrUpdateOperationSpec$d, callback);
- };
- Certificate.prototype.deleteMethod = function (resourceGroupName$$1, serviceName$$1, certificateId$$1, ifMatch, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- certificateId: certificateId$$1,
- ifMatch: ifMatch,
- options: options
- }, deleteMethodOperationSpec$e, callback);
- };
- Certificate.prototype.listByServiceNext = function (nextPageLink$$1, options, callback) {
- return this.client.sendOperationRequest({
- nextPageLink: nextPageLink$$1,
- options: options
- }, listByServiceNextOperationSpec$9, callback);
- };
- return Certificate;
- }());
- // Operation Specifications
- var serializer$i = new msRest.Serializer(Mappers$i);
- var listByServiceOperationSpec$b = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates",
- urlParameters: [
- resourceGroupName,
- serviceName,
- subscriptionId
- ],
- queryParameters: [
- filter0,
- top,
- skip,
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: CertificateCollection
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$i
- };
- var getEntityTagOperationSpec$d = {
- httpMethod: "HEAD",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- certificateId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- headersMapper: CertificateGetEntityTagHeaders
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$i
- };
- var getOperationSpec$d = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- certificateId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: CertificateContract,
- headersMapper: CertificateGetHeaders
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$i
- };
- var createOrUpdateOperationSpec$d = {
- httpMethod: "PUT",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- certificateId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- ifMatch1,
- acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: __assign({}, CertificateCreateOrUpdateParameters, { required: true })
- },
- responses: {
- 200: {
- bodyMapper: CertificateContract
- },
- 201: {
- bodyMapper: CertificateContract
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$i
- };
- var deleteMethodOperationSpec$e = {
- httpMethod: "DELETE",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}",
- urlParameters: [
- resourceGroupName,
- serviceName,
- certificateId,
- subscriptionId
- ],
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- ifMatch0,
- acceptLanguage
- ],
- responses: {
- 200: {},
- 204: {},
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$i
- };
- var listByServiceNextOperationSpec$9 = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
- path: "{nextLink}",
- urlParameters: [
- nextPageLink
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: CertificateCollection
- },
- default: {
- bodyMapper: ErrorResponse
- }
- },
- serializer: serializer$i
- };
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
- var Mappers$j = /*#__PURE__*/Object.freeze({
- OperationListResult: OperationListResult,
- Operation: Operation,
- OperationDisplay: OperationDisplay,
- CloudError: CloudError
- });
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
- /** Class representing a ApiManagementOperations. */
- var ApiManagementOperations = /** @class */ (function () {
- /**
- * Create a ApiManagementOperations.
- * @param {ApiManagementClientContext} client Reference to the service client.
- */
- function ApiManagementOperations(client) {
- this.client = client;
- }
- ApiManagementOperations.prototype.list = function (options, callback) {
- return this.client.sendOperationRequest({
- options: options
- }, listOperationSpec$2, callback);
- };
- ApiManagementOperations.prototype.listNext = function (nextPageLink$$1, options, callback) {
- return this.client.sendOperationRequest({
- nextPageLink: nextPageLink$$1,
- options: options
- }, listNextOperationSpec$2, callback);
- };
- return ApiManagementOperations;
- }());
- // Operation Specifications
- var serializer$j = new msRest.Serializer(Mappers$j);
- var listOperationSpec$2 = {
- httpMethod: "GET",
- path: "providers/Microsoft.ApiManagement/operations",
- queryParameters: [
- apiVersion
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: OperationListResult
- },
- default: {
- bodyMapper: CloudError
- }
- },
- serializer: serializer$j
- };
- var listNextOperationSpec$2 = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
- path: "{nextLink}",
- urlParameters: [
- nextPageLink
- ],
- headerParameters: [
- acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: OperationListResult
- },
- default: {
- bodyMapper: CloudError
- }
- },
- serializer: serializer$j
- };
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
- var Mappers$k = /*#__PURE__*/Object.freeze({
- ApiManagementServiceBackupRestoreParameters: ApiManagementServiceBackupRestoreParameters,
- ApiManagementServiceResource: ApiManagementServiceResource,
- ApimResource: ApimResource,
- BaseResource: BaseResource,
- HostnameConfiguration: HostnameConfiguration,
- CertificateInformation: CertificateInformation,
- VirtualNetworkConfiguration: VirtualNetworkConfiguration,
- AdditionalLocation: AdditionalLocation,
- ApiManagementServiceSkuProperties: ApiManagementServiceSkuProperties,
- CertificateConfiguration: CertificateConfiguration,
- ApiManagementServiceIdentity: ApiManagementServiceIdentity,
- CloudError: CloudError,
- ApiManagementServiceUpdateParameters: ApiManagementServiceUpdateParameters,
- ApiManagementServiceListResult: ApiManagementServiceListResult,
- ApiManagementServiceGetSsoTokenResult: ApiManagementServiceGetSsoTokenResult,
- ApiManagementServiceCheckNameAvailabilityParameters: ApiManagementServiceCheckNameAvailabilityParameters,
- ApiManagementServiceNameAvailabilityResult: ApiManagementServiceNameAvailabilityResult,
- ApiManagementServiceApplyNetworkConfigurationParameters: ApiManagementServiceApplyNetworkConfigurationParameters,
- ApiManagementServiceUploadCertificateParameters: ApiManagementServiceUploadCertificateParameters,
- ApiManagementServiceUpdateHostnameParameters: ApiManagementServiceUpdateHostnameParameters,
- HostnameConfigurationOld: HostnameConfigurationOld,
- Resource: Resource,
- ApiContract: ApiContract,
- AuthenticationSettingsContract: AuthenticationSettingsContract,
- OAuth2AuthenticationSettingsContract: OAuth2AuthenticationSettingsContract,
- OpenIdAuthenticationSettingsContract: OpenIdAuthenticationSettingsContract,
- SubscriptionKeyParameterNamesContract: SubscriptionKeyParameterNamesContract,
- ApiVersionSetContractDetails: ApiVersionSetContractDetails,
- ApiReleaseContract: ApiReleaseContract,
- OperationContract: OperationContract,
- ParameterContract: ParameterContract,
- RequestContract: RequestContract,
- RepresentationContract: RepresentationContract,
- ResponseContract: ResponseContract,
- SchemaContract: SchemaContract,
- IssueContract: IssueContract,
- IssueCommentContract: IssueCommentContract,
- IssueAttachmentContract: IssueAttachmentContract,
- LoggerContract: LoggerContract,
- DiagnosticContract: DiagnosticContract,
- ProductContract: ProductContract,
- AuthorizationServerContract: AuthorizationServerContract,
- TokenBodyParameterContract: TokenBodyParameterContract,
- AuthorizationServerUpdateContract: AuthorizationServerUpdateContract,
- BackendContract: BackendContract,
- BackendProperties: BackendProperties,
- BackendServiceFabricClusterProperties: BackendServiceFabricClusterProperties,
- X509CertificateName: X509CertificateName,
- BackendCredentialsContract: BackendCredentialsContract,
- BackendAuthorizationHeaderCredentials: BackendAuthorizationHeaderCredentials,
- BackendProxyContract: BackendProxyContract,
- BackendTlsProperties: BackendTlsProperties,
- BackendReconnectContract: BackendReconnectContract,
- CertificateContract: CertificateContract,
- EmailTemplateContract: EmailTemplateContract,
- EmailTemplateParametersContractProperties: EmailTemplateParametersContractProperties,
- GroupContract: GroupContract,
- UserContract: UserContract,
- UserIdentityContract: UserIdentityContract,
- GroupContractProperties: GroupContractProperties,
- IdentityProviderContract: IdentityProviderContract,
- NotificationContract: NotificationContract,
- RecipientsContractProperties: RecipientsContractProperties,
- RecipientUserContract: RecipientUserContract,
- RecipientEmailContract: RecipientEmailContract,
- OpenidConnectProviderContract: OpenidConnectProviderContract,
- PortalSigninSettings: PortalSigninSettings,
- PortalSignupSettings: PortalSignupSettings,
- TermsOfServiceProperties: TermsOfServiceProperties,
- PortalDelegationSettings: PortalDelegationSettings,
- SubscriptionsDelegationSettingsProperties: SubscriptionsDelegationSettingsProperties,
- RegistrationDelegationSettingsProperties: RegistrationDelegationSettingsProperties,
- SubscriptionContract: SubscriptionContract,
- PropertyContract: PropertyContract,
- TagContract: TagContract,
- TagDescriptionContract: TagDescriptionContract,
- ApiVersionSetContract: ApiVersionSetContract,
- PolicyContract: PolicyContract
- });
-
- /*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
- /** Class representing a ApiManagementService. */
- var ApiManagementService = /** @class */ (function () {
- /**
- * Create a ApiManagementService.
- * @param {ApiManagementClientContext} client Reference to the service client.
- */
- function ApiManagementService(client) {
- this.client = client;
- }
- /**
- * Restores a backup of an API Management service created using the ApiManagementService_Backup
- * operation on the current service. This is a long running operation and could take several
- * minutes to complete.
- * @param resourceGroupName The name of the resource group.
- * @param serviceName The name of the API Management service.
- * @param parameters Parameters supplied to the Restore API Management service from backup
- * operation.
- * @param [options] The optional parameters
- * @returns Promise
- */
- ApiManagementService.prototype.restore = function (resourceGroupName$$1, serviceName$$1, parameters, options) {
- return this.beginRestore(resourceGroupName$$1, serviceName$$1, parameters, options)
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
- };
- /**
- * Creates a backup of the API Management service to the given Azure Storage Account. This is long
- * running operation and could take several minutes to complete.
- * @param resourceGroupName The name of the resource group.
- * @param serviceName The name of the API Management service.
- * @param parameters Parameters supplied to the ApiManagementService_Backup operation.
- * @param [options] The optional parameters
- * @returns Promise
- */
- ApiManagementService.prototype.backup = function (resourceGroupName$$1, serviceName$$1, parameters, options) {
- return this.beginBackup(resourceGroupName$$1, serviceName$$1, parameters, options)
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
- };
- /**
- * Creates or updates an API Management service. This is long running operation and could take
- * several minutes to complete.
- * @param resourceGroupName The name of the resource group.
- * @param serviceName The name of the API Management service.
- * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation.
- * @param [options] The optional parameters
- * @returns Promise
- */
- ApiManagementService.prototype.createOrUpdate = function (resourceGroupName$$1, serviceName$$1, parameters, options) {
- return this.beginCreateOrUpdate(resourceGroupName$$1, serviceName$$1, parameters, options)
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
- };
- /**
- * Updates an existing API Management service.
- * @param resourceGroupName The name of the resource group.
- * @param serviceName The name of the API Management service.
- * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation.
- * @param [options] The optional parameters
- * @returns Promise
- */
- ApiManagementService.prototype.update = function (resourceGroupName$$1, serviceName$$1, parameters, options) {
- return this.beginUpdate(resourceGroupName$$1, serviceName$$1, parameters, options)
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
- };
- ApiManagementService.prototype.get = function (resourceGroupName$$1, serviceName$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- options: options
- }, getOperationSpec$e, callback);
- };
- ApiManagementService.prototype.deleteMethod = function (resourceGroupName$$1, serviceName$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- options: options
- }, deleteMethodOperationSpec$f, callback);
- };
- ApiManagementService.prototype.listByResourceGroup = function (resourceGroupName$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- options: options
- }, listByResourceGroupOperationSpec, callback);
- };
- ApiManagementService.prototype.list = function (options, callback) {
- return this.client.sendOperationRequest({
- options: options
- }, listOperationSpec$3, callback);
- };
- ApiManagementService.prototype.getSsoToken = function (resourceGroupName$$1, serviceName$$1, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- options: options
- }, getSsoTokenOperationSpec, callback);
- };
- ApiManagementService.prototype.checkNameAvailability = function (parameters, options, callback) {
- return this.client.sendOperationRequest({
- parameters: parameters,
- options: options
- }, checkNameAvailabilityOperationSpec, callback);
- };
- /**
- * Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated
- * network settings.
- * @param resourceGroupName The name of the resource group.
- * @param serviceName The name of the API Management service.
- * @param [options] The optional parameters
- * @returns Promise
- */
- ApiManagementService.prototype.applyNetworkConfigurationUpdates = function (resourceGroupName$$1, serviceName$$1, options) {
- return this.beginApplyNetworkConfigurationUpdates(resourceGroupName$$1, serviceName$$1, options)
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
- };
- ApiManagementService.prototype.uploadCertificate = function (resourceGroupName$$1, serviceName$$1, parameters, options, callback) {
- return this.client.sendOperationRequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- parameters: parameters,
- options: options
- }, uploadCertificateOperationSpec, callback);
- };
- /**
- * Creates, updates, or deletes the custom hostnames for an API Management service. The custom
- * hostname can be applied to the Proxy and Portal endpoint. This is a long running operation and
- * could take several minutes to complete. This operation will be deprecated in the next version
- * update.
- * @param resourceGroupName The name of the resource group.
- * @param serviceName The name of the API Management service.
- * @param parameters Parameters supplied to the UpdateHostname operation.
- * @param [options] The optional parameters
- * @returns Promise
- */
- ApiManagementService.prototype.updateHostname = function (resourceGroupName$$1, serviceName$$1, parameters, options) {
- return this.beginUpdateHostname(resourceGroupName$$1, serviceName$$1, parameters, options)
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
- };
- /**
- * Restores a backup of an API Management service created using the ApiManagementService_Backup
- * operation on the current service. This is a long running operation and could take several
- * minutes to complete.
- * @param resourceGroupName The name of the resource group.
- * @param serviceName The name of the API Management service.
- * @param parameters Parameters supplied to the Restore API Management service from backup
- * operation.
- * @param [options] The optional parameters
- * @returns Promise
- */
- ApiManagementService.prototype.beginRestore = function (resourceGroupName$$1, serviceName$$1, parameters, options) {
- return this.client.sendLRORequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- parameters: parameters,
- options: options
- }, beginRestoreOperationSpec, options);
- };
- /**
- * Creates a backup of the API Management service to the given Azure Storage Account. This is long
- * running operation and could take several minutes to complete.
- * @param resourceGroupName The name of the resource group.
- * @param serviceName The name of the API Management service.
- * @param parameters Parameters supplied to the ApiManagementService_Backup operation.
- * @param [options] The optional parameters
- * @returns Promise
- */
- ApiManagementService.prototype.beginBackup = function (resourceGroupName$$1, serviceName$$1, parameters, options) {
- return this.client.sendLRORequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- parameters: parameters,
- options: options
- }, beginBackupOperationSpec, options);
- };
- /**
- * Creates or updates an API Management service. This is long running operation and could take
- * several minutes to complete.
- * @param resourceGroupName The name of the resource group.
- * @param serviceName The name of the API Management service.
- * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation.
- * @param [options] The optional parameters
- * @returns Promise
- */
- ApiManagementService.prototype.beginCreateOrUpdate = function (resourceGroupName$$1, serviceName$$1, parameters, options) {
- return this.client.sendLRORequest({
- resourceGroupName: resourceGroupName$$1,
- serviceName: serviceName$$1,
- parameters: parameters,
- options: options
- }, beginCreateOrUpdateOperationSpec, options);
- };
- /**
- * Updates an existing API Management service.
- * @param resourceGroupName The name of the resource group.
- * @param serviceName The name of the API Management service.
- * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation.
- * @param [options] The optional parameters
- * @returns Promise