From 86a8188b28fdc71c5031d83bc8c991134e2ce8e6 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Wed, 27 May 2020 18:55:23 +0000 Subject: [PATCH] Update from master --- sdk/appplatform/arm-appplatform/LICENSE.txt | 21 + sdk/appplatform/arm-appplatform/README.md | 103 + sdk/appplatform/arm-appplatform/package.json | 58 + .../arm-appplatform/rollup.config.js | 37 + .../src/appPlatformManagementClient.ts | 57 + .../src/appPlatformManagementClientContext.ts | 63 + .../arm-appplatform/src/models/appsMappers.ts | 42 + .../src/models/bindingsMappers.ts | 41 + .../src/models/certificatesMappers.ts | 41 + .../src/models/customDomainsMappers.ts | 43 + .../src/models/deploymentsMappers.ts | 42 + .../arm-appplatform/src/models/index.ts | 2324 +++++++++++++++++ .../arm-appplatform/src/models/mappers.ts | 2054 +++++++++++++++ .../src/models/operationsMappers.ts | 19 + .../arm-appplatform/src/models/parameters.ts | 165 ++ .../src/models/servicesMappers.ts | 45 + .../src/models/skuOperationsMappers.ts | 19 + .../arm-appplatform/src/operations/apps.ts | 483 ++++ .../src/operations/bindings.ts | 445 ++++ .../src/operations/certificates.ts | 344 +++ .../src/operations/customDomains.ts | 521 ++++ .../src/operations/deployments.ts | 814 ++++++ .../arm-appplatform/src/operations/index.ts | 18 + .../src/operations/operations.ts | 123 + .../src/operations/services.ts | 797 ++++++ .../src/operations/skuOperations.ts | 124 + sdk/appplatform/arm-appplatform/tsconfig.json | 19 + 27 files changed, 8862 insertions(+) create mode 100644 sdk/appplatform/arm-appplatform/LICENSE.txt create mode 100644 sdk/appplatform/arm-appplatform/README.md create mode 100644 sdk/appplatform/arm-appplatform/package.json create mode 100644 sdk/appplatform/arm-appplatform/rollup.config.js create mode 100644 sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts create mode 100644 sdk/appplatform/arm-appplatform/src/appPlatformManagementClientContext.ts create mode 100644 sdk/appplatform/arm-appplatform/src/models/appsMappers.ts create mode 100644 sdk/appplatform/arm-appplatform/src/models/bindingsMappers.ts create mode 100644 sdk/appplatform/arm-appplatform/src/models/certificatesMappers.ts create mode 100644 sdk/appplatform/arm-appplatform/src/models/customDomainsMappers.ts create mode 100644 sdk/appplatform/arm-appplatform/src/models/deploymentsMappers.ts create mode 100644 sdk/appplatform/arm-appplatform/src/models/index.ts create mode 100644 sdk/appplatform/arm-appplatform/src/models/mappers.ts create mode 100644 sdk/appplatform/arm-appplatform/src/models/operationsMappers.ts create mode 100644 sdk/appplatform/arm-appplatform/src/models/parameters.ts create mode 100644 sdk/appplatform/arm-appplatform/src/models/servicesMappers.ts create mode 100644 sdk/appplatform/arm-appplatform/src/models/skuOperationsMappers.ts create mode 100644 sdk/appplatform/arm-appplatform/src/operations/apps.ts create mode 100644 sdk/appplatform/arm-appplatform/src/operations/bindings.ts create mode 100644 sdk/appplatform/arm-appplatform/src/operations/certificates.ts create mode 100644 sdk/appplatform/arm-appplatform/src/operations/customDomains.ts create mode 100644 sdk/appplatform/arm-appplatform/src/operations/deployments.ts create mode 100644 sdk/appplatform/arm-appplatform/src/operations/index.ts create mode 100644 sdk/appplatform/arm-appplatform/src/operations/operations.ts create mode 100644 sdk/appplatform/arm-appplatform/src/operations/services.ts create mode 100644 sdk/appplatform/arm-appplatform/src/operations/skuOperations.ts create mode 100644 sdk/appplatform/arm-appplatform/tsconfig.json diff --git a/sdk/appplatform/arm-appplatform/LICENSE.txt b/sdk/appplatform/arm-appplatform/LICENSE.txt new file mode 100644 index 000000000000..ea8fb1516028 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/LICENSE.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2020 Microsoft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/sdk/appplatform/arm-appplatform/README.md b/sdk/appplatform/arm-appplatform/README.md new file mode 100644 index 000000000000..7db9e4a9c21a --- /dev/null +++ b/sdk/appplatform/arm-appplatform/README.md @@ -0,0 +1,103 @@ +## Azure AppPlatformManagementClient SDK for JavaScript + +This package contains an isomorphic SDK for AppPlatformManagementClient. + +### Currently supported environments + +- Node.js version 6.x.x or higher +- Browser JavaScript + +### How to Install + +```bash +npm install @azure/arm-appplatform +``` + +### How to use + +#### nodejs - Authentication, client creation and get services as an example written in TypeScript. + +##### Install @azure/ms-rest-nodeauth + +- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. +```bash +npm install @azure/ms-rest-nodeauth@"^3.0.0" +``` + +##### Sample code + +```typescript +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 { AppPlatformManagementClient, AppPlatformManagementModels, AppPlatformManagementMappers } from "@azure/arm-appplatform"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new AppPlatformManagementClient(creds, subscriptionId); + const resourceGroupName = "testresourceGroupName"; + const serviceName = "testserviceName"; + client.services.get(resourceGroupName, serviceName).then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +#### browser - Authentication, client creation and get services as an example written in JavaScript. + +##### Install @azure/ms-rest-browserauth + +```bash +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 + + + + @azure/arm-appplatform sample + + + + + + + + +``` + +## Related projects + +- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) + +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/appplatform/arm-appplatform/README.png) diff --git a/sdk/appplatform/arm-appplatform/package.json b/sdk/appplatform/arm-appplatform/package.json new file mode 100644 index 000000000000..893f9ac20a64 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/package.json @@ -0,0 +1,58 @@ +{ + "name": "@azure/arm-appplatform", + "author": "Microsoft Corporation", + "description": "AppPlatformManagementClient Library with typescript type definitions for node.js and browser.", + "version": "1.0.0", + "dependencies": { + "@azure/ms-rest-azure-js": "^2.0.1", + "@azure/ms-rest-js": "^2.0.4", + "tslib": "^1.10.0" + }, + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], + "license": "MIT", + "main": "./dist/arm-appplatform.js", + "module": "./esm/appPlatformManagementClient.js", + "types": "./esm/appPlatformManagementClient.d.ts", + "devDependencies": { + "typescript": "^3.5.3", + "rollup": "^1.18.0", + "rollup-plugin-node-resolve": "^5.2.0", + "rollup-plugin-sourcemaps": "^0.4.2", + "uglify-js": "^3.6.0" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/appplatform/arm-appplatform", + "repository": { + "type": "git", + "url": "https://github.com/Azure/azure-sdk-for-js.git" + }, + "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", + "src/**/*.ts", + "README.md", + "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-appplatform.js.map'\" -o ./dist/arm-appplatform.min.js ./dist/arm-appplatform.js", + "prepack": "npm install && npm run build" + }, + "sideEffects": false, + "autoPublish": true +} diff --git a/sdk/appplatform/arm-appplatform/rollup.config.js b/sdk/appplatform/arm-appplatform/rollup.config.js new file mode 100644 index 000000000000..62184107a1ea --- /dev/null +++ b/sdk/appplatform/arm-appplatform/rollup.config.js @@ -0,0 +1,37 @@ +import rollup from "rollup"; +import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + +/** + * @type {rollup.RollupFileOptions} + */ +const config = { + input: "./esm/appPlatformManagementClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], + output: { + file: "./dist/arm-appplatform.js", + format: "umd", + name: "Azure.ArmAppplatform", + sourcemap: true, + globals: { + "@azure/ms-rest-js": "msRest", + "@azure/ms-rest-azure-js": "msRestAzure" + }, + banner: `/* + * 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. + */` + }, + plugins: [ + nodeResolve({ mainFields: ['module', 'main'] }), + sourcemaps() + ] +}; + +export default config; diff --git a/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts b/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts new file mode 100644 index 000000000000..10c8771771f4 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts @@ -0,0 +1,57 @@ +/* + * 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. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "./models"; +import * as Mappers from "./models/mappers"; +import * as operations from "./operations"; +import { AppPlatformManagementClientContext } from "./appPlatformManagementClientContext"; + + +class AppPlatformManagementClient extends AppPlatformManagementClientContext { + // Operation groups + services: operations.Services; + apps: operations.Apps; + bindings: operations.Bindings; + certificates: operations.Certificates; + customDomains: operations.CustomDomains; + deployments: operations.Deployments; + operations: operations.Operations; + sku: operations.SkuOperations; + + /** + * Initializes a new instance of the AppPlatformManagementClient class. + * @param credentials Credentials needed for the client to connect to Azure. + * @param subscriptionId Gets subscription ID which uniquely identify the Microsoft Azure + * subscription. The subscription ID forms part of the URI for every service call. + * @param [options] The parameter options + */ + constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AppPlatformManagementClientOptions) { + super(credentials, subscriptionId, options); + this.services = new operations.Services(this); + this.apps = new operations.Apps(this); + this.bindings = new operations.Bindings(this); + this.certificates = new operations.Certificates(this); + this.customDomains = new operations.CustomDomains(this); + this.deployments = new operations.Deployments(this); + this.operations = new operations.Operations(this); + this.sku = new operations.SkuOperations(this); + } +} + +// Operation Specifications + +export { + AppPlatformManagementClient, + AppPlatformManagementClientContext, + Models as AppPlatformManagementModels, + Mappers as AppPlatformManagementMappers +}; +export * from "./operations"; diff --git a/sdk/appplatform/arm-appplatform/src/appPlatformManagementClientContext.ts b/sdk/appplatform/arm-appplatform/src/appPlatformManagementClientContext.ts new file mode 100644 index 000000000000..abe07c221d56 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/appPlatformManagementClientContext.ts @@ -0,0 +1,63 @@ +/* + * 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. + */ + +import * as Models from "./models"; +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; + +const packageName = "@azure/arm-appplatform"; +const packageVersion = "1.0.0"; + +export class AppPlatformManagementClientContext extends msRestAzure.AzureServiceClient { + credentials: msRest.ServiceClientCredentials; + apiVersion?: string; + subscriptionId: string; + + /** + * Initializes a new instance of the AppPlatformManagementClient class. + * @param credentials Credentials needed for the client to connect to Azure. + * @param subscriptionId Gets subscription ID which uniquely identify the Microsoft Azure + * subscription. The subscription ID forms part of the URI for every service call. + * @param [options] The parameter options + */ + constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AppPlatformManagementClientOptions) { + if (credentials == undefined) { + throw new Error('\'credentials\' cannot be null.'); + } + if (subscriptionId == undefined) { + throw new Error('\'subscriptionId\' cannot be null.'); + } + + if (!options) { + options = {}; + } + if(!options.userAgent) { + const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); + options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; + } + + super(credentials, options); + + this.apiVersion = '2019-05-01-preview'; + this.acceptLanguage = 'en-US'; + this.longRunningOperationRetryTimeout = 30; + this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; + this.requestContentType = "application/json; charset=utf-8"; + this.credentials = credentials; + this.subscriptionId = subscriptionId; + + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + this.acceptLanguage = options.acceptLanguage; + } + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; + } + } +} diff --git a/sdk/appplatform/arm-appplatform/src/models/appsMappers.ts b/sdk/appplatform/arm-appplatform/src/models/appsMappers.ts new file mode 100644 index 000000000000..e28d9e1b6f2d --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/models/appsMappers.ts @@ -0,0 +1,42 @@ +/* + * 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. + */ + +export { + AppResource, + AppResourceCollection, + AppResourceProperties, + BaseResource, + BindingResource, + BindingResourceProperties, + CertificateProperties, + CertificateResource, + CloudError, + ClusterResourceProperties, + ConfigServerGitProperty, + ConfigServerProperties, + ConfigServerSettings, + CustomDomainProperties, + CustomDomainResource, + DeploymentInstance, + DeploymentResource, + DeploymentResourceProperties, + DeploymentSettings, + ErrorModel, + GitPatternRepository, + ManagedIdentityProperties, + PersistentDisk, + ProxyResource, + Resource, + ResourceUploadDefinition, + ServiceResource, + Sku, + TemporaryDisk, + TraceProperties, + TrackedResource, + UserSourceInfo +} from "../models/mappers"; diff --git a/sdk/appplatform/arm-appplatform/src/models/bindingsMappers.ts b/sdk/appplatform/arm-appplatform/src/models/bindingsMappers.ts new file mode 100644 index 000000000000..8a433d380835 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/models/bindingsMappers.ts @@ -0,0 +1,41 @@ +/* + * 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. + */ + +export { + AppResource, + AppResourceProperties, + BaseResource, + BindingResource, + BindingResourceCollection, + BindingResourceProperties, + CertificateProperties, + CertificateResource, + CloudError, + ClusterResourceProperties, + ConfigServerGitProperty, + ConfigServerProperties, + ConfigServerSettings, + CustomDomainProperties, + CustomDomainResource, + DeploymentInstance, + DeploymentResource, + DeploymentResourceProperties, + DeploymentSettings, + ErrorModel, + GitPatternRepository, + ManagedIdentityProperties, + PersistentDisk, + ProxyResource, + Resource, + ServiceResource, + Sku, + TemporaryDisk, + TraceProperties, + TrackedResource, + UserSourceInfo +} from "../models/mappers"; diff --git a/sdk/appplatform/arm-appplatform/src/models/certificatesMappers.ts b/sdk/appplatform/arm-appplatform/src/models/certificatesMappers.ts new file mode 100644 index 000000000000..27cbe99fdddc --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/models/certificatesMappers.ts @@ -0,0 +1,41 @@ +/* + * 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. + */ + +export { + AppResource, + AppResourceProperties, + BaseResource, + BindingResource, + BindingResourceProperties, + CertificateProperties, + CertificateResource, + CertificateResourceCollection, + CloudError, + ClusterResourceProperties, + ConfigServerGitProperty, + ConfigServerProperties, + ConfigServerSettings, + CustomDomainProperties, + CustomDomainResource, + DeploymentInstance, + DeploymentResource, + DeploymentResourceProperties, + DeploymentSettings, + ErrorModel, + GitPatternRepository, + ManagedIdentityProperties, + PersistentDisk, + ProxyResource, + Resource, + ServiceResource, + Sku, + TemporaryDisk, + TraceProperties, + TrackedResource, + UserSourceInfo +} from "../models/mappers"; diff --git a/sdk/appplatform/arm-appplatform/src/models/customDomainsMappers.ts b/sdk/appplatform/arm-appplatform/src/models/customDomainsMappers.ts new file mode 100644 index 000000000000..1c554a7dd05b --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/models/customDomainsMappers.ts @@ -0,0 +1,43 @@ +/* + * 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. + */ + +export { + AppResource, + AppResourceProperties, + BaseResource, + BindingResource, + BindingResourceProperties, + CertificateProperties, + CertificateResource, + CloudError, + ClusterResourceProperties, + ConfigServerGitProperty, + ConfigServerProperties, + ConfigServerSettings, + CustomDomainProperties, + CustomDomainResource, + CustomDomainResourceCollection, + CustomDomainValidatePayload, + CustomDomainValidateResult, + DeploymentInstance, + DeploymentResource, + DeploymentResourceProperties, + DeploymentSettings, + ErrorModel, + GitPatternRepository, + ManagedIdentityProperties, + PersistentDisk, + ProxyResource, + Resource, + ServiceResource, + Sku, + TemporaryDisk, + TraceProperties, + TrackedResource, + UserSourceInfo +} from "../models/mappers"; diff --git a/sdk/appplatform/arm-appplatform/src/models/deploymentsMappers.ts b/sdk/appplatform/arm-appplatform/src/models/deploymentsMappers.ts new file mode 100644 index 000000000000..33d44a5de0c9 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/models/deploymentsMappers.ts @@ -0,0 +1,42 @@ +/* + * 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. + */ + +export { + AppResource, + AppResourceProperties, + BaseResource, + BindingResource, + BindingResourceProperties, + CertificateProperties, + CertificateResource, + CloudError, + ClusterResourceProperties, + ConfigServerGitProperty, + ConfigServerProperties, + ConfigServerSettings, + CustomDomainProperties, + CustomDomainResource, + DeploymentInstance, + DeploymentResource, + DeploymentResourceCollection, + DeploymentResourceProperties, + DeploymentSettings, + ErrorModel, + GitPatternRepository, + LogFileUrlResponse, + ManagedIdentityProperties, + PersistentDisk, + ProxyResource, + Resource, + ServiceResource, + Sku, + TemporaryDisk, + TraceProperties, + TrackedResource, + UserSourceInfo +} from "../models/mappers"; diff --git a/sdk/appplatform/arm-appplatform/src/models/index.ts b/sdk/appplatform/arm-appplatform/src/models/index.ts new file mode 100644 index 000000000000..4452fb001148 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/models/index.ts @@ -0,0 +1,2324 @@ +/* + * 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. + */ + +import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; +import * as msRest from "@azure/ms-rest-js"; + +export { BaseResource, CloudError }; + +/** + * The error code compose of code and message. + */ +export interface ErrorModel { + /** + * The code of error. + */ + code?: string; + /** + * The message of error. + */ + message?: string; +} + +/** + * Git repository property payload + */ +export interface GitPatternRepository { + /** + * Name of the repository + */ + name: string; + /** + * Collection of pattern of the repository + */ + pattern?: string[]; + /** + * URI of the repository + */ + uri: string; + /** + * Label of the repository + */ + label?: string; + /** + * Searching path of the repository + */ + searchPaths?: string[]; + /** + * Username of git repository basic auth. + */ + username?: string; + /** + * Password of git repository basic auth. + */ + password?: string; + /** + * Public sshKey of git repository. + */ + hostKey?: string; + /** + * SshKey algorithm of git repository. + */ + hostKeyAlgorithm?: string; + /** + * Private sshKey algorithm of git repository. + */ + privateKey?: string; + /** + * Strict host key checking or not. + */ + strictHostKeyChecking?: boolean; +} + +/** + * Property of git. + */ +export interface ConfigServerGitProperty { + /** + * Repositories of git. + */ + repositories?: GitPatternRepository[]; + /** + * URI of the repository + */ + uri: string; + /** + * Label of the repository + */ + label?: string; + /** + * Searching path of the repository + */ + searchPaths?: string[]; + /** + * Username of git repository basic auth. + */ + username?: string; + /** + * Password of git repository basic auth. + */ + password?: string; + /** + * Public sshKey of git repository. + */ + hostKey?: string; + /** + * SshKey algorithm of git repository. + */ + hostKeyAlgorithm?: string; + /** + * Private sshKey algorithm of git repository. + */ + privateKey?: string; + /** + * Strict host key checking or not. + */ + strictHostKeyChecking?: boolean; +} + +/** + * The settings of config server. + */ +export interface ConfigServerSettings { + /** + * Property of git environment. + */ + gitProperty?: ConfigServerGitProperty; +} + +/** + * Config server git properties payload + */ +export interface ConfigServerProperties { + /** + * State of the config server. Possible values include: 'NotAvailable', 'Deleted', 'Failed', + * 'Succeeded', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly state?: ConfigServerState; + /** + * Error when apply config server settings. + */ + error?: ErrorModel; + /** + * Settings of config server. + */ + configServer?: ConfigServerSettings; +} + +/** + * Trace properties payload + */ +export interface TraceProperties { + /** + * State of the trace proxy. Possible values include: 'NotAvailable', 'Failed', 'Succeeded', + * 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly state?: TraceProxyState; + /** + * Error when apply trace proxy changes. + */ + error?: ErrorModel; + /** + * Indicates whether enable the tracing functionality + */ + enabled?: boolean; + /** + * Target application insight instrumentation key + */ + appInsightInstrumentationKey?: string; +} + +/** + * Service properties payload + */ +export interface ClusterResourceProperties { + /** + * Provisioning state of the Service. Possible values include: 'Creating', 'Updating', + * 'Deleting', 'Deleted', 'Succeeded', 'Failed', 'Moving', 'Moved', 'MoveFailed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ProvisioningState; + /** + * Config server git properties of the Service + */ + configServerProperties?: ConfigServerProperties; + /** + * Trace properties of the Service + */ + trace?: TraceProperties; + /** + * Version of the Service + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly version?: number; + /** + * ServiceInstanceEntity GUID which uniquely identifies a created resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly serviceId?: string; +} + +/** + * Sku of Azure Spring Cloud + */ +export interface Sku { + /** + * Name of the Sku + */ + name: string; + /** + * Tier of the Sku + */ + tier?: string; + /** + * Current capacity of the target resource + */ + capacity?: number; +} + +/** + * The core properties of ARM resources. + */ +export interface Resource extends BaseResource { + /** + * Fully qualified resource Id for the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The type of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; +} + +/** + * The resource model definition for a ARM tracked top level resource. + */ +export interface TrackedResource extends Resource { + /** + * The GEO location of the resource. + */ + location?: string; + /** + * Tags of the service which is a list of key value pairs that describe the resource. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * Service resource + */ +export interface ServiceResource extends TrackedResource { + /** + * Properties of the Service resource + */ + properties?: ClusterResourceProperties; + /** + * Sku of the Service resource + */ + sku?: Sku; +} + +/** + * Managed identity properties retrieved from ARM request headers. + */ +export interface ManagedIdentityProperties { + /** + * Possible values include: 'None', 'SystemAssigned', 'UserAssigned', + * 'SystemAssigned,UserAssigned' + */ + type?: ManagedIdentityType; + principalId?: string; + tenantId?: string; +} + +/** + * Test keys payload + */ +export interface TestKeys { + /** + * Primary key + */ + primaryKey?: string; + /** + * Secondary key + */ + secondaryKey?: string; + /** + * Primary test endpoint + */ + primaryTestEndpoint?: string; + /** + * Secondary test endpoint + */ + secondaryTestEndpoint?: string; + /** + * Indicates whether the test endpoint feature enabled or not + */ + enabled?: boolean; +} + +/** + * Regenerate test key request payload + */ +export interface RegenerateTestKeyRequestPayload { + /** + * Type of the test key. Possible values include: 'Primary', 'Secondary' + */ + keyType: TestKeyType; +} + +/** + * Temporary disk payload + */ +export interface TemporaryDisk { + /** + * Size of the temporary disk in GB + */ + sizeInGB?: number; + /** + * Mount path of the temporary disk + */ + mountPath?: string; +} + +/** + * Persistent disk payload + */ +export interface PersistentDisk { + /** + * Size of the persistent disk in GB + */ + sizeInGB?: number; + /** + * Size of the used persistent disk in GB + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly usedInGB?: number; + /** + * Mount path of the persistent disk + */ + mountPath?: string; +} + +/** + * App resource properties payload + */ +export interface AppResourceProperties { + /** + * Indicates whether the App exposes public endpoint + */ + publicProperty?: boolean; + /** + * URL of the App + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly url?: string; + /** + * Provisioning state of the App. Possible values include: 'Succeeded', 'Failed', 'Creating', + * 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: AppResourceProvisioningState; + /** + * Name of the active deployment of the App + */ + activeDeploymentName?: string; + /** + * Fully qualified dns Name. + */ + fqdn?: string; + /** + * Indicate if only https is allowed. + */ + httpsOnly?: boolean; + /** + * Date time when the resource is created + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly createdTime?: Date; + /** + * Temporary disk settings + */ + temporaryDisk?: TemporaryDisk; + /** + * Persistent disk settings + */ + persistentDisk?: PersistentDisk; +} + +/** + * The resource model definition for a ARM proxy resource. It will have everything other than + * required location and tags. + */ +export interface ProxyResource extends Resource { +} + +/** + * App resource payload + */ +export interface AppResource extends ProxyResource { + /** + * Properties of the App resource + */ + properties?: AppResourceProperties; + /** + * The Managed Identity type of the app resource + */ + identity?: ManagedIdentityProperties; + /** + * The GEO location of the application, always the same with its parent resource + */ + location?: string; +} + +/** + * Resource upload definition payload + */ +export interface ResourceUploadDefinition { + /** + * Source relative path + */ + relativePath?: string; + /** + * Upload URL + */ + uploadUrl?: string; +} + +/** + * Binding resource properties payload + */ +export interface BindingResourceProperties { + /** + * The name of the bound resource + */ + resourceName?: string; + /** + * The standard Azure resource type of the bound resource + */ + resourceType?: string; + /** + * The Azure resource id of the bound resource + */ + resourceId?: string; + /** + * The key of the bound resource + */ + key?: string; + /** + * Binding parameters of the Binding resource + */ + bindingParameters?: { [propertyName: string]: any }; + /** + * The generated Spring Boot property file for this binding. The secret will be deducted. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly generatedProperties?: string; + /** + * Creation time of the Binding resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly createdAt?: string; + /** + * Update time of the Binding resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly updatedAt?: string; +} + +/** + * Binding resource payload + */ +export interface BindingResource extends ProxyResource { + /** + * Properties of the Binding resource + */ + properties?: BindingResourceProperties; +} + +/** + * Certificate resource payload. + */ +export interface CertificateProperties { + /** + * The thumbprint of certificate. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly thumbprint?: string; + /** + * The vault uri of user key vault. + */ + vaultUri: string; + /** + * The certificate name of key vault. + */ + keyVaultCertName: string; + /** + * The certificate version of key vault. + */ + certVersion?: string; + /** + * The issuer of certificate. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly issuer?: string; + /** + * The issue date of certificate. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly issuedDate?: string; + /** + * The expiration date of certificate. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly expirationDate?: string; + /** + * The activate date of certificate. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly activateDate?: string; + /** + * The subject name of certificate. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly subjectName?: string; + /** + * The domain list of certificate. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dnsNames?: string[]; +} + +/** + * Certificate resource payload. + */ +export interface CertificateResource extends ProxyResource { + /** + * Properties of the certificate resource payload. + */ + properties?: CertificateProperties; +} + +/** + * Name availability parameters payload + */ +export interface NameAvailabilityParameters { + /** + * Type of the resource to check name availability + */ + type: string; + /** + * Name to be checked + */ + name: string; +} + +/** + * Name availability result payload + */ +export interface NameAvailability { + /** + * Indicates whether the name is available + */ + nameAvailable?: boolean; + /** + * Reason why the name is not available + */ + reason?: string; + /** + * Message why the name is not available + */ + message?: string; +} + +/** + * Custom domain of app resource payload. + */ +export interface CustomDomainProperties { + /** + * The thumbprint of bound certificate. + */ + thumbprint?: string; + /** + * The app name of domain. + */ + appName?: string; + /** + * The bound certificate name of domain. + */ + certName?: string; +} + +/** + * Custom domain resource payload. + */ +export interface CustomDomainResource extends ProxyResource { + /** + * Properties of the custom domain resource. + */ + properties?: CustomDomainProperties; +} + +/** + * Custom domain validate payload. + */ +export interface CustomDomainValidatePayload { + /** + * Name to be validated + */ + name: string; +} + +/** + * Validation result for custom domain. + */ +export interface CustomDomainValidateResult { + /** + * Indicates if domain name is valid. + */ + isValid?: boolean; + /** + * Message of why domain name is invalid. + */ + message?: string; +} + +/** + * Source information for a deployment + */ +export interface UserSourceInfo { + /** + * Type of the source uploaded. Possible values include: 'Jar', 'Source' + */ + type?: UserSourceType; + /** + * Relative path of the storage which stores the source + */ + relativePath?: string; + /** + * Version of the source + */ + version?: string; + /** + * Selector for the artifact to be used for the deployment for multi-module projects. This should + * be + * the relative path to the target module/project. + */ + artifactSelector?: string; +} + +/** + * Deployment settings payload + */ +export interface DeploymentSettings { + /** + * Required CPU. Default value: 1. + */ + cpu?: number; + /** + * Required Memory size in GB. Default value: 1. + */ + memoryInGB?: number; + /** + * JVM parameter + */ + jvmOptions?: string; + /** + * Instance count. Default value: 1. + */ + instanceCount?: number; + /** + * Collection of environment variables + */ + environmentVariables?: { [propertyName: string]: string }; + /** + * Runtime version. Possible values include: 'Java_8', 'Java_11' + */ + runtimeVersion?: RuntimeVersion; +} + +/** + * Deployment instance payload + */ +export interface DeploymentInstance { + /** + * Name of the deployment instance + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Status of the deployment instance + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: string; + /** + * Failed reason of the deployment instance + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly reason?: string; + /** + * Discovery status of the deployment instance + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly discoveryStatus?: string; +} + +/** + * Deployment resource properties payload + */ +export interface DeploymentResourceProperties { + /** + * Uploaded source information of the deployment. + */ + source?: UserSourceInfo; + /** + * App name of the deployment + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly appName?: string; + /** + * Deployment settings of the Deployment + */ + deploymentSettings?: DeploymentSettings; + /** + * Provisioning state of the Deployment. Possible values include: 'Creating', 'Updating', + * 'Succeeded', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: DeploymentResourceProvisioningState; + /** + * Status of the Deployment. Possible values include: 'Unknown', 'Stopped', 'Running', 'Failed', + * 'Allocating', 'Upgrading', 'Compiling' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: DeploymentResourceStatus; + /** + * Indicates whether the Deployment is active + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly active?: boolean; + /** + * Date time when the resource is created + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly createdTime?: Date; + /** + * Collection of instances belong to the Deployment + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly instances?: DeploymentInstance[]; +} + +/** + * Deployment resource payload + */ +export interface DeploymentResource extends ProxyResource { + /** + * Properties of the Deployment resource + */ + properties?: DeploymentResourceProperties; +} + +/** + * Log file URL payload + */ +export interface LogFileUrlResponse { + /** + * URL of the log file + */ + url: string; +} + +/** + * Operation display payload + */ +export interface OperationDisplay { + /** + * Resource provider of the operation + */ + provider?: string; + /** + * Resource of the operation + */ + resource?: string; + /** + * Localized friendly name for the operation + */ + operation?: string; + /** + * Localized friendly description for the operation + */ + description?: string; +} + +/** + * Specifications of the Log for Azure Monitoring + */ +export interface LogSpecification { + /** + * Name of the log + */ + name?: string; + /** + * Localized friendly display name of the log + */ + displayName?: string; + /** + * Blob duration of the log + */ + blobDuration?: string; +} + +/** + * Specifications of the Dimension of metrics + */ +export interface MetricDimension { + /** + * Name of the dimension + */ + name?: string; + /** + * Localized friendly display name of the dimension + */ + displayName?: string; +} + +/** + * Specifications of the Metrics for Azure Monitoring + */ +export interface MetricSpecification { + /** + * Name of the metric + */ + name?: string; + /** + * Localized friendly display name of the metric + */ + displayName?: string; + /** + * Localized friendly description of the metric + */ + displayDescription?: string; + /** + * Unit that makes sense for the metric + */ + unit?: string; + /** + * Name of the metric category that the metric belongs to. A metric can only belong to a single + * category. + */ + category?: string; + /** + * Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count. + */ + aggregationType?: string; + /** + * Supported aggregation types + */ + supportedAggregationTypes?: string[]; + /** + * Supported time grain types + */ + supportedTimeGrainTypes?: string[]; + /** + * Optional. If set to true, then zero will be returned for time duration where no metric is + * emitted/published. + */ + fillGapWithZero?: boolean; + /** + * Dimensions of the metric + */ + dimensions?: MetricDimension[]; +} + +/** + * Service specification payload + */ +export interface ServiceSpecification { + /** + * Specifications of the Log for Azure Monitoring + */ + logSpecifications?: LogSpecification[]; + /** + * Specifications of the Metrics for Azure Monitoring + */ + metricSpecifications?: MetricSpecification[]; +} + +/** + * Extra Operation properties + */ +export interface OperationProperties { + /** + * Service specifications of the operation + */ + serviceSpecification?: ServiceSpecification; +} + +/** + * Operation detail payload + */ +export interface OperationDetail { + /** + * Name of the operation + */ + name?: string; + /** + * Indicates whether the operation is a data action + */ + isDataAction?: boolean; + /** + * Display of the operation + */ + display?: OperationDisplay; + /** + * Origin of the operation + */ + origin?: string; + /** + * Properties of the operation + */ + properties?: OperationProperties; +} + +/** + * The SKU capacity + */ +export interface SkuCapacity { + /** + * Gets or sets the minimum. + */ + minimum: number; + /** + * Gets or sets the maximum. + */ + maximum?: number; + /** + * Gets or sets the default. + */ + default?: number; + /** + * Gets or sets the type of the scale. Possible values include: 'None', 'Manual', 'Automatic' + */ + scaleType?: SkuScaleType; +} + +/** + * An interface representing ResourceSkuCapabilities. + */ +export interface ResourceSkuCapabilities { + /** + * Gets an invariant to describe the feature. + */ + name?: string; + /** + * Gets an invariant if the feature is measured by quantity. + */ + value?: string; +} + +/** + * An interface representing ResourceSkuZoneDetails. + */ +export interface ResourceSkuZoneDetails { + /** + * Gets the set of zones that the SKU is available in with the + * specified capabilities. + */ + name?: string[]; + /** + * Gets a list of capabilities that are available for the SKU in the + * specified list of zones. + */ + capabilities?: ResourceSkuCapabilities[]; +} + +/** + * An interface representing ResourceSkuLocationInfo. + */ +export interface ResourceSkuLocationInfo { + /** + * Gets location of the SKU + */ + location?: string; + /** + * Gets list of availability zones where the SKU is supported. + */ + zones?: string[]; + /** + * Gets details of capabilities available to a SKU in specific zones. + */ + zoneDetails?: ResourceSkuZoneDetails[]; +} + +/** + * An interface representing ResourceSkuRestrictionInfo. + */ +export interface ResourceSkuRestrictionInfo { + /** + * Gets locations where the SKU is restricted + */ + locations?: string[]; + /** + * Gets list of availability zones where the SKU is restricted. + */ + zones?: string[]; +} + +/** + * An interface representing ResourceSkuRestrictions. + */ +export interface ResourceSkuRestrictions { + /** + * Gets the type of restrictions. Possible values include: 'Location', 'Zone' + */ + type?: ResourceSkuRestrictionsType; + /** + * Gets the value of restrictions. If the restriction type is set to + * location. This would be different locations where the SKU is restricted. + */ + values?: string[]; + /** + * Gets the information about the restriction where the SKU cannot be used. + */ + restrictionInfo?: ResourceSkuRestrictionInfo; + /** + * Gets the reason for restriction. Possible values include: 'QuotaId', + * 'NotAvailableForSubscription' + */ + reasonCode?: ResourceSkuRestrictionsReasonCode; +} + +/** + * Describes an available Azure Spring Cloud SKU. + */ +export interface ResourceSku { + /** + * Gets the type of resource the SKU applies to. + */ + resourceType?: string; + /** + * Gets the name of SKU. + */ + name?: string; + /** + * Gets the tier of SKU. + */ + tier?: string; + /** + * Gets the capacity of SKU. + */ + capacity?: SkuCapacity; + /** + * Gets the set of locations that the SKU is available. + */ + locations?: string[]; + /** + * Gets a list of locations and availability zones in those locations where the SKU is available. + */ + locationInfo?: ResourceSkuLocationInfo[]; + /** + * Gets the restrictions because of which SKU cannot be used. This is + * empty if there are no restrictions. + */ + restrictions?: ResourceSkuRestrictions[]; +} + +/** + * Optional Parameters. + */ +export interface AppsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * Indicates whether sync status + */ + syncStatus?: string; +} + +/** + * Optional Parameters. + */ +export interface DeploymentsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Version of the deployments to be listed + */ + version?: string[]; +} + +/** + * Optional Parameters. + */ +export interface DeploymentsListClusterAllDeploymentsOptionalParams extends msRest.RequestOptionsBase { + /** + * Version of the deployments to be listed + */ + version?: string[]; +} + +/** + * An interface representing AppPlatformManagementClientOptions. + */ +export interface AppPlatformManagementClientOptions extends AzureServiceClientOptions { + baseUri?: string; +} + +/** + * @interface + * Object that includes an array of Service resources and a possible link for next set + * @extends Array + */ +export interface ServiceResourceList extends Array { + /** + * URL client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + */ + nextLink?: string; +} + +/** + * @interface + * Object that includes an array of App resources and a possible link for next set + * @extends Array + */ +export interface AppResourceCollection extends Array { + /** + * URL client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + */ + nextLink?: string; +} + +/** + * @interface + * Object that includes an array of Binding resources and a possible link for next set + * @extends Array + */ +export interface BindingResourceCollection extends Array { + /** + * URL client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + */ + nextLink?: string; +} + +/** + * @interface + * Collection compose of certificate resources list and a possible link for next page. + * @extends Array + */ +export interface CertificateResourceCollection extends Array { + /** + * The link to next page of certificate list. + */ + nextLink?: string; +} + +/** + * @interface + * Collection compose of a custom domain resources list and a possible link for next page. + * @extends Array + */ +export interface CustomDomainResourceCollection extends Array { + /** + * The link to next page of custom domain list. + */ + nextLink?: string; +} + +/** + * @interface + * Object that includes an array of App resources and a possible link for next set + * @extends Array + */ +export interface DeploymentResourceCollection extends Array { + /** + * URL client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + */ + nextLink?: string; +} + +/** + * @interface + * Available operations of the service + * @extends Array + */ +export interface AvailableOperations extends Array { + /** + * URL client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the ResourceSkuCollection. + * @extends Array + */ +export interface ResourceSkuCollection extends Array { + /** + * URL client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + */ + nextLink?: string; +} + +/** + * Defines values for ProvisioningState. + * Possible values include: 'Creating', 'Updating', 'Deleting', 'Deleted', 'Succeeded', 'Failed', + * 'Moving', 'Moved', 'MoveFailed' + * @readonly + * @enum {string} + */ +export type ProvisioningState = 'Creating' | 'Updating' | 'Deleting' | 'Deleted' | 'Succeeded' | 'Failed' | 'Moving' | 'Moved' | 'MoveFailed'; + +/** + * Defines values for ConfigServerState. + * Possible values include: 'NotAvailable', 'Deleted', 'Failed', 'Succeeded', 'Updating' + * @readonly + * @enum {string} + */ +export type ConfigServerState = 'NotAvailable' | 'Deleted' | 'Failed' | 'Succeeded' | 'Updating'; + +/** + * Defines values for TraceProxyState. + * Possible values include: 'NotAvailable', 'Failed', 'Succeeded', 'Updating' + * @readonly + * @enum {string} + */ +export type TraceProxyState = 'NotAvailable' | 'Failed' | 'Succeeded' | 'Updating'; + +/** + * Defines values for ManagedIdentityType. + * Possible values include: 'None', 'SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned' + * @readonly + * @enum {string} + */ +export type ManagedIdentityType = 'None' | 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned,UserAssigned'; + +/** + * Defines values for TestKeyType. + * Possible values include: 'Primary', 'Secondary' + * @readonly + * @enum {string} + */ +export type TestKeyType = 'Primary' | 'Secondary'; + +/** + * Defines values for AppResourceProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Creating', 'Updating' + * @readonly + * @enum {string} + */ +export type AppResourceProvisioningState = 'Succeeded' | 'Failed' | 'Creating' | 'Updating'; + +/** + * Defines values for UserSourceType. + * Possible values include: 'Jar', 'Source' + * @readonly + * @enum {string} + */ +export type UserSourceType = 'Jar' | 'Source'; + +/** + * Defines values for RuntimeVersion. + * Possible values include: 'Java_8', 'Java_11' + * @readonly + * @enum {string} + */ +export type RuntimeVersion = 'Java_8' | 'Java_11'; + +/** + * Defines values for DeploymentResourceProvisioningState. + * Possible values include: 'Creating', 'Updating', 'Succeeded', 'Failed' + * @readonly + * @enum {string} + */ +export type DeploymentResourceProvisioningState = 'Creating' | 'Updating' | 'Succeeded' | 'Failed'; + +/** + * Defines values for DeploymentResourceStatus. + * Possible values include: 'Unknown', 'Stopped', 'Running', 'Failed', 'Allocating', 'Upgrading', + * 'Compiling' + * @readonly + * @enum {string} + */ +export type DeploymentResourceStatus = 'Unknown' | 'Stopped' | 'Running' | 'Failed' | 'Allocating' | 'Upgrading' | 'Compiling'; + +/** + * Defines values for SkuScaleType. + * Possible values include: 'None', 'Manual', 'Automatic' + * @readonly + * @enum {string} + */ +export type SkuScaleType = 'None' | 'Manual' | 'Automatic'; + +/** + * Defines values for ResourceSkuRestrictionsType. + * Possible values include: 'Location', 'Zone' + * @readonly + * @enum {string} + */ +export type ResourceSkuRestrictionsType = 'Location' | 'Zone'; + +/** + * Defines values for ResourceSkuRestrictionsReasonCode. + * Possible values include: 'QuotaId', 'NotAvailableForSubscription' + * @readonly + * @enum {string} + */ +export type ResourceSkuRestrictionsReasonCode = 'QuotaId' | 'NotAvailableForSubscription'; + +/** + * Contains response data for the get operation. + */ +export type ServicesGetResponse = ServiceResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ServiceResource; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ServicesCreateOrUpdateResponse = ServiceResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ServiceResource; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type ServicesUpdateResponse = ServiceResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ServiceResource; + }; +}; + +/** + * Contains response data for the listTestKeys operation. + */ +export type ServicesListTestKeysResponse = TestKeys & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: TestKeys; + }; +}; + +/** + * Contains response data for the regenerateTestKey operation. + */ +export type ServicesRegenerateTestKeyResponse = TestKeys & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: TestKeys; + }; +}; + +/** + * Contains response data for the enableTestEndpoint operation. + */ +export type ServicesEnableTestEndpointResponse = TestKeys & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: TestKeys; + }; +}; + +/** + * Contains response data for the checkNameAvailability operation. + */ +export type ServicesCheckNameAvailabilityResponse = NameAvailability & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NameAvailability; + }; +}; + +/** + * Contains response data for the listBySubscription operation. + */ +export type ServicesListBySubscriptionResponse = ServiceResourceList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ServiceResourceList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type ServicesListResponse = ServiceResourceList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ServiceResourceList; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type ServicesBeginCreateOrUpdateResponse = ServiceResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ServiceResource; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type ServicesBeginUpdateResponse = ServiceResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ServiceResource; + }; +}; + +/** + * Contains response data for the listBySubscriptionNext operation. + */ +export type ServicesListBySubscriptionNextResponse = ServiceResourceList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ServiceResourceList; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ServicesListNextResponse = ServiceResourceList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ServiceResourceList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type AppsGetResponse = AppResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppResource; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type AppsCreateOrUpdateResponse = AppResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppResource; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type AppsUpdateResponse = AppResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppResource; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type AppsListResponse = AppResourceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppResourceCollection; + }; +}; + +/** + * Contains response data for the getResourceUploadUrl operation. + */ +export type AppsGetResourceUploadUrlResponse = ResourceUploadDefinition & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceUploadDefinition; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type AppsBeginCreateOrUpdateResponse = AppResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppResource; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type AppsBeginUpdateResponse = AppResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppResource; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type AppsListNextResponse = AppResourceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppResourceCollection; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type BindingsGetResponse = BindingResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BindingResource; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type BindingsCreateOrUpdateResponse = BindingResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BindingResource; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type BindingsUpdateResponse = BindingResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BindingResource; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type BindingsListResponse = BindingResourceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BindingResourceCollection; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type BindingsListNextResponse = BindingResourceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BindingResourceCollection; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type CertificatesGetResponse = CertificateResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CertificateResource; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type CertificatesCreateOrUpdateResponse = CertificateResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CertificateResource; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type CertificatesListResponse = CertificateResourceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CertificateResourceCollection; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type CertificatesListNextResponse = CertificateResourceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CertificateResourceCollection; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type CustomDomainsGetResponse = CustomDomainResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CustomDomainResource; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type CustomDomainsCreateOrUpdateResponse = CustomDomainResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CustomDomainResource; + }; +}; + +/** + * Contains response data for the patch operation. + */ +export type CustomDomainsPatchResponse = CustomDomainResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CustomDomainResource; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type CustomDomainsListResponse = CustomDomainResourceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CustomDomainResourceCollection; + }; +}; + +/** + * Contains response data for the validate operation. + */ +export type CustomDomainsValidateResponse = CustomDomainValidateResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CustomDomainValidateResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type CustomDomainsListNextResponse = CustomDomainResourceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CustomDomainResourceCollection; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DeploymentsGetResponse = DeploymentResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeploymentResource; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DeploymentsCreateOrUpdateResponse = DeploymentResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeploymentResource; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type DeploymentsUpdateResponse = DeploymentResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeploymentResource; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type DeploymentsListResponse = DeploymentResourceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeploymentResourceCollection; + }; +}; + +/** + * Contains response data for the listClusterAllDeployments operation. + */ +export type DeploymentsListClusterAllDeploymentsResponse = DeploymentResourceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeploymentResourceCollection; + }; +}; + +/** + * Contains response data for the getLogFileUrl operation. + */ +export type DeploymentsGetLogFileUrlResponse = LogFileUrlResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LogFileUrlResponse; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type DeploymentsBeginCreateOrUpdateResponse = DeploymentResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeploymentResource; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type DeploymentsBeginUpdateResponse = DeploymentResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeploymentResource; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type DeploymentsListNextResponse = DeploymentResourceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeploymentResourceCollection; + }; +}; + +/** + * Contains response data for the listClusterAllDeploymentsNext operation. + */ +export type DeploymentsListClusterAllDeploymentsNextResponse = DeploymentResourceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeploymentResourceCollection; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type OperationsListResponse = AvailableOperations & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AvailableOperations; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type OperationsListNextResponse = AvailableOperations & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AvailableOperations; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type SkuListResponse = ResourceSkuCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceSkuCollection; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type SkuListNextResponse = ResourceSkuCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceSkuCollection; + }; +}; diff --git a/sdk/appplatform/arm-appplatform/src/models/mappers.ts b/sdk/appplatform/arm-appplatform/src/models/mappers.ts new file mode 100644 index 000000000000..e9a3d242a3df --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/models/mappers.ts @@ -0,0 +1,2054 @@ +/* + * 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. + */ + +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; + +export const ErrorModel: msRest.CompositeMapper = { + serializedName: "Error", + type: { + name: "Composite", + className: "ErrorModel", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const GitPatternRepository: msRest.CompositeMapper = { + serializedName: "GitPatternRepository", + type: { + name: "Composite", + className: "GitPatternRepository", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + pattern: { + serializedName: "pattern", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + uri: { + required: true, + serializedName: "uri", + type: { + name: "String" + } + }, + label: { + serializedName: "label", + type: { + name: "String" + } + }, + searchPaths: { + serializedName: "searchPaths", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + username: { + serializedName: "username", + type: { + name: "String" + } + }, + password: { + serializedName: "password", + type: { + name: "String" + } + }, + hostKey: { + serializedName: "hostKey", + type: { + name: "String" + } + }, + hostKeyAlgorithm: { + serializedName: "hostKeyAlgorithm", + type: { + name: "String" + } + }, + privateKey: { + serializedName: "privateKey", + type: { + name: "String" + } + }, + strictHostKeyChecking: { + serializedName: "strictHostKeyChecking", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ConfigServerGitProperty: msRest.CompositeMapper = { + serializedName: "ConfigServerGitProperty", + type: { + name: "Composite", + className: "ConfigServerGitProperty", + modelProperties: { + repositories: { + serializedName: "repositories", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GitPatternRepository" + } + } + } + }, + uri: { + required: true, + serializedName: "uri", + type: { + name: "String" + } + }, + label: { + serializedName: "label", + type: { + name: "String" + } + }, + searchPaths: { + serializedName: "searchPaths", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + username: { + serializedName: "username", + type: { + name: "String" + } + }, + password: { + serializedName: "password", + type: { + name: "String" + } + }, + hostKey: { + serializedName: "hostKey", + type: { + name: "String" + } + }, + hostKeyAlgorithm: { + serializedName: "hostKeyAlgorithm", + type: { + name: "String" + } + }, + privateKey: { + serializedName: "privateKey", + type: { + name: "String" + } + }, + strictHostKeyChecking: { + serializedName: "strictHostKeyChecking", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ConfigServerSettings: msRest.CompositeMapper = { + serializedName: "ConfigServerSettings", + type: { + name: "Composite", + className: "ConfigServerSettings", + modelProperties: { + gitProperty: { + serializedName: "gitProperty", + type: { + name: "Composite", + className: "ConfigServerGitProperty" + } + } + } + } +}; + +export const ConfigServerProperties: msRest.CompositeMapper = { + serializedName: "ConfigServerProperties", + type: { + name: "Composite", + className: "ConfigServerProperties", + modelProperties: { + state: { + readOnly: true, + serializedName: "state", + type: { + name: "String" + } + }, + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorModel" + } + }, + configServer: { + serializedName: "configServer", + type: { + name: "Composite", + className: "ConfigServerSettings" + } + } + } + } +}; + +export const TraceProperties: msRest.CompositeMapper = { + serializedName: "TraceProperties", + type: { + name: "Composite", + className: "TraceProperties", + modelProperties: { + state: { + readOnly: true, + serializedName: "state", + type: { + name: "String" + } + }, + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorModel" + } + }, + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + }, + appInsightInstrumentationKey: { + serializedName: "appInsightInstrumentationKey", + type: { + name: "String" + } + } + } + } +}; + +export const ClusterResourceProperties: msRest.CompositeMapper = { + serializedName: "ClusterResourceProperties", + type: { + name: "Composite", + className: "ClusterResourceProperties", + modelProperties: { + provisioningState: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "String" + } + }, + configServerProperties: { + serializedName: "configServerProperties", + type: { + name: "Composite", + className: "ConfigServerProperties" + } + }, + trace: { + serializedName: "trace", + type: { + name: "Composite", + className: "TraceProperties" + } + }, + version: { + readOnly: true, + serializedName: "version", + type: { + name: "Number" + } + }, + serviceId: { + readOnly: true, + serializedName: "serviceId", + type: { + name: "String" + } + } + } + } +}; + +export const Sku: msRest.CompositeMapper = { + serializedName: "Sku", + type: { + name: "Composite", + className: "Sku", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + tier: { + serializedName: "tier", + type: { + name: "String" + } + }, + capacity: { + serializedName: "capacity", + type: { + name: "Number" + } + } + } + } +}; + +export const Resource: msRest.CompositeMapper = { + 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" + } + } + } + } +}; + +export const TrackedResource: msRest.CompositeMapper = { + serializedName: "TrackedResource", + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ServiceResource: msRest.CompositeMapper = { + serializedName: "ServiceResource", + type: { + name: "Composite", + className: "ServiceResource", + modelProperties: { + ...TrackedResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ClusterResourceProperties" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + } + } + } +}; + +export const ManagedIdentityProperties: msRest.CompositeMapper = { + serializedName: "ManagedIdentityProperties", + type: { + name: "Composite", + className: "ManagedIdentityProperties", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String" + } + }, + principalId: { + serializedName: "principalId", + type: { + name: "String" + } + }, + tenantId: { + serializedName: "tenantId", + type: { + name: "String" + } + } + } + } +}; + +export const TestKeys: msRest.CompositeMapper = { + serializedName: "TestKeys", + type: { + name: "Composite", + className: "TestKeys", + modelProperties: { + primaryKey: { + serializedName: "primaryKey", + type: { + name: "String" + } + }, + secondaryKey: { + serializedName: "secondaryKey", + type: { + name: "String" + } + }, + primaryTestEndpoint: { + serializedName: "primaryTestEndpoint", + type: { + name: "String" + } + }, + secondaryTestEndpoint: { + serializedName: "secondaryTestEndpoint", + type: { + name: "String" + } + }, + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const RegenerateTestKeyRequestPayload: msRest.CompositeMapper = { + serializedName: "RegenerateTestKeyRequestPayload", + type: { + name: "Composite", + className: "RegenerateTestKeyRequestPayload", + modelProperties: { + keyType: { + required: true, + serializedName: "keyType", + type: { + name: "String" + } + } + } + } +}; + +export const TemporaryDisk: msRest.CompositeMapper = { + serializedName: "TemporaryDisk", + type: { + name: "Composite", + className: "TemporaryDisk", + modelProperties: { + sizeInGB: { + serializedName: "sizeInGB", + constraints: { + InclusiveMaximum: 5, + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + }, + mountPath: { + serializedName: "mountPath", + type: { + name: "String" + } + } + } + } +}; + +export const PersistentDisk: msRest.CompositeMapper = { + serializedName: "PersistentDisk", + type: { + name: "Composite", + className: "PersistentDisk", + modelProperties: { + sizeInGB: { + serializedName: "sizeInGB", + constraints: { + InclusiveMaximum: 50, + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + }, + usedInGB: { + readOnly: true, + serializedName: "usedInGB", + constraints: { + InclusiveMaximum: 50, + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + }, + mountPath: { + serializedName: "mountPath", + type: { + name: "String" + } + } + } + } +}; + +export const AppResourceProperties: msRest.CompositeMapper = { + serializedName: "AppResourceProperties", + type: { + name: "Composite", + className: "AppResourceProperties", + modelProperties: { + publicProperty: { + serializedName: "public", + type: { + name: "Boolean" + } + }, + url: { + readOnly: true, + serializedName: "url", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "String" + } + }, + activeDeploymentName: { + serializedName: "activeDeploymentName", + type: { + name: "String" + } + }, + fqdn: { + serializedName: "fqdn", + type: { + name: "String" + } + }, + httpsOnly: { + serializedName: "httpsOnly", + type: { + name: "Boolean" + } + }, + createdTime: { + readOnly: true, + serializedName: "createdTime", + type: { + name: "DateTime" + } + }, + temporaryDisk: { + serializedName: "temporaryDisk", + type: { + name: "Composite", + className: "TemporaryDisk" + } + }, + persistentDisk: { + serializedName: "persistentDisk", + type: { + name: "Composite", + className: "PersistentDisk" + } + } + } + } +}; + +export const ProxyResource: msRest.CompositeMapper = { + serializedName: "ProxyResource", + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + +export const AppResource: msRest.CompositeMapper = { + serializedName: "AppResource", + type: { + name: "Composite", + className: "AppResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "AppResourceProperties" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedIdentityProperties" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceUploadDefinition: msRest.CompositeMapper = { + serializedName: "ResourceUploadDefinition", + type: { + name: "Composite", + className: "ResourceUploadDefinition", + modelProperties: { + relativePath: { + serializedName: "relativePath", + type: { + name: "String" + } + }, + uploadUrl: { + serializedName: "uploadUrl", + type: { + name: "String" + } + } + } + } +}; + +export const BindingResourceProperties: msRest.CompositeMapper = { + serializedName: "BindingResourceProperties", + type: { + name: "Composite", + className: "BindingResourceProperties", + modelProperties: { + resourceName: { + serializedName: "resourceName", + type: { + name: "String" + } + }, + resourceType: { + serializedName: "resourceType", + type: { + name: "String" + } + }, + resourceId: { + serializedName: "resourceId", + type: { + name: "String" + } + }, + key: { + serializedName: "key", + type: { + name: "String" + } + }, + bindingParameters: { + serializedName: "bindingParameters", + type: { + name: "Dictionary", + value: { + type: { + name: "Object" + } + } + } + }, + generatedProperties: { + readOnly: true, + serializedName: "generatedProperties", + type: { + name: "String" + } + }, + createdAt: { + readOnly: true, + serializedName: "createdAt", + type: { + name: "String" + } + }, + updatedAt: { + readOnly: true, + serializedName: "updatedAt", + type: { + name: "String" + } + } + } + } +}; + +export const BindingResource: msRest.CompositeMapper = { + serializedName: "BindingResource", + type: { + name: "Composite", + className: "BindingResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "BindingResourceProperties" + } + } + } + } +}; + +export const CertificateProperties: msRest.CompositeMapper = { + serializedName: "CertificateProperties", + type: { + name: "Composite", + className: "CertificateProperties", + modelProperties: { + thumbprint: { + readOnly: true, + serializedName: "thumbprint", + type: { + name: "String" + } + }, + vaultUri: { + required: true, + serializedName: "vaultUri", + type: { + name: "String" + } + }, + keyVaultCertName: { + required: true, + serializedName: "keyVaultCertName", + type: { + name: "String" + } + }, + certVersion: { + serializedName: "certVersion", + type: { + name: "String" + } + }, + issuer: { + readOnly: true, + serializedName: "issuer", + type: { + name: "String" + } + }, + issuedDate: { + readOnly: true, + serializedName: "issuedDate", + type: { + name: "String" + } + }, + expirationDate: { + readOnly: true, + serializedName: "expirationDate", + type: { + name: "String" + } + }, + activateDate: { + readOnly: true, + serializedName: "activateDate", + type: { + name: "String" + } + }, + subjectName: { + readOnly: true, + serializedName: "subjectName", + type: { + name: "String" + } + }, + dnsNames: { + readOnly: true, + serializedName: "dnsNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const CertificateResource: msRest.CompositeMapper = { + serializedName: "CertificateResource", + type: { + name: "Composite", + className: "CertificateResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CertificateProperties" + } + } + } + } +}; + +export const NameAvailabilityParameters: msRest.CompositeMapper = { + serializedName: "NameAvailabilityParameters", + type: { + name: "Composite", + className: "NameAvailabilityParameters", + modelProperties: { + type: { + required: true, + serializedName: "type", + type: { + name: "String" + } + }, + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const NameAvailability: msRest.CompositeMapper = { + serializedName: "NameAvailability", + type: { + name: "Composite", + className: "NameAvailability", + modelProperties: { + nameAvailable: { + serializedName: "nameAvailable", + type: { + name: "Boolean" + } + }, + reason: { + serializedName: "reason", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const CustomDomainProperties: msRest.CompositeMapper = { + serializedName: "CustomDomainProperties", + type: { + name: "Composite", + className: "CustomDomainProperties", + modelProperties: { + thumbprint: { + serializedName: "thumbprint", + type: { + name: "String" + } + }, + appName: { + serializedName: "appName", + type: { + name: "String" + } + }, + certName: { + serializedName: "certName", + type: { + name: "String" + } + } + } + } +}; + +export const CustomDomainResource: msRest.CompositeMapper = { + serializedName: "CustomDomainResource", + type: { + name: "Composite", + className: "CustomDomainResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CustomDomainProperties" + } + } + } + } +}; + +export const CustomDomainValidatePayload: msRest.CompositeMapper = { + serializedName: "CustomDomainValidatePayload", + type: { + name: "Composite", + className: "CustomDomainValidatePayload", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const CustomDomainValidateResult: msRest.CompositeMapper = { + serializedName: "CustomDomainValidateResult", + type: { + name: "Composite", + className: "CustomDomainValidateResult", + modelProperties: { + isValid: { + serializedName: "isValid", + type: { + name: "Boolean" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const UserSourceInfo: msRest.CompositeMapper = { + serializedName: "UserSourceInfo", + type: { + name: "Composite", + className: "UserSourceInfo", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String" + } + }, + relativePath: { + serializedName: "relativePath", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + }, + artifactSelector: { + serializedName: "artifactSelector", + type: { + name: "String" + } + } + } + } +}; + +export const DeploymentSettings: msRest.CompositeMapper = { + serializedName: "DeploymentSettings", + type: { + name: "Composite", + className: "DeploymentSettings", + modelProperties: { + cpu: { + serializedName: "cpu", + defaultValue: 1, + constraints: { + InclusiveMaximum: 4, + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + memoryInGB: { + serializedName: "memoryInGB", + defaultValue: 1, + constraints: { + InclusiveMaximum: 8, + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + jvmOptions: { + serializedName: "jvmOptions", + type: { + name: "String" + } + }, + instanceCount: { + serializedName: "instanceCount", + defaultValue: 1, + constraints: { + InclusiveMaximum: 20, + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + environmentVariables: { + serializedName: "environmentVariables", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + runtimeVersion: { + serializedName: "runtimeVersion", + type: { + name: "String" + } + } + } + } +}; + +export const DeploymentInstance: msRest.CompositeMapper = { + serializedName: "DeploymentInstance", + type: { + name: "Composite", + className: "DeploymentInstance", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + status: { + readOnly: true, + serializedName: "status", + type: { + name: "String" + } + }, + reason: { + readOnly: true, + serializedName: "reason", + type: { + name: "String" + } + }, + discoveryStatus: { + readOnly: true, + serializedName: "discoveryStatus", + type: { + name: "String" + } + } + } + } +}; + +export const DeploymentResourceProperties: msRest.CompositeMapper = { + serializedName: "DeploymentResourceProperties", + type: { + name: "Composite", + className: "DeploymentResourceProperties", + modelProperties: { + source: { + serializedName: "source", + type: { + name: "Composite", + className: "UserSourceInfo" + } + }, + appName: { + readOnly: true, + serializedName: "appName", + type: { + name: "String" + } + }, + deploymentSettings: { + serializedName: "deploymentSettings", + type: { + name: "Composite", + className: "DeploymentSettings" + } + }, + provisioningState: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "String" + } + }, + status: { + readOnly: true, + serializedName: "status", + type: { + name: "String" + } + }, + active: { + readOnly: true, + serializedName: "active", + type: { + name: "Boolean" + } + }, + createdTime: { + readOnly: true, + serializedName: "createdTime", + type: { + name: "DateTime" + } + }, + instances: { + readOnly: true, + serializedName: "instances", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeploymentInstance" + } + } + } + } + } + } +}; + +export const DeploymentResource: msRest.CompositeMapper = { + serializedName: "DeploymentResource", + type: { + name: "Composite", + className: "DeploymentResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DeploymentResourceProperties" + } + } + } + } +}; + +export const LogFileUrlResponse: msRest.CompositeMapper = { + serializedName: "LogFileUrlResponse", + type: { + name: "Composite", + className: "LogFileUrlResponse", + modelProperties: { + url: { + required: true, + serializedName: "url", + type: { + name: "String" + } + } + } + } +}; + +export const OperationDisplay: msRest.CompositeMapper = { + serializedName: "OperationDisplay", + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", + type: { + name: "String" + } + }, + resource: { + serializedName: "resource", + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const LogSpecification: msRest.CompositeMapper = { + serializedName: "LogSpecification", + type: { + name: "Composite", + className: "LogSpecification", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + blobDuration: { + serializedName: "blobDuration", + type: { + name: "String" + } + } + } + } +}; + +export const MetricDimension: msRest.CompositeMapper = { + serializedName: "MetricDimension", + type: { + name: "Composite", + className: "MetricDimension", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + } + } + } +}; + +export const MetricSpecification: msRest.CompositeMapper = { + serializedName: "MetricSpecification", + type: { + name: "Composite", + className: "MetricSpecification", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + displayDescription: { + serializedName: "displayDescription", + type: { + name: "String" + } + }, + unit: { + serializedName: "unit", + type: { + name: "String" + } + }, + category: { + serializedName: "category", + type: { + name: "String" + } + }, + aggregationType: { + serializedName: "aggregationType", + type: { + name: "String" + } + }, + supportedAggregationTypes: { + serializedName: "supportedAggregationTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + supportedTimeGrainTypes: { + serializedName: "supportedTimeGrainTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + fillGapWithZero: { + serializedName: "fillGapWithZero", + type: { + name: "Boolean" + } + }, + dimensions: { + serializedName: "dimensions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricDimension" + } + } + } + } + } + } +}; + +export const ServiceSpecification: msRest.CompositeMapper = { + serializedName: "ServiceSpecification", + type: { + name: "Composite", + className: "ServiceSpecification", + modelProperties: { + logSpecifications: { + serializedName: "logSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LogSpecification" + } + } + } + }, + metricSpecifications: { + serializedName: "metricSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricSpecification" + } + } + } + } + } + } +}; + +export const OperationProperties: msRest.CompositeMapper = { + serializedName: "OperationProperties", + type: { + name: "Composite", + className: "OperationProperties", + modelProperties: { + serviceSpecification: { + serializedName: "serviceSpecification", + type: { + name: "Composite", + className: "ServiceSpecification" + } + } + } + } +}; + +export const OperationDetail: msRest.CompositeMapper = { + serializedName: "OperationDetail", + type: { + name: "Composite", + className: "OperationDetail", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + isDataAction: { + serializedName: "isDataAction", + type: { + name: "Boolean" + } + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" + } + }, + origin: { + serializedName: "origin", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "OperationProperties" + } + } + } + } +}; + +export const SkuCapacity: msRest.CompositeMapper = { + serializedName: "SkuCapacity", + type: { + name: "Composite", + className: "SkuCapacity", + modelProperties: { + minimum: { + required: true, + serializedName: "minimum", + type: { + name: "Number" + } + }, + maximum: { + serializedName: "maximum", + type: { + name: "Number" + } + }, + default: { + serializedName: "default", + type: { + name: "Number" + } + }, + scaleType: { + serializedName: "scaleType", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceSkuCapabilities: msRest.CompositeMapper = { + serializedName: "ResourceSkuCapabilities", + type: { + name: "Composite", + className: "ResourceSkuCapabilities", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceSkuZoneDetails: msRest.CompositeMapper = { + serializedName: "ResourceSkuZoneDetails", + type: { + name: "Composite", + className: "ResourceSkuZoneDetails", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + capabilities: { + serializedName: "capabilities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuCapabilities" + } + } + } + } + } + } +}; + +export const ResourceSkuLocationInfo: msRest.CompositeMapper = { + serializedName: "ResourceSkuLocationInfo", + type: { + name: "Composite", + className: "ResourceSkuLocationInfo", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + zones: { + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + zoneDetails: { + serializedName: "zoneDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuZoneDetails" + } + } + } + } + } + } +}; + +export const ResourceSkuRestrictionInfo: msRest.CompositeMapper = { + serializedName: "ResourceSkuRestrictionInfo", + type: { + name: "Composite", + className: "ResourceSkuRestrictionInfo", + modelProperties: { + locations: { + serializedName: "locations", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + zones: { + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ResourceSkuRestrictions: msRest.CompositeMapper = { + serializedName: "ResourceSkuRestrictions", + type: { + name: "Composite", + className: "ResourceSkuRestrictions", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String" + } + }, + values: { + serializedName: "values", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + restrictionInfo: { + serializedName: "restrictionInfo", + type: { + name: "Composite", + className: "ResourceSkuRestrictionInfo" + } + }, + reasonCode: { + serializedName: "reasonCode", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceSku: msRest.CompositeMapper = { + serializedName: "ResourceSku", + type: { + name: "Composite", + className: "ResourceSku", + modelProperties: { + resourceType: { + serializedName: "resourceType", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + tier: { + serializedName: "tier", + type: { + name: "String" + } + }, + capacity: { + serializedName: "capacity", + type: { + name: "Composite", + className: "SkuCapacity" + } + }, + locations: { + serializedName: "locations", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + locationInfo: { + serializedName: "locationInfo", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuLocationInfo" + } + } + } + }, + restrictions: { + serializedName: "restrictions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuRestrictions" + } + } + } + } + } + } +}; + +export const ServiceResourceList: msRest.CompositeMapper = { + serializedName: "ServiceResourceList", + type: { + name: "Composite", + className: "ServiceResourceList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServiceResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const AppResourceCollection: msRest.CompositeMapper = { + serializedName: "AppResourceCollection", + type: { + name: "Composite", + className: "AppResourceCollection", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AppResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const BindingResourceCollection: msRest.CompositeMapper = { + serializedName: "BindingResourceCollection", + type: { + name: "Composite", + className: "BindingResourceCollection", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BindingResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const CertificateResourceCollection: msRest.CompositeMapper = { + serializedName: "CertificateResourceCollection", + type: { + name: "Composite", + className: "CertificateResourceCollection", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CertificateResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const CustomDomainResourceCollection: msRest.CompositeMapper = { + serializedName: "CustomDomainResourceCollection", + type: { + name: "Composite", + className: "CustomDomainResourceCollection", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CustomDomainResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DeploymentResourceCollection: msRest.CompositeMapper = { + serializedName: "DeploymentResourceCollection", + type: { + name: "Composite", + className: "DeploymentResourceCollection", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeploymentResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const AvailableOperations: msRest.CompositeMapper = { + serializedName: "AvailableOperations", + type: { + name: "Composite", + className: "AvailableOperations", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationDetail" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceSkuCollection: msRest.CompositeMapper = { + serializedName: "ResourceSkuCollection", + type: { + name: "Composite", + className: "ResourceSkuCollection", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSku" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/appplatform/arm-appplatform/src/models/operationsMappers.ts b/sdk/appplatform/arm-appplatform/src/models/operationsMappers.ts new file mode 100644 index 000000000000..1b73730f8b2a --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/models/operationsMappers.ts @@ -0,0 +1,19 @@ +/* + * 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. + */ + +export { + AvailableOperations, + CloudError, + LogSpecification, + MetricDimension, + MetricSpecification, + OperationDetail, + OperationDisplay, + OperationProperties, + ServiceSpecification +} from "../models/mappers"; diff --git a/sdk/appplatform/arm-appplatform/src/models/parameters.ts b/sdk/appplatform/arm-appplatform/src/models/parameters.ts new file mode 100644 index 000000000000..723207ebf057 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/models/parameters.ts @@ -0,0 +1,165 @@ +/* + * 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. + */ + +import * as msRest from "@azure/ms-rest-js"; + +export const acceptLanguage: msRest.OperationParameter = { + parameterPath: "acceptLanguage", + mapper: { + serializedName: "accept-language", + defaultValue: 'en-US', + type: { + name: "String" + } + } +}; +export const apiVersion: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2019-05-01-preview', + type: { + name: "String" + } + } +}; +export const appName: msRest.OperationURLParameter = { + parameterPath: "appName", + mapper: { + required: true, + serializedName: "appName", + type: { + name: "String" + } + } +}; +export const bindingName: msRest.OperationURLParameter = { + parameterPath: "bindingName", + mapper: { + required: true, + serializedName: "bindingName", + type: { + name: "String" + } + } +}; +export const certificateName: msRest.OperationURLParameter = { + parameterPath: "certificateName", + mapper: { + required: true, + serializedName: "certificateName", + type: { + name: "String" + } + } +}; +export const deploymentName: msRest.OperationURLParameter = { + parameterPath: "deploymentName", + mapper: { + required: true, + serializedName: "deploymentName", + type: { + name: "String" + } + } +}; +export const domainName: msRest.OperationURLParameter = { + parameterPath: "domainName", + mapper: { + required: true, + serializedName: "domainName", + type: { + name: "String" + } + } +}; +export const location: msRest.OperationURLParameter = { + parameterPath: "location", + mapper: { + required: true, + serializedName: "location", + type: { + name: "String" + } + } +}; +export const nextPageLink: msRest.OperationURLParameter = { + parameterPath: "nextPageLink", + mapper: { + required: true, + serializedName: "nextLink", + type: { + name: "String" + } + }, + skipEncoding: true +}; +export const resourceGroupName: msRest.OperationURLParameter = { + parameterPath: "resourceGroupName", + mapper: { + required: true, + serializedName: "resourceGroupName", + type: { + name: "String" + } + } +}; +export const serviceName: msRest.OperationURLParameter = { + parameterPath: "serviceName", + mapper: { + required: true, + serializedName: "serviceName", + type: { + name: "String" + } + } +}; +export const subscriptionId: msRest.OperationURLParameter = { + parameterPath: "subscriptionId", + mapper: { + required: true, + serializedName: "subscriptionId", + type: { + name: "String" + } + } +}; +export const syncStatus: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "syncStatus" + ], + mapper: { + serializedName: "syncStatus", + type: { + name: "String" + } + } +}; +export const version: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "version" + ], + mapper: { + serializedName: "version", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + collectionFormat: msRest.QueryCollectionFormat.Multi +}; diff --git a/sdk/appplatform/arm-appplatform/src/models/servicesMappers.ts b/sdk/appplatform/arm-appplatform/src/models/servicesMappers.ts new file mode 100644 index 000000000000..31af048e9332 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/models/servicesMappers.ts @@ -0,0 +1,45 @@ +/* + * 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. + */ + +export { + AppResource, + AppResourceProperties, + BaseResource, + BindingResource, + BindingResourceProperties, + CertificateProperties, + CertificateResource, + CloudError, + ClusterResourceProperties, + ConfigServerGitProperty, + ConfigServerProperties, + ConfigServerSettings, + CustomDomainProperties, + CustomDomainResource, + DeploymentInstance, + DeploymentResource, + DeploymentResourceProperties, + DeploymentSettings, + ErrorModel, + GitPatternRepository, + ManagedIdentityProperties, + NameAvailability, + NameAvailabilityParameters, + PersistentDisk, + ProxyResource, + RegenerateTestKeyRequestPayload, + Resource, + ServiceResource, + ServiceResourceList, + Sku, + TemporaryDisk, + TestKeys, + TraceProperties, + TrackedResource, + UserSourceInfo +} from "../models/mappers"; diff --git a/sdk/appplatform/arm-appplatform/src/models/skuOperationsMappers.ts b/sdk/appplatform/arm-appplatform/src/models/skuOperationsMappers.ts new file mode 100644 index 000000000000..cfa54b0795fb --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/models/skuOperationsMappers.ts @@ -0,0 +1,19 @@ +/* + * 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. + */ + +export { + CloudError, + ResourceSku, + ResourceSkuCapabilities, + ResourceSkuCollection, + ResourceSkuLocationInfo, + ResourceSkuRestrictionInfo, + ResourceSkuRestrictions, + ResourceSkuZoneDetails, + SkuCapacity +} from "../models/mappers"; diff --git a/sdk/appplatform/arm-appplatform/src/operations/apps.ts b/sdk/appplatform/arm-appplatform/src/operations/apps.ts new file mode 100644 index 000000000000..e8243fd1d777 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operations/apps.ts @@ -0,0 +1,483 @@ +/* + * 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. + */ + +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/appsMappers"; +import * as Parameters from "../models/parameters"; +import { AppPlatformManagementClientContext } from "../appPlatformManagementClientContext"; + +/** Class representing a Apps. */ +export class Apps { + private readonly client: AppPlatformManagementClientContext; + + /** + * Create a Apps. + * @param {AppPlatformManagementClientContext} client Reference to the service client. + */ + constructor(client: AppPlatformManagementClientContext) { + this.client = client; + } + + /** + * Get an App and its properties. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serviceName: string, appName: string, options?: Models.AppsGetOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, appName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, appName: string, options: Models.AppsGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, appName: string, options?: Models.AppsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + appName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create a new App or update an exiting App. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param appResource Parameters for the create or update operation + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serviceName: string, appName: string, appResource: Models.AppResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,serviceName,appName,appResource,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Operation to delete an App. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, serviceName: string, appName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, serviceName: string, appName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, serviceName: string, appName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, appName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + appName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Operation to update an exiting App. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param appResource Parameters for the update operation + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, serviceName: string, appName: string, appResource: Models.AppResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,serviceName,appName,appResource,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Handles requests to list all resources in a Service. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param callback The callback + */ + list(resourceGroupName: string, serviceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get an resource upload URL for an App, which may be artifacts or source archive. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param [options] The optional parameters + * @returns Promise + */ + getResourceUploadUrl(resourceGroupName: string, serviceName: string, appName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param callback The callback + */ + getResourceUploadUrl(resourceGroupName: string, serviceName: string, appName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param options The optional parameters + * @param callback The callback + */ + getResourceUploadUrl(resourceGroupName: string, serviceName: string, appName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getResourceUploadUrl(resourceGroupName: string, serviceName: string, appName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + appName, + options + }, + getResourceUploadUrlOperationSpec, + callback) as Promise; + } + + /** + * Create a new App or update an exiting App. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param appResource Parameters for the create or update operation + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, appName: string, appResource: Models.AppResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serviceName, + appName, + appResource, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Operation to update an exiting App. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param appResource Parameters for the update operation + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, serviceName: string, appName: string, appResource: Models.AppResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serviceName, + appName, + appResource, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * Handles requests to list all resources in a Service. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.appName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.syncStatus + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AppResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.appName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AppResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getResourceUploadUrlOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/getResourceUploadUrl", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.appName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceUploadDefinition + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.appName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "appResource", + mapper: { + ...Mappers.AppResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.AppResource + }, + 201: { + bodyMapper: Mappers.AppResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.appName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "appResource", + mapper: { + ...Mappers.AppResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.AppResource + }, + 202: { + bodyMapper: Mappers.AppResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AppResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/bindings.ts b/sdk/appplatform/arm-appplatform/src/operations/bindings.ts new file mode 100644 index 000000000000..4b64e8fd7de0 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operations/bindings.ts @@ -0,0 +1,445 @@ +/* + * 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. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/bindingsMappers"; +import * as Parameters from "../models/parameters"; +import { AppPlatformManagementClientContext } from "../appPlatformManagementClientContext"; + +/** Class representing a Bindings. */ +export class Bindings { + private readonly client: AppPlatformManagementClientContext; + + /** + * Create a Bindings. + * @param {AppPlatformManagementClientContext} client Reference to the service client. + */ + constructor(client: AppPlatformManagementClientContext) { + this.client = client; + } + + /** + * Get a Binding and its properties. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param bindingName The name of the Binding resource. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serviceName: string, appName: string, bindingName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param bindingName The name of the Binding resource. + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, appName: string, bindingName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param bindingName The name of the Binding resource. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, appName: string, bindingName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, appName: string, bindingName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + appName, + bindingName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create a new Binding or update an exiting Binding. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param bindingName The name of the Binding resource. + * @param bindingResource Parameters for the create or update operation + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serviceName: string, appName: string, bindingName: string, bindingResource: Models.BindingResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param bindingName The name of the Binding resource. + * @param bindingResource Parameters for the create or update operation + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, appName: string, bindingName: string, bindingResource: Models.BindingResource, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param bindingName The name of the Binding resource. + * @param bindingResource Parameters for the create or update operation + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, appName: string, bindingName: string, bindingResource: Models.BindingResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, appName: string, bindingName: string, bindingResource: Models.BindingResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + appName, + bindingName, + bindingResource, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Operation to delete a Binding. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param bindingName The name of the Binding resource. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, serviceName: string, appName: string, bindingName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param bindingName The name of the Binding resource. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, serviceName: string, appName: string, bindingName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param bindingName The name of the Binding resource. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, serviceName: string, appName: string, bindingName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, appName: string, bindingName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + appName, + bindingName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Operation to update an exiting Binding. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param bindingName The name of the Binding resource. + * @param bindingResource Parameters for the update operation + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, serviceName: string, appName: string, bindingName: string, bindingResource: Models.BindingResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param bindingName The name of the Binding resource. + * @param bindingResource Parameters for the update operation + * @param callback The callback + */ + update(resourceGroupName: string, serviceName: string, appName: string, bindingName: string, bindingResource: Models.BindingResource, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param bindingName The name of the Binding resource. + * @param bindingResource Parameters for the update operation + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, serviceName: string, appName: string, bindingName: string, bindingResource: Models.BindingResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, appName: string, bindingName: string, bindingResource: Models.BindingResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + appName, + bindingName, + bindingResource, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Handles requests to list all resources in an App. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, serviceName: string, appName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param callback The callback + */ + list(resourceGroupName: string, serviceName: string, appName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, serviceName: string, appName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, serviceName: string, appName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + appName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Handles requests to list all resources in an App. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.appName, + Parameters.bindingName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BindingResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.appName, + Parameters.bindingName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "bindingResource", + mapper: { + ...Mappers.BindingResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.BindingResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.appName, + Parameters.bindingName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.appName, + Parameters.bindingName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "bindingResource", + mapper: { + ...Mappers.BindingResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.BindingResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.appName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BindingResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BindingResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/certificates.ts b/sdk/appplatform/arm-appplatform/src/operations/certificates.ts new file mode 100644 index 000000000000..c03f4f8d1bd5 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operations/certificates.ts @@ -0,0 +1,344 @@ +/* + * 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. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/certificatesMappers"; +import * as Parameters from "../models/parameters"; +import { AppPlatformManagementClientContext } from "../appPlatformManagementClientContext"; + +/** Class representing a Certificates. */ +export class Certificates { + private readonly client: AppPlatformManagementClientContext; + + /** + * Create a Certificates. + * @param {AppPlatformManagementClientContext} client Reference to the service client. + */ + constructor(client: AppPlatformManagementClientContext) { + this.client = client; + } + + /** + * Get the certificate resource. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param certificateName The name of the certificate resource. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serviceName: string, certificateName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param certificateName The name of the certificate resource. + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, certificateName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param certificateName The name of the certificate resource. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, certificateName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, certificateName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + certificateName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create or update certificate resource. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param certificateName The name of the certificate resource. + * @param certificateResource Parameters for the create or update operation + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serviceName: string, certificateName: string, certificateResource: Models.CertificateResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param certificateName The name of the certificate resource. + * @param certificateResource Parameters for the create or update operation + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, certificateName: string, certificateResource: Models.CertificateResource, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param certificateName The name of the certificate resource. + * @param certificateResource Parameters for the create or update operation + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, certificateName: string, certificateResource: Models.CertificateResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, certificateName: string, certificateResource: Models.CertificateResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + certificateName, + certificateResource, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Delete the certificate resource. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param certificateName The name of the certificate resource. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, serviceName: string, certificateName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param certificateName The name of the certificate resource. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, serviceName: string, certificateName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param certificateName The name of the certificate resource. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, serviceName: string, certificateName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, certificateName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + certificateName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * List all the certificates of one user. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param callback The callback + */ + list(resourceGroupName: string, serviceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * List all the certificates of one user. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.certificateName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CertificateResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.certificateName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "certificateResource", + mapper: { + ...Mappers.CertificateResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CertificateResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.certificateName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CertificateResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CertificateResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/customDomains.ts b/sdk/appplatform/arm-appplatform/src/operations/customDomains.ts new file mode 100644 index 000000000000..679dcc6eb56b --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operations/customDomains.ts @@ -0,0 +1,521 @@ +/* + * 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. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/customDomainsMappers"; +import * as Parameters from "../models/parameters"; +import { AppPlatformManagementClientContext } from "../appPlatformManagementClientContext"; + +/** Class representing a CustomDomains. */ +export class CustomDomains { + private readonly client: AppPlatformManagementClientContext; + + /** + * Create a CustomDomains. + * @param {AppPlatformManagementClientContext} client Reference to the service client. + */ + constructor(client: AppPlatformManagementClientContext) { + this.client = client; + } + + /** + * Get the custom domain of one lifecycle application. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param domainName The name of the custom domain resource. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serviceName: string, appName: string, domainName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param domainName The name of the custom domain resource. + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, appName: string, domainName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param domainName The name of the custom domain resource. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, appName: string, domainName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, appName: string, domainName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + appName, + domainName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create or update custom domain of one lifecycle application. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param domainName The name of the custom domain resource. + * @param domainResource Parameters for the create or update operation + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serviceName: string, appName: string, domainName: string, domainResource: Models.CustomDomainResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param domainName The name of the custom domain resource. + * @param domainResource Parameters for the create or update operation + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, appName: string, domainName: string, domainResource: Models.CustomDomainResource, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param domainName The name of the custom domain resource. + * @param domainResource Parameters for the create or update operation + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, appName: string, domainName: string, domainResource: Models.CustomDomainResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, appName: string, domainName: string, domainResource: Models.CustomDomainResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + appName, + domainName, + domainResource, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Delete the custom domain of one lifecycle application. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param domainName The name of the custom domain resource. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, serviceName: string, appName: string, domainName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param domainName The name of the custom domain resource. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, serviceName: string, appName: string, domainName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param domainName The name of the custom domain resource. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, serviceName: string, appName: string, domainName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, appName: string, domainName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + appName, + domainName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Update custom domain of one lifecycle application. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param domainName The name of the custom domain resource. + * @param domainResource Parameters for the create or update operation + * @param [options] The optional parameters + * @returns Promise + */ + patch(resourceGroupName: string, serviceName: string, appName: string, domainName: string, domainResource: Models.CustomDomainResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param domainName The name of the custom domain resource. + * @param domainResource Parameters for the create or update operation + * @param callback The callback + */ + patch(resourceGroupName: string, serviceName: string, appName: string, domainName: string, domainResource: Models.CustomDomainResource, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param domainName The name of the custom domain resource. + * @param domainResource Parameters for the create or update operation + * @param options The optional parameters + * @param callback The callback + */ + patch(resourceGroupName: string, serviceName: string, appName: string, domainName: string, domainResource: Models.CustomDomainResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + patch(resourceGroupName: string, serviceName: string, appName: string, domainName: string, domainResource: Models.CustomDomainResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + appName, + domainName, + domainResource, + options + }, + patchOperationSpec, + callback) as Promise; + } + + /** + * List the custom domains of one lifecycle application. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, serviceName: string, appName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param callback The callback + */ + list(resourceGroupName: string, serviceName: string, appName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, serviceName: string, appName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, serviceName: string, appName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + appName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Check the resource name is valid as well as not in use. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param validatePayload + * @param [options] The optional parameters + * @returns Promise + */ + validate(resourceGroupName: string, serviceName: string, appName: string, validatePayload: Models.CustomDomainValidatePayload, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param validatePayload + * @param callback The callback + */ + validate(resourceGroupName: string, serviceName: string, appName: string, validatePayload: Models.CustomDomainValidatePayload, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param validatePayload + * @param options The optional parameters + * @param callback The callback + */ + validate(resourceGroupName: string, serviceName: string, appName: string, validatePayload: Models.CustomDomainValidatePayload, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + validate(resourceGroupName: string, serviceName: string, appName: string, validatePayload: Models.CustomDomainValidatePayload, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + appName, + validatePayload, + options + }, + validateOperationSpec, + callback) as Promise; + } + + /** + * List the custom domains of one lifecycle application. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.appName, + Parameters.domainName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CustomDomainResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.appName, + Parameters.domainName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "domainResource", + mapper: { + ...Mappers.CustomDomainResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CustomDomainResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.appName, + Parameters.domainName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const patchOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.appName, + Parameters.domainName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "domainResource", + mapper: { + ...Mappers.CustomDomainResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CustomDomainResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.appName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CustomDomainResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const validateOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/validate", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.appName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "validatePayload", + mapper: { + ...Mappers.CustomDomainValidatePayload, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CustomDomainValidateResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CustomDomainResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/deployments.ts b/sdk/appplatform/arm-appplatform/src/operations/deployments.ts new file mode 100644 index 000000000000..de97c2bf9309 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operations/deployments.ts @@ -0,0 +1,814 @@ +/* + * 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. + */ + +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/deploymentsMappers"; +import * as Parameters from "../models/parameters"; +import { AppPlatformManagementClientContext } from "../appPlatformManagementClientContext"; + +/** Class representing a Deployments. */ +export class Deployments { + private readonly client: AppPlatformManagementClientContext; + + /** + * Create a Deployments. + * @param {AppPlatformManagementClientContext} client Reference to the service client. + */ + constructor(client: AppPlatformManagementClientContext) { + this.client = client; + } + + /** + * Get a Deployment and its properties. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param deploymentName The name of the Deployment resource. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serviceName: string, appName: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param deploymentName The name of the Deployment resource. + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, appName: string, deploymentName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param deploymentName The name of the Deployment resource. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, appName: string, deploymentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, appName: string, deploymentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + appName, + deploymentName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create a new Deployment or update an exiting Deployment. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param deploymentName The name of the Deployment resource. + * @param deploymentResource Parameters for the create or update operation + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serviceName: string, appName: string, deploymentName: string, deploymentResource: Models.DeploymentResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,serviceName,appName,deploymentName,deploymentResource,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Operation to delete a Deployment. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param deploymentName The name of the Deployment resource. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, serviceName: string, appName: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param deploymentName The name of the Deployment resource. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, serviceName: string, appName: string, deploymentName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param deploymentName The name of the Deployment resource. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, serviceName: string, appName: string, deploymentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, appName: string, deploymentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + appName, + deploymentName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Operation to update an exiting Deployment. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param deploymentName The name of the Deployment resource. + * @param deploymentResource Parameters for the update operation + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, serviceName: string, appName: string, deploymentName: string, deploymentResource: Models.DeploymentResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,serviceName,appName,deploymentName,deploymentResource,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Handles requests to list all resources in an App. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, serviceName: string, appName: string, options?: Models.DeploymentsListOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param callback The callback + */ + list(resourceGroupName: string, serviceName: string, appName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, serviceName: string, appName: string, options: Models.DeploymentsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, serviceName: string, appName: string, options?: Models.DeploymentsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + appName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * List deployments for a certain service + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param [options] The optional parameters + * @returns Promise + */ + listClusterAllDeployments(resourceGroupName: string, serviceName: string, options?: Models.DeploymentsListClusterAllDeploymentsOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param callback The callback + */ + listClusterAllDeployments(resourceGroupName: string, serviceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param options The optional parameters + * @param callback The callback + */ + listClusterAllDeployments(resourceGroupName: string, serviceName: string, options: Models.DeploymentsListClusterAllDeploymentsOptionalParams, callback: msRest.ServiceCallback): void; + listClusterAllDeployments(resourceGroupName: string, serviceName: string, options?: Models.DeploymentsListClusterAllDeploymentsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + listClusterAllDeploymentsOperationSpec, + callback) as Promise; + } + + /** + * Start the deployment. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param deploymentName The name of the Deployment resource. + * @param [options] The optional parameters + * @returns Promise + */ + start(resourceGroupName: string, serviceName: string, appName: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginStart(resourceGroupName,serviceName,appName,deploymentName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Stop the deployment. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param deploymentName The name of the Deployment resource. + * @param [options] The optional parameters + * @returns Promise + */ + stop(resourceGroupName: string, serviceName: string, appName: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginStop(resourceGroupName,serviceName,appName,deploymentName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Restart the deployment. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param deploymentName The name of the Deployment resource. + * @param [options] The optional parameters + * @returns Promise + */ + restart(resourceGroupName: string, serviceName: string, appName: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginRestart(resourceGroupName,serviceName,appName,deploymentName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Get deployment log file URL + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param deploymentName The name of the Deployment resource. + * @param [options] The optional parameters + * @returns Promise + */ + getLogFileUrl(resourceGroupName: string, serviceName: string, appName: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param deploymentName The name of the Deployment resource. + * @param callback The callback + */ + getLogFileUrl(resourceGroupName: string, serviceName: string, appName: string, deploymentName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param deploymentName The name of the Deployment resource. + * @param options The optional parameters + * @param callback The callback + */ + getLogFileUrl(resourceGroupName: string, serviceName: string, appName: string, deploymentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getLogFileUrl(resourceGroupName: string, serviceName: string, appName: string, deploymentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + appName, + deploymentName, + options + }, + getLogFileUrlOperationSpec, + callback) as Promise; + } + + /** + * Create a new Deployment or update an exiting Deployment. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param deploymentName The name of the Deployment resource. + * @param deploymentResource Parameters for the create or update operation + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, appName: string, deploymentName: string, deploymentResource: Models.DeploymentResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serviceName, + appName, + deploymentName, + deploymentResource, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Operation to update an exiting Deployment. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param deploymentName The name of the Deployment resource. + * @param deploymentResource Parameters for the update operation + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, serviceName: string, appName: string, deploymentName: string, deploymentResource: Models.DeploymentResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serviceName, + appName, + deploymentName, + deploymentResource, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * Start the deployment. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param deploymentName The name of the Deployment resource. + * @param [options] The optional parameters + * @returns Promise + */ + beginStart(resourceGroupName: string, serviceName: string, appName: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serviceName, + appName, + deploymentName, + options + }, + beginStartOperationSpec, + options); + } + + /** + * Stop the deployment. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param deploymentName The name of the Deployment resource. + * @param [options] The optional parameters + * @returns Promise + */ + beginStop(resourceGroupName: string, serviceName: string, appName: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serviceName, + appName, + deploymentName, + options + }, + beginStopOperationSpec, + options); + } + + /** + * Restart the deployment. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param deploymentName The name of the Deployment resource. + * @param [options] The optional parameters + * @returns Promise + */ + beginRestart(resourceGroupName: string, serviceName: string, appName: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serviceName, + appName, + deploymentName, + options + }, + beginRestartOperationSpec, + options); + } + + /** + * Handles requests to list all resources in an App. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } + + /** + * List deployments for a certain service + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listClusterAllDeploymentsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listClusterAllDeploymentsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listClusterAllDeploymentsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listClusterAllDeploymentsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listClusterAllDeploymentsNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.appName, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeploymentResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.appName, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.appName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.version + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeploymentResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listClusterAllDeploymentsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/deployments", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.version + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeploymentResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getLogFileUrlOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getLogFileUrl", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.appName, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LogFileUrlResponse + }, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.appName, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "deploymentResource", + mapper: { + ...Mappers.DeploymentResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DeploymentResource + }, + 201: { + bodyMapper: Mappers.DeploymentResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.appName, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "deploymentResource", + mapper: { + ...Mappers.DeploymentResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DeploymentResource + }, + 202: { + bodyMapper: Mappers.DeploymentResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginStartOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/start", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.appName, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginStopOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/stop", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.appName, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginRestartOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/restart", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.appName, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeploymentResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listClusterAllDeploymentsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeploymentResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/index.ts b/sdk/appplatform/arm-appplatform/src/operations/index.ts new file mode 100644 index 000000000000..a129c10cc035 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operations/index.ts @@ -0,0 +1,18 @@ +/* + * 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. + */ + +export * from "./services"; +export * from "./apps"; +export * from "./bindings"; +export * from "./certificates"; +export * from "./customDomains"; +export * from "./deployments"; +export * from "./operations"; +export * from "./skuOperations"; diff --git a/sdk/appplatform/arm-appplatform/src/operations/operations.ts b/sdk/appplatform/arm-appplatform/src/operations/operations.ts new file mode 100644 index 000000000000..7c30ed89f505 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operations/operations.ts @@ -0,0 +1,123 @@ +/* + * 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. + */ + +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"; +import { AppPlatformManagementClientContext } from "../appPlatformManagementClientContext"; + +/** Class representing a Operations. */ +export class Operations { + private readonly client: AppPlatformManagementClientContext; + + /** + * Create a Operations. + * @param {AppPlatformManagementClientContext} client Reference to the service client. + */ + constructor(client: AppPlatformManagementClientContext) { + this.client = client; + } + + /** + * Lists all of the available REST API operations of the Microsoft.AppPlatform provider. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Lists all of the available REST API operations of the Microsoft.AppPlatform provider. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.AppPlatform/operations", + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AvailableOperations + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AvailableOperations + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/services.ts b/sdk/appplatform/arm-appplatform/src/operations/services.ts new file mode 100644 index 000000000000..2fb93aaf36af --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operations/services.ts @@ -0,0 +1,797 @@ +/* + * 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. + */ + +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/servicesMappers"; +import * as Parameters from "../models/parameters"; +import { AppPlatformManagementClientContext } from "../appPlatformManagementClientContext"; + +/** Class representing a Services. */ +export class Services { + private readonly client: AppPlatformManagementClientContext; + + /** + * Create a Services. + * @param {AppPlatformManagementClientContext} client Reference to the service client. + */ + constructor(client: AppPlatformManagementClientContext) { + this.client = client; + } + + /** + * Get a Service and its properties. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create a new Service or update an exiting Service. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param resource Parameters for the create or update operation + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serviceName: string, resource: Models.ServiceResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,serviceName,resource,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Operation to delete a Service. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,serviceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Operation to update an exiting Service. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param resource Parameters for the update operation + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, serviceName: string, resource: Models.ServiceResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,serviceName,resource,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * List test keys for a Service. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param [options] The optional parameters + * @returns Promise + */ + listTestKeys(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param callback The callback + */ + listTestKeys(resourceGroupName: string, serviceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param options The optional parameters + * @param callback The callback + */ + listTestKeys(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listTestKeys(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + listTestKeysOperationSpec, + callback) as Promise; + } + + /** + * Regenerate a test key for a Service. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param regenerateTestKeyRequest Parameters for the operation + * @param [options] The optional parameters + * @returns Promise + */ + regenerateTestKey(resourceGroupName: string, serviceName: string, regenerateTestKeyRequest: Models.RegenerateTestKeyRequestPayload, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param regenerateTestKeyRequest Parameters for the operation + * @param callback The callback + */ + regenerateTestKey(resourceGroupName: string, serviceName: string, regenerateTestKeyRequest: Models.RegenerateTestKeyRequestPayload, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param regenerateTestKeyRequest Parameters for the operation + * @param options The optional parameters + * @param callback The callback + */ + regenerateTestKey(resourceGroupName: string, serviceName: string, regenerateTestKeyRequest: Models.RegenerateTestKeyRequestPayload, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + regenerateTestKey(resourceGroupName: string, serviceName: string, regenerateTestKeyRequest: Models.RegenerateTestKeyRequestPayload, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + regenerateTestKeyRequest, + options + }, + regenerateTestKeyOperationSpec, + callback) as Promise; + } + + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param [options] The optional parameters + * @returns Promise + */ + disableTestEndpoint(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param callback The callback + */ + disableTestEndpoint(resourceGroupName: string, serviceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param options The optional parameters + * @param callback The callback + */ + disableTestEndpoint(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + disableTestEndpoint(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + disableTestEndpointOperationSpec, + callback); + } + + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param [options] The optional parameters + * @returns Promise + */ + enableTestEndpoint(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param callback The callback + */ + enableTestEndpoint(resourceGroupName: string, serviceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param options The optional parameters + * @param callback The callback + */ + enableTestEndpoint(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + enableTestEndpoint(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + enableTestEndpointOperationSpec, + callback) as Promise; + } + + /** + * Checks that the resource name is valid and is not already in use. + * @param location the region + * @param availabilityParameters Parameters supplied to the operation. + * @param [options] The optional parameters + * @returns Promise + */ + checkNameAvailability(location: string, availabilityParameters: Models.NameAvailabilityParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location the region + * @param availabilityParameters Parameters supplied to the operation. + * @param callback The callback + */ + checkNameAvailability(location: string, availabilityParameters: Models.NameAvailabilityParameters, callback: msRest.ServiceCallback): void; + /** + * @param location the region + * @param availabilityParameters Parameters supplied to the operation. + * @param options The optional parameters + * @param callback The callback + */ + checkNameAvailability(location: string, availabilityParameters: Models.NameAvailabilityParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkNameAvailability(location: string, availabilityParameters: Models.NameAvailabilityParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + availabilityParameters, + options + }, + checkNameAvailabilityOperationSpec, + callback) as Promise; + } + + /** + * Handles requests to list all resources in a subscription. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscription(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listBySubscription(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listBySubscriptionOperationSpec, + callback) as Promise; + } + + /** + * Handles requests to list all resources in a resource group. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param callback The callback + */ + list(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Create a new Service or update an exiting Service. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param resource Parameters for the create or update operation + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, resource: Models.ServiceResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serviceName, + resource, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Operation to delete a Service. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serviceName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Operation to update an exiting Service. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param resource Parameters for the update operation + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, serviceName: string, resource: Models.ServiceResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serviceName, + resource, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * Handles requests to list all resources in a subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listBySubscriptionNextOperationSpec, + callback) as Promise; + } + + /** + * Handles requests to list all resources in a resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ServiceResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listTestKeysOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/listTestKeys", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TestKeys + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const regenerateTestKeyOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/regenerateTestKey", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "regenerateTestKeyRequest", + mapper: { + ...Mappers.RegenerateTestKeyRequestPayload, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.TestKeys + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const disableTestEndpointOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/disableTestEndpoint", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const enableTestEndpointOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/enableTestEndpoint", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TestKeys + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const checkNameAvailabilityOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/locations/{location}/checkNameAvailability", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "availabilityParameters", + mapper: { + ...Mappers.NameAvailabilityParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.NameAvailability + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/Spring", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ServiceResourceList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ServiceResourceList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "resource", + mapper: { + ...Mappers.ServiceResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ServiceResource + }, + 201: { + bodyMapper: Mappers.ServiceResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "resource", + mapper: { + ...Mappers.ServiceResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ServiceResource + }, + 202: { + bodyMapper: Mappers.ServiceResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ServiceResourceList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ServiceResourceList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/skuOperations.ts b/sdk/appplatform/arm-appplatform/src/operations/skuOperations.ts new file mode 100644 index 000000000000..a896aaded6ec --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operations/skuOperations.ts @@ -0,0 +1,124 @@ +/* + * 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. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/skuOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { AppPlatformManagementClientContext } from "../appPlatformManagementClientContext"; + +/** Class representing a SkuOperations. */ +export class SkuOperations { + private readonly client: AppPlatformManagementClientContext; + + /** + * Create a SkuOperations. + * @param {AppPlatformManagementClientContext} client Reference to the service client. + */ + constructor(client: AppPlatformManagementClientContext) { + this.client = client; + } + + /** + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/skus", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceSkuCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceSkuCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/appplatform/arm-appplatform/tsconfig.json b/sdk/appplatform/arm-appplatform/tsconfig.json new file mode 100644 index 000000000000..422b584abd5e --- /dev/null +++ b/sdk/appplatform/arm-appplatform/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "es6", + "moduleResolution": "node", + "strict": true, + "target": "es5", + "sourceMap": true, + "declarationMap": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "lib": ["es6", "dom"], + "declaration": true, + "outDir": "./esm", + "importHelpers": true + }, + "include": ["./src/**/*.ts"], + "exclude": ["node_modules"] +}